/* =============================================
   news.css — ニュース一覧・詳細ページ共通スタイル
   ============================================= */

/* ===== Page header（一覧ページ） ===== */
.page-hdr {
  background: #0e2518;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-hdr .lbl {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #ead477;
  opacity: .7;
  margin-bottom: 6px;
}

.page-hdr h1 {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  letter-spacing: .04em;
}

.page-hdr h1 span {
  font-size: 14px;
  color: rgba(255, 255, 255, .4);
  margin-left: 12px;
  font-weight: 400;
}

/* ===== Year tabs ===== */
.year-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.year-tab {
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: .5px solid rgba(234, 212, 119, .25);
  color: rgba(255, 255, 255, .5);
  background: transparent;
  text-decoration: none;
  transition: all .2s;
  letter-spacing: .04em;
}

.year-tab.active,
.year-tab:hover {
  background: #ead477;
  color: #06170f;
  border-color: #ead477;
}

/* ===== News list ===== */
.news-list {
  background: #0e2518;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
}

/* ===== パンくず（共通） ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-bottom: .5px solid rgba(255, 255, 255, .06);
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
}

.breadcrumb a {
  color: rgba(255, 255, 255, .4);
  text-decoration: none;
}

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

.breadcrumb .sep {
  color: rgba(255, 255, 255, .2);
}

.breadcrumb .current {
  color: rgba(255, 255, 255, .6);
}

/* ===== News item ===== */
.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: .5px solid rgba(255, 255, 255, .06);
  text-decoration: none;
  transition: background .15s;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: rgba(255, 255, 255, .03);
}

.news-date {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  min-width: 90px;
  flex-shrink: 0;
  letter-spacing: .04em;
}

.news-cat {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: .06em;
  min-width: 72px;
  text-align: center;
}

.news-cat.result {
  background: rgba(234, 212, 119, .12);
  color: #ead477;
}

.news-cat.info {
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .5);
}

.news-title {
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
  line-height: 1.5;
  flex: 1;
}

.news-item:hover .news-title {
  color: #fff;
}

.news-arrow {
  font-size: 14px;
  color: rgba(255, 255, 255, .2);
  flex-shrink: 0;
  transition: color .15s;
}

.news-item:hover .news-arrow {
  color: #ead477;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: .5px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .5);
  transition: all .2s;
}

.page-btn:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.page-btn.active {
  background: #ead477;
  color: #06170f;
  border-color: #ead477;
  font-weight: 700;
}

.page-btn.disabled {
  opacity: .25;
  pointer-events: none;
}

.page-ellipsis {
  font-size: 13px;
  color: rgba(255, 255, 255, .25);
  padding: 0 4px;
}

/* ===== 詳細ページ：2カラムレイアウト ===== */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 14px;
  align-items: start;
}

/* ===== Article ===== */
.article {
  background: #0e2518;
  border-radius: 16px;
  overflow: hidden;
}

.article-hdr {
  padding: 28px 32px 24px;
  border-bottom: .5px solid rgba(255, 255, 255, .06);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.article-cat {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: .06em;
}

.article-cat.result {
  background: rgba(234, 212, 119, .12);
  color: #ead477;
}

.article-cat.info {
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .5);
}

.article-date {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  letter-spacing: .04em;
}

.article-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
}

/* 記事本文 */
.article-body {
  padding: 28px 32px;
}

.article-body p {
  font-size: 15px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.9;
  margin-bottom: 16px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body a {
  color: #ead477;
  text-decoration: none;
  border-bottom: .5px solid rgba(234, 212, 119, .3);
}

.article-body a:hover {
  border-color: #ead477;
}

.article-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 24px 0 12px;
}

/* ===== 試合情報ブロック ===== */
.game-info {
  background: rgba(255, 255, 255, .03);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-info-row {
  display: flex;
  gap: 12px;
  font-size: 13px;
}

.game-info-label {
  color: rgba(255, 255, 255, .35);
  min-width: 48px;
  flex-shrink: 0;
}

.game-info-value {
  color: rgba(255, 255, 255, .7);
}

.game-info-value a {
  color: #ead477;
  text-decoration: none;
  border-bottom: .5px solid rgba(234, 212, 119, .3);
}

/* ===== 勝敗サマリー ===== */
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  background: rgba(255, 255, 255, .04);
  border-radius: 10px;
  padding: 12px 18px;
}

