:root {
  --bg: #f7f7f5; --surface: #ffffff; --text: #1f2328; --muted: #5d646c; --line: #e3e3df;
  --accent: #2f6f5e; --accent-soft: #e3efe9; --bar: #4f8f7c; --warn: #9a5b13;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15181b; --surface: #1d2125; --text: #e6e8ea; --muted: #a0a7ae; --line: #2e3439;
          --accent: #7cc4ad; --accent-soft: #23332e; --bar: #5fae96; --warn: #e0a95c; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.75 system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif; }
a { color: var(--accent); }
main { max-width: 960px; margin: 0 auto; padding: 8px 16px 48px; }
.site-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; padding: 14px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { font-weight: 700; text-decoration: none; color: var(--text); font-size: 1.05rem; }
.tag { color: var(--muted); font-size: .85rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 12px 0 4px; }
.crumbs a { color: var(--muted); }
h1 { font-size: 1.6rem; line-height: 1.35; margin: 12px 0 16px; }
.h1-sub { display: block; font-size: .95rem; font-weight: 400; color: var(--muted); margin-top: 4px; }
h2 { font-size: 1.15rem; margin: 32px 0 12px; }
section { margin-bottom: 8px; }
.muted { color: var(--muted); font-size: .9rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi-num { font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi-num small { font-size: .9rem; font-weight: 400; margin-left: 2px; color: var(--muted); }
.kpi-label { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.lead p { margin: 10px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; gap: 0; } h1 { font-size: 1.35rem; } }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 8px; align-items: center; font-size: .9rem; }
.bar-track { background: var(--accent-soft); border-radius: 4px; height: 12px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--bar); border-radius: 4px; }
.bar-val { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 480px) { .bar { grid-template-columns: 7em 1fr; } .bar-val { grid-column: 2; } }
.map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 12px; background: var(--surface); }
.table-tools input, .search input { width: 100%; font: inherit; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.table-tools { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { position: sticky; top: 0; background: var(--surface); cursor: pointer; user-select: none; }
th[aria-sort="descending"]::after { content: " ▼"; font-size: .7em; }
th[aria-sort="ascending"]::after { content: " ▲"; font-size: .7em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
.more { margin: 8px 0; font: inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 12px; margin-top: 28px; }
.note ul { padding-left: 1.2em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
  background: var(--surface); font-size: .85rem; }
.hero { padding: 16px 0 8px; }
.hero h1 { font-size: 1.8rem; }
.search { position: relative; max-width: 560px; }
#results { list-style: none; margin: 4px 0 0; padding: 0; background: var(--surface); border-radius: 8px; }
#results:not(:empty) { border: 1px solid var(--line); }
#results li a { display: block; padding: 8px 12px; text-decoration: none; color: var(--text); }
#results li a:hover, #results li a:focus { background: var(--accent-soft); }
.prefs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.pref { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); }
.pref small { color: var(--muted); font-variant-numeric: tabular-nums; }
.site-foot { max-width: 960px; margin: 0 auto; padding: 16px 16px 40px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }
.site-foot a { color: var(--muted); }
.fb { margin-top: 32px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fb-q { margin: 0 0 10px; font-weight: 600; }
.fb-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fb button { font: inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
.fb button.on { background: var(--accent-soft); border-color: var(--accent); }
.fb button:disabled:not(.on) { opacity: .5; cursor: default; }
.fb-form { margin-top: 12px; }
.fb-form label span { display: block; font-size: .9rem; margin-bottom: 4px; }
.fb-form textarea { width: 100%; font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-status { margin: 8px 0 0; }
.changes { padding-left: 1.2em; }
.changes time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.signals { list-style: none; padding: 0; display: grid; gap: 8px; }
.signals li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.signals li.sig-on { border-left: 4px solid var(--warn); }
.signals li.sig-off { border-left: 4px solid var(--line); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; } }
