.game-score-table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* ヘッダー行のスタイル */
.game-score-table tr:first-child {
  background-color: #0e719b;
}

.game-score-table tr:first-child td {
  color: #FFFFFF;
  font-weight: bold;
  text-align: center;
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 15px;
  white-space: nowrap;
}

/* ヘッダーの最初のセル（TEAM列）は背景色を維持 */
.game-score-table tr:first-child td:first-child {
  background-color: #0e719b;
}

/* データ行のスタイル */
.game-score-table tr:not(:first-child) {
  background-color: #EBF2FA;
}

.game-score-table tr:not(:first-child) td {
  color: #0e719b;
  text-align: center;
  padding: 14px 10px;
  border: 1px solid rgba(14, 113, 155, 0.2);
  font-size: 15px;
  white-space: nowrap;
}

/* チーム名と合計は太字 */
.game-score-table tr:not(:first-child) td:first-child,
.game-score-table tr:not(:first-child) td:last-child {
  font-weight: bold;
  color: #0e719b;
}

/* イニングスコアは通常の太さ */
.game-score-table tr:not(:first-child) td:not(:first-child):not(:last-child) {
  font-weight: normal;
  color: #0e719b;
}

/* 試合情報サマリーブロックのスタイル */
.game-score-summary {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px;
  background-color: #ffffff;
  font-family: sans-serif;
  margin: 20px 0;
}

.game-score-summary .game-score-summary-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
  color: #333;
}

.game-score-summary .game-score-summary-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.game-score-summary .game-score-summary-team {
  flex: 1;
  text-align: center;
}

.game-score-summary .game-score-summary-team-name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #000;
}

.game-score-summary .game-score-summary-team-label {
  display: inline-block;
  background-color: #4A90E2;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: normal;
}

.game-score-summary .game-score-summary-scores {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px;
}

.game-score-summary .game-score-summary-score {
  font-size: 36px;
  font-weight: bold;
  color: #000;
  min-width: 40px;
  text-align: center;
}

.game-score-summary .game-score-summary-separator {
  font-size: 36px;
  font-weight: bold;
  color: #000;
}

.game-score-summary .game-score-summary-status {
  text-align: center;
  font-size: 14px;
  color: #333;
  margin-top: 10px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .game-score-summary .game-score-summary-main {
    flex-direction: column;
    gap: 20px;
  }

  .game-score-summary .game-score-summary-scores {
    margin: 10px 0;
  }

  .game-score-summary .game-score-summary-team-name {
    font-size: 20px;
  }

  .game-score-summary .game-score-summary-score {
    font-size: 28px;
  }
}

/* ========================================
   試合一覧ページスタイル
   ======================================== */

.game-list-container {
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* ヘッダー */
.game-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding: 24px 28px;
  background-color: #0e719b;
  border-bottom: none;
}

.game-list-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.game-list-title-main {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 3px;
}

.game-list-title-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* 年度セレクター */
.game-list-year-selector select {
  padding: 10px 20px;
  font-size: 16px;
  border: 2px solid #ffffff;
  border-radius: 4px;
  background-color: transparent;
  color: #ffffff;
  cursor: pointer;
}

.game-list-year-selector select:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.game-list-year-selector select option {
  background-color: #0e719b;
  color: #ffffff;
}

/* タブフィルター */
.game-list-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background-color: #333;
  border-bottom: none;
}

