/* ============================================================
   税理士法人プライムパートナーズ — /tax/  (v2)
   和モダン・上質（生成り × 深緑 #157968 × 墨）
   radius 0 / box-shadow なし / 1px ヘアライン / 画像は最小限
   ============================================================ */

:root {
  --paper: #f7f4ec;
  --paper-2: #efeadd;
  --surface: #fdfbf6;
  --ink: #1e2b27;
  --body-c: #44524d;
  --mute: #7d877f;
  --green: #157968;
  --green-deep: #0e5c4f;
  --green-soft: #5fc0ab;
  --night: #133b33;
  --mist: #eef3ee;
  --line: #ded7c6;
  --line-strong: #b8b09b;
  --line-dark: rgba(255, 255, 255, 0.14);
  --serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --en: "Jost", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.tax-page {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  font-weight: 400;
  color: var(--body-c);
  background: var(--paper);
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(21, 121, 104, 0.18); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* 紙の質感（ごく薄いノイズ） */
body.tax-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.skip-link {
  position: absolute; top: -48px; left: 16px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; font-size: 13px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 汎用 ---------- */
.wrap { max-width: 1140px; margin-inline: auto; padding-inline: clamp(20px, 4.5vw, 48px); }
.pc { display: inline; }
.sp { display: none; }
.ext { font-size: 0.7em; margin-left: 0.35em; opacity: 0.55; }
.text-link { color: var(--green); border-bottom: 1px solid rgba(21, 121, 104, 0.35); transition: border-color 0.25s; }
.text-link:hover { border-color: var(--green); }

section { position: relative; padding-block: clamp(64px, 8.5vw, 104px); }

.t-sec-head { margin-bottom: clamp(30px, 4.5vw, 48px); }
.t-sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; }
.t-sec-label {
  font-family: var(--en);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.t-sec-label::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--line-strong);
  margin-top: 10px;
}
.t-sec-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.t-sec-lead { margin-top: 16px; font-size: 14.5px; line-height: 2; color: var(--body-c); }
.t-sec-head-row .t-sec-lead { margin-top: 0; padding-bottom: 6px; }
.t-sec-label-light { color: var(--green-soft); }
.t-sec-label-light::after { background: var(--line-dark); }
.t-sec-title-light { color: #fff; }
.t-sec-lead-light { color: rgba(255, 255, 255, 0.78); }

/* ボタン */
.btn-fill, .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 14px 30px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
  text-align: center;
}
.btn-fill { background: var(--green); color: #fff; border: 1px solid var(--green); }
.btn-fill:hover { background: var(--green-deep); border-color: var(--green-deep); transform: translateY(-1px); }
.btn-lg { padding: 17px 40px; font-size: 15px; }
.btn-line { border: 1px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--green); color: var(--green); }

/* ============================================================
   ヘッダー
   ============================================================ */
.t-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  transition: background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.t-header.is-scrolled {
  background: rgba(247, 244, 236, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.t-header-inner {
  max-width: none;
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 40px) 0; /* 右0＝CTAブロックを画面の右上角に接地 */
  height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
  transition: height 0.3s var(--ease);
}
.t-header.is-scrolled .t-header-inner { height: 60px; }
.t-logo { display: flex; align-items: center; }
.t-logo img { width: auto; height: 26px; }
.t-nav { margin-left: auto; }
.t-nav ul { display: flex; gap: clamp(18px, 2vw, 30px); }
.t-nav a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 6px 2px;
  background: linear-gradient(var(--green), var(--green)) left bottom / 0 1px no-repeat;
  transition: color 0.3s, background-size 0.35s var(--ease);
}
.t-nav a:hover { color: var(--green); background-size: 100% 1px; }
.t-header-tel { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.t-header-tel-num { font-family: var(--en); font-size: 19px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); }
.t-header-tel-note { font-size: 10.5px; color: var(--mute); letter-spacing: 0.05em; }
.t-header-tel:hover .t-header-tel-num { color: var(--green); }
/* 右上に接地する全高のCTAブロック（グループ共通の型・税理士は深緑） */
.t-header-btn {
  align-self: stretch;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: clamp(124px, 11vw, 156px);
  padding: 0 10px;
  background: var(--green);
  color: #fff;
  text-align: center;
  transition: background-color 0.3s;
}
.t-header-btn:hover { background: var(--green-deep); }
.t-header-btn-icon { width: 21px; height: 21px; }
.t-header-btn-label { font-size: 13.5px; font-weight: 500; letter-spacing: 0.12em; }
/* サブ文言：スクロール時は高さごと滑らかに畳む（display:noneだとアイコンが跳ねる） */
.t-header-btn-sub {
  font-size: 9.5px; letter-spacing: 0.04em; opacity: 0.8;
  max-height: 16px; margin-top: 0; overflow: hidden;
  transition: opacity 0.3s var(--ease), max-height 0.3s var(--ease), margin-top 0.3s var(--ease);
}
.t-header.is-scrolled .t-header-btn-sub {
  opacity: 0; max-height: 0;
  margin-top: -5px; /* flexのgap分を打ち消して中央を保つ */
}

.t-menu-toggle {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  background: none; border: none; cursor: pointer;
  z-index: 130;
}
.t-menu-toggle span {
  position: absolute;
  left: 12px;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.t-menu-toggle span:nth-child(1) { top: 20px; }
.t-menu-toggle span:nth-child(2) { top: 28px; }
.t-menu-toggle.is-open span:nth-child(1) { top: 24px; transform: rotate(24deg); }
.t-menu-toggle.is-open span:nth-child(2) { top: 24px; transform: rotate(-24deg); }

/* SPメニュー */
.t-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper-2);
  padding: 104px clamp(24px, 7vw, 56px) 56px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.t-menu.is-open { opacity: 1; visibility: visible; }
.t-menu nav { display: grid; gap: 36px; max-width: 640px; margin-inline: auto; }
.t-menu-label {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.t-menu-group ul { display: grid; gap: 2px; }
.t-menu-group a {
  display: block;
  padding: 9px 4px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--serif);
  letter-spacing: 0.06em;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.t-menu-group a:hover { color: var(--green); transform: translateX(4px); }

/* ============================================================
   ヒーロー
   ============================================================ */
.t-hero {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  padding: 78px 0 0;
}
.t-hero-inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: clamp(20px, 6vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 45fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  flex: 1;
}
.t-hero-text { padding-block: clamp(32px, 5vh, 56px); }
.t-hero-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 24px;
}
.t-hero-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.3vw, 56px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.t-hero-line { display: block; overflow: hidden; }
.t-hero-line > span { display: inline-block; }
html.js-anim .t-hero-line > span { transform: translateY(112%); }
.t-hero-lead {
  margin-top: 26px;
  font-size: 15px;
  line-height: 2.05;
  max-width: 33em;
}
.t-hero-cta {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin-top: 34px;
  flex-wrap: wrap;
}
.t-hero-note {
  margin-top: 26px;
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: var(--mute);
  max-width: 34em;
}
/* WP移植時に追加: ヒーロー下の法人税ページ（/houjin/）への導線 */
.t-hero-note-link {
  margin-left: .5em;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .25em;
  white-space: nowrap;
}
.t-hero-note-link:hover { opacity: .7; }
.t-hero-tel { display: flex; flex-direction: column; line-height: 1.35; }
.t-hero-tel-num {
  font-family: var(--en);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  transition: color 0.3s;
}
.t-hero-tel:hover .t-hero-tel-num { color: var(--green); }
.t-hero-tel-note { font-size: 11px; color: var(--mute); letter-spacing: 0.05em; }

.t-hero-visual { position: relative; height: clamp(400px, 66svh, 680px); }
.t-hero-photo { position: absolute; inset: 0; overflow: hidden; }
.t-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
html.js-anim .t-hero-photo { clip-path: inset(0 0 0 100%); }

.t-hero-foot {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
  padding: 16px clamp(20px, 6vw, 96px);
}
html.js-anim .t-hero-label,
html.js-anim .t-hero-lead,
html.js-anim .t-hero-cta,
html.js-anim .t-hero-foot { opacity: 0; }
.t-hero-facts { display: flex; flex-wrap: wrap; gap: 8px clamp(18px, 2.5vw, 36px); }
.t-hero-facts li {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}
.t-hero-facts li::before { content: ""; width: 4px; height: 4px; background: var(--green); }
.t-fact-note { font-weight: 400; color: var(--mute); }
.t-hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--en);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
}
.t-hero-scroll::after { content: ""; width: 52px; height: 1px; background: var(--line-strong); }

