/* ==========================================================================
   archive.css
   投稿系（お知らせ／直子先生のお話）専用
   home.php / single.php / archive-izumi.php / single-izumi.php
   ========================================================================== */

/* ------------------------------------------------------------------
   Entry content（Gutenberg標準ブロックの整形）
   ------------------------------------------------------------------ */

.entry-content h2 {
  font-size: var(--fs-lg);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.entry-content h3 {
  font-size: var(--fs-md);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.entry-content p {
  font-size: var(--fs-base);
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.entry-content ul,
.entry-content ol {
  font-size: var(--fs-base);
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.entry-content figure {
  margin: 0 0 var(--space-sm);
}

/* ファイルブロック（PDF）。spec 5.19（改修#26・v2.11.0）。お知らせの記事にも効く（意図どおり） */
.entry-content .wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  font-size: var(--fs-base);
}

.entry-content .wp-block-file__embed {
  display: none;
}

.entry-content .wp-block-file a:not(.wp-block-file__button) {
  display: inline-block;
  padding: 14px 32px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: var(--fs-base);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-pill);
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.entry-content .wp-block-file a:not(.wp-block-file__button):hover {
  opacity: 0.85;
  color: var(--btn-text);
}

.entry-content .wp-block-file .wp-block-file__button {
  display: none;
}

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

.entry-content > .wp-block-file:last-child {
  margin-bottom: var(--space-lg);
}

/* ------------------------------------------------------------------
   Pagination（the_posts_pagination()）
   ------------------------------------------------------------------ */

.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-xs);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: var(--fs-sm);
}

.nav-links .page-numbers.current {
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: var(--font-weight-bold);
}

.nav-links .page-numbers.dots {
  color: var(--ink);
}

/* ------------------------------------------------------------------
   個別記事の「お知らせ一覧へ」ボタン中央寄せ（.btn本体は不変）
   ------------------------------------------------------------------ */

.page-news .btn {
  display: block;
  width: fit-content;
  margin-inline: auto;
}
.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------
   個別記事の「一覧へ」戻りテキストリンク（single-izumi.php）
   意匠は5.15（pages.css の .eval__more a と同値。pages.css は single で読まれないためここに置く）
   左寄せ（text-align 指定なし。「戻る」系は左）
   ------------------------------------------------------------------ */

.entry-back {
  margin-top: var(--space-lg);
}

.entry-back a {
  font-size: var(--fs-base);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  text-decoration: underline;
}
