/* ========================================
   新着情報 詳細ページ
======================================== */

.news-detail {
  width: 100%;
  padding: 7rem 2rem;
  background: #fff;
}

.news-detail__inner {
  width: min(100%, 900px);
  margin: 0 auto;
}

.news-detail__article {
  width: 100%;
}

/* メタ情報 */

.news-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.news-detail__date {
  color: #777;
  font-size: 0.9rem;
}

.news-detail__category {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f7ecec;
  color: #c92b31;
  font-size: 0.78rem;
  font-weight: 700;
}

.news-detail__new {
  color: #c92b31;
  font-size: 0.78rem;
  font-weight: 700;
}

/* タイトル */

.news-detail__title {
  margin: 0 0 40px;
  font-size: clamp(1.5rem, 4vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* メイン画像 */

.news-detail__image {
  width: 100%;
  margin-bottom: 45px;
  overflow: hidden;
  border-radius: 18px;
}

.news-detail__image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 480px;
  margin: .5rem 0;
  border-radius: 1rem;
}

/* 本文 */

.news-detail__body {
  color: #333;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 2;
  letter-spacing: 0.03em;
}

.news-detail__body p {
  margin: 0 0 1.8em;
}

/* 戻る */

.news-detail__back {
  margin-top: 60px;
  text-align: center;
}

.news-detail__back a {
  display: inline-block;
  padding: 13px 28px;
  border: 1px solid #333;
  border-radius: 999px;
  color: #333;
  text-decoration: none;
  transition: 0.3s;
}

.news-detail__back a:hover {
  background: #faecb6;
  color: #fff;
}

/* エラー */

.news-detail__error,
.news-detail__empty {
  padding: 80px 20px;
  text-align: center;
}

/* ========================================
   スマートフォン
======================================== */

@media (max-width: 640px) {

  .news-detail {
    padding: 6rem 1rem;
  }

  .news-detail__title {
    margin-bottom: 28px;
  }

  .news-detail__image {
    margin-bottom: 30px;
    border-radius: 12px;
  }

  .news-detail__body {
    line-height: 1.9;
  }

}

/* ========================================
   新着情報一覧ページ
======================================== */

.news-page {
  width: 100%;
  padding: 7rem 2rem;
  background: #fff;
}

.news-page__inner {
  width: min(100%, 1100px);
  margin: 0 auto;
}

.news-page__heading {
  margin-bottom: 50px;
  text-align: center;
}

.news-page__sub {
  margin: 0 0 8px;
  color: #c92b31;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.news-page__heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.4;
}

/* 一覧 */

.news-page-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-page-card {
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.news-page-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.news-page-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* サムネイル */

.news-page-card__thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f3f3;
}

.news-page-card__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-page-card:hover .news-page-card__thumbnail img {
  transform: scale(1.05);
}

.news-page-card__thumbnail--noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}

/* 本文部分 */

.news-page-card__content {
  padding: 22px;
}

.news-page-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.news-page-card__date {
  color: #777;
  font-size: 0.85rem;
}

.news-page-card__category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f7ecec;
  color: #c92b31;
  font-size: 0.75rem;
  font-weight: 700;
}

.news-page-card__new {
  color: #c92b31;
  font-size: 0.72rem;
  font-weight: 700;
}

.news-page-card__title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.6;
}

.news-page-card__summary {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* エラー・空 */

.news-page-list__error,
.news-page-list__empty {
  grid-column: 1 / -1;
  padding: 80px 20px;
  text-align: center;
}

/* ========================================
   タブレット
======================================== */

@media (max-width: 992px) {

  .news-page-list {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ========================================
   スマートフォン
======================================== */

@media (max-width: 640px) {

  .news-page {
    padding: 6rem 1rem;
  }

  .news-page-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

}

/* ========================================
   ローディング
======================================== */

.news-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;

  min-height: 180px;
  width: 100%;
}

.news-loading[hidden] {
  display: none;
}

.news-loading__spinner {
  display: block;

  width: 42px;
  height: 42px;

  border: 4px solid #eee;
  border-top-color: #c92b31;
  border-radius: 50%;

  animation:
    news-loading-spin 0.8s linear infinite;
}

.news-loading__text {
  color: #777;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

@keyframes news-loading-spin {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }

}


/* ========================================
   もっと見る
======================================== */

.news-more {
  margin-top: 50px;
  text-align: center;
}

.news-more[hidden] {
  display: none;
}

.news-more__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;

  min-width: 200px;
  padding: 14px 30px;

  border: 1px solid #333;
  border-radius: 999px;

  background-color: #fff;
  color: #333;

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
}

.news-more__button:hover {
  background-color: #333;
  color: #fff;
}

.news-more__button:active {
  transform: scale(0.97);
}

.news-more__arrow {
  transition:
    transform 0.3s ease;
}

.news-more__button:hover
.news-more__arrow {
  transform: translateY(4px);
}


/* ========================================
   追加記事表示アニメーション
======================================== */

.news-page-card {
  animation:
    news-card-fade-in 0.45s ease both;
}

@keyframes news-card-fade-in {

  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


/* ========================================
   動きを減らす設定
======================================== */

@media (prefers-reduced-motion: reduce) {

  .news-loading__spinner,
  .news-page-card,
  .news-more__arrow {
    animation: none;
    transition: none;
  }

}