/* ===================
ニュースページ固有
=================== */

/* ニュースコンテンツエリア（白背景） */
.news-content {
  background-color: #ffffff;
  padding: 48px 20px 80px;
}

@media (min-width: 820px) {
  .news-content {
    padding: 64px 40px 96px;
  }
}

/* 記事インナー */
.news-article__inner {
  max-width: 1148px;
  margin: 0 auto;
}

/* 日付 */
.news-article__date {
  display: block;
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

/* タイトル */
.news-article__title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
  margin: 0 0 20px;
}

@media (min-width: 820px) {
  .news-article__title {
    font-size: 3.2rem;
    margin-bottom: 24px;
  }
}

/* サブコピー */
.news-article__subcopy {
  font-size: 1.5rem;
  color: #666;
  margin: 0 0 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
}

/* 本文エリア */
.news-article__body {
  font-size: 1.5rem;
  line-height: 1.9;
  color: #333;
}

.news-article__body p {
  margin-bottom: 24px;
}

.news-article__body p:last-child {
  margin-bottom: 0;
}

/* 本文中の見出し */
.news-article__body h2 {
  margin: 50px 0 30px;
  padding: 16px 16px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  background-color: #d9d9d9;
}

@media (min-width: 820px) {
  .news-article__body h2 {
    font-size: 1.8rem;
  }
}

/* ===================
一覧ページ固有
=================== */

/* 一覧ページのページヘッダー修飾 */
.page-header--list {
  padding-bottom: 40px;
  text-align: center;
}

@media (min-width: 768px) {
  .page-header--list {
    padding-bottom: 48px;
  }
}

@media (min-width: 820px) {
  .page-header--list {
    padding-bottom: 56px;
  }
}

.page-header--list .page-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* 一覧ページのパンくずは左寄せ */
.page-header--list .page-header__inner > nav {
  align-self: flex-start;
  width: 100%;
  text-align: left;
}

/* 一覧コンテナ */
.news-list-container {
  max-width: 1148px;
  margin: 0 auto;
}

/* ニュースリスト */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0 0 64px;
}

/* ニュースアイテム */
.news-item {
  border-bottom: 1px solid #e4eceb;
  padding-bottom: 32px;
  margin-bottom: 32px;
}

@media (min-width: 820px) {
  .news-item {
    padding-bottom: 36px;
    margin-bottom: 36px;
  }
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-item__link {
  display: flex;
  gap: 20px;
  text-decoration: none;
  align-items: flex-start;
}

@media (min-width: 820px) {
  .news-item__link {
    gap: 32px;
  }
}

/* サムネイル */
.news-item__thumb {
  width: 100px;
  height: 67px;
  background-color: #d9d9d9;
  flex-shrink: 0;
  overflow: hidden;
}

@media (min-width: 600px) {
  .news-item__thumb {
    width: 160px;
    height: 90px;
  }
}

@media (min-width: 820px) {
  .news-item__thumb {
    width: 200px;
    height: 105px;
  }
}

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

/* 日付・タイトル */
.news-item__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding-top: 4px;
}

@media (min-width: 820px) {
  .news-item__info {
    gap: 16px;
    padding-top: 0;
  }
}

.news-item__date {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: #9da19d;
  letter-spacing: 0.04em;
  line-height: 1;
}

@media (min-width: 820px) {
  .news-item__date {
    font-size: 1.3rem;
  }
}

.news-item__title {
  font-size: 1.4rem;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin: 0;
  transition: color 0.2s;
}

@media (min-width: 820px) {
  .news-item__title {
    font-size: 1.5rem;
  }
}

.news-item__link:hover .news-item__title {
  color: #0069b9;
}

/* ページネーション */
.news-pagination {
  display: flex;
  justify-content: center;
}

.news-pagination__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 820px) {
  .news-pagination__list {
    gap: 8px;
  }
}

.news-pagination__item a,
.news-pagination__item--current span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  font-size: 1.4rem;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.news-pagination__item a {
  color: #333;
  padding: 0 4px;
}

.news-pagination__item a:hover {
  background-color: #f0f4f8;
  color: #0069b9;
}

.news-pagination__item--current span {
  background-color: #0069b9;
  color: #ffffff;
  font-weight: 700;
}

.news-pagination__item--ellipsis {
  font-size: 1.4rem;
  color: #333;
  padding: 0 4px;
  line-height: 32px;
}

.news-pagination__item--next a {
  border-radius: 4px;
  padding: 0 12px;
  color: #0069b9;
  font-weight: 500;
}

/* ===================
詳細ページ固有
=================== */

/* 戻るリンクエリア */
.news-article__footer {
  margin-top: 64px;
  text-align: center;
}

/* お知らせ一覧に戻るリンク */
.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: opacity 0.2s;
}

.news-back-link:hover {
  opacity: 0.7;
}

.news-back-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #0069b9;
  flex-shrink: 0;
}
