/* 業務ツールの選び帳 — 請求業務の見取り図と確認帳。罫線・番号・表を主役にし、グラデーションや影の強いカードは使わない。 */
:root {
  --accent: #16766f;
  --accent-dark: #075a55;
  --accent-soft: #e7f3f1;
  --accent-grad-start: #16766f; /* 雛形互換。画面では使わない */
  --accent-grad-end: #075a55;
  --ink: #172522;
  --ink-soft: #34433f;
  --muted: #5c6b67;
  --paper: #fffefa;
  --surface: #f3f7f6;
  --line: #d2deda;
  --line-strong: #92aaa4;
  --warn: #76590b;
  --warn-soft: #fff7dc;
  --danger: #aa2538;
  --container: 1120px;
  --narrow: 760px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.8; color: var(--ink); background: var(--paper); overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.45; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); margin: 8px 0 16px; letter-spacing: 0.01em; }
h2 { font-size: 1.25rem; margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
h3 { font-size: 1.0625rem; margin: 32px 0 8px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 1.4em; margin: 0 0 16px; }
li + li { margin-top: 4px; }
table { border-collapse: collapse; }
[id] { scroll-margin-top: 80px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 8px; top: -80px; background: var(--accent-dark); color: #fff; padding: 12px 16px; z-index: 100; }
.skip-link:focus { top: 8px; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-top: 4px solid var(--accent-dark); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.0625rem; }
.logo-mark { width: 30px; height: 30px; color: var(--accent-dark); flex: none; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink-soft); text-decoration: none; font-size: 0.9375rem; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--accent-dark); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { color: var(--accent-dark); font-weight: 700; border-bottom-color: var(--accent-dark); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 4px; font: inherit; font-size: 0.9375rem; cursor: pointer; }
  .nav-toggle-bars { display: inline-grid; gap: 4px; }
  .nav-toggle-bars span { display: block; width: 18px; height: 2px; background: currentColor; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line-strong); padding: 8px 16px 16px; }
  .js .site-nav.open { display: flex; }
  .site-nav { flex-wrap: wrap; }
  .js .site-nav a { border-bottom: 1px solid var(--line); border-left: 3px solid transparent; padding: 0 12px; }
  .js .site-nav a[aria-current="page"] { border-left-color: var(--accent-dark); border-bottom-color: var(--line); }
  .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; padding-bottom: 8px; }
}

