/* ===================================
   Newsページ
   既存 style.css のデザインに準拠
=================================== */

/* セクション全体 */
.newsSec {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px 120px;
}

/* 3列グリッド */
.newsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin-bottom: 60px;
}

/* カード */
.newsCard {
  background: #fff;
  border: 1px solid rgba(56, 74, 117, .1);
  box-shadow: 0 4px 16px rgba(56, 74, 117, .06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.newsCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(56, 74, 117, .12);
}

/* リンク */
.newsCard__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 画像エリア */
.newsCard__img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f0f3f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* サムネイル画像 */
.newsCard__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.newsCard:hover .newsCard__thumbnail {
  transform: scale(1.04);
}

/* ロゴ画像（画像なしの場合） */
.newsCard__thumbnail--logo {
  width: 60%;
  height: auto;
  object-fit: contain;
  padding: 20px;
}

/* カード本文エリア */
.newsCard__body {
  padding: 20px;
}

/* 日付 */
.newsCard__date {
  display: block;
  font-size: 0.82rem;
  color: #6BB347;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
}

/* タイトル */
.newsCard__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #384A75;
  line-height: 1.6;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 本文テキスト */
.newsCard__excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.8;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 記事なし */
.newsEmpty {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  padding: 60px 0;
}

/* ページネーション */
.newsPagination {
  text-align: center;
  margin-top: 60px;
}

.newsPagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.newsPagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  color: #384A75;
  border: 1.5px solid rgba(56, 74, 117, .2);
  text-decoration: none;
  transition: background .3s, color .3s, border-color .3s;
}

.newsPagination .page-numbers:hover {
  background: #384A75;
  color: #fff;
  border-color: #384A75;
}

.newsPagination .page-numbers.current {
  background: #384A75;
  color: #fff;
  border-color: #384A75;
  font-weight: 700;
}

.newsPagination .page-numbers.dots {
  border: none;
  width: auto;
}

/* ===================================
   レスポンシブ
=================================== */
@media (max-width: 860px) {
  .newsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 560px) {
  .newsSec {
    padding: 40px 16px 80px;
  }

  .newsGrid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .newsCard__img {
    height: 200px;
  }
}

/* ===================================
   News 詳細ページ（single.php）
=================================== */

/* タイトルバナー：中央＆余白設計 */
.contactCta {
  padding: 120px 20px 70px;
  text-align: center;
}

.contactCta__inner {
  max-width: 900px;
  margin: 0 auto;
}

.headerband_title {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.newsSection {
  padding: 70px 20px 120px;
}

.newsBox {
  max-width: 1000px; 
  margin: 0 auto;
}

/* 日付：上に小さく */
.newsDate {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: #6BB347;     
  letter-spacing: 0.10em;
  font-family: "Inter", "Noto Sans JP", sans-serif;
}

.post-content {
  text-align: left;
  line-height: 2;
  font-size: 16px;
}

.post-content p {
  margin: 0 0 24px;
}

.post-content h2 {
  margin: 60px 0 18px;
  font-size: 1.35rem;
  line-height: 1.4;
  color: #384A75;
  letter-spacing: 0.04em;
}

.post-content h3 {
  margin: 40px 0 14px;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #384A75;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 36px auto;
}

.post-content ul,
.post-content ol {
  padding-left: 1.2em;
  margin: 0 0 24px;
}


.newsCta {
  margin-top: 80px;
  text-align: center;
}

.newsBtn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid #384A75;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.newsBtn:hover {
  background: #384A75;
  color: #fff;
  transform: translateY(-1px);
}

/* SP微調整 */
@media (max-width: 560px) {
  .contactCta {
    padding: 90px 16px 50px;
  }
  .newsSection {
    padding: 50px 16px 90px;
  }
  .newsBox {
    max-width: 100%;
  }
}

/* ===================================
   News詳細ページ（追加）
=================================== */
.newsDetailSec {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 120px;
}

.newsDetail__head {
  text-align: center;
  margin-bottom: 40px;
}

.newsDetail__date {
  display: block;
  font-size: 0.9rem;
  color: #6BB347;
  margin-bottom: 16px;
}

.newsDetail__title {
  font-size: 2rem;
  font-weight: 700;
  color: #384A75;
  line-height: 1.6;
}

.newsDetail__img {
  margin-bottom: 40px;
}

.newsDetail__img img {
  width: 100%;
  height: auto;
}

.newsDetail__body {
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
}

.newsDetail__body p {
  margin-bottom: 1.5em;
}

.newsDetail__body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2em 0 1em;
  color: #384A75;
}

.newsDetail__body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5em 0 0.8em;
  color: #384A75;
}

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

.newsDetail__backBtn {
  display: inline-block;
  background: #384A75;
  color: #fff;
  padding: 14px 40px;
  text-decoration: none;
  transition: background .3s;
}

.newsDetail__backBtn:hover {
  background: #2f4070;
}

