
  :root {
    /* デザイントークン：値の再設計は次フェーズで行う。 */
    /* 色（異なる淡色は統合しない） */
    --gold: #b4a046;
    --surface: #fff;
    --surface-2: #f5f5f7;
    /* 共通コンテナ */
    --container: 1024px;
    /* 余白：8pxグリッドにスナップ済(φ/8pxリファイン) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 40px;
    --space-1h: 8px;
    --space-2h: 12px;
    --space-3h: 16px;
    --space-4a: 16px;
    --space-4b: 24px;
    --space-4c: 24px;
    --space-5a: 24px;
    --space-5b: 32px;
    --space-6a: 32px;
    --space-6b: 40px;
    /* 文字サイズ（頻出の固定値） */
    --fs-2xs: 11px;
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-base: 14px;
    --fs-base-plus: 15px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-lg-plus: 19px;
    --fs-xl: 22px;
    --fs-2xl: 26px;
    /* 角丸 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 999px;
    /* 行間 */
    --lh-tight: 1.5;
    --lh-base: 1.65;
    --lh-relaxed: 1.8;
    --lh-loose: 1.9;

    --navy: #1f3352;
    --navy-light: #2c4a76;
    --green: #2e6e4e;
    --indigo: #294a8f;
    --bg: #faf9f6;
    --ink: #26272b;
    --muted: #6b6f76;
    --line: #e4e1da;
    --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  body {
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: var(--lh-loose);
    letter-spacing: 0.02em;
  }
  .logo, .hero h1, .sec-title, .svc h4, .reason h3, .contact h2 { font-family: var(--serif); font-weight: 700; }
  section[id], .hero[id] { scroll-margin-top: 72px; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }

  /* ── パスワードゲート ── */
  #gate {
    position: fixed; inset: 0; z-index: 1000;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-5);
  }
  #gate .card {
    max-width: 420px; width: 100%;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: var(--space-7) var(--space-6); text-align: center;
    box-shadow: 0 8px 32px rgba(31, 51, 82, 0.08);
  }
  #gate .mark {
    font-size: var(--fs-sm); letter-spacing: 0.18em; color: var(--green);
    border: 1px solid var(--green); border-radius: var(--radius-pill);
    display: inline-block; padding: var(--space-1) var(--space-3h); margin-bottom: var(--space-4b);
  }
  #gate h1 { font-size: 20px; color: var(--navy); margin-bottom: var(--space-2); }
  #gate p { font-size: var(--fs-base); color: var(--muted); margin-bottom: var(--space-5); }
  #gate input {
    width: 100%; padding: var(--space-3) var(--space-4); font-size: var(--fs-md);
    border: 1px solid var(--line); border-radius: var(--radius-md);
    text-align: center; letter-spacing: 0.1em;
  }
  #gate input:focus { outline: 2px solid var(--navy-light); border-color: transparent; }
  #gate button {
    width: 100%; margin-top: var(--space-3h); padding: 13px;
    font-size: var(--fs-base-plus); letter-spacing: 0.1em; cursor: pointer;
    background: var(--navy); color: var(--surface); border: none; border-radius: var(--radius-md);
  }
  #gate button:hover { background: var(--navy-light); }
  #gate .err { color: #b4443c; font-size: var(--fs-sm); margin-top: var(--space-3); min-height: 1.5em; }
  body.locked #site { display: none; }

  /* ── ヘッダー ── */
  header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 249, 246, 0.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .header-inner {
    max-width: var(--container); margin: 0 auto; padding: var(--space-3) var(--space-4b);
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  }
  .logo { flex: 0 1 auto; min-width: 0; max-width: 100%; margin-right: auto; font-size: var(--fs-lg); font-weight: 700; color: var(--navy); text-decoration: none; }
  .logo-mark { height: 46px; width: auto; flex: none; display: block; }
  nav {
    display: flex; flex-wrap: wrap; flex: 0 0 100%; min-width: 0;
    align-items: center; justify-content: space-between;
    gap: var(--space-3) var(--space-5);
    font-size: var(--fs-base-plus); letter-spacing: 0.02em;
  }
  @media (min-width: 721px) {
    .header-tel-label { display: none; }
  }
  nav a {
    max-width: 100%; min-width: 0; text-decoration: none; color: var(--navy);
    font-weight: 500; white-space: normal; overflow-wrap: anywhere;
    padding: var(--space-1) 0; position: relative;
  }
  nav a:hover { color: var(--indigo); }
  nav a:hover::after,
  nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 2px; background: var(--indigo);
  }
  nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
  .font-toggle, .notes-toggle {
    flex: none; border: 1px solid var(--line); border-radius: 7px;
    padding: 7px var(--space-2h); background: var(--surface); color: var(--navy);
    font: inherit; font-size: var(--fs-xs); line-height: 1.4; cursor: pointer;
  }
  .font-toggle[aria-pressed="true"] { background: var(--navy); color: var(--surface); }
  .notes-toggle[aria-pressed="true"] { background: #f4d35e; border-color: #e5c14a; color: #3a3200; }
  .header-tel { display: none; }

  .header-actions { display: flex; align-items: center; gap: var(--space-4a); flex: 0 1 auto; min-width: 0; margin-left: auto; }
  body.theme-b .header-free {
    display: inline-flex; align-items: center; gap: var(--space-2);
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em;
    color: var(--navy); white-space: nowrap;
  }
  body.theme-b .header-free::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none;
    transform: translateY(-1.5px);
  }
  .header-cta {
    display: inline-flex; align-items: center; gap: var(--space-1h); white-space: nowrap;
    background: var(--indigo); color: #fff !important; text-decoration: none;
    font-size: var(--fs-sm); font-weight: 700;
    padding: var(--space-2h) var(--space-4a); border-radius: var(--radius-sm);
  }
  .header-cta:hover { background: #1f3a75; }
  .header-cta .cta-ico { width: 16px; height: 16px; flex: none; }

  /* プレビュー操作バー(ヘッダー外・試作専用の操作。書体比較) */
  .preview-bar {
    display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap;
    gap: var(--space-2h); max-width: var(--container); margin: 0 auto; padding: var(--space-2) var(--space-4b);
    border-bottom: 1px solid var(--line);
  }
  section[id], .hero[id] { scroll-margin-top: 185px; }
  .preview-bar-label { margin-right: auto; font-size: var(--fs-2xs); letter-spacing: 0.12em; color: var(--muted); }
  .accent-controls { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
  .accent-label { font-size: var(--fs-xs); color: var(--navy); }
  .accent-toggle {
    display: inline-flex; align-items: center; gap: var(--space-1); flex: none;
    border: 1px solid var(--line); border-radius: 7px;
    padding: 7px var(--space-2h); background: var(--surface); color: var(--navy);
    font: inherit; font-size: var(--fs-xs); line-height: 1.4; cursor: pointer;
  }
  .accent-toggle[aria-pressed="true"] { background: var(--navy); color: var(--surface); }
  .accent-toggle:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
  .accent-swatch { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 1px solid currentColor; }
  .accent-toggle[data-accent="acc-cur"] .accent-swatch { background: #036eb7; }
  .accent-toggle[data-accent="acc-navy"] .accent-swatch { background: #1f3352; }
  .accent-toggle[data-accent="acc-indigo"] .accent-swatch { background: #294a8f; }
  .accent-toggle[data-accent="acc-green"] .accent-swatch { background: #1f5c3d; }
  .accent-toggle[data-accent="acc-teal"] .accent-swatch { background: #146b6b; }
  .accent-toggle[data-accent="acc-wine"] .accent-swatch { background: #7a2e34; }
  @media (max-width: 720px) {
    section[id], .hero[id] { scroll-margin-top: 171px; }
    .header-inner { padding: var(--space-2h) var(--space-4); gap: var(--space-4); }
    body.theme-b .header-free { display: none; }
    /* 34px のロゴの上下に押せる余白を足し、配置に使う高さは保つ。 */
    .logo { font-size: var(--fs-md); padding-block: 5px; margin-block: -5px; }
    .logo-mark { height: 34px; }
    .preview-bar { padding: var(--space-2) var(--space-4); }
    nav { justify-content: flex-start; gap: var(--space-3) var(--space-4a); }
    /* ナビは自分の段を持っているので、右端をお問い合わせボタンの右端に留める。
       左寄せだと幅によって右に 27〜71px 余り、端末ごとに終わる位置が変わっていた
       （360/390/412px で実測、2026-10-23）。上の段と同じ幅で終わらせる。 */
    body.theme-b header nav[aria-label="サイトナビゲーション"] { justify-content: space-between; }
  }

  @media (width < 430px) {
    /* 受話器の印が増えたぶん、ロゴと操作の列を詰めて1段に収める。
       360px で 175+16+187=378 が 344 に入らず、ロゴが1段目に押し出されていた。 */
    .header-inner { gap: var(--space-2); }
    .header-actions { gap: var(--space-2); }
    body.theme-b .header-tel { padding-left: 0; }
    .logo { font-size: 12px; gap: var(--space-1h); }
    /* 封筒の印は文字と同じことを言っているので、幅が足りない画面では文字だけ残す。 */
    .header-cta .cta-ico { display: none; }
    body.theme-b header nav[aria-label="サイトナビゲーション"] {
      flex-wrap: nowrap;
      column-gap: clamp(2px, calc(10vw - 30px), 8px);
      font-size: 13px;
      letter-spacing: 0;
    }
    body.theme-b header nav[aria-label="サイトナビゲーション"] a {
      flex: none;
      white-space: nowrap;
      min-height: 44px;
      display: flex;
      align-items: center;
    }
  }

  /* ── ヒーロー ── */
  .hero { position: relative; }
  .hero img { width: 100%; height: min(64vh, 500px); object-fit: cover; }
  .hero img.hero-sky { object-position: 50% 100%; }
  .hero .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(250,249,246,0.94) 0%, rgba(250,249,246,0.72) 42%, rgba(250,249,246,0) 75%);
    display: flex; align-items: center;
  }
  .hero .copy { max-width: var(--container); margin: 0 auto; width: 100%; padding: 0 var(--space-4b); }
  .hero h1 { font-size: clamp(26px, 4.2vw, 40px); color: var(--navy); line-height: var(--lh-tight); margin-bottom: var(--space-4); }
  .hero p { font-size: clamp(14px, 1.6vw, 16px); color: var(--ink); max-width: var(--container); margin-bottom: var(--space-5a); }
  .btn-primary {
    display: inline-block; background: var(--indigo); color: var(--surface); text-decoration: none;
    padding: var(--space-3h) var(--space-6a); border-radius: var(--radius-pill); font-size: var(--fs-base-plus); letter-spacing: 0.08em;
  }
  .btn-primary:hover { filter: brightness(1.08); }
  .hero .note { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--space-3); }
  @media (max-width: 720px) {
    .hero .overlay { background: linear-gradient(180deg, rgba(250,249,246,0.96) 0%, rgba(250,249,246,0.9) 70%, rgba(250,249,246,0.55) 100%); align-items: flex-start; padding-top: var(--space-6b); }
    .hero p { max-width: none; }
  }

  /* ── 共通セクション ── */
  section { padding: 72px var(--space-4b); }
  .inner { max-width: var(--container); margin: 0 auto; }
  .sec-label { font-size: var(--fs-xs); letter-spacing: 0.22em; color: var(--green); margin-bottom: var(--space-1h); }
  /* TOPのあいさつはテーマBで表示する。テーマAの表示規則は維持。 */
  body.page-top:not(.theme-b) #greeting { display: none !important; }
  .sec-title { font-size: clamp(22px, 3vw, 30px); color: var(--navy); margin-bottom: var(--space-6b); }
  .b-only { display: none; }

  /* ── 相続税申告：単一カラムの本文 ── */
  .inheritance { padding-top: calc(var(--space-7) + var(--space-5)); }
  .inheritance .inner { width: 100%; }
  /* 外枠はサイト共通の --container(1024px) に従う。ここだけ 48rem(768px) に絞ると、
     同じページの上の節(1024px)から急に 256px 狭くなり、読み手が面の切り替わりと誤解する。
     先生の指摘(2026-10-08)。読み幅は .prose 側で別に持つ。 */
  .inheritance .sec-label,
  .inheritance .sec-title,
  .inheritance .prose,
  .inheritance .inheritance-section { max-width: none; margin-inline: 0; }
  .inheritance .sec-title + .inheritance-section + .inheritance-section { margin-top: var(--space-6); }
  .inheritance .prose,
  .inheritance .timeline { line-height: var(--lh-loose); }
  .inheritance .prose p + p,
  .inheritance .timeline p + p { margin-top: var(--space-3); }
  .inheritance-section { margin-top: var(--space-7); }
  .inheritance-section h3 {
    color: var(--navy); font-size: var(--fs-lg-plus); line-height: var(--lh-tight);
    margin-bottom: var(--space-5);
  }
  .inheritance .concern-panel {
    padding: var(--space-5); background: var(--surface-2);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
  }
  .inheritance .check-list { list-style: none; }
  .inheritance .check-list li { padding-left: 1.5em; text-indent: -1.5em; }
  .inheritance .check-list li + li { margin-top: var(--space-3); }
  .inheritance .timeline { list-style: none; }
  .inheritance .timeline > li {
    position: relative; padding: 0 0 var(--space-6) var(--space-5);
    border-left: 1px solid var(--line);
  }
  .inheritance .timeline > li::before {
    content: ""; position: absolute; left: -4px; top: var(--space-2);
    width: 7px; height: 7px; border-radius: 50%; background: var(--navy);
  }
  .inheritance .timeline > li:last-child { padding-bottom: 0; }
  .inheritance .step-label {
    display: block; color: var(--navy); font-weight: 700;
    font-variant-numeric: tabular-nums; margin-bottom: var(--space-3);
  }
  .inheritance-note { margin-top: var(--space-5); font-size: var(--fs-sm); color: var(--muted); }
  .pin-note.inheritance-pending {
    display: block; position: static; width: 100%; margin: 0;
    transform: none; box-shadow: none;
  }

  /* ── 共通：お悩みと対応の一覧 ── */
  body.theme-b .inheritance .issue-list { list-style: none; border-top: 1px solid var(--line); }
  body.theme-b .inheritance :is(.issue-head, .issue-item) {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start;
    gap: var(--space-5);
  }
  body.theme-b .inheritance .issue-head {
    padding-bottom: var(--space-3); color: var(--muted); font-size: var(--fs-sm); letter-spacing: 0.08em;
  }
  body.theme-b .inheritance :is(.issue-q, .issue-a) { text-wrap: pretty; }
  body.theme-b .inheritance .issue-item {
    padding: var(--space-5) 0; border-bottom: 1px solid var(--line);
    font-size: var(--fs-base); line-height: var(--lh-relaxed);
  }
  body.theme-b .inheritance .issue-q {
    color: var(--muted); padding-left: 1.5em; text-indent: -1.5em;
  }
  body.theme-b .inheritance .issue-a { color: var(--navy); font-weight: normal; }
  body.theme-b .inheritance .issue-a p + p { margin-top: var(--space-3); }

  /* ── 共通：ページ内の相談案内 ── */
  body.theme-b .inheritance .page-cta {
    padding: var(--space-5); border: 1px solid var(--line); border-top: 3px solid var(--navy);
    padding-top: calc(var(--space-5) - (3px - 1px));
    border-radius: var(--radius-sm); background: var(--surface-2); overflow-wrap: break-word;
  }
  body.theme-b .inheritance .page-cta > p { color: var(--navy); font-weight: 700; }
  body.theme-b .inheritance .page-cta-actions {
    display: flex; flex-wrap: wrap; align-items: stretch;
    gap: var(--space-4); margin-top: var(--space-4);
  }
  body.theme-b .inheritance .page-cta-actions > a { max-width: 100%; align-content: center; }
  body.theme-b .inheritance .page-cta-actions a[href^="tel:"] {
    display: flex; flex-wrap: wrap; justify-content: center;
    border: 1px solid var(--navy); border-radius: var(--radius-sm);
    padding: var(--space-3h) var(--space-6a); font-size: var(--fs-base-plus);
    color: var(--navy); background: transparent; text-decoration: none;
  }
  body.theme-b .inheritance .page-cta-actions a[href^="tel:"]:hover { background: var(--surface); }
  body.theme-b .inheritance .page-cta-actions a[href^="tel:"] > span { white-space: nowrap; }
  @media (max-width: 720px) {
    body.theme-b .inheritance .issue-head { display: none; }
    body.theme-b .inheritance .issue-item { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
    body.theme-b .inheritance .issue-a { border-left: 1px solid var(--navy); padding-left: var(--space-4); }
    body.theme-b .inheritance .page-cta-actions { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
    body.theme-b .inheritance .page-cta-actions > a { text-align: center; }
  }

  /* ── 事務所案内 ── */
  .about { background: var(--bg); }
  .about .cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
  .about p + p { margin-top: 1em; }
  .about .facts { margin-top: var(--space-5); border-top: 1px solid var(--line); }
  .about .facts div { display: flex; gap: var(--space-4a); padding: var(--space-2h) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-base); }
  .about .facts dt { color: var(--muted); min-width: 7em; }
  @media (max-width: 720px) {
    .about .facts div { gap: var(--space-3); }
    .about .facts dt { min-width: 5em; }
  }
  @media (max-width: 780px) { .about .cols { grid-template-columns: 1fr; } }

  /* ── 業務内容 ── */
  .svc {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  }
  .svc .icon {
    height: 120px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eef2f7, #f6f4ee); color: var(--navy);
  }
  .svc .icon svg { width: 48px; height: 48px; }

  /* 代表写真（3:4・影ひかえめ）。 */
  .rep-carousel {
    max-width: 380px; /* 黄金比の写真幅≈376pxを頭打ちにしないための上限 */
  }
  .rep-stage { position: relative; }
  .rep-slide { margin: 0; }
  .rep-slide img {
    width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 16%; display: block;
  }
  /* 影をごく薄く・フェード無しの切り抜き。 */
  /* 箱なしで浮かせる見せ方（先生の承認済み）では、枠の比率を決め打ちしない。
     上の .rep-slide img が aspect-ratio: 3/4 を立てているが、透過PNGの中の先生は
     縦横比 0.555 なので、3/4 の枠では縦が先に上限に当たり横が埋まらない。
     2026-10-09 の実測では、確保した 380x507 の枠に対し先生ご本人は 282x487 で、
     枠の幅の 26%（左68px・右30px）が空いて右寄りに浮いていた。
     画像を rep-jh2-fit.png（666x1200・透過余白を詰め、頭上余白は承認基準の4%を残す）に
     差し替えたうえで、ここで枠の比率を画像自身の比率に戻す。先生ご本人は 380x657 になる。
     元画像 rep-jh2-cut.png は残してある。 */
  .rep-slide.faint img { aspect-ratio: auto; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 4px 8px rgba(30, 30, 30, 0.10)); }

  /* ── 選ばれる理由 ── */
  .reasons .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
  .reason { border-top: 2px solid var(--navy); padding-top: var(--space-4a); }
  .reason .num { font-family: var(--serif); font-size: var(--fs-2xl); color: var(--green); line-height: 1; margin-bottom: var(--space-2h); }
  .reason h3 { font-size: var(--fs-lg-plus); color: var(--navy); margin-bottom: var(--space-2h); line-height: var(--lh-tight); }
  .reason p { font-size: var(--fs-base); color: var(--muted); }
  .reason-body p + p { margin-top: var(--space-3); }
  @media (min-width: 781px) {
    .reasons .reason { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  }
  @media (max-width: 780px) {
    .reasons .grid { grid-template-columns: 1fr; }
  }

  /* ── 業務内容: お客様の種類ごと ── */
  .svc-group + .svc-group { margin-top: var(--space-7); }
  .svc-group h3.group {
    font-size: var(--fs-base-plus); color: var(--navy); letter-spacing: 0.06em;
    margin-bottom: var(--space-4a);
  }
  .services .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }

  .svc .body { padding: var(--space-4c) var(--space-4c) var(--space-5a); }
  .svc .num { font-size: var(--fs-xs); color: var(--green); letter-spacing: 0.18em; }
  .svc h4 { font-size: var(--fs-lg); color: var(--navy); margin: var(--space-1) 0 var(--space-2h); }
  .svc p { font-size: var(--fs-base); color: var(--muted); }
  .svc-names { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2) var(--space-6); }
  .svc-names li { display: flex; align-items: baseline; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .svc-cat-num { flex: none; font-size: var(--fs-xs); color: var(--green); letter-spacing: 0.18em; }
  .svc-cat-name { font-family: var(--serif); font-weight: 700; font-size: var(--fs-lg); color: var(--navy); }
  .svc-more { margin-top: var(--space-5); font-size: var(--fs-sm); color: var(--muted); }
  @media (max-width: 640px) { .svc-names { grid-template-columns: 1fr; } }
  @media (max-width: 720px) { .services .grid { grid-template-columns: 1fr; } }

  /* ── 料金 ── */
  .price { background: var(--surface); }
  .table-wrap { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); background: var(--surface); }
  th, td { padding: var(--space-3h) var(--space-4); border-bottom: 1px solid var(--line); text-align: left; }
  th { color: var(--muted); font-weight: 400; font-size: var(--fs-sm); }
  td.fee { text-align: right; white-space: nowrap; color: var(--navy); font-weight: 700; }
  .price .disclaim { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--space-3h); }
  @media (max-width: 720px) {
    th:nth-child(2), td:nth-child(2) { display: none; }
    th:nth-child(1), td:nth-child(1) { white-space: nowrap; }
    th, td { padding: var(--space-3) var(--space-2); }
  }

  /* ── 問い合わせ ── */
  .contact {
    color: var(--surface); text-align: center; padding: 88px var(--space-4b);
    background: linear-gradient(160deg, var(--navy) 0%, #172741 100%);
  }
  .contact h2 { font-size: clamp(20px, 3vw, 28px); margin-bottom: var(--space-3); }
  .contact p { font-size: var(--fs-base); opacity: 0.9; margin-bottom: var(--space-5); }
  .contact .ways { font-size: var(--fs-base); opacity: 0.9; margin-top: var(--space-4c); line-height: 2; }
  .contact .ways a { color: var(--surface); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.5); }
  .btn-white {
    display: inline-block; background: var(--surface); color: var(--navy); text-decoration: none;
    padding: var(--space-3h) 38px; border-radius: var(--radius-pill); font-size: var(--fs-base-plus); letter-spacing: 0.08em;
  }
  .btn-white:hover { filter: brightness(0.96); }

  /* この節は見出し・リード・連絡先がすべて中央揃えなので、入力欄も中央で1本。
     2026-10-08 に左端へ寄せてみたが、中央の文の下で欄だけ左に付き、
     かえって軸が2本になった。.inheritance（左揃えの節で欄だけ中央だった）とは
     逆の形なので、同じ直しを当ててはいけない。 */
  .contact-form { max-width: 720px; margin: var(--space-6b) auto 0; }
  .cf-row { min-width: 0; margin-bottom: var(--space-5); text-align: left; }
  .cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-5); }
  .cf-label {
    display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2);
    color: var(--surface); font-size: var(--fs-base); font-weight: 700;
  }
  .cf-req, .cf-opt {
    display: inline-block; padding: 2px var(--space-2); border-radius: var(--radius-sm);
    font-size: var(--fs-2xs); font-weight: 400; line-height: var(--lh-tight);
  }
  .cf-req { background: var(--gold); color: var(--navy); }
  .cf-opt { background: #e4e1da; color: var(--muted); }
  .cf-input {
    display: block; width: 100%; min-width: 0; padding: var(--space-3) var(--space-4);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-md);
  }
  .cf-input::placeholder { color: #8a8e95; opacity: 1; }
  .cf-input:focus-visible, .cf-submit:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
  .cf-textarea { resize: vertical; }
  .cf-submit {
    display: inline-block; max-width: 100%; padding: var(--space-3h) var(--space-6b);
    border: none; border-radius: var(--radius-sm); background: var(--surface); color: var(--navy);
    font: inherit; font-size: var(--fs-base-plus); letter-spacing: 0.08em; cursor: pointer;
  }
  .cf-submit:hover { filter: brightness(0.96); }
  .contact .cf-note { margin: var(--space-4) 0 0; font-size: var(--fs-xs); opacity: 0.75; }
  @media (max-width: 720px) {
    .cf-grid { grid-template-columns: 1fr; }
  }

  .client-note {
    background: var(--navy); color: var(--surface); font-size: var(--fs-sm);
    text-align: center; padding: var(--space-2h) var(--space-4b); line-height: 1.6;
  }

  footer { padding: var(--space-5b) var(--space-4b); text-align: center; font-size: var(--fs-xs); color: var(--muted); }
  .sample-badge {
    display: inline-block; margin-bottom: var(--space-2); font-size: var(--fs-2xs); letter-spacing: 0.12em;
    border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px var(--space-3);
  }

  /* ── ご参考サイトの色・書体・構成を反映 ── */
  body.theme-b {
    --navy: #252a57;
    --navy-light: #3f4a86;
    --indigo: #3880b6;
    --green: #3880b6;
    --gold: #9499a7;
    --bg: #f6f5f2;
    --ink: #333333;
  }
  body.theme-b.acc-cur { --green: #036eb7; }
  body.theme-b.acc-navy { --green: #3880b6; }
  body.theme-b.acc-indigo { --green: #294a8f; }
  body.theme-b.acc-green { --green: #1f5c3d; }
  body.theme-b.acc-teal { --green: #146b6b; }
  body.theme-b.acc-wine { --green: #7a2e34; }

  body.theme-b header { background: rgba(255, 255, 255, 0.96); box-shadow: 0 2px 10px rgba(31, 51, 82, 0.07); }
  body.theme-b .header-inner,
  body.theme-b .hero .copy,
  body.theme-b .inner { max-width: var(--container); }
  body.theme-b .header-tel {
    --tel-hit-padding: 3px;
    position: relative;
    padding-block: var(--tel-hit-padding); margin-block: calc(-1 * var(--tel-hit-padding));
    display: grid; grid-template-columns: auto auto; align-items: center; gap: var(--space-2h);
    flex: none; padding-left: var(--space-4a); border-left: 1px solid transparent;
    font-family: inherit; color: var(--navy); text-decoration: none; line-height: 1.35;
  }
  /* 押せる余白を広げても、左の罫線は元の長さと位置を保つ。 */
  body.theme-b .header-tel::before {
    content: ""; position: absolute; left: -1px;
    top: var(--tel-hit-padding); bottom: var(--tel-hit-padding);
    border-left: 1px solid var(--line);
  }
  .header-tel .tel-ico { width: 26px; height: 26px; color: var(--gold); }
  .header-tel-text { display: grid; gap: 1px; }
  .header-tel-label { font-size: var(--fs-2xs); font-weight: 400; color: var(--muted); letter-spacing: 0.04em; }
  .header-tel-num { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
  .header-tel-hours { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: normal; }
  body.theme-b .btn-primary,
  body.theme-b .btn-white { border-radius: var(--radius-sm); }
  body.theme-b .b-only { display: block; }
  body.theme-b .a-only { display: none; }
  body.theme-b span.b-only { display: inline; }
  body.theme-b .sec-label {
    font-family: var(--serif); font-size: clamp(26px, 3.2vw, 34px); color: var(--navy);
    letter-spacing: 0.12em; margin-bottom: 2px;
  }
  body.theme-b .sec-title {
    font-family: inherit; margin-bottom: var(--space-6); letter-spacing: 0.1em;
  }
  body.theme-b :where(.sec-label) + .sec-title {
    font-size: var(--fs-base-plus); color: var(--gold); font-weight: 400;
  }
  body.theme-b .sec-title:not(:where(.sec-label + .sec-title)) {
    font-size: var(--fs-2xl); color: var(--navy); font-weight: 700;
  }
  body.theme-b .reasons { background: var(--surface); }
  body.theme-b .reason { border-top-color: var(--gold); }
  body.theme-b .client-note { background: var(--surface-2); }
  body.theme-b .client-note { color: var(--ink); }
  body.theme-b .services { background: var(--bg); }
  body.theme-b .svc {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 var(--space-4b); align-items: start;
    border: none; border-bottom: 1px solid var(--line); border-radius: 0;
    background: transparent; padding: var(--space-4c) 0; overflow: visible;
  }
  body.theme-b .svc .icon { display: none; }
  body.theme-b .svc .body { display: contents; padding: 0; }
  body.theme-b .svc .num {
    font-family: var(--serif); font-size: var(--fs-2xl); color: var(--green);
    grid-row: 1 / span 2; line-height: 1; padding-top: var(--space-1);
  }
  body.theme-b .svc h4 { margin: 0 0 var(--space-1h); }
  body.theme-b .focus h2 { font-family: var(--serif); font-size: 22px; white-space: nowrap; }
  body.theme-b .focus p { font-size: var(--fs-base); line-height: var(--lh-relaxed); }
  body.theme-b .focus a {
    background: var(--surface); border-radius: var(--radius-sm); color: var(--green); font-weight: 700;
    padding: 11px var(--space-4a); text-decoration: none; white-space: nowrap;
  }
  /* 0.08em は説明の字間、700 は強調用の太さ、8px はブラケットとの間隔 */
  .gr-caption { font-size: var(--fs-2xs); letter-spacing: 0.08em; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
  /* content の greeting-cols と同一グリッドで、区間が本文列/写真列に実寸で一致する（1.618 : 1 は黄金比） */
  .gr-scale { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: var(--space-7); }
  /* 各区間 = 寸法ブラケット（上辺＋左右の縦キャップ）。高さ16px、線幅2pxで列の全幅を示す */
  .gr-seg { position: relative; height: 16px; border: 2px solid currentColor; border-bottom: 0; display: flex; align-items: flex-start; justify-content: center; }
  .gr-seg-copy { color: var(--navy); }   /* 本文側=紺 */
  .gr-seg-photo { color: var(--gold); }  /* 写真側=金。2区間を色で判別 */
  /* ラベルを9px上げて上辺に重ね、左右8pxの地色で線を切る。700は強調用の太さ */
  .gr-label { position: relative; top: -9px; background: var(--surface); padding: 0 8px; font-size: var(--fs-2xs); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

  body.theme-b .greeting { background: var(--surface); }
  body.theme-b .greeting-cols {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-7); align-items: start;
  }
  body.theme-b .greeting .greeting-copy { grid-column: 1; grid-row: 1; }
  body.theme-b .greeting .rep-carousel { grid-column: 2; grid-row: 1; }
  .profile { margin-top: var(--space-5b); padding-top: var(--space-4b); border-top: 1px solid var(--line); }
  .profile-name { font-size: 21px; color: var(--navy); margin: var(--space-1) 0 var(--space-4); text-align: center; }
  .profile dl { display: grid; gap: var(--space-3); font-size: var(--fs-sm); }
  .profile dl > div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: var(--space-4); }
  .profile dt { color: var(--muted); }
  body.theme-b .profile-career {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-4b, 20px);
    margin-top: var(--space-5, 24px);
    background: var(--bg);
  }
  body.theme-b .career-title { font-size: var(--fs-sm); color: var(--navy); margin: 0 0 var(--space-3, 12px); }
  /* 年と内容を対にし、折り返しを内容の列に収める。 */
  body.theme-b .career-list {
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7em 1em; margin: 0; padding: 0; font-size: var(--fs-sm);
  }
  body.theme-b .career-list > dt { white-space: nowrap; }
  body.theme-b .career-list > dd { margin: 0; }
  body.theme-b .career-facts {
    margin: var(--space-4) 0 0;
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
    font-size: var(--fs-sm);
  }
  body.theme-b .career-facts > div { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: var(--space-3); }
  body.theme-b .career-facts > div + div { margin-top: var(--space-1); }
  body.theme-b .career-facts dt { color: var(--muted); font-size: var(--fs-sm); }
  body.theme-b .career-facts dd { margin-left: 0; }
  body.theme-b .career-sub { margin: 0.25em 0 0.4em; padding-left: 1.1em; list-style: none; }
  body.theme-b .career-sub > li { position: relative; margin: 0.2em 0; color: var(--muted); }
  body.theme-b .career-sub > li::before { content: "・"; position: absolute; left: -1.1em; }
  body.theme-b .profile-intro p + p { margin-top: 1em; }
  body.theme-b .access { background: var(--bg); }
  body.theme-b .access.alt-surface { background: var(--surface); }
  body.theme-b .access-details { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  body.theme-b .map-slot {
    position: relative;
    padding: 0; border-left: 0; background: var(--surface-2);
    border-radius: var(--radius-sm); overflow: hidden; min-height: 0;
  }
  body.theme-b .map-slot .map-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 30px;
    transform: translate(-50%, -100%);
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 0C6 0 1 5 1 11c0 8 11 21 11 21s11-13 11-21C23 5 18 0 12 0z' fill='%23e8453c' stroke='%23ffffff' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='11' r='4' fill='%23ffffff'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
  }
  body.theme-b .map-slot iframe { display: block; width: 100%; height: 340px; border: 0; }
  .map-slot strong { display: block; color: var(--navy); margin-bottom: var(--space-1); font-size: var(--fs-base); }
  /* 会社概要の住所表。`.access dl` だと `.access inheritance` の3面に置いた
     どの定義リストにも住所表の作り（列配置・行の罫・強では白パネル）が乗る。
     dl は office-info partial の1つだけで、必ず .access-details の中にある。 */
  body.theme-b .access-details dl { border-top: 1px solid var(--line); }
  /* 見出しは内容幅、値は残りの幅を使う。 */
  body.theme-b .access-details dl div {
    display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-5); padding: var(--space-4a) 0;
    border-bottom: 1px solid var(--line); font-size: var(--fs-base);
  }
  @media (min-width: 961px) {
    /* 全7行で列を共有し、最長の「対応エリア」が1行に収まる内容幅に揃える。
       項目名と値は32px空ける。960px以下の縦配置には適用しない。 */
    body.theme-b .access-details dl {
      display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: var(--space-6);
    }
    body.theme-b .access-details dl div {
      grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: var(--space-6);
    }
  }
  body.theme-b .access dt { color: var(--muted); }
  .dd-note { display: block; color: var(--muted); }
  body.theme-b .office-name-secondary { white-space: nowrap; }
  @media (max-width: 720px) {
    body.theme-b .office-name-separator { display: none; }
    body.theme-b .office-name-secondary { display: block; }
  }
  body.theme-b .fixed-cta {
    position: fixed; right: 20px; bottom: 20px; z-index: 90; background: var(--indigo);
    color: var(--surface); border-radius: var(--radius-sm); box-shadow: 0 5px 18px rgba(15, 20, 85, 0.25);
    padding: var(--space-3) var(--space-4c); text-decoration: none; font-weight: 700;
    opacity: 1; visibility: visible;
    transition: opacity 180ms ease, visibility 0s;
  }
  body.theme-b .fixed-cta.is-contact-visible {
    opacity: 0; visibility: hidden;
    transition: opacity 180ms ease, visibility 0s 180ms;
  }
  @media (prefers-reduced-motion: reduce) {
    body.theme-b .fixed-cta,
    body.theme-b .fixed-cta.is-contact-visible { transition: none; }
  }
  body.theme-b .contact { background: linear-gradient(160deg, #0f1455 0%, #0b0f3d 100%); }
  body.theme-b footer { background: var(--navy); color: rgba(255, 255, 255, 0.6); border-top: 1px solid rgba(255, 255, 255, 0.08); }
  body.theme-b footer a { color: rgba(255, 255, 255, 0.8); }
  body.theme-b .sample-badge { border-color: rgba(255, 255, 255, 0.28); color: rgba(255, 255, 255, 0.75); }
  body.theme-b .faq { background: var(--bg); }
  body.theme-b .faq-list { margin-top: var(--space-2); border-top: 1px solid var(--line); }
  body.theme-b .faq-item { padding: var(--space-4c) 0; border-bottom: 1px solid var(--line); }
  body.theme-b .faq-q {
    font-size: var(--fs-md); font-weight: 700; color: var(--navy); margin: 0 0 var(--space-2);
    padding-left: var(--space-5b); position: relative;
  }
  body.theme-b .faq-q::before {
    content: "Q"; position: absolute; left: 0; top: -1px;
    color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: var(--fs-lg);
  }
  body.theme-b .faq-a {
    font-size: var(--fs-base); color: var(--muted); margin: 0; line-height: var(--lh-loose);
    padding-left: var(--space-5b); position: relative;
  }
  body.theme-b .faq-a::before {
    content: "A"; position: absolute; left: 0; top: 0;
    color: var(--navy); font-family: var(--serif); font-weight: 700; font-size: var(--fs-lg); opacity: 0.45;
  }
  body.theme-b .faq-a + .faq-a { margin-top: var(--space-2); }
  body.theme-b .faq-a + .faq-a::before { content: none; }
  @media (max-width: 960px) {
    /* 4行の電話ブロックは、768px でこのリンクが12px はみ出し、ページ全体に
       横スクロールが出ていた（2026-10-09 実測）。狭い画面では受話器の印だけにする。
       押せる大きさは44px角を確保し、読み上げには a の aria-label が残る。 */
    body.theme-b .header-tel { grid-template-columns: auto; justify-items: center; align-content: center; min-width: 44px; min-height: 44px; padding-left: var(--space-3); }
    body.theme-b .header-tel .header-tel-text { display: none; }
    body.theme-b .focus h2 { white-space: normal; }
    body.theme-b .focus a { justify-self: start; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
    /* 狭い画面では会社案内の表と地図を縦に並べる。 */
    body.theme-b .access-details { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 720px) {
    .header-cta { padding: var(--space-2) var(--space-3); font-size: var(--fs-xs); }
    body.theme-b .header-tel { --tel-hit-padding: 11px; padding-left: var(--space-2); }
    body.theme-b .focus h2 { white-space: normal; }
    body.theme-b .focus a { justify-self: start; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
    body.theme-b .greeting-cols { grid-template-columns: 1fr; gap: var(--space-5b); }
    /* 先生のご指定で、スマホは略歴 → 文章 → 写真の順にする。
       読み上げと印刷の順は保ち、720px 以下の表示だけを並べ替える。 */
    body.theme-b .greeting .greeting-copy { display: flex; flex-direction: column; order: 0; }
    /* 見出しは年表の名前なので、年表と一緒に上げる。置いていくと
       年表と文章の間に挟まり、どちらの見出しにも読めなくなる。 */
    body.theme-b .greeting .career-title { order: -2; }
    body.theme-b .greeting .profile-career { order: -1; }
    body.theme-b .greeting .rep-carousel { order: 1; }
    body.theme-b .greeting .greeting-copy,
    body.theme-b .greeting .rep-carousel { grid-column: auto; grid-row: auto; }
    body.theme-b .greeting .rep-carousel { max-width: 360px; width: 100%; margin: 0 auto; }
    body.theme-b .access-details { grid-template-columns: minmax(0, 1fr); }
    body.theme-b .access-details dl div { grid-template-columns: minmax(0, 1fr); gap: var(--space-1h); padding: var(--space-4) 0; }
    .profile dl > div { grid-template-columns: 1fr; gap: var(--space-1); }
    body.theme-b .fixed-cta { right: 12px; bottom: 12px; font-size: var(--fs-sm); }
  }

  /* 手動の画像比較。操作部は画像の下に配置。 */
  .hero-stage { position: relative; }
  .hero img[hidden] { display: none; }
  .hero-controls {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: var(--space-2); padding: var(--space-2h) var(--space-3); background: var(--surface-2);
  }
  .hero-controls button {
    width: 44px; height: 44px; flex: none; border: 1px solid var(--line);
    border-radius: 50%; background: var(--surface); color: var(--navy); font: inherit; cursor: pointer;
  }
  .hero-dots { display: flex; }
  .hero-dots .hero-dot { width: 36px; border: 0; background: transparent; }
  .hero-dot::before {
    content: ""; display: block; width: 10px; height: 10px; margin: auto;
    border: 1px solid var(--navy); border-radius: 50%;
  }
  .hero-dot[aria-pressed="true"]::before { background: var(--navy); }
  .hero-status { font-size: var(--fs-xs); white-space: nowrap; }
  .hero button:focus-visible, .font-toggle:focus-visible, .notes-toggle:focus-visible {
    outline: 3px solid var(--green); outline-offset: 3px;
  }
  /* 見出し用変数も置換し、内部余白の大きいメイリオの行間・字間を調整。 */
  body.font-meiryo {
    --serif: "Meiryo", "メイリオ", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
    font-family: var(--serif); line-height: var(--lh-base);
    font-feature-settings: "palt" 1; letter-spacing: 0;
  }
  body.font-meiryo button, body.font-meiryo input { font-family: var(--serif); }
  body.theme-b.font-meiryo :is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--serif); font-weight: 700; line-height: var(--lh-tight); letter-spacing: 0.01em;
  }
  body.font-meiryo .sec-label { letter-spacing: 0.06em; }
  body.font-meiryo .focus p,
  body.font-meiryo .contact .ways { line-height: var(--lh-base); }
  @media (max-width: 720px) {
    .hero-stage { min-height: 440px; }
    .hero-stage img { height: max(440px, min(72vh, 560px)); }
    .hero .overlay { padding-bottom: var(--space-5); }
    section[id], .hero[id] { scroll-margin-top: 237px; }
    .hero-status { flex-basis: 100%; text-align: center; }
  }
  /* 先生への確認用の付箋(プレビュー操作バーの「付箋」で表示) */
  section, .hero { position: relative; }
  .pin-note {
    display: none; position: absolute; top: 18px; right: 18px; z-index: 5;
    width: min(280px, calc(100% - 36px)); padding: 12px 14px;
    background: #fff4b8; color: #3a3200; font-size: 12.5px; line-height: 1.7;
    box-shadow: 2px 3px 10px rgba(0,0,0,0.18); transform: rotate(-1.2deg);
    border-radius: 2px;
  }
  body.theme-b .pin-note p {
    margin: 0; max-width: none; font-size: inherit; line-height: inherit;
    color: inherit; opacity: 1;
  }
  body.theme-b .pin-note p + p { margin-top: 6px; }
  body.show-notes .pin-note { display: block; }
  /* focus(相続)の付箋が背高で短いバンドをはみ出し、直下のservicesの付箋と重なるため、services側を下げて分離 */
  #services > .pin-note { top: 64px; }
  .header-tel-wrap { position: relative; flex: none; }
  .header-pin-mini { display: none; }
  body.show-notes .header-pin-mini {
    display: block; position: absolute; bottom: calc(100% + 8px); left: 0;
    width: max-content; max-width: min(260px, 55vw); padding: 7px 12px;
    background: #fff4b8; color: #3a3200; border-radius: 2px;
    font-size: var(--fs-2xs); line-height: 1.6; transform: rotate(-0.6deg);
    box-shadow: 2px 3px 10px rgba(0,0,0,0.18); z-index: 99; white-space: normal;
  }
  @media (max-width: 720px) {
    body.show-notes .header-pin-mini { display: none; }
    .pin-note { position: static; width: auto; margin: 0 0 20px; transform: rotate(-0.6deg); }
  }
  .logo { display: inline-flex; flex-direction: row; align-items: center; gap: var(--space-2h); }
  .logo-text { display: inline-flex; flex-direction: column; min-width: 0; line-height: 1.15; }
  .logo-main { white-space: normal; overflow-wrap: anywhere; }
  .logo-sub { font-size: inherit; margin-top: 2px; }

/* 切ってはいけない語のまとまりは、CSS ではなく本文中の word joiner（U+2060）で守る。

   word-break: auto-phrase は和文を文節で折るが、切り方を間違えることがある。
   実地（2026-10-08、先生の指摘）:
     「…その中には税務顧問と／して長くお付き合いする…」
       「として」は複合の助詞で1語。行頭の「して」はサ変動詞に読め、意味が変わる。
     「…顧問税理士として、決算・／法人税等の…」
       中黒は前後をつなぐ記号で、行末に残ると宙に浮く。

   最初は white-space: nowrap の span でくくったが、これは使えない。
   行内に要素が入ると Chrome の文節解析が切れ目を1つも返さなくなり、塊ごと
   はみ出す。実測（320px・寄せ方「強」の「相続税申告業務における初回相談からの流れ」）:
     span あり＋auto-phrase  箱288px に対し中身428px（はみ出し）
     span あり＋既定の折り返し 288px
     span なし＋auto-phrase  288px
   word joiner は文字なので解析が切れず、同じ条件で 288px に収まる。
   長い語全体を保護する場合は、その語が収まる器の幅も検証する。

   残す保護は中黒の前後と、複合の助詞・助動詞の内側。
   No102（2026-10-20）で4文字以上のカタカナ内の保護を除去した。
   幅ゼロ・不可視で、pubtext.mjs は照合の前に U+2060 を落とす。
   本文は行末の空きを減らすため通常の折り返しにし、見出しとリードは文節で折る。
   検査: node docs/verify/breaks3.mjs / node docs/verify/breaks2.mjs */
:is(h1, h2, h3, h4, h5, .sec-title, .step-label, .kx-pa-title) {
  word-break: auto-phrase;
}

/* ═══ komon.css より統合（2026-10-07。作り手の衝突回避で分けていたもの） ═══ */
/* komon ページで新たに必要になった部品のCSS。
   担当者以外は編集しない。site.css の後、near/*.css の前に読み込まれる。
   作業完了後に統括者が site.css へ統合する。

   near/*.css が後から読まれるので、near 側に同名の指定がある箇所は
   クラス数を1つ多くして（= 詳細度を上げて）効かせている。
   色は ASC のロゴ確定色だけ。すべて site.css の変数を参照する。 */

/* ── 1. お悩み ⇔ 弊事務所の強み の、強み側の見出し行 ────────────
   新パワポの強み5点は「見出し＋本文」の2層。右カラムの1行目を
   見出しとして立てるためのクラス。.issue-a の中だけで効く。 */
body.theme-b .inheritance .issue-a .issue-a-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-2);
  text-wrap: pretty;
}

/* 一覧のあとに置く締めの一文。一覧と地続きに見えないよう間を取る。 */
body.theme-b .inheritance .issue-closing {
  margin-top: var(--space-6);
}

/* ── 2. ④業務スタートに付く「状況別のご提案」──────────────────
   お悩み⇔強みと同じ2カラムの対なので .issue-head / .issue-list を
   そのまま使う。違いは、左カラムが☑の付かない語句であること。 */
body.theme-b .inheritance .situation {
  margin-top: var(--space-6);
}
body.theme-b .inheritance .situation > .step-label.situation-label {
  margin-bottom: var(--space-5);
}
/* ☑がないので、☑用のぶら下げインデントを戻す */
body.theme-b .inheritance .situation .issue-list .issue-q {
  padding-left: 0;
  text-indent: 0;
}

/* ── 3. 税理士へ依頼している主な業務内容（18項目）────────────────
   パワポは 1〜9 / 10〜18 の2列組み。段組み（columns）にすると
   番号の並びが原稿と同じ「左列が上から、右列が続き」になる。
   狭い幅では1列に落とす。 */
body.theme-b .inheritance .task-list {
  list-style: none;
  columns: 2;
  column-gap: var(--space-7);
  border-top: 1px solid var(--line);
}
body.theme-b .inheritance .task-list > li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  line-height: var(--lh-base);
}
body.theme-b .inheritance .task-no {
  flex: none;
  min-width: 1.8em;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}
body.theme-b .inheritance .task-name {
  min-width: 0;
  font-size: var(--fs-base-plus);
  color: var(--ink);
  text-wrap: pretty;
}
@media (max-width: 720px) {
  body.theme-b .inheritance .task-list {
    columns: 1;
  }
}

/* ═══ jigyo.css より統合（2026-10-07。作り手の衝突回避で分けていたもの） ═══ */
/* jigyo ページで新たに必要になった部品のCSS。
   担当者以外は編集しない。site.css の後、near/*.css の前に読み込まれる。
   作業完了後に統括者が site.css へ統合する。 */

/* ══ 事業承継・資産承継（#succession）════════════════════════════════
   元が図解スライド2枚。関係ごとに形を変えている。
   - 並列の比較（承継方法3通り／4つの対策）→ <table>（軸を列で揃える）
   - 条件と選択肢の対応（資金の準備方法）   → <table>（左=条件／右=選択肢）
   - 順序のある手順（現状把握）             → .flow（→ でつないだ3段）
   - 観点の束（ポイント集4ブロック）        → .concern-panel + .check-list を2列
   near/*.css は table・.flow・h4 を触らないので、ここの指定が
   「現在／弱／中／強」の4状態で共通に効く。.concern-panel と .check-list は
   逆に near 側の指定に乗せるため、余白・しるしに手を入れない。
   色は既存の変数のみ（--navy / --muted / --line / --surface / --bg）。 */

/* 見出し（h3 は near 側が持つので h4 だけ） */
#succession h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: var(--lh-tight);
  color: var(--navy);
  margin-bottom: var(--space-4);
}
#succession .inheritance-section > * + h4 { margin-top: var(--space-6); }
#succession .inheritance-section > * + .prose,
#succession .inheritance-section > * + .grid { margin-top: var(--space-6); }

/* ── 比較・対応の表 ───────────────────────────────────────── */
#succession .table-wrap { overflow-x: visible; }
#succession table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  table-layout: fixed;
}
#succession thead th {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: left;
  vertical-align: bottom;
}
#succession tbody th,
#succession tbody td {
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
#succession tbody tr:last-child > * { border-bottom: 0; }
#succession tbody th {
  font-weight: 700;
  font-size: var(--fs-base-plus);
  color: var(--navy);
}
/* 選択肢の番号。色では分けず、書体と大きさで本文と差をつける */
#succession .num {
  display: block;
  font-family: var(--serif);
  font-size: var(--fs-xl);
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: var(--space-1);
}
#succession tbody td p + p { margin-top: var(--space-2); }
#succession tbody td ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#succession tbody td ul > li {
  padding-left: 1.4em;
  text-indent: -1.4em;
}
#succession tbody td ul > li + li { margin-top: var(--space-2); }
#succession tbody td a {
  color: var(--navy);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
