/* ===== SPOLOG COLUMN 共通スタイル =====
   一覧ページ（/column/）と記事ページ（/column/<競技>/<slug>/）で共有する。
   色・フォント・カードの見た目は口コミ／掲示板と揃えてある。 */

:root {
  --red: #E8001D;
  --red-dark: #B0001A;
  --red-pale: #FFF0F2;
  --black: #0f0f0f;
  --white: #ffffff;
  --gray-100: #f7f7f7;
  --gray-200: #efefef;
  --gray-400: #bbbbbb;
  --gray-600: #777777;
  --gray-800: #333333;
  --gold: #F0A500;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden !important; }
body {
  margin: 0; padding-top: 64px;
  background: var(--gray-100); color: var(--gray-800);
  font-family: 'Noto Sans JP', sans-serif;
  overflow-x: hidden !important; width: 100%; max-width: 100vw;
}
img { max-width: 100%; height: auto; }

/* ===== ヒーロー（掲示板 /bbs/ と同一の値） ===== */
#spaceCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.sport-hero {
  background: var(--black);
  position: relative; overflow: hidden;
  padding: 6rem 1.5rem 0;
  min-height: 260px;
  display: flex; align-items: stretch;
}
.sport-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(232,0,29,0.08) 0%, transparent 70%);
}
.sport-hero-inner {
  max-width: 1380px; margin: 0 auto; width: 100%; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-bottom: 2.5rem;
}
.sport-hero h1 {
  font-family: 'Bebas Neue';
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--white); letter-spacing: 0; line-height: .9;
  margin: 0 0 1rem;
}
.sport-hero h1 .line-white { display: block; color: var(--white); }
.sport-hero h1 .line-red { display: block; color: var(--red); }
.sport-hero-sub {
  font-size: 15px; color: #fff; margin-bottom: 2.5rem;
  text-align: center; line-height: 1.8;
}
.hero-kpis { display: flex; gap: 3rem; flex-wrap: wrap; margin-bottom: 2.5rem; justify-content: center; }
.hero-kpi { padding-left: 0; border-left: none; text-align: center; }
.hero-kpi .kv { font-family: 'Bebas Neue'; font-size: 3rem; color: var(--white); line-height: 1; }
.hero-kpi .kl { font-size: 10px; color: #fff; margin-top: 2px; font-weight: 700; letter-spacing: 1px; }

/* 記事ページのヒーロー内リンク（掲示板の hero-btn と同じ質感） */
.hero-actions-row { display:flex; gap:.5rem; flex-wrap:wrap; justify-content:center; }
.hero-pill {
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  padding:10px 18px; border-radius:6px; font-size:13px; font-weight:700;
  text-decoration:none; transition:all .2s; cursor:pointer;
  border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.06); color:#fff;
}
.hero-pill:hover { background:#fff; color:var(--black); border-color:#fff; }
.hero-pill img { width:16px; height:16px; object-fit:contain; transition:filter .2s; }
/* ホバーで背景が白になると、白いSマークが背景に溶けて消える。文字と同じ黒に反転させる */
.hero-pill:hover img { filter:invert(1); }

/* ===== 検索窓（掲示板と同一） ===== */
.bbs-search-wrap { margin-bottom: 1.25rem; position: relative; }
.bbs-search-wrap i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); font-size: 15px; pointer-events: none;
}
.bbs-search-input {
  width: 100%; padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  font-size: 14px; font-family: 'Noto Sans JP', sans-serif;
  background: var(--white); color: var(--gray-800);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.bbs-search-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,0,29,.1); }
.search-results-label { font-size: 12px; color: var(--gray-600); margin-bottom: .75rem; display: none; }

/* ===== 本体レイアウト =====
   グリッドアイテムには必ず min-width:0（規約）。
   これが無いと、非同期で入るサイドバーの nowrap テキストが幅を押し広げる。 */
.page-body {
  max-width: 1450px; margin: 0 auto; padding: 2rem 1.5rem;
  display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem;
  align-items: start; overflow-x: hidden;
}
.main-col { min-width: 0; overflow-x: hidden; }
.sidebar { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }

