/* =========================================
   News Page
========================================= */

.news-page {
  width: 100%;
  overflow-x: hidden;
  background: #fff;
  color: #0d1b2f;
}

/* =========================================
   News Hero
========================================= */

.news-hero {
  position: relative;
  overflow: hidden;
  background: #f1f8f5;
  padding: 56px 20px 48px;
  text-align: center;
}

.news-hero::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -60px;
  top: -60px;
  background: rgba(0, 155, 131, 0.12);
}

.news-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.news-label {
  color: #009b83;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
}

.news-hero h1 {
  color: #0d1b2f;
  font-size: 38px;
  line-height: 1.4;
  font-weight: 800;
  margin: 0 0 20px;
}

.news-hero h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  background: #009b83;
  margin: 18px auto 0;
}

.news-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: #0d1b2f;
  font-size: 15px;
  line-height: 1.9;
}

/* =========================================
   News List Section
========================================= */

.news-list-section {
  padding: 56px 20px 80px;
}

.news-container {
  max-width: 1040px;
  margin: 0 auto;
}

/* =========================================
   News Simple List
========================================= */

.news-simple-list {
  border-top: 1px solid #d8e4df;
}

.news-simple-item {
  border-bottom: 1px solid #d8e4df;
}

.news-simple-link {
  display: grid;
  grid-template-columns: 190px 1fr 32px;
  gap: 28px;
  align-items: center;
  padding: 28px 18px;
  color: #0d1b2f;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    padding-left 0.2s ease;
}

.news-simple-link:hover {
  background: #f1f8f5;
  padding-left: 24px;
}

.news-simple-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.news-simple-meta time {
  color: #009b83;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.news-simple-category {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid #009b83;
  border-radius: 999px;
  color: #009b83;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.news-simple-title {
  color: #0d1b2f;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 700;
  margin: 0;
}

.news-simple-arrow {
  color: #009b83;
  font-size: 22px;
  font-weight: 700;
  justify-self: end;
  transition: transform 0.2s ease;
}

.news-simple-link:hover .news-simple-arrow {
  transform: translateX(4px);
}

/* =========================================
   Pagination
========================================= */

.news-pagination {
  margin-top: 48px;
  text-align: center;
}

.news-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-pagination .page-numbers {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f8f5;
  color: #0d1b2f;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.news-pagination .page-numbers.current {
  background: #009b83;
  color: #fff;
}

/* =========================================
   Empty State
========================================= */

.news-empty {
  text-align: center;
  background: #f1f8f5;
  border-radius: 20px;
  padding: 48px 20px;
}

.news-empty h2 {
  font-size: 24px;
  margin: 0 0 12px;
}

.news-empty p {
  margin: 0;
}

/* =========================================
   Single Post
   Simple Corporate Style
========================================= */

/* 投稿者・コメント・カテゴリを非表示 */
.single-post .posted-by,
.single-post .comments-link,
.single-post .byline,
.single-post .cat-links {
  display: none !important;
}

/* 投稿ページ全体 */
.single-post .site-main {
  background: #fff;
}

