:root {
  color-scheme: light;
  --night: #14162b; --moon: #f4f0e6; --moon-sub: #b9b8c9;
  --amber: #ffb938;
  --paper: #faf6ee; --card: #fffdf8; --ink: #1c1b22; --sub: #625f6b; --line: #e4dccd;
  --red: #c2371a; --blue: #245a9e;
  --display: "Dela Gothic One", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.8; }
a { color: inherit; text-underline-offset: 3px; }
.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 20px; }

.site-head { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 3px solid var(--ink); }
.site-head .wrap { display: flex; align-items: center; gap: 10px 32px; padding-top: 12px; padding-bottom: 12px; }
.brand { text-decoration: none; display: block; }
.logo { display: flex; align-items: center; gap: 3px; font-family: var(--display); font-size: 30px; line-height: 1; }
.logo em { display: block; width: .92em; height: .92em; margin-left: 2px; font-style: normal; color: var(--red); }
.logo svg { display: block; width: 100%; height: 100%; }
.tagline { display: block; margin-top: 7px; font-size: 12px; font-weight: 500; line-height: 1; color: var(--sub); }
.site-head nav { margin-left: auto; display: flex; gap: 28px; font-size: 15px; font-weight: 700; }
.site-head nav a { padding: 6px 0; text-decoration: none; border-bottom: 3px solid transparent; }
.site-head nav a:hover, .site-head nav a:focus-visible { border-bottom-color: var(--amber); }
section { scroll-margin-top: 84px; }

.hero { background: var(--night); color: var(--moon); padding: 56px 0 56px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 6vw, 60px); line-height: 1.32; margin: 0; max-width: 16em; word-break: auto-phrase; text-wrap: balance; }
.hero h1 mark { background: none; color: var(--amber); }
.hero .lead { max-width: 40em; margin: 20px 0 0; color: var(--moon-sub); font-size: 17px; }

section { padding: 56px 0 8px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 3px solid var(--ink); padding-bottom: 10px; margin-bottom: 24px; }
h2 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.4; margin: 0; }
.sec-head p { margin: 0; font-size: 14px; color: var(--sub); }
.sec-head a { margin-left: auto; font-size: 14px; font-weight: 700; }

.videos { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
.embed { position: relative; aspect-ratio: 16/9; background: var(--night); border-radius: 6px; overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.feature-title { font-size: 18px; font-weight: 700; line-height: 1.5; margin: 12px 0 2px; }
.meta { font-size: 13px; color: var(--sub); }
.vlist { list-style: none; margin: 0; padding: 0; }
.vlist li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.vlist li:first-child { padding-top: 0; }
.vlist a { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: start; font-weight: 500; line-height: 1.55; text-decoration: none; }
.vlist a:hover .vtitle { color: var(--red); text-decoration: underline; }
.vlist .vtitle { display: block; }
.vlist .meta { display: block; font-weight: 400; }
.vlist img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; background: var(--line); }
.notice { background: var(--card); border: 1px dashed var(--line); border-radius: 6px; padding: 18px; color: var(--sub); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline time { font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; }
.timeline .src { display: block; font-size: 13px; color: var(--sub); }
.timeline li[hidden] { display: none; }
.timeline-more { margin: 16px 0 0; text-align: center; font-size: 15px; font-weight: 700; }
.timeline:focus { outline: none; }
#timeline, #timeline ~ section { overflow-anchor: none; } /* ページ送りで高さが変わっても見出しの位置がずれないように */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pager button { min-width: 44px; min-height: 44px; padding: 0 12px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.pager button:hover:not(:disabled) { border-color: var(--ink); }
.pager button:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; }
.pager button:disabled { color: var(--sub); opacity: .55; cursor: default; }
.pager button[aria-current="page"], .pager button[aria-current="page"]:disabled { background: var(--ink); color: var(--paper); border-color: var(--ink); opacity: 1; }
.kind { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.5; padding: 0 7px; margin-right: 8px; border-radius: 3px; border: 1px solid currentColor; vertical-align: 1px; }
.kind.said { color: var(--red); }
.kind.press { color: var(--blue); }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 44px; }
.profile { margin: 0; }
.profile div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-size: 14px; font-weight: 700; color: var(--sub); }
.profile dd { margin: 0; }
.caution { font-size: 15px; background: var(--card); border-left: 4px solid var(--red); padding: 14px 16px; margin: 0 0 16px; }
.small { font-size: 13px; color: var(--sub); }

.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.topics li { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.topics b { display: block; line-height: 1.5; margin-bottom: 4px; }
.topics span { font-size: 13px; color: var(--sub); line-height: 1.6; display: block; }
.soon { font-size: 12px; font-weight: 700; color: var(--sub); }

.site-foot { margin-top: 64px; background: var(--night); color: var(--moon-sub); font-size: 14px; padding: 36px 0; }
.site-foot h2 { color: var(--moon); font-size: 18px; margin-bottom: 8px; }
.site-foot ul { margin: 0 0 16px; padding-left: 1.3em; }
.site-foot p { margin: 0; }

@media (max-width: 760px) {
  .site-head { position: static; }
  .site-head .wrap { flex-direction: column; align-items: stretch; }
  .site-head nav { margin-left: 0; justify-content: space-between; gap: 8px; font-size: 14px; }
  .videos, .two { grid-template-columns: minmax(0, 1fr); }
  .topics { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .two > div + div { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 下層ページ */
.page-hero { padding: 44px 0; }
.page-hero h1 { font-size: clamp(30px, 5vw, 46px); }
.page-date { margin: 14px 0 0; font-size: 13px; color: var(--moon-sub); }
.narrow { width: min(800px, 100%); }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: .6em; }
.prose b { font-weight: 700; }
.sources { margin: 0; padding-left: 1.5em; font-size: 14px; overflow-wrap: anywhere; }
.sources li { margin-bottom: 4px; }
.kind.official { color: var(--sub); }
.legend { margin: 0 0 8px; font-size: 13px; color: var(--sub); }
.topics a { display: block; color: inherit; text-decoration: none; }
.topics a:hover b { color: var(--red); text-decoration: underline; }
.topics .open { font-size: 12px; font-weight: 700; color: var(--red); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px !important; font-weight: 500; }
.site-foot a { color: var(--moon); }
.small { margin-top: 12px; }

/* 記事本文 */
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose thead th { background: var(--card); font-weight: 700; }
.prose tbody tr:nth-child(even) { background: rgba(20, 22, 43, .025); }
.prose td:first-child { white-space: nowrap; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 16px 22px; margin: 0 0 28px; }
.toc p { margin: 0 0 6px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 2px; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--red); text-decoration: underline; }
.kind.memo { color: var(--sub); }
.tl-day { margin: 28px 0 2px; font-size: 19px; font-weight: 700; line-height: 1.5; }
.legend + .tl-day { margin-top: 14px; }
.cite { display: inline-block; margin-left: .5em; font-size: 12px; line-height: 1.4; color: var(--sub); }
.cite:hover, .cite:focus-visible { color: var(--red); }
.views { display: grid; gap: 14px; }
.view { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
.view h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.5; }
.view .role { margin: 2px 0 0; font-size: 13px; color: var(--sub); }
.view .stance { margin: 8px 0 10px; font-weight: 700; }
.view ul { margin: 0; }
.view li:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .prose td:first-child { white-space: normal; }
  .view { padding: 16px; }
}
