/* =========================================================
  News list / detail pages
  共通のヘッダー・下層ヒーロー・パンくず・お問い合わせ・フッターは
  既存の style.css を使用します。
========================================================= */

/* ---------- News list ---------- */
.news-list-page {
  padding: 76px 0 105px;
}

.news-list-page__inner {
  max-width: 950px;
}

.news-list-page__items {
  border-top: 1px solid #8b8b8b;
}

.news-list-card {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 34px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #8b8b8b;
}

.news-list-card__image {
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  background: #ddd;
}

.news-list-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-list-card:hover .news-list-card__image img {
  transform: scale(1.035);
}

.news-list-card__body time {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  color: #777;
}

.news-list-card__body h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.news-list-card__body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 72px;
  font-size: 13px;
}

.news-pagination a,
.news-pagination span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
}

.news-pagination .is-current {
  border-radius: 50%;
  color: #fff;
  background: #303030;
}

/* ---------- News detail ---------- */
.news-detail-page {
  padding: 72px 0 108px;
}

.news-detail-page__inner {
  max-width: 1030px;
}

.news-detail-page__title {
  position: relative;
  margin: 0 0 26px;
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid #777;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.news-detail-page__title::before,
.news-detail-page__content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 2.1em;
  background: #333;
  transform: translateY(-50%);
}

.news-detail-page__image {
  width: 100%;
  aspect-ratio: 1.8 / 1;
  overflow: hidden;
  background: #ddd;
}

.news-detail-page__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-detail-page__content {
  margin-top: 44px;
}

.news-detail-page__content h3 {
  position: relative;
  margin: 0 0 28px;
  padding-left: 24px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.news-detail-page__content p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 2.15;
  letter-spacing: 0.04em;
}

.news-detail-page__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 80px;
  font-size: 12px;
}

.news-detail-page__nav a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.news-detail-page__nav a:first-child {
  justify-self: start;
}

.news-detail-page__nav a:nth-child(2) {
  justify-self: center;
}

.news-detail-page__nav a:last-child {
  justify-self: end;
}

/* =========================================================
  SP
========================================================= */
@media screen and (max-width: 431px) {
  .news-list-page {
    padding: 54px 0 74px;
  }

  .news-list-card {
    grid-template-columns: 120px 1fr;
    gap: 15px;
    padding: 16px 0;
  }

  .news-list-card__body time {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .news-list-card__body h2 {
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.65;
  }

  .news-list-card__body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 10px;
    line-height: 1.7;
  }

  .news-pagination {
    gap: 14px;
    margin-top: 50px;
    font-size: 11px;
  }

  .news-detail-page {
    padding: 52px 0 74px;
  }

  .news-detail-page__title {
    margin-bottom: 20px;
    padding: 9px 0 9px 16px;
    font-size: 17px;
  }

  .news-detail-page__title::before,
  .news-detail-page__content h3::before {
    height: 1.9em;
  }

  .news-detail-page__image {
    aspect-ratio: 1.45 / 1;
  }

  .news-detail-page__content {
    margin-top: 30px;
  }

  .news-detail-page__content h3 {
    margin-bottom: 18px;
    padding-left: 16px;
    font-size: 15px;
  }

  .news-detail-page__content p {
    font-size: 12px;
    line-height: 2;
  }

  .news-detail-page__nav {
    gap: 8px;
    margin-top: 54px;
    font-size: 9px;
  }

  .news-detail-page__nav a {
    gap: 5px;
  }
}
