/* 選手ページ（info/rider.php。2026-11-04） スマホ優先 */
:root {
  --fg: #1f2328;
  --mute: #6b7280;
  --line: #e5e7eb;
  --head: #f5f6f8;
  --accent: #3584bb;
  --up: #c0392b;
  --down: #1f5fbf;
  --bg: #ffffff;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
.rp { max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; }
.rp a { color: var(--accent); text-decoration: none; }
.rp a:hover { text-decoration: underline; }
.rp h1 { font-size: 24px; margin: 8px 70px 2px 0; line-height: 1.3; }
.rp h1 span { font-size: 14px; color: var(--mute); font-weight: normal; }
.rp h2 { font-size: 17px; margin: 28px 0 8px; padding-left: 8px; border-left: 4px solid var(--accent); }
.rp .sub { margin: 0; font-size: 14px; }
.rp .note { color: var(--mute); font-size: 12px; margin: 6px 0 0; }
.rp .foot { margin-top: 32px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; margin: 16px 0 0; }
.tiles div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 4px; text-align: center; }
.tiles b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.tiles span { font-size: 12px; color: var(--mute); }

.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 4px; }
table.st { border-collapse: collapse; width: 100%; font-size: 14px; }
table.st th, table.st td { border-bottom: 1px solid var(--line); padding: 6px 6px; white-space: nowrap; }
table.st tr:first-child th { background: var(--head); font-size: 12px; font-weight: normal; color: var(--mute); text-align: center; }
table.st th { text-align: left; font-weight: normal; }
table.st td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.st small { color: var(--mute); font-size: 11px; margin-left: 3px; }
table.st tr.ref td, table.st tr.ref th { color: var(--mute); }
.up { color: var(--up); font-weight: bold; }
.down { color: var(--down); }
.mute { color: var(--mute); }

table.races { font-size: 13px; }
table.races td.fin { text-align: center; }
table.races b.f1 { color: #fff; background: var(--up); border-radius: 3px; padding: 0 5px; }
table.races b.f2, table.races b.f3 { color: var(--up); }
table.races b.f4 { font-weight: normal; }

details { margin-top: 8px; }
summary { cursor: pointer; color: var(--accent); font-size: 14px; padding: 6px 0; }

svg.chart { width: 100%; height: auto; display: block; margin-top: 4px; }
svg.chart polyline { fill: none; stroke: var(--accent); stroke-width: 2; }
svg.chart circle { fill: var(--accent); }
svg.chart .ax { stroke: var(--line); }
svg.chart text { font-size: 11px; fill: var(--mute); }

/* タブ（2026-11-05）。JS があるときだけ選んだタブ以外を隠す */
nav.tabs { display: flex; gap: 2px; margin: 20px 0 0; border-bottom: 2px solid var(--accent); overflow-x: auto; -webkit-overflow-scrolling: touch; }
nav.tabs a { flex: 1 0 auto; text-align: center; padding: 8px 10px; font-size: 14px; color: var(--mute); background: var(--head); border-radius: 6px 6px 0 0; white-space: nowrap; }
nav.tabs a:hover { text-decoration: none; color: var(--fg); }
nav.tabs a.on { background: var(--accent); color: #fff; font-weight: bold; }
html.js .pane { display: none; }
html.js .pane.on { display: block; }
html.js .pane > section:first-child > h2:first-child { margin-top: 16px; }

/* ワイド1番人気の一覧（2026-11-05）。大口の行: 的中＝青・不的中＝赤（wide.php と同じ色） */
:root { --bighit: #dbe9ff; --bigmiss: #ffd9d9; --big: #fff4c2; }
table.st tr.big th { font-weight: bold; }
table.wl { font-size: 13px; }
table.wl th small { margin-left: 2px; }
table.wl td.fin { text-align: center; }
table.wl td.res { white-space: nowrap; }
table.wl tr.big > td { background: var(--big); }
table.wl tr.bighit > td { background: var(--bighit); }
table.wl tr.bigmiss > td { background: var(--bigmiss); }
table.wl.only-big tr:not(.big):not(:first-child) { display: none; }
table.wl b.f1 { color: #fff; background: var(--up); border-radius: 3px; padding: 0 4px; }
table.wl b.f2, table.wl b.f3 { color: var(--up); }
table.wl b.f4 { font-weight: normal; }
.mk { font-weight: bold; margin-right: 2px; }
.mk.hit { color: var(--up); }
.mk.miss { color: var(--down); }
.tag { display: inline-block; font-size: 10px; line-height: 1.5; padding: 0 4px; margin-right: 4px; border-radius: 3px; background: #b8860b; color: #fff; vertical-align: 1px; }
.sw { display: inline-block; width: 10px; height: 10px; border: 1px solid var(--line); vertical-align: -1px; margin: 0 2px 0 6px; }
.sw.bighit { background: var(--bighit); }
.sw.bigmiss { background: var(--bigmiss); }
.chips { display: flex; gap: 6px; margin: 4px 0 6px; }
.chips button { font: inherit; font-size: 13px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); cursor: pointer; }
.chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips button small { opacity: .8; margin-left: 2px; }

@media (max-width: 360px) {
  nav.tabs a { padding: 8px 6px; font-size: 13px; }
  body { font-size: 14px; }
  table.st th, table.st td { padding: 5px 4px; }
  table.st { font-size: 13px; }
}