.section-heading { margin-bottom: 1rem; }
.section-heading .badge {
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; padding: 3px 10px; border-radius: 2px;
}
.section-heading h2 {
  font-family: 'Noto Sans JP', sans-serif; font-size: 1.3rem; font-weight: 900;
  color: #111; margin: 0;
}
.section-heading .row { display: flex; align-items: center; gap: 10px; margin-bottom: .4rem; }

/* ===== 競技フィルター（掲示板と同じ見た目） ===== */
.sport-tabs {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .375rem; margin-bottom: 1.25rem;
}
.sport-tab {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  padding: 8px 2px; border-radius: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  cursor: pointer; border: 1.5px solid var(--gray-200);
  background: var(--white); color: var(--gray-600);
  transition: all .15s; user-select: none; white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif; width: 100%;
}
.sport-tab:hover { border-color: rgba(232,0,29,.4); color: var(--red); }
.sport-tab.active { background: var(--red); border-color: var(--red); color: var(--white); }
.sport-tab:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sport-tab img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.sport-tab.coming-tab { opacity: .55; cursor: default; }
.sport-tab.coming-tab:hover { border-color: var(--gray-200); color: var(--gray-600); }

/* ===== 記事カード =====
   旧サイトと同じ構図の縮小版。左にイラスト、右に競技名・タイトル・説明文。
   一覧の幅（最大1078px）に2枚並ぶよう、最小幅は440px。狭くなると1列に落ちる */
.col-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.col-card {
  background: var(--white); border-radius: 12px; border: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 1.1rem; padding: 1rem 1.2rem 1rem 1rem;
  text-decoration: none; color: inherit; min-width: 0;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  --tint: 120,120,130;   /* 競技のイメージカラー。記事ごとにJSで差し込む */
}
.col-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.07); border-color: #ddd; }
.col-card:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* 左：イラスト。旧サイトのアイキャッチ（855×600）と同じ横長の比率。背景は敷かない */
.col-card-fig {
  flex: none; width: 172px; aspect-ratio: 855 / 600;
  position: relative; overflow: hidden;
}
/* 画像は枠いっぱいに重ねて、縦横比を保ったまま収める。
   （グリッドの中で height:100% にすると高さが効かず、正方形の画像が下で切れる） */
.col-card-fig img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block; transition: transform .25s;
}
.col-card:hover .col-card-fig img { transform: scale(1.05); }
/* イラストが無い記事は競技のアイコンで代用。小さめに中央へ置く */
.col-card-fig.is-icon img { width: 36%; height: 36%; margin: auto; }

/* 右：競技名・タイトル・説明文 */
.col-card-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.col-card-sport {
  display: flex; align-items: center; gap: .45rem;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: rgb(var(--tint));
}
.col-card-sport::before {
  content: ""; width: 14px; height: 2px; border-radius: 2px; background: rgb(var(--tint));
  transition: width .35s cubic-bezier(.22, 1, .36, 1);
}
/* マウスオーバーで、競技名の前の線がすっと伸びる */
.col-card:hover .col-card-sport::before,
.col-card:focus-visible .col-card-sport::before { width: 34px; }
.col-card h3 {
  font-size: 15.5px; font-weight: 700; color: #111; margin: 0; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.col-card p {
  font-size: 12.5px; color: var(--gray-600); margin: 0; line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.col-card-meta {
  display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .25rem;
  font-size: 11px; color: var(--gray-400);
}
.col-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  background: var(--red-pale); color: var(--red); white-space: nowrap;
}
.col-badge img { width: 12px; height: 12px; object-fit: contain; }
.col-empty {
  grid-column: 1/-1; text-align: center; padding: 3rem 1rem; color: var(--gray-400); font-size: 14px;
}

