/* ソレホントニ — layout modeled on news-aggregator readers: light page,
   white rounded panels, story rows with square thumbnails. */
:root {
  --page: #f6f8fc;
  --panel: #ffffff;
  --panel-2: #f1f3f4;
  --text: #1f1f1f;
  --muted: #5f6368;
  --line: #e8eaed;
  --accent: #1a73e8;
  --accent-text: #0b57d0;
  --accent-soft: #e8f0fe;
  --strong: #188038;  --strong-soft: #e6f4ea;
  --ok: #1967d2;      --ok-soft: #e8f0fe;
  --unclear: #b06000; --unclear-soft: #fef7e0;
  --no: #c5221f;      --no-soft: #fce8e6;
  --radius: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #1b1b1d;
    --panel: #28292c;
    --panel-2: #303134;
    --text: #e8eaed;
    --muted: #9aa0a6;
    --line: #3c4043;
    --accent: #8ab4f8;
    --accent-text: #a8c7fa;
    --accent-soft: #263445;
    --strong: #81c995;  --strong-soft: #1e3326;
    --ok: #8ab4f8;      --ok-soft: #22314a;
    --unclear: #fdd663; --unclear-soft: #3b321a;
    --no: #f28b82;      --no-soft: #41231f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 15px; line-height: 1.7;
}
a { color: var(--accent-text); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.45; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--panel); box-shadow: 0 1px 0 var(--line); }
.header-inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; flex: none; }
.logo-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 2px 6px rgba(37, 99, 235, .28)); }
.logo-text { font-size: 22px; font-weight: 900; letter-spacing: .04em; line-height: 1; }
.logo-ka { background: linear-gradient(135deg, #0ea5a4, #2563eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .logo-ka { background-image: linear-gradient(135deg, #2dd4bf, #60a5fa); } }
.search {
  flex: 1; max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  background: var(--panel-2); border-radius: 999px; padding: 0 18px; height: 46px;
}
.search:focus-within { background: var(--panel); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.search svg { width: 22px; height: 22px; fill: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text); outline: none; }
.header-x {
  flex: none; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--accent-text);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
}
.header-x:hover { background: var(--accent-soft); }
.theme-nav { border-top: 1px solid var(--line); }
.theme-nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.theme-nav-inner::-webkit-scrollbar { display: none; }
.theme-nav a {
  position: relative; flex: none; padding: 12px 14px; font-size: 14px; font-weight: 500;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.theme-nav a:hover { color: var(--text); }
.theme-nav a[aria-current] { color: var(--accent-text); }
.theme-nav a[aria-current]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--accent);
}

main { padding: 8px 0 56px; }
.wide { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.wide.narrow { max-width: 860px; }

/* ---------- briefing heading ---------- */
.briefing { padding: 26px 4px 18px; }
.briefing h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); font-weight: 400; }
.briefing p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.band-title { font-size: 22px; font-weight: 400; margin: 36px 4px 14px; }

