/* ========================================================
   style.css ー MIT サッカー（STATS CENTER）
   方針：白・オフホワイト・ネイビー。余白・文字・数字・罫線で組み、チームカラーは差し色だけ。
   影・発光・グラデーション・ガラス表現は使わない。
   ======================================================== */

:root {
  --hero-a: #e45a1c;
  --hero-b: #1f78b4;
  --grass: #1d6b43;
  --grass-2: #1a6139;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #111827;
  --sub: #64748b;
  --navy: #0f172a;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --team-a: #e8672a;
  --team-b: #2f8fc2;
  --team-a-soft: #fdf0e8;
  --team-b-soft: #e8f3fa;
  --font-display: "Barlow Condensed", "Arial Narrow", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  --wrap: 960px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
img { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 4px solid; border-image: linear-gradient(90deg, var(--team-a) 0 50%, var(--team-b) 50% 100%) 1; }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; height: 54px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .08em; color: var(--navy); }
.nav { display: flex; gap: 22px; height: 100%; }
.nav a { display: flex; align-items: center; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .14em; color: var(--sub); border-bottom: 2px solid transparent; padding-top: 2px; }
.nav a:hover { color: var(--ink); border-color: var(--team-a); }
.nav a:nth-child(even):hover { border-color: var(--team-b); }
.nav a.active { color: var(--navy); border-color: var(--navy); }

