/* ============================
   history 専用（hs- prefix）
============================ */

/* ---- コンテナ ---- */
.hs-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto 40px;
  padding: 32px;
  background: #0A1A2F;
  border: 1px solid #D4AF37;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  color: #FFFFFF;
}

/* ---- ロゴ部分 ---- */
.hs-archive-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hs-archive-icon {
  background: rgba(212,175,55,0.15);
  color: #D4AF37;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
}

.hs-archive-main {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.hs-archive-sub {
  display: block;
  font-size: 15px;
  color: #D4AF37;
}

.hs-archive-divider {
  border-bottom: 2px solid #D4AF37;
  margin: 18px 0 24px;
}

.hs-last-update {
  text-align: right;
  color: #E8C547;
  font-size: 12px;
  margin-top: 10px;
}

/* ---- WC / EURO ブロック ---- */
.hs-wc-block,
.hs-euro-block {
  max-width: 900px;
  margin: 40px auto;
  padding: 36px 48px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
  box-shadow: 0 24px 60px rgba(0,0,0,0.38);
}

.hs-wc-header,
.hs-euro-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.hs-wc-logo { width: 64px; }
.hs-euro-logo { width: 54px; }

.hs-wc-title,
.hs-euro-title {
  font-size: 30px;
  font-weight: 800;
}

/* ---- 優勝 / 得点王 ---- */
.hs-line {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 32px 0;
}

.hs-flag-frame,
.hs-champion-photo {
  width: 140px !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hs-flag {
  width: 120px !important;
  height: auto !important;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.hs-champion-photo {
  padding: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
}

.hs-champion-photo img {
  width: 100% !important;
  height: auto !important;
  border-radius: 10px;
}

.hs-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hs-label { font-size: 16px; opacity: 0.75; }
.hs-team { font-size: 30px; font-weight: 800; }
.hs-country { font-size: 16px; opacity: 0.75; }

/* ---- ランキング表 ---- */
.hs-table {
  width: 100%;
  max-width: 700px;
  margin: 2.5rem auto;
  border-collapse: collapse;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.38);
}

.hs-table thead {
  background: rgba(255,215,0,0.90);
  color: #0a1a2f;
}

.hs-table th,
.hs-table td {
  padding: 1rem 1.2rem;
  text-align: center;
  font-size: 1.05rem;
}

.hs-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.hs-table tbody tr:hover {
  background: rgba(255,255,255,0.14);
}

/* ---- 星マーク ---- */
.hs-stars {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.hs-stars[data-stars="1"]::before { content: "★"; }
.hs-stars[data-stars="2"]::before { content: "★★"; }
.hs-stars[data-stars="3"]::before { content: "★★★"; }
.hs-stars[data-stars="4"]::before { content: "★★★★"; }
.hs-stars[data-stars="5"]::before { content: "★★★★★"; }

/* ---- 戻るボタン ---- */
.hs-back {
  display: inline-block;
  margin: 30px auto 0;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: 0.2s ease;
}

.hs-back:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* =========================
   トーナメントカード（大会一覧）
========================= */

/* カラム（左：WC / 右：EURO） */
.hs-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 60px auto 40px;
}

.hs-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hs-column-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 0.85;
  border-left: 5px solid #ffd700;
  padding-left: 12px;
}

.hs-euro-column .hs-column-title {
  border-left-color: #4da3ff;
}

/* カード本体 */
.hs-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 115px;
}

.hs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}

/* 国旗 */
.hs-flags {
  display: flex;
  gap: 6px;
  height: 40px;
  align-items: center;
}

