/* ドローン免許ナビ — design_spec.md §2 のトークン */
:root {
  --bg: #F4F6F9; --surface: #FFFFFF; --surface-2: #EEF2F7;
  --ink: #0F1722; --ink-2: #51607A; --ink-3: #64738A;
  --line: #D6DDE8;
  --accent: #1D4E7C; --signal: #A25E12; --good: #1B6E4C;
  --maxw: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1219; --surface: #151D27; --surface-2: #1C2634;
    --ink: #E9EDF4; --ink-2: #9DAABE; --ink-3: #8B99AE;
    --line: #283443;
    --accent: #74B4E8; --signal: #D9A45B; --good: #56C495;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.8 "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p a, li a, dd a, td a, .lead a, .meta a, .note a, .notice a { text-decoration: underline; text-underline-offset: .15em; }
h1 { font-size: 1.6rem; line-height: 1.4; margin: 1.2em 0 .6em; font-weight: 700; }
h2 { font-size: 1.25rem; margin: 1.8em 0 .5em; padding-bottom: .2em; border-bottom: 2px solid var(--line); }
h3 { font-size: 1.08rem; margin: 1.5em 0 .4em; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
pre { background: var(--surface-2); padding: 14px; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; }
blockquote { margin: 1em 0; padding: .4em 1em; border-left: 3px solid var(--accent); color: var(--ink-2); }
.num { font-family: "Roboto Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; font-weight: 500; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.site-nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: .92rem; }
.site-footer { border-top: 1px solid var(--line); margin-top: 4em; padding: 2em 0; color: var(--ink-2); font-size: .85rem; }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: .8em; }

.hero { padding: 2em 0 1em; }
.hero h1 { font-size: 1.9rem; }
.hero p { color: var(--ink-2); }

.btn { display: inline-block; background: var(--accent); color: #fff; padding: .6em 1.1em; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.btn:hover { text-decoration: none; opacity: .92; }
.btn--ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

.badge { display: inline-block; font-size: .78rem; padding: .1em .5em; border-radius: 999px; border: 1px solid currentColor; }
.badge--good { color: var(--good); }
.badge--signal { color: var(--signal); }
.badge--muted { color: var(--ink-3); }

.crumb, .meta { color: var(--ink-2); font-size: .85rem; }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 1em 0; }
.notice--signal { border-color: var(--signal); }

.table-wrap { overflow-x: auto; margin: 1em 0; }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: .92rem; }
th, td { border: 1px solid var(--line); padding: .55em .7em; text-align: left; vertical-align: top; }
thead th { background: var(--surface-2); position: sticky; top: 0; }
tbody th { position: sticky; left: 0; background: var(--surface); white-space: nowrap; }

/* ---------- 比較UI（design_spec §2-3 / モック準拠） ---------- */
.lead { color: var(--ink-2); }
.note { color: var(--ink-2); font-size: .85rem; }
.na, .no { color: var(--ink-3); }
.yes { color: var(--good); font-weight: 700; }
.verified { white-space: nowrap; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 1.2em 0; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.filters label { display: flex; flex-direction: column; gap: 5px; flex: 1 1 150px; min-width: 0; }
.filters label > span, .pick label > span, .pick__label { font-size: .7rem; font-weight: 700; letter-spacing: .09em; color: var(--ink-3); }
select { font-family: inherit; font-size: .92rem; font-weight: 500; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 32px 9px 11px; width: 100%; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
select:focus-visible, input:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filters .btn { flex: 0 0 auto; border: 0; cursor: pointer; font-family: inherit; }

.pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: .8em 0; }
.pick label { display: flex; flex-direction: column; gap: 5px; flex: 1 1 160px; }
.pick__label { flex: 1 0 100%; }
.pick__all { flex-direction: row !important; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-2); flex: 0 0 auto !important; }

.compare { min-width: 100%; }
.table-wrap th, .table-wrap td { white-space: nowrap; }
.post__body .table-wrap th, .post__body .table-wrap td { white-space: normal; min-width: 8em; }
.compare thead th { vertical-align: top; }
.compare thead th a { font-weight: 700; }
.compare thead th .meta { display: block; font-weight: 400; }
.compare tbody th { color: var(--ink-2); font-weight: 500; font-size: .88rem; }
.compare tr.divider th, .compare tr.divider td { background: var(--surface-2); color: var(--ink-2); font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: 6px 12px; }
.compare tr.total th, .compare tr.total td { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); padding-top: 14px; padding-bottom: 14px; }
.compare tr.total th { color: var(--accent); font-weight: 700; }
.num.total { font-size: 1.15rem; font-weight: 700; }
.gap { display: block; font-size: .74rem; color: var(--ink-3); margin-top: 2px; }
tbody tr:hover td, tbody tr:hover th { background: var(--surface-2); }
.compare tr.total:hover th, .compare tr.total:hover td { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
[hidden] { display: none !important; }

.ranking th:first-child, .ranking td:first-child { width: 3em; text-align: right; white-space: nowrap; }

.prefgrid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px 12px; margin: 1em 0; }
.prefgrid small { color: var(--ink-3); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.facts dt { color: var(--ink-2); font-size: .88rem; }
.facts dd { margin: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: .6em 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { color: var(--ink-2); margin: .5em 0 0; }

.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.card h3 { margin: 0 0 .3em; }
.card p { margin: .3em 0; color: var(--ink-2); font-size: .92rem; }
.post__body { margin-top: 1.2em; }
.post__body h2 { margin-top: 1.6em; }

@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dt { margin-top: .5em; }
  h1 { font-size: 1.35rem; }
}