/* ===== サイドバー（口コミ・掲示板と同一） ===== */
.side-card {
  background: var(--white); border-radius: 10px; border: 1px solid var(--gray-200); overflow: hidden;
}
.side-card-head { padding: .875rem 1rem; border-bottom: 1px solid var(--gray-200); }
.side-card-title {
  font-size: 13px; font-weight: 700; color: #111;
  border-left: 3px solid var(--red); padding-left: .5rem; line-height: 1.2;
}
.side-card-body { padding: 1rem; }
.side-link {
  display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem;
  text-decoration: none; color: var(--gray-800); font-size: 13px;
  border-bottom: 1px solid var(--gray-200); transition: background .15s;
}
.side-link:last-child { border-bottom: none; }
.side-link:hover { background: var(--gray-100); color: var(--red); }
.side-link i { color: var(--red); font-size: 12px; width: 14px; text-align: center; }

/* ===== 記事本文 ===== */
.article {
  background: var(--white); border-radius: 10px; border: 1px solid var(--gray-200);
  padding: 2rem 2.25rem 2.5rem; min-width: 0;
}
.article-head { border-bottom: 1px solid var(--gray-200); padding-bottom: 1.25rem; margin-bottom: 1.75rem; }
.article-head h1 {
  font-size: clamp(1.35rem, 3.2vw, 1.9rem); font-weight: 900; color: #111;
  line-height: 1.5; margin: .6rem 0 .75rem;
}
.article-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: 12px; color: var(--gray-400); }
.breadcrumb { font-size: 12px; color: var(--gray-400); margin-bottom: 1rem; }
.breadcrumb a { color: var(--gray-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); text-decoration: underline; }

.article-body { font-size: 15.5px; line-height: 2.05; color: var(--gray-800); }
.article-body > * + * { margin-top: 1.5rem; }
/* h2 は「文字の下に短い赤の線」を敷く。左端の縦バーは使わない。
   下線は文字幅いっぱいではなく48pxで止め、その先を薄いグレーで水平に伸ばす。
   雑誌の柱のような見え方になり、カードに縦バーを立てる作りにならない。 */
.article-body h2 {
  font-size: 1.3rem; font-weight: 900; color: #111; line-height: 1.5;
  margin-top: 3rem; padding-bottom: .55rem; position: relative;
  border-bottom: 1px solid var(--gray-200);
}
/* マウスを載せると赤い線が見出しの幅いっぱいまで伸びる。
   位置指定の擬似要素なので、まわりのレイアウトは動かない（＝描画のみ）。 */
.article-body h2::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 48px; height: 3px; background: var(--red);
  transition: width .4s cubic-bezier(.22,.61,.36,1);
}
.article-body h2:hover::after { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .article-body h2::after { transition: none; }
}
.article-body h3 {
  font-size: 1.06rem; font-weight: 700; color: #111; margin-top: 2.25rem;
  padding-left: 1rem; position: relative; line-height: 1.6;
}
/* h3 は小さな赤い菱形を1つ置くだけ。線は引かない */
.article-body h3::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; background: var(--red); transform: rotate(45deg);
}

/* ===== 目次（既定は閉じた状態） =====
   見出しの通し番号を Bebas Neue で置く。数字はサイト内の KPI・ヒーローと
   同じ書体なので、コラムだけ浮かない。罫線は引かず、番号と字下げで構造を見せる。 */