.hs-flags img {
  width: 40px;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* テキスト */
.hs-info .hs-round {
  font-size: 13px;
  opacity: 0.6;
}

.hs-info .hs-title {
  font-weight: 700;
  line-height: 1.3;
}

.hs-winner {
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.9;
}

/* 色分け */
.hs-wc-column .hs-card {
  border-left: 4px solid rgba(255, 215, 0, 0.6);
}

.hs-euro-column .hs-card {
  border-left: 4px solid rgba(77, 163, 255, 0.6);
}

.hs-euro-lines {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hs-wc-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hs-wc-subicon {
  font-size: 22px;
}

.hs-wc-subtext {
  color: #ffd700;
}
.hs-round {
  font-size: 13px;
  opacity: 0.6;
}

.hs-title {
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .hs-line {
    gap: 20px;
  }
  .hs-flag {
    width: 100px !important;
  }
  .hs-champion-photo {
    width: 120px !important;
  }
  .hs-team {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .hs-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hs-flag-frame,
  .hs-champion-photo {
    width: 140px !important;
  }

  .hs-team {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .hs-table {
    width: 95%;
    margin: 1.5rem auto;
  }

  .hs-table th,
  .hs-table td {
    padding: 0.8rem 0.6rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {

  .hs-line {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .hs-flag-frame,
  .hs-champion-photo {
    width: 150px !important;
  }

  .hs-team {
    font-size: 22px;
  }
}

.hs-graph-wrapper {
  width: 100%;
  height: 400px;
  margin-top: 24px;
  padding: 16px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.ten-comment {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  align-items: flex-start;
  width: 100%;
}

.ten-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ten-line-main {
  font-size: 16px;
  font-weight: 700;
  color: #FFD700;
}

.ten-line-sub {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.5;
}

/* ============================
   history：テン導入セクション
============================ */

.history-ten-wrapper {
  max-width: 900px;
  margin: 40px auto 50px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 32px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.history-ten {
  width: 150px;
  flex-shrink: 0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.history-ten-text {
  flex: 1;
  color: #fff;
  line-height: 1.7;
  font-size: 16px;
}

.history-ten-line {
  margin: 0;
}

@media (max-width: 640px) {
  .history-ten-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .history-ten {
    width: 120px;
    margin: 0 auto 16px;
  }

  .history-ten-text {
    text-align: left;
    font-size: 15px;
  }
}

/* ============================
   history：アーカイブタイトル（中間案）
============================ */

.hs-archive-title {
  text-align: center;
  margin: 40px auto 32px;
  padding-bottom: 12px;
  max-width: 900px;
}

.hs-archive-title-main {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.hs-archive-title-sub {
  font-size: 15px;
  color: #D4AF37;
  margin-top: 4px;
  opacity: 0.9;
}

.hs-archive-title-line {
  width: 120px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, #4da3ff, #0a1a2f);
  border-radius: 2px;
}

/* history ページのロゴ位置を index と揃える */
.site-logo {
  margin-top: 40px;
}

/* ============================
   history：テン導入セクション（完全版）
============================ */

.history-ten-wrapper {
  max-width: 900px;
  margin: 50px auto 60px;
  display: flex;
  align-items: flex-start;
  gap: 36px; /* 存在感UP */
  padding: 40px 48px; /* カードの密度UP */
  background: rgba(255,255,255,0.14); /* ガラス感UP */
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 24px; /* 高級感UP */
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.45); /* 影を強めて主役感UP */
}

/* テン画像（PC） */
.history-ten {
  width: 180px; /* 150 → 180で存在感UP */
  flex-shrink: 0;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.45);
}

/* テキスト部分 */
.history-ten-text {
  flex: 1;
  color: #fff;
  line-height: 1.85;
  font-size: 17px; /* 読みやすさUP */
  letter-spacing: 0.3px;
}

.history-ten-line {
  margin: 0;
}

/* ============================
   スマホ最適化
============================ */
@media (max-width: 640px) {

  .history-ten-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 32px 26px;
    gap: 28px;
    margin: 40px auto 50px;
  }

  .history-ten {
    width: 150px; /* SPは150pxでちょうど良い */
    margin: 0 auto;
  }

  .history-ten-text {
    text-align: left;
    font-size: 15.5px;
    line-height: 1.8;
  }
}

/* ============================
   テンコメント（PC）
============================ */

.ten-comment {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  align-items: flex-start;
}

/* PC：テン画像 */
.ten-face {
  width: 120px;      /* ← PCは120px */
  height: auto;      /* ← 最重要：縦横比を維持 */
  border-radius: 16px;
  object-fit: contain; /* ← 切れない */
  display: block;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* テキスト */
.ten-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ten-line-main {
  font-size: 16px;
  font-weight: 700;
  color: #FFD700;
}

.ten-line-sub {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.5;
}


/* ============================
   スマホ最適化
============================ */

@media (max-width: 640px) {

  .ten-comment {
    flex-direction: column;
    text-align: center;
    padding: 22px 20px;
    align-items: center;
    overflow: visible; /* ← 念のため */
  }

  .ten-face {
    width: 110px;   /* ← スマホは110px */
    height: auto;   /* ← 絶対に必要 */
    margin: 0 auto 12px;
    object-fit: contain;
  }

  .ten-text {
    text-align: left;
    font-size: 15px;
  }
}

/* ============================
   WC/EURO ブロック：スマホ最適化
============================ */
@media (max-width: 640px) {

  /* ブロック全体の余白を調整 */
  .hs-wc-block,
  .hs-euro-block {
    padding: 22px 20px;   /* ← PCの48pxは広すぎるので縮小 */
    margin: 32px auto;    /* ← セクション間の余白も調整 */
    border-radius: 16px;
  }

  /* ヘッダー（ロゴ＋タイトル）を縦並びに */
  .hs-wc-header,
  .hs-euro-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* ロゴサイズを少し縮小 */
  .hs-wc-logo { width: 52px; }
  .hs-euro-logo { width: 46px; }

  /* タイトルの文字サイズ調整 */
  .hs-wc-title,
  .hs-euro-title {
    font-size: 22px;
    line-height: 1.3;
  }

  /* サブタイトル（勝敗予想） */
  .hs-wc-subtitle {
    justify-content: center;
    margin-bottom: 16px;
  }

  /* テーブルの横幅調整 */
  .hs-table {
    width: 100%;
    margin: 1.5rem auto;
  }

  .hs-table th,
  .hs-table td {
    padding: 0.7rem 0.4rem;
    font-size: 0.95rem;
  }
}

.entry-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.2rem 0 0.4rem;
  color: #f0f4ff;
}

.entry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  margin: 0.8rem 0 1rem;
}

.entry-tag {
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 80, 160, 0.45);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  color: #004080;
  line-height: 1.3;
  white-space: nowrap;
}

.chart-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.4rem 0 0.6rem;
  color: #e6c46c; /* 金寄りの落ち着いた色 */
}

.chart-guide {
  font-size: 0.85rem;
  color: #e8f0ff; /* 白に近い淡い青でコントラストUP */
  margin: 0.4rem 0 0.8rem;
  line-height: 1.5;
  opacity: 0.95; /* 読みやすさ優先で少し濃く */
}

/* ============================
   優勝・得点王：センタリング3段構成（最終版）
============================ */

.hs-result-center {
  text-align: center;
  margin: 36px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ① タイトル */
.hs-result-center-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e6c46c; /* 金色 */
}

/* ② 国旗＋国名＋星（横並び） */
.hs-result-center-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hs-result-center-flag {
  width: 60px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.hs-result-center-team {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.hs-result-center-stars {
  font-size: 1.1rem;
  color: #ffd700;
  letter-spacing: 2px;
}

/* ============================
   得点王：センタリング3段構成
============================ */

/* ② 選手名（大きい） */
.hs-result-center-player {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
}

/* ④ 国旗（小）＋国名（小） */
.hs-result-center-countryline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.hs-result-center-flag-small {
  width: 38px; /* ← 国名のフォントとバランスが取れる最適サイズ */
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.hs-result-center-country {
  font-size: 0.95rem; /* ← 今の国名サイズと合わせた */
  opacity: 0.9;
  color: #ffffff;
}

/* スマホ最適化 */
@media (max-width: 600px) {
  .hs-result-center-player {
    font-size: 1.15rem;
  }
  .hs-result-center-flag-small {
    width: 34px;
  }
}

/* ============================
   優勝・得点王：写真コンテナ統一
============================ */

.hs-result-center-photo {
  margin-top: 6px;
  background: rgba(255,255,255,0.08);
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
  max-width: 240px; /* ← 優勝・得点王ともに統一 */
  width: 100%;
}

.hs-result-center-photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* スマホ最適化 */
@media (max-width: 600px) {
  .hs-result-center-photo {
    max-width: 200px; /* ← スマホでも完全に揃う */
  }
}

/* ============================
   history-ten-wrapper：テン画像キャプション
============================ */

.history-ten-face-wrap {
  position: relative;
  display: inline-block;
}

.history-ten-face-overlay {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.45);
  color: #ffd700;
  padding: 3px 10px;
  font-size: 13px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  pointer-events: none; /* ← クリック干渉しない */
}

/* スマホ最適化 */
@media (max-width: 640px) {
  .history-ten-face-overlay {
    bottom: 4px;
    font-size: 12px;
    padding: 2px 8px;
  }
}

/* ============================
   history-ten-wrapper：スマホ時のセンタリング修正
============================ */

@media (max-width: 640px) {
  .history-ten-face-wrap {
    display: block;
    margin: 0 auto; /* ← これで画像が中央に固定される */
    text-align: center; /* 念のため */
  }
}

/* ============================
   ten-comment：テン画像キャプション（重ね表示）
============================ */

.ten-face-wrap {
  position: relative;
  display: inline-block;
}

.ten-face-overlay {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.45);
  color: #ffd700;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  pointer-events: none; /* ← クリック干渉しない */
}

/* スマホ最適化 */
@media (max-width: 640px) {
  .ten-face-overlay {
    bottom: 3px;
    font-size: 11px;
    padding: 2px 6px;
  }

  .ten-face-wrap {
    margin: 0 auto; /* ← スマホで中央揃えを保証 */
  }
}

/* ============================
   当時のサイトアーカイブ（統一サイズ）
   ※ キャプションを画像の下に配置する版
============================ */

.hs-archive-block {
  margin-top: 32px;
  text-align: center;
}

.hs-archive-title {
  font-size: 16px;
  color: #ffd700;
  margin-bottom: 12px;
}

.hs-archive-image-wrap {
  display: inline-block;
  text-align: center;
}

.hs-archive-image {
  width: 100%;
  max-width: 280px; /* ← 統一サイズ */
  border-radius: 8px;
  opacity: 0.95;
  display: block;
  margin: 0 auto;
}

/* ▼ キャプションを画像の下に配置 */
.hs-archive-caption {
  margin-top: 6px;
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,0.45);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* スマホ最適化 */
@media (max-width: 640px) {
  .hs-archive-caption {
    font-size: 11px;
    padding: 2px 8px;
  }
}

