/* ============================================================
   WordPress 専用の追加スタイル
   モックの main.css には手を入れず、WP化で必要になる分だけをここに置く。
   ・記事カードのリンク化（カード全体クリック可能）
   ・記事本文 .post-content（wp-block-library を dequeue しているため自前で用意）
   ・ページ送り／前後記事ナビ／アイキャッチ
   ============================================================ */

/* ---------- 記事カード全体をリンクに（見た目はモックのまま） ---------- */
.post-card { position: relative; }
.post-card h3 a {
  color: inherit;
  text-decoration: none;
}
.post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.post-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* ---------- 記事詳細ヒーローのメタ ---------- */
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.post-hero-meta time {
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ---------- アイキャッチ ---------- */
.post-eyecatch {
  margin-bottom: 48px;
}
.post-eyecatch img {
  width: 100%;
  height: auto;
}

/* ---------- 記事本文（.post-content 配下にスコープ） ---------- */
.post-content {
  font-size: 1rem;
  line-height: 2;
  color: var(--ink);
}
.post-content > * + * { margin-top: 1.4em; }

.post-content h2 {
  margin-top: 2.2em;
  padding-bottom: 0.35em;
  border-bottom: 3px solid var(--ink);
  font-size: 1.5rem;
  line-height: 1.5;
}
.post-content h3 {
  margin-top: 2em;
  padding-left: 0.6em;
  border-left: 6px solid var(--yellow);
  font-size: 1.24rem;
  line-height: 1.5;
}
.post-content h4 {
  margin-top: 1.8em;
  font-size: 1.08rem;
}
.post-content a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.post-content ul,
.post-content ol {
  padding-left: 1.6em;
}
.post-content li + li { margin-top: 0.4em; }
.post-content blockquote {
  padding: 1em 1.4em;
  background: var(--cream);
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  font-weight: 600;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border: var(--line);
  border-radius: var(--radius);
}
.post-content figure { margin-inline: 0; }
.post-content figcaption {
  margin-top: 0.6em;
  font-size: 0.82rem;
  color: #6d675f;
  text-align: center;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-content th,
.post-content td {
  padding: 0.7em 1em;
  border-bottom: 2px solid #e8e2d4;
  text-align: left;
}
.post-content th { background: var(--cream); }
.post-content pre {
  padding: 1.2em 1.4em;
  background: var(--ink);
  color: #f5f1e8;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.7;
}
.post-content code {
  padding: 0.1em 0.4em;
  background: var(--cream);
  border-radius: 6px;
  font-size: 0.9em;
}
.post-content pre code {
  padding: 0;
  background: none;
}

/* エディタの配置クラス（最低限） */
.post-content .aligncenter {
  display: block;
  margin-inline: auto;
  text-align: center;
}
.post-content .alignleft { float: left; margin: 0 1.4em 1em 0; }
.post-content .alignright { float: right; margin: 0 0 1em 1.4em; }
.post-content .wp-caption { max-width: 100%; }

/* ---------- 前後記事ナビ ---------- */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 3px solid var(--ink);
  font-weight: 700;
}
.post-nav__next { margin-left: auto; text-align: right; }
.post-nav a {
  color: var(--ink);
  text-decoration: none;
}
.post-nav a:hover { color: var(--blue); }

/* ---------- ページ送り ---------- */
.pagination { margin-top: 56px; }
.pagination__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination__list a,
.pagination__list .page-numbers {
  display: inline-block;
  min-width: 2.6em;
  padding: 0.5em 0.9em;
  background: #fff;
  border: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.pagination__list a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}
.pagination__list .current {
  background: var(--yellow);
}
.pagination__list .dots {
  border: none;
  box-shadow: none;
  background: none;
}