/* ---------- パンくず・ページ骨格 ---------- */
.breadcrumb { padding-top: 16px; font-size: 0.8125rem; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: var(--line-strong); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.breadcrumb span[aria-current] { color: var(--ink-soft); }

.page { max-width: var(--narrow); margin: 0 auto; padding: 8px 24px 72px; }
.page-wide { max-width: var(--container); margin: 0 auto; padding: 8px 24px 72px; }
.measure { max-width: var(--narrow); }
.eyebrow { display: inline-block; margin: 16px 0 0; padding-left: 10px; border-left: 3px solid var(--accent); color: var(--accent-dark); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.5; }
.lead { font-size: 1.0625rem; color: var(--ink-soft); }
.page-dates { font-size: 0.8125rem; color: var(--muted); margin-bottom: 24px; }
.page-dates a { display: inline-block; min-height: 44px; line-height: 44px; }
.note { font-size: 0.9375rem; color: var(--muted); }
.caution { background: var(--warn-soft); border-left: 4px solid var(--warn); padding: 12px 16px; margin: 16px 0 24px; }
.caution p:last-child, .caution ul:last-child { margin-bottom: 0; }
.caution-title { font-weight: 700; color: #5a4306; margin-bottom: 4px; }

/* 見出し番号 */
.h-no { display: inline-block; min-width: 2.2em; margin-right: 8px; font-family: var(--mono); font-size: 0.9375rem; color: var(--accent-dark); font-weight: 700; }

/* ---------- ホーム ---------- */
.home-hero { padding: 40px 0 32px; border-bottom: 1px solid var(--line); }
.home-hero h1 { font-size: clamp(1.625rem, 1.1rem + 2.2vw, 2.5rem); margin-top: 8px; max-width: 22em; }
.home-hero .lead { max-width: 44em; }
.entry-pair { display: grid; grid-template-columns: 1fr 1fr; margin: 32px 0 8px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.entry-pair a { display: block; padding: 20px 24px 20px 0; min-height: 56px; color: var(--ink); text-decoration: none; }
.entry-pair a + a { padding-left: 24px; border-left: 1px solid var(--line-strong); }
.entry-pair a:hover .entry-go { text-decoration: underline; }
.entry-kind { display: block; font-size: 0.8125rem; color: var(--muted); font-family: var(--mono); }
.entry-title { display: block; font-size: 1.1875rem; font-weight: 700; margin: 4px 0 6px; }
.entry-desc { display: block; color: var(--ink-soft); font-size: 0.9375rem; }
.entry-go { display: inline-block; margin-top: 8px; color: var(--accent-dark); font-weight: 700; }
@media (max-width: 720px) {
  .entry-pair { grid-template-columns: 1fr; }
  .entry-pair a { padding: 16px 0; }
  .entry-pair a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-strong); }
}

.question-index { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.question-index li { margin: 0; border-bottom: 1px solid var(--line); }
.question-index a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px 8px 0; color: var(--ink); text-decoration: none; }
.question-index a:hover span:last-child { text-decoration: underline; }
.question-index .q-stage { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent-dark); min-width: 4.5em; }
@media (max-width: 720px) { .question-index { grid-template-columns: 1fr; } }

