/* ========================================================
   2026年愛知・名古屋アジア競技大会 (Aichi-Nagoya 2026)
   選手情報ポータル メインスタイルシート
   ======================================================== */

:root {
  --color-primary: #4a1c86;
  --color-primary-light: #6a2eb8;
  --color-primary-dark: #270c4e;
  --color-gold: #d4af37;
  --color-gold-light: #f5d76e;
  --color-accent-red: #e60012;
  --color-bg-dark: #0a0c16;
  --color-bg-card: #131726;
  --color-bg-card-hover: #1c2236;
  --color-surface-glass: rgba(19, 23, 38, 0.75);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-glow: rgba(212, 175, 55, 0.4);
  --color-text-main: #f5f6fa;
  --color-text-muted: #9aa2ba;
  --color-text-dim: #6b7280;
  
  --font-base: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Montserrat', 'Noto Sans JP', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 20px rgba(106, 46, 184, 0.3);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* リセット＆基本設定 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  line-height: 1.6;
  background-image: 
    radial-gradient(ellipse at 80% 0%, rgba(74, 28, 134, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 40%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(106, 46, 184, 0.2) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ページ全体コンテナ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================
   ヘッダー
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 12, 22, 0.85);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emblem-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.logo-text-group h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--color-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fav-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.fav-filter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.fav-filter-btn.active {
  background: linear-gradient(135deg, #e60012, #ff4757);
  border-color: #ff4757;
  color: #fff;
  box-shadow: 0 2px 10px rgba(230, 0, 18, 0.4);
}

.fav-count-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
}

/* ========================================================
   ヒーローセクション
   ======================================================== */
.hero-section {
  padding: 48px 0 32px;
  position: relative;
}

.hero-content {
  background: linear-gradient(135deg, rgba(74, 28, 134, 0.4) 0%, rgba(19, 23, 38, 0.8) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-content::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
}

.hero-title .gradient-text {
  background: linear-gradient(90deg, #fff, var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 780px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gold-light);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ========================================================
   ナビゲーション＆コントロールバー（スクロール式・画面占有を解消）
   ======================================================== */
.filter-nav-section {
  position: relative;
  background: rgba(10, 12, 22, 0.95);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 競技大カテゴリタブ */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-light) transparent;
}

.category-tabs::-webkit-scrollbar {
  height: 4px;
}

.category-tabs::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border-radius: 4px;
}

.cat-tab {
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.cat-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.cat-tab.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  border-color: var(--color-gold);
  box-shadow: 0 4px 14px rgba(106, 46, 184, 0.4);
}

/* 検索・種目・ソート コントロール */
.controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.search-box-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 10px 16px 10px 42px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 1.1rem;
  display: none;
}

.search-input:not(:placeholder-shown) + .search-clear-btn {
  display: block;
}

.filters-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.select-control {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.select-control:focus {
  border-color: var(--color-gold);
}

.results-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.results-count strong {
  color: var(--color-gold-light);
  font-size: 1.1rem;
}

/* ========================================================
   選手カードグリッド
   ======================================================== */
.athletes-section {
  padding: 32px 0 64px;
}

.athletes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* 選手カード */
.athlete-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.athlete-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-glow);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

/* カード画像エリア */
.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  background: #000;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
}

.card-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(10, 12, 22, 0.6) 80%, rgba(10, 12, 22, 0.95) 100%);
  pointer-events: none;
}

.athlete-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

/* お気に入りピンボタン */
.card-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(10, 12, 22, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  transition: var(--transition-fast);
  z-index: 5;
}

.card-fav-btn:hover {
  transform: scale(1.15);
  color: #ff4757;
  border-color: #ff4757;
}

.card-fav-btn.active {
  color: #ff4757;
  background: rgba(255, 71, 87, 0.2);
  border-color: #ff4757;
}