/* カード表現をなくす */
.single-post article.post {
  max-width: 920px;
  margin: 0 auto;
  padding: 72px 20px 88px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

/* 投稿ヘッダー */
.single-post .entry-header {
  margin-bottom: 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid #d8e4df;
}

/* タイトル */
.single-post .entry-title {
  color: #0d1b2f;
  font-size: 38px;
  line-height: 1.55;
  font-weight: 700;
  margin: 0 0 18px;
}

/* メタ情報 */
.single-post .entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #009b83;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.single-post .entry-meta .comments-link::before,
.single-post .entry-meta .posted-by::before,
.single-post .entry-meta .published::before {
  display: none !important;
}

/* アイキャッチ */
.single-post .post-thumb {
  margin-bottom: 40px;
}

.single-post .post-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* 本文 */
.single-post .entry-content {
  max-width: 760px;
  margin: 0 auto;
  color: #0d1b2f;
  font-size: 16px;
  line-height: 2;
}

.single-post .entry-content p {
  margin: 0 0 1.8em;
}

.single-post .entry-content h2 {
  color: #0d1b2f;
  font-size: 26px;
  line-height: 1.6;
  margin: 56px 0 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #009b83;
}

.single-post .entry-content h3 {
  color: #0d1b2f;
  font-size: 21px;
  line-height: 1.6;
  margin: 40px 0 18px;
  padding-left: 14px;
  border-left: 4px solid #009b83;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
  margin: 0 0 2em;
  padding-left: 1.5em;
}

.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

/* 前後投稿 */
.single-post .post-navigation {
  max-width: 920px;
  margin: 0 auto 64px;
  padding: 28px 20px 0;
  border-top: 1px solid #d8e4df;
}

.single-post .post-navigation a {
  color: #0d1b2f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.single-post .post-navigation a:hover {
  color: #009b83;
}

/* ニュース一覧へ戻る */
.single-news-back {
  max-width: 920px;
  margin: 56px auto 0;
  padding-top: 32px;
  border-top: 1px solid #d8e4df;
  text-align: center;
}

.single-news-back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 13px 28px;
  border: 1px solid #009b83;
  border-radius: 999px;
  background: #fff;
  color: #009b83;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.single-news-back a::before {
  content: "←";
  margin-right: 8px;
}

.single-news-back a:hover {
  background: #009b83;
  color: #fff;
}

/* =========================================
   Single Post Responsive
========================================= */

@media (max-width: 768px) {
  .single-post article.post {
    margin: 0;
    padding: 48px 20px 64px;
  }

  .single-post .entry-header {
    margin-bottom: 30px;
    padding-bottom: 22px;
  }

  .single-post .entry-title {
    font-size: 27px;
    line-height: 1.6;
  }

  .single-post .entry-meta {
    font-size: 11px;
  }

  .single-post .post-thumb {
    margin-bottom: 28px;
  }

  .single-post .entry-content {
    font-size: 14px;
    line-height: 1.95;
  }

  .single-post .entry-content h2 {
    font-size: 22px;
    margin-top: 44px;
  }

  .single-post .entry-content h3 {
    font-size: 18px;
    margin-top: 34px;
  }

  .single-post .post-navigation {
    margin-bottom: 48px;
    padding: 24px 20px 0;
  }

  .single-news-back {
    margin-top: 40px;
    padding-top: 28px;
  }

  .single-news-back a {
    width: 100%;
    min-width: 0;
  }
}

/* 投稿者表示と「By」を完全に非表示 */
.single-post .posted-by,
.single-post .byline,
.single-post .author,
.single-post .entry-meta .posted-by {
  display: none !important;
}

/* Byだけ残る場合の区切り調整 */
.single-post .entry-meta {
  gap: 0;
}

.single-post .entry-meta > span:not(.posted-on) {
  display: none !important;
}

.single-post .entry-meta {
  font-size: 0;
}

.single-post .entry-meta .posted-on,
.single-post .entry-meta .published {
  font-size: 13px;
}

/* =========================================
   News Page Top Spacing Fix
========================================= */

/* Astra標準の上余白を消す */
body.blog #content,
body.blog .site-content,
body.blog #primary,
body.blog .ast-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ニュースページのヒーローを上まで広げる */
body.blog .news-page {
  margin-top: 0;
}

body.blog .news-hero {
  margin-top: 0;
  padding-top: 48px;
  padding-bottom: 44px;
}

body.blog .ast-separate-container #primary,
body.blog .ast-separate-container .site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.blog .ast-separate-container .ast-article-post,
body.blog .ast-separate-container .ast-article-single {
  margin-top: 0 !important;
}


/* ニュースヒーローを画面幅いっぱいにする */
body.blog .news-page {
  width: 100%;
  max-width: none;
}

body.blog .news-hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}

body.blog #content,
body.blog .site-content,
body.blog #primary,
body.blog .ast-container,
body.blog .site-main {
  width: 100%;
  max-width: none !important;
}