/* 消費税ナビ 共通スタイル。外部フォント・外部画像なし。読みやすさ優先(余白・行間・階層)。 */
:root {
  color-scheme: light;
  --bg: #f4f8f7;
  --surface: #ffffff;
  --surface-2: #eef5f4;
  --fg: #16262b;
  --muted: #4a5b60;
  --accent: #0f766e;
  --accent-strong: #0b5a54;
  --accent-fg: #ffffff;
  --accent-soft: #dff2ef;
  --border: #c9d8d8;
  --border-strong: #6f8587;
  --warn-bg: #fff5da;
  --warn-fg: #553800;
  --warn-border: #c68a00;
  --ok-bg: #e4f5ee;
  --danger: #b3261e;
  --na-bg: #eef1f1;
  --focus: #b45309;
  --bar-track: #dbe7e6;
  --bar-fill: #79aaa6;
  --shadow: 0 1px 2px rgba(16, 38, 43, .06), 0 4px 14px rgba(16, 38, 43, .06);
  --radius: 16px;
  --radius-s: 12px;
  /* スペーシングスケール(4の倍数) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --gutter: 24px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1416;
  --surface: #152024;
  --surface-2: #1a282c;
  --fg: #e6eeee;
  --muted: #a9bbbd;
  --accent: #5fd3c6;
  --accent-strong: #8fe3d9;
  --accent-fg: #062320;
  --accent-soft: #123430;
  --border: #2b3e42;
  --border-strong: #7e9497;
  --warn-bg: #352a0c;
  --warn-fg: #ffe3a3;
  --warn-border: #d9a520;
  --ok-bg: #12332a;
  --danger: #ff9c94;
  --na-bg: #182226;
  --focus: #ffb454;
  --bar-track: #25373b;
  --bar-fill: #4f8a85;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-5); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 17px; line-height: 1.85; font-variant-numeric: tabular-nums;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 var(--gutter); }
a { color: var(--accent-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-fg); padding: 10px 14px; z-index: 30; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.small { font-size: .875rem; color: var(--muted); line-height: 1.75; }

/* ヘッダー */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-4); padding-top: var(--s-2); padding-bottom: var(--s-2); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); min-height: 44px; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 1.05rem; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; }
.site-header nav { max-width: 100%; overflow-x: auto; }
.site-header nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); color: var(--fg); text-decoration: none; border-radius: 999px; font-size: .95rem; }
.site-header nav a:hover { background: var(--surface-2); }
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); cursor: pointer; flex: none; }
.theme-toggle:hover { background: var(--accent-soft); color: var(--accent-strong); }
.theme-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.theme-toggle svg { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 759px) {
  .site-header .theme-toggle { order: 2; margin-left: auto; }
  .site-header nav { order: 3; flex: 1 1 100%; }
}
.site-header nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }

main { padding-top: var(--s-7); padding-bottom: var(--s-8); }
h1 { font-size: 1.85rem; line-height: 1.45; margin: 0 0 var(--s-4); letter-spacing: .01em; }
h2 { font-size: 1.4rem; line-height: 1.5; margin: var(--s-8) 0 var(--s-5); padding-left: var(--s-4); border-left: 5px solid var(--accent); }
h3 { font-size: 1.1rem; line-height: 1.55; margin: var(--s-6) 0 var(--s-2); }
p { margin: 1em 0; }
.lead { color: var(--muted); font-size: 1.05rem; margin: var(--s-4) 0 var(--s-6); max-width: 40em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); padding: 2px 12px; border-radius: 999px; margin: 0 0 var(--s-4); }

/* 小さなバナー */
.banner { display: flex; gap: var(--s-3); align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--warn-border); border-radius: var(--radius-s); padding: var(--s-4) var(--s-5); margin: 0 0 var(--s-6); font-size: .92rem; line-height: 1.8; }
.banner strong { flex: none; color: var(--warn-fg); background: var(--warn-bg); border-radius: 6px; padding: 0 8px; font-size: .8rem; margin-top: 2px; }
.banner p { margin: 0; }
.notice { background: var(--warn-bg); color: var(--warn-fg); border-left: 5px solid var(--warn-border); padding: var(--s-4) var(--s-5); border-radius: var(--radius-s); margin: var(--s-5) 0; font-size: .95rem; }
.notice ul { margin: var(--s-2) 0 0; padding-left: 1.2em; }
.confirm { font-weight: 700; }