main { min-height: 70vh; }
.page { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 共通パーツ ---------- */
.eyebrow { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .22em; color: var(--sub); text-transform: uppercase; }
.sec { padding-top: 40px; padding-bottom: 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); margin-bottom: 4px; }
.sec-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .1em; color: var(--navy); }
.sec-link { font-size: 12.5px; font-weight: 700; color: var(--sub); }
.sec-link:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--navy); font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--navy); }
.btn:hover { background: var(--navy); color: #fff; }
.btn-solid { background: var(--navy); color: #fff; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); }
.seg button { padding: 8px 18px; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .12em; color: var(--sub); }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button.active { background: var(--navy); color: #fff; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.pill { padding: 7px 14px; border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 700; color: var(--sub); }
.pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.empty-msg { padding: 24px 0; font-size: 13px; color: var(--sub); text-align: center; }
.team-logo-wrap { display: inline-flex; flex-shrink: 0; overflow: hidden; line-height: 0; }
.team-logo-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.team-logo-wrap-B { border-radius: 50%; }
.team-logo-wrap-B img { object-fit: cover; transform: scale(1.46); transform-origin: 50% 48%; }

/* ---------- HOME：HERO（Matchday：左オレンジ × 右ブルー ＋ スコアボード ＋ 芝） ---------- */
.hero { position: relative; background: var(--navy); color: #fff; }
.h-top { display: flex; justify-content: space-between; align-items: center; padding-top: 11px; padding-bottom: 11px; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .22em; color: rgba(255, 255, 255, .75); }
.h-status { display: inline-flex; align-items: center; gap: 9px; color: #fff; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }
.h-versus { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(100deg, var(--hero-a) 0 50%, var(--hero-b) 50% 100%); padding: 22px 0 24px; }
.h-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 8px; }
.h-logo { width: 62px; height: 62px; }
.h-team b { font-family: var(--font-display); font-size: clamp(52px, 15vw, 76px); font-weight: 700; line-height: .95; letter-spacing: .02em; }
.h-team > span:last-child { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .18em; line-height: 1.35; }
.h-vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; background: var(--navy); border: 2px solid #fff; }
.h-vs em { font-style: normal; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: .06em; }
.h-board { background: #0a1020; border-top: 3px solid #fff; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.h-board-in { display: grid; grid-template-columns: 1fr 1fr; }
.bd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 0 12px; }
.bd + .bd { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .2); }
.bd b { font-family: var(--font-display); font-size: clamp(46px, 13.5vw, 66px); font-weight: 700; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.bd span { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .2em; color: #8ee0a8; }
.h-grass { position: relative; isolation: isolate; overflow: hidden; background: repeating-linear-gradient(90deg, var(--grass) 0 56px, var(--grass-2) 56px 112px); border-top: 3px solid #fff; padding: 14px 0 16px; }
.grass-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.h-venue { font-size: 17px; font-weight: 800; letter-spacing: .06em; }
.h-cd { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.countdown-line { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .14em; color: rgba(255, 255, 255, .85); }
.countdown-line b { margin-left: 8px; font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; }
.ns-link { padding: 10px 16px; background: #fff; color: var(--navy); font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .16em; }
.ns-link:hover { background: var(--navy); color: #fff; }
.no { font-style: normal; font-family: var(--font-display); font-weight: 700; color: var(--sub); margin-right: .6em; letter-spacing: .08em; }
.goal-dots { margin-top: 10px; font-family: var(--font-display); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; color: var(--sub); display: flex; justify-content: center; align-items: center; gap: 6px; }
.gd { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.gd.a { background: var(--team-a); }
.gd.b { background: var(--team-b); }
.facts { margin-top: 6px; font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--navy); }
.tl-row.end { border-left-color: var(--navy); }
.pin { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50% 50% 50% 0; background: #fff; transform: rotate(-45deg) translateY(-1px); }
.where .pin, .band .pin { background: var(--team-a); }

/* セクションごとに背景を切り替える */
.band { padding: 6px 0 34px; }
.band-white { background: var(--surface); }
.band-gray { background: var(--bg); }

/* ---------- LATEST RESULT ---------- */
.result { display: block; padding: 22px 0 26px; border-bottom: 1px solid var(--line); text-align: center; }
.result:hover .result-more { color: var(--ink); }
.result-meta { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .16em; color: var(--sub); }
.result-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 8px 0 2px; }
.result-team { font-size: 14px; font-weight: 700; line-height: 1.3; }
.result-team.a { text-align: right; }
.result-team.b { text-align: left; }
.result-team span { display: block; width: 22px; height: 3px; margin: 6px 0 0; }
.result-team.a span { background: var(--team-a); margin-left: auto; }
.result-team.b span { background: var(--team-b); }
.score { font-family: var(--font-display); font-size: clamp(64px, 20vw, 96px); font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--navy); white-space: nowrap; }
.score i { font-style: normal; color: var(--line-strong); margin: 0 .12em; font-weight: 400; }
.fulltime { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .24em; color: var(--sub); }
.result-pk { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.result-more { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--sub); }

/* ---------- NEWS ---------- */
.news-feature { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-meta { display: flex; gap: 12px; align-items: baseline; font-size: 12px; color: var(--sub); }
.news-cat { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--navy); }
.news-feature h3 { margin: 6px 0; font-size: clamp(22px, 5.5vw, 30px); line-height: 1.35; font-weight: 800; color: var(--navy); }
.news-feature p { color: var(--sub); font-size: 14px; max-width: 36em; }
.news-feature:hover h3, .news-row:hover .news-row-title { text-decoration: underline; text-underline-offset: 4px; }
.news-row { display: grid; grid-template-columns: 76px 1fr; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-row-meta { font-size: 12px; color: var(--sub); line-height: 1.4; }
.news-row-meta b { display: block; font-family: var(--font-display); font-size: 12.5px; letter-spacing: .12em; color: var(--navy); }
.news-row-title { font-size: 15px; font-weight: 700; line-height: 1.5; }
.article { max-width: 640px; margin: 0 auto; padding: 28px 20px 40px; }
.article h1 { font-size: clamp(24px, 6vw, 32px); line-height: 1.4; font-weight: 800; margin: 8px 0 20px; color: var(--navy); }
.article p { margin-bottom: 16px; line-height: 1.95; }
.article h2 { font-size: 15px; font-weight: 800; margin: 22px 0 6px; }
.article ul { margin: 0 0 16px 1.2em; line-height: 1.9; }
.back { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--sub); margin-bottom: 6px; }
.back:hover { color: var(--ink); }

/* ---------- MATCHES ---------- */
.page-title { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: .08em; color: var(--navy); padding: 30px 0 6px; }
.group-label { margin-top: 26px; padding-bottom: 6px; border-bottom: 2px solid var(--navy); font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .2em; }
.match-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.match-row:hover .mr-names { text-decoration: underline; text-underline-offset: 4px; }
.mr-no { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .1em; line-height: 1.35; }
.mr-no small { display: block; font-size: 12.5px; color: var(--sub); letter-spacing: .04em; font-weight: 600; }
.mr-names { font-size: 14px; font-weight: 700; line-height: 1.5; }
.mr-sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
.mr-score { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: .04em; line-height: 1; text-align: right; white-space: nowrap; }
.mr-score i { font-style: normal; color: var(--line-strong); margin: 0 .1em; font-weight: 400; }
.mr-score small { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .16em; color: var(--sub); }
.mr-up { font-family: var(--font-display); text-align: right; font-size: 22px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; white-space: nowrap; }
.mr-up small { display: block; font-size: 13px; color: var(--sub); letter-spacing: .14em; }

/* ---------- MATCH DETAIL ---------- */
.d-head { padding: 22px 0 28px; text-align: center; background: var(--surface); border-bottom: 1px solid var(--line); }
.d-meta { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .16em; color: var(--sub); }
.d-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; max-width: 560px; margin: 14px auto 4px; }
.d-team { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.d-team .team-logo-wrap { width: 54px; height: 54px; }
.d-note { max-width: 560px; margin: 14px auto 0; font-size: 13px; color: var(--sub); text-align: left; line-height: 1.8; }
.tl-row { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 0 12px 12px; border-top: 1px solid var(--line); border-left: 3px solid var(--line-strong); }
.tl-row.a { border-left-color: var(--team-a); }
.tl-row.b { border-left-color: var(--team-b); }
.tl-time { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .1em; color: var(--sub); }
.tl-main { font-size: 14px; font-weight: 700; }
.tl-main small { display: block; font-size: 12px; font-weight: 400; color: var(--sub); }
.bar-row { padding: 12px 0; border-top: 1px solid var(--line); }
.bar-label { display: grid; grid-template-columns: 1fr auto 1fr; font-size: 13px; }
.bar-label b { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.bar-label b:last-child { text-align: right; }
.bar-label span { color: var(--sub); font-size: 12px; align-self: center; }
.bar-track { display: flex; gap: 3px; height: 4px; margin-top: 6px; }
.bar-half { flex: 1; display: flex; }
.bar-half.l { justify-content: flex-end; }
.bar-fill { height: 100%; }
.bar-fill.a { background: var(--team-a); }
.bar-fill.b { background: var(--team-b); }
.footnote { font-size: 12px; color: var(--sub); margin-top: 10px; line-height: 1.7; }

.f-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0; }
.pitch2d { position: relative; width: 100%; max-width: 420px; aspect-ratio: 3 / 4; margin: 0 auto; background: #3b7f57; border: 2px solid #fff; outline: 1px solid var(--line-strong); }
.pitch2d::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid rgba(255, 255, 255, .7); }
.pitch-circle { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch-box { position: absolute; left: 26%; width: 48%; height: 13%; border: 2px solid rgba(255, 255, 255, .7); }
.pitch-box.top { top: 0; border-top: 0; }
.pitch-box.bottom { bottom: 0; border-bottom: 0; }
.p2d { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.p2d b { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 3px solid var(--team-a); font-family: var(--font-display); font-size: 16px; line-height: 1; color: var(--navy); }
.p2d.b b { border-color: var(--team-b); }
.p2d span { font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); white-space: nowrap; }
.pitch3d-wrap { position: relative; width: 100%; height: clamp(300px, 80vw, 520px); background: #dfe6ee; border: 1px solid var(--line-strong); }
.pitch3d-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--sub); text-align: center; padding: 20px; }
.pitch3d-reset { position: absolute; right: 10px; top: 10px; z-index: 2; padding: 6px 12px; background: #fff; border: 1px solid var(--line-strong); font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.pitch3d-legend { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .92); padding: 5px 10px; border: 1px solid var(--line-strong); }
.f-note { font-size: 12px; color: var(--sub); margin-top: 10px; line-height: 1.7; }

details.more { border-top: 2px solid var(--navy); margin-top: 44px; }
details.more > summary { list-style: none; cursor: pointer; padding: 14px 0; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: .1em; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary span { font-family: var(--font-body); font-size: 12.5px; color: var(--sub); letter-spacing: 0; font-weight: 400; }
.stats-table-wrap { overflow-x: auto; scrollbar-width: none; }
.stats-table-wrap::-webkit-scrollbar { display: none; }
.stats-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 12.5px; }
.stats-table th { padding: 8px 6px; border-bottom: 1px solid var(--line-strong); font-size: 11px; font-weight: 700; color: var(--sub); text-align: center; white-space: nowrap; line-height: 1.3; }
.stats-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; position: sticky; left: 0; background: var(--bg); padding-left: 2px; }
.stats-table td.stat-lead { font-weight: 800; background: var(--team-a-soft); }
.stats-table .cell-dim { color: #94a3b8; }
.stats-table tr.sub-row { opacity: .5; }
.player-cell { display: flex; align-items: center; gap: 8px; }
.player-cell-name { font-weight: 700; display: flex; gap: 4px; align-items: center; }
.player-cell-meta { font-size: 11px; color: var(--sub); display: block; }
.rating-badge { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 22px; padding: 0 5px; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .02em; color: #fff; font-variant-numeric: tabular-nums; }
.rating-elite { background: #15803d; }
.rating-good { background: #22a05a; }
.rating-avg { background: #e0912b; }
.rating-low { background: #dc2626; }
.p2d i { position: absolute; right: -14px; top: -8px; font-style: normal; min-width: 24px; height: 16px; padding: 0 3px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 12px; font-weight: 700; color: #fff; border: 1px solid #fff; }
.card-mini { display: inline-block; width: 7px; height: 10px; }
.card-mini.yellow { background: #eab308; }
.card-mini.red { background: #dc2626; }
.subs-toggle-btn { display: block; width: 100%; margin-top: 8px; padding: 10px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 700; color: var(--sub); }
.subs-wrap { margin-top: 8px; }
.est-banner { margin: 6px 0 12px; padding: 10px 12px; border-left: 3px solid #eab308; background: #fffbeb; font-size: 12.5px; line-height: 1.7; }

/* ---------- STATS / FAN ---------- */
.rank-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rank-num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--sub); }
.rank-num.top1 { color: var(--navy); }
.rank-name { font-weight: 700; }
.rank-meta { font-size: 12px; color: var(--sub); }
.rank-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.roster { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.roster th { text-align: left; padding: 8px 4px; font-size: 11.5px; color: var(--sub); border-bottom: 1px solid var(--line-strong); }
.roster td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.roster td:nth-child(1) { font-family: var(--font-display); font-size: 18px; font-weight: 700; width: 44px; }
.roster td:nth-child(n+4), .roster th:nth-child(n+4) { text-align: right; }

.vote-card { padding: 18px 0; border-bottom: 1px solid var(--line); }
.vote-match { font-weight: 700; margin: 4px 0 14px; }
.vote-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vote-btn { padding: 14px 6px; border: 1px solid var(--line-strong); font-size: 13.5px; font-weight: 700; background: var(--surface); }
.vote-btn.selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.vote-note { margin-top: 10px; font-size: 13px; color: var(--sub); }
.comment-form { display: grid; gap: 8px; margin: 14px 0; }
.comment-form input, .comment-form textarea { padding: 11px 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; outline: none; border-radius: 0; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--navy); }
.comment-form textarea { min-height: 70px; resize: vertical; }
.comment-form-note { font-size: 12px; color: var(--sub); }
.comment-submit-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.comment-form-msg { font-size: 12.5px; color: #b91c1c; }
.comment-submit { padding: 10px 22px; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; }
.comment-submit:disabled { opacity: .5; }
.comment-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); }
.comment-name { font-weight: 800; color: var(--ink); }
.comment-text { font-size: 14px; white-space: pre-wrap; word-break: break-word; }

/* ---------- フッター ---------- */
.site-footer { margin-top: 56px; padding: 28px 0 40px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; margin-bottom: 12px; }
.foot-links a { color: var(--sub); }
.foot-links a:hover { color: var(--ink); }
.foot-note { font-size: 11.5px; color: var(--sub); line-height: 1.8; }

@media (min-width: 720px) {
  .hero { padding: 28px 0 44px; }
  .face-logo { width: 112px; height: 112px; }
  .face-team b { font-size: 52px; }
  .ns-cells { grid-template-columns: 1fr 1fr 1fr; }
  .ns-cells > div:last-child { grid-column: auto; }
  .ns-cells > div + div { border-left: 1px solid var(--line); }
  .match-row { grid-template-columns: 110px 1fr 160px; }
  .news-row { grid-template-columns: 110px 1fr; }
  .d-team .team-logo-wrap { width: 72px; height: 72px; }
}
@media (max-width: 360px) {
  .wrap, .header-inner { padding: 0 14px; }
  .nav { gap: 14px; }
  .match-row { grid-template-columns: 66px 1fr auto; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .page { animation: none; } }

/* ---------- LAST MATCH（白地・スコアが主役） ---------- */
.score u { text-decoration: none; }
.score .sa { color: var(--team-a); }
.score .sb { color: var(--team-b); }
.result { border-bottom: 0; padding-bottom: 8px; }
.result-team b { display: block; font-family: var(--font-display); font-size: 28px; line-height: 1; letter-spacing: .04em; margin-bottom: 4px; }
.result-team.a b { color: var(--team-a); }
.result-team.b b { color: var(--team-b); }
.result-team { font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; }
.match-row .mr-names em { font-style: normal; color: var(--sub); font-size: 12px; letter-spacing: .1em; }
.pitch3d-wrap { background: #0f1626; border-color: #0f1626; }
.pitch3d-msg { color: rgba(255, 255, 255, .7); }
@media (min-width: 720px) {
  .h-logo { width: 84px; height: 84px; }
  .h-versus { padding: 34px 0 36px; }
  .h-vs { width: 66px; height: 66px; }
}

/* ---------- 試合詳細の頭（ネイビー） ---------- */
.d-head.dark { background: var(--navy); color: #fff; border-bottom: 3px solid #fff; }
.d-head.dark .back, .d-head.dark .d-meta, .d-head.dark .fulltime, .d-head.dark .result-pk, .d-head.dark .d-note, .d-head.dark .countdown-line { color: rgba(255, 255, 255, .75); }
.d-head.dark .score, .d-head.dark .d-team, .d-head.dark .when b { color: #fff; }
.d-head.dark .score i { color: rgba(255, 255, 255, .3); }
.d-head.dark .no { color: #8ee0a8; }
.d-head.dark .when span { color: #8ee0a8; }
.d-head.dark .when { border-color: rgba(255, 255, 255, .4); }
.d-head.dark .w-time { border-left-color: rgba(255, 255, 255, .25); }
.d-head.dark .face-vs i { background: rgba(255, 255, 255, .3); }
.d-head.dark .face-vs em { color: #fff; }
.d-head.dark .where { color: #fff; }
.d-head.dark .btn { color: #fff; border-color: #fff; }
.d-head.dark .btn:hover { background: #fff; color: var(--navy); }
.d-head.dark .count { color: #fff; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* 得点・アシストのマーク */
.marks { position: absolute; left: -16px; top: -10px; display: flex; flex-direction: column; gap: 2px; }
.mk { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 18px; height: 18px; padding: 0 3px; font-family: var(--font-display); font-size: 12px; font-weight: 700; line-height: 1; border-radius: 50%; }
.mk em { font-style: normal; font-size: 10px; }
.mk.goal { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.mk.assist { background: var(--navy); color: #fff; border: 1px solid #fff; }
.legend-marks { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
.legend-marks .mk { margin-left: 6px; }

/* ---------- 選手図鑑 ---------- */
.muted-note { font-size: 13px; color: var(--sub); }
.plink { text-decoration: underline; text-underline-offset: 3px; }
.pl-row { display: grid; grid-template-columns: 44px 1fr repeat(3, 44px); align-items: center; gap: 6px; padding: 12px 0 12px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid; }
.pl-row.a { border-left-color: var(--team-a); }
.pl-row.b { border-left-color: var(--team-b); }
.pl-row:hover .pl-name { text-decoration: underline; text-underline-offset: 4px; }
.pl-no { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--navy); }
.pl-name { font-weight: 700; font-size: 16px; }
.pl-name small { display: block; font-size: 11.5px; font-weight: 400; color: var(--sub); }
.pl-fig { text-align: center; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.pl-fig small { display: block; font-size: 10.5px; letter-spacing: .1em; color: var(--sub); }
.pl-head { background: var(--navy); color: #fff; padding: 18px 0 22px; border-bottom: 4px solid; }
.pl-head.a { border-bottom-color: var(--team-a); }
.pl-head.b { border-bottom-color: var(--team-b); }
.pl-head .back { color: rgba(255, 255, 255, .7); }
.pl-top { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.pl-bignum { font-family: var(--font-display); font-size: 88px; font-weight: 700; line-height: .9; }
.pl-head.a .pl-bignum { color: #f08a4b; }
.pl-head.b .pl-bignum { color: #52b4e6; }
.pl-bigname { font-size: 28px; font-weight: 800; line-height: 1.2; }
.pl-sub { font-size: 13px; color: rgba(255, 255, 255, .75); margin-top: 2px; }
.totals { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line-strong); margin-top: 0; }
.totals > div { padding: 14px 4px 10px; text-align: center; }
.totals > div + div { border-left: 1px solid var(--line); }
.totals small { display: block; font-family: var(--font-display); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--sub); }
.totals b { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.kv { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv b { font-family: var(--font-display); font-size: 19px; }
.pm-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pm-row:hover .pm-main b { text-decoration: underline; text-underline-offset: 3px; }
.pm-main { flex: 1; min-width: 0; }
.pm-main b { display: block; font-size: 14.5px; }
.pm-main small { font-size: 11.5px; color: var(--sub); }
.pm-row .rating-badge { min-width: 42px; height: 30px; font-size: 19px; }
.mom { font-style: normal; padding: 2px 8px; background: var(--navy); color: #fff; font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.marks.inline { position: static; flex-direction: row; }

/* ホームの選手一覧（背番号チップ） */
.chip-team { padding: 12px 0 6px; }
.chip-label { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: .08em; padding-bottom: 6px; border-bottom: 3px solid; }
.chip-label span { margin-left: 10px; font-size: 12px; letter-spacing: .14em; color: var(--sub); }
.chip-team.a .chip-label { color: var(--team-a); border-color: var(--team-a); }
.chip-team.b .chip-label { color: var(--team-b); border-color: var(--team-b); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
.chips a { min-width: 42px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); background: #fff; font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy); }
.chip-team.a .chips a:hover { background: var(--team-a); border-color: var(--team-a); color: #fff; }
.chip-team.b .chips a:hover { background: var(--team-b); border-color: var(--team-b); color: #fff; }

.pos-row { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding-top: 10px; }
.pos-tag { padding-top: 12px; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--sub); }
.chips a { gap: 6px; padding: 0 10px; font-size: 14px; font-weight: 700; font-family: var(--font-body); }
.chips a b { font-family: var(--font-display); font-size: 20px; }
.group-label span { margin-left: 10px; font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: .04em; color: var(--sub); }

/* ---------- WHO WILL WIN? ---------- */
.fan-hero { background: var(--navy); color: #fff; padding: 22px 0 28px; border-bottom: 4px solid; border-image: linear-gradient(90deg, var(--team-a) 0 50%, var(--team-b) 50% 100%) 1; }
.fan-hero .eyebrow { color: rgba(255, 255, 255, .7); }
.fan-title { margin-top: 6px; font-family: var(--font-display); font-size: clamp(44px, 13vw, 72px); font-weight: 700; line-height: 1; letter-spacing: .04em; }
.fan-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 18px 0 8px; }
.fan-teams > div { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .14em; line-height: 1.35; }
.fan-logo { width: 56px; height: 56px; }
.fan-teams em { font-style: normal; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .16em; color: rgba(255, 255, 255, .7); }
.fan-q { margin: 14px 0 12px; font-size: 17px; font-weight: 800; text-align: center; }
.vote-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vote-big { display: flex; align-items: baseline; justify-content: center; gap: 8px; min-height: 64px; color: #fff; border: 2px solid transparent; }
.vote-big b { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; }
.vote-big span { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: .2em; }
.vote-big.a { background: var(--hero-a); }
.vote-big.b { background: var(--hero-b); }
.vote-big:hover { border-color: #fff; }
.vote-big.on { border-color: #fff; }
.peek { display: block; margin: 12px auto 0; font-size: 12.5px; color: rgba(255, 255, 255, .7); text-decoration: underline; text-underline-offset: 3px; }
.your-pick { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 10px 14px; border-left: 4px solid; background: rgba(255, 255, 255, .06); }
.your-pick.a { border-color: var(--team-a); }
.your-pick.b { border-color: var(--team-b); }
.your-pick small { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .22em; color: rgba(255, 255, 255, .7); }
.your-pick b { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.your-pick.a b { color: #f08a4b; }
.your-pick.b b { color: #52b4e6; }
.your-pick em { font-style: normal; font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.change { margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.change button { margin-left: 8px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .5); font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.change button:hover { background: #fff; color: var(--navy); }
.crowd-total { margin: 16px 0 6px; font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: .2em; color: var(--sub); }
.crowd-total b { font-size: 34px; color: var(--navy); letter-spacing: .02em; margin-right: 4px; }
.crowd-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; }
.cr b { display: block; font-family: var(--font-display); font-size: clamp(54px, 17vw, 84px); font-weight: 700; line-height: 1; }
.cr.a b, .cr.a span { color: var(--team-a); }
.cr.b { text-align: right; }
.cr.b b, .cr.b span { color: var(--team-b); }
.cr span { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: .1em; }
.cr small { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--sub); }
.crowd-vs { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: .16em; color: var(--sub); padding-bottom: 28px; }
.cbar { display: flex; height: 12px; margin-top: 10px; background: var(--line); }
.cbar i { display: block; height: 100%; transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.cbar i.a { background: var(--team-a); }
.cbar i.b { background: var(--team-b); }
.fan-note { padding: 14px 0; font-size: 13px; color: var(--sub); line-height: 1.8; }
.momentum { margin-top: 8px; }
.momentum .rt-label span { margin-left: 10px; font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.mm { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.mm .a { color: var(--team-a); }
.mm .b { color: var(--team-b); }
.mm b { margin-left: 8px; color: var(--navy); }
.pred3d { position: relative; width: 100%; height: clamp(280px, 72vw, 440px); background: #0f1626; margin-top: 12px; }
.rt-label { margin-top: 18px; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .2em; color: var(--sub); }
@media (prefers-reduced-motion: reduce) { .cbar i { transition: none; } }

/* ホームの予想ブロック（ヒーローの中・大きな対決ブロックの直下） */
.h-vote { background: #070d1b; border-top: 3px solid #fff; padding: 16px 0 18px; }
.hv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hv-head h2 { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: .06em; color: #fff; }
.hv-head span { font-size: 14px; font-weight: 800; color: #8ee0a8; }
.h-vote .vote-big { min-height: 76px; }
.h-vote .vote-big b { font-size: 48px; }
.hv-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hv-note { font-size: 13px; color: rgba(255, 255, 255, .75); }
.h-vote .your-pick { margin: 0 0 10px; }
.hv-pct { display: flex; justify-content: space-between; margin-bottom: 6px; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.hv-pct .a { color: #f08a4b; }
.hv-pct .b { color: #52b4e6; }
.h-vote .cbar { background: rgba(255, 255, 255, .15); }

/* 3D MATCH PREDICTION の重ね表示 */
.p3-hud { position: absolute; left: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; background: rgba(7, 13, 27, .78); color: #fff; pointer-events: none; }
.p3-hud b { font-family: var(--font-display); font-size: 17px; letter-spacing: .1em; }
.p3-hud span { font-family: var(--font-display); font-size: 13px; letter-spacing: .16em; color: rgba(255, 255, 255, .7); }
.p3-auto { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 12px; letter-spacing: .16em; color: rgba(255, 255, 255, .8); pointer-events: none; opacity: .45; transition: opacity .3s; }
.p3-auto i { width: 7px; height: 7px; border-radius: 50%; background: #8ee0a8; }
.pred3d[data-auto="on"] .p3-auto { opacity: 1; }
.pred3d .pitch3d-legend { left: auto; right: 12px; bottom: 12px; }
.pred3d { height: clamp(320px, 80vw, 520px); }
.foot-copy { margin-top: 10px; font-size: 12px; letter-spacing: .04em; color: var(--sub); }

/* LONG LEG GAME（試作）：サッカーのユニフォーム姿（顔なし）。左足 = MJ / 右足 = MS */
.legs { display: flex; flex-direction: column; align-items: center; min-height: 440px; padding: 22px 0 0; background: linear-gradient(#f4f6fa, #e8edf5); border-bottom: 6px solid var(--grass, #3c7d45); overflow: hidden; }
.figure { display: flex; flex-direction: column; align-items: center; flex: 1; justify-content: flex-start; }
.torso { display: block; width: 189px; height: 216px; }
.lgrow { display: flex; align-items: flex-start; width: 189px; }
.legteam { display: flex; transform-origin: top center; }
.legteam.a { width: 92px; }
.legteam.b { width: 97px; }
.lg { display: block; position: relative; width: 100%; background-size: 100% 100%; background-repeat: no-repeat; transition: height 1s cubic-bezier(.3, 1.5, .5, 1); }
.legteam.a .lg { background-image: url(../assets/leg_l.jpg); }
.legteam.b .lg { background-image: url(../assets/leg_r.jpg); }
.lg b { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; }
.legteam.a .lg b { background: var(--team-a); }
.legteam.b .lg b { background: var(--team-b); }
.legnames { display: flex; justify-content: center; gap: 28px; padding: 14px 0 12px; }
.legnames div { min-width: 120px; text-align: center; }
.legnames b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: .08em; }
.legnames .a b { color: var(--team-a); }
.legnames .b b { color: var(--team-b); }
.legnames small { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--sub); }
.legteam.pop { animation: legpop .9s ease; }
@keyframes legpop { 30% { transform: scaleX(1.08) rotate(-2deg); } 60% { transform: scaleX(.97) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .lg { transition: none; } .legteam.pop { animation: none; } }

/* スマホ：ブランドの下にタブ状のメニューを並べる（5項目） */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; justify-content: flex-start; }
  .brand { padding: 10px 0 0; }
  .nav { width: 100%; height: 42px; gap: 0; justify-content: space-between; }
  .nav a { flex: 1; justify-content: center; font-size: 13px; letter-spacing: .08em; border-bottom: 3px solid transparent; }
}