/* 競技・種目タグオーバーレイ */
.card-sport-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-sport {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.badge-event {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: var(--color-gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* カードボディ */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-name-group {
  margin-bottom: 8px;
}

.card-kana {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: block;
}

.card-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.card-affiliation {
  font-size: 0.8rem;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* バッジ群 */
.card-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.honor-badge {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-main);
  padding: 2px 8px;
  border-radius: 4px;
  border-left: 2px solid var(--color-gold);
}

/* 概要・キャッチ */
.card-catchphrase {
  font-size: 0.85rem;
  color: #e0e4f0;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
}

.card-summary {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
  flex: 1;
}

/* カード内SNSミニバー */
.card-mini-sns {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.mini-sns-link {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border);
  transition: var(--transition-fast);
}

.mini-sns-link:hover {
  transform: scale(1.15);
  border-color: var(--color-gold);
}

.mini-sns-link.instagram {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  border: none;
}

.mini-sns-link.x {
  background: #000;
  border-color: rgba(255, 255, 255, 0.3);
}

.mini-sns-link.youtube {
  background: #c4302b;
  border: none;
}

/* カード内批評サマリー */
.card-verdict-box {
  background: rgba(212, 175, 55, 0.08);
  border-left: 2px solid var(--color-gold);
  padding: 6px 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.75rem;
  color: #e2e8f0;
  margin-bottom: 16px;
  line-height: 1.4;
}

.card-verdict-box strong {
  color: var(--color-gold-light);
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* カードフッター・ボタン */
.card-footer-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-detail {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(74, 28, 134, 0.3);
}

.btn-detail:hover {
  background: linear-gradient(135deg, var(--color-primary-light), #7c3aed);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

.btn-quick-view {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-quick-view:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 結果ゼロ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.btn-reset-filters {
  background: var(--color-gold);
  color: #000;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-full);
}

/* ========================================================
   大会インフォ・ハイライトセクション
   ======================================================== */
.tournament-info-section {
  padding: 48px 0;
  background: rgba(19, 23, 38, 0.5);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.info-card h3 {
  font-size: 1.1rem;
  color: var(--color-gold-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ========================================================
   フッター
   ======================================================== */
.site-footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-links a:hover {
  color: var(--color-gold-light);
}

.footer-copy {
  color: var(--color-text-dim);
}

/* ========================================================
   クイックビュー モーダル
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-glow);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-dialog {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-content-inner {
  padding: 24px;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .header-inner {
    height: 56px;
  }
  
  .emblem-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 8px;
  }
  
  .logo-text-group h1 {
    font-size: 0.95rem;
  }
  
  .logo-sub {
    font-size: 0.65rem;
  }
  
  .fav-filter-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .filter-nav-section {
    padding: 12px 0;
  }

  .hero-content {
    padding: 20px 16px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .filters-group {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .select-control {
    flex: 1;
  }
}

/* ========================================================
   チームスポーツ全登録選手名鑑（ロスター）専用スタイル
   ======================================================== */

/* 表示モードスイッチャー */
.view-mode-bar {
  display: flex;
  gap: 12px;
  margin: 14px 0 16px;
  background: rgba(10, 20, 40, 0.6);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(229, 169, 60, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.view-mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #a0aec0;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-mode-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.view-mode-btn.active {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.25), rgba(229, 169, 60, 0.08));
  border-color: var(--color-gold);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(229, 169, 60, 0.2);
}

.view-mode-btn .mode-icon {
  font-size: 1.25rem;
}

.view-mode-btn small {
  font-size: 0.8rem;
  color: var(--color-gold-light);
  font-weight: 600;
  margin-left: 4px;
}

/* チームスポーツ種目別サブナビ（ピルボタン） */
.team-subnav {
  margin: 12px 0 18px;
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.85), rgba(11, 19, 38, 0.95));
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  animation: fadeIn 0.3s ease;
}

.team-subnav-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-gold-light);
  letter-spacing: 0.05em;
}

.team-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  color: #cbd5e0;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.team-pill:hover {
  background: rgba(229, 169, 60, 0.15);
  border-color: rgba(229, 169, 60, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.team-pill.active {
  background: linear-gradient(135deg, #e5a93c, #c48821);
  border-color: #f1c40f;
  color: #0b1326;
  box-shadow: 0 4px 12px rgba(229, 169, 60, 0.35);
  font-weight: 800;
}

/* チーム概要ヘッダーカード */
.team-header-card {
  background: linear-gradient(135deg, rgba(16, 30, 60, 0.95), rgba(8, 14, 28, 0.98));
  border: 1px solid var(--color-gold);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 0 auto 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.35s ease;
}

.team-header-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(229, 169, 60, 0.12), transparent 70%);
  pointer-events: none;
}

.team-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.team-title-group h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.team-english-name {
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-badge-goal {
  background: linear-gradient(135deg, #e5a93c, #d97706);
  color: #0b1326;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(229, 169, 60, 0.4);
}

.team-slogan-box {
  background: rgba(229, 169, 60, 0.08);
  border-left: 3px solid var(--color-gold);
  padding: 10px 16px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.team-slogan-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.team-summary-text {
  font-size: 0.9rem;
  color: #cbd5e0;
  line-height: 1.65;
  margin-bottom: 16px;
}

.team-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.team-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-meta-label {
  font-size: 0.72rem;
  color: var(--color-gold-light);
  font-weight: 700;
  text-transform: uppercase;
}

.team-meta-value {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 600;
}

/* ポジション別クイックフィルター */
.pos-filter-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pos-filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-right: 4px;
}

.pos-btn {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pos-btn:hover {
  background: rgba(229, 169, 60, 0.2);
  border-color: var(--color-gold);
}

.pos-btn.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #0b1326;
  font-weight: 800;
}

/* チーム所属選手（ロスターカード）スタイル */
.roster-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.roster-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.roster-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.8;
  background: #0d1527;
  overflow: hidden;
}

.roster-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.roster-card:hover .roster-card-image-wrap img {
  transform: scale(1.04);
}

/* 特大背番号バッジ */
.roster-number-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 19, 38, 0.85);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--color-gold);
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--color-gold);
  font-family: Impact, Arial Black, sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.roster-pos-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.95), rgba(200, 140, 30, 0.95));
  color: #0b1326;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.roster-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.roster-header-group {
  margin-bottom: 8px;
}

.roster-kana {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  display: block;
}

.roster-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0 0;
  line-height: 1.25;
}

.roster-romaji {
  font-size: 0.75rem;
  color: var(--color-gold-light);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.roster-affiliation {
  font-size: 0.8rem;
  color: #cbd5e0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.roster-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.roster-chip {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  color: #e2e8f0;
}

.roster-playstyle {
  font-size: 0.82rem;
  color: #d1d5db;
  line-height: 1.55;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 2px solid var(--color-gold);
}

.roster-critique-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 0.78rem;
}

.roster-critique-box strong {
  display: block;
  font-size: 0.75rem;
  color: var(--color-gold-light);
  margin-bottom: 4px;
}

.roster-critique-text {
  color: #cbd5e0;
  line-height: 1.45;
  margin: 0;
}

.roster-critique-source {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  display: block;
  text-align: right;
}

.roster-sns-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.roster-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.btn-roster-quick {
  flex: 1;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.18), rgba(229, 169, 60, 0.08));
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-roster-quick:hover {
  background: var(--color-gold);
  color: #0b1326;
}