/* 折りたたみ */
details.fold, details.adv { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 0 var(--s-5); margin: var(--s-5) 0; }
details.fold summary, details.adv summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; gap: 8px; font-weight: 700; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details.fold summary::before, details.adv summary::before { content: "＋"; flex: none; width: 1.4em; color: var(--accent-strong); font-weight: 700; }
details[open] > summary::before { content: "－"; }
details.fold[open] > summary, details.adv[open] > summary { border-bottom: 1px solid var(--border); margin-bottom: var(--s-4); }
details.fold > :last-child, details.adv > :last-child { margin-bottom: var(--s-5); }
.fold ul { padding-left: 1.3em; margin: var(--s-3) 0; }
.fold li { margin: var(--s-2) 0; }
dl.terms { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
dl.terms dt { font-weight: 700; margin-top: var(--s-4); }
dl.terms dd { margin: 0; color: var(--muted); }

/* ツールのレイアウト */
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: start; }
@media (min-width: 900px) {
  .tool-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-7); }
  .result-panel { position: sticky; top: 16px; }
}
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-5); }
@media (min-width: 900px) { .panel { padding: 28px; } }
.panel-title { font-size: 1.1rem; margin: 0 0 var(--s-5); padding: 0; border: 0; }
.field { margin: 0 0 var(--s-5); }
.field > label, fieldset.field > legend { display: block; font-weight: 700; margin-bottom: var(--s-2); padding: 0; line-height: 1.5; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hint { display: block; font-size: .875rem; color: var(--muted); margin-top: var(--s-2); line-height: 1.75; }
input[type="text"], select {
  width: 100%; min-height: 52px; padding: var(--s-2) var(--s-4); font: inherit; color: var(--fg); background: var(--surface);
  border: 2px solid var(--border-strong); border-radius: var(--radius-s);
}
input[type="text"] { font-size: 1.15rem; text-align: right; }
.input-unit { position: relative; }
.input-unit input { padding-right: 40px; }
.input-unit::after { content: "円"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .875rem; font-weight: 700; margin: var(--s-2) 0 0; }
.err:empty { display: none; }
.seg { display: inline-flex; border: 2px solid var(--border-strong); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; min-height: 44px; padding: 0 20px; font-weight: 700; }
.seg input:checked + span { background: var(--accent); color: var(--accent-fg); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }
.radios { display: flex; flex-direction: column; gap: var(--s-2); }
.radios label { display: flex; align-items: flex-start; gap: var(--s-3); min-height: 48px; padding: var(--s-3) 0; cursor: pointer; line-height: 1.6; }
.radios input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr; gap: 0 var(--s-5); }
@media (min-width: 560px) and (max-width: 899px), (min-width: 1100px) { .row2 { grid-template-columns: 1fr 1fr; } }
button, .btn {
  font: inherit; font-weight: 700; min-height: 48px; padding: var(--s-2) var(--s-5); border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-fg); border: 2px solid var(--accent);
}
button.secondary { background: transparent; color: var(--accent-strong); border-color: var(--border-strong); }
button.secondary:hover { background: var(--surface-2); }

