
/* ベースリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 全体背景 */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #0a1a2f, #1f4068);
  color: #fff;
  padding: 2rem;
  line-height: 1.6;
}

/* ページタイトル */
h1 {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  color: #ffd700; /* ゴールドで優勝の雰囲気 */
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* 更新日 */
body > p:first-of-type {
  text-align: center;
  font-size: 0.9rem;
  color: #ddd;
  margin-bottom: 2rem;
}

/* ロゴデザイン */
.site-logo {
  text-align: center;
  margin: 2.5rem 0 1.5rem;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
}

.logo-main {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  text-transform: lowercase;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #d4af37 40%,
    #ffffff 80%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.2rem 0.7rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a1a2f;
  background: linear-gradient(135deg, #ffd700, #ffb700);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(255,215,0,0.45);
}


/* 見出しのスタイル */
h2, h3 {
  text-align: left;
  margin: 1.5rem 0 0.75rem;
  border-left: 4px solid #ffd700;
  padding-left: 0.75rem;
}

h2 {
  font-size: 2rem;
  color: #e0e0e0;
}

h3 {
  font-size: 1.4rem;
  color: #f8f8f8;
  margin-top: 0.5rem;
}

/* 見出し下のリスト風表現 */
h3 + h3,
h3 + p,
p + h3 {
  margin-top: 0.25rem;
}

section {
  margin-bottom: 2rem;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.2rem;
  }
}

/* ランキング表 */
.ranking {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ヘッダー */
.ranking thead {
  background: linear-gradient(135deg, #ffd700, #ffb700);
  color: #0a1a2f;
}

.ranking th {
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ボディ */
.ranking td {
  padding: 0.9rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.95rem;
}

/* 行ホバー */
.ranking tbody tr:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* 1位を強調 */
.ranking tbody tr:first-child {
  background: rgba(255, 215, 0, 0.15);
  font-weight: 700;
}

/* 最終行のボーダー消す */
.ranking tbody tr:last-child td {
  border-bottom: none;
}

/* レイアウトの芯 */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* 背景と分離させて「1枚のボード感」 */
.container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

h1 {
  text-align: center;
}

h2, h3 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ranking {
  margin-left: auto;
  margin-right: auto;
}

.ranking {
  width: 100%;
  max-width: 640px;   /* ← hit-table と完全一致 */
  margin: 2.5rem auto;
}

.ranking th:first-child,
.ranking td:first-child {
  width: 80px;
}

section,
table,
h2 {
  margin-top: 3rem;
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  outline: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

/* 優勝ヒーローエリア */
.champion {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 4rem auto;
  padding: 2.5rem;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.03)
  );
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

/* ビジュアル側 */
.champion-visual {
  display: grid;
  grid-template-columns: 260px 180px; /* ← ここが肝 */
  gap: 1.2rem;
  align-items: end;
}
/* 国旗 */
.flag-frame {
  width: 100%;
  height: 150px;
  border-radius: 18px;
  overflow: hidden;
}

.flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* メッシ */
.messi {
  position: static;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid rgba(255,255,255,0.85);
  box-shadow: 0 15px 40px rgba(0,0,0,0.55);
}
/* テキスト側 */
.champion-text h2 {
  font-size: 1.4rem;
  color: #ffd700;
  margin-bottom: 0.3rem;
}

.champion-text h3 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .champion-visual {
    grid-template-columns: 1fr;
  }
}

.hit-table {
  width: 100%;
  max-width: 640px;   /* ← 横幅を統一（重要） */
  margin: 2.5rem auto;
  border-collapse: collapse;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

/* ヘッダ */
.hit-table thead {
  background: rgba(255,215,0,0.85);
  color: #0a1a2f;
}

/* セル共通 */
.hit-table th,
.hit-table td {
  padding: 0.9rem 1rem;
  text-align: center;
}

/* 列幅を固定（ズレ防止） */
.hit-table th:first-child,
.hit-table td:first-child {
  width: 80px;
}

/* 行の区切り */
.hit-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* ホバー */
.hit-table tbody tr:hover {
  background: rgba(255,255,255,0.12);
}

/* 得点王は少しクール寄り */
.topscorer {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.04)
  );
}

/* 上部アンカーナビ（大きめ・主役仕様） */
.anchor-nav {
  position: sticky;
  top: 1.4rem;
  z-index: 100;

  display: inline-flex;
  align-items: center;
  gap: 1rem;

  padding: 1rem 2.2rem;   /* ← 高さUP */
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.06)
  );

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 18px 50px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.14);
}