@media (max-width: 640px) {
  .team-header-card {
    padding: 18px 16px;
  }
  .team-title-group h2 {
    font-size: 1.4rem;
  }
  .team-meta-grid {
    grid-template-columns: 1fr;
  }
  .view-mode-bar {
    flex-direction: column;
  }
}

/* ========================================================
   フローティング ページトップに戻るボタン
   ======================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(22, 33, 62, 0.95), rgba(10, 16, 32, 0.95));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 10px rgba(229, 169, 60, 0.3);
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease, visibility 0.3s;
}

.back-to-top-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-gold);
  stroke-width: 2.5;
  transition: transform 0.2s ease;
}

.back-to-top-btn .top-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1;
  margin-top: 1px;
}

.back-to-top-btn:hover {
  background: var(--color-gold);
  color: #0b1326;
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(229, 169, 60, 0.5);
}

.back-to-top-btn:hover svg {
  stroke: #0b1326;
  transform: translateY(-2px);
}

.back-to-top-btn:hover .top-label {
  color: #0b1326;
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .back-to-top-btn {
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
  }
  .back-to-top-btn svg {
    width: 18px;
    height: 18px;
  }
  .back-to-top-btn .top-label {
    font-size: 0.6rem;
  }
}

/* ========================================================
   今大会結果・メダル色フィルター ＆ 最後のシーン スタイル
   ======================================================== */

.medal-filter-bar {
  margin: 14px 0 16px;
  background: linear-gradient(135deg, rgba(25, 18, 48, 0.9), rgba(12, 16, 32, 0.95));
  border: 1.5px solid rgba(229, 169, 60, 0.35);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.medal-filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
}

.medal-filter-hint {
  font-size: 0.75rem;
  color: var(--color-gold-light);
  font-weight: 600;
}