/* 結果 */
.result-panel { min-width: 0; }
.assump { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-4); padding: 0; list-style: none; }
.assump li { font-size: .8rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 12px; line-height: 1.7; }
.hero-result { background: var(--accent-soft); border: 2px solid var(--accent); border-radius: var(--radius); padding: var(--s-5) 28px; box-shadow: var(--shadow); }
.hero-result p { margin: var(--s-1) 0; }
.hr-label { font-size: .85rem; font-weight: 700; color: var(--accent-strong); }
.hr-name { font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.hr-amount { font-size: 2.6rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.hr-amount small { font-size: .85rem; font-weight: 400; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.hr-diff { font-size: .95rem; }
.hero-result .small { margin-top: var(--s-3); }
.empty-state { background: var(--surface); border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: var(--s-6); color: var(--muted); }
.method-list { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-4); }
.method { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); padding: var(--s-4) var(--s-5); box-shadow: var(--shadow); }
.method.min { border: 2px solid var(--accent); }
.method.na { background: var(--na-bg); color: var(--muted); box-shadow: none; border-style: dashed; padding: var(--s-3) var(--s-5); }
.m-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-3); }
.m-name { font-weight: 700; margin: 0; font-size: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
.m-amount { font-size: 1.5rem; font-weight: 700; margin: 0; line-height: 1.4; }
.m-sub { font-size: .85rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }
.badge { font-size: .75rem; font-weight: 700; padding: 0 10px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); line-height: 1.7; }
.badge.na { background: transparent; color: var(--muted); border: 1px solid var(--muted); }
svg.bar { display: block; width: 100%; height: 8px; margin: var(--s-2) 0 var(--s-1); border-radius: 4px; overflow: hidden; }
svg.bar .track { fill: var(--bar-track); }
svg.bar .fill { fill: var(--bar-fill); }
.min svg.bar .fill { fill: var(--accent); }
.method details { margin: var(--s-2) 0 0; }
.method summary { cursor: pointer; font-size: .85rem; color: var(--accent-strong); min-height: 44px; display: flex; align-items: center; }
dl.kv { margin: var(--s-2) 0 0; display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-4); font-size: .9rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; text-align: right; }
dl.kv .total { font-weight: 700; color: var(--fg); border-top: 1px solid var(--border); padding-top: var(--s-2); margin-top: var(--s-1); }
.method ul.notes { margin: var(--s-3) 0 0; padding-left: 1.2em; font-size: .85rem; color: var(--muted); line-height: 1.7; }
.method ul.notes li { margin: var(--s-2) 0; }
.ratio-box { margin-top: var(--s-5); }
.ratio-box p { margin: var(--s-2) 0; }
.quickbar { display: none; }
.quickbar.is-covered { display: none !important; }
@media (max-width: 899px) {
  .quickbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 6px 18px; background: var(--accent); color: var(--accent-fg); border-radius: 999px; text-decoration: none; font-weight: 700; box-shadow: 0 4px 18px rgba(0, 0, 0, .3); }
  .quickbar[hidden] { display: none; }
  body.has-quickbar { padding-bottom: 76px; }
}

/* 表 */
.table-scroll { overflow-x: auto; margin: var(--s-5) 0; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 440px; font-size: .95rem; line-height: 1.6; }
caption { text-align: left; padding: var(--s-3) var(--s-4) 0; }
th, td { border-bottom: 1px solid var(--border); padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; }
thead th { background: var(--surface-2); font-size: .875rem; white-space: nowrap; }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th[scope="row"] { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th[rowspan] { border-right: 1px solid var(--border); background: var(--surface-2); min-width: 10em; }

/* 届出期限ナビ */
.countdown { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 700; border-radius: 999px; padding: var(--s-1) var(--s-4); margin: var(--s-3) 0; }
.countdown.ok { background: var(--ok-bg); color: var(--accent-strong); }
.countdown.soon { background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-border); }
.countdown.over { background: var(--surface); color: var(--danger); border: 2px solid var(--danger); }
.countdown b { font-size: 1.5rem; }
ol.timeline { list-style: none; margin: var(--s-5) 0 0; padding: 0 0 0 4px; position: relative; }
ol.timeline::before { content: ""; position: absolute; left: 14px; top: 10px; bottom: 10px; width: 3px; background: var(--border); border-radius: 2px; }
ol.timeline li { position: relative; padding: var(--s-1) 0 var(--s-5) 44px; }
ol.timeline li::before { content: ""; position: absolute; left: 6px; top: 10px; width: 19px; height: 19px; border-radius: 50%; background: var(--surface); border: 4px solid var(--border-strong); }
ol.timeline li.is-deadline::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
ol.timeline li.is-today::before { border-color: var(--focus); background: var(--surface); }
.tl-tag { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 0 10px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.is-deadline .tl-tag { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.is-today .tl-tag { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-border); }
.tl-date { display: block; font-weight: 700; font-size: 1.05rem; margin: var(--s-1) 0 0; }
.is-deadline .tl-date { font-size: 1.6rem; line-height: 1.4; }
.tl-note { display: block; font-size: .9rem; color: var(--muted); }
.deadline-card { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-5) 28px; margin-top: var(--s-5); }
.deadline-card h2 { border: 0; padding: 0; margin: 0 0 var(--s-2); font-size: 1rem; color: var(--accent-strong); }
.deadline-card p { margin: var(--s-3) 0; }
.deadline-card .tl-date { font-size: 1.9rem; line-height: 1.4; }

