/* 見本 v13：書体 G5 と、スマホ・狭い画面のヘッダー（ハンバーガー＋相談するボタン）。
   指示書：BRIEF_mock_v13_merge_G5_20261117.md（harryさん 22:18 t971u「G5」、22:20 t972u・t973u「元々ハンバーガーみたいな感じじゃなかった？」「問い合わせもつけるべき」）
   ■ G5（REPORT_font_v02.md 26・38行目、font_v02/tools/cases_fv02.py の G5 と同じ値）
     書体は今のまま（Inter／Noto Sans JP）。見出しは太さ400・字間−3%・行間1.15。英字の小ラベルは13px・太さ400・字間0・大文字にしない。本文は字間.01em・行間1.8。
     見出しの大きさは変えない（トップは PC 64px・スマホ 34px のまま）。
     ページごとの見出しの指定（例 .ah .ah__title）より強くするため、:not(#g5) で優先度を上げている（id の g5 はどこにも無い）。
   ■ ヘッダー（1024px以下＝今「メニュー」の箱が出る幅）。Sierra スマホ版 https://sierra.ai/jp の実測（reference_header/measure_sierra_burger_v13.json、2026-11-17 JST）に合わせる。
     行の高さ 60px、左右の余白はそのまま、ハンバーガーのボタン 40×40px（線 幅20px・太さ2px。Sierra は2本だが指示書のとおり3本、線の間隔4px）、
     ボタンとハンバーガーの間 8px、ボタン 高さ32px・左右12px。開いたメニューはヘッダーの下を全画面で覆い、項目は 20px・行の高さ28px・上下16px・区切り線なし（Sierra と同じ）。
     ボタンの丸みは今の .btn と同じ（Sierra も同じ丸み）。 */

/* ---------- G5 ---------- */
:root { --fb-fw-head: 400; --fb-ls-display: -0.03em; --fb-lh-tight: 1.15; --fb-fs-label: 13px; --fb-ls-label: 0; }
body { letter-spacing: .01em; line-height: 1.8; }
:is(h1, h2, h3, .h2, .h3):not(#g5) { font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; font-feature-settings: "palt" 1; }
.v8-hero__sub:not(#g5) { font-weight: 400; letter-spacing: 0; font-feature-settings: "palt" 1; }
:is(.v8-hero__lead, .lead, .ah__lead, .prose p, .prose li):not(#g5) { letter-spacing: .01em; line-height: 1.8; }
:is(.label, .ah__label, .hero__en, .toc__title, .svc__en):not(#g5) { font-family: Inter, "Noto Sans JP", sans-serif; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
:is(.hdr__nav a, .btn, .link-light, .hdr__cta .txt):not(#g5) { letter-spacing: 0; font-feature-settings: "palt" 1; }

/* ---------- ヘッダー：PC では新しい部品を出さない ---------- */
.hdr__burger { display: inline-flex; flex-direction: column; gap: 6px; }
.hdr__burger > span { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s ease; }

@media (max-width: 1024px) {
  :root { --v8-hdr-h: 60px; }
  .hdr__in { min-height: 60px; height: 60px; gap: 8px; }
  /* Compact contact pill with a taller touch target. */
  .hdr__cta:not(#g5) { display: flex; margin-left: auto; gap: 0; }
  .hdr__cta .btn:not(#g5) { display: none; }
  .hdr__cta .txt:not(#g5) { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; position: relative; border-radius: var(--v8-btn-radius, 9999px);
    background: var(--fb-purple-600); color: #fff; font-size: 11px; font-weight: 500; line-height: 1; white-space: nowrap; }
  .hdr__cta .txt::before { content: ""; position: absolute; inset: -7px 0; }
  .hdr__menu { margin-left: 0; }
  .hdr__menu > summary:not(#g5) { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--fb-ink); }
  .hdr__menu[open] .hdr__burger > span:first-child { transform: translateY(4px) rotate(45deg); }
  .hdr__menu[open] .hdr__burger > span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hdr__menu > nav:not(#g5) { position: fixed; top: 60px; left: 0; right: 0; height: calc(100dvh - 60px); overflow-y: auto; display: flex; flex-direction: column; gap: 4px;
    padding: 8px 16px 24px; background: #fff; border: 0; border-radius: 0; box-shadow: none; }
  .hdr__menu > nav a:not(.btn):not(#g5) { padding: 16px 4px; font-size: 20px; font-weight: 400; line-height: 28px; letter-spacing: 0; color: var(--fb-ink); border: 0; }
  .hdr__menu > nav a.btn:not(#g5) { margin-top: 24px; min-height: 56px; justify-content: center; font-size: 15px; color: #fff; }  /* 紫の地に白（v12 までは黒字になっていた） */
}
@media (prefers-reduced-motion: reduce) { .hdr__burger > span { transition: none; } }

/* 手直し1：パンくずは項目の中で折らず、項目の間で折る（狭い幅で「ホー／ム」と1文字ずつ折れていた。v12 からある） */
.crumb { flex-wrap: wrap; row-gap: 4px; }
.crumb > * { white-space: nowrap; }
