/* ========================================
   お知らせ詳細ページ専用スタイル
   富山カワイ幼稚園
   ----------------------------------------
   共通パーツ（CMS移行時もそのまま使用可）:
     .dl-block--pdf    … PDFダウンロード
     .dl-block--word   … Wordダウンロード
     .link-block       … 外部リンクカード
     .entry-image      … 本文内全幅画像
   ======================================== */

/* ──────────────────────────────────────
   ページヒーロー（詳細ページ用）
   記事タイトルを h1 として表示するため
   サイズをページタイトル（36px）より抑える
────────────────────────────────────── */
.page-hero--post .page-hero-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

/* ──────────────────────────────────────
   記事ラッパー
────────────────────────────────────── */
.post-wrap {
  background: #fff;
  padding: 56px 32px 80px;
}

.post-article {
  max-width: 720px;
  margin: 0 auto;
}

/* ──────────────────────────────────────
   記事メタ（日付 + タグ）
────────────────────────────────────── */
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.post-date {
  font-size: 16px;
  color: var(--color-muted);
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.05em;
}

/* ──────────────────────────────────────
   アイキャッチ画像（全幅）
────────────────────────────────────── */
.post-eyecatch {
  margin-bottom: 48px;
}

.post-eyecatch-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.post-eyecatch-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #E6EDF5;
  border-radius: 8px;
}

/* ──────────────────────────────────────
   本文タイポグラフィ
────────────────────────────────────── */
.entry-content {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
}

.entry-content p {
  margin-bottom: 1.4em;
}

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

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.4em;
  padding-left: 1.6em;
}

.entry-content li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.entry-content h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: var(--font-card-title);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.6;
  margin: 40px 0 16px;
}

/* ──────────────────────────────────────
   本文内全幅画像
   WordPress: ブロックエディタ「幅いっぱい」画像ブロック
────────────────────────────────────── */
.entry-image {
  margin: 40px 0;
}

.entry-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.entry-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #E6EDF5;
  border-radius: 8px;
}

.entry-image-placeholder--sub {
  background: #EDF2EC;
  aspect-ratio: 16 / 9;
}

.entry-image figcaption {
  font-size: var(--font-note);
  color: var(--color-muted);
  margin-top: 10px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ──────────────────────────────────────
   外部リンクカード（共通パーツ）
   .link-block--external
────────────────────────────────────── */
.link-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 20px 24px;
  border-radius: 8px;
  border: 1px solid #D1D1D1;
  background: #FAF9F8;
  margin: 24px 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.link-block:hover {
  background: #F0F6FF;
  border-color: #0874C7;
}

.link-block-body {
  flex: 1;
  min-width: 0;
}

.link-block-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  margin: 0 0 4px;
  line-height: 1.5;
}

.link-block-desc {
  font-size: 12px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-block-icon {
  font-size: 26px;
  flex-shrink: 0;
  color: #0874C7;
}

/* ──────────────────────────────────────
   前後記事ナビゲーション
────────────────────────────────────── */
.post-nav {
  max-width: 720px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--color-ink);
  transition: opacity 0.15s;
}

.post-nav-item:hover {
  opacity: 0.7;
}

.post-nav-label {
  font-size: var(--font-label);
  color: var(--color-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 2px;
}

.post-nav-label .material-symbols-outlined {
  font-size: 16px;
}

.post-nav-title {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
}

.post-nav-item--prev {
  text-align: right;
}

.post-nav-label--right {
  justify-content: flex-end;
}

/* ──────────────────────────────────────
   関連記事
────────────────────────────────────── */
/* 本文から変換したリンク（リンクパーツ）の並び */
.post-body-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  /* 記事本文と左端を揃える（中央寄せにしない） */
  margin: 28px 0 0;
}

.post-related {
  max-width: 720px;
  margin: 24px auto 0;
}


.post-related-title {
  font-size: 16px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--color-ink);
  margin-bottom: 20px;
}

.post-related-list {
  list-style: none;
}

.post-related-item {
  border-bottom: 1px dotted #D1D1D1;
}

.post-related-item:first-child {
  border-top: 1px dotted #D1D1D1;
}

.post-related-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  text-decoration: none;
  color: #0874C7;
  transition: background 0.15s;
}

.post-related-link:hover {
  background: #F5F9FF;
}

.post-related-date {
  font-size: 12px;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
}

.post-related-name {
  font-size: 14px;
  flex: 1;
  line-height: 1.5;
}

.post-related-arrow {
  font-size: 20px;
  color: #0874C7;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.post-related-link:hover .post-related-arrow {
  opacity: 1;
}

/* ──────────────────────────────────────
   お知らせ一覧に戻るリンク
────────────────────────────────────── */
.post-back {
  max-width: 720px;
  margin: 24px auto 0;
  padding-top: 0;
  text-align: center;
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  color: #0874C7;
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: 12px 28px;
  border: 1.5px solid #0874C7;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}

.post-back-link:hover {
  background: #0874C7;
  color: #fff;
}

.post-back-link .material-symbols-outlined {
  font-size: 20px;
}

/* ──────────────────────────────────────
   レスポンシブ
────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero--post .page-hero-title {
    font-size: var(--font-page-title);
  }

  .post-wrap {
    padding: 40px 20px 64px;
  }

  .link-block-desc {
    white-space: normal;
  }

  .post-back-link {
    width: 100%;
    justify-content: center;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav-item--prev {
    text-align: left;
  }

  .post-nav-label--right {
    justify-content: flex-start;
  }

  .post-related-arrow {
    display: none;
  }
}