/* 記事 */
.crumbs { font-size: .875rem; color: var(--muted); margin: 0 0 var(--s-5); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { color: var(--muted); }
article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-7) var(--s-7) var(--s-6); }
article > h1 { font-size: 1.75rem; }
article > .small:first-of-type { margin-bottom: var(--s-5); }
article p, article li { max-width: 40em; }
article ul, article ol { padding-left: 1.4em; }
article p { margin: 1.1em 0; }
article li { margin: var(--s-3) 0; }
article h2 { margin-top: 56px; scroll-margin-top: var(--s-5); }
.article-pre { display: grid; gap: var(--s-5); margin: 0 0 var(--s-5); }
.box-title { margin: 0 0 var(--s-2); font-weight: 700; font-size: .95rem; }
.learn { background: var(--surface-2); border-radius: var(--radius-s); padding: var(--s-5) 28px; }
.learn ul { margin: var(--s-2) 0 0; }
.toc { border: 1px solid var(--border); border-radius: var(--radius-s); padding: var(--s-5) 28px; }
.toc ol { margin: var(--s-2) 0 0; padding-left: 1.5em; }
.toc li { margin: var(--s-1) 0; }
.toc a { display: inline-block; padding: var(--s-2) 0; }
.conclusion { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-s); padding: var(--s-2) 28px var(--s-4); margin: var(--s-6) 0; }
.conclusion > h2 { margin: var(--s-4) 0 var(--s-3); font-size: 1.15rem; border: 0; padding: 0; }
.conclusion p { margin: var(--s-4) 0; }
.callout { border-radius: var(--radius-s); padding: var(--s-2) 28px var(--s-4); margin: var(--s-7) 0 var(--s-5); }
.callout.warn { background: var(--warn-bg); color: var(--warn-fg); border-left: 6px solid var(--warn-border); }
.callout.warn a { color: inherit; }
.callout.warn > h2 { margin: var(--s-3) 0 var(--s-3); font-size: 1.1rem; border: 0; padding: 0; }
.callout-label { display: inline-block; margin: var(--s-4) 0 0; font-size: .75rem; font-weight: 700; padding: 0 10px; border-radius: 999px; background: var(--warn-border); color: #1f1400; }
section#sources { margin-top: var(--s-7); font-size: .9rem; color: var(--muted); }
section#sources h2 { font-size: 1.05rem; }
section#sources li { word-break: break-all; }
article > p.small:last-child { border-top: 1px solid var(--border); padding-top: var(--s-4); margin-top: var(--s-6); }

/* 関連ページ */
.related { margin-top: var(--s-8); }
.related h2 { margin-top: 0; }
.cards { display: grid; grid-template-columns: 1fr; gap: var(--s-5); margin: var(--s-5) 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.cards a { display: block; height: 100%; padding: var(--s-5) var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); text-decoration: none; color: var(--fg); box-shadow: var(--shadow); }
.cards a:hover { border-color: var(--accent); }
.cards a:hover .card-title { text-decoration: underline; }
.card-kind { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; padding: 0 10px; }
.card-title { display: block; font-weight: 700; margin: var(--s-2) 0 var(--s-1); line-height: 1.55; }
.card-desc { display: block; font-size: .875rem; color: var(--muted); line-height: 1.65; }

/* フッター */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: var(--s-7) 0 var(--s-8); font-size: .92rem; line-height: 1.8; }
.site-footer p { margin: var(--s-3) 0; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5) var(--s-7); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 3fr 2fr; } }
.foot-brand { font-weight: 700; font-size: 1rem; }
.site-footer .disclaimer { font-weight: 700; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer details { box-shadow: none; }
.site-footer ul { padding-left: 1.2em; margin: var(--s-2) 0; }
.site-footer details.fold { margin-top: var(--s-6); }
.site-footer .foot-links { padding-left: 0; }
.ad-slot { margin-bottom: var(--s-4); }

@media (max-width: 599px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  main { padding-top: var(--s-6); padding-bottom: var(--s-7); }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.3rem; margin-top: var(--s-7); }
  .site-header nav a { padding: 0 10px; }
  .panel { padding: var(--s-5); }
  article { padding: var(--s-6) var(--s-5) var(--s-5); }
  .hr-amount { font-size: 2.3rem; }
  .hero-result, .deadline-card { padding: var(--s-5); }
  .banner { flex-direction: column; gap: var(--s-2); }
  .conclusion, .callout { padding-left: var(--s-5); padding-right: var(--s-5); }
  .learn, .toc { padding: var(--s-4) var(--s-5); }
}