.toc {
  border: 1px solid var(--gray-200); border-radius: 12px;
  background: var(--white); margin-bottom: 2.25rem; overflow: hidden;
}
.toc > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem 1.25rem; font-size: 14px; font-weight: 900; color: #111;
  background: var(--gray-100); transition: background .15s;
}
.toc > summary:hover { background: #f1f0ee; }
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
/* 「目次」の前に、よくある目次のアイコン（行頭の点＋線）。文字は太字にしない */
.toc .toc-label { display: inline-flex; align-items: center; gap: .5rem; font-weight: 400; letter-spacing: .02em; }
.toc .toc-label::before {
  content: ''; width: 17px; height: 17px; flex: none; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Ccircle%20cx%3D%274%27%20cy%3D%276%27%20r%3D%271.7%27/%3E%3Ccircle%20cx%3D%274%27%20cy%3D%2712%27%20r%3D%271.7%27/%3E%3Ccircle%20cx%3D%274%27%20cy%3D%2718%27%20r%3D%271.7%27/%3E%3Crect%20x%3D%278.5%27%20y%3D%275%27%20width%3D%2713%27%20height%3D%272%27%20rx%3D%271%27/%3E%3Crect%20x%3D%278.5%27%20y%3D%2711%27%20width%3D%2713%27%20height%3D%272%27%20rx%3D%271%27/%3E%3Crect%20x%3D%278.5%27%20y%3D%2717%27%20width%3D%2713%27%20height%3D%272%27%20rx%3D%271%27/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Ccircle%20cx%3D%274%27%20cy%3D%276%27%20r%3D%271.7%27/%3E%3Ccircle%20cx%3D%274%27%20cy%3D%2712%27%20r%3D%271.7%27/%3E%3Ccircle%20cx%3D%274%27%20cy%3D%2718%27%20r%3D%271.7%27/%3E%3Crect%20x%3D%278.5%27%20y%3D%275%27%20width%3D%2713%27%20height%3D%272%27%20rx%3D%271%27/%3E%3Crect%20x%3D%278.5%27%20y%3D%2711%27%20width%3D%2713%27%20height%3D%272%27%20rx%3D%271%27/%3E%3Crect%20x%3D%278.5%27%20y%3D%2717%27%20width%3D%2713%27%20height%3D%272%27%20rx%3D%271%27/%3E%3C/svg%3E") center / contain no-repeat;
}
.toc .toc-hint {
  font-size: 11.5px; font-weight: 700; color: var(--gray-600);
  display: inline-flex; align-items: center; gap: .3rem; letter-spacing: .04em;
}
.toc .toc-hint::after {
  content: ''; width: 7px; height: 7px; border-right: 2px solid var(--gray-400);
  border-bottom: 2px solid var(--gray-400); transform: rotate(45deg) translate(-2px,-2px);
  transition: transform .22s cubic-bezier(.22,.61,.36,1);
}
.toc[open] .toc-hint::after { transform: rotate(-135deg) translate(-2px,-2px); }
.toc-body { padding: .5rem 1.25rem 1.1rem; display: flex; flex-direction: column; }

.toc-link {
  display: flex; align-items: baseline; gap: .7rem; text-decoration: none;
  padding: .46rem 0; color: var(--gray-800); line-height: 1.65;
  transition: color .15s, transform .15s;
}
.toc-link:hover { color: var(--red); }
.toc-link:hover .toc-num { color: var(--red); }
.toc-link:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.toc-link .toc-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 16px; line-height: 1.2;
  color: var(--gray-400); letter-spacing: .04em; min-width: 1.5em;
  font-variant-numeric: tabular-nums; transition: color .15s;
}
.toc-link.lv2 { font-size: 14px; font-weight: 700; }
.toc-link.lv2 + .toc-link.lv2 { border-top: 1px solid var(--gray-200); }
.toc-link.lv3 {
  font-size: 12.5px; color: var(--gray-600); padding: .3rem 0 .3rem 2.2rem; font-weight: 400;
}
/* 下位見出しの前に短いダッシュ。縦線は使わない */
.toc-link.lv3 .toc-t::before {
  content: ''; display: inline-block; width: 10px; height: 1px;
  background: var(--gray-400); vertical-align: middle; margin-right: .5rem;
}
.toc-link.lv3:hover { color: var(--red); }
.toc-link.lv3:hover .toc-t::before { background: var(--red); }
.article-body p { margin: 0; }
/* 上の margin:0 が「本文の直下の要素どうしの間隔」まで消してしまうので、
   表・囲み・ボタンなどの直後に文章が来るときだけ、上に余白を戻す。
   （文章どうし、見出しの直後は今までどおり） */
.article-body > :not(p):not(ul):not(ol):not(h2):not(h3) + :is(p, ul, ol) { margin-top: 1.5rem; }
/* 文章・箇条書きが続くところは、箇条書き同士（.5rem）と同じだけ空ける。
   表や囲みの直後（上の 1.5rem）より狭くして、文章のまとまりを保つ */