.two-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.two-links a { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 12px 16px 12px 0; color: var(--ink); text-decoration: none; }
.two-links a + a { border-left: 1px solid var(--line); padding-left: 16px; }
.two-links b { color: var(--accent-dark); }
.two-links span { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 720px) {
  .two-links { grid-template-columns: 1fr; }
  .two-links a + a { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- 4段フロー ---------- */
.flow { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.flow > li { margin: 0; position: relative; padding: 16px 16px 16px 0; border-right: 1px solid var(--line); }
.flow > li + li { padding-left: 16px; }
.flow > li:last-child { border-right: 0; }
.stage-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.0625rem; font-weight: 700; }
.stage-no { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; background: var(--accent-dark); color: #fff; font-family: var(--mono); font-size: 0.875rem; border-radius: 2px; flex: none; }
.stage-head a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.stage-head a:hover { text-decoration: underline; color: var(--accent-dark); }
.stage-dl { margin: 0; font-size: 0.875rem; line-height: 1.7; }
.stage-dl dt { color: var(--muted); font-size: 0.75rem; font-weight: 700; margin-top: 8px; }
.stage-dl dt:first-child { margin-top: 0; }
.stage-dl dd { margin: 0; color: var(--ink-soft); }
.stage-dl .stop { color: #5a4306; }
@media (max-width: 1000px) and (min-width: 721px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow > li:nth-child(2) { border-right: 0; }
  .flow > li:nth-child(3) { padding-left: 0; }
  .flow > li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr; border-top: 0; margin-left: 13px; }
  .flow > li, .flow > li + li { border-right: 0; border-left: 2px solid var(--accent); padding: 0 0 20px 24px; }
  .flow > li:last-child { padding-bottom: 4px; }
  .stage-head { margin-left: -39px; }
  .stage-no { width: 28px; }
}

/* ---------- 行リンク・定義表 ---------- */
.row-links { list-style: none; padding: 0; margin: 16px 0 24px; border-top: 1px solid var(--line-strong); }
.row-links li { margin: 0; border-bottom: 1px solid var(--line); }
.row-links a { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.row-links a:hover .row-title { text-decoration: underline; color: var(--accent-dark); }
.row-title { font-weight: 700; color: var(--accent-dark); }
.row-desc { font-size: 0.9375rem; color: var(--ink-soft); }
.row-group { margin: 32px 0 0; font-size: 0.9375rem; color: var(--muted); font-weight: 700; }

.info-table { width: 100%; margin: 16px 0 24px; font-size: 0.9375rem; }
.info-table th, .info-table td { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.info-table th { width: 32%; color: var(--ink-soft); font-weight: 700; }
.info-table td + td, .info-table th + td { padding-left: 12px; }
@media (max-width: 560px) {
  .info-table.stack tr, .info-table.stack th, .info-table.stack td { display: block; width: 100%; }
  .info-table.stack th { border-bottom: 0; padding-bottom: 0; }
  .info-table.stack td { border-top: 0; padding-left: 0 !important; }
}

.step-table { width: 100%; margin: 16px 0 24px; font-size: 0.9375rem; }
.step-table caption { text-align: left; font-weight: 700; padding-bottom: 8px; }

/* ---------- 比較表 ---------- */
.compare-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 0.9375rem; color: var(--ink-soft); margin: 16px 0 8px; }
.scroll-hint { display: none; font-size: 0.875rem; color: var(--muted); margin: 0 0 8px; }
.comparison-scroll { overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.comparison-scroll:focus-visible { outline-offset: 4px; }
.comparison { width: 100%; min-width: 760px; font-size: 0.9375rem; line-height: 1.7; }
.comparison th, .comparison td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison thead th { background: var(--surface); font-size: 1rem; border-bottom: 1px solid var(--line-strong); }
.comparison thead th small { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.comparison .item-col { position: sticky; left: 0; z-index: 1; width: 11em; min-width: 10em; background: var(--paper); font-weight: 700; color: var(--ink-soft); border-right: 1px solid var(--line); }
.comparison thead .item-col { z-index: 2; background: var(--surface); }
.comparison td { min-width: 9em; width: 42%; }
.comparison td ul { margin: 0; padding-left: 1.2em; }
.comparison td p { margin: 0 0 6px; }
.comparison td p:last-child { margin-bottom: 0; }
.cell-src { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 6px; }
.status-check { display: inline-block; font-size: 0.8125rem; font-weight: 700; color: #5a4306; border: 1px dashed var(--warn); padding: 0 6px; margin-right: 4px; }
@media (max-width: 880px) {
  .scroll-hint { display: block; }
  .comparison { font-size: 0.875rem; }
}

/* ---------- 料金・条件ブロック ---------- */
.terms-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin: 16px 0 32px; }
.terms { border-top: 3px solid var(--accent-dark); border-bottom: 1px solid var(--line-strong); padding: 12px 0 8px; }
.terms.campaign { border-top-color: var(--warn); }
.terms h3, .terms h4 { margin: 0 0 8px; font-size: 1.0625rem; }
.terms .main-figure { font-size: 1rem; margin: 0 0 8px; }
.terms .main-figure b { font-size: 1.0625rem; }
.terms .ref { color: var(--muted); font-size: 0.875rem; }
.terms ul { font-size: 0.9375rem; }
.terms .cond-label { font-size: 0.8125rem; font-weight: 700; color: var(--muted); margin: 8px 0 2px; }
.terms .src { font-size: 0.8125rem; color: var(--muted); margin: 8px 0 0; }
.tax-note { font-size: 0.875rem; color: var(--ink-soft); background: var(--surface); padding: 8px 12px; border-left: 3px solid var(--line-strong); }
.plan-table { width: 100%; font-size: 0.9375rem; margin: 8px 0 12px; }
.plan-table th, .plan-table td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.plan-table thead th { font-size: 0.8125rem; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.plan-table td + td, .plan-table th + th { padding-left: 8px; }
.table-scroll { overflow-x: auto; }
/* 料金表: 狭い画面でもプラン名・列を潰さず、表の中だけ横にスクロールする */
.terms-grid > .terms, .terms { min-width: 0; }
.price-scroll { overflow-x: auto; max-width: 100%; }
.price-scroll .plan-table { min-width: 520px; }
.plan-table tbody th { white-space: nowrap; }
.price-scroll-hint { display: none; font-size: 0.875rem; color: var(--muted); margin: 0 0 4px; }
.required-cost { font-weight: 700; color: var(--ink); border-left: 4px solid var(--warn); background: var(--warn-soft); padding: 8px 12px; margin: 8px 0 12px; }
@media (max-width: 600px) {
  .price-scroll-hint { display: block; }
}
@media (max-width: 560px) {
  .role-table thead { display: none; }
  .role-table tr, .role-table th, .role-table td { display: block; width: 100%; }
  .role-table tr { border-top: 1px solid var(--line-strong); padding: 8px 0; }
  .role-table th, .role-table td { border-bottom: 0; padding: 4px 0 !important; }
  .role-table td::before { content: attr(data-label); display: block; font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
}

/* 公式リンク */
.official { margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.official p { margin-bottom: 8px; }
.official-link { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 16px; border: 2px solid var(--accent-dark); color: var(--accent-dark); font-weight: 700; text-decoration: none; border-radius: 3px; background: var(--paper); }
.official-link:hover { background: var(--accent-soft); }
.official .note { margin: 8px 0 0; }

/* ---------- 記事 ---------- */
.article-body h2 { margin-top: 48px; }
.article-body table { width: 100%; font-size: 0.9375rem; margin: 16px 0 24px; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 8px 8px 8px 0; text-align: left; vertical-align: top; }
.article-body thead th { border-bottom: 1px solid var(--line-strong); font-size: 0.875rem; color: var(--ink-soft); }
.article-body td + td, .article-body th + th { padding-left: 8px; }
.article-body blockquote { margin: 16px 0; padding: 8px 16px; border-left: 3px solid var(--line-strong); color: var(--ink-soft); background: var(--surface); }
.article-body .wide-table { overflow-x: auto; }
.article-body .wide-table table { min-width: 640px; }
.scroll-note { display: none; font-size: 0.875rem; color: var(--muted); margin: 0 0 4px; }
@media (max-width: 720px) { .scroll-note { display: block; } }
.sample-label { display: inline-block; font-size: 0.8125rem; font-weight: 700; color: #5a4306; border: 1px solid var(--warn); padding: 0 8px; margin-bottom: 8px; }
.data-block { margin: 24px 0 32px; }

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-of-type { border-top: 1px solid var(--line-strong); }
.faq-list summary { cursor: pointer; min-height: 48px; padding: 12px 0; font-weight: 700; display: list-item; }
.faq-list details p { padding: 0 0 12px; margin: 0; color: var(--ink-soft); }

.sources { margin-top: 48px; font-size: 0.875rem; color: var(--ink-soft); border-top: 1px solid var(--line-strong); padding-top: 8px; }
.sources h2 { font-size: 1rem; border: 0; margin: 8px 0; padding: 0; }
.sources ol { padding-left: 1.4em; }
.sources li { margin: 0; }
.sources li a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; line-height: 1.6; }

/* ---------- 確認メモツール ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.tool-aside { border-top: 2px solid var(--ink); padding-top: 12px; font-size: 0.9375rem; position: sticky; top: 88px; }
.tool-aside h2 { font-size: 1rem; margin: 0 0 8px; border: 0; padding: 0; }
.tool-aside ul { padding-left: 1.2em; }
@media (max-width: 960px) { .tool-layout { grid-template-columns: 1fr; gap: 16px; } .tool-aside { position: static; } }
.req-form fieldset { border: 0; border-top: 1px solid var(--line-strong); margin: 0; padding: 16px 0 20px; min-width: 0; }
.req-form legend { float: left; width: 100%; padding: 0; font-weight: 700; font-size: 1.0625rem; line-height: 1.5; display: flex; gap: 10px; align-items: baseline; }
.req-form legend .q-no { font-family: var(--mono); font-size: 0.875rem; color: var(--accent-dark); flex: none; }
.q-help { clear: both; font-size: 0.875rem; color: var(--muted); margin: 0; padding: 6px 0 10px; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--paper); cursor: pointer; font-size: 0.9375rem; line-height: 1.5; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent-dark); flex: none; }
.choice:has(input:checked) { border-color: var(--accent-dark); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-dark); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 20px; border-radius: 3px; font: inherit; font-weight: 700; cursor: pointer; border: 2px solid var(--accent-dark); }
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: #04413d; }
.btn-secondary { background: var(--paper); color: var(--accent-dark); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; }
.form-status { min-height: 1.8em; font-size: 0.9375rem; color: var(--ink-soft); margin: 4px 0 0; }
.form-status.is-error { color: var(--danger); font-weight: 700; }
.form-status.is-error::before { content: "注意: "; }

.memo { margin: 24px 0; border-top: 2px solid var(--ink); padding-top: 12px; }
.memo-heading { font-size: 1.125rem; font-weight: 700; margin: 0 0 8px; }
.memo[data-status="idle"] .memo-heading, .memo[data-status="empty"] .memo-heading { color: var(--ink-soft); }
.memo-print-meta { display: none; }
.memo-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.memo-item h3 { margin: 0 0 4px; font-size: 1rem; }
.memo-reason { font-size: 0.875rem; color: var(--accent-dark); margin: 0 0 6px; font-weight: 700; }
.memo-item .memo-part { font-size: 0.8125rem; font-weight: 700; color: var(--muted); margin: 8px 0 2px; }
.memo-item ul { margin: 0; font-size: 0.9375rem; }
.memo-unselected { margin-top: 16px; }
.memo-unselected h3 { font-size: 1rem; margin: 0 0 4px; }
.memo-unselected li { color: var(--ink-soft); }
.box-check { display: inline-block; width: 0.9em; height: 0.9em; border: 1px solid var(--ink-soft); margin-right: 6px; vertical-align: -0.1em; }
html:not(.js) #memo { display: none; }
.static-questions { border-top: 1px solid var(--line-strong); margin-top: 16px; padding-top: 8px; }

/* ---------- フッター ---------- */
.site-footer { border-top: 4px solid var(--accent-dark); background: var(--surface); padding: 32px 0 24px; font-size: 0.875rem; color: var(--ink-soft); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; }
.footer-name { font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 4px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-content: start; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.footer-notice { margin: 16px 0 0; }
.footer-copy { margin: 16px 0 0; color: var(--muted); }
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr; } }

@media (max-width: 374px) {
  .header-inner { gap: 8px; }
  .logo { gap: 8px; font-size: 0.9375rem; }
  .logo-mark { width: 26px; height: 26px; }
  .js .nav-toggle { padding: 0 8px; font-size: 0.875rem; }
}

@media (max-width: 560px) {
  .container, .page, .page-wide { padding-left: 16px; padding-right: 16px; }
  h2 { font-size: 1.1875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- 印刷 ---------- */
@media print {
  @page { size: A4 portrait; margin: 14mm 12mm; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.6; }
  .site-header, .site-footer, .breadcrumb, .skip-link, .no-print, .form-actions, .req-form, .tool-aside, .official, .page-dates, .eyebrow, .lead { display: none !important; }
  .page, .page-wide { max-width: none; padding: 0; }
  .tool-layout { display: block; }
  .memo { border-top: 1px solid #000; }
  .memo-print-meta { display: block; font-size: 9.5pt; margin: 0 0 8px; }
  .memo-item { border-bottom: 1px solid #000; break-inside: avoid; }
  .memo-reason { color: #000; }
  a { color: #000; text-decoration: none; }
  .print-only-title { display: block !important; }
}
.print-only-title { display: none; }