/* ---------- panels ---------- */
.layout { display: grid; gap: 20px; }
@media (min-width: 1000px) { .layout { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; } }
.side-col { display: grid; gap: 20px; }
.panel { background: var(--panel); border-radius: var(--radius); padding: 8px 24px 12px; }
.panel-head { display: flex; align-items: center; gap: 6px; padding: 14px 0 6px; color: var(--accent-text); text-decoration: none; }
.panel-head h2 { margin: 0; font-size: 18px; font-weight: 500; }
.panel-head span { font-size: 22px; line-height: 1; }
a.panel-head:hover h2 { text-decoration: underline; }
.panel-note { color: var(--muted); font-size: 13px; margin: 12px 0 8px; }
.theme-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .theme-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- story rows ---------- */
.story + .story { border-top: 1px solid var(--line); }
.story > a { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; color: var(--text); text-decoration: none; }
.story-text { flex: 1; min-width: 0; }
.story-src { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.story-title { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.5; }
.story > a:hover .story-title { text-decoration: underline; }
.story-meta { margin-top: 8px; font-size: 12px; color: var(--muted); }
.story-summary { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.story-thumb { width: 104px; height: 104px; flex: none; object-fit: cover; border-radius: 14px; }
.story.top > a { flex-direction: column; gap: 14px; }
.story-hero { width: 100%; aspect-ratio: 960 / 504; object-fit: cover; border-radius: 16px; }
.story.top .story-title { font-size: 22px; }
@media (min-width: 760px) {
  .story.top > a { flex-direction: row; }
  .story.top .story-hero { width: 52%; }
  .story.top .story-text { padding-top: 4px; }
}
.empty { color: var(--muted); padding: 16px 0; }

/* ---------- verdict marks ---------- */
.verdict {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 900; font-size: 18px; line-height: 1;
}
.verdict.xs { width: 18px; height: 18px; font-size: 10px; }
.verdict.sm { width: 26px; height: 26px; font-size: 13px; }
.verdict.lg { width: 72px; height: 72px; font-size: 36px; }
.v-strong { background: var(--strong); }
.v-ok { background: var(--ok); }
.v-unclear { background: var(--unclear); }
.v-no { background: var(--no); }
@media (prefers-color-scheme: dark) { .verdict { color: #1b1b1d; } }
.v-strong-text { color: var(--strong); }
.v-ok-text { color: var(--ok); }
.v-unclear-text { color: var(--unclear); }
.v-no-text { color: var(--no); }
.legend { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.theme-list { list-style: none; padding: 0; margin: 4px 0 6px; }
.theme-list li + li { border-top: 1px solid var(--line); }
.theme-list a { display: flex; justify-content: space-between; padding: 10px 0; color: var(--text); text-decoration: none; font-size: 14px; }
.theme-list a:hover span { color: var(--accent-text); }
.theme-list small { color: var(--muted); }
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 999px; }
.theme-chip { background: var(--accent-soft); color: var(--accent-text); text-decoration: none; }

/* ---------- article ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding: 18px 4px 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }
.article { background: var(--panel); border-radius: var(--radius); padding: 28px 32px 24px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.series { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.article h1 { font-size: clamp(22px, 3.6vw, 30px); font-weight: 700; margin: 14px 0 8px; }
.article-meta { margin: 0; color: var(--muted); font-size: 13px; }
.page-title { font-size: 28px; font-weight: 400; }

.summary { margin: 24px 0; padding: 20px 22px; background: var(--accent-soft); border-radius: 20px; }
.summary-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--accent-text); letter-spacing: .04em; }
.sum-verdict { display: flex; gap: 16px; align-items: center; background: var(--panel); border-radius: 16px; padding: 14px 16px; }
.sum-verdict p { margin: 0; }
.sum-claim-label { font-size: 12px; color: var(--muted); }
.sum-claim { font-size: 16px; font-weight: 700; line-height: 1.6; }
.sum-label { font-size: 17px; font-weight: 900; }
.sum-text { font-weight: 700; margin: 16px 0 8px; font-size: 15.5px; }
.sum-points { margin: 0; padding: 0; list-style: none; }
.sum-points li { position: relative; padding-left: 20px; margin: 6px 0; font-size: 14.5px; }
.sum-points li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sum-sub { font-size: 12px; color: var(--muted); margin: 14px 0 6px; }
.tally { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tally li { display: flex; align-items: center; gap: 6px; font-size: 13px; background: var(--panel); border-radius: 999px; padding: 3px 12px 3px 4px; }

.toc { border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; margin: 0 0 8px; font-size: 14px; }
.toc p { margin: 0 0 4px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }

.prose { font-size: 16px; line-height: 1.9; }
.prose h2 { font-size: 20px; font-weight: 700; margin: 2.2em 0 .6em; padding-bottom: 8px; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.prose h3 { font-size: 17px; margin: 1.8em 0 .4em; }
.prose p { margin: 1em 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; background: linear-gradient(transparent 64%, var(--unclear-soft) 64%); }
.prose a { word-break: break-all; }
.prose .sources { font-size: 13px; color: var(--muted); line-height: 1.7; list-style: decimal; }
.note { background: var(--panel-2); border-radius: 12px; padding: 12px 16px; margin: 1.4em 0; font-size: 15px; }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 36px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.share-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.btn {
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; padding: 7px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--accent-text); text-decoration: none;
}
.btn:hover { background: var(--accent-soft); }
.disclaimer { font-size: 13px; color: var(--muted); background: var(--panel-2); border-radius: 14px; padding: 12px 16px; }
.related { margin-top: 20px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); padding: 32px 0 22px; font-size: 14px; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-brand p { color: var(--muted); font-size: 13px; margin: 10px 0 0; max-width: 400px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--accent-text); }
.footer-head { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.footer-note { max-width: 1240px; margin: 24px auto 0; padding: 14px 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 720px) {
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; height: 42px; }
  .header-x { margin-left: auto; }
  .theme-nav-inner { justify-content: flex-start; }
  .panel { padding: 6px 16px 8px; border-radius: 20px; }
  .story-thumb { width: 76px; height: 76px; border-radius: 12px; }
  .story-title { font-size: 16px; }
  .story.top .story-title { font-size: 19px; }
  .article { padding: 20px 16px; border-radius: 20px; }
  .summary { padding: 16px; }
  .verdict.lg { width: 58px; height: 58px; font-size: 29px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* tables and nested lists in articles */
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.6; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose thead th { background: var(--panel-2); font-weight: 700; font-size: 13px; color: var(--muted); }
.prose li > ul { margin: .3em 0; }

/* ---------- animated page background (static/bg.js) ---------- */
html { background: #08204a linear-gradient(180deg, #0b5566 0%, #0a3a5c 45%, #08204a 100%) fixed; }
body { background: transparent; }
#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; display: block; pointer-events: none; }
/* text that sits directly on the background */
.briefing h1, .band-title, .page-title { color: #ffffff; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.briefing p, .crumbs, .crumbs a { color: rgba(255, 255, 255, .78); }
.crumbs a:hover { color: #ffffff; }
.panel, .article { box-shadow: 0 8px 30px rgba(0, 10, 40, .18); }
.site-footer { border-top: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* "ちょっと豆知識" box */
.trivia { background: var(--unclear-soft); border-radius: 16px; padding: 14px 18px 10px; margin: 1em 0 1.6em; font-size: 15px; line-height: 1.85; }
.trivia p { margin: 0 0 .7em; }
.trivia .trivia-note { font-size: 12px; color: var(--muted); margin: .4em 0 .2em; }
.prose h2[id] + .trivia { margin-top: .6em; }
