/* deadline-radar — 「A：管制室」：ダークの監視ダッシュボード＋レーダースコープ。
   決定 2026-08-20：Aベース／残り日数はBの「残り N日」表記（T−N はわかりづらい）／便名は載せない。 */
:root {
  --bg: #0a0e13; --glow: #0e1620; --surface: #0d141c; --panel: #101922;
  --line: #17202a; --line-2: #1d2a36; --line-3: #2a3a48;
  --text: #c9d6de; --bright: #eef4f7; --muted: #8fa3b2; --faint: #66798a;
  --green: #46e3a0; --green-ink: #06231a; --green-soft: rgba(70,227,160,.07);
  --amber: #ffb454; --red: #ff6b4a;
  --red-bg: #3b1610; --red-line: #6b2517; --red-text: #ff8a70;
  --amber-bg: #3a2a0e; --amber-line: #6b4e17; --amber-text: #ffcb7d;
  --warn-bg: #1c1a10; --warn-line: #4a3f18;
  --footer: #060a0e; --footer-text: #8fa3b2;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --latin: "Space Grotesk", "Zen Kaku Gothic New", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 4px; --r-lg: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image: radial-gradient(1100px 600px at 75% -10%, var(--glow) 0%, var(--bg) 55%);
  background-repeat: no-repeat; }
a { color: var(--text); text-decoration-color: var(--line-3); text-underline-offset: 3px; }
a:hover { color: var(--bright); text-decoration-color: var(--green); }
h1, h2, h3 { line-height: 1.3; margin: 0; }
p { margin: 0 0 .8em; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.note { color: var(--faint); font-size: .82rem; line-height: 1.6; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: rgba(70,227,160,.25); }

/* header / footer */
.site-header { background: rgba(10,14,19,.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 54px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bright); font-family: var(--latin); font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.logo svg { display: block; }
.logo small { font-family: var(--font); font-weight: 500; color: var(--faint); font-size: .74rem; letter-spacing: .05em; margin-left: 2px; }
.nav { display: flex; gap: 4px; }
.nav a { font-size: .85rem; font-weight: 500; text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--bright); background: var(--panel); }
@media (max-width: 640px) { .logo small { display: none; } .nav a { padding: 6px 7px; font-size: .8rem; } .nav a.sec { display: none; } }
.site-footer { background: var(--footer); color: var(--footer-text); border-top: 1px solid var(--line); margin-top: 56px; padding: 26px 0 30px; font-size: .82rem; }
.site-footer a { color: var(--bright); margin-right: 14px; text-decoration: none; }
.site-footer nav { margin: 6px 0; }

/* hero */
.hero { padding: 28px 0 8px; }
.hero .eyebrow { font-size: .72rem; letter-spacing: .18em; color: var(--faint); font-weight: 500; font-family: var(--mono); }
.hero .lead { font-size: clamp(1.3rem, 1rem + 1.5vw, 1.8rem); font-weight: 700; color: var(--bright); margin: 6px 0 0; line-height: 1.4; }
.hero .lead em { font-style: normal; color: var(--green); background: linear-gradient(transparent 72%, rgba(70,227,160,.18) 72%); padding: 0 .1em; }
.hero p { color: var(--muted); font-size: .92rem; max-width: 760px; margin-top: 8px; }
.hero .stats { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .8rem; color: var(--faint); margin-top: 8px; font-family: var(--mono); }
.hero .stats b { color: var(--bright); font-weight: 600; }

/* layout */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 16px; }
.grid > * { min-width: 0; }
@media (min-width: 960px) { .grid { grid-template-columns: 350px 1fr; align-items: start; } .side { position: sticky; top: 66px; max-height: calc(100vh - 80px); overflow: auto; scrollbar-width: thin; } }
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.side { display: flex; flex-direction: column; gap: 14px; }
.grp { padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.grp:first-child { border-top: 0; }
.grp-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--bright); }
.grp-t .note { font-weight: 400; }
.side-sum { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.side-sum::-webkit-details-marker { display: none; }
.side-sum .grp-t::before { content: "▸ "; color: var(--faint); }
.side-d[open] > .side-sum .grp-t::before { content: "▾ "; }
@media (min-width: 960px) { .side-sum { display: none; } }

/* radar scope（署名要素：中心からの距離＝残り日数） */
.scope-card { padding: 18px 16px 12px; }
.scope { position: relative; width: min(272px, 100%); aspect-ratio: 1; margin: 0 auto; }
.scope .ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); }
.scope .r14 { inset: 39%; }
.scope .r42 { inset: 31%; }
.scope .r180 { inset: 4%; box-shadow: inset 0 0 60px rgba(70,227,160,.05); }
.scope .ax { position: absolute; left: 50%; top: 4%; bottom: 4%; width: 1px; background: var(--line); }
.scope .ay { position: absolute; top: 50%; left: 4%; right: 4%; height: 1px; background: var(--line); }
.scope .sweep { position: absolute; inset: 4%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(70,227,160,.28) 0deg, rgba(70,227,160,.04) 55deg, transparent 70deg); animation: sweep 7s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.scope .core { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--bright); }
.scope .rlbl { position: absolute; font-family: var(--mono); font-size: 9px; color: var(--faint); letter-spacing: .1em; }
.scope .blip { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; }
.scope .blip.t-red { background: var(--red); box-shadow: 0 0 9px var(--red); }
.scope .blip.t-amber { background: var(--amber); box-shadow: 0 0 7px rgba(255,180,84,.7); }
.scope .blip.t-green { background: var(--green); }
.scope .blip.m { outline: 1.5px solid rgba(238,244,247,.85); outline-offset: 1.5px; }
.scope-legend { display: flex; justify-content: center; gap: 14px; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--faint); flex-wrap: wrap; }
.scope-legend .d { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font: inherit; font-size: .78rem; font-weight: 500; padding: 4px 10px; border-radius: 3px; border: 1px solid var(--line-3); background: transparent; color: var(--muted); cursor: pointer; line-height: 1.4; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); color: var(--green-ink); border-color: var(--green); font-weight: 700; }
.chip .cnt { font-family: var(--mono); font-size: .7rem; opacity: .75; margin-left: 4px; }
.seg { display: inline-flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.seg label { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line-3); border-radius: var(--r); cursor: pointer; background: transparent; color: var(--muted); }
.seg label:has(input:checked) { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.seg input { accent-color: var(--green); margin: 0; }
textarea { width: 100%; min-height: 120px; font: inherit; font-family: var(--mono); font-size: .78rem; line-height: 1.6; border: 1px solid var(--line-3); border-radius: var(--r); padding: 8px 10px; margin-top: 8px; resize: vertical; background: var(--bg); color: var(--text); }
textarea::placeholder { color: var(--faint); }
textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(70,227,160,.12); }
.match-sum { margin-top: 8px; font-size: .85rem; }
.match-sum b { font-family: var(--mono); }
.match-sum .hit { color: var(--green); font-weight: 700; }

