:root{
  --paper: #EDE8DB;
  --paper-soft: #F6F2E7;
  --paper-2: #E4DECD;
  --ink: #1B2F47;
  --ink-soft: #4A5A6D;
  --indigo-tint: #DDE5EA;
  --kaki: #B15A34;
  --kaki-deep: #8C4527;
  --kaki-on-ink: #D98A63;
  --line: #C9C2AE;
  --paper-on-ink: #EDE8DB;
  --soft-on-ink: #AEB9C6;
  --line-on-ink: rgba(237,232,219,0.22);

  /* タイポグラフィスケール */
  --fs-note:    11px;  /* 最小注記・電話受付時間 */
  --fs-caption: 12px;  /* キャプション・※注記 */
  --fs-small:   13px;  /* ラベル・表の補助 */
  --fs-base:    14px;  /* 表本文・リスト・ナビ */
  --fs-body:    15px;  /* 本文 */
  --fs-lead:    17px;  /* カード見出し h3・強調数値 */
  --fs-num:     20px;  /* 電話番号 */
  --fs-h2:      27px;  /* セクション見出し */
  --fs-h1:      38px;  /* ページタイトル */
}
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: var(--ink);
  line-height: 1.8;
}
.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
}
a{ color: inherit; }
:focus-visible{
  outline: 2px solid var(--kaki-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- signature motif: the tandem rail (二本の並走する線) ---------- */
.rail{
  display: inline-block;
  width: 52px;
  height: 8px;
  border-top: 1px solid var(--kaki-deep);
  border-bottom: 1px solid var(--kaki-deep);
  vertical-align: middle;
}
.rail.on-ink{ border-color: var(--kaki); }
.rail.long{ width: 100%; }

/* ---------- reveal ---------- */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in{ opacity: 1; transform: none; transition-delay: 0.15s; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ---------- page divider (review-only) ---------- */
.page-divider{
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  background: var(--paper-2);
}
.page-divider::before, .page-divider::after{
  content: "";
  flex: 1;
  height: 7px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- header ---------- */
.utility-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 48px;
  font-size: 12px;
  color: var(--ink-soft);
  gap: 16px;
  flex-wrap: wrap;
}
.utility-links{ display: flex; align-items: center; gap: 18px; }
.utility-links a{ color: var(--ink-soft); text-decoration: none; }
.utility-links a:hover{ color: var(--ink); }
.utility-phone{ display: none; }
.nav-menu-cta{ display: none; }
.site-head{ border-bottom: 1px solid var(--line); }
.topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px 16px;
  gap: 24px;
  border-top: 1px solid var(--line);
}
.mark{
  font-family: 'Shippori Mincho', serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.mark span{
  display: block;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.16em;
  margin-top: 4px;
}
.header-actions{ display: flex; align-items: center; gap: 24px; }
.head-tel{ text-align: right; line-height: 1.5; }
.head-tel .tel-number{
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: block;
}
.head-tel .tel-note{ font-size: 11px; color: var(--ink-soft); letter-spacing: 0.04em; }
.topbar .btn-primary{ padding: 12px 24px; font-size: 13.5px; }

.nav-wrap{ border-top: 1px solid var(--line); }
.nav-row{
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  padding: 15px 48px;
  flex-wrap: wrap;
}
.nav-row a{ color: var(--ink); text-decoration: none; }
.nav-row > a:hover, .nav-item > :is(a, button):hover{ color: var(--kaki-deep); }
.nav-row .current{ color: var(--kaki-deep); }
.nav-item{ position: relative; }
.nav-item > :is(a, button){ display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-item > button{
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--ink);
  letter-spacing: inherit;
}
.nav-item > :is(a, button)::after{ content: "▾"; font-size: 10px; color: var(--ink-soft); }
.dropdown{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  min-width: 186px;
  padding: 6px 0;
  z-index: 20;
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}
@media (hover: hover){
  .nav-item:hover .dropdown, .nav-item:focus-within .dropdown{ display: block; }
}
.nav-item.open .dropdown{ display: block; }
.dropdown a{ display: block; padding: 10px 18px; font-size: 13.5px; white-space: nowrap; }
.dropdown a:hover{ color: var(--kaki-deep); background: var(--paper-2); }
.startup-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--kaki-deep);
  background: var(--paper-2);
  border: 1px solid var(--kaki-deep);
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- breadcrumb ---------- */
.breadcrumb{ padding: 20px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.breadcrumb a{ color: var(--ink-soft); text-decoration: none; }
.breadcrumb span.sep{ margin: 0 8px; }
.breadcrumb span.current{ color: var(--ink); }

/* ---------- buttons ---------- */
.btn-primary{
  display: inline-block;
  background: var(--kaki);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  padding: 16px 34px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background .2s ease;
}
.btn-primary:hover{ background: var(--kaki-deep); }
.btn-ghost{
  display: inline-block;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 15px 30px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  transition: background .2s ease, color .2s ease;
}
.btn-ghost:hover{ background: var(--ink); color: var(--paper); }
.link-secondary{
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.link-secondary:hover{ border-color: var(--kaki-deep); color: var(--kaki-deep); }
.link-more{
  font-size: 13.5px;
  color: var(--kaki-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--kaki-deep);
  padding-bottom: 2px;
}

/* ---------- hero (homepage) ---------- */
.hero{ padding: 84px 0 96px; }
.hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 64px;
  align-items: stretch;
}
.hero-eyebrow{
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--kaki-deep);
  margin: 0 0 26px;
  font-weight: 500;
}
.hero-title{
  font-family: 'Shippori Mincho', serif;
  font-size: 46px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 28px;
  letter-spacing: 0.03em;
}
.hero-lead{
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--ink-soft);
  max-width: 32em;
  margin: 0 0 38px;
}
.hero-actions{ display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-cta-note{
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.hero-cred{
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cred-item{
  flex: 1;
  padding: 18px 16px 16px;
  border-left: 1px solid var(--line);
}
.cred-item:first-child{ border-left: none; padding-left: 0; }
.cred-item:last-child{ padding-right: 0; }
.cred-item::before{
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--kaki);
  margin-bottom: 10px;
}
.cred-num{
  display: block;
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.cred-label{
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  line-height: 1.6;
}
/* 実績バー：740px以下は縦積みに切り替え */
@media (max-width: 740px){
  .hero-cred{ flex-direction: column; border-bottom: none; }
  .cred-item{
    border-left: none;
    border-bottom: 1px solid var(--line);
    padding: 14px 0 12px;
    display: block;
  }
  .cred-item::before{ margin-bottom: 8px; }
  .cred-num{ font-size: 16px; margin-bottom: 4px; }
}
.hero-side{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: stretch;
}
.hero-photo{
  border: 1px dashed var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  min-height: 380px;
}
.tate{
  writing-mode: vertical-rl;
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--ink);
  padding: 10px 0;
  border-left: 1px solid var(--kaki-deep);
  border-right: 1px solid var(--kaki-deep);
  margin: 0 6px;
  align-self: start;
}

/* ---------- section shell ---------- */
.band{ padding: 84px 0; }
.band + .band{ border-top: 1px solid var(--line); }
.band.tinted{ background: var(--paper-2); border-top: 1px solid var(--line); }
.band.dark{
  background: var(--ink);
  color: var(--paper-on-ink);
  border-top: none;
}
.section-head{ margin: 0 0 40px; }
.section-head.centered{ text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--kaki-deep);
  margin: 0 0 14px;
  font-weight: 500;
}
.dark .section-eyebrow{ color: var(--kaki-on-ink); }
.section-head h2{
  font-family: 'Shippori Mincho', serif;
  font-size: 27px;
  font-weight: 600;
  margin: 0;
  line-height: 1.6;
}
.section-note{
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 900px;
  margin: 14px 0 0;
}

/* ---------- page hero (subpages) ---------- */
.page-hero{ padding: 44px 0 68px; }
.page-hero-inner{ max-width: 900px; }
.page-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--kaki-deep);
  margin: 0 0 18px;
  font-weight: 500;
}
.page-title{
  font-family: 'Shippori Mincho', serif;
  font-size: 38px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 24px;
}
.page-lead{
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-soft);
  margin: 0 0 34px;
}
.page-hero .btn-primary{ margin-bottom: 8px; }
.page-hero-note{
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 18px 0 0;
}
.page-hero-note a{ color: var(--kaki-deep); }

