/* 全サイト共通のスタイル（手本は leak-guard の 3 回目のデザイン、2026-11-01）
   色は基調 1 色、白と薄いグレーの帯を交互に、影・大きな角丸のカード・グラデーション・アイコンのバッジは使わない。
   文字の大きさと太さ、余白で並べる。デザインの正本は Skill web-design-check。
   基調色は組み立て（shared/build-lib.mjs）が site.json の accent・accentDark で下の 2 行を差し替える。
   印の「site:accent」「site:accentDark」のコメントは消さない。 */
:root {
  --bg: #ffffff;
  --band: #eef1f5;
  --ink: #1b2330;
  --muted: #5f6873;
  --line: #d9dee5;
  --accent: #1f3b70; /* site:accent */
  --accent-ink: #ffffff;
  --warn: #b4232c;
  --focus: #2563eb;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --num: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141c; --band: #171e29; --ink: #e6e9ee; --muted: #a2aab5; --line: #2a3340;
    --accent: #8fb0ea; /* site:accentDark */
    --accent-ink: #0f141c; --warn: #f19aa0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.85; letter-spacing: 0.03em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
h1, h2, h3 { line-height: 1.4; letter-spacing: 0.04em; margin: 0; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.02rem; font-weight: 800; }
p { margin: 0; }
.nb { display: inline-block; }
.ic { display: none; } /* アイコンは使わない（組み立ての印が残っても表示しない） */

/* ヘッダー・フッター */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; min-height: 68px; }
.site-name { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: 0.06em; }
.site-nav ul { display: flex; gap: 4px 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.86rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 700; }
@media (max-width: 600px) { .site-header .wrap { padding-top: 12px; padding-bottom: 12px; } .site-nav ul { gap: 2px 14px; } }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 18px 0 0; font-size: 0.8rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 0.8rem; color: var(--muted); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 0 0 14px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer p { margin-top: 6px; }

/* 帯 */
.band { padding: 88px 0; }
.band.alt { background: var(--band); }
.band.tight { padding: 56px 0; }
.band h2 + .sub { margin-top: 12px; color: var(--muted); }
.band .sub + * { margin-top: 40px; }
@media (max-width: 600px) { .band { padding: 56px 0; } .band.tight { padding: 40px 0; } .band .sub + * { margin-top: 28px; } }

/* トップの見出し */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 80px 0 88px; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); font-weight: 900; line-height: 1.3; letter-spacing: 0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 26px; color: var(--muted); line-height: 2; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 15px 30px; border-radius: 6px; text-decoration: none; }
.btn:hover { filter: brightness(1.12); }
.textlink { font-weight: 700; text-decoration: none; }
.textlink:hover { text-decoration: underline; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 56px; } }