.game-list-tab {
  padding: 14px 28px;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.game-list-tab:hover {
  color: #ffffff;
  background-color: #444;
}

.game-list-tab.active {
  color: #ffffff;
  font-weight: bold;
  background-color: #0e719b;
  border-bottom-color: #0e719b;
}

/* カード一覧 */
.game-list-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.game-list-no-games {
  text-align: center;
  color: #666;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

/* 試合カード */
.game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.game-card:hover .game-card-body {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* カードヘッダー（大会名・回戦） */
.game-card-header {
  background-color: #f0f0f0;
  color: #333;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 8px 8px 0 0;
  border: 1px solid #e0e0e0;
  border-bottom: none;
}

/* カードボディ */
.game-card-body {
  display: flex;
  align-items: stretch;
  background-color: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 120px;
}

.game-card-header + .game-card-body {
  border-radius: 0 0 8px 8px;
}

.game-card-body:first-child {
  border-radius: 8px;
}

/* 左パネル（日時情報） */
.game-card-left {
  flex: 0 0 180px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #076c94;
  color: #ffffff;
	border-radius: 0 0 0 8px;
}

.game-card-year {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 4px;
}

.game-card-date-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.game-card-date {
  font-size: 32px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1;
}

.game-card-dow {
  font-size: 16px;
  color: #ffffff;
}

.game-card-time {
  font-size: 16px;
  color: #ffffff;
}

.game-card-venue {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
}

/* 中央左パネル（自チーム） */
.game-card-team-home {
  flex: 0 0 200px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.game-card-team-logo {
  margin-bottom: 8px;
}

.game-card-team-logo img {
  max-width: 80px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.game-card-team-name {
  font-size: 14px;
  font-weight: bold;
  color: #000;
}

.game-card-team-score {
  display: none;
  font-size: 48px;
  font-weight: bold;
  color: #000;
  line-height: 1;
  margin-bottom: 8px;
}

/* 中央パネル（スコア・勝敗） */
.game-card-center {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.game-card-score {
  font-size: 42px;
  font-weight: bold;
  color: #000;
  letter-spacing: 8px;
  margin-bottom: 8px;
}

.game-card-result {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  padding-bottom: 4px;
}

.result-win {
  color: #0066cc;
  border-bottom: 3px solid #0066cc;
}

.result-lose {
  color: #cc0000;
  border-bottom: 3px solid #cc0000;
}

.result-draw {
  color: #666;
  border-bottom: 3px solid #666;
}

/* 右パネル（相手チーム） */
.game-card-right {
  flex: 0 0 200px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.game-card-opponent-score {
  display: none;
  font-size: 48px;
  font-weight: bold;
  color: #000;
  line-height: 1;
  margin-bottom: 8px;
}

.game-card-opponent {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* レスポンシブ対応 - タブレット */
@media (max-width: 768px) {
  .game-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .game-list-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .game-list-tab {
    padding: 10px 16px;
    white-space: nowrap;
  }

  .game-card-body {
    flex-wrap: wrap;
  }

  .game-card-left {
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 20px;
    border-right: none;
    border-bottom: none;
    position: relative;
  }

  .game-card-year {
    position: absolute;
    right: 20px;
    top: 20px;
    margin-bottom: 0;
  }

  .game-card-date-row {
    margin-bottom: 4px;
  }

  .game-card-venue {
    flex: 1 1 100%;
    margin-top: 4px;
  }

  /* スコアエリアの3列レイアウト */
  .game-card-team-home {
    flex: 1;
    padding: 24px 16px;
    position: relative;
  }

  .game-card-team-logo {
    margin-bottom: 4px;
    opacity: 0.3;
  }

  .game-card-team-score {
    display: block;
    font-size: 64px;
    margin-bottom: 4px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    z-index: 1;
  }

  .game-card-score {
    display: none;
  }

  .game-card-center {
    flex: 0 0 auto;
    padding: 24px 20px;
  }

  .game-card-result {
    border-top: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    padding: 8px 0;
    font-size: 18px;
  }

  .result-win {
    color: #cc0000;
    border-top-color: #cc0000;
    border-bottom-color: #cc0000;
  }

  .game-card-opponent-score {
    display: block;
    font-size: 42px;
    margin-bottom: 4px;
  }

  .game-card-right {
    flex: 1;
    border-bottom: none;
    padding: 20px 16px;
  }
}

/* レスポンシブ対応 - スマートフォン */
@media (max-width: 480px) {
  .game-list-container {
    padding: 12px;
  }

  .game-list-title-main {
    font-size: 22px;
  }

  .game-card-left {
    justify-content: flex-start;
  }

  .game-card-date {
    font-size: 24px;
  }

  .game-card-team-score {
    font-size: 48px;
  }

  .game-card-opponent-score {
    font-size: 48px;
  }

  .game-card-team-name,
  .game-card-opponent {
    font-size: 12px;
  }
}