/* ============================================================
   お悩み
   ============================================================ */
.t-worry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.t-worry-grid > li { border-bottom: 1px solid var(--line); }
.t-worry-grid a {
  display: block;
  padding: 22px 6px;
  transition: background-color 0.35s;
}
.t-worry-grid a:hover { background: var(--surface); }
.t-worry-q {
  display: block;
  font-family: var(--serif);
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1.7;
}
.t-worry-a {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--mute);
  line-height: 1.8;
}
.t-worry-arrow {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--en);
  color: var(--line-strong);
  transition: color 0.3s, transform 0.35s var(--ease);
}
.t-worry-grid a:hover .t-worry-arrow { color: var(--green); transform: translateX(4px); }
.t-worry-close {
  margin-top: clamp(24px, 3.5vw, 36px);
  font-family: var(--serif);
  font-size: clamp(16px, 1.9vw, 19px);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
}

/* ============================================================
   ミッション（sticky タイポグラフィ）
   ============================================================ */
.t-mission { background: var(--paper-2); border-block: 1px solid var(--line); padding: 0; }
html.motion-on .t-mission { height: 220vh; }
.t-mission-sticky {
  padding-block: clamp(72px, 10vw, 120px);
  display: flex;
  align-items: center;
}
html.motion-on .t-mission-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  padding-block: 0;
}
.t-mission-label { margin-bottom: clamp(24px, 4vh, 44px); }
.t-mission-lines { display: grid; gap: clamp(4px, 1vh, 12px); }
.t-mission-line {
  position: relative;
  display: block;
  font-family: var(--serif);
  font-size: clamp(38px, 6.6vw, 72px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.1em;
  width: fit-content;
}
.t-mission-ghost { color: rgba(30, 43, 39, 0.14); }
.t-mission-fill {
  position: absolute;
  inset: 0;
  color: var(--ink);
  white-space: nowrap;
}
html.motion-on .t-mission-fill { clip-path: inset(0 100% 0 0); }
.t-mission-sub {
  margin-top: clamp(28px, 5vh, 48px);
  font-size: 14.5px;
  line-height: 2.15;
  color: var(--body-c);
}
html.motion-on .t-mission-sub { opacity: 0; }

/* ============================================================
   選ばれる理由
   ============================================================ */
.t-reason .t-sec-lead { font-family: var(--serif); font-size: clamp(16px, 1.8vw, 19px); font-weight: 600; color: var(--ink); letter-spacing: 0.05em; }
.t-reason-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 44px) clamp(36px, 5vw, 72px);
}
.t-reason-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2vw, 26px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.t-reason-num {
  font-family: var(--en);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--green);
  letter-spacing: 0.04em;
}
.t-reason-title {
  font-family: var(--serif);
  font-size: clamp(17.5px, 1.9vw, 20px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 10px;
}
.t-reason-body p { font-size: 14px; line-height: 1.95; }

/* ============================================================
   サービス
   ============================================================ */
.t-svc { background: var(--surface); border-block: 1px solid var(--line); }
.t-svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.t-svc-card {
  background: var(--surface);
  padding: clamp(26px, 3.5vw, 42px);
  display: flex;
  flex-direction: column;
  transition: background-color 0.35s;
}
.t-svc-card:hover { background: #fff; }
.t-svc-index { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.t-svc-num { font-family: var(--en); font-size: 14px; color: var(--green); letter-spacing: 0.1em; }
.t-svc-en {
  font-family: var(--en);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
}
.t-svc-name {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}
.t-svc-desc { font-size: 13.5px; line-height: 1.95; flex: 1; }
.t-svc-meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.t-svc-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--green);
  transition: opacity 0.3s;
}
.t-svc-link:hover { opacity: 0.7; }

/* ============================================================
   料金
   ============================================================ */
.t-price-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.t-price-hero { margin-top: clamp(28px, 4vw, 44px); padding-top: 24px; border-top: 1px solid var(--line-strong); }
.t-price-hero-label { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; color: var(--green); }
.t-price-hero-value { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; }
.t-price-hero-pre { font-family: var(--serif); font-size: clamp(15px, 1.7vw, 19px); font-weight: 600; color: var(--ink); }
.t-price-hero-num {
  font-family: var(--en);
  font-size: clamp(68px, 8.5vw, 104px);
  font-weight: 300;
  line-height: 1;
  color: var(--green);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.t-price-hero-unit { font-family: var(--en); font-size: clamp(26px, 3vw, 38px); font-weight: 300; color: var(--green); }
.t-price-hero-note { margin-top: 10px; font-size: 12px; color: var(--mute); }
.t-price-sub {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 10px;
}
.t-price-table { border-bottom: 1px solid var(--line); }
.t-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 13px 4px;
  border-top: 1px solid var(--line);
}
.t-price-row dt { font-size: 14px; font-weight: 500; color: var(--ink); }
.t-price-note-inline { display: block; font-size: 11.5px; font-weight: 400; color: var(--mute); margin-top: 2px; }
.t-price-row dd { font-family: var(--en); font-size: 17px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-price-foot { margin-top: 14px; font-size: 11.5px; color: var(--mute); }
.t-price-cta { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

/* ============================================================
   相続スケジュールと申告の流れ（横型・淡色）
   ============================================================ */
.t-sched { background: var(--mist); border-block: 1px solid var(--line); }

.t-sched-input {
  display: flex;
  align-items: center;
  gap: 14px clamp(18px, 2.5vw, 32px);
  flex-wrap: wrap;
  padding: 18px clamp(18px, 2.5vw, 28px);
  border: 1px solid var(--line);
  background: var(--surface);
}
.t-sched-input-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.t-sched-input-label .i { width: 18px; height: 18px; color: var(--green); }
.t-sched-date {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 9px 14px;
  font-family: var(--en);
  font-size: 15px;
  letter-spacing: 0.05em;
}
.t-sched-summary { font-size: 14px; color: var(--body-c); }
.t-sched-summary strong {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-inline: 4px;
}
.t-sched-remain em {
  font-family: var(--en);
  font-style: normal;
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--green);
  font-variant-numeric: tabular-nums;
  margin-inline: 2px;
}
.t-sched-remain.is-urgent em { color: #a87b23; }
.t-sched-remain.is-over em { color: #b3543f; }
.t-sched-input-note { width: 100%; font-size: 11.5px; color: var(--mute); }

.t-sched-scroll { margin-top: clamp(32px, 4.5vw, 48px); }
.t-sched-track { min-width: 0; }

/* --- 法定期限タイムライン（丸の中心＝軸線に一致させる） --- */
.t-tl { position: relative; height: 148px; }
.t-tl-axis {
  position: absolute;
  left: 0; right: 0; top: 33px;
  height: 1px;
  background: #ccd8cf;
}
.t-tl-axis-line {
  display: block;
  height: 1px;
  background: var(--green);
  transform-origin: left center;
}
html.js-anim .t-tl-axis-line { transform: scaleX(0); }
.t-tl-nodes { position: relative; height: 100%; }
.t-tl-node {
  position: absolute;
  left: var(--x);
  top: 0;
  transform: translateX(-50%);
  width: max-content;
  max-width: 170px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.t-tl-node:first-child { transform: translateX(0); align-items: flex-start; text-align: left; }
.t-tl-node:last-child { transform: translateX(-100%); align-items: flex-end; text-align: right; }
.t-tl-when {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--green);
  height: 20px;
  line-height: 20px;
  margin-bottom: 2px;
}
.t-tl-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid var(--green);
  background: var(--mist);
  margin: 5.5px 0 12px;
}
.t-tl-node-main .t-tl-dot { background: var(--green); }
.t-tl-node-main .t-tl-name { color: var(--green-deep); }
.t-tl-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.t-tl-date { margin-top: 2px; font-family: var(--en); font-size: 12px; letter-spacing: 0.05em; color: var(--mute); font-variant-numeric: tabular-nums; }
.t-tl-today[hidden] { display: none; }
.t-tl-today {
  position: absolute;
  left: var(--today-x, 0%);
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #a87b23;
  z-index: 2;
}
.t-tl-today span { height: 20px; line-height: 20px; }
.t-tl-today i {
  display: block;
  width: 1px;
  height: 24px;
  margin-top: 1px;
  background: #a87b23;
}

/* --- 6ステップ（横並び） --- */
.t-steps {
  margin-top: clamp(24px, 3.5vw, 36px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.t-step {
  padding: 16px 15px 18px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.t-step:first-child { border-left: none; }
.t-step-num { font-family: var(--en); font-size: 13px; letter-spacing: 0.1em; color: var(--green); }
.t-step-name { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: 0.03em; line-height: 1.5; }
.t-step-desc { font-size: 11.5px; line-height: 1.7; color: var(--mute); }

.t-sched-swipe { margin-top: 12px; font-size: 11px; color: var(--mute); letter-spacing: 0.08em; }

.t-sched-advice {
  margin-top: clamp(22px, 3vw, 32px);
  font-size: 14px;
  line-height: 2;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px 20px;
}
.t-sched-foot {
  margin-top: clamp(22px, 3vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}
.t-sched-note { font-size: 11.5px; line-height: 1.9; color: var(--mute); max-width: 560px; }
.t-sched-note a { color: var(--green); border-bottom: 1px solid rgba(21, 121, 104, 0.35); }
.t-sched-cta { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); flex-wrap: wrap; }
.t-sched-tel { display: flex; flex-direction: column; line-height: 1.4; }
.t-sched-tel-label { font-size: 10.5px; color: var(--mute); letter-spacing: 0.08em; }
.t-sched-tel-num { font-family: var(--en); font-size: 26px; font-weight: 400; color: var(--ink); letter-spacing: 0.03em; }
.t-sched-tel:hover .t-sched-tel-num { color: var(--green); }

/* ============================================================
   お客様の声
   ============================================================ */
.t-voice { background: var(--paper-2); border-block: 1px solid var(--line); }
.t-voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.t-voice-item {
  background: var(--surface);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
}
.t-voice-quote {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding-top: 26px;
}
.t-voice-quote::before {
  content: "“";
  position: absolute;
  top: -8px;
  left: -4px;
  font-family: var(--en);
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  color: rgba(21, 121, 104, 0.3);
}
.t-voice-body { margin-top: 12px; font-size: 13px; line-height: 1.95; flex: 1; }
.t-voice-meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mute);
}

/* ============================================================
   土日無料相談会（CV）
   ============================================================ */
.t-cv { background: var(--green); color: #fff; padding-block: clamp(72px, 9.5vw, 116px); }
.t-cv-head { text-align: center; }
.t-sec-label-cv {
  font-family: var(--en);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}
.t-sec-label-cv::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin: 10px auto 0;
}
.t-cv-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: #fff;
}
.t-cv-lead { margin-top: 18px; font-size: 14px; line-height: 2.1; color: rgba(255, 255, 255, 0.92); }
.t-cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 860px;
  margin: clamp(30px, 4.5vw, 44px) auto 0;
}
.t-cv-box {
  background: var(--green);
  padding: clamp(24px, 3.5vw, 36px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: background-color 0.35s;
}
.t-cv-box:hover { background: var(--green-deep); }
.t-cv-box-icon { width: 24px; height: 24px; color: #fff; opacity: 0.9; margin-bottom: 2px; }
.t-cv-box-en { font-family: var(--en); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.t-cv-box-main { font-family: var(--en); font-size: clamp(28px, 3.2vw, 34px); font-weight: 400; letter-spacing: 0.03em; color: #fff; line-height: 1.2; }
.t-cv-box-form { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 22px); font-weight: 600; letter-spacing: 0.08em; padding-block: 5px; }
.t-cv-box-note { font-size: 11.5px; color: rgba(255, 255, 255, 0.82); letter-spacing: 0.05em; }
.t-cv-foot { margin-top: 22px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.8); }

/* ============================================================
   コラム
   ============================================================ */
.t-col-count { font-family: var(--en); font-size: 1.25em; color: var(--green); font-variant-numeric: tabular-nums; margin-right: 2px; }
.t-col-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.t-col-list > li { border-bottom: 1px solid var(--line); }
.t-col-item {
  display: block;
  padding: 16px 6px;
  transition: background-color 0.35s;
}
.t-col-item:hover { background: var(--surface); }
.t-col-meta { display: flex; align-items: center; gap: 12px; }
.t-col-meta time { font-family: var(--en); font-size: 12px; letter-spacing: 0.08em; color: var(--mute); font-variant-numeric: tabular-nums; }
.t-col-cat {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--green);
  border: 1px solid rgba(21, 121, 104, 0.35);
  padding: 2px 9px;
  white-space: nowrap;
}
.t-col-title {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: var(--ink);
  transition: color 0.3s;
}
.t-col-item:hover .t-col-title { color: var(--green); }
.t-col-cats { margin-top: 22px; font-size: 12.5px; color: var(--mute); display: flex; gap: 14px; flex-wrap: wrap; }
.t-col-cats a { color: var(--green); border-bottom: 1px solid rgba(21, 121, 104, 0.35); transition: border-color 0.25s; }
.t-col-cats a:hover { border-color: var(--green); }

/* ============================================================
   採用
   ============================================================ */
.t-recruit { background: var(--paper-2); border-block: 1px solid var(--line); }
.t-recruit .t-sec-lead { max-width: 46em; }
.t-recruit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.t-recruit-card {
  background: var(--surface);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  transition: background-color 0.35s;
}
.t-recruit-card:hover { background: #fff; }
.t-recruit-role {
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.t-recruit-desc { margin-top: 10px; font-size: 13px; line-height: 1.95; flex: 1; }
.t-recruit-meta {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--mute);
  line-height: 1.8;
}
.t-recruit-foot {
  margin-top: clamp(22px, 3vw, 30px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.t-recruit-values { font-size: 13px; color: var(--ink); font-weight: 500; letter-spacing: 0.06em; }
.t-recruit-values-label {
  font-size: 11px;
  color: var(--mute);
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-right: 14px;
}

/* ============================================================
   FAQ
   ============================================================ */
.t-faq-wrap { max-width: 900px; }
.t-faq-list { border-bottom: 1px solid var(--line); }
.t-faq-item { border-top: 1px solid var(--line); }
.t-faq-q {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 44px 20px 6px;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.8;
  transition: color 0.3s;
}
.t-faq-q::-webkit-details-marker { display: none; }
.t-faq-q:hover { color: var(--green); }
.t-faq-mark {
  font-family: var(--en);
  font-size: 18px;
  color: var(--green);
  flex-shrink: 0;
  width: 22px;
}
.t-faq-mark-a { color: var(--line-strong); }
.t-faq-icon { position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; }
.t-faq-icon::before, .t-faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 14px; height: 1px;
  background: var(--green);
  transition: transform 0.4s var(--ease);
}
.t-faq-icon::after { transform: rotate(90deg); }
.t-faq-item[open] .t-faq-icon::after { transform: rotate(0deg); }
.t-faq-a { display: flex; gap: 16px; padding: 0 44px 22px 6px; }
.t-faq-a p { font-size: 13.5px; line-height: 2; }

/* ============================================================
   事務所案内（代表＋概要＋地図）
   ============================================================ */
.t-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(44px, 6vw, 64px);
}
.t-person {
  display: grid;
  grid-template-columns: minmax(120px, 168px) 1fr;
  gap: clamp(18px, 2.5vw, 28px);
  align-items: start;
}
.t-person-photo { overflow: hidden; }
.t-person-photo img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: center 18%; }
.t-person-role { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--green); }
.t-person-name {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-top: 6px;
}
.t-person-bio { margin-top: 12px; font-size: 13px; line-height: 1.95; }

.t-office-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.t-office-table { border-bottom: 1px solid var(--line); }
.t-office-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
}
.t-office-row dt { font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; color: var(--mute); padding-top: 2px; }
.t-office-row dd { font-size: 14px; line-height: 1.85; color: var(--ink); }
.t-office-note { margin-top: 18px; font-size: 12.5px; line-height: 1.95; color: var(--mute); }
.t-office-links { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.t-office-map { border: 1px solid var(--line); }
.t-office-map iframe {
  width: 100%;
  height: 380px;
  display: block;
}

/* ============================================================
   フッター
   ============================================================ */
.t-footer { background: var(--night); color: rgba(255, 255, 255, 0.82); padding: clamp(52px, 7vw, 80px) 0 32px; }
.t-footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: clamp(36px, 6vw, 96px);
  padding-bottom: clamp(32px, 5vw, 52px);
}
.t-footer-logo { height: 24px; width: auto; }
.t-footer-name { margin-top: 14px; font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: 0.1em; color: #fff; }
.t-footer-addr { margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
.t-footer-tel { margin-top: 5px; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
.t-footer-tel a { font-family: var(--en); font-size: 15px; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.05em; }
.t-footer-tel a:hover { color: #fff; }
.t-footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: clamp(32px, 4vw, 72px); }
.t-footer-nav-label {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}
.t-footer-nav ul { display: grid; gap: 9px; }
.t-footer-nav ul a { font-size: 13px; color: rgba(255, 255, 255, 0.78); letter-spacing: 0.04em; transition: color 0.3s; }
.t-footer-nav ul a:hover { color: #fff; }
.t-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.t-footer-en { font-family: var(--en); font-size: 10.5px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.4); }
.t-footer-copy { font-size: 11.5px; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.06em; }

/* ============================================================
   SP追従CTA
   ============================================================ */
.t-spcta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.t-spcta a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px 12px;
  line-height: 1.4;
  text-align: center;
}
.t-spcta-tel { background: var(--surface); color: var(--green-deep); }
.t-spcta-form { background: var(--green); color: #fff; }
.t-spcta-main { font-size: 13.5px; font-weight: 700; letter-spacing: 0.05em; }
.t-spcta-sub { font-size: 10px; opacity: 0.75; letter-spacing: 0.04em; }

/* ============================================================
   アイコン（lucide）
   ============================================================ */
.i { flex-shrink: 0; }
.t-reason-title { display: flex; align-items: center; gap: 10px; }
.t-reason-title .i { width: 20px; height: 20px; color: var(--green); }

/* ============================================================
   図解（インフォグラフィック）
   ============================================================ */
.t-dg-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 14px;
}

/* --- 基礎控除の図 --- */
.t-dg-kiso {
  margin-top: clamp(30px, 4.5vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 28px);
}
.t-dg-kiso-span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--mute);
  margin-bottom: 8px;
}
.t-dg-kiso-span i { flex: 1; height: 1px; background: var(--line-strong); position: relative; }
.t-dg-kiso-span i:first-child::before,
.t-dg-kiso-span i:last-child::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--line-strong);
}
.t-dg-kiso-span i:first-child::before { left: 0; }
.t-dg-kiso-span i:last-child::after { right: 0; }
.t-dg-kiso-track { display: flex; border: 1px solid var(--line-strong); }
.t-dg-kiso-free, .t-dg-kiso-tax {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 14px 12px;
  text-align: center;
}
.t-dg-kiso-free { flex: 1 1 62%; background: var(--paper-2); }
.t-dg-kiso-tax { flex: 1 1 38%; background: rgba(21, 121, 104, 0.12); border-left: 1px solid var(--green); }
.t-dg-kiso-free strong, .t-dg-kiso-tax strong { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; }
.t-dg-kiso-tax strong { color: var(--green-deep); }
.t-dg-kiso-free span, .t-dg-kiso-tax span { font-size: 11px; color: var(--mute); letter-spacing: 0.03em; }
.t-dg-kiso-tax span { color: var(--green); }
.t-dg-kiso-note { margin-top: 12px; font-size: 12px; color: var(--body-c); }
.t-dg-kiso-note strong { color: var(--green-deep); }

