/* ================================================
   News Archive & Single Page Styles
   ================================================ */

/* Page Header */
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
}

.page-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.page-title .en {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: #185246;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.page-title .txt {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  font-family: "Noto Serif JP", serif;
}

@media (max-width: 767px) {
  .page-header {
    padding: 3rem 0 1.5rem;
  }

  .page-title .txt {
    font-size: 1.5rem;
  }
}

/* News Archive */
.news-archive {
  position: relative;
  background-color: #fff;
  padding: 2rem 0 4rem;
}

.news-archive::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 90%;
  height: 100%;
  background-image: url('../img/news-section-bg.jpeg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom right;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 20%, black 200%),
    linear-gradient(to bottom, transparent 55%, black 100%);
  mask-size: 100% 100%, 100% 1000%;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-composite: add;
  z-index: 0;
}

.news-archive__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.news-archive__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* News Archive Item */
.news-archive__item {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 0;
  transition: background-color 0.3s ease;
}

.news-archive__item:hover {
  background-color: rgba(24, 82, 70, 0.02);
}

.news-archive__link {
  display: block;
  text-decoration: none;
}

.news-archive__date {
  display: block;
  color: #185246;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.news-archive__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  font-family: "Noto Serif JP", serif;
  transition: color 0.3s ease;
  margin: 0;
}

.news-archive__link:hover .news-archive__title {
  color: #185246;
}

/* No Posts Message */
.no-posts {
  text-align: center;
  padding: 3rem 0;
  color: #6b7280;
  font-size: 1rem;
}

/* Pagination */
.pagination,
.pagination-wrapper {
  margin-top: 3rem;
  text-align: center;
}

.pagination .nav-links,
.wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

/* ページ番号の基本スタイル */
.pagination .page-numbers,
.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background-color: #fff;
}

/* ホバー時 */
.pagination .page-numbers:hover,
.wp-pagenavi a:hover {
  background-color: #185246;
  color: #fff;
  border-color: #185246;
}

/* 現在のページ */
.pagination .page-numbers.current,
.wp-pagenavi .current {
  background-color: #185246;
  color: #fff;
  border-color: #185246;
  font-weight: 600;
}

/* 前へ・次へボタン */
.pagination .prev,
.pagination .next,
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  font-weight: 600;
  padding: 0 1rem;
}

/* 最初・最後へボタン */
.wp-pagenavi .first,
.wp-pagenavi .last {
  font-weight: 600;
}

/* ページ情報テキスト */
.wp-pagenavi .pages {
  border: none;
  background: none;
  color: #6b7280;
  font-weight: 500;
  margin-right: 0.5rem;
}

/* 省略記号 */
.wp-pagenavi .extend {
  border: none;
  background: none;
  color: #6b7280;
  cursor: default;
}

/* larger クラス（特定のページ番号） */
.wp-pagenavi .larger {
  min-width: 2.5rem;
}

@media (max-width: 767px) {
  .news-archive::before {
    display: none;
  }

  .news-archive {
    padding: 1rem 0 2rem;
  }

  .news-archive__item {
    padding: 1rem 0;
  }

  .news-archive__title {
    font-size: 1rem;
  }
}

/* News Detail (Single) */
.news-detail {
  position: relative;
  background-color: #fff;
  padding: 2rem 0 4rem;
}

.news-detail__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.news-detail__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.news-detail__date {
  display: block;
  color: #185246;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.news-detail__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  font-family: "Noto Serif JP", serif;
  line-height: 1.5;
  margin: 0;
}

.news-detail__content {
  line-height: 1.8;
  color: #374151;
  font-size: 1rem;
}

.news-detail__content p {
  margin-bottom: 1.5rem;
}

.news-detail__content h2,
.news-detail__content h3,
.news-detail__content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.news-detail__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* News Navigation */
.news-detail__navigation {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.news-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-nav:hover {
  background-color: rgba(24, 82, 70, 0.05);
  border-color: #185246;
}

.news-nav__label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.news-nav__title {
  font-size: 0.875rem;
  color: #1f2937;
  font-weight: 600;
}

.news-nav--next {
  text-align: right;
}

/* Back to List Button */
.news-detail__back {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.btn-back {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  height: 64px;
  padding: 8px 64px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  color: #fff;
  text-align: center;
  overflow-wrap: anywhere;
  background-color: #185246;
  border-radius: 32px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-back:hover {
  background-color: #124034;
}

@media (max-width: 767px) {
  .news-detail {
    padding: 1rem 0 2rem;
  }

  .news-detail__title {
    font-size: 1.375rem;
  }

  .news-detail__navigation {
    flex-direction: column;
  }

  .news-nav--next {
    text-align: left;
  }
}