.anchor-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.anchor-nav a {
  font-size: 1rem;      /* ← 0.85rem → 1rem */
  font-weight: 700;
  padding: 0.5rem 0.9rem;
}

.anchor-nav span {
  font-size: 0.9rem;
  margin: 0 0.4rem;
}

html {
  scroll-behavior: smooth;
}

#champion,
#topscorer,
#prediction {
  scroll-margin-top: 40px;
}

.nav-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.history {
  margin-top: 4rem;
}

/* テーブル本体 */
.history-table {
  width: 100%;
  max-width: 640px;   /* ← 他テーブルと完全一致 */
  margin: 2.5rem auto;
  border-collapse: collapse;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

/* ヘッダ */
.history-table thead {
  background: rgba(255,215,0,0.85);
  color: #0a1a2f;
}

/* セル共通 */
.history-table th,
.history-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

/* 列幅固定（美しく揃える） */
.history-table th:first-child,
.history-table td:first-child {
  width: 90px;
}

.history-table th:last-child,
.history-table td:last-child {
  width: 120px;
  font-weight: 700;
}

/* 行区切り */
.history-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* ホバー */
.history-table tbody tr:hover {
  background: rgba(255,255,255,0.12);
}

/* 大会名セル */
.tournament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

/* 過去大会テーブル用 */
.history-table {
  max-width: 900px; /* 他の表と横幅統一 */
}

/* 大会名セル（左揃え） */
.history-table .tournament {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* 優勝者名も左揃え */
.history-table .winner {
  text-align: left;
  padding-left: 1.2rem;
}

/* SVG 国旗アイコン（PC/スマホ完全安定版） */
.flag-icon {
  width: auto;
  height: auto;

  max-width: 36px;
  max-height: 24px;

  object-fit: contain;
  object-position: center;

  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.35);
}

.flag-icon {
  transition: transform 0.2s ease;
}

.history-table tr:hover .flag-icon {
  transform: scale(1.08);
}

/* 大会名セル：完全に左揃え */
.history-table .tournament {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* 国旗をまとめるラッパー */
.history-table .flags {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

/* SVG国旗：基本サイズ */
.flag-icon {
  max-width: 36px;
  max-height: 24px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.35);
}

/* 2国開催用：少し小さく */
.flag-icon.small {
  max-width: 24px;
  max-height: 16px;
}

/* 行の高さを安定させる（PC対策） */
.history-table td {
  line-height: 1.4;
}

/* ====== 上書き用：大会名セルを確実に左揃え ====== */
.history-table td.tournament {
  text-align: left !important;
  vertical-align: middle;
  padding-left: 1rem;
}

/* flex を使わず自然な左揃えに */
.history-table td.tournament .flags {
  display: inline-block;
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* 国旗サイズをPCでも暴れさせない */
.history-table td.tournament img,
.history-table td.tournament svg {
  width: 30px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

/* 2国開催用の小さい旗 */
.history-table td.tournament img.small,
.history-table td.tournament svg.small {
  width: 24px;
  height: 16px;
}

/* ---- 強制 左揃え ---- */
.history-table td.tournament,
.history-table td.winner {
  text-align: left !important;
  padding-left: 1rem;
  vertical-align: middle;
}

/* 国旗とタイトルを並べる */
.history-table td.tournament .flags {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* 国旗サイズ */
.history-table td.tournament .flags img {
  width: 28px;
  height: 20px;
  object-fit: contain;
}

/* 過去の優勝者表の左揃え強制 */
table th,
table td {
  text-align: left !important; /* Markdown生成表の標準より優先 */
}

/* 必要であれば大会名セルだけ別指定 */
table td:nth-child(2) {
  text-align: left !important;
}

/* 勝者セルも左 */
table td:nth-child(3) {
  text-align: left !important;
}

/* 大会名セルを「左から並ぶ横並び」にする */
.history-table td.tournament {
  text-align: left !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding-left: 1.2rem;
}

/* 国旗グループ */
.history-table td.tournament .flags {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* 国旗サイズ統一 */
.history-table td.tournament img {
  width: 28px;
  height: 20px;
  object-fit: contain;
}

/* 2国開催用 */
.history-table td.tournament img.small {
  width: 22px;
  height: 16px;
}

/* 大会名テキスト */
.history-table td.tournament .title {
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.last-update {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
  font-style: italic;
}

.table-common {
  width: 100%;
  max-width: 700px; /* ← 好きな基準幅。他と揃えたいなら同じ値に */
  margin: 2.5rem auto;
  border-collapse: collapse;
}

/* ===== 過去の優勝者テーブル 横幅統一 ===== */
.history-table {
  width: 100%;
  max-width: 700px;        /* 他の表と同じ基準幅 */
  margin: 2.5rem auto;
  border-collapse: collapse;
  table-layout: fixed;     /* 列幅固定ルールに切り替え */
}

/* 左寄せとバランス調整 */
.history-table th,
.history-table td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  vertical-align: middle;
}

/* 1列目：大会番号固定幅 */
.history-table th:first-child,
.history-table td:first-child {
  width: 90px;
  text-align: center;
}

/* 最後列：優勝者固定幅 */
.history-table th:last-child,
.history-table td:last-child {
  width: 140px;
}

/* 真ん中の大会名は残り幅 */
.history-table th:nth-child(2),
.history-table td:nth-child(2) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==== 全体リセット ==== */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* ← スクロールバーを殺す */
}

/* ==== ヒーロー全画面固定 ==== */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ==== 背景動画 ==== */
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ← 超重要 */
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* ==== 中身 ==== */
.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

/* ===== 完全リセット ===== */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* ===== ヒーローを画面ぴったり ===== */
.hero {
  position: fixed;       /* ← これが効く */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

/* ===== 背景動画を完全フィット ===== */
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* ===== オーバーレイ（文字読みやすく） ===== */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

/* ===== 中身 ===== */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.tournament-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-top: 3rem;
}

.tournament-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;

  padding: 1.4rem 1.6rem;
  border-radius: 20px;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.03)
  );

  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);

  color: #fff;
  text-decoration: none;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tournament-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.tournament-card .flags img {
  width: 42px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.tournament-card .info {
  flex: 1;
  text-align: left;
}

.tournament-card .round {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 0.2rem;
}

.tournament-card .title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.tournament-card .winner {
  font-weight: 700;
  color: #ffd700;
  white-space: nowrap;
}

/* 大会アンカー先ヒーロー */
.tournament-hero {
  margin: 4rem auto 3rem;
  max-width: 900px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  padding: 2.5rem;
}

.tournament-inner {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

/* 大会ロゴ（正方形） */
.tournament-logo {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.tournament-logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* テキスト */
.tournament-text .label {
  color: #ffd200;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.tournament-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
}

/* モバイル対応 */
@media (max-width: 600px) {
  .tournament-inner {
    flex-direction: column;
    text-align: center;
  }

  .tournament-logo {
    width: 120px;
    height: 120px;
  }
}

/* ===== アーカイブロゴ ===== */
.archive-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 2rem;
  text-align: center;
}

.archive-icon {
  font-size: 2.4rem;
  color: #ffd700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.archive-text .archive-main {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffd700;
}

.archive-text .archive-sub {
  display: block;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}

/* ===== tournament（各大会）を縦積みに固定 ===== */
.tournament {
  display: block !important;
}

/* 大会ヒーローは中央寄せ */
.tournament-hero {
  display: block !important;
  margin-bottom: 40px;
}

/* 結果ブロックは必ず縦に並ぶ */
.result-block {
  width: 100%;
  margin-bottom: 32px;
}

/* テーブルが横カード化されるのを防ぐ */
.result-block table {
  width: 100%;
}

.champion {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* 国旗 */
.flag-frame {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 写真 */
.champion-visual {
  flex: 1;
}

/* テキスト */
.champion-text {
  flex: 2;
}

/* ===== 国旗レイアウト（1：1：2 用） ===== */

/* 国旗エリア（枠） */
.flag-frame {
  flex: 1;                 /* ← 1 */
  max-width: 120px;        /* エリアの最大幅 */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 国旗画像そのもの */
.flag-frame img.flag {
  width: auto;
  max-width: 80px;         /* 実際に見えるサイズ */
  height: auto;
  border-radius: 6px;
  display: block;
}

.winner-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.champion-photo {
  flex: 1;
  max-width: 160px;
}

.champion-photo img {
  width: 100%;
  border-radius: 12px;
}

/* ===== 優勝行 全体 ===== */
.winner-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ===== 1：国旗 ===== */
.flag-frame {
  flex: 1;
  min-width: 140px;          /* ← 見た目の土台 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.flag-frame img.flag {
  width: 72px;               /* 実サイズ */
  height: auto;
  border-radius: 6px;
  display: block;
}

/* ===== 1：写真 ===== */
.champion-photo {
  flex: 1;
  min-width: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.champion-photo img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}

/* ===== 2：テキスト ===== */
.champion-info {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== 優勝・得点王エリアのバランス修正 ===== */

.champion {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr; /* 1:1:2 */
  align-items: center;
  gap: 40px;
  padding: 60px;
}

/* 国旗 */
.flag-frame {
  display: flex;
  justify-content: center;
}

.flag-frame img.flag {
  width: 100%;
  max-width: 140px; /* 少し大きくする */
  height: auto;
  border-radius: 10px;
}

/* テキスト */
.champion-text {
  text-align: left;
}

.champion-text h3 {
  font-size: 48px;
  margin-top: 10px;
}

.champion-text {
  writing-mode: horizontal-tb !important;
  transform: none !important;
}

.champion-text h3 {
  writing-mode: horizontal-tb !important;
  transform: none !important;
}

/* 国旗 */
.flag-frame img.flag {
  max-width: 150px;
}

/* 写真 */
.champion-visual img {
  max-width: 300px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* テキスト */
.champion-text h3 {
  font-size: 56px;
  letter-spacing: 4px;
}

/* ============================= */
/* ===== 2018 優勝エリア最終版 ===== */
/* ============================= */

/* 優勝行レイアウト */
.winner-row {
  display: grid;
  grid-template-columns: 120px 200px 1fr; /* 国旗 / 写真 / テキスト */
  align-items: center;
  gap: 40px;
  margin: 60px auto;
  max-width: 900px;
}

/* 国旗 */
.winner-row .flag-frame {
  display: flex;
  justify-content: center;
  align-items: center;
}

.winner-row .flag-frame img.flag {
  width: 90px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* 写真 */
.winner-row .champion-photo {
  display: flex;
  justify-content: center;
}

.winner-row .champion-photo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* テキスト */
.winner-row .champion-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.winner-row .champion-info .label {
  color: #ffd700;
  font-weight: 700;
  margin-bottom: 8px;
}

.winner-row .champion-info h3 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0;
  border: none;
  padding: 0;
}

/* ===== モバイル ===== */
@media (max-width: 768px) {
  .winner-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .winner-row .champion-info {
    align-items: center;
  }
}

/* ================================= */
/* ===== 優勝・得点王 安定版 ===== */
/* ================================= */

.champion {
  display: grid;
  grid-template-columns: 300px 1fr; /* 左ビジュアル / 右テキスト */
  align-items: center;
  gap: 60px;
  margin: 80px auto;
  max-width: 1000px;
  padding: 0 40px;
}

/* 左側（国旗＋写真） */
.champion-visual {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* 国旗 */
.champion-visual .flag-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}

.champion-visual .flag {
  width: 100px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* テキスト */
.champion-text {
  text-align: left;
}

.champion-text h2 {
  font-size: 20px;
  margin-bottom: 12px;
  border: none;
  padding: 0;
}

.champion-text h3 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0;
}

/* ===== モバイル ===== */
@media (max-width: 768px) {
  .champion {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .champion-visual {
    justify-content: center;
  }

  .champion-text {
    text-align: center;
  }
}

/* ===== 微調整 ===== */

.champion-visual {
  align-items: center;
}

.champion-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.champion-text h2 {
  margin-bottom: 8px;
}

.champion-text h3 {
  margin-top: 0;
  line-height: 1.1;
}

.champion-visual {
  display: flex;
  align-items: center;
  gap: 60px;
}

.champion-visual img {
  width: 240px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.champion-info {
  margin-left: 20px;
}


