/* ==========================================================================
   第1回 みのりカップ少年サッカー大会 スタイルシート
   モバイルファースト / レスポンシブ / クリーン＆スポーティ
   ========================================================================== */

:root {
  --primary: #d91b24;
  --primary-dark: #b31018;
  --primary-light: #fef2f2;
  --primary-glow: rgba(217, 27, 36, 0.15);

  --secondary-yawatayama: #059669;
  --secondary-yawatayama-dark: #047857;
  --secondary-yawatayama-light: #ecfdf5;

  --accent-gold: #f59e0b;
  --accent-gold-light: #fffbeb;

  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-muted: #f8fafc;

  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  --border-light: #e2e8f0;
  --border-focus: #cbd5e1;

  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-num: 'Montserrat', -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

  --header-height: 52px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 85px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

.container {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ==========================================================================
   ヘッダー / ヒーロー
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--text-white);
  padding: 28px 0 20px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/ogp.jpg');
  background-size: cover;
  background-position: center top;
  opacity: 0.28;
  filter: saturate(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-subhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.badge-red {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.hero-catch {
  font-size: 0.85rem;
  color: #fed7aa;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-title-prefix {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e2e8f0;
}

.hero-title-main {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-title-suffix {
  font-size: 1.1rem;
  font-weight: 700;
  color: #cbd5e1;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .hero-meta {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .hero-title-main {
    font-size: 2.8rem;
  }
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #f87171;
}

.meta-label {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.2;
}

.meta-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.meta-note {
  font-size: 0.75rem;
  color: #fca5a5;
  font-weight: 500;
  margin-left: 4px;
}

/* ライブステータスバー */
.live-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.live-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
}

.live-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.last-update {
  font-size: 0.75rem;
  color: #cbd5e1;
  font-family: var(--font-num);
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.refresh-btn:active {
  transform: scale(0.96);
}

.refresh-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.4s ease;
}

.refresh-btn.spinning .refresh-icon {
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   お知らせバナー
   ========================================================================== */

.notice-container:empty {
  display: none;
}

.notice-container {
  margin-top: 14px;
  margin-bottom: 4px;
}

.notice-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #92400e;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}

.notice-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #d97706;
  margin-top: 2px;
}

.notice-text {
  flex: 1;
  line-height: 1.5;
}

.notice-date {
  font-size: 0.75rem;
  color: #b45309;
  font-weight: 700;
  margin-right: 6px;
}

/* ==========================================================================
   ボトム固定ナビゲーション（スマホ片手操作・横4分割）
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  padding-top: 4px;
  padding-bottom: calc(env(safe-area-inset-bottom, 8px) + 4px);
}

.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-left: 2px;
  padding-right: 2px;
  max-width: 600px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 2px 4px;
  color: #64748b;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  background-color: transparent;
  border-radius: 0 0 3px 3px;
  transition: background-color 0.2s ease;
}

.nav-icon {
  font-size: 1.25rem;
  line-height: 1.15;
  margin-bottom: 2px;
  transition: transform 0.15s ease;
}

.nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--primary);
}

.nav-item:active .nav-icon {
  transform: scale(0.9);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active::before {
  background-color: var(--primary);
}

.nav-item.active .nav-label {
  font-weight: 900;
}

/* ==========================================================================
   共通セクション
   ========================================================================== */

.main-content {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 20px 16px;
  scroll-margin-top: 60px;
}

@media (min-width: 640px) {
  .section-card {
    padding: 28px 24px;
  }
}

.section-header {
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.section-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ==========================================================================
   1. トーナメント
   ========================================================================== */

.cup-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.cup-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  background: var(--bg-muted);
  color: var(--text-sub);
  transition: all 0.2s ease;
}

.cup-tab-icon {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.cup-tab-name {
  font-size: 1rem;
  font-weight: 900;
}

.cup-tab-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cup-tab[data-cup="minori"].active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.cup-tab[data-cup="minori"].active .cup-tab-sub {
  color: var(--primary);
}

.cup-tab[data-cup="yawatayama"].active {
  background: var(--secondary-yawatayama-light);
  border-color: var(--secondary-yawatayama);
  color: var(--secondary-yawatayama-dark);
}

.cup-tab[data-cup="yawatayama"].active .cup-tab-sub {
  color: var(--secondary-yawatayama);
}

/* 表彰台ポディウム */
.podium-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 14px 10px;
  margin-bottom: 20px;
  text-align: center;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.podium-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.podium-1 .podium-badge { background: #d97706; color: #fff; }
.podium-2 .podium-badge { background: #64748b; color: #fff; }
.podium-3 .podium-badge { background: #b45309; color: #fff; }

.podium-team {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-main);
  word-break: break-all;
}

/* トーナメントツリー（モバイル対応） */
.bracket-tree {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bracket-round-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.round-header-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-sub);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--border-light);
}

.round-matches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .round-matches-grid.grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* 試合カード */
.match-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.match-card.is-live {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.match-card.is-live::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background-color: #22c55e;
}

.match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.75rem;
}

.match-info-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-time {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--text-main);
}

.match-court-badge {
  background: #e2e8f0;
  color: #334155;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.match-court-badge.court-a {
  background: #dbeafe;
  color: #1e40af;
}

.match-court-badge.court-b {
  background: #dcfce7;
  color: #166534;
}

.match-status-badge {
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
}

.match-status-badge.status-scheduled {
  background: #f1f5f9;
  color: #64748b;
}

.match-status-badge.status-live {
  background: #dcfce7;
  color: #15803d;
  animation: pulse-dot 1.8s infinite;
}

.match-status-badge.status-finished {
  background: #f1f5f9;
  color: #334155;
}

/* チーム行 */
.match-teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.team-row.is-winner {
  background: #fef2f2;
  font-weight: 700;
}

.team-row.is-winner .team-name {
  color: var(--primary-dark);
}

.team-row.is-unresolved .team-name {
  color: var(--text-muted);
  font-style: italic;
}

.team-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.team-name {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-crown {
  color: #d97706;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.score-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
}

.pk-score {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 700;
}

.match-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.match-referee {
  display: flex;
  align-items: center;
  gap: 4px;
}

.referee-label {
  color: #64748b;
  font-weight: 700;
}

.referee-team {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   2. 予選リーグ
   ========================================================================== */

.group-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.group-tabs::-webkit-scrollbar {
  display: none;
}

.group-tab {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg-muted);
  color: var(--text-sub);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.group-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.league-group-block {
  margin-bottom: 24px;
}

.group-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-main);
}

.group-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
}

