/**
 * Single post: 記事本文 h2 のオリジナル見出しスタイル
 *
 * SEO方針:
 * - 見出しは <h2> のまま（レベル・テキスト・id は変更しない）
 * - 装飾は CSS のみ（display:none / font-size:0 / 疑似要素への本文移動は使わない）
 * - #conclusion 等の id は目次・アンカー用に維持
 */

:root {
  --livecom-h2-accent: #f3704b;
  --livecom-h2-text: #333;
  --livecom-h2-bg: #fff8f5;
  --livecom-h2-border: #f0e0da;
}

/* SWELL 本文エリア（post_content）内の h2 のみ */
body.single-post .post_content h2.wp-block-heading,
body.single .post_content h2.wp-block-heading,
#body_wrap.single .post_content h2.wp-block-heading {
  position: relative;
  margin: 3rem 0 1.75rem;
  padding: 0 0 0.85rem;
  border: 0;
  border-bottom: 3px solid var(--livecom-h2-accent);
  background: transparent;
  color: var(--livecom-h2-text);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: left;
}

body.single-post .post_content h2.wp-block-heading::before,
body.single .post_content h2.wp-block-heading::before,
#body_wrap.single .post_content h2.wp-block-heading::before {
  content: none;
}

/* 結論ブロック（例: id="conclusion" / 中央寄せ） */
body.single-post .post_content h2.wp-block-heading#conclusion,
body.single .post_content h2.wp-block-heading#conclusion,
#body_wrap.single .post_content h2.wp-block-heading#conclusion,
body.single-post .post_content h2.wp-block-heading.has-text-align-center,
body.single .post_content h2.wp-block-heading.has-text-align-center,
#body_wrap.single .post_content h2.wp-block-heading.has-text-align-center {
  margin: 3.25rem auto 2rem;
  padding: 1.1rem 1.25rem;
  max-width: 100%;
  border: 1px solid var(--livecom-h2-border);
  border-bottom: 3px solid var(--livecom-h2-accent);
  border-radius: 4px;
  background: var(--livecom-h2-bg);
  text-align: center;
}

@media screen and (max-width: 767px) {
  body.single-post .post_content h2.wp-block-heading,
  body.single .post_content h2.wp-block-heading,
  #body_wrap.single .post_content h2.wp-block-heading {
    margin: 2.25rem 0 1.25rem;
    padding-bottom: 0.65rem;
    font-size: 1.15rem;
  }

  body.single-post .post_content h2.wp-block-heading#conclusion,
  body.single .post_content h2.wp-block-heading#conclusion,
  #body_wrap.single .post_content h2.wp-block-heading#conclusion,
  body.single-post .post_content h2.wp-block-heading.has-text-align-center,
  body.single .post_content h2.wp-block-heading.has-text-align-center,
  #body_wrap.single .post_content h2.wp-block-heading.has-text-align-center {
    margin: 2.5rem auto 1.5rem;
    padding: 0.95rem 1rem;
  }
}
