/* =========================================================
   xxxxnese — layout.css
   .container / .section / .section-head / .section-full / .section--tinted
   ページレイアウトの骨格
   ========================================================= */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ---------- Section common ---------- */
.section {
  padding: 140px 0;
}

/*
  中ページ（hero なし）の先頭セクションはヘッダー直下なので余白をタイトに。
  has-dark-hero / page-top のページは最初の section タグが .section クラス無し
  （.hero-editorial / .page-hero）なので、このセレクタは自然にマッチしない。
*/
main > .section:first-of-type {
  padding-block: 80px 32px;
}

main > .section:first-of-type .section-head {
  margin-bottom: 48px;
}

/*
  セクション間の区切り線は「.section の直後に .section が続くとき」だけ出す。
  - ページ先頭の .section には罫線がつかない（Heroなしページで見出しの上に線が出ない）
  - .section-full (secondary-visual など) を挟んだ次の .section にも線はつかない
    (fullbleed 画像自体が視覚的区切りになるため)
*/
.section + .section {
  border-top: 1px solid var(--color-line);
}

.section-head {
  margin-bottom: 96px;
  max-width: 880px;
}

.section-head .section-index {
  display: block;
  margin-bottom: 20px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 5.6vw, 72px);
  letter-spacing: 0.005em;
  line-height: 1.15;
  color: var(--color-ink);
  margin-bottom: 24px;
  font-feature-settings: "lnum" 1;
}

.section-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-ink-soft);
}

/* ---------- Section modifiers ---------- */
/* padding を落として full-bleed 要素を入れるための枠 */
.section-full {
  padding: 0;
}

/*
  セクションの薄グレー背景モディファイア。
  News に限らず「すこし沈ませたい」セクションで <section class="section section--tinted">
  の形で使い回す。
*/
.section--tinted {
  background: var(--color-bg-alt);
}

/* ---------- Section index / kicker（再利用ラベル） ---------- */
.section-index {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-style: normal;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-ink);
  font-style: normal;
}

/* =========================================================
   Responsive — layout
   ========================================================= */

/* Tablet */
@media (max-width: 960px) {
  .section {
    padding: 100px 0;
  }

  .section-head {
    margin-bottom: 64px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .section { padding: 72px 0; }

  .section-head {
    margin-bottom: 48px;
  }

  .section-head .section-index {
    margin-bottom: 16px;
  }

  /* mobile では見出しを抑えて 1〜2 行に収める。
     desktop の clamp(44px, 5.6vw, 72px) は min 44px がそのまま当たって大きすぎる */
  .section-heading {
    font-size: clamp(28px, 7.5vw, 34px);
    line-height: 1.3;
  }

  .section-lead {
    font-size: 15px;
    line-height: 1.85;
  }

  main > .section:first-of-type {
    padding-block: 56px 24px;
  }

  main > .section:first-of-type .section-head {
    margin-bottom: 32px;
  }
}