/* ---------- concerns ---------- */
.concern-list{
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
}
.concern-list li{
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.8;
}
.concern-list li::before{
  content: "";
  flex: none;
  width: 22px;
  height: 7px;
  border-top: 1px solid var(--kaki-deep);
  border-bottom: 1px solid var(--kaki-deep);
  transform: translateY(-3px);
}
.concern-list li:first-child{ border-top: 1px solid var(--line); }
.concerns-followup{ text-align: center; margin: 44px auto 0; max-width: 560px; }
.concerns-followup p{
  font-size: 15px;
  line-height: 2;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* ---------- stance (why tandem) ---------- */
.stance-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
/* 2本柱レイアウト（advisory.html の POLICY セクション用） */
.stance-grid--duo{ grid-template-columns: repeat(2, 1fr); }
.stance-item .rail{ margin-bottom: 20px; }
.stance-item h3{
  font-family: 'Shippori Mincho', serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.7;
  margin: 0 0 14px;
}
.stance-item p{
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- teaser cards ---------- */
.teaser-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.teaser-card{
  background: var(--paper);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: background .2s ease;
}
.teaser-card:hover{ background: var(--paper-2); }
.teaser-card h3{
  font-family: 'Shippori Mincho', serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 12px;
}
.teaser-card p{
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 20px;
  flex: 1;
}
.teaser-card .go{
  font-size: 13px;
  color: var(--kaki-deep);
  letter-spacing: 0.04em;
}
.teaser-card .go::after{ content: " →"; }

/* ---------- message band (代表メッセージ) ---------- */
.message-grid{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}
.message-photo{
  width: 210px;
  min-height: 260px;
  border: 1px dashed var(--line-on-ink);
  color: var(--soft-on-ink);
  font-size: 12px;
  line-height: 1.8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
}
.message-body blockquote{
  margin: 0 0 26px;
  padding: 0;
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.9;
}
.message-body p{
  font-size: 14.5px;
  line-height: 2;
  color: var(--soft-on-ink);
  margin: 0 0 26px;
}
.message-sign{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.message-sign .who{
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--paper-on-ink);
}
.message-sign .who strong{
  font-family: 'Shippori Mincho', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-left: 10px;
}
.message-sign a{
  font-size: 13px;
  color: var(--paper-on-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-on-ink);
  padding-bottom: 2px;
}
.message-sign a:hover{ border-color: var(--kaki); color: #fff; }

/* ---------- news ---------- */
.news-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}
.news-head h2{ font-family: 'Shippori Mincho', serif; font-size: 22px; font-weight: 600; margin: 0; }
.news-list{ list-style: none; margin: 0; padding: 0; }
.news-list li{ border-bottom: 1px solid var(--line); }
.news-list li:first-child{ border-top: 1px solid var(--line); }
.news-list a{
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 4px;
  font-size: 14px;
  text-decoration: none;
}
.news-list a:hover .news-title{ color: var(--kaki-deep); }
.news-date{ flex: none; color: var(--ink-soft); font-size: 13px; letter-spacing: 0.02em; }
.news-tag{
  flex: none;
  font-size: 11px;
  color: var(--kaki-deep);
  border: 1px solid var(--kaki-deep);
  padding: 2px 8px;
  border-radius: 2px;
}
.news-title{ color: var(--ink); }

/* ---------- profile ---------- */
.profile-grid{
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.profile-side{ position: sticky; top: 24px; }
.profile-photo-slot{
  border: 1px dashed var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.9;
  padding: 90px 20px;
  text-align: center;
  margin: 0 0 22px;
}
.profile-name-block{ border-top: 1px solid var(--line); padding-top: 18px; }
.profile-name-block .role{ font-size: 12px; letter-spacing: 0.14em; color: var(--kaki-deep); margin: 0 0 6px; }
.profile-name-block .name{
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
}
.profile-name-block .meta{ font-size: 12.5px; color: var(--ink-soft); line-height: 2; margin: 0; }
.profile-block{ max-width: 640px; }
.profile-block h3{
  font-family: 'Shippori Mincho', serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-block h3 .rail{ width: 26px; }
.profile-block .para-summary{
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.9;
  margin: 0 0 18px;
}
.profile-block p{
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.profile-block .para-group{ margin-bottom: 40px; }

/* ---------- office summary table ---------- */
.office-table{ width: 100%; max-width: 720px; border-collapse: collapse; font-size: 14.5px; }
.office-table th, .office-table td{
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.office-table th{
  width: 180px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.office-table tr:first-child th, .office-table tr:first-child td{ border-top: 1px solid var(--line); }

/* ---------- audience ---------- */
.audience-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.audience-card{ background: var(--paper); padding: 28px 24px; font-size: 14px; line-height: 1.95; color: var(--ink-soft); }
.audience-card .label{
  display: block;
  font-family: 'Shippori Mincho', serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

/* ---------- flow ---------- */
.flow-list{ counter-reset: flow; list-style: none; margin: 0; padding: 0; max-width: 760px; }
.flow-list li{
  counter-increment: flow;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.flow-list li:first-child{ border-top: 1px solid var(--line); }
.flow-list li::before{
  content: counter(flow, decimal-leading-zero);
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  color: var(--kaki-deep);
  font-weight: 600;
}
.flow-list h3{ font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.flow-list p{ font-size: 14px; line-height: 1.9; color: var(--ink-soft); margin: 0; }

/* ---------- year track (advisory) ---------- */
.year-track{
  max-width: 760px;
  border-left: 1px solid var(--kaki);
  padding-left: 28px;
}
.flow-list.timed li{ grid-template-columns: 92px 1fr; }
.flow-list.timed li::before{ content: none; }
.flow-list.timed .when,
.year-parallel .when{
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding-top: 2px;
}
.year-loop{
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
.year-parallel{
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  margin-top: 30px;
}
.year-parallel::before{
  content: "";
  position: absolute;
  left: -29px;
  top: 9px;
  width: 14px;
  height: 5px;
  border-top: 1px solid var(--kaki);
  border-bottom: 1px solid var(--kaki);
}
.year-parallel h3{ font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.year-parallel p{ font-size: 14px; line-height: 1.9; color: var(--ink-soft); margin: 0; }

.flow-note-block{
  margin-top: 48px;
  padding-left: 76px;
}
.flow-note-block p{
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin: 0 0 20px;
  max-width: 640px;
}

.policy-note{
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.95;
  margin: 0 0 40px;
}

/* ---------- pricing ---------- */
.pricing-table{ width: 100%; max-width: 760px; border-collapse: collapse; font-size: var(--fs-base); }
.pricing-table th, .pricing-table td{
  text-align: left;
  padding: 16px 14px;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}
.pricing-table thead th{
  font-size: var(--fs-caption);
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
}
.pricing-table td.amount, .pricing-table th.amount{
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pricing-table tr.total td{ font-weight: 700; color: var(--ink); background: var(--paper-2); }
.pricing-table tr.total:first-of-type td{ border-top: 1px solid var(--ink); }
.pricing-caption{
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin: 24px 0 0;
  line-height: 1.9;
  max-width: 760px;
}

/* ---------- 個人/法人 切替 ---------- */
.seg-toggle{
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 0 18px;
}
.seg-btn{
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 12px 24px;
  min-width: 120px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.seg-btn + .seg-btn{ border-left: 1px solid var(--line); }
.seg-btn:hover{ color: var(--ink); }
.seg-btn.is-active{
  background: var(--ink);
  color: var(--paper);
}
.pricing-table--wide tbody[data-segment]{ display: none; }
.pricing-table--wide tbody[data-segment].is-active{ display: table-row-group; }

/* --- 約束（【約】）：灰色の※と視覚的に分ける肯定キャプション --- */
.fee-promise{
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--ink);
  max-width: 760px;
  margin: 20px 0 0;
  padding: 3px 0 3px 14px;
  border-left: 2px solid var(--kaki-deep);
}


/* ---------- 料金の構成図 ---------- */
.fee-structure{
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 10px;
}
.fee-group{
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 18px 20px 20px;
}
.fee-group-label{
  font-size: var(--fs-note);
  letter-spacing: 0.1em;
  color: var(--kaki-deep);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.fee-items{ display: grid; gap: 8px; }
.fee-item{
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.fee-item .fee-note{
  display: block;
  font-size: var(--fs-note);
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 1px;
}
.fee-op{
  align-self: center;
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  color: var(--kaki-deep);
  flex: none;
}
.fee-group--total{
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fee-group--total .fee-group-label{ border-bottom: none; margin-bottom: 4px; padding-bottom: 0; }
.fee-item--total{
  font-family: 'Shippori Mincho', serif;
  font-size: var(--fs-lead);
}
.fee-structure-note{
  font-size: var(--fs-caption);
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 36px;
}
.fee-structure-note a{ color: var(--kaki-deep); text-decoration: underline; }
@media (max-width: 640px){
  .fee-structure{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-width: 320px;
  }
  .fee-op{
    align-self: center;
    padding: 0;
    line-height: 1;
    font-size: 24px;
    margin: 4px 0;
  }
  .fee-group{ text-align: center; }
  .fee-group--total{
    text-align: center;
    border-color: var(--kaki-deep);
  }
  .fee-structure-note{ margin-bottom: 30px; }
}

/* ---------- 料金ページ：状況別ジャンプ目次（カード型・2カラム） ---------- */
#pricing .page-hero{
  padding-bottom: 40px;
}
/* 料金ページ：章の切れ目を明確にする非対称余白 */
#pricing .band{ padding-top: 40px; }

/* 章番号（アイブロウ内） */
.section-eyebrow .sec-num{
  font-family: 'Shippori Mincho', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--kaki-deep);
  letter-spacing: 0.08em;
}
/* 章番号（ジャンプ目次カード内） */
.fee-index .fee-num{
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--kaki-deep);
  flex: none;
  transition: color .2s ease;
}
.fee-index .fee-label{ flex: 1; text-align: left; }

/* 目次バンド：前後の余白を詰めた専用バンド */
.band--index{
  border-top: 1px solid var(--line);
  padding-top: 32px;
  padding-bottom: 32px;
}
.fee-index{
  padding: 0;
}
.fee-index-label{
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--kaki-deep);
  margin: 0 0 14px;
}
.fee-index ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 760px;
}
.fee-index a{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
  line-height: 1.5;
  transition: background .2s ease, color .2s ease;
}
.fee-index a::after{
  content: "↓";
  color: var(--kaki-deep);
  font-size: 13px;
  flex: none;
  transition: color .2s ease;
  margin-left: auto;
}
.fee-index a:hover{
  background: var(--ink);
  color: var(--paper);
}
.fee-index a:hover .fee-num{
  color: var(--paper);
}
.fee-index a:hover::after{
  color: var(--paper);
}
@media (max-width: 640px){
  .fee-index ul{ grid-template-columns: 1fr; }
  .fee-index a{ padding: 15px 16px; }
}

/* ---------- faq ---------- */
.faq-list{ max-width: 100%; }
.faq-list.centered{ max-width: 760px; margin: 0 auto; }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item:first-child{ border-top: 1px solid var(--line); }
.faq-item summary{
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 4px;
  font-size: var(--fs-body);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-q-mark{ flex: none; font-family: 'Shippori Mincho', serif; color: var(--kaki-deep); font-size: var(--fs-lead); font-weight: 600; }
.faq-answer{
  display: flex;
  gap: 18px;
  padding: 0 4px 24px;
  font-size: var(--fs-base);
  line-height: 1.95;
  color: var(--ink-soft);
}
.faq-a-mark{ flex: none; font-family: 'Shippori Mincho', serif; color: var(--ink-soft); font-size: var(--fs-lead); font-weight: 600; }

/* FAQ下部の補足導線 */
.faq-more{
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin: 28px 0 0;
}

/* ---------- closing cta ---------- */
.cta-band{
  background: var(--ink);
  color: var(--paper-on-ink);
  padding: 76px 0;
}
.cta-inner{ text-align: center; max-width: 620px; margin: 0 auto; }
.cta-inner .rail{ margin-bottom: 24px; }
.cta-inner h2{
  font-family: 'Shippori Mincho', serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.7;
}
.cta-inner p{ font-size: 14px; color: var(--soft-on-ink); margin: 0 0 32px; line-height: 2; }
.cta-actions{ display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-tel{ text-align: left; line-height: 1.5; }
.cta-tel .tel-number{
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--paper-on-ink);
  text-decoration: none;
  display: block;
}
.cta-tel .tel-note{ font-size: 11.5px; color: var(--soft-on-ink); }

/* ---------- footer ---------- */
.footer{ border-top: 1px solid var(--line); padding: 52px 0 40px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.footer-grid h4{
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 16px;
  letter-spacing: 0.08em;
}
.footer-mark{ font-family: 'Shippori Mincho', serif; font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.footer-address{ font-size: 13px; line-height: 2; color: var(--ink-soft); margin: 0; }
.footer-links{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a{ font-size: 13px; color: var(--ink); text-decoration: none; }
.footer-links a:hover{ color: var(--kaki-deep); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- responsive ---------- */
@media (max-width: 960px){
  .hero-grid{ grid-template-columns: 1fr; gap: 44px; }
  .hero-photo{ min-height: 280px; }
  .stance-grid{ grid-template-columns: 1fr; gap: 40px; }
  .message-grid{ grid-template-columns: 1fr; gap: 36px; }
  .message-photo{ width: 100%; min-height: 200px; }
  .profile-grid{ grid-template-columns: 1fr; gap: 40px; }
  .profile-side{ position: static; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: end; }
  .profile-photo-slot{ margin: 0; padding: 60px 16px; }
}
@media (max-width: 860px){
  .container{ padding: 0 24px; }
  .band{ padding: 56px 0; }
  .topbar .mark {
    font-size: 15px;
  }
  .page-divider{ display: none; } /* マルチページ化したのでレビュー用仕切り線は非表示 */
  .utility-bar{
    padding: 10px 24px;
    max-height: 40px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
  }
  .utility-bar span{ display: none; }
  .utility-phone{
    display: block;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.04em;
  }
  .utility-phone:hover{ color: var(--ink); }
  .nav-menu-cta{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    box-sizing: border-box;
  }
  .nav-menu-cta .btn-primary{
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 12px;
    font-weight: 500;
    color: #FFFFFF;
    background: var(--kaki);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 12px;
  }
  .nav-menu-cta .btn-primary:hover{
    background: var(--kaki-deep);
    color: #FFFFFF;
  }
  .nav-menu-tel{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }
  .nav-menu-tel .tel-link{
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.04em;
  }
  .nav-menu-tel .tel-note{
    font-size: 11px;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
  }
  .topbar{
    padding: 14px 24px;
    transition: padding 0.2s ease-in-out;
  }
  .header-actions{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
  .topbar .btn-primary{
    font-size: 11px;
    padding: 6px 12px;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  .mark span {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  .head-tel{ display: none; }
  .nav-toggle{ display: inline-block; }

  .header-actions{ gap: 8px; }

  /* 2ボタンの寸法をそろえる */
  .topbar .btn-primary,
  .nav-toggle{
    box-sizing: border-box;
    height: 40px;              /* 目安・要微調整 */
    min-width: 107px;          /* 目安・要微調整（さらに10%縮小） */
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  /* MENUボタン：枠を濃紺で濃く、アイコンとの間隔を確保 */
  .nav-toggle{
    gap: 7px;
    border-style: solid;
    border-width: 1.2px;
    border-color: var(--ink);
    color: var(--ink);
    letter-spacing: 0.08em;
    border-radius: 2px;
  }

  /* 固定ヘッダーの高さぶん、アンカー着地位置を下げる */
  [id]{ scroll-margin-top: 60px; }
  #fee-option{ scroll-margin-top: 96px; }

  /* ヘッダーを上部に固定 */
  .site-head{
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    transition: box-shadow 0.25s ease;
    box-shadow: 0 0 0 rgba(27, 47, 71, 0);
  }

  /* スクロール後（.is-scrolled）は細いバーに折りたたむ */
  .site-head.is-scrolled{
    box-shadow: 0 4px 16px rgba(27, 47, 71, 0.05);
  }
  .site-head.is-scrolled .utility-bar{
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
  }
  .site-head.is-scrolled .topbar{ padding-top: 5px; padding-bottom: 5px; }
  .site-head.is-scrolled .topbar .btn-primary{
    display: none;
  }
  .site-head.is-scrolled .mark span{
    display: none;
  }

  /* 開いたナビの背面が透けないよう地色を敷く */
  .nav-wrap{ background: var(--paper); }
  .nav-row{
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  } /* 念のためのはみ出し対策 */

  /* ページ内リンクが固定バーの下に潜らないようにする */
  html{ scroll-padding-top: 60px; }  /* 折りたたみ後のバー高さに最適化 */
  .nav-row{
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .nav-wrap.open .nav-row{ display: flex; }
  .nav-row > a, .nav-item{ width: 100%; }
  .nav-row > a, .nav-item > :is(a, button){ display: block; width: 100%; text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-row > a.startup-badge{
    display: inline-flex;
    width: auto;
    margin: 12px 0 8px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--kaki-deep);
  }
  .nav-item > button.nav-parent{ display: none; }
  .nav-item > a::after{ content: ""; }
  .dropdown{
    display: block;
    position: static;
    border: none;
    margin: 0;
    padding: 0;
    background: transparent;
    min-width: 0;
  }
  .dropdown a{
    position: relative;
    padding: 10px 0 10px 80px;
    border-bottom: 1px solid var(--line);
  }
  .dropdown a:first-child::before{
    content: "サービス";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 600;
    color: var(--kaki-deep);
    border: 1px solid var(--kaki-deep);
    padding: 2px 6px;
    border-radius: 2px;
    line-height: 1;
    letter-spacing: 0.05em;
  }
  .hero{ padding: 52px 0 64px; }
  .hero-title{ font-size: 33px; }
  .page-title{ font-size: 28px; }
  .band{ padding: 60px 0; }
  .teaser-grid{ grid-template-columns: 1fr 1fr; }
  .audience-grid{ grid-template-columns: 1fr; }
  .flow-list li{ grid-template-columns: 40px 1fr; }
  .flow-note-block{ padding-left: 60px; }
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
  .pricing-table{ font-size: 13px; }
  .pricing-table th, .pricing-table td{ padding: 14px 8px; }
  .message-body blockquote{ font-size: 20px; }
  .tate{ font-size: 17px; }
}
@media (max-width: 560px){
  .teaser-grid{ grid-template-columns: 1fr; }
  .hero-side{ grid-template-columns: 1fr auto; }
}

/* 開業支援ページ: 対応範囲リスト（ミニレール・マーカー） */
.scope-list{
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.scope-list li{
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.8;
}
.scope-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 14px;
  height: 7px;
  border-top: 1px solid var(--kaki-deep);
  border-bottom: 1px solid var(--kaki-deep);
}
.band.dark .scope-list{
  border-top: 1px solid var(--line-on-ink);
  color: var(--paper-on-ink);
}
.band.dark .scope-list li::before{
  border-color: var(--kaki);
}

/* 料金表の横スクロール用ラッパー */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
}
@media (min-width: 601px) {
  .table-wrapper table {
    min-width: 720px;
  }
}
/* 料金ページ専用スタイル */
#pricing .band{ padding: 72px 0; }
#pricing .band--index{ padding: 32px 0; }

.pricing-col-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}
.pricing-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 32px;
}
.pricing-card h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: var(--fs-lead);
  font-weight: 600;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: var(--ink);
}
.pricing-card.accent-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 28px 32px;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pricing-card ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink-soft);
}
.pricing-card ul li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--kaki-deep);
}
@media (max-width: 860px) {
  .pricing-col-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- 開業・会社設立支援カード：手数料行と総額ボックス ---------- */
.startup-fee {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink);
}
.startup-fee-amount {
  font-family: 'Shippori Mincho', serif;
  font-size: 21px;
  font-weight: 600;
}
.startup-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  padding: 10px 14px;
  background: var(--paper-2);
  border-left: 3px solid var(--kaki-deep);
}
.startup-total-label {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}
.startup-total-sub {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.startup-total-amount {
  font-family: 'Shippori Mincho', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.startup-total-unit {
  font-size: 13px;
}
.pricing-card .btn-ghost {
  margin-top: 18px;
}

/* 特例申告カードの全幅化（PC表示時のみ） */
@media (min-width: 861px) {
  .full-width-card {
    grid-column: 1 / -1;
  }
}

/* 料金ページ全体の要素の幅をコンテナ幅（100%）に揃える */
#pricing .pricing-caption {
  max-width: 100%;
}
#pricing .pricing-table--wide {
  max-width: 100%;
  table-layout: fixed;
  width: 100%;
}
#pricing .pricing-table--wide .col-revenue  { width: 17%; }
#pricing .pricing-table--wide .col-advisory { width: 16%; }
#pricing .pricing-table--wide .col-booking  { width: 16%; }
#pricing .pricing-table--wide .col-closing  { width: 16%; }
#pricing .pricing-table--wide .col-vat      { width: 17%; }
#pricing .pricing-table--wide .col-total    { width: 18%; }

/* 料金ページのテーブルレイアウト・文字配置（すべて中央揃え） */
#pricing .pricing-table th,
#pricing .pricing-table td,
#pricing .pricing-table td.amount,
#pricing .pricing-table th.amount,
#pricing .pricing-table tbody td:first-child {
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 表の面(サーフェス)とヘッダー・第1列スタイル */
#pricing .pricing-table tbody td {
  background: var(--paper-soft);
  vertical-align: middle;
  position: relative;
}
#pricing .pricing-table thead th {
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
#pricing .pricing-table tbody td:first-child {
  background: var(--paper-2);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ink);
}

/* 2段ヘッダー・列強調・参考値のスタイル */
.pricing-table .group-head {
  text-align: center;
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
}
.pricing-table .th-sub {
  display: block;
  font-size: var(--fs-note);
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0;
}
/* 表のデータセル内の補足行（例: 年間合計の「＋記帳代行」） */
.pricing-table .td-sub {
  display: block;
  font-size: var(--fs-note);
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0;
  line-height: 1.3;
}
/* 表のデータセル内の上限併記（例: 記帳代行の「〜月60仕訳」）
   デスクトップでは金額を上下中央に保ち、仕訳数をセル下部に配置 */
.pricing-table .td-cap{
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--fs-note);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-variant-numeric: normal;
}
/* 顧問料列: 内訳の一項目（デスクトップの主役は年間合計列に移行。
   600px以下では col-ref 非表示のため、モバイル用メディアクエリ側で引き続き強調される） */
.pricing-table .col-emphasis {
  color: var(--ink);
  font-weight: 500;
}
/* 年間合計列: このページの主役の数字（ヒーローの価格アンカー・モデルケースと同じ軸） */
.pricing-table .col-ref {
  color: var(--ink);
  font-weight: 700;
}
#pricing .pricing-table tbody td.col-ref {
  font-size: var(--fs-lead);
  background: var(--paper-soft);
  box-shadow: inset 2px 0 0 var(--kaki), inset -2px 0 0 var(--kaki);
}

/* ---------- 料金表：モバイル横スクロール対応 ---------- */

/* 横スクロール中も「年間売上」列が見えるよう固定 */
@media (max-width: 740px) {
  #pricing .pricing-table--wide thead tr:first-child th:first-child,
  #pricing .pricing-table--wide tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.08);
  }
}

/* スクロールできることを伝えるテキストヒント（PC幅では非表示） */
.scroll-hint {
  display: none;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
@media (max-width: 740px) {
  .scroll-hint {
    display: block;
  }
}

/* 右端に「まだ続きがある」ことを示すフェードグラデーション */
.table-scroll-container {
  position: relative;
}
.table-scroll-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28px;
  background: linear-gradient(to right, rgba(237, 232, 219, 0), var(--paper));
  pointer-events: none;
}
@media (min-width: 741px) {
  .table-scroll-container::after {
    display: none;
  }
}

/* 2段ヘッダーの「毎月」「年1回」のグループ下線に隙間（切れ目）を作る */
#pricing .pricing-table thead th.group-head {
  position: relative;
  border-bottom: none !important;
}
#pricing .pricing-table thead th.group-head::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  background-color: var(--kaki);
}

/* 2段目のヘッダーセルの上枠線を消して、1段目の下にあるグレーの繋ぎ線を完全に消す */
#pricing .pricing-table thead tr:nth-child(2) th {
  border-top: none !important;
}

/* ---------- office grid layout & map slot ---------- */
.office-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: stretch;
  margin-top: 24px;
}
.office-table {
  width: 100%;
  margin: 0; /* 余計なマージンをリセット */
}
.map-slot {
  border: 1px dashed var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  line-height: 1.9;
  min-height: 280px;
}
@media (max-width: 768px) {
  .office-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .map-slot {
    min-height: 220px;
    padding: 32px 16px;
  }
}

.lead-accent{
  color: var(--kaki-deep);
  font-weight: 500;
}

/* ============================================
   実績スタッツバー
   ============================================ */
.stats-bar {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
}
.stats-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  border-left: 2px solid var(--kaki-deep);
}
.stats-num {
  font-family: 'Shippori Mincho', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}
.stats-num span {
  font-size: 18px;
  font-weight: 600;
  color: var(--kaki-deep);
  margin-left: 2px;
}
.stats-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}
.stats-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 2px;
}

