@charset "UTF-8";
/* ==========================================================================
   SOCCERPEDIA — 共通スタイルシート
   構成はWikipedia（Vector 2022）踏襲、配色はサッカー独自（ピッチグリーン＋ゴールド）
   ========================================================================== */

/* ---------- 1. デザイントークン ---------- */
:root {
  /* ブランド */
  --pitch-900: #06301c;
  --pitch-800: #0a4429;
  --pitch-700: #0d5c37;
  --pitch-600: #127a49;
  --pitch-500: #1a9a5c;
  --pitch-050: #eaf5ee;
  --pitch-025: #f4faf6;
  --gold-600: #b8860b;
  --gold-500: #d4a017;
  --gold-100: #fdf6e3;

  /* 面 */
  --bg: #ffffff;
  --bg-subtle: #f8f9fa;
  --bg-sunken: #f1f3f4;
  --surface: #ffffff;
  --border: #dcdfe3;
  --border-strong: #c2c8ce;

  /* 文字 */
  --text: #1b1d1f;
  --text-muted: #5a6169;
  --text-faint: #7d858d;
  --link: #0b5ea8;
  --link-visited: #6b4bab;
  --link-hover: #0a4f8c;

  /* 意味色 */
  --up: #14804a;
  --down: #c8322b;
  --flat: #8b9096;

  /* 寸法 */
  --toc-w: 220px;
  --rail-w: 320px;
  --content-max: 1600px;
  --radius: 6px;
  --radius-sm: 3px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, .08);

  /* 文字組み */
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
    "Noto Sans JP", Meiryo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP",
    "Times New Roman", serif;
  --font-num: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16181a;
    --bg-subtle: #1d2023;
    --bg-sunken: #22262a;
    --surface: #1d2023;
    --border: #333a40;
    --border-strong: #454e56;
    --text: #e6e8ea;
    --text-muted: #a5adb5;
    --text-faint: #868e96;
    --link: #6fb2f0;
    --link-visited: #b39ae0;
    --link-hover: #92c7f7;
    --pitch-050: #12291d;
    --pitch-025: #0f2117;
    --gold-100: #2c2411;
  }
}
:root[data-theme="dark"] {
  --bg: #16181a;
  --bg-subtle: #1d2023;
  --bg-sunken: #22262a;
  --surface: #1d2023;
  --border: #333a40;
  --border-strong: #454e56;
  --text: #e6e8ea;
  --text-muted: #a5adb5;
  --text-faint: #868e96;
  --link: #6fb2f0;
  --link-visited: #b39ae0;
  --link-hover: #92c7f7;
  --pitch-050: #12291d;
  --pitch-025: #0f2117;
  --gold-100: #2c2411;
}