/* トップページ(ハブ) */
.hero { padding: var(--s-5) 0 var(--s-4); }
.hero h1 { font-size: 2.2rem; line-height: 1.4; text-wrap: balance; }
.hero .lead { font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin: var(--s-6) 0 var(--s-5); }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
a.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
a.btn.btn-lg { min-height: 60px; padding: var(--s-3) var(--s-6); font-size: 1.1rem; }
a.btn.btn-ghost { background: transparent; color: var(--accent-strong); border-color: var(--accent); }
a.btn.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-strong); }
.hub-sec > h2 { margin-top: var(--s-8); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-6) var(--s-5) var(--s-5); box-shadow: var(--shadow); }
.steps h3 { margin: var(--s-4) 0 var(--s-2); }
.steps p { margin: var(--s-2) 0 0; color: var(--muted); }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 1.15rem; }
.hub-cards { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
.hub-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-6) var(--s-5); box-shadow: var(--shadow); }
.hub-card h3 { margin: var(--s-4) 0 var(--s-3); font-size: 1.2rem; }
.hub-card h3 a { color: var(--fg); text-decoration: none; }
.hub-card h3 a:hover { text-decoration: underline; }
.hub-card p { margin: var(--s-3) 0; color: var(--muted); font-size: .95rem; }
.hub-go { font-weight: 700; }
.hub-go a::after { content: " \2192"; }
.hub-list { list-style: none; margin: 0; padding: 0; }
.hub-list li { margin: 0; border-top: 1px solid var(--border); }
.hub-list li:first-child { border-top: 0; }
.hub-list a { display: flex; align-items: center; min-height: 56px; padding: var(--s-2) 0; line-height: 1.55; font-size: .95rem; }
.faq { display: grid; gap: var(--s-5); }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-5); }
.faq-item h3 { margin: 0 0 var(--s-2); font-size: 1.1rem; }
.faq-item p { margin: var(--s-2) 0 0; }
.faq-item p a { display: inline-block; margin-left: var(--s-1); padding: var(--s-2) 0; font-weight: 700; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
.trust li { background: var(--surface-2); border-radius: var(--radius); padding: var(--s-5); line-height: 1.8; }
.trust strong { display: block; margin-bottom: var(--s-2); color: var(--accent-strong); }
.kv-plain { margin: 0; display: grid; grid-template-columns: 1fr; gap: var(--s-1) var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-5); }
.kv-plain dt { font-weight: 700; margin-top: var(--s-3); }
.kv-plain dt:first-child { margin-top: 0; }
.kv-plain dd { margin: 0; color: var(--muted); }
@media (min-width: 720px) {
  .steps, .trust { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: 1fr 1fr; }
  .faq { gap: var(--s-5); }
  .kv-plain { grid-template-columns: max-content 1fr; padding: var(--s-5) var(--s-6); }
  .kv-plain dt { margin-top: 0; }
}
@media (min-width: 960px) { .hub-cards { grid-template-columns: 1fr 1fr 1.3fr; } }
@media (min-width: 720px) and (max-width: 959px) { .hub-cards { grid-template-columns: 1fr 1fr; } .hub-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 599px) {
  .hero { padding-top: var(--s-2); }
  .hero h1 { font-size: 1.65rem; }
  .hero-actions { flex-direction: column; gap: var(--s-3); }
  a.btn.btn-lg { width: 100%; padding: var(--s-3) var(--s-5); }
}
@media print { .site-header, .quickbar, .skip { display: none; } body { background: #fff; } }
