/* /tournament/N/（トーナメント表ページ共通）（3位決定戦の1行・本文の表の列幅・印刷の追加）。共通の見た目は seo.css（docs/SEO_PAGE_DESIGN.md） */
.t8-third:empty { display: none; }
.t8-third-box { display: flex; gap: 8px; align-items: center; margin: 8px 0 0; font-size: 15px; line-height: 1.6; }
.t8-third-box .v { margin: 0 8px; color: var(--ink-2); font-size: 14px; }
.t8-third-no { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); border: 1.5px solid var(--ink); font: 800 14px/1 var(--num); }

/* ---------- 上の塊（h1・リード文・案内ボックス）。2026-10-24 オーナー指示: ページで一番強い塊にし、答えの帯と図より先に目に入れる ----------
   色は style.css のトークンだけ: 白の面（--card）＋上に6pxの --sky の線＋影（--shadow-lg）。印は --sky、項目の区切りは --line */
.seo-top { margin: 8px -8px 40px; padding: 24px 16px 16px; background: var(--card); border-top: 6px solid var(--sky); border-radius: 16px; box-shadow: var(--shadow-lg); }
.seo-top .seo-h1 { margin: 0 0 16px; font-size: 30px; line-height: 1.3; }
.seo-leadtext { margin: 0; font-size: 18px; line-height: 1.7; word-break: normal; overflow-wrap: anywhere; text-wrap: pretty; max-width: none !important; }
.seo-guide { margin: 24px 0 0; }
.sg-g + .sg-g { margin-top: 24px; }
.sg-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; font-weight: 800; line-height: 1.4; color: var(--sky-deep); max-width: none !important; }
.sg-no { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sky); color: #fff; font: 800 15px/1 var(--num); }
.seo-guide ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.seo-guide li { margin: 0; border-bottom: 1px solid var(--line); max-width: none !important; }
:where(body.seo) .seo-guide a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 28px 8px 0; position: relative; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.45; text-decoration: none; }
.seo-guide a::after { content: "↓"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--sky); font-weight: 800; }
.seo-guide a:hover .sg-t, .seo-guide a:focus-visible .sg-t { text-decoration: underline; text-underline-offset: 3px; }
.sg-t { word-break: normal; overflow-wrap: anywhere; }
.sg-mk { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 800 14px/1 var(--num); }
.sg-check .sg-mk { background: var(--sky-soft); }
.sg-check .sg-mk::before { content: ""; width: 10px; height: 6px; margin-top: -3px; border-left: 2.5px solid var(--sky); border-bottom: 2.5px solid var(--sky); transform: rotate(-45deg); }
.sg-num .sg-mk { border: 1.5px solid var(--sky); color: var(--sky-deep); border-radius: 50%; }
@media (min-width: 768px) {
  .seo-top { margin: 16px 0 40px; padding: 32px 32px 24px; }
  .seo-top .seo-h1 { font-size: 32px; }
  :where(body.seo) .seo-guide a { font-size: 18px; }
}
.seo-guide li.sg-plain { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 0; font-size: 17px; font-weight: 700; line-height: 1.45; }
@media (min-width: 768px) { .seo-guide li.sg-plain { font-size: 18px; } }
/* PC（1024px以上）: 縦1列のまま（2026-10-24 オーナー指示: ①→②→③が左右に振れて迷うため）。幅は本文680pxより少し広い760px */
@media (min-width: 1024px) {
  .seo-top { width: 760px; margin-left: calc(50% - 380px); }
}

/* 道具の節の見出し（tool.headingTop）: 図の上に h2 と1文。PCは2列の上に通しで置く */
.work-head { margin: 0 0 16px; }
.work-head .work-toph { margin: 0 0 8px; }
.work-head p { margin: 0; }
.work-ctrl .work-h-sub { margin: 16px 0 8px; font-size: 18px; font-weight: 800; }
@media (min-width: 1024px) {
  body.seo-v2 .seo-work.has-toph { grid-template-areas: "head head" "ctrl fig" "ctrl can" "ctrl out"; }
  .seo-work.has-toph .work-head { grid-area: head; margin-bottom: 24px; }
}
@media print { html body.seo .work-head { display: none !important; } }

