:root {
  --bg: #f6f7f9; --surface: #ffffff; --text: #16191f; --muted: #5f6673; --line: #e3e6eb;
  --accent: #0b5cad; --accent-soft: #e6f0fa; --money: #0f7a45; --bar: #8fb8e3; --jp: #c8102e;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --surface: #181c22; --text: #e8eaee; --muted: #9aa2ae; --line: #2a3039;
    --accent: #6fb0f0; --accent-soft: #1a2a3b; --money: #4fd18f; --bar: #2f5e8d; --jp: #ff6b81;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --surface: #181c22; --text: #e8eaee; --muted: #9aa2ae; --line: #2a3039;
  --accent: #6fb0f0; --accent-soft: #1a2a3b; --money: #4fd18f; --bar: #2f5e8d; --jp: #ff6b81;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }

.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; }
.logo { font-weight: 800; color: var(--text); font-size: 18px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--money); color: #fff; font-size: 15px; }
.gnav { display: flex; gap: 14px; font-size: 14px; overflow-x: auto; }
.gnav a { color: var(--muted); white-space: nowrap; }
.top .search { padding-bottom: 10px; }

.search { position: relative; }
.q { width: 100%; font: inherit; font-size: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.q:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.search-big .q { font-size: 17px; padding: 14px 18px; border-radius: 14px; background: var(--surface); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 20; }
.results a { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.results a:hover, .results a.sel { background: var(--accent-soft); text-decoration: none; }
.results small { color: var(--muted); margin-left: auto; white-space: nowrap; }
.results .none { padding: 8px 10px; color: var(--muted); font-size: 14px; }
.r-t { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }

.crumbs { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.crumbs a { color: var(--muted); }
h1 { font-size: 26px; line-height: 1.35; margin: 18px 0 8px; }
h1 .en { display: block; font-size: 14px; font-weight: 500; color: var(--muted); }
h2 { font-size: 19px; margin: 34px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.more { font-size: 13px; font-weight: 500; margin-left: auto; }
.lead { color: var(--muted); margin-top: 0; }
.sub { color: var(--muted); margin: 0 0 14px; }
.badge { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.note { font-size: 13px; color: var(--muted); }

.hero { padding: 28px 0 10px; }
.hero h1 { font-size: 30px; margin-top: 0; }
.br-s { display: none; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.quick a { font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--text); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--text); }
.card:hover { border-color: var(--accent); text-decoration: none; }
.card-name { font-weight: 700; }
.card-team { font-size: 13px; color: var(--muted); }
.card-pay { font-size: 20px; font-weight: 800; color: var(--money); margin-top: 6px; font-variant-numeric: tabular-nums; }
.card-yen { font-size: 13px; color: var(--muted); }

.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tbl th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.tbl th button.on { color: var(--accent); }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl .rank { width: 3em; color: var(--muted); }
.tbl small { display: block; font-size: 12px; color: var(--muted); }
.tbl .name { min-width: 8em; }
.tbl .name a { font-weight: 700; }
.tbl tr.cur td { background: var(--accent-soft); font-weight: 700; }
.jp { display: inline-block; margin-left: 6px; font-size: 10px; color: var(--jp); border: 1px solid var(--jp); border-radius: 3px; padding: 0 3px; vertical-align: 2px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { font: inherit; font-size: 14px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.big { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; }
.big .lbl { display: block; font-size: 13px; color: var(--muted); }
.big-main b { display: block; font-size: 34px; line-height: 1.2; color: var(--money); font-variant-numeric: tabular-nums; }
.big-main .yen { font-size: 18px; font-weight: 700; }
.big-pay { font-size: 15px; }
.big-pay b { font-size: 18px; }
.big-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.big-sub b { font-size: 18px; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; overflow: hidden; }
.facts dt, .facts dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.pts { padding-left: 1.2em; }
.pts li { margin-bottom: 6px; }
.src { font-size: 14px; padding-left: 1.2em; }

.bars { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); counter-reset: r; }
.bars li { display: grid; grid-template-columns: 2em 8.5em 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); counter-increment: r; font-variant-numeric: tabular-nums; }
.bars li:last-child { border-bottom: 0; }
.bars li::before { content: counter(r); color: var(--muted); font-size: 13px; }
.bar { height: 10px; border-radius: 5px; background: var(--bar); width: var(--w); }
.bars b { text-align: right; white-space: nowrap; }
.bars small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

.ad { margin: 24px 0; min-height: 90px; }
.ad-placeholder { display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 12px; }

.foot { margin-top: 48px; padding: 20px 0 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

h3 { font-size: 16px; margin: 22px 0 10px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px; margin-bottom: 12px; border-top: 3px solid var(--accent); }
.stat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.stat-head b { font-size: 15px; }
.stat-head span { font-size: 12px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-variant-numeric: tabular-nums; }
.kpi { padding: 2px 4px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi span { display: block; font-size: 12px; color: var(--muted); }
.kpi b { display: block; font-size: 26px; line-height: 1.25; letter-spacing: -.01em; }
.kpis.sub { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.kpis.sub .kpi b { font-size: 17px; font-weight: 600; }
.cost { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 12px; padding: 10px 12px; background: var(--accent-soft); border-radius: 8px; font-size: 13px; }
.cost-t { font-weight: 700; color: var(--accent); }
.cost .lbl { color: var(--muted); margin-right: 6px; }
.cost b { color: var(--money); font-variant-numeric: tabular-nums; }
.stat-tbl th:first-child, .stat-tbl td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.stat-tbl tr.cur td { background: var(--accent-soft); }
.stat-tbl tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
.stat-tbl td, .stat-tbl th { padding: 8px 10px; }

@media (max-width: 600px) {
  .kpi b { font-size: 21px; }
  .kpis.sub .kpi b { font-size: 15px; }
  h1 { font-size: 22px; }
  .hero h1 { font-size: 24px; }
  .br-s { display: inline; }
  .hide-s { display: none; }
  .gnav { gap: 10px; font-size: 13px; }
  .logo { font-size: 16px; }
  .bars li { grid-template-columns: 1.6em 1fr auto; }
  .bars li { grid-template-areas: "n a v" "n bar bar"; }
  .bars li::before { grid-area: n; }
  .bars li > a { grid-area: a; }
  .bars li > b { grid-area: v; }
  .bars li > .bar { grid-area: bar; height: 6px; }
  .big-main b { font-size: 28px; }
  .tbl th, .tbl td { padding: 9px 8px; }
}
.stat-card p.dnp { margin: .25rem 0 0; color: var(--muted); }
.stat-tbl td, .stat-tbl th { white-space: nowrap; }
.stat-tbl tr.total small { display: inline; font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 2px; }
.kpi b.long { font-size: 20px; }
@media (max-width: 480px) { .kpi b.long { font-size: 15px; white-space: nowrap; } }
/* 年度別の成績は枠の中でスクロールし、見出し行を固定する */
.stat-wrap { max-height: 70vh; overflow: auto; }
.stat-tbl thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); box-shadow: inset 0 -1px 0 var(--line); }
.stat-tbl thead th:first-child { z-index: 3; }

.mbar { display: block; height: 4px; margin: 4px 0 0 auto; border-radius: 2px; background: var(--bar); width: var(--w); max-width: 100%; }
.hbars { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.hb { display: grid; grid-template-columns: 11em 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-variant-numeric: tabular-nums; }
.hb-k { font-size: 14px; }
.hb-t { height: 12px; }
.hb-b { display: block; height: 100%; border-radius: 6px; background: var(--bar); width: var(--w); }
.hb.me .hb-k { font-weight: 700; }
.hb.me .hb-b { background: var(--accent); }
.hb b { white-space: nowrap; font-size: 14px; }
.share { display: flex; height: 22px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.share span { width: var(--w); }
.share .rest, .share-legend i.rest { flex: 1; background: var(--line); }
.s0 { background: #0b5cad; } .s1 { background: #3d8bd4; } .s2 { background: #6fb0f0; } .s3 { background: #0f7a45; } .s4 { background: #4fb37f; }
.share-legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.share-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
@media (max-width: 600px) {
  .hb { grid-template-columns: 1fr auto; grid-template-areas: "k v" "t t"; gap: 4px 8px; }
  .hb-k { grid-area: k; } .hb b { grid-area: v; } .hb-t { grid-area: t; height: 8px; }
}

.hl { background: var(--accent-soft); border-radius: var(--radius); padding: 10px 14px; margin: 12px 0; }
.show-s { display: none; }
@media (max-width: 600px) { .show-s { display: block; } }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 8px 0 16px; }
.tabs a { padding: 8px 20px; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.lg h2 { display: flex; align-items: center; gap: 8px; }
.lg h2::before { content: ''; width: 6px; height: 1.1em; border-radius: 3px; background: var(--accent); }
.lg-al h2::before { background: var(--jp); }
.divs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.div h3 { margin: 0; padding: 8px 14px; font-size: 14px; color: var(--muted); background: var(--accent-soft); }
.div ul { list-style: none; margin: 0; padding: 0; }
.div li a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.div li:first-child a { border-top: 0; }
.div li a:hover { background: var(--accent-soft); }
.tm { font-weight: 600; color: var(--accent); }
.tm small, .tp small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.tp { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.jp-n { color: var(--jp); }
@media (max-width: 800px) { .divs { grid-template-columns: 1fr; } }
.tm { white-space: nowrap; min-width: 0; } .div li a { gap: 6px; } .tm.long { font-size: 14px; letter-spacing: -0.02em; }

/* ===== デザイン強化 ===== */
:root { --navy: #0b1d3f; --navy2: #14336b; --gold: #f5b81c; --gold-d: #b8860b; --sky: #3fa9f5; }
body { background: radial-gradient(1200px 400px at 50% -200px, #dbe8fb 0%, transparent 70%) no-repeat, var(--bg); }
.top { background: linear-gradient(90deg, var(--navy), var(--navy2)); border-bottom: 3px solid var(--gold); }
.logo, .gnav a { color: #fff; }
.gnav a { opacity: .85; font-weight: 600; }
.gnav a:hover { opacity: 1; color: var(--gold); text-decoration: none; }
.logo-mark { background: linear-gradient(135deg, var(--gold), #ffd966); color: var(--navy); box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.top .q { background: rgba(255,255,255,.95); border-color: transparent; }

.hero { position: relative; margin: 0 calc(50% - 50vw); padding: 40px calc(50vw - 50%) 30px; color: #fff; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px),
    radial-gradient(600px 300px at 85% 10%, rgba(63,169,245,.45), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #1d4f9a 100%); }
.hero::after { content: '⚾'; position: absolute; right: max(16px, calc(50vw - 480px)); top: 18px; font-size: 92px; opacity: .14; transform: rotate(-18deg); pointer-events: none; }
.hero h1 { color: #fff; font-size: 34px; letter-spacing: .01em; }
.hero h1::after { content: ''; display: block; width: 72px; height: 4px; border-radius: 2px; margin-top: 10px; background: linear-gradient(90deg, var(--gold), #ffe08a); }
.hero .lead { color: rgba(255,255,255,.82); }
.hero .quick a { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(4px); }
.hero .quick a:hover { background: var(--gold); color: var(--navy); text-decoration: none; }

h2 { position: relative; padding-left: 14px; }
h2::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--gold), var(--sky)); }
.lg h2 { padding-left: 0; } .lg h2::before { position: static; }

.bar, .mbar, .hb-b { background: linear-gradient(90deg, var(--sky), var(--accent)); }
.hb.me .hb-b { background: linear-gradient(90deg, var(--gold), #e07a00); }

.tbl-wrap, .div, .hbars, .facts, .stat-card, .big, .bars { box-shadow: 0 4px 16px rgba(11,29,63,.06); }
td.rank { font-weight: 800; }
td.rank.m1, td.rank.m2, td.rank.m3 { color: transparent; position: relative; }
td.rank.m1::before, td.rank.m2::before, td.rank.m3::before { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 14px; }
td.rank.m1::before { content: '1'; background: linear-gradient(135deg, #f7c948, #c99200); }
td.rank.m2::before { content: '2'; background: linear-gradient(135deg, #cfd6df, #8b96a5); }
td.rank.m3::before { content: '3'; background: linear-gradient(135deg, #e6a26a, #a35a22); }
.bars li:nth-child(-n+3)::before { font-weight: 800; color: var(--gold-d); }

.card { border-top: 4px solid var(--tc, var(--accent)); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(11,29,63,.12); border-color: var(--line); border-top-color: var(--tc, var(--accent)); }
.div li a { border-left: 4px solid var(--tc, var(--accent)); }
.div h3 { background: linear-gradient(90deg, var(--navy), var(--navy2)); color: #fff; }

.big { position: relative; overflow: hidden; color: #fff; border: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 20px), linear-gradient(135deg, var(--navy) 0%, var(--tc, var(--navy2)) 140%); }
.big::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gold); }
.big .lbl { color: rgba(255,255,255,.75); }
.big-main b { color: var(--gold); text-shadow: 0 2px 12px rgba(245,184,28,.35); }
.big-sub { border-top-color: rgba(255,255,255,.18); }
.big a { color: #ffe08a; }

.stat-card { border-top-color: var(--tc, var(--accent)); }
.tabs a[aria-current] { border-bottom-color: var(--gold); color: var(--navy2); }
.chip.on { background: var(--navy2); border-color: var(--navy2); }
.foot { background: var(--navy); color: rgba(255,255,255,.7); border-top: 3px solid var(--gold); }
.foot a { color: #ffe08a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body { background: var(--bg); }
  :root:not([data-theme="light"]) .tabs a[aria-current] { color: var(--gold); }
}
@media (max-width: 600px) { .hero h1 { font-size: 27px; } .hero::after { font-size: 64px; } }
.hero { overflow: visible; z-index: 5; } html, body { overflow-x: clip; }
.r-t { white-space: nowrap; flex: none; } @media (max-width: 600px) { .results a { flex-wrap: wrap; row-gap: 0; } .results small { flex-basis: 100%; margin-left: 0; padding-left: 44px; font-size: 12px; } }
/* ナビとタブをボタンらしく */
.gnav { gap: 8px; }
.gnav a { opacity: 1; font-size: 14px; padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); transition: background .15s, color .15s; }
.gnav a:hover { background: rgba(255,255,255,.2); color: #fff; }
.gnav a[aria-current] { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.tabs { border-bottom: 0; gap: 0; display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; box-shadow: 0 2px 8px rgba(11,29,63,.06); }
.tabs a { padding: 8px 28px; border-radius: 9px; border-bottom: 0; margin: 0; color: var(--muted); }
.tabs a:hover { background: var(--accent-soft); text-decoration: none; }
.tabs a[aria-current] { background: var(--navy2); color: #fff; border: 0; box-shadow: 0 2px 6px rgba(20,51,107,.35); }
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
  .gnav { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .gnav a { font-size: 12px; padding: 5px 2px; text-align: center; }
}
@media (max-width: 760px) { .gnav a { font-size: 11.5px; letter-spacing: -0.04em; padding: 6px 0; } }
.card-pay { font-size: 16px; white-space: nowrap; letter-spacing: -0.02em; }
.commentary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; margin: 0; line-height: 1.9; }
