/* ========================================
   News Page Styles
   ======================================== */

/* Hero Section */
.news-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1503 / 401;
  background-image: url('../img/news/news-hero.jpg');
  background-size: cover;
  background-position: center;
  overflow: visible; /* 縦線がはみ出せるように */
}

.news-hero-line {
  top: calc(50% + 70px); /* タイトル下端より下から開始 */
  bottom: -98px; /* ヒーロー下端から98px下まで */
}

/* Section Title */
.news-list-header {
  text-align: center;
  padding: 130px 0 59px;
}

.news-list-title {
  font-family: var(--font-serif-jp);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1.8px;
  line-height: 29px;
  color: var(--color-text);
}

/* News List - 3 Column Card Grid */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 35px;
  row-gap: 58px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* News Card */
.news-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
  transition: opacity 0.3s;
}

.news-item:hover {
  opacity: 0.7;
}

.news-item-image {
  width: 100%;
  aspect-ratio: 343 / 231;
  overflow: hidden;
}

.news-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item-body {
  display: flex;
  flex-direction: column;
}

.news-item-meta {
  margin-top: 13px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border-dark);
}

.news-item-date {
  font-family: var(--font-sans-jp);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.9px;
  line-height: 26px;
  color: var(--color-text-secondary);
}

.news-item-title {
  font-family: var(--font-serif-jp);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 24px;
  color: var(--color-text);
  margin-top: 20px;
}

/* Pagination (PC fallback) */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0 80px;
}

.news-pagination a,
.news-pagination span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-sans);
  font-size: 14px;
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid #ddd;
  transition: background-color 0.3s, color 0.3s;
}

.news-pagination a:hover {
  background-color: var(--color-text);
  color: #fff;
}

.news-pagination .current {
  background-color: var(--color-text);
  color: #fff;
}

/* ========================================
   News Detail Page Styles
   (共通スタイルは style.css の .page-detail-* を使用)
   ======================================== */

.news-detail-meta {
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid #ddd;
}

.news-detail-date {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.2px;
  line-height: 26px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* ========================================
   SP Responsive
   ======================================== */
@media (max-width: 768px) {
  .news-hero {
    aspect-ratio: 377 / 217;
  }

  .news-hero-line {
    top: calc(50% + 50px); /* SP: タイトル下端より下から開始 */
    bottom: -54px; /* SP: ヒーロー下端から54px下まで */
  }

  .news-list-header {
    padding: 80px 0 36px;
  }

  .news-list-title {
    font-size: 20px;
    letter-spacing: 1.5px;
    line-height: 24px;
  }

  /* SP: 1 column */
  .news-list {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 40px;
    padding: 0 20px 40px;
  }

  .news-item-image {
    aspect-ratio: 336 / 229;
  }

  .news-item-meta {
    margin-top: 15px;
    padding-bottom: 12px;
  }

  .news-item-title {
    margin-top: 22px;
  }

  .news-pagination {
    padding: 20px 0 60px;
  }

  /* Detail (news固有) */
  .news-detail-date {
    font-size: 14px;
    margin-bottom: 16px;
  }
}