/* お詫びメールの見本（注釈つき） */
.mock { position: relative; }
.mock-mail, .mock-doc { border: 1px solid var(--line); background: var(--bg); padding: 22px 24px 26px; font-size: 0.86rem; line-height: 1.8; position: relative; }
.mm-row { display: grid; grid-template-columns: 4.5em 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mm-k { color: var(--muted); }
.mm-body { margin-top: 14px; color: var(--muted); }
.mm-link { display: inline-block; margin-top: 12px; color: #1d4ed8; text-decoration: underline; word-break: break-all; }
.pin { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: var(--warn); color: #fff; font-size: 0.78rem; font-weight: 800; display: grid; place-items: center; letter-spacing: 0; }
.mock-notes { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 0.84rem; color: var(--muted); }
.mock-notes li { display: flex; gap: 10px; align-items: baseline; }
.mock-notes .pin { position: static; flex: none; width: 20px; height: 20px; font-size: 0.7rem; }
.mock-caption { margin-top: 6px; font-size: 0.75rem; color: var(--muted); }

/* 3 つの列 */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; list-style: none; padding: 0; margin: 0; }
.cols.two { grid-template-columns: repeat(2, 1fr); }
.cols h3 { margin-bottom: 10px; }
.cols p { color: var(--muted); font-size: 0.92rem; line-height: 1.9; }
.cols .more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.cols .more::after { content: " →"; }
@media (max-width: 760px) { .cols, .cols.two { grid-template-columns: 1fr; gap: 28px; } }

/* 流れ（上に線、番号、太字、短い文） */
.flow { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 32px 24px; list-style: none; padding: 0; margin: 0; counter-reset: f; }
.flow > li { counter-increment: f; border-top: 3px solid var(--accent); padding-top: 18px; }
.flow > li::before { content: counter(f); display: block; font-weight: 800; color: var(--accent); font-size: 0.9rem; margin-bottom: 8px; }
.flow b { display: block; margin-bottom: 6px; }
.flow p { color: var(--muted); font-size: 0.88rem; line-height: 1.85; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; gap: 26px; } }

/* 大きな数字の並び */
.figures { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; list-style: none; margin: 0; }
.figures .k { display: block; font-size: 0.84rem; color: var(--muted); }
.figures .v { display: block; font-family: var(--num); font-size: clamp(1.7rem, 4.4vw, 2.3rem); font-weight: 800; letter-spacing: 0.01em; line-height: 1.35; margin-top: 4px; }
.figures .v small { font-size: 0.9rem; font-weight: 700; margin-left: 2px; }
.figures .n { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.figures.four .v { font-size: clamp(1.3rem, 2.4vw, 1.9rem); white-space: nowrap; }
@media (max-width: 760px) { .figures { grid-template-columns: 1fr 1fr; } }
.note { margin-top: 18px; color: var(--muted); font-size: 0.84rem; }

/* 表のように並べる一覧（漏れた情報ごと など） */
.spec { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.spec > li { display: grid; grid-template-columns: 15em 1fr; gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec b { font-weight: 800; }
.spec span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .spec > li { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; } }

/* チェッカー */
.checker fieldset { border: 0; padding: 0; margin: 0; }
.checker legend { padding: 0; color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.checker .opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 860px) { .checker .opts { grid-template-columns: repeat(2, 1fr); } }
.checker label.opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--bg); padding: 14px 14px; cursor: pointer; font-size: 0.92rem; font-weight: 700; line-height: 1.45; border-radius: 4px; }
.checker label.opt input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.checker label.opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tasks { margin-top: 36px; }
.tasks .grp + .grp { margin-top: 28px; }
.tasks h3 { font-size: 0.95rem; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.tasks .today h3 { border-color: var(--warn); color: var(--warn); }
.tasks ol { margin: 0; padding: 0; list-style: none; }
.tasks li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.tasks li a { font-weight: 700; color: var(--ink); text-decoration: none; }
.tasks li a:hover { color: var(--accent); text-decoration: underline; }
.tasks li .why { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.tasks .empty { color: var(--muted); font-size: 0.9rem; }

/* ニュース */
.news { border-left: 3px solid var(--warn); padding: 4px 0 4px 20px; }
.news .when { font-size: 0.8rem; color: var(--muted); }
.news b { display: block; font-size: 1.05rem; margin: 2px 0 8px; }
.news p { color: var(--muted); font-size: 0.9rem; }

/* ほかのページ */
.rel { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 1px solid var(--line); }
.rel a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.rel b { display: block; }
.rel b::after { content: " →"; color: var(--accent); }
.rel span { display: block; color: var(--muted); font-size: 0.86rem; }
@media (max-width: 760px) { .rel { grid-template-columns: 1fr; } }

/* ページの見出し（ガイド） */
.page-head { padding: 48px 0 8px; }
.page-head .kicker { display: block; font-size: 0.84rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; letter-spacing: 0.08em; }
.page-head h1 { font-size: clamp(1.8rem, 4.8vw, 2.7rem); font-weight: 900; }
.page-head p { margin-top: 18px; color: var(--muted); max-width: 40em; line-height: 2; }

/* 注意の一行 */
.callout { border-left: 3px solid var(--accent); padding: 6px 0 6px 18px; font-weight: 700; }
.callout.warn { border-color: var(--warn); }

/* たたむ（出典・よくある質問） */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
details > summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.2rem; color: var(--muted); font-weight: 400; }
details[open] > summary::after { content: "−"; }
details > :not(summary) { padding-bottom: 18px; color: var(--muted); font-size: 0.92rem; }
.sources { padding-left: 1.1em; font-size: 0.8rem; word-break: break-all; }
.sources li { margin: 6px 0; }

/* 広告の枠 */
.cta { border: 1px solid var(--line); padding: 20px 22px; margin: 32px 0; }
.cta .cta-label { display: inline-block; font-size: 0.72rem; border: 1px solid var(--line); color: var(--muted); padding: 0 8px; margin-bottom: 8px; }
.cta p + p { margin-top: 10px; }
.ad-slot:empty { display: none; }

/* 本文の段落の間 */
.stack > * + * { margin-top: 16px; }
