/* ===================== Post Layout ===================== */

.post-page {
  width: 100%;
  max-width: 100%;
  background: #F5F1EB;
}

/* ===================== News Header Section ===================== */
/* NEWS セクションのヘッダー部分（ABOUTページのcompany-sectionと同じ構造） */
.post-page__news-header {
  width: 100%;
  margin: 0;
  padding: 80px 16px 40px;
  text-align: center;
  background: #fff;
}
/* ニュースセクションのタイトル（太字、大サイズ、黒色） */
.post-page__news-title {
  font-weight: 900;
  font-size: 64px;
  line-height: 96px;
  margin: 0 0 24px;
  color: #000000;
}
/* ニュースセクションのサブタイトル（小サイズ、緑色） */
.post-page__news-subtitle {
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
  color: #888888;
}

/* ===================== Post Content ===================== */
/* 投稿詳細のラッパー（中央寄せ、縦積み） */
.post-single {
  max-width: 1200px;
  margin: clamp(32px, 5vw, 72px) auto;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 32px);
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

/* ヒーローブロック（画像+テキストの2カラムカード） */
/* ヒーローブロック（横並び→縦並びを柔軟に切替） */
.post-hero {
  background: #fff;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: clamp(16px, 3vw, 24px);
  min-height: 0;
}

/* ヒーローの画像ラッパー */
/* ヒーローの画像エリア */
.post-hero__media {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
}

/* ヒーロー画像（全面カバー） */
.post-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ヒーロー右側の本文 */
/* ヒーロー右側（テキストエリア） */
.post-hero__content {
  padding: 40px 0px;
  flex-direction: column;
  gap: 16px;
}

/* メタ情報（カテゴリ・日付等） */
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c4033;
}

/* カテゴリバッジ */
.post-hero__category {
  background: #facc15;
  color: #1f160f;
  padding: 6px 12px;
  border-radius: 999px;
}

/* 記事タイトル（h1） */
.post-hero__title {
  font-size: 32px;
  line-height: 1.2;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* リード文 */
.post-hero__lead {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  margin: 0;
}

/* 特徴ポイントのカードグリッド */
.post-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

/* ハイライトカード */
.post-highlights__item {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

/* ハイライト見出し */
.post-highlights__item h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

/* ハイライト本文 */
.post-highlights__item p {
  margin: 0;
  line-height: 1.8;
  color: #555;
}

/* 記事本文ブロック */
.post-body {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 0;
  padding: 0;
}

/* 本文内の見出し群（h2/h3/h4） */

/* h2見出し（大見出し）- 最も目立つスタイル */
.post-body h2 {
  margin-top: 2em;
  margin-bottom: 1.2em;
  line-height: 1.4;
  font-weight: 800;
  font-size: 28px;
  padding: 28px 34px;
  background: linear-gradient(135deg, #facc15 0%, #fbbf24 100%);
  border-left: 8px solid #5c4033;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(92, 64, 51, 0.15);
  color: #1f160f;
}

/* h3見出し（中見出し） */
.post-body h3 {
  margin-top: 1.8em;
  margin-bottom: 1em;
  line-height: 1.35;
  font-weight: 700;
  font-size: 26px;
  padding: 22px 29px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 6px solid #5c4033;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(92, 64, 51, 0.1);
  color: #1f160f;
}

/* h4見出し（小見出し） */
.post-body h4 {
  margin-top: 1.6em;
  margin-bottom: 0.9em;
  line-height: 1.3;
  font-weight: 700;
  font-size: 22px;
  padding: 17px 22px;
  background: #f4f0e6;
  border-left: 5px solid #5c4033;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(92, 64, 51, 0.08);
  color: #1f160f;
}

/* 本文中の段落 */
.post-body p {
  margin-bottom: 1.5em;
}

/* CTAセクション（資料DL等） */
.post-cta {
  background: linear-gradient(135deg, #120f12, #5c4033);
  border-radius: 32px;
  padding: clamp(32px, 5vw, 56px);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

/* CTAの見出し（h2） */
.post-cta__body h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

/* CTAの説明文 */
.post-cta__body p {
  margin: 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

/* CTAボタン */
.post-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

/* CTAボタンのホバー */
.post-cta__button:hover {
  background: #fff;
  color: #1f160f;
}

/* ページネーション */
.post-pagination {
  margin-top: 32px;
  font-size: 16px;
}

/* 記事がない場合の表示 */
.post-page__empty {
  text-align: center;
  padding: 80px 16px;
  font-size: 18px;
  color: #666;
}

/* ===================== 目次（Table of Contents） ===================== */
.post-toc {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.post-toc__title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 20px;
  color: #1f160f;
  padding-bottom: 12px;
  border-bottom: 2px solid #facc15;
}

.post-toc__list {
  list-style: decimal;
  padding-left: 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-toc__item {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.post-toc__link {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-toc__link:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* ===================== お知らせコンテンツブロック ===================== */
/* コンテンツブロックセクション */
.post-content-blocks {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 32px);
  margin: clamp(24px, 3vw, 32px) 0;
}

/* 各コンテンツブロック */
.post-content-block {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

/* コンテンツブロックの画像 */
.post-content-block__image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.post-content-block__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* コンテンツブロックの見出し（h2） */
.post-content-block__heading {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
  color: #fff;
  padding: 16px 32px;
  background: #454545;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* スクロールでビューポートに入った時にフェードイン */
.post-content-block__heading.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* コンテンツブロックの説明文 */
.post-content-block__text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

.post-content-block__text p {
  margin-bottom: 1em;
}

.post-content-block__text p:last-child {
  margin-bottom: 0;
}

/* 注意・重要事項セクション */
.post-important {
  background: #fff3cd;
  border-left: 6px solid #2D5016;
  border-radius: 12px;
  padding: clamp(20px, 3vw, 32px);
  margin: clamp(24px, 3vw, 32px) 0;
}

.post-important__content {
  font-size: 16px;
  line-height: 1.8;
  color: #1f160f;
  margin: 0;
}

/* タブレット以下（900px）でのレイアウト調整 */
@media (max-width: 900px) {
  /* タブレット以下ではヒーローを1カラム化 */
  .post-hero {
    grid-template-columns: 1fr;
  }

  /* 画像高さを固定 */
  .post-hero__media {
    height: 320px;
  }

  /* モバイルで主要要素を中央寄せに */
  .post-page__news-header,
  .post-hero__content,
  .post-single,
  .post-body,
  .post-cta {
    text-align: center;
    align-items: center;
  }
  .post-cta {
    justify-content: center;
  }
  .post-cta__body {
    text-align: center;
    margin: 0 auto;
  }
  .post-cta__button {
    margin: 0 auto;
  }
}