/* ---------- 2. リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h, 61px) + 56px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:visited { color: var(--link-visited); }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--pitch-500); outline-offset: 2px; border-radius: var(--radius-sm);
}
table { border-collapse: collapse; }
button { font: inherit; color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, var(--pitch-800), var(--pitch-700));
  border-bottom: 3px solid var(--gold-500);
}
.header-inner {
  max-width: var(--content-max); margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 14px;
}
.hamburger {
  display: none; flex: 0 0 auto; width: 36px; height: 36px;
  background: none; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius-sm);
  color: #fff; cursor: pointer; font-size: 17px; line-height: 1;
}
.hamburger:hover { background: rgba(255, 255, 255, .12); }

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff, #dfe4e8 62%, #c3cad0);
  box-shadow: inset 0 0 0 2px var(--pitch-900), var(--shadow-sm);
  font-size: 22px; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-size: 19px; font-weight: 700; letter-spacing: .04em; color: #fff;
  font-family: var(--font-serif);
}
.brand-tag { font-size: 10.5px; color: rgba(255, 255, 255, .72); letter-spacing: .1em; }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.header-link {
  color: rgba(255, 255, 255, .88); font-size: 13px; padding: 6px 9px; border-radius: var(--radius-sm);
}
.header-link:hover { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }
.theme-toggle {
  width: 34px; height: 34px; border-radius: var(--radius-sm); cursor: pointer;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24);
  color: #fff; font-size: 15px; line-height: 1;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .2); }

/* ---------- 4. 検索（ヘッダー内 / ヒーロー内共通） ---------- */
.search { position: relative; flex: 1 1 auto; max-width: 620px; }
.search-form { display: flex; }
.search-input {
  flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px 0 34px;
  font-size: 14px; font-family: inherit; color: var(--text);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d858d' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") no-repeat 9px center / 16px;
  border: 1px solid var(--border-strong); border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.search-input::placeholder { color: var(--text-faint); }
.search-btn {
  flex: 0 0 auto; height: 38px; padding: 0 18px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--pitch-900);
  background: linear-gradient(180deg, var(--gold-500), var(--gold-600));
  border: 1px solid var(--gold-600); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.search-btn:hover { filter: brightness(1.08); }

.suggest {
  position: absolute; z-index: 200; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  max-height: 380px; overflow-y: auto; padding: 4px;
}
.suggest[hidden] { display: none !important; }
.suggest-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 9px;
  border-radius: var(--radius-sm); cursor: pointer; color: var(--text);
}
.suggest-item:hover, .suggest-item[aria-selected="true"] { background: var(--pitch-050); text-decoration: none; }
.suggest-item .flag--sym { font-size: 17px; }
.suggest-main { min-width: 0; }
.suggest-name { font-weight: 700; font-size: 14px; }
.suggest-meta { font-size: 11.5px; color: var(--text-muted); }
.suggest-empty { padding: 14px 10px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* 2カラム版（目次＋本文。右カラム無し）：知識記事など */
.layout--article.layout--norail { grid-template-columns: var(--toc-w) minmax(0, 1fr); max-width: 1180px; }
.layout--article.layout--norail .col-head, .layout--article.layout--norail .col-main { grid-column: 2; }
.layout--norail .article img.figure-img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.figure--wide { margin: 14px 0 20px; }
/* 知識記事の図版：右（左）回り込みの小図、複数枚の横並び、FAQ */
.figure--right, .figure--left { width: min(44%, 380px); margin: 6px 0 14px 22px; float: right; background: var(--surface); }
.figure--left { float: left; margin: 6px 22px 14px 0; }
.figure--right .figure-media, .figure--left .figure-media, .figure--cell .figure-media { padding: 0; background: none; border: 0; aspect-ratio: auto; display: block; }
.figure--right .figure-img, .figure--left .figure-img, .figure--cell .figure-img { display: block; width: 100%; height: auto; border-radius: 0; }
.figure--right figcaption, .figure--left figcaption, .figure--cell figcaption { padding: 7px 9px; font-size: 11.5px; line-height: 1.5; }
.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 14px 0 20px; clear: both; }
.figure-row .figure { margin: 0; }
.figure-row--tight { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.layout--norail .article h2, .layout--norail .article h3 { clear: both; }
.layout--norail .article .h2-clear { clear: both; }
.article .purpose { margin: 0 0 12px; padding: 9px 12px; border-left: 3px solid var(--pitch-600); background: var(--bg-sunken); color: var(--text-muted); font-size: 13px; border-radius: 0 var(--radius) var(--radius) 0; }
.article .callout { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.article .callout h4 { margin: 0 0 6px; font-size: 14px; }
.article .callout ul { margin: 0; }
.faq-list { display: grid; gap: 8px; }
.faq { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 0; }
.faq summary { cursor: pointer; padding: 10px 14px; font-weight: 600; list-style: none; position: relative; padding-right: 36px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 12px; top: 8px; color: var(--pitch-600); font-weight: 700; }
.faq[open] summary::after { content: "－"; }
.faq-a { padding: 0 14px 12px; color: var(--text); }
.faq-a p { margin: 0 0 8px; }
.article table.kt { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 13.5px; }
.article table.kt th, .article table.kt td { border: 1px solid var(--border); padding: 7px 9px; text-align: left; vertical-align: top; }
.article table.kt th { background: var(--bg-sunken); color: var(--text, #1b1d1f); }   /* 2026-10-18 p141：見出しの文字が白く見えなかった */
.article table.kt td.c { text-align: center; white-space: nowrap; font-weight: 700; }
.pos-badge { display: inline-block; min-width: 2.6em; padding: 1px 7px; border-radius: 4px; color: #fff; font-weight: 700; font-size: 12px; text-align: center; margin-right: 6px; }
.pos-gk { background: #2f6db3; } .pos-df { background: #3d8a3e; } .pos-mf { background: #e08a1e; } .pos-fw { background: #c43a2f; }
@media (max-width: 900px) {
  .figure--right, .figure--left { float: none; width: 100%; margin: 12px 0 16px; }
}
.figure--wide .figure-media { padding: 0; background: none; border: 0; aspect-ratio: auto; display: block; }
.figure--wide .figure-img { display: block; width: 100%; height: auto; border-radius: 0; }
.figure--wide figcaption { padding: 8px 2px; }
@media (max-width: 900px) {
  .layout--article.layout--norail { grid-template-columns: minmax(0, 1fr); }
  .layout--article.layout--norail .col-head, .layout--article.layout--norail .col-main { grid-column: 1; }
}

/* ---------- 4b. セクションナビ（トップページ：見出しへの横並びリンク。ヘッダー直下に固定） ---------- */
.section-nav {
  position: sticky; top: var(--header-h, 61px); z-index: 90;
  background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.section-nav-inner {
  max-width: var(--content-max); margin: 0 auto; padding: 0 16px;
  display: flex; justify-content: center; gap: 4px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav-link {
  flex: 0 0 auto; padding: 11px 16px 9px; font-size: 13.5px; font-weight: 700; white-space: nowrap;
  color: var(--text-muted); border-bottom: 3px solid transparent; line-height: 1.4;
}
.section-nav-link:hover { color: var(--text); text-decoration: none; background: var(--bg-subtle); }
.section-nav-link.is-current { color: var(--pitch-700); border-bottom-color: var(--pitch-600); }
@media (max-width: 900px) {
  .section-nav-inner { justify-content: flex-start; padding: 0 8px; }
  .section-nav-link { padding: 10px 12px 8px; font-size: 12.5px; }
}

/* ---------- 5. レイアウト ---------- */
.layout {
  max-width: var(--content-max); margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: var(--toc-w) minmax(0, 1fr) var(--rail-w);
  gap: 28px; align-items: start;
}
.layout--wide { grid-template-columns: var(--toc-w) minmax(0, 1fr); }
.layout--plain { display: block; max-width: 1280px; }

.col-toc { position: sticky; top: 74px; max-height: calc(100vh - 96px); overflow-y: auto; padding: 18px 0 30px; }
.col-main { min-width: 0; padding: 0 0 48px; }
.col-rail { padding: 18px 0 48px; }
.col-head { min-width: 0; padding: 18px 0 0; }

/* 3カラム時の明示配置：見出しは中央カラムの1行目 */
@media (min-width: 1081px) {
  .layout--article {
    grid-template-columns: var(--toc-w) minmax(0, 1fr) var(--rail-w);
    grid-template-rows: auto 1fr;
  }
  .layout--article > .col-toc  { grid-column: 1; grid-row: 1 / span 2; }
  .layout--article > .col-head { grid-column: 2; grid-row: 1; }
  .layout--article > .col-main { grid-column: 2; grid-row: 2; }
  .layout--article > .col-rail { grid-column: 3; grid-row: 1 / span 2; }
  /* 2カラム版は右カラムの列を作らない */
  .layout--article.layout--norail { grid-template-columns: var(--toc-w) minmax(0, 1fr); }
}

/* ---------- 6. 目次 ---------- */
.toc-head {
  display: flex; align-items: center; gap: 8px; padding-bottom: 6px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px;
}
.toc-toggle {
  margin-left: auto; padding: 2px 8px; font-size: 11.5px; cursor: pointer;
  background: var(--bg-subtle); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.toc-toggle:hover { background: var(--bg-sunken); }
.toc-list, .toc-list ul { list-style: none; margin: 0; padding: 0; }
.toc-list ul { margin-left: 12px; }
.toc-list a {
  display: block; padding: 3.5px 8px 3.5px 10px; font-size: 13px; line-height: 1.45;
  border-left: 3px solid transparent; color: var(--link);
}
.toc-list a:hover { background: var(--pitch-050); text-decoration: none; }
.toc-list a.is-current {
  border-left-color: var(--pitch-600); background: var(--pitch-050);
  font-weight: 700; color: var(--text);
}
.toc-list > li > ul > li > a { font-size: 12.5px; color: var(--text-muted); }
.toc-list.is-collapsed { display: none; }

/* ---------- 7. 本文タイポグラフィ ---------- */
.page-title {
  margin: 4px 0 2px; font-family: var(--font-serif); font-weight: 400;
  font-size: 32px; line-height: 1.3; letter-spacing: .01em;
}
.page-subtitle { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); }
.title-rule { height: 1px; margin: 0 0 16px; background: var(--border); border: 0; }

.article h2 {
  margin: 34px 0 12px; padding-bottom: 6px; font-family: var(--font-serif);
  font-weight: 400; font-size: 24px; line-height: 1.35;
  border-bottom: 1px solid var(--border);
}
.article h2 .h-accent { display: inline-block; width: 4px; height: 20px; margin-right: 9px;
  vertical-align: -2px; background: var(--pitch-600); border-radius: 2px; }
.article h3 { margin: 24px 0 8px; font-size: 18px; font-weight: 700; }
.article h4 { margin: 18px 0 6px; font-size: 15.5px; font-weight: 700; color: var(--text-muted); }
.article p { margin: 0 0 13px; }
.article ul, .article ol { margin: 0 0 13px; padding-left: 1.6em; }
.article li { margin-bottom: 3px; }
.lead { font-size: 15.5px; }
.lead strong { font-weight: 700; }

.ref {
  font-size: 11px; vertical-align: super; line-height: 0;
  padding: 0 1px; color: var(--link);
}
.ref:hover { text-decoration: underline; }
.note-box {
  margin: 0 0 18px; padding: 11px 14px; font-size: 13.5px;
  background: var(--gold-100); border-left: 4px solid var(--gold-500); border-radius: 0 var(--radius) var(--radius) 0;
}
.hatnote {
  margin: 0 0 14px; padding: 8px 12px; font-size: 13px; color: var(--text-muted);
  background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius);
}
.data-asof { font-size: 12px; color: var(--text-faint); margin: 0 0 8px; }

/* ---------- 8. 表（共通） ---------- */
.table-scroll { overflow-x: auto; margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; min-width: 480px; font-size: 13px; background: var(--surface); }
.tbl caption {
  text-align: left; padding: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--text-muted);
}
.tbl th, .tbl td { padding: 6px 9px; border: 1px solid var(--border); text-align: left; }
.tbl thead th {
  background: var(--pitch-700); color: #fff; font-weight: 700; white-space: nowrap;
  border-color: var(--pitch-800); position: relative;
}
.tbl tbody tr:nth-child(even) { background: var(--bg-subtle); }
.tbl tbody tr:hover { background: var(--pitch-050); }
.tbl .num { text-align: right; font-family: var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .center { text-align: center; }
.tbl .rowhead { font-weight: 700; background: var(--bg-subtle); white-space: nowrap; }
.tbl tr.is-total { font-weight: 700; background: var(--pitch-050) !important; }
.tbl tr.is-total td { border-top: 2px solid var(--pitch-600); }
.tbl--compact th, .tbl--compact td { padding: 4px 7px; font-size: 12.5px; }
.tbl--sticky thead th { position: sticky; top: 0; z-index: 2; }

.rank-badge {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-family: var(--font-num); font-size: 12px; font-weight: 700;
  background: var(--bg-sunken); color: var(--text-muted);
}
.rank-badge.r1 { background: linear-gradient(180deg, #f2d375, #d4a017); color: #3d2c00; }
.rank-badge.r2 { background: linear-gradient(180deg, #dfe3e6, #b6bcc2); color: #2f3438; }
.rank-badge.r3 { background: linear-gradient(180deg, #e2ab7c, #bd7f4c); color: #3a2210; }

/* 順位変動：上昇＝青↑、下降＝赤↓、変動なし＝黒－ */
.rank-cell { white-space: nowrap; }
.rank-mv {
  display: inline-block; width: 16px; margin-left: 4px; text-align: center;
  font-family: var(--font-num); font-size: 15px; font-weight: 800; line-height: 1; vertical-align: middle;
}
.rank-mv--flat { font-size: 12px; }
.rank-mv--up { color: #1a66d6; }
.rank-mv--down { color: var(--down); }
.rank-mv--flat { color: var(--text); }
:root[data-theme="dark"] .rank-mv--up { color: #6fb2f0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rank-mv--up { color: #6fb2f0; } }

.delta { font-family: var(--font-num); font-size: 12px; font-weight: 700; white-space: nowrap; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat { color: var(--flat); }

/* 国旗：自サーバーのSVG（flag-icons, MIT）。絵文字は環境依存で表示がブレるため使わない */
/* 輪郭は box-shadow で付ける。border だと 20x15px に 2px 足されて全ページのレイアウトがずれる。
   以前は白地の旗だけ flag--light クラスで輪郭を強めていたが、対象国の手動リストに
   漏れが多かった（韓国・フランス・オランダ・アルゼンチン・アメリカ・チェコ等）ため、
   全国旗へ一律で強い輪郭を付ける方式に変更した。flag--light は廃止。 */
img.flag {
  display: inline-block; width: 20px; height: 15px; margin-right: 6px;
  vertical-align: -2px; border-radius: 2px; object-fit: cover;
  box-shadow: 0 0 0 1px var(--border-strong);
}
.flag--sym { display: inline-block; margin-right: 5px; font-size: 15px; line-height: 1; vertical-align: -1px; }
.suggest-item img.flag { width: 22px; height: 16px; margin-right: 0; flex: 0 0 auto; }
.crest {
  flex: 0 0 auto;
  display: inline-grid; place-items: center; width: 27px; height: 21px; margin-right: 7px;
  font-size: 9.5px; font-weight: 700; color: #fff; border-radius: 3px; vertical-align: -4px;
  letter-spacing: 0; font-family: var(--font-num); overflow: hidden;
}
.entity { display: flex; align-items: center; gap: 2px; }

/* ---------- 9. インフォボックス（選手ページ右） ---------- */
.infobox {
  width: 100%; margin: 0 0 20px; font-size: 12.5px; line-height: 1.6;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.infobox-title {
  padding: 9px 12px; text-align: center; font-size: 15.5px; font-weight: 700;
  color: #fff; background: linear-gradient(180deg, var(--pitch-700), var(--pitch-800));
}
.infobox-portrait { padding: 10px 10px 6px; text-align: center; background: var(--bg-subtle); }
.portrait-frame {
  display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--pitch-600), var(--pitch-900));
  display: grid; place-items: center; color: rgba(255, 255, 255, .9); overflow: hidden;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-ph { text-align: center; font-size: 11.5px; line-height: 1.6; padding: 12px; }
.portrait-ph .ph-icon { display: block; font-size: 34px; margin-bottom: 6px; }
.infobox-caption { padding: 6px 4px 2px; font-size: 11.5px; color: var(--text-muted); }
.infobox table { width: 100%; }
/* 見出し行は tbody th より詳細度を高く保つ（クラス2つ） */
.infobox .infobox-section th {
  padding: 5px 10px; text-align: center; font-size: 12.5px; font-weight: 700;
  width: auto; color: #fff; background: var(--pitch-600); border-top: 0;
}
.infobox tbody th {
  width: 34%; padding: 5px 10px; text-align: left; vertical-align: top;
  font-weight: 700; color: var(--text-muted); background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}
.infobox tbody td { padding: 5px 10px; vertical-align: top; border-top: 1px solid var(--border); }
.infobox td.num, .infobox th.num { text-align: right; font-family: var(--font-num); }
.infobox .stat-td { white-space: nowrap; }
.infobox .goals { color: var(--text-muted); }
.infobox-foot {
  padding: 7px 11px; font-size: 11px; color: var(--text-muted); background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}
.infobox-foot ol { margin: 0; padding-left: 1.4em; }
.disclosure summary {
  padding: 5px 10px; font-size: 12.5px; font-weight: 700; color: #fff;
  background: var(--pitch-600); cursor: pointer; text-align: center; list-style: none;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "［表示］"; font-weight: 400; font-size: 11px; opacity: .85; }
.disclosure[open] summary::after { content: "［隠す］"; }

/* ---------- 10. カード / セクション ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 20px; overflow: hidden;
}
.card-head {
  display: flex; align-items: center; gap: 8px; padding: 9px 13px;
  background: var(--bg-subtle); border-bottom: 1px solid var(--border);
}
.card-title { margin: 0; font-size: 14.5px; font-weight: 700; }
.card-title .dot {
  display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%;
  background: var(--pitch-600); vertical-align: 1px;
}
.card-more { margin-left: auto; font-size: 12px; }
.card-body { padding: 13px; }
.card-body--flush { padding: 0; }
.card-body--flush .table-scroll { margin: 0; }
.card-body--flush .tbl th:first-child, .card-body--flush .tbl td:first-child { border-left: 0; }
.card-body--flush .tbl th:last-child, .card-body--flush .tbl td:last-child { border-right: 0; }

.section-title {
  display: flex; align-items: center; gap: 10px; margin: 34px 0 14px;
  font-family: var(--font-serif); font-weight: 400; font-size: 25px;
}
.section-title::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border); }
.section-title .badge {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 2px 8px; border-radius: 999px; color: var(--pitch-800); background: var(--pitch-050);
  border: 1px solid var(--pitch-600);
}

/* ---------- 11. ヒーロー（トップページ） ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 400px at 78% -10%, rgba(212, 160, 23, .28), transparent 60%),
    linear-gradient(160deg, var(--pitch-800) 0%, var(--pitch-900) 58%, #041a10 100%);
  border-bottom: 1px solid var(--pitch-900);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px);
  background-size: 68px 68px, 68px 68px;
}
.hero-inner {
  position: relative; z-index: 1; max-width: 1000px; margin: 0 auto;
  padding: 40px 16px 34px; text-align: center;
}
.hero h1 {
  margin: 0 0 8px; font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(23px, 4.6vw, 36px); line-height: 1.32; letter-spacing: .01em;
}
.hero h1 em { font-style: normal; color: var(--gold-500); }
.hero-lead {
  margin: 0 auto 20px; max-width: 680px; font-size: 13.5px; line-height: 1.85;
  color: rgba(255, 255, 255, .82);
}
.hero .search { max-width: 660px; margin: 0 auto; }
.hero-chips { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.chip {
  padding: 4px 11px; font-size: 12px; border-radius: 999px; color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
}
.chip:visited { color: rgba(255, 255, 255, .9); }        /* 暗い背景で紫の訪問済み色は読めないため、未訪問と同じ白 */
.chip:hover, .chip:visited:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--pitch-900); text-decoration: none; }
.chip[title="準備中"] { color: rgba(255, 255, 255, .6); border-style: dashed; }
/* トップ：本文カラム最初の見出しは上余白なし（右カラムの「アクセスの多い選手」と高さをそろえる） */
.top-grid > div > .section-title:first-of-type, .top-grid .ad-unit + .section-title { margin-top: 0; }
.top-grid .section-title#leagues { min-height: 40px; }

/* ---------- 12. タブ ---------- */
/* リーグタブ：1行・全タブ等幅。列数に関係なく幅を均等に割り、横幅は全リーグで同一になる */
.tabs-league {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px;
  margin: 0 0 -1px; border-bottom: 1px solid var(--border);
}
.tab-league {
  min-width: 0; height: 62px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 6px 3px 5px; font-size: 11px; font-weight: 700; line-height: 1.2;
  color: var(--text-muted); cursor: pointer; text-align: center;
  background: var(--bg-subtle); border: 1px solid var(--border); border-bottom-color: transparent;
  border-radius: var(--radius) var(--radius) 0 0;
}
.tab-league:hover { color: var(--text); background: var(--bg-sunken); text-decoration: none; }
.tab-league[aria-selected="true"] {
  color: var(--text); background: var(--surface);
  border-top: 3px solid var(--pitch-600); padding-top: 4px;
}
.tab-league img.flag { width: 22px; height: 16px; margin: 0; }
.tab-league .comp-badge { height: 16px !important; font-size: 9px !important; }
.tab-league-name { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; }
/* グループ区切り：5大リーグと主要リーグの間に細い縦線 */
.tab-league.is-group-start { position: relative; }
.tab-league.is-group-start::before {
  content: ""; position: absolute; left: -2px; top: 10px; bottom: 6px; width: 1px;
  background: var(--border-strong);
}
/* スマホ：固定幅で横スクロール */
@media (max-width: 900px) {
  .tabs-league { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs-league::-webkit-scrollbar { display: none; }
  .tab-league { flex: 0 0 96px; width: 96px; height: 58px; }
}

/* 主要大会タブ：ロゴ（商標）を使わず、主催連盟の略称バッジをテキストで表示 */
.comp-badge {
  display: inline-grid; place-items: center; min-width: 22px; padding: 0 6px;
  border-radius: 4px; color: #fff; font-weight: 800; letter-spacing: .02em; line-height: 1;
  font-family: var(--font-num, inherit); vertical-align: middle;
}
.data-asof .comp-badge { margin-right: 4px; }
/* 大会ステータス（開幕前／開催中／終了） */
.status-pill {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; line-height: 1.5; vertical-align: middle;
}
/* 予選段階（グループ／地区／リーグフェーズ）の順位表。
   グループが複数でも1列に積む（2列にすると列が欠けるため。リーグ速報と同じ全列を出す） */
.group-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.group-block + .group-block { border-top: 1px solid var(--border); }
.group-title {
  margin: 12px 13px 4px; font-size: 13px; font-weight: 700; color: var(--text);
  padding-left: 9px; border-left: 3px solid var(--pitch-600); line-height: 1.4;
}

/* 決勝トーナメント（ブラケット）：grid。ラウンド r のカードは前ラウンドの2カードの中央に来る */
.bracket {
  display: grid; grid-auto-rows: minmax(0, auto); column-gap: 14px;
  padding: 10px 13px 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; align-items: center;
}
.bracket-head { margin: 6px 0 8px; align-self: end; }
.bracket-head--extra { border-left-color: var(--gold-500); }
.bracket-count {
  display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; color: var(--text-muted); background: var(--bg-sunken);
}
.bracket-cell { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 4px 0; }
.bracket-cell--extra .tie { border-color: var(--gold-500); }
.tie {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  overflow: hidden; font-size: 12.5px;
}
.tie--tbd { border-style: dashed; color: var(--text-faint); }
.tie-row { display: flex; align-items: center; gap: 4px; padding: 5px 8px; min-width: 0; }
.tie-row + .tie-row { border-top: 1px solid var(--border); }
.tie-row .crest { flex: 0 0 auto; }
.tie-team { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tie-row.is-winner .tie-team { font-weight: 700; }
.tie-row.is-winner { background: var(--pitch-025); }
.tie-leg {
  flex: 0 0 auto; min-width: 20px; text-align: center; font-family: var(--font-num);
  color: var(--text-muted); font-size: 12px;
}
.tie-leg--date { min-width: 0; font-size: 10.5px; white-space: nowrap; }
.tie-agg {
  flex: 0 0 auto; min-width: 22px; margin-left: 4px; padding: 0 5px; border-radius: 3px; text-align: center;
  font-family: var(--font-num); font-weight: 700; background: var(--bg-sunken);
}
.tie-note { padding: 2px 8px 4px; font-size: 10.5px; color: var(--text-faint); border-top: 1px dashed var(--border); }

/* 掲載優先度（★） */
.stars { color: var(--gold-500); font-size: 11px; letter-spacing: .05em; margin-left: 6px; vertical-align: middle; }
/* 3階層目のサブタブ（W杯の大陸別予選） */
.tabs-sub--nested { background: var(--bg-subtle); gap: 6px; flex-wrap: wrap; overflow: visible; }
.tab-sub--text { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.tab-sub--small { font-size: 12px; padding-top: 8px; padding-bottom: 7px; display: inline-flex; align-items: center; gap: 5px; }

/* スポンサー画像バナー（ads.py kind=image）。画像は枠幅に合わせて縮小、比率は維持 */
.ad-unit .ad-sponsor { display: block; text-align: center; line-height: 0; background: var(--surface); }
.ad-unit .ad-sponsor img { display: inline-block; max-width: 100%; height: auto; border-radius: var(--radius); }
.ad-unit .ad-sponsor:hover img { filter: brightness(1.04); }
.ad-unit .ad-raw { text-align: center; line-height: 0; }
.ad-unit .ad-raw img { max-width: 100%; height: auto; }

/* 大会情報テーブル */
.tbl--info th { text-align: left; background: var(--bg-subtle); color: var(--text-muted); font-weight: 600; }
.tbl--info td { line-height: 1.6; }

/* 折りたたみセクション（クラブ主要大会・代表主要大会）：見出しはそのまま、右端に開閉ボタンだけ足す */
.section-title--toggle { cursor: pointer; user-select: none; }
.section-title--toggle:hover .section-title-text { color: var(--pitch-700); }
.section-toggle {
  flex: 0 0 auto; order: 1; margin-left: 4px; padding: 3px 10px; cursor: pointer;   /* order:1 で罫線（::after）の右に置く */
  font-family: var(--font-sans); font-size: 12px; font-weight: 700; line-height: 1.5;
  color: var(--pitch-700); background: var(--pitch-050); border: 1px solid var(--pitch-600);
  border-radius: 999px; white-space: nowrap;
}
.section-toggle:hover { background: var(--pitch-600); color: #fff; }
.section-toggle[aria-expanded="true"] { color: var(--text-muted); background: var(--bg-subtle); border-color: var(--border-strong); }
.section-collapsible[hidden] { display: none !important; }
/* 閉じているときはタブ行だけが残るので、下端の罫線を丸めて独立したバーに見せる */
.section-body.is-collapsed .tabs-league { margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.section-body.is-collapsed .tab-league { border-bottom-color: var(--border); border-radius: var(--radius); }
.section-body.is-collapsed .tab-league[aria-selected="true"] { background: var(--bg-subtle); color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 6px; }
@media (max-width: 600px) {
  .section-title--toggle .section-toggle { order: 4; margin-left: 0; }
}

/* 更新時刻（見出し右横） */
.updated {
  display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 1.5; color: var(--text-muted);
  background: var(--bg-subtle); border: 1px solid var(--border); vertical-align: middle;
}
@media (max-width: 600px) {
  .section-title { flex-wrap: wrap; row-gap: 6px; }
  .section-title .updated { margin-left: 0; order: 3; flex: 0 0 auto; }
  .section-title::after { order: 2; min-width: 24px; }
  .updated { font-size: 11px; }
}

.tabs-sub {
  display: flex; gap: 18px; overflow-x: auto; padding: 0 13px;
  border-bottom: 1px solid var(--border); background: var(--surface);
  scrollbar-width: none;
}
.tabs-sub::-webkit-scrollbar { display: none; }
.tab-sub {
  flex: 0 0 auto; padding: 9px 2px; font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--text-muted); background: none; border: 0; border-bottom: 3px solid transparent;
  margin-bottom: -1px; white-space: nowrap;
}
.tab-sub:hover { color: var(--text); }
.tab-sub[aria-selected="true"] { color: var(--pitch-600); border-bottom-color: var(--pitch-600); }
.panel[hidden] { display: none !important; }

.league-shell {
  background: var(--surface); border: 1px solid var(--border); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius); overflow: hidden;
}

/* ---------- 13. 試合結果 / ニュース ---------- */
.fixtures { margin: 0; padding: 0; list-style: none; }
.fixture {
  display: grid; grid-template-columns: 92px 1fr auto 1fr 64px; align-items: center;
  gap: 10px; padding: 9px 13px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.fixture:last-child { border-bottom: 0; }
.fixture:hover { background: var(--bg-subtle); }
.fixture .fx-date { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-num); white-space: nowrap; }
.fixture .fx-date img.flag { margin-right: 4px; }
.fixture .fx-home { justify-content: flex-end; text-align: right; }
.fixture .fx-away { justify-content: flex-start; }
.fixture .fx-score {
  font-family: var(--font-num); font-size: 15px; font-weight: 700; min-width: 52px;
  text-align: center; padding: 1px 8px; border-radius: var(--radius-sm); background: var(--bg-sunken);
}
.fixture .fx-score.is-upcoming { font-size: 12.5px; font-weight: 400; color: var(--text-muted); background: none; }
.fixture .fx-tag { font-size: 10.5px; text-align: right; color: var(--text-faint); }
/* すべての日程ページ：日付列に統合したキックオフ時刻／対戦の区切り */
.tbl td .fx-time { font: inherit; margin-left: 4px; white-space: nowrap; }   /* 日付と同じ書体・太さ */
.tbl td .fx-vs { color: var(--text-faint); font-size: 12px; }
.fixture .entity { min-width: 0; }
.fixture .entity a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixture .entity .crest { flex: 0 0 auto; }

.news { margin: 0; padding: 0; list-style: none; }
.news li { border-bottom: 1px solid var(--border); }
.news li:last-child { border-bottom: 0; }
.news a { display: block; padding: 10px 13px; color: var(--text); }
.news a:hover { background: var(--bg-subtle); text-decoration: none; }
.news .n-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.news .n-time { font-size: 11px; color: var(--text-faint); font-family: var(--font-num); }
.news .n-cat {
  font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  color: var(--pitch-800); background: var(--pitch-050); border: 1px solid var(--pitch-600);
}
.news .n-title { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.55; }
.news .n-excerpt { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ---------- 14. 知識セクション ---------- */
.grid-know { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.know {
  display: flex; flex-direction: column; padding: 0; color: var(--text); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: box-shadow .18s, transform .18s;
}
.know:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-2px); }
/* 上段：横長画像の帯（2.5:1）。タイトルを画像の下端に重ねる */
.know .k-media { position: relative; display: block; aspect-ratio: 5 / 2; overflow: hidden; background: var(--pitch-800); }
.know .k-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.know:hover .k-media img { transform: scale(1.04); }
.know .k-band {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
  background: linear-gradient(to top, rgba(6, 48, 28, .88) 0%, rgba(6, 48, 28, .55) 55%, rgba(6, 48, 28, 0) 100%);
}
.know .k-title {
  display: inline-block; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .02em; line-height: 1.3;
  padding-left: 10px; border-left: 3px solid var(--gold-500); text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.know .k-body { display: block; padding: 11px 14px 13px; }
.know p { margin: 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.7; }
.know .status-pill { margin-top: 6px; }
@media (max-width: 480px) { .know .k-media { aspect-ratio: 2 / 1; } .know .k-title { font-size: 15px; } }

/* ---------- 15. アフィリエイト枠 ---------- */
.ad-unit {
  margin-bottom: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.ad-label {
  display: flex; align-items: center; gap: 6px; padding: 5px 11px;
  font-size: 10.5px; letter-spacing: .08em; color: var(--text-faint);
  background: var(--bg-subtle); border-bottom: 1px solid var(--border);
}
.ad-label::before { content: "PR"; font-weight: 700; padding: 0 4px; border: 1px solid var(--border-strong); border-radius: 2px; }
.ad-body { padding: 12px; }
.product { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.product:last-child { border-bottom: 0; padding-bottom: 0; }
.product:first-child { padding-top: 0; }
.p-thumb {
  flex: 0 0 62px; width: 62px; height: 62px; border-radius: var(--radius-sm);
  display: grid; place-items: center; font-size: 26px;
  background: var(--bg-sunken); border: 1px solid var(--border);
}
.p-info { min-width: 0; flex: 1 1 auto; }
.p-cat { font-size: 10.5px; color: var(--text-faint); }
.p-name { font-size: 12.5px; font-weight: 700; line-height: 1.5; margin: 1px 0 3px; }
.p-price { font-family: var(--font-num); font-size: 14px; font-weight: 700; color: var(--down); }
.p-price small { font-family: var(--font-sans); font-size: 10.5px; font-weight: 400; color: var(--text-muted); }
.p-cta {
  display: inline-block; margin-top: 5px; padding: 3px 11px; font-size: 11.5px; font-weight: 700;
  color: var(--pitch-900); background: linear-gradient(180deg, var(--gold-500), var(--gold-600));
  border-radius: var(--radius-sm);
}
.p-cta:hover { filter: brightness(1.08); text-decoration: none; color: var(--pitch-900); }
.ad-banner {
  display: block; padding: 22px 16px; text-align: center; color: #fff;
  background: linear-gradient(120deg, var(--pitch-700), var(--pitch-900));
}
.ad-banner:hover { text-decoration: none; color: #fff; filter: brightness(1.08); }
.ad-banner .b-kicker { font-size: 11px; letter-spacing: .12em; color: var(--gold-500); }
.ad-banner .b-title { font-size: 17px; font-weight: 700; margin: 5px 0 3px; }
.ad-banner .b-sub { font-size: 11.5px; color: rgba(255, 255, 255, .78); }

.grid-shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.shop-card {
  display: block; padding: 13px; text-align: center; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.shop-card:hover { text-decoration: none; box-shadow: var(--shadow-md); }
.shop-card .s-icon { font-size: 27px; }
.shop-card .s-name { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 700; }
.shop-card .s-sub { font-size: 10.5px; color: var(--text-muted); }

/* ---------- 16. 図版 / キャプション ---------- */
.figure {
  margin: 0 0 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.figure-media {
  aspect-ratio: 4 / 3; display: grid; place-items: center; color: rgba(255, 255, 255, .85);
  background: linear-gradient(150deg, var(--pitch-600), var(--pitch-900)); font-size: 12px;
  text-align: center; padding: 16px;
}
.figure figcaption { padding: 8px 11px; font-size: 11.5px; color: var(--text-muted); }

/* ---------- 17. 脚注 / フッター ---------- */
.reflist { columns: 2 260px; column-gap: 26px; font-size: 12px; color: var(--text-muted); }
.reflist ol { margin: 0; padding-left: 1.7em; }
.reflist li { margin-bottom: 5px; break-inside: avoid; }

.site-footer {
  margin-top: 40px; padding: 30px 16px 22px; color: rgba(255, 255, 255, .74);
  background: var(--pitch-900); border-top: 3px solid var(--gold-500); font-size: 12.5px;
}
.footer-inner {
  max-width: var(--content-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px;
}
.site-footer h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--gold-500); letter-spacing: .06em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--content-max); margin: 24px auto 0; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .14); font-size: 11.5px;
  color: rgba(255, 255, 255, .55); display: flex; flex-wrap: wrap; gap: 8px 18px;
}

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  color: #fff; background: var(--pitch-700); border: 1px solid var(--pitch-900);
  box-shadow: var(--shadow-md); font-size: 17px; opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.to-top.is-visible { opacity: .92; pointer-events: auto; }
.to-top:hover { opacity: 1; }

/* ---------- 18. レスポンシブ ---------- */
@media (max-width: 1280px) {
  :root { --rail-w: 288px; --toc-w: 196px; }
  .layout { gap: 22px; }
}

@media (max-width: 1080px) {
  .layout, .layout--wide { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .col-toc {
    position: fixed; top: 0; left: 0; z-index: 300; width: 282px; max-width: 86vw;
    height: 100vh; max-height: none; padding: 16px 14px 40px; background: var(--surface);
    border-right: 1px solid var(--border-strong); box-shadow: var(--shadow-md);
    transform: translateX(-100%); transition: transform .22s ease;
  }
  .col-toc.is-open { transform: none; }
  .toc-backdrop {
    position: fixed; inset: 0; z-index: 290; background: rgba(0, 0, 0, .42);
    opacity: 0; pointer-events: none; transition: opacity .22s;
  }
  .toc-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .hamburger { display: block; }
  /* スマホではインフォボックスだけ本文より先に置く（Wikipediaモバイルと同じ順序）。
     display:contents で右カラムの子要素をグリッド項目に昇格させ、order で並べ替える。 */
  .col-head { order: -2; padding-top: 14px; }
  .col-rail { display: contents; }
  .col-rail > .infobox { order: -1; margin: 4px 0 20px; }
  .col-rail > *:not(.infobox) { order: 1; }
  .col-main { order: 0; padding-top: 4px; }
  .header-search { display: none; }
  .reflist { columns: 1; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .header-inner { padding: 7px 11px; gap: 9px; }
  .brand-mark { width: 36px; height: 36px; font-size: 19px; }
  .brand-name { font-size: 16px; }
  .brand-tag { display: none; }
  .header-tools .header-link { display: none; }
  .layout { padding: 0 11px; }
  .page-title { font-size: 25px; }
  .article h2 { font-size: 20px; }
  .section-title { font-size: 20px; }
  .hero-inner { padding: 26px 12px 24px; }
  .infobox { font-size: 12px; }
  .fixture { grid-template-columns: 1fr auto 1fr; gap: 6px; padding: 9px 11px; }
  .fixture .fx-date { grid-column: 1 / -1; }
  .fixture .fx-tag { display: none; }
  .tabs-sub { gap: 13px; padding: 0 10px; }
  .p-thumb { flex-basis: 52px; width: 52px; height: 52px; font-size: 21px; }
  .footer-inner { gap: 18px; }
}

/* ---------- 19. 印刷 ---------- */
@media print {
  .site-header, .col-toc, .col-rail, .site-footer, .to-top, .ad-unit, .hero-chips { display: none !important; }
  .layout { display: block; max-width: none; padding: 0; }
  body { font-size: 10.5pt; }
  a { color: #000; text-decoration: none; }
  .tbl thead th { background: #ddd !important; color: #000 !important; }
}

/* ---------- 20. 個人成績テーブル（列数が多いので詰める） ---------- */
.tbl--stats { min-width: 700px; font-size: 12px; }
.tbl--stats th, .tbl--stats td { padding: 4px 5px; }
.tbl--stats .num { padding: 4px 6px; }
.tbl--stats thead th { font-size: 11.5px; }

/* ---------- 21. 順位表（チーム名を折り返さない） ---------- */
.tbl--standings { min-width: 660px; }
.tbl--standings td:nth-child(2) { white-space: nowrap; }
.entity > a, .entity > span { white-space: nowrap; }

/* ---------- 22. 選手写真（Wikimedia Commons）と出典表記 ---------- */
a.portrait-frame { display: block; padding: 0; }
a.portrait-frame:hover { filter: brightness(1.05); }
a.portrait-frame img {
  display: block; width: 100%; height: auto; aspect-ratio: auto;
  object-fit: contain; background: var(--bg-sunken);
}
.infobox .credit {
  margin: 4px 0 0; padding: 0 2px; font-size: 10.5px; line-height: 1.6;
  color: var(--text-faint); text-align: left;
}
.infobox .credit a { color: var(--text-muted); text-decoration: underline; }
.infobox .credit a:hover { color: var(--link); }

/* ---------- 23. 出典表記（リンクにしない） ---------- */
.reflist .src { display: block; margin-top: 1px; font-size: 11px; color: var(--text-faint); }
.uri { font-family: var(--font-num); font-size: 11px; color: var(--text-faint);
       word-break: break-all; user-select: all; }
.infobox .credit .uri { display: inline; }

/* ---------- 知識記事：共通の型（30秒要点・わかること・対象レベル・理解度チェック・出典） ---------- */
.k-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
.k-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); }
.k-box h3 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.k-box h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--pitch-600); display: inline-block; }
.k-box--30 { background: linear-gradient(180deg, rgba(18,122,73,.06), transparent); }
.k-box ol, .k-box ul { margin: 0; padding-left: 1.5em; }
.k-box li { margin: 4px 0; line-height: 1.6; }
.k-levels { font-size: 12.5px; color: var(--text-muted); margin: 0 0 14px; }
.lv { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; vertical-align: middle; margin-left: 10px; letter-spacing: 0; }
.lv1 { background: #e3f3ea; color: #0f6a3f; } .lv2 { background: #e6eefb; color: #1f4f9c; } .lv3 { background: #f6e8f6; color: #7a2c7a; }
h2 .lv { font-family: inherit; }
.callout--warn { border-left: 4px solid #d9822b; background: #fff8ef; }
.callout--warn h4::before { content: "⚠ "; }
.callout--adult { border-left: 4px solid #4b5f7a; background: #f4f6fa; }
.callout--adult h4::before { content: "👤 "; }
.callout--tip { border-left: 4px solid var(--pitch-600); background: #f1f8f4; }
.quiz-list { display: grid; gap: 12px; }
.quiz { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 12px 14px; }
.quiz-q { margin: 0 0 8px; font-weight: 600; }
.quiz-no { display: inline-block; background: var(--pitch-600); color: #fff; border-radius: 4px; padding: 0 7px; margin-right: 8px; font-size: 12px; }
.quiz-choices { margin: 0 0 8px; padding-left: 1.6em; }
.quiz-choices li { margin: 3px 0; }
.quiz-a summary { cursor: pointer; color: var(--pitch-600); font-weight: 600; font-size: 13px; }
.k-related { columns: 2 220px; }
.k-meta { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; }
.k-order { margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.k-order h3 { margin: 0 0 8px; font-size: 15px; }
.k-order ul { margin: 0 0 8px; padding-left: 1.4em; }
.k-order li { margin: 4px 0; }
.article table.kt td.ok { color: #0f6a3f; font-weight: 700; } .article table.kt td.ng { color: #b3261e; font-weight: 700; }
/* 用語辞典 */
.gl-search { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.gl-search label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.gl-search input { flex: 1; min-width: 0; font-size: 15px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.gl-hits { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.gl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.gl-tab { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.gl-tab.is-active { background: var(--pitch-600); color: #fff; border-color: var(--pitch-600); }
.gl-count { opacity: .7; font-size: 11px; margin-left: 2px; }
.gl-kanabar { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; align-items: center; }
.gl-kana { display: inline-block; min-width: 26px; text-align: center; padding: 3px 4px; border: 1px solid var(--border); border-radius: 6px; font-size: 12.5px; text-decoration: none; background: var(--surface); }
.gl-kana.is-empty { opacity: .35; pointer-events: none; }
.gl-sep { width: 10px; }
.gl-letter { margin: 22px 0 8px; font-size: 15px; color: var(--pitch-600); border-bottom: 2px solid var(--pitch-600); display: inline-block; padding: 0 6px 2px; }
.term { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 12px 14px; margin: 0 0 10px; scroll-margin-top: 120px; }
.term.is-hit { box-shadow: 0 0 0 3px rgba(18,122,73,.35); }
.term-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 8px; }
.term-head h4 { margin: 0; font-size: 16px; }
.term-yomi { font-size: 12px; color: var(--text-muted); }
.term-en { font-size: 12px; color: var(--text-muted); font-style: italic; }
.term-cat { font-size: 11px; background: var(--bg-sunken); border-radius: 4px; padding: 1px 7px; }
.gl-tag { font-size: 11px; border: 1px solid var(--border); border-radius: 4px; padding: 0 6px; color: var(--text-muted); }
.term-body { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13.5px; }
.term-body dt { color: var(--text-muted); font-weight: 600; }
.term-body dd { margin: 0; }
.gl-none { color: var(--text-muted); }
@media (max-width: 720px) {
  .k-head { grid-template-columns: 1fr; }
  .term-body { grid-template-columns: 1fr; gap: 2px; }
  .term-body dt { margin-top: 6px; }
  .k-related { columns: 1; }
}
/* 知識記事：7つの基本・試合の流れ */
.k-steps { counter-reset: st; list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; }
.k-steps li { counter-increment: st; position: relative; padding: 9px 12px 9px 46px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); line-height: 1.6; }
.k-steps li::before { content: counter(st); position: absolute; left: 12px; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--pitch-600); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.flow { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0 16px; align-items: center; }
.flow li { background: var(--bg-sunken); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: 13px; position: relative; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.flow li:not(:last-child) { margin-right: 12px; }
.layout--norail .article .table-scroll { clear: both; }
/* 全幅の図でも元画像より大きく拡大しない（ぼやけ防止）。中央寄せ */
.figure--wide .figure-img { width: auto; max-width: 100%; height: auto; margin: 0 auto; }
@media (min-width: 1000px) { .layout--wide .grid-know, .article .grid-know { grid-template-columns: repeat(3, 1fr); } }

/* 図の上のタイトル帯（ポジションカードなど） */
.figure-title { background: #1f7a45; color: #fff; font-weight: 700; text-align: center; padding: 6px 8px; font-size: 14px; letter-spacing: .02em; }
.figure--cell .figure-title { font-size: 13px; padding: 5px 6px; }

/* ---------------- お問い合わせフォーム（about/contact.html） ---------------- */
.cform { max-width: 680px; margin: 14px 0 22px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cform-row { margin: 0 0 14px; }
.cform-row > label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 5px; }
.cform-row .req { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: #b3261e; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.cform-row .opt { display: inline-block; font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--bg-sunken); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.cform input[type="text"], .cform input[type="email"], .cform select, .cform textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg); color: var(--text);
}
.cform textarea { resize: vertical; min-height: 160px; line-height: 1.6; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 2px solid var(--pitch-600); outline-offset: 1px; border-color: var(--pitch-600); }
.cform .is-invalid { border-color: #b3261e; }
.cform small { display: block; margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.cform-count { float: right; font-family: var(--font-num); }
.cform-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cform-agree label { font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cform-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.cform .btn { font: inherit; font-weight: 700; font-size: 15px; padding: 10px 26px; border-radius: 8px; border: 1px solid var(--pitch-700); cursor: pointer; }
.cform .btn--primary { background: var(--pitch-600); color: #fff; }
.cform .btn--primary:hover { background: var(--pitch-700); }
.cform .btn[disabled] { opacity: .5; cursor: not-allowed; }
.cform-status { font-size: 13px; color: var(--text-muted); }
.cform-status.is-error { color: #b3261e; font-weight: 600; }
.cform-done { padding: 14px 16px; border: 1px solid var(--pitch-600); border-radius: var(--radius); background: var(--pitch-050); }
.cform-done h3 { margin: 0 0 6px; font-size: 16px; color: var(--pitch-700); }
.cform-done p { margin: 0; }
.cform.is-sent .cform-row, .cform.is-sent .cform-actions { display: none; }

/* ---------------- W杯予選：前回（2026年大会）予選の最終結果ブロック ---------------- */
.wcq-title { margin-top: 16px; font-size: 14px; }
.wcq-summary { margin: 4px 13px 8px; font-size: 13px; line-height: 1.7; color: var(--text); }
.wcq-qualified { margin: 0 13px 6px; font-size: 13px; line-height: 2; }
.wcq-qualified img.flag { margin-right: 3px; vertical-align: -2px; }
.wcq-stage { margin: 12px 13px 2px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.wcq-sources { margin: 0; padding: 8px 13px 12px; font-size: 11.5px; line-height: 1.6; color: var(--text-faint); border-top: 1px solid var(--border); word-break: break-all; }

/* ---------------- パンくず（SEO：階層の明示。全下層ページの本文先頭） ---------------- */
.breadcrumb { font-size: 12px; color: var(--text-muted); margin: 0 0 6px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 7px; color: var(--text-faint); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--pitch-700); }
.breadcrumb [aria-current="page"] { color: var(--text); }
.col-head .breadcrumb { margin-top: 2px; }

/* ---------------- 発言集（人物ページ）：解説が主・引用が従 ---------------- */
.quote-list { display: grid; gap: 14px; margin: 10px 0 18px; }
.quote-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; }
.quote-item .q-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 8px; }
.quote-item .q-when { font-family: var(--font-num); }
.quote-item .q-who { font-weight: 600; color: var(--text); }
.quote-item .q-cat { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--pitch-800); background: var(--pitch-050); border: 1px solid var(--pitch-600); }
.quote-item .q-commentary { font-size: 14px; line-height: 1.85; color: var(--text); }
.quote-item .q-body { margin: 10px 0 6px; padding: 10px 14px; border-left: 4px solid var(--gold-500); background: var(--bg-subtle); font-size: 14.5px; line-height: 1.7; }
.quote-item .q-src { margin: 0; font-size: 11.5px; color: var(--text-faint); word-break: break-all; }
/* 写真が無い人物の代替カード */
.portrait-card { background: none; }
.portrait-card svg { display: block; width: 100%; height: 100%; }

/* 発言集：シーズン別アコーディオン（2026-09-23） */
.quote-season { margin: 0 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.quote-season > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none;
  padding: 12px 16px; background: var(--bg-subtle); border-left: 5px solid var(--pitch-600); font-size: 1.08em; font-weight: 700; }
.quote-season > summary::-webkit-details-marker { display: none; }
.quote-season > summary::marker { content: ""; }
.quote-season .qs-toggle { flex: none; }
.quote-season .qs-toggle::after { content: "▼ 開く"; }
.quote-season[open] .qs-toggle::after { content: "▲ 閉じる"; }
.quote-season > .quote-list { padding: 12px 14px 4px; }
.quote-item .q-body + .q-body { margin-top: 6px; }

/* 2026-10-04 p52：トップの直近の試合結果。列の位置を固定（日付 150px・結果 54px・大会名と節 180px、残りを対戦の欄に）。
   チーム名は 1 行で、はみ出す分は … で省略して隣の欄に重ならないようにする。大会名と節は右詰め・小さめの 2 行 */
.fixtures--latest .fixture .fx-score { font-size: 14px; padding: 0 6px; }
@media (min-width: 761px) {
  .fixtures--latest .fixture {
    grid-template-columns: 150px minmax(0, 1fr) 54px minmax(0, 1fr) 180px; gap: 8px; padding: 5px 13px;
  }
  .fixtures--latest .fixture .fx-date { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
  .fixtures--latest .fixture .fx-home,
  .fixtures--latest .fixture .fx-away {
    display: flex; align-items: center; justify-content: flex-start; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap;
  }
  .fixtures--latest .fixture .fx-home > :first-child { margin-left: auto; }
  .fixtures--latest .fixture .entity > * { flex: 0 0 auto; }
  .fixtures--latest .fixture .entity a { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fixtures--latest .fixture .fx-tag {
    text-align: right; font-size: 9.5px; line-height: 1.35; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
}

/* 2026-10-04 p53c：直近 3 日の試合結果の「直近全ての試合を見る」（目立つボタンの形） */
.fixtures-more { border-top: 1px solid var(--border); padding: 10px 13px; }
.fixtures-more > summary {
  list-style: none; cursor: pointer; display: block; text-align: center; padding: 9px 12px;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--pitch-800); border-radius: var(--radius-sm);
}
.fixtures-more > summary::-webkit-details-marker { display: none; }
.fixtures-more > summary::after { content: "　▼"; font-size: 11px; }
.fixtures-more[open] > summary::after { content: "　▲"; }
.fixtures-more > summary:hover { filter: brightness(1.15); }
.fixtures-more[open] > summary { margin-bottom: 8px; }

/* 2026-10-04 p53b：PK 戦の結果（結果の下に小さく） */
.fixture .fx-score .fx-pk { display: block; font-size: 9px; font-weight: 400; line-height: 1.1; color: var(--text-muted); }

/* 2026-10-05 p54：空の広告枠（hidden）は表示しない。.ad-unit の display 指定より優先する */
.ad-unit[hidden] { display: none !important; }

/* 2026-10-05 p56：PK 戦・延長の小さな表示を、表の中（クラブ・代表のページ）でも効かせる */
.fx-pk { display: block; font-size: 9px; font-weight: 400; line-height: 1.1; color: var(--text-muted); }

/* p150：表（kt）の見出しの文字は黒（暗い表示は今の指定のまま） */
@media (prefers-color-scheme: light) { table.kt th, .kt thead th, .kt th { color: #111 !important; } }
