/* =========================================================
   投稿ページ専用スタイル（single-post）
   Scope: body.single-post に限定
   対応: WPブロック(.wp-block-*)／クラシック(.entry-content)
   前提: spacing vars(--space-*), breakpoints(--bp-sp), color tokens, btn vars
========================================================= */


/* ========== 1) レイアウト共通 ========== */

body.single-post .article-offset-top {
  padding-top: calc(var(--site-header-h) + 2rem);
}

header.article-header.article-offset-top,
.entry-content.article-wrap,
footer.article-footer {
  max-width: 760px;
  margin: auto;
}

header.article-header.article-offset-top {
  margin-bottom: 3rem;
}

footer.article-footer {
  margin-top: 3rem;
  margin-bottom: 5rem;
}


/* ========== 2) タイポグラフィ ========== */

h1.article-title.entry-title,
h2.wp-block-heading,
h3.wp-block-heading {
  font-family: 'Zen Kurenaido';
  font-weight: 600;
}

h1.article-title.entry-title {
  font-size: 3.2rem;
  line-height: 1.4;
}

h2.wp-block-heading { margin-top: 4rem; }
h3.wp-block-heading { margin-top: 3rem; }
h4.wp-block-heading { margin-top: 2rem; }

/* リスト（記事本文） */
.article .entry-content li { margin: .6rem 0; } /* ※後半に同義があったためこちらに集約 */


/* ========== 3) メタ情報／カテゴリ／タグ ========== */

.article-meta {
  display: flex;
  gap: 1rem;
}

/* カテゴリ */
.post-cats a {
  color: #338998;
  text-decoration: none;
  padding: .2rem;
}
.post-cats a:hover {
  background-color: #338998;
  color: #ffffff;
  font-weight: 500;
}

/* タグ */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  align-items: flex-start;
}
.post-tags a {
  background-color: #338998;
  color: #fff;
  text-decoration: none;
  padding: .2rem .4rem;
  font-size: .8rem;
  font-weight: 500;
  border: 1px solid #338998;
}
.post-tags a:hover {
  background-color: #fff;
  color: #338998;
}


/* ========== 4) 本文内要素 ========== */

/* 強調 <mark>：蛍光ペン風 */
body.single-post mark {
  background: transparent;
  box-shadow: inset 0 -0.6em 0 #F2D7B6;
  font-weight: 500;
  color: #1A474C;
}

/* 本文内リンク */
.entry-content a {
  color: #338998;
  text-decoration: none;
  padding: .2rem;
  font-weight: 500;
}
.entry-content a:hover {
  color: #fff;
  background-color: #338998;
}

/* 画像 */
figure.wp-block-image.size-large {
  width: 100%;
  margin: 0;
}

/* 引用 */
blockquote.wp-block-quote.is-layout-flow.wp-block-quote-is-layout-flow {
  background-color: #fff;
  border: 1px solid #338998;
}

/* リスト（ブロック） */
ul.wp-block-list { margin: 2rem 0; }


/* ========== 5) 目次（TOC+ / ez-toc） ========== */

.entry-content.article-wrap div#ez-toc-container {
  border-radius: 0;
  padding: 1rem 2rem;
  border: none;
  border-left: 4px solid #338998;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .15);
  transition: box-shadow .3s ease, background-color .3s ease;
}

#ez-toc-container .ez-toc-js-icon-con {
  border-color: #338998;
  border-radius: 0;
}

#ez-toc-container li.ez-toc-page-1.ez-toc-heading-level-2 {
  margin-bottom: .8rem;
  line-height: 2;
}

#ez-toc-container ul ul { margin-left: 1.2em; }
.ez-toc-title-container { margin-bottom: .4rem; }

/* TOCリンクのhoverだけは反転させない（本文リンクとの視認性分離） */
div#ez-toc-container ul.ez-toc-list a:hover { background-color: #fff; }


/* ========== 6) テーブル（ブロックエディタ） ========== */

figure.wp-block-table {
  width: 100%;
  margin: auto 0;
}

/* テーブル全体 */
.wp-block-table table.has-fixed-layout {
  width: 100%;
  border-collapse: collapse; /* 罫線の重なり解消 */
  background-color: #fff;
}

/* 各セル */
.wp-block-table table.has-fixed-layout td,
.wp-block-table table.has-fixed-layout th {
  border: 1px solid #338998;
  padding: 0.7em 1em;
  vertical-align: top;
  line-height: 1.6;
}

/* 1行目（項目見出し風） */
.wp-block-table table.has-fixed-layout tr:first-child td {
  background-color: #33899850;
  font-weight: 600;
  color: #338998;
}


/* ========== 7) CTAブロック（壁打ち相談） ========== */
/* Class構成：
   <section class="cta-block cta-block--consult">
     <h2 class="cta-block__title">…</h2>
     <a class="btn btn-primary cta-block__btn">…</a>
   </section>
*/

section.cta-block.cta-block--consult {
  padding: 1.6rem 1rem;
  margin-top: 5rem;
  border-left: 10px solid #338998;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* 見出し */
h2.cta-block__title {
  font-family: 'Zen Kurenaido', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* ボタン（装飾＋ずらしアニメ） */
a.btn.btn-primary.cta-block__btn {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8rem 1.25rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--c-ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.05s ease;
  will-change: transform;
}

/* 枠線 */
a.btn.btn-primary.cta-block__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--c-ink);
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}

/* 背景（ずらし） */
a.btn.btn-primary.cta-block__btn::after {
  content: "";
  position: absolute;
  top: var(--btn-offset);
  left: var(--btn-offset);
  width: 100%;
  height: 100%;
  background-color: #fbdec5;
  z-index: -1;
  border-radius: inherit;
  transition: top 0.3s ease, left 0.3s ease;
}

/* ホバー */
a.btn.btn-primary.cta-block__btn:hover::after {
  top: 0;
  left: 0;
}


/* ========== 8) レスポンシブ（～768px） ========== */

@media (max-width: 768px) {
  .article { width: 94%; margin: auto; }

  .article-meta {
    display: grid;
    gap: 0;
  }

  figure.article-thumb { margin: 1rem 0 0; }

  h1.article-title.entry-title { font-size: 2.4rem; }

  .entry-content.article-wrap div#ez-toc-container { padding: .8rem; }
  #ez-toc-container a { line-height: 1.4; }

  figure.aligncenter.size-large { margin: 0; }
}


time.post-date {
    display: none;
}


.wp-post-image {
    width: 100%;
}

figure.article-thumb {
    margin: 1.2rem 0 0 0;
}

nav.rank-math-breadcrumb {
    font-size: 0.9rem;
}

.rank-math-breadcrumb a {
    color: #1A474C;
    text-decoration: none;
}