/* =================================================================
   news.css
   News & Events ページ（news.html）固有のスタイル
   ================================================================= */

body {
  background-color: #ffffff;
  line-height: 1.6;
}

footer { text-align: center; }

/* ----- メインコンテンツエリア ------------------------------------- */
.news-container {
  padding: 50px 10vw 100px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ----- フィルター（絞り込み）タブ --------------------------------- */
.filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--light-gray);
  padding-bottom: 20px;
}
.filter-btn {
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px 10px;
  transition: color 0.2s;
  position: relative;
}
.filter-btn:hover { color: var(--dark-navy); }
.filter-btn.active { color: var(--waseda-red); }
.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--waseda-red);
}

/* ----- ニュースリスト（トップページを踏襲しつつ拡張） ------------- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-color);
}
.news-item {
  border-bottom: 1px solid var(--border-color);
  padding: 25px 15px;
  display: flex;
  align-items: flex-start;
  transition: background-color 0.2s;
}
.news-item:hover { background-color: rgba(142, 23, 40, 0.02); }
.list-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: monospace;
  width: 120px;
  flex-shrink: 0;
}

/* カテゴリラベル */
.list-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 4px 12px;
  border-radius: 20px;
  width: 120px;
  flex-shrink: 0;
  margin-right: 30px;
  box-sizing: border-box;
  letter-spacing: 0.5px;
}
.cat-general { background: rgba(10, 17, 40, 0.08); color: var(--dark-navy); }
.cat-press { background: rgba(142, 23, 40, 0.08); color: var(--waseda-red); }
.cat-event { background: #f1f3f5; color: #495057; }

.list-main { flex-grow: 1; }
.list-title { font-size: 1.05rem; margin: 0; line-height: 1.6; }
.list-title a { color: var(--text-main); text-decoration: none; transition: color 0.2s; }
.list-title a:hover { color: var(--waseda-red); text-decoration: underline; }
.list-summary { margin: 7px 0 0 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ----- ページネーション ------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
}
.page-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.page-num:hover { border-color: var(--dark-navy); color: var(--dark-navy); }
.page-num.current {
  background-color: var(--dark-navy);
  color: var(--text-light);
  border-color: var(--dark-navy);
}
.page-dots { color: var(--text-muted); padding: 0 5px; }

/* ----- レスポンシブ対応（スマホ表示） ----------------------------- */
@media screen and (max-width: 768px) {
  .news-item { flex-direction: column; align-items: flex-start; padding: 20px 10px; }
  .list-category { margin: 10px 0 15px 0; }
  .list-date { width: auto; }
}

/* ----- 見出しのアクセント画像（page-head 右上） ------------------- */
.page-accent { background-image: url('../images/space.jpeg'); }