/* 答えの帯と図は、上の塊より弱く（2026-10-24 オーナー指示）。黄色い面をやめて白地＋左の細い黄色の線だけ、数字も一段小さく */
body.seo-v2 .seo-ans { margin: 0 0 24px; padding: 8px 0 8px 16px; background: none; border-left: 3px solid var(--yellow); border-radius: 0; }
body.seo-v2 .seo-ans-t { font-size: 17px; }
body.seo-v2 .seo-ans-n dd b { font-size: 26px; }
body.seo-v2 .seo-ans-n dd small { font-size: 16px; }
body.seo-v2 .work-board .bk-wrap { background: none; border-color: transparent; padding: 0; }
@media print { html body.seo .seo-top { display: none !important; } }

/* 本文の比べる表（スマホ358pxに4列で入れる） */
.t8-time th[scope=row] { line-height: 1.4; }
.t8-time .num { width: 1%; }
.t8-vs th[scope=row] { width: 28%; font-size: 14px; }
.t8-vs .t8-l { text-align: left; }
.t8-place td.vs .side:empty { display: none; }

/* 印刷: 3位決定戦の行とメモ */
@media print {
  html body.seo .t8-memo { margin: 3mm 0 0; padding: 2.5mm 3mm; border: 1pt solid #000; font-size: 10pt; line-height: 1.6; }
  html body.seo .t8-memo.t8-empty { display: none; }
  html body.seo .t8-third-box { font-size: 10pt; margin-top: 3mm; }
  html body.seo .t8-third-no { background: #fff; border: 1pt solid #000; }
}

/* 本文の記入例（結果と点数の書き方）。色は style.css のトークンだけ */
.t8-ex { margin: 16px 0; }
.t8-ex svg { display: block; width: 100%; max-width: 420px; height: auto; }
.t8-ex-l { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.t8-ex-w { fill: none; stroke: var(--red); stroke-width: 4; stroke-linejoin: round; }
.t8-ex-n { font-size: 14px; font-weight: 700; fill: var(--ink); }
.t8-ex-s { font: 800 16px var(--num); fill: var(--ink); }
.t8-ex-c { font-size: 12px; fill: var(--ink-2); }
.t8-ex figcaption { margin-top: 8px; font-size: var(--fs-sub); color: var(--ink-2); line-height: 1.6; }

/* ---------- 単発ページ（/tournament/excel/・/timeschedule/・/aisatsu/kaikaishiki/）の追加部品 ---------- */
.ss-dl { white-space: nowrap; font-weight: 700; }
.ss-copy { background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 10px 12px 12px; margin: 12px 0; }
.seo-body p.ss-copy-h { margin: 0 0 6px; font-size: 15px; }
.ss-copy-h span { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 400; }
.ss-copy pre { margin: 0 0 8px; padding: 10px 12px; background: #fffdf4; border-radius: 10px; font: 15px/1.85 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.ss-copy .ss-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-fill { display: grid; gap: 8px; margin: 12px 0; padding: 12px; background: #fffdf4; border-radius: 12px; border: 1.5px solid var(--line-2); }
.ss-fill label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.ss-fill input { font: inherit; font-weight: 400; padding: 8px 10px; border: 1.5px solid var(--line-2); border-radius: 8px; min-height: 44px; }

/* /league/kachiten/ の勝ち点の計算機 */
.kc-calc { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 4px 16px 16px; margin: 18px 0; border: 1px solid rgba(20, 40, 75, .05); }
.kc-pts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; margin: 8px 0; }
.kc-pts label { display: block; margin-top: 6px; font-weight: 700; font-size: 14px; }
.kc-calc input[type=number], .kc-calc input[type=text] { width: 100%; min-height: 44px; padding: 6px 8px; border: 1.5px solid var(--line-2); border-radius: 8px; font: inherit; background: #fff; box-sizing: border-box; }
.kc-in { min-width: 440px; }
.kc-in td, .kc-in th { padding: 4px; }
.kc-in td input[type=number] { text-align: center; padding: 6px 2px; }
.kc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.kc-btns .btn.on { outline: 2px solid var(--blue, #2f6fed); }