.result-badge .badge-label {
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .08em;
}

.result-badge .badge-score {
  font-size: 24px;
  font-weight: 700;
  color: #ead477;
  line-height: 1;
}

.result-badge .badge-vs {
  font-size: 12px;
  color: rgba(255, 255, 255, .3);
}

.result-badge .badge-opp {
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, .3);
  line-height: 1;
}

.result-badge .badge-win {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 4px;
}

.result-badge .badge-win.win {
  background: rgba(76, 175, 125, .15);
  color: #4caf7d;
}

.result-badge .badge-win.loss {
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .35);
}

/* ===== スコアテーブル ===== */
.score-table-wrap {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  border: .5px solid rgba(234, 212, 119, .12);
}

.score-table {
  width: 100%;
  border-collapse: collapse;
}

.score-table thead tr {
  background: rgba(234, 212, 119, .08);
}

.score-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #ead477;
  padding: 10px 14px;
  text-align: center;
}

.score-table th:first-child {
  text-align: left;
}

.score-table tbody tr {
  border-top: .5px solid rgba(255, 255, 255, .06);
}

.score-table tbody tr.our-team {
  background: rgba(21, 71, 52, .4);
}

.score-table td {
  padding: 12px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  text-align: center;
}

.score-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: #fff;
}

.score-table td.total {
  font-size: 18px;
  font-weight: 700;
}

.score-table tr.our-team td.total.win {
  color: #4caf7d;
}

.score-table tr.our-team td.total.loss {
  color: rgba(255, 255, 255, .5);
}

/* ===== 前後の記事ナビ ===== */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px 32px;
  border-top: .5px solid rgba(255, 255, 255, .06);
}

.article-nav-btn {
  background: rgba(255, 255, 255, .04);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  transition: background .2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-nav-btn:hover {
  background: rgba(255, 255, 255, .08);
}

.article-nav-btn.next {
  text-align: right;
}

.article-nav-dir {
  font-size: 10px;
  color: rgba(255, 255, 255, .3);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.article-nav-title {
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.4;
}

/* ===== サイドバー ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-card {
  background: #0e2518;
  border-radius: 16px;
  padding: 20px;
}

.sidebar-card .lbl {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ead477;
  opacity: .7;
  margin-bottom: 14px;
  font-weight: 500;
}

.recent-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: .5px solid rgba(255, 255, 255, .06);
  text-decoration: none;
  transition: opacity .15s;
}

.recent-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-item:hover {
  opacity: .75;
}

.recent-item-date {
  font-size: 11px;
  color: rgba(255, 255, 255, .3);
}

.recent-item-title {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  line-height: 1.4;
}

/* アーカイブリスト */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.archive-row {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: .5px solid rgba(255, 255, 255, .06);
}

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

.archive-year {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
}

.archive-count {
  font-size: 12px;
  color: rgba(255, 255, 255, .3);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-hdr {
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hdr h1 {
    font-size: 22px;
  }

  .breadcrumb {
    padding: 12px 16px;
  }

  .news-item {
    padding: 14px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .news-date {
    min-width: auto;
    font-size: 11px;
  }

  .news-cat {
    min-width: 60px;
  }

  .news-title {
    font-size: 14px;
    width: 100%;
    order: 3;
  }

  .news-arrow {
    display: none;
  }

  .article-hdr {
    padding: 20px 18px 18px;
  }

  .article-title {
    font-size: 18px;
  }

  .article-body {
    padding: 20px 18px;
  }

  .article-body p {
    font-size: 14px;
  }

  .article-nav {
    padding: 16px 18px;
  }

  .score-table th,
  .score-table td {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ===== 記事内画像 ===== */
.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 1rem 0;
}
