/* お知らせ・お役立ち情報の一覧(category.php)と記事(single.php)、存在しないページ(404.php)。style.css の後に読み込む(この3種類のページだけ)。
   本文の列は、下層ページと同じ幅(--content-width 960px)で中央に置く。見出しは運営元情報(operator.css の .operator__title)と同じ形(下に金の短い線)。
   色・ボタン・テキストリンクは style.css の変数と .button / .text-link をそのまま使う */

.posts__inner {
  width: 100%;
  max-width: calc(var(--content-width) + (var(--page-x) * 2));
  margin-inline: auto;
  padding: 56px var(--page-x) 72px;
  line-break: strict;
}

.posts__inner > * {
  margin-block: 0;
}

/* 見出し(h1) */
.posts__title {
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.posts__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 20px;
  background: var(--color-gold);
}

.posts__title + * {
  margin-top: 40px;
}

/* 日付 */
.posts__date {
  color: var(--color-text-muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* 一覧 */
.posts__list {
  padding: 0;
  border-top: 1px solid var(--color-rule);
  list-style: none;
}

.posts__item {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  column-gap: 24px;
  align-items: baseline;
  padding-block: 20px;
  border-bottom: 1px solid var(--color-line-soft);
}

.posts__link {
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

@media (max-width: 599px) {
  .posts__item {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }
}

.posts__empty {
  color: var(--color-text-muted);
}

/* ページ送り(the_posts_pagination) */
.posts__pagination {
  margin-top: 40px;
}

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

.posts__pagination .page-numbers {
  display: inline-block;
  min-width: 44px;
  padding: 8px 12px;
  text-align: center;
}

.posts__pagination .page-numbers.current {
  border-bottom: 2px solid var(--color-gold);
}

/* 記事。style.css の .site-main > article(既定テンプレートの枠)の余白は使わない */
.site-main > article.entry {
  max-width: none;
  margin: 0;
  padding: 0;
}

.entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  margin-bottom: 12px;
}

.entry__category {
  color: var(--color-text-muted);
  font-size: 14px;
  text-decoration: none;
}

.entry__category:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
}

/* 本文(クラシックエディターの段落・見出し・リスト・リンク) */
.entry__content {
  max-width: calc(38em + 2px);
  font-size: 16px;
  line-height: 1.95;
}

.entry__content > * {
  margin-block: 0;
}

.entry__content > * + * {
  margin-top: 1.4em;
}

.entry__content h2 {
  margin-top: 2.4em;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
}

.entry__content h3 {
  margin-top: 2em;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

.entry__content a {
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.entry__content ul,
.entry__content ol {
  padding-left: 1.5em;
}

/* 前後の記事(the_post_navigation) */
.entry__nav {
  margin-top: 56px;
  border-top: 1px solid var(--color-rule);
}

.entry__nav .nav-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 32px;
  padding-top: 24px;
}

.entry__nav a {
  display: block;
  text-decoration: none;
}

.entry__nav-label {
  display: block;
  color: var(--color-text-muted);
  font-size: 13px;
}

.entry__nav-title {
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 6px;
}

.entry__nav .nav-next {
  text-align: right;
}

.entry__back {
  margin-top: 40px;
}

/* 読み上げ用の見出し(ページ送り・前後の記事の「screen-reader-text」) */
.posts__inner .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 存在しないページ。見出し・説明は、文節の区切り(<wbr>)でだけ折り返す */
.not-found__title,
.not-found__text {
  word-break: keep-all;
}

.not-found__text {
  max-width: calc(38em + 2px);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}
