:root {
  color-scheme: light;
  --ink: #25282b;
  --muted: #60676d;
  --link: #285d8b;
  --line: #d2d5d8;
  --soft: #f4f5f6;
  --page: #f7f7f7;
  --white: #fff;
  --focus: #b94b12;
  --sidebar: 198px;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
a { color: var(--link); text-decoration: none; text-underline-offset: .15em; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, input, select { border: 1px solid #a8aeb4; border-radius: 0; background: white; color: var(--ink); }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 20; background: white; padding: 10px; border: 2px solid var(--link); }
.skip:focus { top: 8px; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1240px; margin: auto; min-height: 58px; padding: 12px 24px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-name { font-size: 1.125rem; font-weight: 700; white-space: nowrap; color: var(--ink); }
.header-meta { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.search-form { display: flex; gap: 0; min-width: 0; }
.header-search { margin-left: auto; max-width: 570px; flex: 1 1 420px; }
.search-form input { min-width: 0; flex: 1; width: 100%; padding: 6px 10px; }
.search-form select { border-left: 0; background: var(--soft); padding: 6px 8px; font-size: .875rem; max-width: 170px; }
.search-form button { border-left: 0; padding: 6px 16px; background: var(--soft); white-space: nowrap; font-size: .875rem; }
.menu-button { display: none; padding: 6px 10px; font-size: .875rem; background: var(--soft); }
.top-nav { border-bottom: 1px solid var(--line); background: #fafafa; }
.top-nav-inner { max-width: 1240px; padding: 0 24px; margin: auto; display: flex; flex-wrap: wrap; gap: 2px 22px; align-items: center; min-height: 35px; font-size: .875rem; }
.top-nav a { padding: 5px 0; }
.top-nav .current-game { font-weight: 600; }
.language { margin-left: auto; color: var(--muted); font-size: .8125rem; }
.layout { max-width: 1240px; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); gap: 24px; margin: 0 auto; padding: 0 24px 36px; }
.sidebar { min-width: 0; align-self: start; font-size: .875rem; padding-top: 22px; }
.side-title { font-weight: 700; padding: 0 0 12px; line-height: 1.5; }
.side-title a { color: var(--ink); }
.side-section { margin: 0 0 18px; }
.side-section h2 { font-size: .875rem; margin: 0; padding: 4px 0; border-bottom: 1px solid var(--line); }
.side-list { list-style: none; padding: 4px 0; margin: 0; }
.side-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 32px; padding: 4px 8px; margin-left: -8px; line-height: 1.5; border-left: 2px solid transparent; }
.side-list a[aria-current], .side-list a[data-current-section] { background: #e9edf1; border-left-color: var(--link); font-weight: 650; }
.side-list a:hover { background: #eceff1; }
.side-count { font-size: .8125rem; color: var(--muted); font-weight: 400; }
.side-note { padding: 4px 0; margin: 0; color: var(--muted); font-size: .8125rem; }
.main { min-width: 0; background: var(--white); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 28px 28px; }
.breadcrumbs { font-size: .8125rem; color: var(--muted); margin: 0 0 12px; }
.breadcrumbs ol { padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 3px 8px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: #7a8187; }
.page-title { font-size: 1.75rem; line-height: 1.4; margin: 0; padding-bottom: 7px; border-bottom: 1px solid #acb2b8; font-weight: 650; overflow-wrap: anywhere; }
.page-meta { font-size: .8125rem; color: var(--muted); margin: 8px 0; display: flex; gap: 5px 14px; flex-wrap: wrap; }
.fixture-notice { font-size: .8125rem; padding: 7px 0; margin: 0 0 12px; color: #62572e; line-height: 1.6; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); font-size: .875rem; margin: 0 0 20px; flex-wrap: wrap; }
.tabs a { padding: 6px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:first-child { padding-left: 0; padding-right: 14px; }
.tabs a[aria-current] { border-bottom-color: var(--link); color: var(--ink); font-weight: 650; }
.section-heading { font-size: 1.1875rem; line-height: 1.5; margin: 26px 0 10px; border-bottom: 1px solid var(--line); padding: 0 0 5px; font-weight: 650; scroll-margin-top: 20px; }
.section-heading:first-child { margin-top: 0; }
.section-meta, .scope-line { color: var(--muted); font-size: .875rem; margin: 0 0 12px; }
.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); overscroll-behavior-x: contain; }
.wiki-table { border-collapse: collapse; width: 100%; font-size: .9375rem; line-height: 1.6; }
.wiki-table caption { text-align: left; padding: 6px 10px; font-size: .8125rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.wiki-table th { background: #eef0f2; text-align: left; font-size: .875rem; vertical-align: top; padding: 7px 10px; font-weight: 650; }
.wiki-table td { padding: 7px 10px; vertical-align: top; border-top: 1px solid var(--line); }
.wiki-table th + th, .wiki-table td + td { border-left: 1px solid #e0e2e4; }
.wiki-table tbody tr:nth-child(even) td { background: #fafafa; }
.wiki-table tbody tr:hover td { background: #f1f4f7; }
.wiki-table td:first-child a { font-weight: 550; }
.wiki-table p { margin: 0; }
.wiki-table small { display: block; margin-top: 2px; color: var(--muted); font-size: .8125rem; }
.wiki-table .muted { color: var(--muted); font-size: .875rem; }
.table-empty { text-align: left !important; color: var(--muted); padding: 18px 10px !important; }
.badge { display: inline-block; font-size: .75rem; line-height: 1.4; border: 1px solid #c6c9cc; background: #f7f7f7; color: #60666c; padding: 1px 5px; vertical-align: middle; white-space: nowrap; font-weight: 400; }
.badge-dummy { background: #faf7eb; border-color: #d6cda9; color: #6c5c26; }
.entry-label { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; }
.directory-title { font-size: 1rem; }
.directory-table { min-width: 550px; }
.category-index { min-width: 500px; }
.category-index th:first-child { width: 28%; }
.category-index th:last-child { width: 76px; }
.category-index ul { margin: 0; padding: 0; list-style: none; }
.category-index li + li { margin-top: 4px; }
.jump-list { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 8px 0 18px; padding: 0; font-size: .875rem; }
.content-note { font-size: .875rem; line-height: 1.7; color: var(--muted); margin: 14px 0; }
.detail-grid { display: grid; grid-template-areas: "body info"; grid-template-columns: minmax(0, 1fr) 272px; gap: 24px; align-items: start; }
.detail-main { min-width: 0; grid-area: body; }
.infobox { grid-area: info; border: 1px solid var(--line); min-width: 0; }
.infobox h2 { margin: 0; background: #eef0f2; padding: 7px 10px; font-size: .9375rem; border-bottom: 1px solid var(--line); }
.infobox .wiki-table { font-size: .875rem; }
.infobox .wiki-table th { width: 35%; font-size: .875rem; background: #f5f5f5; }
.infobox .wiki-table td, .infobox .wiki-table th { padding: 7px 9px; border-bottom: 1px solid var(--line); }
.infobox .wiki-table tr:last-child th, .infobox .wiki-table tr:last-child td { border-bottom: 0; }
.infobox .wiki-table td { border-left: 1px solid var(--line); border-top: 0; overflow-wrap: anywhere; }
.infobox .sample-identity { padding: 7px 10px; font-size: .8125rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.sample-identity .badge { margin-bottom: 3px; }
.toc { border: 1px solid var(--line); background: #fafafa; padding: 9px 13px; margin: 0 0 22px; max-width: 420px; font-size: .875rem; }
.toc summary { font-weight: 650; cursor: pointer; padding: 2px 0; }
.toc ol { margin: 5px 0 0; padding-left: 23px; }
.toc li { padding: 2px 0; }
.unfilled { color: #676e75; font-size: .9375rem; margin: 0 0 18px; padding: 0; }
.relations { list-style: none; margin: 0; padding: 0; }
.relations li { display: grid; grid-template-columns: 150px minmax(0, 1fr); padding: 7px 0; border-bottom: 1px solid #e4e6e8; font-size: .9375rem; gap: 12px; }
.relation-label { color: var(--muted); font-size: .875rem; }
.page-footer { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 12px; font-size: .875rem; display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer { max-width: 1240px; margin: 0 auto 22px; padding: 0 24px 0 270px; font-size: .8125rem; color: var(--muted); }
.footer p { margin: 3px 0; }
.empty-state { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin: 14px 0; }
.empty-state h2 { font-size: 1rem; margin: 0 0 5px; font-weight: 600; }
.empty-state p { font-size: .875rem; margin: 0; color: var(--muted); }
.search-panel { margin: 16px 0 22px; }
.search-panel > label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.search-panel .search-form { max-width: 800px; }
.results-summary { font-size: .875rem; color: var(--muted); margin: 0 0 10px; }
.results-list { padding: 0; list-style: none; margin: 0; }
.results-list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.result-title { font-size: 1rem; font-weight: 550; }
.result-path { font-size: .8125rem; color: var(--muted); margin-top: 3px; }
.result-type { margin-left: 7px; }
.search-result-status { font-size: .8125rem; color: var(--muted); margin-top: 3px; }
.backlinks { font-size: .9375rem; list-style: disc; padding-left: 22px; }
.backlinks li { margin: 5px 0; }
.mobile-dialog { border: 0; border-right: 1px solid var(--line); padding: 0; width: 330px; max-width: 90vw; max-height: 100dvh; height: 100dvh; margin: 0 auto 0 0; background: white; color: var(--ink); }
.mobile-dialog::backdrop { background: #1d252d66; }
.dialog-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: white; border-bottom: 1px solid var(--line); padding: 12px 18px; position: sticky; top: 0; z-index: 1; }
.dialog-head button { padding: 7px 10px; min-height: 44px; background: var(--soft); font-size: .875rem; }
.dialog-navigation { padding: 16px 22px; }
.dialog-navigation .side-list a { min-height: 44px; }
.noscript { padding: 8px 0; color: #62572e; font-size: .875rem; }
.filter-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.filter-form label { font-size: .875rem; }
.filter-form input { padding: 6px 9px; max-width: 310px; width: 100%; font-size: .9375rem; }
.filter-meta { font-size: .8125rem; color: var(--muted); }
.category-table { min-width: 520px; }
.category-table th:first-child { width: 38%; }
.table-help { display: none; font-size: .8125rem; color: var(--muted); margin: 0 0 6px; }
.game-index { font-size: .9375rem; min-width: 500px; }
.game-index td:nth-child(2) { white-space: nowrap; }
body.modal-open { overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1100px) {
  .layout { gap: 18px; padding: 0 18px 28px; grid-template-columns: 188px minmax(0, 1fr); }
  .header-inner { padding: 12px 18px; gap: 16px; }
  .top-nav-inner { padding: 0 18px; }
  .header-meta { display: none; }
  .main { padding: 18px 22px 24px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 242px; gap: 18px; }
  .footer { padding-left: 248px; }
}
@media (max-width: 940px) {
  .detail-grid { grid-template-columns: 1fr; grid-template-areas: "info" "body"; }
  .infobox .wiki-table th { width: 28%; }
  .toc { max-width: none; }
  .header-search select { max-width: 120px; }
  .header-inner { gap: 12px; }
}
@media (max-width: 700px) {
  body { background: white; }
  .header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 10px 14px; }
  .menu-button { display: inline-block; min-height: 44px; }
  .site-name { font-size: 1.0625rem; white-space: normal; }
  .header-search { grid-column: 1 / -1; width: 100%; max-width: none; margin: 0; flex-wrap: wrap; }
  .header-search input { font-size: 1rem; padding: 8px 10px; min-height: 44px; flex-basis: calc(100% - 182px); }
  .header-search select { max-width: 114px; min-height: 44px; font-size: .875rem; padding: 7px; }
  .header-search button { padding: 7px 12px; min-height: 44px; font-size: .875rem; }
  .top-nav-inner { min-height: 35px; padding: 0 14px; gap: 14px; font-size: .8125rem; }
  .top-nav .current-game { max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .language { font-size: .75rem; }
  .layout { display: block; padding: 0; }
  .sidebar { display: none; }
  .main { padding: 15px 16px 24px; border: 0; }
  .breadcrumbs { font-size: .8125rem; margin-bottom: 10px; }
  .page-title { font-size: 1.625rem; line-height: 1.4; }
  .page-meta { font-size: .8125rem; gap: 4px 12px; }
  .fixture-notice { font-size: .8125rem; padding: 4px 0; margin-bottom: 10px; }
  .tabs { margin: 0 0 20px; gap: 0 12px; }
  .tabs a, .tabs a:first-child { padding: 8px 0; font-size: .875rem; min-height: 40px; }
  .section-heading { font-size: 1.1875rem; margin-top: 24px; }
  .wiki-table { font-size: .9375rem; }
  .wiki-table th, .wiki-table td { padding: 8px 10px; }
  .wiki-table th { font-size: .875rem; }
  .jump-list { gap: 2px 16px; }
  .jump-list a { display: inline-block; padding: 7px 0; }
  .detail-grid { gap: 20px; }
  .relations li { grid-template-columns: 1fr; gap: 2px; }
  .page-footer { font-size: .875rem; margin-top: 24px; }
  .page-footer a { padding: 5px 0; }
  .footer { border-top: 1px solid var(--line); padding: 14px 16px 0; font-size: .8125rem; }
  .table-help { display: block; }
  .search-panel .search-form { flex-wrap: wrap; gap: 8px; }
  .search-panel .search-form input { flex: 1 1 100%; font-size: 1rem; min-height: 44px; }
  .search-panel .search-form select { flex: 1; border: 1px solid #a8aeb4; max-width: none; font-size: .875rem; min-height: 44px; }
  .search-panel .search-form button { border: 1px solid #a8aeb4; flex: 0 0 82px; min-height: 44px; }
  .filter-form { gap: 7px; }
  .filter-form label { flex-basis: 100%; }
  .filter-form input { max-width: none; min-width: 0; min-height: 44px; flex: 1; font-size: 1rem; }
  .toc summary { min-height: 40px; display: list-item; padding: 7px 0; }
  .toc li { padding: 4px 0; }
}
@media (max-width: 360px) {
  .header-search input { flex: 1 1 100%; border-bottom: 0; }
  .header-search select { flex: 1; max-width: none; border-left: 1px solid #a8aeb4; }
  .header-search button { flex: 0 0 64px; }
}
@media print {
  .site-header, .top-nav, .sidebar, .footer, .mobile-dialog, .tabs, .page-footer, .filter-form, .table-help { display: none; }
  body { background: white; }
  .layout { display: block; padding: 0; }
  .main { border: 0; padding: 0; }
  .table-scroll { overflow: visible; }
  .wiki-table { min-width: 0; }
  .detail-grid { display: block; }
  .infobox { margin-bottom: 20px; }
  a { color: inherit; }
  .section-heading { break-after: avoid; }
}
.wiki-table tbody th { border-top: 1px solid var(--line); }

.main p a, .wiki-table td a, .relations a, .backlinks a { text-decoration: underline; }
