/* 下層ページ（記事・固定ページ・一覧）だけで使う。
   トップのデザインを崩さないよう core.css には足さず、ここに分けている。 */

.page-head { padding: 46px 0 0; }
.page-body { padding: 34px 0 90px; }

/* 記事本文の組み方。クラス名は .post-body。
   .entry はカンプのFVカードが先に使っているので避ける。行間はトップの本文と同じ1.75にそろえる。 */
.post-body { max-width: 780px; margin-inline: auto; font-size: 16px; line-height: 1.75; color: var(--text); }
.post-body > * + * { margin-top: 1.5em; }
.post-body h2 { font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.5; margin-top: 2.2em; padding-bottom: 10px; border-bottom: 2px solid var(--struct); }
.post-body h3 { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.6; margin-top: 2em; }
.post-body h4 { font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 1.8em; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: .5em; }
.post-body a { color: var(--brand-fill); text-decoration: underline; text-underline-offset: 3px; }
.post-body img { max-width: 100%; height: auto; }
.post-body blockquote { background: var(--c-tint); padding: 18px 22px; font-size: 15px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid var(--struct-weak); padding: 10px 12px; text-align: left; vertical-align: top; }
.post-body th { background: var(--c-tint); font-weight: 700; }
.post-body code { background: var(--c-tint); padding: 2px 6px; font-size: .92em; }
.post-body pre { background: var(--c-tint); padding: 16px 18px; overflow-x: auto; }
.post-body pre code { background: none; padding: 0; }
.post-body figure { margin-inline: 0; }
.post-body figcaption { margin-top: 8px; font-size: 13px; color: var(--sub); }

/* 記事の見出しまわり */
.entry-meta { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 14px; }
.entry-date { font-size: 13px; color: var(--sub); }

/* 一覧 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1080px; margin-inline: auto; }
.card { background: var(--c-tint); padding: 22px 24px 24px; }
.card:hover .card__ttl { text-decoration: underline; text-underline-offset: 3px; }
.card__ttl { display: block; margin-top: 10px; font-size: 16.5px; font-weight: 700; line-height: 1.65; color: var(--ink); }
.card__ex { margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--text); }
.card a { color: inherit; display: block; }

/* ページ送り */
.navigation.pagination { margin-top: 48px; text-align: center; }
.navigation.pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.navigation.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; background: var(--c-tint); font-size: 14px; font-weight: 700; color: var(--ink); }
.navigation.pagination .page-numbers.current { background: var(--brand-fill); color: #fff; }

/* 見つからないとき */
.empty { max-width: 780px; margin-inline: auto; text-align: center; font-size: 16px; line-height: 1.9; color: var(--text); }
.empty .btn { margin-top: 28px; }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .post-body { font-size: 15.5px; }
}
