/* =============================================
   results.css — 試合結果一覧・詳細ページ
   ============================================= */

.page-wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 4%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #8aaa96;
  margin: 20px 0 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #8aaa96;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #ead477;
}

.page-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
  margin-bottom: 28px;
}

/* --- 年度タブ --- */
.year-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.year-tab {
  background: #0e2518;
  border: 1px solid #1a3d2b;
  color: #8aaa96;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.year-tab:hover {
  background: #154734;
  color: #fff;
}

.year-tab.active {
  background: #154734;
  border-color: #ead477;
  color: #ead477;
}

.year-section {
  display: none;
}

.year-section.active {
  display: block;
}

/* --- シーズンサマリー --- */
.season-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: #0e2518;
  border: 1px solid #1a3d2b;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.ss-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 100px;
}

.ss-label {
  font-size: 11px;
  color: #8aaa96;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ss-val {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

/* --- 大会セクション --- */
.comp-section {
  margin-bottom: 32px;
}

.comp-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ead477;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1a3d2b;
}

/* --- ゲームカード --- */
.game-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: #0e2518;
  border: 1px solid #1a3d2b;
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-left: 3px solid #1a3d2b;
  transition: background .15s;
}

.game-card:hover {
  background: #154734;
}

.game-card.win {
  border-left-color: #e8e8e8;
}

.game-card.loss {
  border-left-color: #c0392b;
}

/* 左：日付・対戦相手・会場 */
.card-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-date {
  font-size: 12px;
  color: #8aaa96;
}

.card-opp {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.card-venue {
  font-size: 12px;
  color: #8aaa96;
}

/* 中央：スコア・バッジ */
.card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}

.card-score {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.card-score .sep {
  color: #8aaa96;
  margin: 0 6px;
}

/* WIN: 専修=白 相手=赤 / LOSS: 専修=赤 相手=白 */
.score-for.win {
  color: #e8e8e8;
}

.score-for.loss {
  color: #e74c3c;
}

.score-against.win {
  color: #e74c3c;
}

.score-against.loss {
  color: #e8e8e8;
}

/* WIN=白系 / LOSS=赤系 */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.badge.win {
  background: rgba(232, 232, 232, .15);
  color: #e8e8e8;
  border: 1px solid #e8e8e8;
}

.badge.loss {
  background: rgba(192, 57, 43, .25);
  color: #e74c3c;
  border: 1px solid #c0392b;
}

.badge.none {
  background: transparent;
  color: #8aaa96;
  border: 1px solid #2d4a38;
}

/* 右：詳細リンク */
.card-right {
  display: flex;
  justify-content: flex-end;
}

.detail-link {
  font-size: 13px;
  color: #ead477;
  text-decoration: none;
  white-space: nowrap;
}

.detail-link:hover {
  text-decoration: underline;
}

.no-data {
  color: #8aaa96;
  font-size: 14px;
  padding: 24px 0;
  text-align: center;
}


/* ==============================================
   試合詳細ページ
   ============================================== */
.match-header {
  background: #0e2518;
  border: 1px solid #1a3d2b;
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 20px;
  text-align: center;
}

.match-meta-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.match-comp {
  background: #154734;
  color: #ead477;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.match-date {
  color: #8aaa96;
  font-size: 14px;
}

.scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.sb-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.sb-name {
  font-size: 15px;
  font-weight: 700;
  color: #d4e8dd;
}

.sb-score {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.sb-score.score-win {
  color: #e8e8e8;
}

.sb-score.score-loss {
  color: #e74c3c;
}

.sb-score.score-opp-win {
  color: #e74c3c;
}

.sb-score.score-opp-loss {
  color: #e8e8e8;
}

.sb-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.result-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
}

.result-badge.badge-win {
  background: rgba(232, 232, 232, .15);
  color: #e8e8e8;
  border: 1px solid #e8e8e8;
}

.result-badge.badge-loss {
  background: rgba(192, 57, 43, .25);
  color: #e74c3c;
  border: 1px solid #c0392b;
}

.result-badge.badge-none {
  background: transparent;
  color: #8aaa96;
  border: 1px solid #2d4a38;
}

.match-info-card {
  background: #0e2518;
  border: 1px solid #1a3d2b;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: #ead477;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.match-dl {
  display: flex;
  flex-direction: column;
}

.dl-row {
  display: flex;
  border-bottom: 1px solid #1a3d2b;
  padding: 10px 0;
}

.dl-row:last-child {
  border-bottom: none;
}

.dl-row dt {
  width: 80px;
  flex-shrink: 0;
  font-size: 13px;
  color: #8aaa96;
}

.dl-row dd {
  font-size: 14px;
  color: #d4e8dd;
}

.game-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.game-nav-btn {
  background: #0e2518;
  border: 1px solid #1a3d2b;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #d4e8dd;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.game-nav-btn:hover {
  background: #154734;
  border-color: #ead477;
  color: #ead477;
}

.nav-next {
  margin-left: auto;
}

.back-link-wrap {
  margin-bottom: 40px;
}

.back-link {
  color: #8aaa96;
  font-size: 13px;
  text-decoration: none;
}

.back-link:hover {
  color: #ead477;
}


/* ==============================================
   レスポンシブ
   ============================================== */
@media (max-width: 768px) {
  .game-card {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .card-left {
    grid-column: 1;
    grid-row: 1;
  }

  .card-center {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .card-right {
    grid-column: 1;
    grid-row: 2;
  }

  .card-score {
    font-size: 17px;
  }
}

@media (max-width: 375px) {
  .year-tab {
    padding: 7px 12px;
    font-size: 13px;
  }

  .card-opp {
    font-size: 14px;
  }

  .card-score {
    font-size: 15px;
  }
}

/* ボックススコア */
.box-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.box-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.box-table th,
.box-table td {
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid #1a3d2b;
  white-space: nowrap;
}

.box-table th {
  background: #0a1f14;
  color: #ead477;
  font-weight: 600;
}

.box-table td.col-name,
.box-table th.col-name {
  text-align: left;
  min-width: 90px;
}

.box-table td.pts {
  font-weight: 700;
  color: #ead477;
}

.box-table tr.starter td {
  background: #0e2518;
}

.box-table tbody tr:hover td {
  background: #154734;
}