.medal-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.medal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.medal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.medal-btn.active {
  color: #0b1326;
  font-weight: 800;
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* 各メダルボタン配色 */
.medal-btn[data-medal="all"].active {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #ffffff;
}

.medal-btn.gold.active {
  background: linear-gradient(135deg, #ffd700, #d4af37, #b8860b);
  color: #0a0e1a;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.5);
}

.medal-btn.silver.active {
  background: linear-gradient(135deg, #f1f5f9, #cbd5e1, #94a3b8);
  color: #0a0e1a;
  box-shadow: 0 0 16px rgba(203, 213, 225, 0.4);
}

.medal-btn.bronze.active {
  background: linear-gradient(135deg, #f97316, #cd7f32, #92400e);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(205, 127, 50, 0.5);
}

.medal-btn.ongoing.active {
  background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
}

.medal-btn.upcoming.active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.5);
}

.medal-count-badge {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 7px;
  border-radius: 10px;
  color: inherit;
  font-weight: 800;
}

.medal-btn.active .medal-count-badge {
  background: rgba(0, 0, 0, 0.25);
}

/* カード上のメダル結果バッジ */
.card-result-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.card-result-badge.gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.22), rgba(212, 175, 55, 0.1));
  border: 1px solid #ffd700;
  color: #ffea79;
}

.card-result-badge.silver {
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.2), rgba(148, 163, 184, 0.1));
  border: 1px solid #cbd5e1;
  color: #f1f5f9;
}

.card-result-badge.bronze {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.22), rgba(146, 64, 14, 0.1));
  border: 1px solid #cd7f32;
  color: #fdba74;
}

.card-result-badge.ongoing {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.12));
  border: 1px solid #ef4444;
  color: #fca5a5;
  animation: pulse-border 2s infinite ease-in-out;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(239, 68, 68, 0.5); box-shadow: 0 0 6px rgba(239, 68, 68, 0.2); }
  50% { border-color: #ef4444; box-shadow: 0 0 14px rgba(239, 68, 68, 0.5); }
}

.card-result-badge.upcoming {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(2, 132, 199, 0.1));
  border: 1px solid #0ea5e9;
  color: #7dd3fc;
}

/* 最後のシーン・ハイライトボックス */
.card-final-scene-box {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.final-scene-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #f87171;
  margin-bottom: 4px;
}

.final-scene-desc {
  font-size: 0.78rem;
  color: #cbd5e0;
  line-height: 1.45;
  margin-bottom: 8px;
}

.btn-final-scene-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.btn-final-scene-link:hover {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
  color: #ffffff;
}

/* モーダル内ハイライト映像ボックス */
.modal-result-box {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(15, 23, 42, 0.6));
  border: 1.5px solid #ef4444;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.modal-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-result-rank {
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffffff;
}

.modal-result-record {
  font-size: 0.85rem;
  color: var(--color-gold-light);
  font-weight: 700;
}

/* ========================================================
   公式トーナメント表・試合結果リンク
   ======================================================== */
.btn-tournament-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.btn-tournament-link:hover {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.55);
  color: #ffffff !important;
  border-color: rgba(147, 197, 253, 0.7);
}

.card-tournament-box {
  background: rgba(30, 58, 138, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
}

.tournament-box-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #60a5fa;
  margin-bottom: 3px;
}

.tournament-box-desc {
  font-size: 0.76rem;
  color: #e2e8f0;
  line-height: 1.4;
  margin-bottom: 6px;
}

.tournament-box-source {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* ========================================================
   大会スケジュール ＆ 何日目・開催状況ステータス表示
   ======================================================== */

/* ヘッダー内スケジュールリンク & ステータス */
.header-schedule-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header-status-badge.live .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-dot 1.5s infinite ease-in-out;
}

.header-status-badge.finished {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}

.header-schedule-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(30, 58, 138, 0.3));
  border: 1px solid rgba(96, 165, 250, 0.5);
  color: #93c5fd;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-schedule-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #93c5fd;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* ヒーロー内 大会スケジュール＆進捗カード */
.hero-schedule-card {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
  border: 1.5px solid rgba(229, 169, 60, 0.4);
  border-radius: 14px;
  padding: 18px 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.schedule-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.schedule-card-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-day-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.schedule-day-badge.finished {
  background: linear-gradient(135deg, #475569, #334155);
  box-shadow: none;
}

.schedule-period-text {
  font-size: 0.88rem;
  color: var(--color-gold-light);
  font-weight: 700;
}

.schedule-progress-container {
  margin-bottom: 14px;
}

.schedule-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 600;
}

.schedule-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.schedule-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  border-radius: 9999px;
  transition: width 0.5s ease;
}

