nav .wp-pagenavi {
  margin: 0 auto;
  font-size: 13px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav .wp-pagenavi a {
  color: #222222;
}

nav .wp-pagenavi span.current,
nav .wp-pagenavi a.page {
  margin: 0 10px 0 0;
  border: solid 1px #eee;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 40px;
  text-align: center;
  box-sizing: border-box;
  justify-content: center;
  display: flex;
  align-items: center;
  transition: 0.3s;
}

nav .wp-pagenavi span.current {
  background: #f9fafb;
}

nav .wp-pagenavi a.page {
  background: none;
}

nav .wp-pagenavi a.page:hover {
  background: #f9fafb;
}

nav .wp-pagenavi .first,
nav .wp-pagenavi .extend {
  margin-right: 10px;
}

nav .wp-pagenavi .previouspostslink,
nav .wp-pagenavi .nextpostslink {
  position: relative;
  border: none;
  transition: all 0.5s 0s ease;
}

nav .wp-pagenavi .previouspostslink {
  right: 0;
}

nav .wp-pagenavi .nextpostslink {
  left: 0;
}

nav .wp-pagenavi .previouspostslink:hover {
  right: 5px;
}

nav .wp-pagenavi .nextpostslink:hover {
  left: 5px;
}

nav .wp-pagenavi a,
nav .wp-pagenavi span {
  border: none;
}

/* ===== Frontend headings with left bar (h1–h6 & Post Title) ===== */
/* スコープをフロント側の主要コンテナに限定（エディタには干渉しない） */
:where(.wp-site-blocks, .entry-content, .wp-block-post-content) :is(h1) {
  font-size: 30px;
  font-weight: 600;
  position: relative;
  margin-top: 4rem;
}
:where(.wp-site-blocks, .entry-content, .wp-block-post-content) :is(h2) {
  font-size: 24px;
  font-weight: 600;
  position: relative;
  margin-top: 4rem;
}
:where(.wp-site-blocks, .entry-content, .wp-block-post-content) :is(h3) {
  font-size: 20px;
  margin-top: 3rem;
}
:where(.wp-site-blocks, .entry-content, .wp-block-post-content) :is(h4) {
  font-size: 18px;
  margin-top: 3rem;
}
/* Post Title（投稿タイトルブロック）も同じ見た目に */
.wp-site-blocks .wp-block-post-title {
  position: relative;
}

/* 補助：見出しの下余白（好みで） */
:where(.wp-site-blocks, .entry-content, .wp-block-post-content) :is(h1, h2, .wp-block-post-title) {
  margin-block-end: 0.6em;
}
:where(.wp-site-blocks, .entry-content, .wp-block-post-content) :is(a) {
  color: var(--wp--preset--color--secondary);
  text-decoration: underline;
}
.custom-text a {
  text-decoration: underline;
}
@media (hover: hover) and (pointer: fine) {
  .custom-text a:hover {
    color: #666;
    text-decoration: none;
  }
  :where(.wp-site-blocks, .entry-content, .wp-block-post-content) :is(a):hover {
    text-decoration: none;
  }
}
@media (min-width: 768px) {
  :where(.wp-site-blocks, .entry-content, .wp-block-post-content) :is(h1) {
    font-size: 36px;
  }
  :where(.wp-site-blocks, .entry-content, .wp-block-post-content) :is(h2) {
    font-size: 28px;
  }
}