/* 列幅。3列（承継方法）は左の選択肢列を細く、2列（資金の準備方法・4つの対策）は
   左を条件／対策の名前が2行で収まる幅にする */
#succession table:has(thead th:nth-child(3)) thead th { width: 40%; }
#succession table:has(thead th:nth-child(3)) thead th:first-child { width: 20%; }
#succession table:not(:has(thead th:nth-child(3))) thead th:first-child { width: 38%; }

/* ≦720px：表をカードに畳む。横スクロールを出さずに軸の見出しを各値へ付け直す */
@media (max-width: 720px) {
  #succession table,
  #succession tbody,
  #succession tbody tr,
  #succession tbody th,
  #succession tbody td { display: block; width: auto; }
  #succession thead { display: none; }
  #succession tbody tr {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--line);
  }
  #succession tbody tr:last-child { border-bottom: 0; }
  #succession tbody th,
  #succession tbody td {
    padding: 0 var(--space-4);
    border-bottom: 0;
  }
  #succession tbody td { margin-top: var(--space-3); }
  /* 畳んだ後も「どの軸の値か」が消えないように、列見出しを各値の上へ出す */
  #succession tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: var(--space-1);
    font-size: var(--fs-xs);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--muted);
  }
}

/* ── 順序のある手順（財産の評価 → 税額試算 → 納税財源の確保）────── */
#succession .flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-2) var(--space-3);
}
#succession .flow > li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}
#succession .flow > li > span {
  display: block;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--fs-base);
  line-height: var(--lh-tight);
  color: var(--navy);
  overflow-wrap: anywhere;
}
#succession .flow > li + li::before {
  content: "→";
  flex: none;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1;
}

/* ── 観点の束（ポイント集4ブロック）──────────────────────────
   面の見た目と ☑ のぶら下げは near/*.css の .concern-panel / .check-list
   に任せ、ここは並べ方と中の見出しだけを決める */
#succession .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
#succession .concern-panel h4 {
  margin-top: 0;
  margin-bottom: var(--space-3);
  font-size: var(--fs-md);
}
@media (max-width: 720px) {
  #succession .grid { grid-template-columns: minmax(0, 1fr); }
}

/* 保護した長いカタカナ語を収めるため、狭い器では本文に全列を使う。 */
@media (max-width: 960px) {
  body.theme-b .svc .svc-list { grid-column: 1 / -1; }
}

/* No102: TOPに続き、全ページの本文を通常の折り返しにする。
   読み違えを防ぐ中黒・複合の助詞の word joiner は本文に残す。 */
:is(p, li, dd):not(:has(span, p, div, ul, ol, dl, h1, h2, h3, h4, h5)):not(.step-label, .kx-pa-title):not(.sec-title + .inheritance-section > .prose:first-child > p:first-child):not(body.page-top *) {
  word-break: normal;
}

/* No102: 長音符・小書き仮名を行頭に置かない。本文を含む全体に継承する。 */
body { line-break: strict; }