/* 順位テーブル（スマホ最適化） */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #ffffff;
  margin-bottom: 16px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 480px) {
  .standings-table {
    font-size: 0.8rem;
  }
  .standings-table .col-hide-mobile {
    display: none;
  }
  .standings-table th, .standings-table td {
    padding: 8px 4px;
  }
}

.standings-table th {
  background: #f8fafc;
  color: var(--text-sub);
  font-weight: 700;
  padding: 10px 8px;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.standings-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  white-space: nowrap;
}

.standings-table tr:last-child td {
  border-bottom: none;
}

.standings-table .col-rank {
  font-family: var(--font-num);
  font-weight: 800;
  width: 44px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.rank-1 { background: #fef3c7; color: #b45309; }
.rank-2 { background: #f1f5f9; color: #475569; }
.rank-3 { background: #f8fafc; color: #64748b; }
.rank-4 { background: #f8fafc; color: #94a3b8; }

.standings-table .col-team {
  text-align: left;
  font-weight: 700;
  padding-left: 12px;
}

.standings-table .col-pts {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 1rem;
  color: var(--primary);
  background: #fff1f2;
}

.standings-table .col-num {
  font-family: var(--font-num);
  font-weight: 600;
}

.standings-table .col-gd {
  font-family: var(--font-num);
  font-weight: 700;
}

.gd-plus { color: #16a34a; }
.gd-minus { color: #dc2626; }
.gd-zero { color: #64748b; }

.standings-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 14px;
}

/* ==========================================================================
   3. タイムテーブル
   ========================================================================== */

.schedule-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

@media (min-width: 640px) {
  .schedule-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.filter-pill-group {
  display: flex;
  gap: 6px;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  align-self: flex-start;
}

.pill-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-sub);
  transition: all 0.2s ease;
}

.pill-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.team-filter-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-sub);
  white-space: nowrap;
}

.team-select {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 6px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  font-weight: 600;
}

/* タイムラインリスト */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-slot-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slot-time-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-sub);
}

.slot-time-badge {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* 交流企画カード */
.event-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.event-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.event-title {
  font-size: 1rem;
  font-weight: 900;
  color: #1e40af;
  margin-bottom: 2px;
}

.event-desc {
  font-size: 0.8rem;
  color: #3b82f6;
  line-height: 1.4;
}

.event-badge {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

/* ==========================================================================
   4. 大会要項・ルール
   ========================================================================== */

.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .rules-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

.rule-card {
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.rule-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-light);
}

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

.rule-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.5;
}

.rule-list li {
  position: relative;
  padding-left: 14px;
}

.rule-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

.rule-list strong {
  color: var(--text-main);
}

/* ==========================================================================
   5. 会場案内
   ========================================================================== */

.venue-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .venue-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
  }
}

.venue-map-wrap {
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.venue-map-wrap:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.venue-map-img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.venue-map-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

.venue-info-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.venue-spot-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-main);
}

.venue-address {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.venue-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vnote-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.4;
}

.vnote-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
  padding: 2px 6px;
  border-radius: 4px;
}

.venue-actions {
  margin-top: 8px;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #1e40af;
  border: 1.5px solid #bfdbfe;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  width: 100%;
}

.btn-map:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.btn-icon {
  width: 18px;
  height: 18px;
  color: #2563eb;
}

/* ==========================================================================
   モーダル（画像拡大）
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.modal-close {
  align-self: flex-end;
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1;
  padding: 4px 10px;
  margin-bottom: 4px;
}

.modal-img {
  max-width: 100%;
  max-height: calc(88vh - 50px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  background: #ffffff;
}

/* ==========================================================================
   フッター
   ========================================================================== */

.footer {
  margin-top: 48px;
  background: #0f172a;
  color: #cbd5e1;
  padding: 36px 0 24px;
  border-top: 4px solid var(--primary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 48px;
  width: auto;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-supporters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

@media (min-width: 640px) {
  .footer-supporters {
    flex-direction: row;
    gap: 20px;
  }
}

.supporter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.supporter-label {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
}

.supporter-name {
  font-weight: 700;
  color: #ffffff;
}

.supporter-sep {
  color: #64748b;
}

.footer-copy {
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  margin-top: 10px;
}
