/* DESIGN.md B 紺。mock.html の配置・余白・表の折り返しを引き継ぐ。 */
:root {
  --bg: #f4f5f7; --surface: #ffffff; --text: #23262b; --sub: #5d636c;
  --accent: #2c3e5c; --accent2: #8a6d3b; --link: #2a5aa0; --border: #d9dce1;
  --head-bg: #1f2a3a; --head-text: #f2f4f7; --tag-bg: #e4e8ef;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Noto Sans JP", sans-serif; font-size: 16px; line-height: 1.8;
  -webkit-text-size-adjust: 100%; font-variant-numeric: tabular-nums;
}
a { color: var(--link); text-underline-offset: .18em; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: 16px; top: 8px; z-index: 2; padding: 6px 12px; background: var(--surface); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
header.site { background: var(--head-bg); color: var(--head-text); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: .02em; color: inherit; text-decoration: none; }
.logo small { font-weight: 400; font-size: 12px; margin-left: 8px; opacity: .75; }
nav.global { display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; }
nav.global a { color: inherit; text-decoration: none; opacity: .85; }
nav.global a:hover, nav.global a:focus-visible { opacity: 1; text-decoration: underline; }
nav.global a[aria-current] { text-decoration: underline; opacity: 1; }
header.site :focus-visible { outline-color: var(--head-text); }
main { padding: 20px 0 40px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
.grid > *, .facts dd { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 18px 20px; margin-bottom: 20px; min-width: 0; }
h1, h2, h3 { font-weight: 700; word-break: normal; overflow-wrap: break-word; }
h1 { font-size: 26px; line-height: 1.5; margin: 0 0 12px; }
h2, .section-heading { font-size: 18px; margin: 0 0 12px; padding-left: 10px; border-left: 4px solid var(--accent); line-height: 1.4; }
.meta { color: var(--sub); font-size: 13px; }
.next-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 3px; background: var(--accent2); color: var(--surface); }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 3px; background: var(--tag-bg); color: var(--accent); font-weight: 500; }
.next-title { font-size: 22px; margin: 2px 0 8px; padding: 0; border: 0; line-height: 1.4; }
dl.facts { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 15px; }
dl.facts dt { color: var(--sub); }
dl.facts dd { margin: 0; overflow-wrap: break-word; word-break: normal; }
.time-note { display: block; font-size: 12px; color: var(--sub); }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 500; color: var(--sub); font-size: 13px; white-space: nowrap; }
.schedule-table td:first-child { min-width: 9em; word-break: normal; overflow-wrap: normal; }
.schedule-table td:last-child { min-width: 10em; }
.nw { white-space: nowrap; }
.num { text-align: right; white-space: nowrap; }
tr.now td { background: color-mix(in srgb, var(--accent2) 10%, transparent); }
.scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll:focus-visible { outline-offset: -3px; }
.table-hint { margin: 0 0 8px; font-size: 12px; }
ul.posts { list-style: none; margin: 0; padding: 0; }
ul.posts li { padding: 12px 0; border-bottom: 1px solid var(--border); }
ul.posts li:last-child { border-bottom: 0; }
ul.posts .t { display: block; font-weight: 500; color: var(--text); text-decoration: none; line-height: 1.5; margin: 2px 0; overflow-wrap: break-word; word-break: normal; }
ul.posts .t:hover, ul.posts .t:focus-visible { color: var(--link); text-decoration: underline; }
ul.links { list-style: none; margin: 0; padding: 0; font-size: 14px; }
ul.links li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
ul.links li:last-child { border-bottom: 0; }
ul.links .d { display: block; color: var(--sub); font-size: 12px; }
.source { font-size: 12px; color: var(--sub); margin: 10px 0 0; overflow-wrap: break-word; }
.about-summary { margin: 0; font-size: 14px; }
.empty { margin: 8px 0; font-weight: 500; }
.reading { max-width: 800px; }
.breadcrumb { font-size: 12px; color: var(--sub); margin: 0 0 12px; }
.article { padding: 28px 32px; }
.article-header { padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-header h1 { margin-top: 10px; }
.article-header .meta { margin: 8px 0 0; }
.prose p { margin: 0 0 1.4em; }
.prose h2 { margin-top: 32px; margin-bottom: 16px; font-size: 20px; line-height: 1.6; }
.prose h3 { margin: 24px 0 12px; font-size: 17px; line-height: 1.6; }
.prose { overflow-wrap: break-word; word-break: normal; }
.prose ul, .prose ol, .article-sources ul { padding-left: 1.5em; }
.prose li, .article-sources li { margin: 8px 0; }
.prose blockquote { margin: 20px 0; padding: 8px 16px; border-left: 3px solid var(--border); color: var(--sub); }
.prose pre { max-width: 100%; overflow-x: auto; padding: 12px; background: var(--bg); }
.prose code { font-size: .9em; }
.prose .scroll { margin-bottom: 24px; }
.prose table { min-width: 480px; }
.article-sources { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; }
.results-table { min-width: 540px; }
.results-table td:nth-child(2) { min-width: 10em; }
.draft-notice { border-left: 4px solid var(--accent2); padding: 8px 12px; background: var(--surface); font-size: 14px; }
footer.site { border-top: 1px solid var(--border); color: var(--sub); font-size: 12px; padding: 20px 0 32px; }
footer.site p { margin: 0 0 8px; }
footer.site .disclaimer { overflow-wrap: break-word; }
@media (max-width: 760px) { .grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .panel { padding: 14px; }
  .article { padding: 20px 16px; }
  h1 { font-size: 23px; }
  .logo small { display: block; margin-left: 0; }
  header.site .wrap { gap: 10px; }
  dl.facts { grid-template-columns: 6.5em minmax(0, 1fr); gap: 6px 10px; font-size: 14px; }
}