.article-body > :is(p, ul, ol) + :is(p, ul, ol) { margin-top: .5rem; }
.article-body a { color: var(--red); }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin: 0; }
.article-body li + li { margin-top: .5rem; }
.article-body img { border-radius: 8px; display: block; }
.article-body figure { margin: 0; }
.article-body figcaption { font-size: 12px; color: var(--gray-600); margin-top: .5rem; text-align: center; }
.article-body blockquote {
  border-left: 3px solid var(--gray-200); padding: .25rem 0 .25rem 1rem;
  color: var(--gray-600); font-size: 14.5px;
}
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article-body .tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* 表は内容の幅ぴったりに広げる。width:auto だと少しだけ縮められ、
   折り返さない文字（「ニュージーランド」など）がセルからはみ出してしまう。
   折り返してよいセル（.cond-cell）には max-width があるので、
   max-content でも表が横に伸びすぎることはない。 */
.article-body .tablewrap table { width: max-content; min-width: 100%; }

/* 表が画面に収まらないときだけ出る案内（画面幅に関係なく、はみ出したら必ず出す。hidden の制御は記事テンプレートのJS） */
.article-body .scroll-hint {
  display: block;
  font-size: 11.5px; color: var(--gray-400); text-align: right;
  letter-spacing: .02em; margin-bottom: .35rem;
}
.article-body .scroll-hint[hidden] { display: none !important; }
/* 案内のすぐ下に表が来るので、間の余白は詰める */
.article-body > .scroll-hint + .tablewrap { margin-top: 0; }
/* 表の見出し列（行頭の th）は左揃えで固定幅感を出す */
.article-body tbody th { background: var(--gray-100); font-weight: 700; white-space: nowrap; }
/* 増減の色分け。数値の意味を色でも伝える */
.article-body td.up, .article-body .gain { color: #12694a; font-weight: 700; }
.article-body td.down, .article-body .lose { color: var(--red); font-weight: 700; }

/* 記事の中のラガマルくん。大きくなりすぎないよう幅を抑えて中央に置く */
.article-body .chara {
  width: 100%; max-width: 440px; height: auto;
  margin: 1.4rem auto 1.6rem; border-radius: 0;
}
@media (max-width: 640px) { .article-body .chara { max-width: 300px; } }
/* 埋め込み動画（YouTube）。横幅いっぱい・16:9 */
.article-body .video { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; margin: 1.2rem auto 1.6rem; }
.article-body .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
/* 縦長の図（グラウンドの図など）。キャラクターより小さめに置く */
.article-body .diagram { display: block; width: 100%; max-width: 260px; height: auto; margin: 1.4rem auto .5rem; }

/* 表の中の国旗。世界ランキングのページと同じ見た目にそろえる */
.article-body .flag {
  /* .article-body img は display:block なので、行の中に並べるため戻す */
  display: inline-block;
  width: 22px; height: 15px; object-fit: cover; border-radius: 2px;
  border: 1px solid var(--gray-200); vertical-align: -2px; margin-right: .45rem;
}
/* 国名のセルだけは左揃え（旗と名前が続くため） */
.article-body td.country { text-align: left; white-space: nowrap; }
/* 一覧表の国名は、その国の解説へのリンク */
.article-body td.country a { color: inherit; text-decoration: none; }
.article-body td.country a:hover { color: var(--red); }
/* 目次や表のリンクで飛んだとき、見出しが上の固定ナビ（64px）に隠れないようにする */
.article-body h2[id], .article-body h3[id] { scroll-margin-top: 84px; }
/* 自動で入る世界ランキングの順位。まだ読み込めていない間は控えめに出す */
.article-body td.rank { font-variant-numeric: tabular-nums; }
.article-body td.rank:empty::before { content: '—'; color: var(--gray-400); }

/* 冒頭の結論ボックス */
.article-body .lead-box {
  background: var(--red-pale); border: 1px solid rgba(232,0,29,.18);
  border-radius: 10px; padding: 1.25rem 1.5rem;
}
.article-body .lead-box .lead-title {
  font-size: 13px; font-weight: 900; color: var(--red);
  letter-spacing: .04em; margin-bottom: .6rem;
}
/* 番号は赤い丸の白抜き。既定の数字は消して自前のカウンタで描く */
.article-body .lead-box ol {
  list-style: none; padding-left: 0; margin: 0; font-size: 15px; counter-reset: leadnum;
}
.article-body .lead-box li {
  position: relative; padding-left: 2.75rem; counter-increment: leadnum; line-height: 1.85;
}
.article-body .lead-box li + li { margin-top: .6rem; }
/* ::before が楕円（ボール）、::after が数字。
   楕円だけを傾けたいので、回転しない別の擬似要素に数字を載せる。 */
.article-body .lead-box li::before {
  content: ''; position: absolute; left: 0; top: .3em;
  width: 32px; height: 21px; border-radius: 50%;
  background: linear-gradient(150deg, #ff2337 0%, var(--red) 45%, #c00018 100%);
  transform: rotate(-27deg);
  box-shadow: 0 2px 5px rgba(232,0,29,.3);
}
.article-body .lead-box li::after {
  content: counter(leadnum); position: absolute; left: 0; top: .3em;
  width: 32px; height: 21px; line-height: 21px; text-align: center;
  font-family: 'Noto Sans JP', sans-serif; font-size: 12px; font-weight: 900;
  color: var(--white);
}

/* よくある質問は開閉式。見出しは h3 のままなので、目次にはこれまでどおり並ぶ */
.article-body details.faq { border-bottom: 1px solid var(--gray-200); }
.article-body details.faq + details.faq { margin-top: 0; }
.article-body details.faq > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 0;
}
.article-body details.faq > summary::-webkit-details-marker { display: none; }
.article-body details.faq > summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.article-body details.faq > summary h3 { margin: 0; flex: 1; min-width: 0; }
.article-body details.faq > summary::after {
  content: ''; flex: none; width: 8px; height: 8px; margin-top: .5em;
  border-right: 2px solid var(--gray-400); border-bottom: 2px solid var(--gray-400);
  transform: rotate(45deg); transition: transform .22s cubic-bezier(.22,.61,.36,1);
}
.article-body details.faq[open] > summary::after { transform: rotate(-135deg); }
.article-body details.faq > *:not(summary) { margin-top: 0; padding-bottom: 1.15rem; }

/* 「今は使われていないルール」などの注意ボックス */
.article-body .note-box {
  background: #fdf8ed; border: 1px solid #ead9b0; border-radius: 10px;
  padding: 1.15rem 1.35rem 1.25rem;
}
/* 見出しの前に丸い「!」。左の縦線は使わない */
.article-body .note-box .note-title {
  display: flex; align-items: center; gap: .5rem;
  font-size: 13.5px; font-weight: 900; color: #8a6100; margin-bottom: .55rem;
}
.article-body .note-box .note-title::before {
  content: '!'; flex: none; width: 19px; height: 19px; border-radius: 50%;
  background: #c8912a; color: var(--white);
  font-size: 12px; font-weight: 900; line-height: 19px; text-align: center;
}
.article-body .note-box p { font-size: 14.5px; line-height: 1.95; }
.article-body th, .article-body td { border: 1px solid var(--gray-200); padding: .6rem .75rem; text-align: center; white-space: nowrap; }
.article-body th { background: var(--gray-100); font-weight: 700; }
.article-body .num { text-align: center; font-variant-numeric: tabular-nums; }
/* 表の左上に置く「計算の条件」（ポイント差・得失点差・W杯など）はバッジで見せる */
.article-body .cond-cell { white-space: normal; max-width: 30em; }
.article-body .cell-left { text-align: left; }   /* 文章や列挙が入るセルは左寄せにする */
.article-body .cond {
  display: inline-block; margin: 2px 3px; padding: 3px 10px; border-radius: 999px;
  background: var(--red-pale); color: var(--red); border: 1px solid rgba(232,0,29,.28);
  font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .02em; white-space: nowrap;
}

/* 記事内から観客数データ・口コミ・掲示板へ送るための箱 */
.inline-cta {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 8px;
  text-decoration: none; color: inherit; transition: all .2s;
}
.inline-cta:hover { border-color: var(--red); background: var(--red-pale); }
.inline-cta i { font-size: 20px; color: var(--red); flex-shrink: 0; }
/* 案内役のラガマルくん。文字は2段に組むので、狭い画面でも変な折り返しにならない */
.inline-cta img { width: 64px; height: auto; flex-shrink: 0; transition: transform .25s cubic-bezier(.22,.61,.36,1); }
/* ホバーでラガマルくんの顔だけ少し大きく。transform なので文字の位置は動かない */
.inline-cta:hover img { transform: scale(1.14); }
@media (prefers-reduced-motion: reduce) { .inline-cta img { transition: none; } }
.inline-cta .t { display: block; font-size: 14px; font-weight: 700; color: #111; line-height: 1.5; }
.inline-cta .d { display: block; font-size: 12px; color: var(--gray-600); line-height: 1.7; margin-top: 2px; }

/* 記事の最後の「前の記事へ／次の記事へ」。
   片方しか無いときも左右の位置が変わらないよう、前は左列・次は右列に固定する */
.article-pager {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.pager-link {
  display: flex; align-items: center; gap: .85rem; min-width: 0; padding: .85rem 1rem;
  background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 8px;
  text-decoration: none; color: inherit; transition: border-color .2s, background .2s;
}
.pager-link:hover { border-color: var(--red); background: var(--red-pale); }
/* display を指定しているので、hidden 属性のときは明示的に消す（空の枠が出ないように） */
.article-pager[hidden], .pager-link[hidden] { display: none; }
.pager-link.prev { grid-column: 1; }
.pager-link.next { grid-column: 2; flex-direction: row-reverse; text-align: right; }
.pager-link img { width: 88px; aspect-ratio: 600 / 315; object-fit: cover; border-radius: 5px; flex: none; }
.pager-link .pl-body { min-width: 0; flex: 1; }
.pager-link .pl-k {
  display: flex; align-items: center; gap: .4rem; font-size: 11px; font-weight: 700;
  color: var(--gray-600); letter-spacing: .04em; transition: color .2s;
}
.pager-link.next .pl-k { justify-content: flex-end; }
.pager-link:hover .pl-k { color: var(--red); }
.pager-link .pl-t {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13.5px; font-weight: 700; color: #111; line-height: 1.55; margin-top: 3px;
}
@media (max-width: 640px) {
  .article-pager { grid-template-columns: 1fr; }
  .pager-link.prev, .pager-link.next { grid-column: auto; }
}

/* 未配信の広告枠は ads.js が畳む。ここでは見た目だけ揃える */
.side-ad {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px;
}
/* 記事内広告は本文の流れに置くので、枠線も背景もラベルも付けない */
.article-ad-inline { margin: 2.25rem 0; }

@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; }
  .sidebar { order: 2; min-width: 0; }
  .sport-tabs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  /* ヒーローのボタンは、他のページと同じく縦1列・幅いっぱい */
  .hero-actions-row { flex-direction: column; width: 100%; }
  .hero-pill { width: 100%; }
}
@media (max-width: 640px) {
  /* 表は文字を少し小さくして、横スクロールの量を減らす */
  .article-body table { font-size: 13px; }
  .article-body th, .article-body td { padding: .5rem .6rem; }
  .article-body .cond { font-size: 11px; padding: 2px 8px; }
  .col-grid { grid-template-columns: 1fr; }
  .col-card { gap: .85rem; padding: .85rem .95rem .85rem .8rem; }
  .col-card-fig { width: 112px; }
  .col-card h3 { font-size: 14.5px; }
  .sport-hero { padding: 2rem 1rem 0; min-height: auto; }
  .sport-hero h1 { font-size: clamp(2.2rem, 12vw, 3.5rem); }
  .sport-hero-sub { font-size: 12px; margin-bottom: 1.25rem; }
  .hero-kpis { gap: 1.25rem; margin-bottom: 1.5rem; }
  .hero-kpi .kv { font-size: 2rem; }
  .page-body { padding: 1rem .875rem; }
  .article { padding: 1.25rem 1.1rem 1.75rem; border-radius: 8px; }
  .article-body { font-size: 15px; line-height: 1.95; }
  .sport-tabs { grid-template-columns: repeat(3, 1fr); gap: .25rem; }
  .sport-tab { padding: 6px 4px; font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .col-card, .inline-cta { transition: none; }
  .col-card:hover { transform: none; }
  .col-card-sport::before, .col-card-fig img { transition: none; }
}
