/* 福井ミニバス 結果まとめ
   方針：読みやすさ最優先。文字は大きめ、見出しと本文の差（ジャンプ率）を大きく。
   影・グラデーション・動く演出は使わない（例外はページ内のスムーススクロールと開閉だけ）。差し色はボールのオレンジ1色だけ。 */

:root {
  --bg: #ffffff;
  --ink: #16181b;
  --sub: #5f6166;
  --mute: #858585;
  --line: #e4e2dd;
  --soft: #f3f1ec;
  --accent: #c8410e;
  --flag-bg: #fff3d1;
  --flag: #6b4700;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  --num: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  font-feature-settings: "palt" 0;
}

a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible, .row:focus-visible, .tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- トップの看板 ---------- */
.masthead {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-bottom: 6px solid var(--accent);
  padding: 36px 0 34px;
}
/* コートの3ポイントラインを1本だけ。飾りはこれ以外に置かない */
.masthead::before {
  content: "";
  position: absolute;
  right: -230px;
  top: -150px;
  width: 380px;
  height: 380px;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}
.masthead .wrap { position: relative; }
.kicker { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.78); }
.tag {
  display: inline-block;
  margin-right: 10px;
  padding: 0 8px;
  border: 1.5px solid #fff;
  color: #fff;
  font-size: 13px;
  line-height: 1.7;
}
.site-title, .h-section, .team-name, .league-name, .day-head, .panel-title { font-feature-settings: "palt" 1; }
.site-title {
  margin: 0;
  font-size: clamp(42px, 12vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.masthead-lead { margin: 18px 0 0; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, 0.82); max-width: 30em; }

/* 大会・協会の公開・取得した日の3点。横に並べ、入りきらない幅では日付の途中で折らずに段を分ける */
.status { background: var(--soft); border-bottom: 1px solid var(--line); }
.status dl { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 auto; padding-top: 14px; padding-bottom: 14px; }
.status dl > div:first-child { flex-basis: 100%; }
.status dt { font-size: 12px; font-weight: 700; color: var(--sub); line-height: 1.4; }
.status dd { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; }
.status-note { margin-top: -4px; margin-bottom: 0; padding-bottom: 14px; font-size: 13px; line-height: 1.6; color: var(--sub); }

/* ---------- 見出し ---------- */
.h-section { margin: 44px 0 6px; font-size: 32px; font-weight: 900; line-height: 1.25; letter-spacing: 0.02em; }
.hint { margin: 0; font-size: 15px; color: var(--sub); }

/* ---------- 男子・女子の切り替え ---------- */
.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  margin: 22px -20px 0;
  padding: 10px 20px;
  background: var(--bg);
}
.tab {
  flex: 1;
  padding: 12px 0;
  border: 2px solid var(--ink);
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--ink);
}
.tab:first-child { border-radius: 999px 0 0 999px; }
.tab:last-child { border-radius: 0 999px 999px 0; border-left: 0; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab[aria-selected="true"]:hover { color: #fff; }

.panel[hidden] { display: none; }
.panel-title { margin: 36px 0 0; font-size: 26px; font-weight: 900; }
.js .panel-title { display: none; }

/* ---------- リーグとチームの行 ---------- */
.league { margin-top: 34px; }
.league-name { display: flex; align-items: baseline; gap: 4px; margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.league-letter { font-family: var(--num); font-size: 64px; font-weight: 700; line-height: 0.9; color: var(--accent); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: 1fr auto 20px;
  grid-template-areas: "name rec arrow" "diff rec arrow";
  column-gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.row::after { content: "›"; grid-area: arrow; font-size: 28px; line-height: 1; color: var(--mute); }
.row:hover { color: inherit; }
.row:hover .row-name { color: var(--accent); }
.row-name { grid-area: name; font-size: 22px; font-weight: 700; line-height: 1.35; }
.row-tag { margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--sub); }
.row-diff { grid-area: diff; font-size: 13px; color: var(--sub); line-height: 1.4; }
.row-rec { grid-area: rec; white-space: nowrap; }
.row-rec b { font-family: var(--num); font-size: 34px; font-weight: 700; line-height: 1; }
.row-rec small { margin: 0 8px 0 3px; font-size: 14px; font-weight: 700; color: var(--sub); }
.row-rec small:last-child { margin-right: 0; }

/* ---------- チームページ ---------- */
.topbar { background: var(--ink); color: #fff; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
.back { padding-block: 10px; margin-block: -10px; font-size: 16px; font-weight: 700; text-decoration: none; color: #fff; }
.back:hover { color: #fff; opacity: 0.75; }
.brand { font-size: 13px; text-decoration: none; color: rgba(255, 255, 255, 0.7); }
.brand:hover { color: #fff; }

.team-hero { padding: 24px 0 22px; }
.team-meta { margin: 0; font-size: 15px; font-weight: 700; color: var(--sub); }
.team-name { margin: 4px 0 0; font-size: clamp(46px, 14vw, 76px); font-weight: 900; line-height: 1.08; letter-spacing: 0.02em; word-break: break-word; }
.team-note { margin: 10px 0 0; font-size: 14px; color: var(--sub); }
.team-club { margin: 6px 0 0; font-size: 15px; font-weight: 700; }
.team-club a { display: inline-block; padding: 10px 6px; margin: -6px -2px; color: var(--accent); }

.record { display: flex; align-items: baseline; margin: 16px 0 0; }
.rec-num { font-family: var(--num); font-size: 84px; font-weight: 700; line-height: 0.85; }
.rec-unit { margin: 0 18px 0 4px; font-size: 26px; font-weight: 900; }
.record-sub { margin: 12px 0 0; font-size: 15px; color: var(--sub); line-height: 1.7; }
.nw { white-space: nowrap; }

/* 看板の「直近の試合」：いちばん新しい日の結果を、最初の画面で読めるように置く（押すと今季の試合結果へ） */
.latest { display: block; margin: 18px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.latest:hover { color: inherit; }
.latest:hover .lt-label, .latest:hover .lt-go { color: var(--accent); }
.lt-head { display: flex; align-items: baseline; gap: 10px; line-height: 1.4; }
.lt-label { font-size: 13px; font-weight: 900; letter-spacing: 0.06em; color: var(--sub); }
.lt-day { font-size: 16px; font-weight: 900; }
.lt-go { margin-left: auto; font-size: 16px; font-weight: 900; color: var(--mute); }
.lt-game { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.lt-res { flex: none; display: grid; place-items: center; width: 30px; height: 30px; font-size: 14px; font-weight: 900; border: 2px solid var(--line); color: var(--sub); }
.lt-res.w { background: var(--accent); border-color: var(--accent); color: #fff; }
.lt-res.x { background: transparent; border-style: dashed; border-color: var(--mute); color: var(--sub); }
.lt-score { flex: none; min-width: 84px; font-family: var(--num); font-size: 32px; font-weight: 700; line-height: 1; }
.lt-opp { min-width: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.lt-opp small { margin-right: 6px; font-family: var(--num); font-size: 15px; font-weight: 600; color: var(--mute); }
/* 集計外の試合は点線の札だけでは意味が分からないので、同じ行の右に一言 */
.lt-x { flex: none; margin-left: auto; font-size: 12px; font-weight: 700; color: var(--sub); white-space: nowrap; }
/* いちばん狭い幅では、添え書きのある行だけ「vs」を外して詰め、相手の名前が次の段に落ちないようにする（看板の高さを増やさない） */
@media (max-width: 359px) {
  .lt-game:has(.lt-x) { gap: 8px; }
  .lt-game:has(.lt-x) .lt-score { min-width: 72px; }
  .lt-game:has(.lt-x) .lt-opp small { display: none; }
}
.latest + .record-sub { margin-top: 14px; }
/* 大会の成績（「2回戦敗退」「ブロック1位」）は勝敗数と同じ行に */
.rec-finish { align-self: center; font-size: 18px; font-weight: 900; color: var(--accent); white-space: nowrap; }
/* 看板が大会のときは、大会名（小さく）と成績を2段に重ねて勝敗数の右に */
.rec-ev { display: flex; flex-direction: column; align-self: center; min-width: 0; line-height: 1.35; }
.rec-evname { font-size: 13px; font-weight: 900; color: var(--sub); }
/* 今季の合計を看板に出すとき（今季2大会以上）の大会ごとの内訳。勝敗の札の代わりに置く。
   看板の高さを増やさないよう詰めて組み、すぐ下の「直近の試合」との間も詰める（docs/design.md） */
.rec-break { display: grid; grid-template-columns: max-content max-content 1fr; column-gap: 12px;
  margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; }
.rec-break + .latest { margin-top: 12px; }
.rec-break li { display: contents; }
.rb-name { font-weight: 700; color: var(--sub); }
.rb-rec { font-family: var(--num); font-weight: 700; white-space: nowrap; }
.rb-fin { font-weight: 900; color: var(--accent); white-space: nowrap; }

/* お気に入り・共有は、今季の試合とリーグ表を読み終えた位置に置く */
.share { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.share .actions { margin-top: 0; }

/* ---------- チームページの骨組み ----------
   セクションの頭は黒い帯に白抜き。どこからが次の話かを、読み流していても見落とさないようにする */
.sec { margin-top: 56px; scroll-margin-top: 50px; }
.sec-head { margin: 0 -20px; padding: 14px 20px 16px; background: var(--ink); color: #fff; }
.sec-kicker { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }
.sec .h-section { margin: 0; font-size: 30px; line-height: 1.3; }
.sec-head + .hint { margin-top: 14px; }
.sec .rows { margin-top: 14px; }
.sec-head + .day { margin-top: 24px; }

/* 各セクションへの動線。読み進めても画面の上に付いてくる */
.secnav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: clamp(10px, 4.5vw, 22px);
  margin: 0 -20px;
  padding: 0 20px;
  overflow-x: auto;
  background: var(--bg);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.secnav::-webkit-scrollbar { display: none; }
.secnav a {
  flex: none;
  padding: 13px 0 10px;
  border-bottom: 3px solid transparent;
  font-size: clamp(13px, 3.9vw, 15px);  /* 小さい画面でも4項目が1行に収まる大きさ */
  font-weight: 900;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  color: var(--sub);
}
.secnav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.secnav + .sec { margin-top: 28px; }
.secnav + .zone-past > .sec:first-child { margin-top: 28px; }

/* 勝敗の流れ */
.form { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 16px 0 0; padding: 0; }
.form > * {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: 900;
  border: 2px solid var(--line);
  color: var(--sub);
}
.form .w { background: var(--accent); border-color: var(--accent); color: #fff; }
.form .x { background: transparent; border-style: dashed; border-color: var(--mute); color: var(--sub); }

/* 試合一覧 */
.day { margin-top: 28px; }
.day-head { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.35; }
.day-wd { font-size: 18px; }
.day-venue { margin: 0; font-size: 15px; color: var(--sub); }

.game { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.day .game:first-of-type { margin-top: 8px; border-top: 2px solid var(--ink); }
.g-head { display: flex; align-items: center; gap: 12px; }
.g-res {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 18px;
  font-weight: 900;
  border: 2px solid var(--line);
  color: var(--sub);
}
.game.win .g-res { background: var(--accent); border-color: var(--accent); color: #fff; }
.game.ref .g-res { background: transparent; border: 2px dashed var(--mute); color: var(--sub); }
.g-ref { font-weight: 700; color: var(--ink); }
.g-opp { flex: 1; min-width: 0; margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
.vs { margin-right: 6px; font-family: var(--num); font-size: 18px; font-weight: 600; color: var(--mute); }
.g-opp-link { text-decoration: none; padding-block: 12px; }
.g-opp-link:hover { text-decoration: underline; }
.g-score { flex: none; margin: 0; font-family: var(--num); font-size: 50px; font-weight: 700; line-height: 1; white-space: nowrap; }
.g-score .sep { margin: 0 5px; color: var(--mute); font-weight: 600; }
.game.win .g-score .op, .game.loss .g-score .me { color: var(--mute); }

.qt { width: 100%; max-width: 380px; margin: 12px 0 0; border-collapse: collapse; font-family: var(--num); font-size: 19px; line-height: 1.3; }
.qt th { padding: 4px 12px 4px 0; font-family: var(--jp); font-size: 13px; font-weight: 700; color: var(--sub); text-align: left; white-space: nowrap; }
.qt thead th { padding-bottom: 2px; text-align: center; }
.qt tbody th { max-width: 9em; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--line); }
.qt td { padding: 4px 0; text-align: center; border-top: 1px solid var(--line); color: var(--sub); }
.qt .qt-me th, .qt .qt-me td { color: var(--ink); font-weight: 700; }

.g-meta { margin: 10px 0 0; font-size: 14px; color: var(--sub); }
.g-meta a { padding-block: 12px; }
.flag { margin: 10px 0 0; padding: 10px 14px; font-size: 14px; line-height: 1.65; color: var(--flag); background: var(--flag-bg); }
.info { margin: 8px 0 0; font-size: 14px; color: var(--sub); }

/* ---------- お気に入りのチーム（トップ最上部） ---------- */
.myteam { margin: 22px 0 0; }
.myteam-label { margin: 0 0 6px; font-size: 13px; font-weight: 900; color: var(--accent); letter-spacing: 0.06em; }
.myteam-link { padding: 14px 16px; border: 2px solid var(--ink); background: var(--soft); }
.myteam-gender { margin-left: 10px; font-size: 13px; font-weight: 700; color: var(--sub); }

.league-note { margin: 0 0 8px; font-size: 14px; color: var(--sub); }

/* ---------- チームページの操作 ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.btn-fav {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--jp);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.btn-fav { border: 2px solid var(--ink); background: var(--bg); color: var(--ink); }
.btn-fav[aria-pressed="true"] { background: var(--ink); color: #fff; }
.btn-fav[hidden] { display: none; }

.g-opp-rec { margin-left: 8px; font-size: 14px; font-weight: 700; color: var(--sub); white-space: nowrap; }

/* リーグの勝敗（チームページ下部） */
.league-table .rows { margin-top: 14px; }
.row.is-me .row-name { color: var(--accent); }
.row-here { margin-left: 8px; font-size: 12px; font-weight: 900; color: var(--accent); }

.fav-note { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--sub); }
.fav-note[hidden] { display: none; }

/* 試合ごとの「結果がちがう？」（目立たせない） */
.g-report { margin: 8px 0 0; font-size: 13px; }
.g-report a { color: var(--mute); }
.g-report a:hover { color: var(--accent); }

/* ---------- 結果がちがうときの連絡 ---------- */
.report .h-section { margin-top: 36px; }
.report-lead { margin: 10px 0 0; font-size: 16px; color: var(--sub); }
.report-game { margin: 24px 0 0; padding: 14px 16px; background: var(--soft); }
.report-game-label { margin: 0; font-size: 13px; font-weight: 700; color: var(--sub); }
.report-game-name { margin: 2px 0 0; font-size: 18px; font-weight: 700; line-height: 1.5; }
.report-form { margin-top: 24px; }
.field { display: block; margin: 0 0 22px; }
.field-label { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 700; }
.req, .opt { margin-left: 8px; font-size: 12px; font-weight: 700; }
.req { color: var(--accent); }
.opt { color: var(--sub); }
.field textarea, .field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 0;
  font-family: var(--jp);
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
}
.field textarea:focus, .field input:focus { outline: none; border-color: var(--ink); }
.btn-send {
  min-height: 52px;
  padding: 0 44px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--jp);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.btn-send:hover { opacity: 0.85; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- チームをえらぶ（トップの看板の中・チームページの上部） ----------
   ページに置くのは「一覧からえらぶ」のボタン1つだけ（最初の画面の高さを増やさない）。押すと画面に重なる窓が開き、ページの中身は動かさない。
   窓の主役は一覧（男女とも30チームほど）。名前で探す欄は脇役として小さく。
   スマホは全画面、PC は中央の窓で後ろを暗くする。閉じ方は「とじる」・窓の外・Esc・端末の戻る（2026-10-05） */
.jump[hidden] { display: none; }
.jump { margin: 26px 0 0; }
.jump-label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 900; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.85); }
.jump-input {
  display: block;
  width: 100%;
  max-width: 460px;
  height: 56px;
  margin: 0;
  padding: 0 12px 0 48px;
  border: 0;
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='8.5' cy='8.5' r='6.5' fill='none' stroke='%2316181b' stroke-width='2.4'/%3E%3Cpath d='M13.3 13.3l5.5 5.5' stroke='%2316181b' stroke-width='2.6'/%3E%3C/svg%3E") no-repeat 16px center;
  color: var(--ink);
  font-family: var(--jp);
  font-size: 19px;
  font-weight: 700;
  -webkit-appearance: none;
  appearance: none;
}
.jump-input::placeholder { color: var(--mute); opacity: 1; }
/* ページに置くボタン（押すと窓が開く）。入力欄の見た目にしない：押すと打てると思わせて一覧が開くだけ、の食い違いを作らない */
.jump-open {
  display: block;
  width: 100%;
  max-width: 460px;
  height: 56px;
  margin: 0;
  padding: 0 52px 0 18px;
  border: 0;
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12'%3E%3Cpath d='M2 2l7 7 7-7' fill='none' stroke='%2316181b' stroke-width='2.8'/%3E%3C/svg%3E") no-repeat right 18px center;
  color: var(--ink);
  font-family: var(--jp);
  font-size: 19px;
  font-weight: 900;
  line-height: 56px;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.jump-open:hover { color: var(--accent); }
.jump-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* 打った文字を消す×（ブラウザ標準は青いので、墨色に置き換える） */
.jump-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  width: 36px;
  height: 36px;
  margin-right: -4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M1 1l12 12M13 1L1 13' stroke='%2316181b' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat center;
  cursor: pointer;
}
.jump-input:focus { outline: none; }
.jump-input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* 窓：PC は上に寄せた中央の窓（打って候補が減っても窓の大きさは変えない）。後ろは暗く、押すと閉じる */
.jump-dlg {
  width: min(680px, calc(100% - 48px));
  max-width: none;
  height: min(720px, calc(100% - 64px));
  max-height: none;
  margin: 32px auto auto;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
}
.jump-dlg::backdrop { background: rgba(22, 24, 27, 0.6); }
html.jump-lock { overflow: hidden; }
.jd-in { display: flex; flex-direction: column; height: 100%; }
.jd-top { flex: none; padding: 0 20px 12px; border-bottom: 1px solid var(--line); }
.jd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.jd-title { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.4; }
.jd-close {
  flex: none;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.jd-close:hover { color: var(--accent); border-color: var(--accent); }
.jd-close:focus-visible, .jump-g button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* 男子・女子の切り替えは窓の幅いっぱいに大きく。その下に名前で探す欄（脇役なので低く・細い枠） */
.jd-top .jump-g button { flex: 1; min-height: 46px; font-size: 17px; }
.jump-find { max-width: none; height: 46px; margin-top: 10px; padding-left: 42px; border: 2px solid var(--line); background-position: 13px center; font-size: 16px; }
.jump-find:focus { border-color: var(--accent); }
.jump-find:focus-visible { outline: none; }  /* 枠の色で分かるので、外側の線は重ねない */
.jd-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 28px; }
/* スマホは全画面。キーボードが出たら、見える高さに合わせる（JUMP_JS が --jd-h・--jd-t を入れる） */
@media (max-width: 640px) {
  .jump-dlg { top: var(--jd-t, 0px); bottom: auto; width: 100%; height: var(--jd-h, 100vh); margin: 0; }
  .jd-top { padding: 0 16px 10px; }
  .jd-body { padding: 0 16px 28px; }
}

.jump-g { display: flex; }
.jump-g button {
  min-width: 64px;
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-family: var(--jp);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.jump-g button:first-child { border-radius: 999px 0 0 999px; }
.jump-g button:last-child { border-radius: 0 999px 999px 0; border-left: 0; }
.jump-g button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* 候補：幅に応じて2〜5列（320px 幅でも2列）。1つ1つを押しやすい高さに */
.jump-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); column-gap: 16px; list-style: none; margin: 6px 0 0; padding: 0; }
.jump-list > li[hidden] { display: none; }
.jump-item a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.jump-item small { font-size: 12px; font-weight: 500; color: var(--sub); }
.jd-body:not(.is-q) .jump-item small { display: none; }  /* 一覧では見出し「今季は出場していないチーム」があるので、名前ごとの添え書きは探したときだけ */
.jump-sub { grid-column: 1 / -1; margin-top: 18px; font-size: 13px; font-weight: 900; color: var(--sub); line-height: 1.4; }
.jump-msg { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--sub); }
.jump-msg:empty { display: none; }
.jump-switch {
  padding: 8px 0;
  margin: -8px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.jump-switch:hover { color: var(--accent); }

.topbar .jump { flex-basis: 100%; margin: 6px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.topbar .jump[hidden] { display: none; }
.topbar .jump-label { flex: none; margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.7); letter-spacing: 0; }
.topbar .jump-open { flex: 1; min-width: 0; max-width: none; height: 44px; padding: 0 44px 0 14px; font-size: 16px; line-height: 44px; background-position: right 14px center; }

/* ---------- これまでの成績（チームページ） ---------- */
/* 年度ごとに1段：上に勝敗数と勝率、下に勝率の帯。帯は全年度同じ幅で、1マスが1試合（勝ちを左から・引き分けは除く）。
   真ん中の縦線が5割。幅がそろうので勝率を年度どうしで比べられ、マスの細かさで試合の数も見分けられる */
.hchart { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.hc-col { padding: 12px 0 18px; border-bottom: 1px solid var(--line); }
.hc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.hc-year { font-family: var(--num); font-size: 26px; font-weight: 700; line-height: 1; white-space: nowrap; }
.hc-year small { margin-left: 1px; font-family: var(--jp); font-size: 12px; font-weight: 700; color: var(--sub); }
.hc-year em { display: block; margin-top: 5px; font-style: normal; font-family: var(--jp); font-size: 12px; font-weight: 900; color: var(--accent); }
.hc-nums { display: flex; align-items: baseline; gap: 14px; margin-left: auto; white-space: nowrap; }
.hc-rec, .hc-pct { font-size: 13px; font-weight: 700; line-height: 1; color: var(--sub); }
.hc-rec b { margin: 0 1px 0 3px; font-family: var(--num); font-size: 24px; color: var(--ink); }
.hc-pct b { margin: 0 1px 0 4px; font-family: var(--num); font-size: 24px; color: var(--ink); }
.hc-col.is-now .hc-pct b { color: var(--accent); }
.hc-bar { position: relative; display: flex; gap: 2px; height: 24px; }
.hc-bar i { flex: 1; background: #b8b3a6; }
.hc-bar i.w { background: var(--accent); }
.hc-bar.is-empty { background: var(--soft); }
.hc-bar::after { content: ""; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--ink); }
.hc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 12px 0 0; font-size: 13px; color: var(--sub); }
.hc-note { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: var(--sub); }
/* いちばん狭い幅では数字を少し詰め、年度の横に収める（代替の書体でも次の段に落ちにくく） */
@media (max-width: 359px) {
  .hc-nums { gap: 8px; }
  .hc-rec b, .hc-pct b { font-size: 21px; }
  .hc-rec b { margin: 0 0 0 2px; }
}
.lg::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.lg-w::before { background: var(--accent); }
.lg-d::before { background: var(--mute); }
.lg-l::before { background: #b8b3a6; }

.hs { margin-top: 48px; }
.hs-year { margin: 0; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-family: var(--num); font-size: 34px; font-weight: 700; line-height: 1; }
.hs-year small { margin-left: 2px; font-family: var(--jp); font-size: 15px; font-weight: 900; }
.hs-year em { margin-left: 10px; font-style: normal; font-family: var(--jp); font-size: 13px; font-weight: 900; color: var(--accent); vertical-align: 4px; }
.he-list { list-style: none; margin: 0; padding: 0; }
.he { border-bottom: 1px solid var(--line); }
/* 行の中身（過去の大会は開閉の見出し、今季の大会はただの行）。どちらも同じ組み方 */
.he summary, .he-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name rec" "chips chips" "more more";
  gap: 6px 12px;
  align-items: baseline;
  padding: 16px 0 14px;
}
.he summary { list-style: none; cursor: pointer; }
.he summary::-webkit-details-marker { display: none; }
.he summary:hover .he-name { color: var(--accent); }
.he summary:focus-visible, .mg-all > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.he-name { grid-area: name; font-size: 19px; font-weight: 700; line-height: 1.35; }
.he-name small { display: block; font-size: 13px; font-weight: 700; color: var(--sub); }
.he-rec { grid-area: rec; font-size: 14px; font-weight: 700; white-space: nowrap; text-align: right; }
.he-rec b { font-family: var(--num); font-size: 24px; }
.he-finish { display: block; font-size: 14px; font-weight: 900; color: var(--accent); }
.he .form { grid-area: chips; margin: 0; }
.form-sm { gap: 4px; }
.form-sm > * { width: 26px; height: 26px; font-size: 12px; border-width: 1.5px; }
/* 「押すと開く」ことが見て分かるように、行の最後に一言置く。開閉の見出しの中ではボタンの形に */
.he-more { grid-area: more; margin-top: 4px; font-size: 14px; font-weight: 900; color: var(--ink); text-decoration: none; }
a.he-more { color: var(--sub); font-weight: 700; }
summary .he-more { justify-self: start; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; font-size: 15px; line-height: 1.3; white-space: nowrap; }
summary:hover .he-more { color: var(--accent); border-color: var(--accent); }
.m-close, details[open] > summary .m-open { display: none; }
details[open] > summary .m-close { display: inline; }

/* 開いた大会：見出しから最後の「とじる」までを、左にオレンジの縦線がある薄い面でくくる（どこからどこまでが1つの大会か分かるように）。
   面は本文の左右の余白まで広げる。文字の位置は閉じているときと同じ（開いても見出しが横にずれない） */
.past-ev[open], .mg-all[open] { margin-left: -20px; margin-right: -20px; border-left: 6px solid var(--accent); background: var(--soft); }
.past-ev[open] > summary { padding-left: 14px; padding-right: 20px; }
.fold-close {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 24px 0 0;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  cursor: pointer;
}
.fold-close[hidden] { display: none; }
.fold-close:hover { color: var(--accent); border-color: var(--accent); }
.fold-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.he-lead { margin: 30px 0 0; font-size: 15px; color: var(--sub); }
.he-legend .form { margin: 0; }
.he-legend { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 13px; color: var(--sub); }

/* ---------- 開いた大会の試合 ----------
   段の大きさは 年度 ＞ 大会 ＞ 日付 ＞ 試合。中の日付は大会名より小さく、試合は白い札に載せて1試合ずつ区切る */
.pe-body { padding: 0 20px 24px 14px; }
.pe-body .day { margin-top: 22px; }
.pe-body .day:first-child { margin-top: 6px; }
.pe-body .day-head { font-size: 16px; }
.pe-body .day-wd { font-size: 13px; }
.pe-body .day-venue { font-size: 14px; line-height: 1.5; }
.pe-body .game { margin: 8px -8px 0; padding: 14px 12px 16px; border: 0; background: #fff; }
.pe-body .day .game:first-of-type { border-top: 0; }
.pe-body .ev-more { margin-top: 22px; }
.pe-body .source { margin-top: 20px; }
.g-round { font-weight: 700; color: var(--ink); }

/* ---------- 大会ごとの結果（トップ）：年度の下に大会の行。押すと大会ページへ ---------- */
.archive { margin-top: 64px; }
.ar-season { margin-top: 26px; }
.ar-list { list-style: none; margin: 0; padding: 0; }
.ar-list > li { border-bottom: 1px solid var(--line); }
.ar-row { display: grid; grid-template-columns: 1fr 20px; grid-template-areas: "name arrow" "win arrow"; column-gap: 12px; align-items: center; padding: 14px 0 4px; text-decoration: none; color: inherit; }
.ar-row::after { content: "›"; grid-area: arrow; font-size: 26px; line-height: 1; color: var(--mute); }
.ar-row:hover { color: inherit; }
.ar-row:hover .ar-name { color: var(--accent); }
.ar-name { grid-area: name; font-size: 19px; font-weight: 700; line-height: 1.4; }
.ar-name small { display: block; font-size: 13px; font-weight: 700; color: var(--sub); }
.ar-win { grid-area: win; font-size: 14px; font-weight: 700; color: var(--accent); line-height: 1.5; }
.ar-src { margin: 0; padding: 0 0 12px; font-size: 12px; line-height: 1.6; color: var(--mute); }
.ar-src a { color: var(--sub); }

/* 今季の大会（トップ）：結果が出たらリーグ表より上に */
.now-ev .h-section { margin-top: 40px; }
.ev-card { display: grid; gap: 2px; margin-top: 14px; padding: 14px 16px; border: 2px solid var(--ink); text-decoration: none; color: inherit; }
.ev-card:hover { color: inherit; }
.ev-card:hover .ev-card-go { color: var(--accent); }
.ev-card-name { font-size: 24px; font-weight: 900; line-height: 1.3; }
.ev-card-name small { display: block; font-size: 13px; font-weight: 700; color: var(--sub); }
.ev-card-asof { font-size: 15px; font-weight: 700; }
.ev-card-win { font-size: 15px; font-weight: 900; color: var(--accent); }
.ev-card-go { margin-top: 4px; font-size: 15px; font-weight: 900; }
.ev-card-go::after { content: " ›"; }

/* 大会ページ・チームページから大会ページへの一言 */
.ev-more { margin: 14px 0 0; font-size: 15px; font-weight: 700; }
.ev-more a { display: inline-block; padding: 8px 0; margin: -8px 0; }
.ev-more a::after { content: " ›"; }

/* ---------- サイト全体の入口（sports-game.jp/）：区画ごとに、トップへの札・今季の大会・今季のチーム ---------- */
.root-sec { margin-top: 40px; }
.root-sec + .root-sec { margin-top: 64px; }
.root-sec .ev-card { margin-top: 18px; }
.root-h { margin: 30px 0 0; font-size: 19px; font-weight: 900; line-height: 1.4; }
.root-h small { margin-left: 8px; font-size: 14px; font-weight: 700; color: var(--sub); }
.root-evs, .root-teams { list-style: none; margin: 6px 0 0; padding: 0; }
.root-evs a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; text-decoration: none; }
.root-evs a::after { content: " ›"; }
/* チーム：幅に応じて2〜5列（チームをえらぶ窓と同じ組み方） */
.root-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); column-gap: 16px; }
.root-teams a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* ---------- 大会ごとのページ ---------- */
.event-hero { padding: 24px 0 8px; }
/* 大会名は「シードチャレンジ」（8文字）が 320px 幅でも1行に収まる大きさ */
.ev-name { margin: 4px 0 0; font-size: clamp(32px, 9.4vw, 60px); font-weight: 900; line-height: 1.12; font-feature-settings: "palt" 1; word-break: break-word; }
.ev-name small { display: block; margin-bottom: 4px; font-family: var(--num); font-size: 26px; font-weight: 700; letter-spacing: 0; }
.ev-title { margin: 10px 0 0; font-size: 15px; font-weight: 700; line-height: 1.6; }
.event-hero .record-sub { margin-top: 6px; }
.ev-body > .hint { margin-top: 12px; }
.mg-h { margin: 36px 0 0; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 22px; font-weight: 900; line-height: 1.35; }
.mg-day { margin: 14px 0 0; font-size: 14px; font-weight: 900; color: var(--sub); }
.mg-list { list-style: none; margin: 4px 0 0; padding: 0; }
/* 1試合1行：左のチーム（右寄せ）・得点・右のチーム。勝った側を太く墨色に */
.mg { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mg-t { font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--sub); text-decoration: none; overflow-wrap: anywhere; padding-block: 6px; margin-block: -6px; }
.mg-t:hover { text-decoration: underline; }
.mg-t.w { font-weight: 900; color: var(--ink); }
.mg-t1 { text-align: right; }
.mg-s { font-family: var(--num); font-size: 24px; font-weight: 600; line-height: 1; white-space: nowrap; color: var(--mute); }
.mg-s b { font-weight: 600; }
.mg-s b.w { font-weight: 700; color: var(--ink); }
.mg-s i { margin: 0 4px; font-style: normal; }
.mg-sched { font-family: var(--jp); font-size: 13px; font-weight: 700; }
.mg-tag { grid-column: 1 / -1; text-align: center; font-size: 12px; font-weight: 700; color: var(--sub); }
.mg.x .mg-t.w, .mg.x .mg-s b.w { color: var(--sub); }
.mg-all { margin-top: 10px; }
.mg-all > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 0; font-size: 16px; font-weight: 900; list-style: none; cursor: pointer; }
.mg-all > summary::-webkit-details-marker { display: none; }
.mg-all > summary:hover .mg-all-name { color: var(--accent); }
.mg-all .he-more { margin-top: 0; }
.mg-all[open] > summary { padding-left: 14px; padding-right: 20px; }
/* 開いた全試合：日付ごとの試合を白い面に載せる */
.mg-body { padding: 0 20px 20px 14px; }
.mg-body .mg-day { margin-top: 16px; }
.mg-body .mg-day:first-child { margin-top: 4px; }
.mg-body .mg-list { margin: 4px -8px 0; padding: 0 12px; background: #fff; }
.mg-body .mg:last-child { border-bottom: 0; }
.pd-list { list-style: none; margin: 0; padding: 0; }
.pd-list > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pd-rank { flex: none; min-width: 4.5em; font-size: 15px; font-weight: 900; color: var(--accent); }
.pd-team { font-size: 20px; font-weight: 900; text-decoration: none; padding-block: 6px; margin-block: -6px; }
.pd-team:hover { text-decoration: underline; }
.pd-off, .pd-adv { font-size: 13px; font-weight: 700; color: var(--sub); }
.pd-adv { flex-basis: 100%; padding-left: calc(4.5em + 14px); }
.podium .hint { margin-top: 8px; }

/* ---------- 出典・フッター ---------- */
.source { margin: 48px 0 0; font-size: 14px; color: var(--sub); }
.source h2, .source .source-head { margin: 0 0 4px; font-size: 16px; font-weight: 900; color: var(--ink); }
.source p { margin: 0; }
.source p + p, .source ul + p { margin-top: 8px; }
.source ul { margin: 4px 0 0; padding-left: 1.2em; }

.site-foot { margin-top: 56px; border-top: 1px solid var(--line); padding: 26px 0 44px; background: var(--soft); font-size: 14px; color: var(--sub); }
.site-foot p { margin: 0 0 10px; }
.site-foot .operator { margin-top: 22px; font-size: 12px; }

@media (min-width: 720px) {
  body { font-size: 18px; }
  .masthead { padding: 56px 0 50px; }
  .masthead::before { right: -60px; top: -90px; width: 460px; height: 460px; }
  .secnav { gap: 30px; }
  .secnav a { font-size: 16px; }
  .sec .h-section { font-size: 34px; }
  .hc-bar { height: 28px; }
}
