/* ai.1min.news — 紙面のような落ち着いた組み。紺を地の色、黄は印として少しだけ使う */
:root {
  --bg: #FFFFFF;
  --paper: #F6F5F1;
  --ink: #141A2B;
  --ink-2: #3B4256;
  --muted: #6A7083;
  --line: #E2E1DC;
  --rule: #141A2B;
  --navy: #0A1228;
  --yellow: #FFCD3C;
  --mark: #FFCD3C;
  --link: #0F5F86;
  --teal: #0E6F62;
  --red: #B42318;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0C1222; --paper: #121A2E; --ink: #E7E9EF; --ink-2: #C3C8D4; --muted: #8D95A8; --line: #263049;
  --rule: #E7E9EF; --mark: #E8B923; --link: #7CC4E8; --teal: #4FCDB8; --red: #FF8A7A;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1222; --paper: #121A2E; --ink: #E7E9EF; --ink-2: #C3C8D4; --muted: #8D95A8; --line: #263049;
    --rule: #E7E9EF; --mark: #E8B923; --link: #7CC4E8; --teal: #4FCDB8; --red: #FF8A7A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.8;
  font-feature-settings: "palt" 0; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.45; margin: 0; font-weight: 700; text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--yellow); color: #0A1228; padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

/* 題字 */
.mast { background: var(--navy); color: #FFFFFF; padding-top: env(safe-area-inset-top, 0px); }
.mast-row { display: flex; align-items: center; gap: 12px; padding-block: 12px 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: -.01em; }
.logo-mark { width: 26px; height: 26px; background: var(--yellow); color: #0A1228; display: grid; place-items: center; font-size: 16px; font-weight: 900; }
.logo-text { display: grid; line-height: 1.15; }
.logo-text small { font-size: 11px; font-weight: 700; color: var(--yellow); letter-spacing: .06em; margin-top: 3px; }
.band { background: var(--navy); color: #FFFFFF; border-top: 1px solid #222C47; overflow: hidden; position: relative; }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--yellow); }
.band-in { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 16px; padding-block: 22px 30px; align-items: start; }
.band-text { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.band-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; font-weight: 700; color: #C9CFDD; font-variant-numeric: tabular-nums; }
.band-new { background: var(--yellow); color: #0A1228; font-weight: 900; padding: 1px 8px; letter-spacing: .08em; }
.band-hook { color: #FF7A6B; font-weight: 900; font-size: 14px; letter-spacing: .02em; }
.band h1 { font-size: clamp(28px, 8vw, 50px); font-weight: 900; line-height: 1.28; letter-spacing: -.02em; }
.band h1 a { color: #FFFFFF; text-decoration: none; }
.band h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.band h1 strong { color: var(--yellow); font-weight: 900; }
.band-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 2px; }
.band-num b { font-size: clamp(44px, 13vw, 84px); font-weight: 900; color: var(--yellow); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.band-num span { font-size: 13px; color: #C9CFDD; font-weight: 700; }
.band-btn { margin-top: 6px; background: var(--yellow); color: #0A1228; font-weight: 900; font-size: 15px; text-decoration: none; padding: 10px 18px; }
.band-btn::after { content: " →"; }
.band-btn:hover { background: #FFFFFF; }
.band-cover { display: block; transform: rotate(3deg); margin-top: 28px; box-shadow: 0 0 0 4px #FFFFFF; }
.band-cover img { width: 100%; }
@media (min-width: 720px) {
  .band-in { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; padding-block: 44px 52px; align-items: center; }
  .band-cover { margin-top: 0; transform: rotate(2deg); box-shadow: 0 0 0 6px #FFFFFF; }
}
.mast-date { margin-left: auto; font-size: 12px; color: #B9C0D2; font-variant-numeric: tabular-nums; }
.theme { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 1px solid #3A4566; color: #FFFFFF; cursor: pointer; padding: 0; }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme svg:last-child { display: none; }
:root[data-theme="dark"] .theme svg:first-child { display: none; }
:root[data-theme="dark"] .theme svg:last-child { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme svg:first-child { display: none; }
  :root:not([data-theme="light"]) .theme svg:last-child { display: block; }
}
.nav { display: flex; gap: 22px; font-size: 14px; font-weight: 700; border-top: 1px solid #222C47; overflow-x: auto; scrollbar-width: none; }
.nav a { color: #DDE2EE; text-decoration: none; padding: 10px 0 9px; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover { color: #FFFFFF; border-bottom-color: var(--yellow); }
@media (max-width: 520px) { .mast-date { display: none; } .theme { margin-left: auto; } }

.crumbs { font-size: 12px; color: var(--muted); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { color: var(--line); }

main.wrap { padding-block: 20px 56px; }

/* 共通の部品 */
.section-label { font-size: 13px; font-weight: 900; letter-spacing: .04em; color: var(--ink); border-top: 3px solid var(--rule); padding-top: 8px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.section-label::before { content: ""; width: 8px; height: 8px; background: var(--mark); }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.6; }
.slot { font-weight: 700; color: var(--ink-2); }
.slot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: 2px; background: var(--muted); }
.slot-morning::before { background: var(--mark); }
.slot-night::before { background: var(--link); }
.hook { display: block; font-size: 13px; font-weight: 700; color: var(--red); margin-bottom: 2px; letter-spacing: .02em; }
time { font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); }

/* トップ */
.home { display: grid; gap: 40px; }
@media (min-width: 960px) { .home { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; } }
.home-main { min-width: 0; }

.lead-story { display: grid; gap: 16px; padding-bottom: 28px; margin-bottom: 28px; }
.lead-story h2 { font-size: clamp(23px, 5.6vw, 32px); line-height: 1.4; margin-top: 4px; }
.lead-story h2 a { color: var(--ink); text-decoration: none; }
.lead-story h2 a:hover { text-decoration: underline; }
.lead-cover { display: none; }
.lead-cover img { border: 1px solid var(--line); }
.lead-body { display: grid; gap: 10px; align-content: start; min-width: 0; }
.lead-list { list-style: none; padding: 0; border-top: 1px solid var(--line); counter-reset: n; }
.lead-list li { border-bottom: 1px solid var(--line); counter-increment: n; }
.lead-list a { display: grid; grid-template-columns: 22px 1fr; gap: 0 8px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.lead-list a::before { content: counter(n); grid-row: span 2; font-weight: 900; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lead-list a:hover .li-h { text-decoration: underline; }
.li-co { font-size: 12px; color: var(--muted); font-weight: 700; }
.li-h { font-size: 15px; font-weight: 700; line-height: 1.6; }
.more { justify-self: start; font-weight: 700; font-size: 14px; }
.more::after { content: " →"; }


.rows { list-style: none; padding: 0; }
.row { border-bottom: 1px solid var(--line); }
.row:first-child { border-top: 1px solid var(--line); }
.row a { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 14px; padding: 14px 0; color: var(--ink); text-decoration: none; }
.row-text { display: grid; gap: 4px; min-width: 0; }
.row h3 { font-size: 17px; }
.row a:hover h3 { text-decoration: underline; }
.row-heads { font-size: 13px; color: var(--muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
@media (min-width: 640px) { .row a { grid-template-columns: minmax(0, 1fr) 96px; } .row img { width: 96px; } .row h3 { font-size: 19px; } }

.home-side { display: grid; gap: 28px; align-content: start; }
.side-box { display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.side-box .section-label { margin-bottom: 2px; }
.side-topics { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.side-topics li { display: flex; border: 1px solid var(--line); }
.side-topics a { padding: 3px 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 13px; }
.side-topics a:hover { text-decoration: underline; }
.side-topics span { padding: 3px 8px; font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.side-sns { list-style: none; padding: 0; display: flex; gap: 16px; font-weight: 700; }

/* 記事 */
@media (min-width: 960px) { main.main-post { display: grid; grid-template-columns: minmax(0, 720px) 1fr; column-gap: 48px; } main.main-post > * { grid-column: 1; } }
.post { display: grid; gap: 28px; min-width: 0; }
.post-head { display: grid; gap: 10px; }
.post-head h1 { font-size: clamp(25px, 6vw, 36px); line-height: 1.35; font-weight: 900; letter-spacing: -.01em; }
.bignum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; border-left: 4px solid var(--mark); padding-left: 12px; }
.bignum b { font-size: clamp(30px, 7vw, 42px); font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bignum span { color: var(--muted); font-size: 14px; }

.post-top { display: grid; gap: 20px; }
@media (min-width: 640px) { .post-top { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; } }
.slides { margin: 0; display: grid; gap: 6px; max-width: 320px; }
.slides-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--navy); }
.slides-track::-webkit-scrollbar { display: none; }
.slides-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.slides-cap { display: none; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.slides.is-live .slides-cap { display: flex; }
.slides-btns { display: flex; gap: 4px; }
.slides-btns button { width: 32px; height: 28px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; font: inherit; line-height: 1; }
.slides-btns button:disabled { opacity: .35; cursor: default; }
.cover { width: 100%; }

.toc { border-top: 3px solid var(--rule); padding-top: 8px; min-width: 0; }
.toc p { font-weight: 900; font-size: 13px; margin-bottom: 4px; }
.toc ol { padding-left: 1.4em; display: grid; gap: 0; }
.toc li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.toc li::marker { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.news { display: grid; gap: 14px; padding-top: 22px; border-top: 3px solid var(--rule); scroll-margin-top: 12px; }
.news-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; }
.num { font-weight: 900; font-size: 13px; background: var(--navy); color: var(--yellow); min-width: 24px; height: 24px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .num { background: var(--yellow); color: #0A1228; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .num { background: var(--yellow); color: #0A1228; } }
.co { font-weight: 700; color: var(--ink); }
.cat { color: var(--muted); }
.news h2 { font-size: clamp(21px, 5vw, 27px); line-height: 1.4; font-weight: 900; }
.news h2 strong { font-weight: 900; }
.news-lead { font-size: 17px; font-weight: 500; color: var(--ink-2); margin-top: -6px; }
.points { margin: 0; background: var(--paper); padding: 4px 16px; }
.points div { display: grid; grid-template-columns: 7.5em 1fr; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.points div:last-child { border-bottom: 0; }
.points dt { color: var(--muted); font-weight: 700; font-size: 13px; padding-top: 1px; }
.points dd { margin: 0; min-width: 0; font-weight: 500; }
@media (max-width: 420px) { .points div { grid-template-columns: 1fr; } }
.explain { display: grid; gap: 6px; font-size: 16.5px; line-height: 1.95; color: var(--ink); }
.explain h3 { font-size: 14px; font-weight: 900; color: var(--ink); margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.explain h3::before { content: ""; width: 3px; height: 1em; background: var(--mark); }
.explain h3:first-child { margin-top: 0; }
.ed-note { font-size: 14px; color: var(--ink-2); background: var(--paper); padding: 10px 14px; border-left: 3px solid var(--muted); }
.ed-note span { font-weight: 700; margin-right: 8px; }
.src { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 12px; line-height: 1.65; }
.src-label { grid-row: span 2; font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 1px; }
.src a { overflow-wrap: anywhere; font-weight: 500; }
.src a::after { content: " ↗"; font-size: .85em; }
.src-meta { font-size: 12px; color: var(--muted); }

.tips { border-top: 3px solid var(--rule); padding-top: 20px; display: grid; gap: 12px; }
.tips h2 { font-size: 20px; font-weight: 900; }
.tips ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.tips h3 { font-size: 16px; }
.tips p { color: var(--ink-2); }

.question { background: var(--navy); color: #FFFFFF; padding: 18px 20px; display: grid; gap: 6px; }
.q-label { font-size: 12px; font-weight: 700; color: var(--yellow); letter-spacing: .06em; }
.q-text { font-size: 18px; font-weight: 700; }
.q-sub { font-size: 13px; color: #B9C0D2; }
.credits { font-size: 13px; color: var(--muted); }
.credits summary { cursor: pointer; }
.credits ul { margin-top: 6px; padding-left: 1.2em; }
.post-foot { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

.related { margin-top: 40px; min-width: 0; }
.related ul { list-style: none; padding: 0; }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: grid; gap: 2px; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.6; }
.related a:hover { text-decoration: underline; }
.related time { font-size: 12px; color: var(--muted); font-weight: 400; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; min-width: 0; }
.pager a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.55; }
.pager a span { font-size: 12px; color: var(--muted); font-weight: 400; }
.pager a:hover { border-color: var(--ink); }
.pg-prev { text-align: right; }
@media (max-width: 520px) { .pager { grid-template-columns: 1fr; } .pg-prev { text-align: left; } }

/* 一覧・固定ページ */
.page-head { display: grid; gap: 10px; max-width: 720px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(25px, 5.6vw, 34px); font-weight: 900; }
.topic-intro { color: var(--ink-2); }
.topic-count { font-size: 13px; color: var(--muted); }
.topic-index { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--line); }
.topic-index li { border-bottom: 1px solid var(--line); }
.topic-index a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 12px 12px 0; color: var(--ink); text-decoration: none; height: 100%; }
.topic-index a:hover .ti-name { text-decoration: underline; }
.ti-name { font-weight: 900; font-size: 17px; }
.ti-n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; align-self: center; }
.ti-desc { grid-column: 1 / -1; font-size: 13px; color: var(--muted); line-height: 1.6; }
.ti-desc:empty { display: none; }
.topic-list { list-style: none; padding: 0; max-width: 720px; border-top: 3px solid var(--rule); }
.topic-list li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.topic-list h2 { font-size: 18px; }
.topic-list h2 a { color: var(--ink); text-decoration: none; }
.topic-list h2 a:hover { text-decoration: underline; }
.topic-sum { font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.topic-sum:empty { display: none; }

.doc { max-width: 720px; display: grid; gap: 14px; }
.doc h1 { font-size: clamp(25px, 5.6vw, 34px); font-weight: 900; }
.doc h2 { font-size: 19px; font-weight: 900; margin-top: 18px; padding-top: 10px; border-top: 3px solid var(--rule); scroll-margin-top: 12px; }
.doc ul { padding-left: 1.3em; display: grid; gap: 8px; }
.doc-lead { font-size: 17px; color: var(--ink-2); }
.doc-date { font-size: 13px; color: var(--muted); }

/* フッター */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); font-size: 13px; color: var(--muted); }
.foot-grid { display: grid; gap: 18px; padding-block: 28px 16px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-logo { font-weight: 900; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.foot-links { list-style: none; padding: 0; display: grid; gap: 4px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-note { padding-block: 0 28px; font-size: 12px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