/* --- 報酬計算の式図解 --- */
.t-dg-fee {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 20px;
}
/* PCでは折り返さず1行。2カラム時は右カラム幅に合わせて可変で詰める */
.t-dg-fee-row { display: flex; align-items: stretch; gap: clamp(4px, 0.5vw, 7px); flex-wrap: nowrap; }
.t-dg-chip {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(6px, 0.6vw, 7px) clamp(6px, 0.78vw, 10px);
  white-space: nowrap;
}
.t-dg-chip em {
  font-style: normal;
  font-size: clamp(8.5px, 0.72vw, 9.5px);
  letter-spacing: 0.02em;
  color: var(--mute);
}
.t-dg-chip { font-size: clamp(11.5px, 0.98vw, 13.5px); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.t-dg-op { align-self: center; font-family: var(--en); font-size: clamp(10.5px, 0.95vw, 13px); color: var(--mute); }
.t-dg-total {
  display: inline-flex;
  align-items: baseline;
  background: var(--green);
  color: #fff;
  padding: clamp(6px, 0.6vw, 7px) clamp(8px, 0.95vw, 12px);
  font-family: var(--en);
  font-size: clamp(16px, 1.55vw, 21px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.t-dg-total small { font-family: var(--sans); font-size: clamp(9px, 0.8vw, 10.5px); font-weight: 500; margin-left: 4px; }

/* --- 相談タイミング比較図 --- */
.t-dg-timing {
  margin-top: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.5vw, 24px);
}
.t-dg-timing-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  align-items: center;
}
.t-dg-timing-row + .t-dg-timing-row { margin-top: 10px; }
.t-dg-timing-label { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: 0.04em; }
.t-dg-timing-bar { display: flex; gap: 4px; }
.t-dg-timing-bar li {
  flex: 1;
  padding: 9px 8px;
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.t-dg-timing-bar.is-good li {
  background: rgba(21, 121, 104, 0.1);
  border: 1px solid rgba(21, 121, 104, 0.28);
  color: var(--green-deep);
}
.t-dg-timing-bar.is-rush li {
  background: rgba(168, 123, 35, 0.09);
  border: 1px solid rgba(168, 123, 35, 0.3);
  color: #8a6a1e;
}

/* --- オンライン完結の図 --- */
.t-online { border-top: 1px solid var(--line); }
.t-dg-online {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(22px, 3.5vw, 36px);
}
.t-dg-online-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 96px;
}
.t-dg-online-node .i { width: 28px; height: 28px; color: var(--green); margin-bottom: 4px; }
.t-dg-online-node strong { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: 0.06em; }
.t-dg-online-node span { font-size: 11px; color: var(--mute); letter-spacing: 0.04em; }
.t-dg-online-mid { display: flex; align-items: center; gap: 14px; min-width: 0; }
.t-dg-online-arrow { flex: 1; height: 1px; background: var(--line-strong); position: relative; }
.t-dg-online-mid .t-dg-online-arrow:first-child::before {
  content: "";
  position: absolute;
  left: -1px; top: -3.5px;
  border: 4px solid transparent;
  border-right-color: var(--line-strong);
  border-left: 0;
  transform: translateX(-4px) rotate(180deg);
}
.t-dg-online-mid .t-dg-online-arrow:last-child::after {
  content: "";
  position: absolute;
  right: -1px; top: -3.5px;
  border: 4px solid transparent;
  border-left-color: var(--line-strong);
  border-right: 0;
  transform: translateX(4px);
}
.t-dg-online-ways { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.t-dg-online-ways li {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.t-dg-online-ways .i { width: 15px; height: 15px; color: var(--green); }
.t-dg-online-note { margin-top: 14px; font-size: 12.5px; color: var(--mute); }

/* ============================================================
   モーション制御（JS無効・失敗時は全て表示）
   ============================================================ */
html.js-anim .reveal { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal,
  html.js-anim .t-hero-photo,
  html.js-anim .t-hero-label,
  html.js-anim .t-hero-lead,
  html.js-anim .t-hero-cta,
  html.js-anim .t-hero-foot { opacity: 1; clip-path: none; }
  html.js-anim .t-hero-line > span { transform: none; }
  html.js-anim .t-tl-axis-line { transform: none; }
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1180px) {
  .t-header-tel { display: none; }
}
@media (max-width: 1024px) {
  .t-nav { display: none; }
  .t-menu-toggle { display: block; margin-left: auto; }
}
@media (max-width: 900px) {
  .t-hero { min-height: auto; }
  .t-hero-inner { grid-template-columns: 1fr; padding-right: clamp(20px, 6vw, 96px); gap: 8px; }
  .t-hero-visual { height: clamp(240px, 38svh, 380px); order: 2; margin-bottom: 28px; }
  .t-hero-text { order: 1; padding-bottom: 8px; }
  .t-worry-grid { grid-template-columns: 1fr; }
  .t-reason-list { grid-template-columns: 1fr; gap: 24px; }
  .t-svc-grid { grid-template-columns: 1fr; }
  .t-price-grid { grid-template-columns: 1fr; gap: 36px; }
  .t-voice-grid { grid-template-columns: 1fr; }
  .t-cv-grid { grid-template-columns: 1fr; }
  .t-col-list { grid-template-columns: 1fr; }
  .t-recruit-grid { grid-template-columns: 1fr; }
  .t-people { grid-template-columns: 1fr; gap: 28px; }
  .t-office-grid { grid-template-columns: 1fr; }
  .t-office-map iframe { height: 300px; }
  /* 料金カラムが1カラムになり箱が広がるので、計算式は通常サイズに戻す */
  .t-dg-fee-row { gap: 8px; }
  .t-dg-chip { padding: 8px 14px; font-size: 14.5px; }
  .t-dg-chip em { font-size: 10px; letter-spacing: 0.06em; }
  .t-dg-op { font-size: 14px; }
  .t-dg-total { padding: 8px 16px; font-size: 24px; }
  .t-dg-total small { font-size: 11px; margin-left: 5px; }
  .t-footer-grid { grid-template-columns: 1fr; }
  /* スケジュール図は横スクロールで左→右を維持 */
  .t-sched-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .t-sched-track { min-width: 780px; }
  /* オンライン図は縦積みに */
  .t-dg-online { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
  .t-dg-online-mid { flex-direction: column; gap: 10px; width: 100%; }
  .t-dg-online-arrow { flex: none; width: 1px; height: 20px; }
  .t-dg-online-mid .t-dg-online-arrow:first-child::before,
  .t-dg-online-mid .t-dg-online-arrow:last-child::after { display: none; }
}
@media (max-width: 768px) {
  .pc { display: none; }
  .sp { display: inline; }
  body.tax-page { font-size: 14.5px; padding-bottom: 64px; }
  .t-header-inner { height: 62px; }
  /* モバイルもハンバーガーの右に小型の接地CTAを残す */
  .t-header-btn { width: 92px; gap: 3px; }
  .t-header-btn-icon { width: 18px; height: 18px; }
  .t-header-btn-label { font-size: 11px; letter-spacing: 0.06em; }
  .t-header-btn-sub { display: none; }
  .t-menu { padding-top: 88px; }
  .t-hero { padding-top: 62px; }
  .t-hero-cta { flex-direction: column; align-items: stretch; gap: 18px; }
  .t-hero-cta .btn-lg { width: 100%; }
  .t-hero-tel { align-items: center; }
  .t-hero-foot { padding-block: 14px; }
  .t-hero-scroll { display: none; }
  .t-sec-head-row { align-items: flex-start; flex-direction: column; }
  .t-mission-line { font-size: clamp(30px, 8.6vw, 40px); }
  html.motion-on .t-mission { height: 180vh; }
  .t-sched-input { padding: 16px; }
  .t-sched-summary { width: 100%; }
  .t-spcta { display: grid; }
  .t-footer { padding-bottom: 88px; }
  .t-footer-nav { grid-template-columns: 1fr 1fr; }
  .t-dg-timing-row { grid-template-columns: 1fr; gap: 8px; }
  .t-dg-kiso-free { flex-basis: 56%; }
  /* 計算式は1行に押し込まず、チップ単位で縦積み（演算子は中央の独立行） */
  .t-dg-fee-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .t-dg-chip {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    font-size: 14.5px;
  }
  .t-dg-chip em { font-size: 11px; letter-spacing: 0.04em; }
  .t-dg-op { align-self: center; font-size: 14px; }
  .t-dg-total { justify-content: center; padding: 10px 14px; font-size: 23px; }
}
@media (max-width: 480px) {
  .t-hero-title { font-size: clamp(28px, 8.4vw, 34px); }
  .t-hero-tel-num { font-size: 26px; }
  .t-cv-box-main { font-size: 25px; }
  .t-price-cta { flex-direction: column; }
  .t-price-cta .btn-fill, .t-price-cta .btn-line { width: 100%; }
  .t-sched-cta { width: 100%; }
  .t-sched-cta .btn-fill { width: 100%; }
}
