/* news.css — ニュース・お知らせページ */

body {
  background: #fff;
}

/* ========================
   Page Hero
   ======================== */
.page-hero {
  position: relative;
  height: 40vh;
  min-height: 280px;
  max-height: 400px;
  background-image: url('../img/news/mumu2.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(184, 184, 184, 0.6) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}

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

.page-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 0.2em;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  font-family: var(--font-serif);
}

.page-subtitle {
  font-size: 1.3em;
  font-weight: 400;
  opacity: 0.9;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ========================
   カテゴリーフィルター
   ======================== */
.news-filter {
  background: #f8fafe;
  padding: 36px 0;
  border-bottom: 1px solid #e3eaf5;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  background: white;
  border: 2px solid #dce6f5;
  color: #555;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(13,56,124,0.06);
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,56,124,0.12);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color), #1462b1);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 16px rgba(13,56,124,0.25);
}

/* ========================
   ニュース一覧セクション
   ======================== */
.news-list-section {
  padding: 70px 0;
  background: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* ========================
   ニュースカード
   ======================== */
.news-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13,56,124,0.07);
  transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1),
              box-shadow 0.35s cubic-bezier(0.25,0.8,0.25,1);
  border: 1px solid #eef1f8;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13,56,124,0.13);
}

.news-image {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25,0.8,0.25,1);
}

.news-card:hover .news-image img {
  transform: scale(1.06);
}

.news-content {
  padding: 24px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.news-meta time {
  color: #778;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.news-category-tag {
  background: linear-gradient(135deg, var(--primary-color), #1462b1);
  color: white;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2a40;
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-serif);
}

.news-excerpt {
  color: #666;
  line-height: 1.7;
  font-size: 0.93rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================
   ページネーション
   ======================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.pagination-btn {
  background: white;
  border: 2px solid #dce6f5;
  color: #555;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 44px;
  box-shadow: 0 2px 6px rgba(13,56,124,0.06);
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,56,124,0.14);
}

.pagination-btn.active {
  background: linear-gradient(135deg, var(--primary-color), #1462b1);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 14px rgba(13,56,124,0.25);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-btn.prev-btn,
.pagination-btn.next-btn,
.pagination-btn.first-btn,
.pagination-btn.last-btn {
  min-width: 72px;
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 768px) {
  .page-hero {
    height: 30vh;
    min-height: 200px;
  }
  .page-title {
    font-size: 2.2em;
  }
  .page-subtitle {
    font-size: 1.05em;
  }
  .news-list-section {
    padding: 48px 0;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .filter-buttons {
    gap: 8px;
  }
  .filter-btn {
    padding: 8px 18px;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-image {
    height: 180px;
  }
  .news-content {
    padding: 16px;
  }
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  .filter-btn {
    width: 200px;
    text-align: center;
  }
}