@media (max-width: 860px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stats-item {
    border-left: none;
    border-bottom: 1px dashed var(--line);
    padding: 0 0 16px 0;
  }
  .stats-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .stats-num {
    font-size: 28px;
    min-width: 80px;
  }
}
/* ---------- print ---------- */
@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================
   料金ページ 顧問料テーブル：モバイル表示（600px以下）
   ・表を「売上規模ごとのカード」に組み替える（HTMLは無変更・CSSのみ）
   ・左側ラベルは各tdの data-label 属性を ::before で表示
   ・年間合計はカード内の主役（デスクトップの強調と同じ軸）
   ・only-wide スパンは再表示され「円」の単位が各値に付く
   PC（601px以上）には一切影響しない
   ========================================================== */

/* 料金表の右上「（単位：円／税抜）」右寄せスタイル */
.table-unit-note {
  text-align: right;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 8px auto;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  /* --- 横スクロール用の装飾を撤去（カード表示では不要） --- */
  .scroll-hint {
    display: none;
  }
  .table-scroll-container::after {
    display: none;
  }

  /* --- 表をカードのリストに組み替える --- */
  #pricing .pricing-table--wide {
    display: block;
    width: 100%;
  }
  #pricing .pricing-table--wide colgroup,
  #pricing .pricing-table--wide thead {
    display: none;
  }
  #pricing .pricing-table--wide tbody[data-segment].is-active {
    display: block;
  }

  /* 1つの売上規模＝1カード */
  #pricing .pricing-table--wide tbody tr {
    display: block;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    padding: 16px 16px 14px;
    margin: 0 0 14px;
  }

  /* 内訳の各行：左にラベル（data-label）・右に金額 */
  #pricing .pricing-table--wide tbody td {
    display: flex;
    align-items: center;
    padding: 6.5px 0;
    border-bottom: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    white-space: normal;
  }
  #pricing .pricing-table--wide tbody td::before {
    content: attr(data-label);
    margin-right: auto;
    padding-right: 12px;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
  }

  /* カード見出し：年間売上（左端にラベル、売上規模を中央揃え） */
  #pricing .pricing-table--wide tbody td:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: none;
    padding: 6px 0 10px;
    margin: 0 0 10px;
    border-bottom: 2px solid var(--kaki-deep);
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
  }
  #pricing .pricing-table--wide tbody td:first-child::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    padding: 0;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--kaki-deep);
  }

  /* 顧問料：内訳の先頭としてわずかに立たせる（背景強調はしない） */
  #pricing .pricing-table--wide tbody td.col-emphasis {
    font-weight: 700;
  }

  /* 年間合計：カード内の主役（デスクトップの強調と軸を揃える） */
  #pricing .pricing-table--wide tbody td.col-ref {
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--paper-2);
    border-left: 3px solid var(--kaki-deep);
    font-family: 'Shippori Mincho', serif;
    font-size: 18px;
    font-weight: 600;
  }
  #pricing .pricing-table--wide tbody td.col-ref::before {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink);
    align-self: center;
  }
  #pricing .pricing-table--wide tbody td.col-ref .td-sub {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 11.5px;
    margin-left: 6px;
  }

  /* 「◯◯円超／別途お見積もり」行：ラベルなしの1行表示 */
  #pricing .pricing-table--wide tbody td[colspan] {
    display: block;
    padding: 2px 0 0;
    font-size: 14px;
    color: var(--ink);
  }
  #pricing .pricing-table--wide tbody td[colspan]::before {
    content: none;
  }

  /* 記帳代行の上限併記：カード内では金額の前に表示 */
  #pricing .pricing-table--wide tbody td::before {
    order: -2;
  }
  #pricing .pricing-table--wide tbody td .td-cap{
    position: static;
    order: -1;
    margin: 0 16px 0 0;
    font-size: var(--fs-note);
    white-space: nowrap;
  }
}