/* buttons */
button, .btn { font: inherit; font-size: .86rem; font-weight: 600; padding: 8px 14px; border-radius: var(--r); border: 1px solid var(--line-3); background: transparent; color: var(--text); cursor: pointer; line-height: 1.3; min-height: 36px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s, color .15s; }
button:hover, .btn:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.btn-primary { background: var(--green); border-color: var(--green); color: var(--green-ink); font-weight: 700; }
.btn-primary:hover { background: #5eeab0; border-color: #5eeab0; color: var(--green-ink); }
.btn-sm { padding: 4px 10px; font-size: .8rem; min-height: 28px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--faint); }
.btn-ghost:hover { color: var(--bright); background: var(--panel); border-color: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
button:disabled { opacity: .45; cursor: default; }
.msg { font-size: .82rem; color: var(--green); min-height: 1.3em; margin-top: 6px; }
.subs a.btn { font-family: var(--mono); font-size: .78rem; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin-top: 10px; cursor: pointer; }
.toggle input { accent-color: var(--green); }

/* timeline */
.tl-sec { margin-top: 8px; }
.tl-h { display: flex; align-items: baseline; gap: 10px; padding: 8px 2px 6px; font-size: .95rem; font-weight: 700; color: var(--bright); }
.tl-h .cnt { font-family: var(--mono); font-weight: 500; color: var(--faint); font-size: .8rem; }
.tl-h.soon { color: var(--red); }
.tl-h.soon .cnt { color: var(--red); }
details.tl-past > summary { cursor: pointer; list-style: none; }
details.tl-past > summary::-webkit-details-marker { display: none; }
details.tl-past > summary .tl-h::before { content: "▸ "; color: var(--faint); }
details.tl-past[open] > summary .tl-h::before { content: "▾ "; }
.dl { display: grid; grid-template-columns: 104px 1fr; gap: 0 14px; padding: 13px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.dl:first-of-type { border-top: 0; }
.dl.hit { background: linear-gradient(90deg, var(--green-soft), transparent 60%), var(--surface); box-shadow: inset 3px 0 0 var(--green); }
.dl .when .d { font-family: var(--mono); font-weight: 800; font-size: 1.1rem; line-height: 1.25; color: var(--bright); font-variant-numeric: tabular-nums; }
.dl .rem { display: block; margin-top: 2px; font-family: var(--mono); font-size: .88rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rem.t-red { color: var(--red); }
.rem.t-amber { color: var(--amber); }
.rem.t-green { color: var(--green); }
.rem.t-past { color: var(--faint); font-weight: 500; }
.dl h3 { font-size: .98rem; font-weight: 700; line-height: 1.45; color: var(--bright); }
.dl h3 a { text-decoration: none; color: inherit; }
.dl h3 a:hover { text-decoration: underline; text-decoration-color: var(--green); }
.dl .meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: .7rem; margin-top: 5px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 2px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); font-family: var(--mono); letter-spacing: .04em; line-height: 1.6; }
.badge.k-hard { border-color: var(--red-line); color: var(--red-text); background: var(--red-bg); }
.badge.k-phased { border-color: var(--amber-line); color: var(--amber-text); background: var(--amber-bg); }
.badge.k-soft { border-color: var(--line-3); }
.badge.plat { background: var(--bright); color: var(--bg); border-color: var(--bright); font-family: var(--font); font-weight: 700; }
.badge.why { background: var(--green); color: var(--green-ink); border-color: var(--green); font-weight: 700; font-family: var(--font); }
.badge.st { font-family: var(--font); }
.dl .req { margin: 7px 0 0; font-size: .88rem; }
.dl .aff { margin: 4px 0 0; font-size: .84rem; color: var(--muted); }
.dl .aff b { color: var(--text); font-weight: 600; }
.dl .dn { margin: 6px 0 0; font-size: .78rem; color: var(--amber-text); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r); padding: 4px 8px; display: inline-block; }
.dl .src { margin: 8px 0 0; font-size: .78rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.dl .src a { color: var(--muted); }
.dl .src a:hover { color: var(--bright); }
.dl .src .off { font-weight: 700; color: var(--text); }
.dl .src .off::before { content: "公式 "; color: var(--green); font-size: .72rem; }
.dl details.hist { margin-top: 4px; font-size: .78rem; color: var(--faint); }
.dl details.hist summary { cursor: pointer; }
.dl details.hist li { margin: 2px 0; }
.dl details.hist ul { margin: 4px 0 0; padding-left: 1.2em; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 4px; } .dl .when { display: flex; align-items: baseline; gap: 10px; } .dl .rem { margin-top: 0; } }
.empty { padding: 24px 14px; color: var(--faint); text-align: center; font-size: .9rem; }
:target { scroll-margin-top: 70px; }
.dl:target { box-shadow: inset 3px 0 0 var(--amber); background: linear-gradient(90deg, rgba(255,180,84,.08), transparent 60%), var(--surface); }

/* how */
.how { margin-top: 32px; }
.how h2 { font-size: 1rem; margin-bottom: 8px; color: var(--bright); }
.how ul { padding-left: 1.2em; margin: 0; }
.how li { margin: 4px 0; color: var(--muted); }
.how li strong { color: var(--text); }

/* legal pages */
.page { padding: 28px 0; }
.page h1 { font-size: 1.5rem; margin-bottom: 4px; color: var(--bright); }
.page .meta { color: var(--faint); font-size: .85rem; margin-bottom: 20px; }
.legal { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 10px 24px 22px; }
.legal h2 { font-size: 1.02rem; margin-top: 1.6em; padding-left: 10px; border-left: 3px solid var(--green); color: var(--bright); }
.legal ul { padding-left: 1.3em; }
.legal strong { color: var(--bright); }
