
  :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; }
  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-xl); font-weight: 700; color: var(--navy); text-decoration: none; }
  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; }
    .logo { font-size: var(--fs-md); }
    .preview-bar { padding: var(--space-2) var(--space-4); }
    nav { justify-content: flex-start; gap: var(--space-3) var(--space-4a); }
  }

  /* ── ヒーロー ── */
  .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: 30em; 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); }
  .sec-title { font-size: clamp(22px, 3vw, 30px); color: var(--navy); margin-bottom: var(--space-6b); }
  .b-only { display: none; }

  /* ── 相続税申告：単一カラムの本文 ── */
  .inheritance .inner { width: 100%; }
  .inheritance .prose,
  .inheritance-section { max-width: 48rem; margin-inline: auto; }
  .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;
  }

  /* ── 事務所案内 ── */
  .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[hidden] { display: none; }
  .rep-slide img {
    width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 16%; display: block;
  }
  /* ①現在（基準）: 紺系の大きめ浮遊シャドウ＋下辺フェード（現行ライブの見え方）。 */
  .rep-slide.blend img {
    object-fit: contain; object-position: center bottom;
    filter: drop-shadow(0 18px 24px rgba(31, 51, 82, 0.18));
    -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  }
  /* ②影ソフト: 下辺フェード無し・小さめの中間色シャドウで浮遊感を抑える。 */
  .rep-slide.soft img { object-fit: contain; object-position: center bottom; filter: drop-shadow(0 10px 16px rgba(40, 40, 44, 0.15)); }
  /* ③影ひかえめ: 影をごく薄く・フェード無しで一番自然な切り抜き。 */
  .rep-slide.faint img { object-fit: contain; object-position: center bottom; filter: drop-shadow(0 4px 8px rgba(30, 30, 30, 0.10)); }
  .rep-slide.bare img { object-fit: contain; object-position: center bottom; filter: drop-shadow(0 2px 5px rgba(30, 30, 30, 0.07)); }
  .rep-slide figcaption { margin-top: var(--space-2h); font-size: var(--fs-xs); color: var(--muted); text-align: center; }
  .rep-controls {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: var(--space-2); margin-top: var(--space-3);
  }
  .rep-controls button {
    width: 40px; height: 40px; flex: none; border: 1px solid var(--line);
    border-radius: 50%; background: var(--surface); color: var(--navy); font: inherit; cursor: pointer;
  }
  .rep-dots { display: flex; }
  .rep-dots .rep-dot { width: 28px; height: 40px; border: 0; background: transparent; cursor: pointer; }
  .rep-dot::before {
    content: ""; display: block; width: 9px; height: 9px; margin: auto;
    border: 1px solid var(--navy); border-radius: 50%;
  }
  .rep-dot[aria-pressed="true"]::before { background: var(--navy); }
  .rep-status { width: 100%; text-align: center; font-size: var(--fs-2xs); color: var(--muted); }

  /* ── 選ばれる理由 ── */
  .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); }
  @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;
    display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4a);
  }
  .svc-group h3.group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  .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); }

  .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: #0f1455;
    --navy-light: #1b2470;
    --green: #036eb7;
    --bg: #f6f5f2;
    --ink: #333333;
  }
  body.theme-b.acc-cur { --green: #036eb7; }
  body.theme-b.acc-navy { --green: #1f3352; }
  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 {
    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 var(--line);
    font-family: inherit; color: var(--navy); text-decoration: none; line-height: 1.35;
  }
  .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-size: var(--fs-base-plus); color: var(--gold); font-family: inherit; font-weight: 400;
    margin-bottom: var(--space-6); letter-spacing: 0.1em;
  }
  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 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 {
    background: var(--navy); color: var(--surface); padding: var(--space-6a) var(--space-4b);
  }
  body.theme-b .focus .inner {
    min-height: 92px; display: grid; grid-template-columns: auto 1fr auto;
    gap: var(--space-5b); align-items: center;
  }
  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; }
  body.theme-b .greeting-copy p + p { margin-top: 1em; }
  .profile { margin-top: var(--space-5b); padding-top: var(--space-4b); border-top: 1px solid var(--line); }
  .profile-role { font-size: var(--fs-xs); color: var(--muted); text-align: center; }
  .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 { margin: 0; padding-left: 1.2em; font-size: var(--fs-sm); }
  body.theme-b .career-list > li { margin: 0.35em 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 .komon-block { margin-top: var(--space-6); }
  body.theme-b .komon-block h3 { font-size: var(--fs-lg); color: var(--navy); margin-bottom: var(--space-3); }
  body.theme-b .komon-concerns, body.theme-b .komon-strengths { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  body.theme-b .komon-concerns li, body.theme-b .komon-strengths li { padding: var(--space-3h) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-base); color: var(--ink); line-height: var(--lh-relaxed); }
  body.theme-b .komon-strengths li { display: flex; gap: var(--space-3); align-items: baseline; }
  body.theme-b .komon-strengths .n { color: var(--green); font-family: var(--serif); font-weight: 700; flex: none; }
  body.theme-b .access-details { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1.1fr) 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); }
  body.theme-b .access dl { border-top: 1px solid var(--line); }
  body.theme-b .access dl div {
    display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: var(--space-6); padding: var(--space-4a) 0;
    border-bottom: 1px solid var(--line); font-size: var(--fs-base);
  }
  body.theme-b .access dt { color: var(--muted); }
  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;
  }
  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) {
    body.theme-b .header-tel { display: none; }
    body.theme-b .header-tel-wrap { display: none; }
  }
  @media (max-width: 720px) {
    .header-cta { padding: var(--space-2) var(--space-3); font-size: var(--fs-xs); }
    body.theme-b .header-tel { display: none; }
    body.theme-b .header-tel-wrap { display: none; }
    body.theme-b .focus .inner { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
    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); }
    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: 1fr; }
    body.theme-b .access dl div { grid-template-columns: 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: column; line-height: 1.15; }
  .logo-main { white-space: normal; overflow-wrap: anywhere; }
  .logo-sub { font-size: var(--fs-2xs); font-weight: 400; opacity: 0.75; margin-top: 2px; }