/* 360px以下（iPhone SE 等）：カードの内側余白のみ一段詰める */
@media (max-width: 360px) {
  #pricing .pricing-table--wide tbody tr {
    padding: 14px 12px 12px;
  }
  #pricing .pricing-table--wide tbody td.col-ref {
    padding: 9px 10px;
    font-size: 17px;
  }
}

/* 改行防止用のユーティリティクラス */
.nobr {
  display: inline-block;
}

/* 事務所概要テーブル モバイル対応（左右幅の調整） */
@media (max-width: 600px) {
  .office-table th {
    width: 85px;
    padding-right: 0;
  }
  .office-table td {
    padding-left: 12px;
  }
}

.nav-toggle-icon{ flex-shrink: 0; }
.nav-toggle-icon line{ stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

@media (max-width: 360px) {
  .topbar .mark {
    font-size: 13.5px;
  }
}

/* ---------- page actions ---------- */
.page-actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

/* カード内の「ゴシック体・短い断り書き見出し」 */
.card-title-sans{
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.7;
  margin: 0 0 10px;
  padding: 0;
  border: none;
  color: var(--ink);
}
/* カード内の本文 */
.card-body{
  font-size: var(--fs-base);
  line-height: 1.9;
  color: var(--ink);
  margin: 0;
}
.card-body + .btn-ghost{ margin-top: 16px; }
/* 表の外に置く小見出し（枠なし・カード風でないもの） */
.table-title{
  font-family: 'Shippori Mincho', serif;
  font-size: var(--fs-lead);
  font-weight: 600;
  margin: 0 0 20px;
  padding: 0;
  border: none;
}
.table-title .table-title-note{
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--ink-soft);
  margin-left: 8px;
}
/* カード枠を持たない、表だけを包むブロック */
.pricing-plain{
  padding: 0;
  border: none;
  background: transparent;
}
/* 本文中のリンク */
.link-inline{
  color: var(--kaki-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* 余白ユーティリティ */
.mt-32{ margin-top: 32px; }
.mb-40{ margin-bottom: 40px; }
.mb-32{ margin-bottom: 32px; }
.pricing-table--narrow{ max-width: 480px; }
.pricing-col-wrapper--flush{ margin-top: 0; }
.card-note{
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.card-footnote{
  font-size: var(--fs-caption);
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.li-amount{ margin-left: 12px; color: var(--ink); }
.li-sub{
  display: block;
  font-size: var(--fs-caption);
  color: var(--ink-soft);
  margin-top: 2px;
}
.card-body--soft{ color: var(--ink-soft); }

@media (max-width: 640px) {
  #pricing .band{ padding: 56px 0; }
  #pricing .band--index{ padding: 28px 0; }
  .section-head{ margin: 0 0 28px; }
  .pricing-card{ padding: 24px 20px; }
}

@media (max-width: 600px){
  .year-track{ padding-left: 16px; }
  .flow-list.timed li,
  .year-parallel{
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .year-parallel::before{ left: -17px; }
}

/* 【重要】.price-anchor と .case-list の金額は #fee-advisory の料金表と連動する。
   料金改定時は pricing.html 内の以下3箇所を必ず同時に更新すること。
   (1) .price-anchor-list  (2) .case-list  (3) .pricing-table--wide */

/* ---------- 料金ページ：ヒーローの年間総額アンカー ---------- */
/* 【重要】金額は pricing.html 側。#fee-advisory の料金表と連動する */
.price-anchor{
  margin: 32px 0 0;
  padding: 26px 0 22px;
  border-top: 1px solid var(--kaki-deep);
  border-bottom: 1px solid var(--kaki-deep);
}
.price-anchor-label{
  font-size: var(--fs-note);
  letter-spacing: 0.1em;
  color: var(--kaki-deep);
  margin: 0 0 18px;
}
.price-anchor-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-anchor-list li{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.price-anchor-list li:first-child{
  padding-left: 0;
  border-left: none;
}
.pa-cond-wrap{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pa-tag{
  display: inline-block;
  vertical-align: middle;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 1px 7px;
  border-radius: 3px;
  margin-left: 6px;
  margin-bottom: 0;
  width: fit-content;
  line-height: 1.4;
  background: var(--paper-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.pa-cond-wrap .pa-tag{
  margin-left: 0;
}
.pa-tag--both,
.pa-tag--personal,
.pa-tag--corporate{
  background: var(--paper-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.pa-cond{
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}
.pa-amount{
  font-family: 'Shippori Mincho', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.pa-unit{
  font-size: var(--fs-base);
  font-weight: 400;
  margin-left: 2px;
}
.pa-sub{
  display: block;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.price-anchor-note{
  font-size: var(--fs-small);
  color: var(--ink-soft);
  line-height: 1.9;
  margin: 20px 0 0;
}
.price-anchor-note .link-inline{ margin-left: 10px; white-space: nowrap; }

@media (max-width: 640px){
  .price-anchor{
    margin-top: 26px;
    padding: 22px 0 18px;
  }
  .price-anchor-list{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .price-anchor-list li{
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-left: 0;
    border-left: none;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .price-anchor-list li:last-child{
    padding-bottom: 0;
    border-bottom: none;
  }
  .pa-amount{ font-size: 22px; }
  .price-anchor-note .link-inline{
    display: block;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* ---------- 料金ページ：モデルケース ---------- */
/* 【重要】金額は pricing.html 側。#fee-advisory の料金表と連動する */
.case-block{ margin: 40px 0 32px; }
.case-block-label{
  font-size: var(--fs-note);
  letter-spacing: 0.1em;
  color: var(--kaki-deep);
  margin: 0 0 16px;
}
.case-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-item{
  display: flex;
  flex-direction: column;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 22px 22px 20px;
}
.case-cond{
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.case-breakdown{
  margin: 0 0 16px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.case-breakdown > div{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
}
.case-breakdown dt{ white-space: nowrap; }
.case-breakdown dd{
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.case-total{
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--kaki);
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.case-total-label{
  float: left;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 2.2;
}
.case-total-unit{
  font-size: var(--fs-base);
  font-weight: 400;
  margin-left: 2px;
}
.case-note{
  font-size: var(--fs-caption);
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 10px 0 0;
  text-align: right;
}
.case-block-note{
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin: 18px 0 0;
}

@media (max-width: 860px){
  .case-list{ grid-template-columns: 1fr; gap: 16px; }
  .case-item{ padding: 20px; }
  .case-total{ font-size: 22px; }
}

/* ---------- 中間CTA（本文中・控えめ版） ---------- */
.cta-inline{
  margin: 36px auto 0;
  max-width: 920px;
  padding: 18px 28px;
  border: 1px solid var(--kaki-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.cta-inline-text{
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  flex: 0 1 auto;
  font-weight: 500;
}
.cta-inline-actions{
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-inline .btn-primary{
  padding: 14px 28px;
  font-size: var(--fs-base);
}
.cta-inline-tel{ line-height: 1.5; }
.cta-inline-tel .tel-number{
  display: block;
  font-family: 'Shippori Mincho', serif;
  font-size: var(--fs-num);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
}
.cta-inline-tel .tel-note{
  font-size: var(--fs-note);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

@media (max-width: 640px){
  .cta-inline{
    margin-top: 36px;
    padding: 24px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .cta-inline-actions{
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .cta-inline .btn-primary{ text-align: center; }
  .cta-inline-tel{ text-align: center; }
}

/* ============================================
   コラム・お知らせ本文(Markdown自動生成)のスタイル統一
   ============================================ */
.column-body h2,
.news-body h2{
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 16px;
}
.column-body h3,
.news-body h3{
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}
.column-body p,
.news-body p{
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  margin: 0 0 20px;
}
.column-body ul,
.news-body ul{
  margin: 0 0 20px;
  padding-left: 20px;
}
.column-body li,
.news-body li{
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 8px;
}
.column-body strong,
.news-body strong{
  color: var(--kaki-deep);
  font-weight: 700;
}
.column-body a,
.news-body a{
  color: var(--kaki-deep);
  text-decoration: underline;
}
.column-body h2:first-child,
.news-body h2:first-child,
.column-body h3:first-child,
.news-body h3:first-child{
  margin-top: 0;
}

