/* ==========================================================================
   News Page — ニュース一覧リデザイン
   ========================================================================== */

.news-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

/* -------------------------------------------------------------------
   ヒーローバナー（写真付き）
   ------------------------------------------------------------------- */
.news-hero-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-top: 48px;
  margin-bottom: 60px;
  height: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.news-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 35, 51, 0.6) 0%, rgba(26, 35, 51, 0.2) 100%);
}

.news-hero-banner-text {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 1;
  color: #fff;
}

.news-hero-banner-text h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 2px;
}

.news-hero-banner-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* -------------------------------------------------------------------
   フィルタータブ
   ------------------------------------------------------------------- */
.news-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.news-filter-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6c757d;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-right: 8px;
}

.news-filter-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-filter-btn:hover {
  border-color: #1a2333;
  color: #1a2333;
}

.news-filter-btn.is-active {
  background: #1a2333;
  border-color: #1a2333;
  color: #fff;
}

/* -------------------------------------------------------------------
   ニュースリスト
   ------------------------------------------------------------------- */
.news-article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-article-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #e9ecef;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease;
  position: relative;
}

.news-article-item:first-child {
  border-top: 1px solid #e9ecef;
}

.news-article-item:hover {
  background: #f8f9fb;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 12px;
  border-color: transparent;
}

.news-article-item:hover + .news-article-item {
  border-top-color: transparent;
}

/* 日付 */
.news-article-date {
  flex-shrink: 0;
  width: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #adb5bd;
  padding-top: 2px;
}

/* メタ情報 + タイトル */
.news-article-body {
  flex: 1;
  min-width: 0;
}

.news-article-category {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.news-article-category.-info {
  background: #e8f4fd;
  color: #1a73e8;
}

.news-article-category.-release {
  background: #fff3e0;
  color: #e65100;
}

.news-article-category.-sustainability {
  background: #e8f5e9;
  color: #2e7d32;
}

.news-article-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a2333;
  margin: 0;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.news-article-item:hover .news-article-title {
  color: #3a5070;
}

/* 矢印 */
.news-article-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8f9fb;
  color: #adb5bd;
  font-size: 0.85rem;
  margin-top: 4px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.news-article-item:hover .news-article-arrow {
  background: #1a2333;
  color: #fff;
  transform: translateX(4px);
}

/* 非表示（フィルタリング用） */
.news-article-item.is-hidden {
  display: none;
}

/* -------------------------------------------------------------------
   記事なしメッセージ
   ------------------------------------------------------------------- */
.news-empty-message {
  text-align: center;
  padding: 60px 20px;
  color: #adb5bd;
  font-size: 0.95rem;
  display: none;
}

.news-empty-message.is-visible {
  display: block;
}

/* -------------------------------------------------------------------
   レスポンシブ
   ------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .news-page {
    padding: 0 20px 60px;
  }

  .news-hero-banner {
    height: 180px;
    margin-top: 32px;
    margin-bottom: 40px;
    border-radius: 16px;
  }

  .news-hero-banner-text {
    bottom: 24px;
    left: 24px;
  }

  .news-hero-banner-text h2 {
    font-size: 1.4rem;
  }

  .news-filter-bar {
    gap: 8px;
    margin-bottom: 28px;
  }

  .news-filter-label {
    width: 100%;
    margin-bottom: 4px;
  }

  .news-filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .news-article-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
  }

  .news-article-date {
    width: auto;
    font-size: 0.8rem;
  }

  .news-article-body {
    width: 100%;
    order: 3;
  }

  .news-article-arrow {
    margin-left: auto;
  }
}