.schedule-highlight-box {
  background: rgba(0, 0, 0, 0.28);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.schedule-highlight-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule-highlight-text {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.schedule-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-official-schedule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  border: 1px solid rgba(147, 197, 253, 0.4);
}

.btn-official-schedule:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
  border-color: #ffffff;
}

.schedule-sublink {
  font-size: 0.8rem;
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.schedule-sublink:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .header-schedule-btn span.schedule-label-full {
    display: none;
  }
  .hero-schedule-card {
    padding: 14px 16px;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ========================================================
   大会セレクターバー（最上部固定・マルチ大会スイッチャー）
   ======================================================== */
.tournament-switcher-bar {
  background: linear-gradient(90deg, #090d16 0%, #111827 50%, #090d16 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.25);
  padding: 8px 0;
  font-size: 0.85rem;
  color: #cbd5e1;
  position: relative;
  z-index: 100;
}

.switcher-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.switcher-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.switcher-icon {
  font-size: 1.1rem;
}

.switcher-label {
  font-weight: 700;
  color: #94a3b8;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.current-tourney-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.switcher-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-label {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.select-wrapper {
  position: relative;
}

.tournament-dropdown {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 8px;
  padding: 5px 30px 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23818cf8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  transition: all 0.2s ease;
}

.tournament-dropdown:hover,
.tournament-dropdown:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}

.tournament-dropdown optgroup {
  background: #0f172a;
  color: #94a3b8;
  font-weight: 800;
}

.tournament-dropdown option {
  background: #1e293b;
  color: #f8fafc;
  font-weight: 600;
  padding: 4px;
}

@media (max-width: 640px) {
  .switcher-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .switcher-right {
    width: 100%;
    justify-content: space-between;
  }
  .tournament-dropdown {
    flex: 1;
    max-width: 100%;
  }
}

/* ========================================================
   アフィリエイト ＆ スポンサーバナー（PR枠）
   ======================================================== */
.affiliate-banner-row {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.affiliate-row-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.affiliate-tag {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  letter-spacing: 0.5px;
}

.affiliate-lead {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.affiliate-card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.affiliate-card-item:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.aff-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.aff-text {
  flex: 1;
  min-width: 0;
}

.aff-text strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aff-text p {
  font-size: 0.7rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aff-arrow {
  color: #6366f1;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.affiliate-card-item:hover .aff-arrow {
  transform: translateX(3px);
  color: #a5b4fc;
}

/* スポンサーパートナーセクション（フッター上） */
.sponsor-partner-section {
  background: #090d16;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0;
}

.sponsor-inner {
  text-align: center;
}

.sponsor-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.sponsor-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  text-align: left;
}

.sponsor-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.sponsor-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.sp-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.sp-body h4 {
  font-size: 0.9rem;
  font-weight: 750;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.sp-body p {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 12px;
}

.btn-sp-link {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.76rem;
  font-weight: 700;
  color: #818cf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-sp-link:hover {
  color: #c7d2fe;
}

/* ========================================================
   大会最終成績・メダルサマリーボード (閉幕版)
   ======================================================== */
.final-medal-board {
  margin-top: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(229, 169, 60, 0.35);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fmb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.fmb-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-gold-light);
}

.fmb-badge-total {
  font-size: 0.78rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 10px;
  border-radius: 9999px;
}

.fmb-medal-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.fmb-medal-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease;
}

.fmb-medal-card:hover {
  transform: translateY(-2px);
}

.fmb-medal-card.gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.08));
  border-color: rgba(245, 158, 11, 0.4);
}

.fmb-medal-card.silver {
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.15), rgba(148, 163, 184, 0.08));
  border-color: rgba(203, 213, 225, 0.35);
}

.fmb-medal-card.bronze {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(180, 83, 9, 0.08));
  border-color: rgba(217, 119, 6, 0.35);
}

.fmb-medal-card.total {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08));
  border-color: rgba(99, 102, 241, 0.4);
}

.fmb-medal-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.fmb-medal-info {
  display: flex;
  flex-direction: column;
}

.fmb-medal-count {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.fmb-medal-label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.fmb-highlights-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.fmb-hl-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.fmb-hl-chip strong {
  color: #fbbf24;
}

