@charset "utf-8";
/*
	Theme Name: RE:DIVER-CHILD
	Template: rediver
	Description:  re:Diverの子テーマです。
	Theme URI: http://tan-taka.com/diver/
	Author: Takato Takagi
 */

/* ============================================================
   mirunote.com 本文余白調整 2026-06-20
   原因: mn-content-controls が wp_head(99) でインラインCSS(h2 margin-top:40px)
         を出力しつつスペーサーも注入するため二重余白が発生。
   修正方針:
     - 著者挿入(plain) wp-block-spacer: margin-top を 8/4/0 に削減
       → spacer(24-32px) + 8px = 32-40px 程度(目標 36-48px に近似)
     - mn-cc 自動スペーサー(mn-cc-spacer-before-h*): margin-top をリセット
       → spacer(48/36/28px) のみで間隔を提供(目標値ちょうど)
   対象: .l-inner-content / .entry-content 内の本文エリアのみ
   非対象: ヘッダー・フッター・ナビ・mn-cta・CF7フォーム
   ============================================================ */

/* --- 著者挿入 wp-block-spacer 直後: margin-top を削減 --- */
.l-inner-content .wp-block-spacer + h2,
.entry-content   .wp-block-spacer + h2 { margin-top: 8px; }

.l-inner-content .wp-block-spacer + h3,
.entry-content   .wp-block-spacer + h3 { margin-top: 4px; }

.l-inner-content .wp-block-spacer + h4,
.entry-content   .wp-block-spacer + h4 { margin-top: 0; }

/* --- mn-cc 自動スペーサー直後: spacer が完全な間隔を提供 --- */
.l-inner-content .mn-cc-spacer-before-h2 + h2,
.entry-content   .mn-cc-spacer-before-h2 + h2 { margin-top: 0; }

.l-inner-content .mn-cc-spacer-before-h3 + h3,
.entry-content   .mn-cc-spacer-before-h3 + h3 { margin-top: 0; }

.l-inner-content .mn-cc-spacer-before-h4 + h4,
.entry-content   .mn-cc-spacer-before-h4 + h4 { margin-top: 0; }

/* --- Gutenberg list block: Re:Diverリセット後に上下余白を補完 --- */
.l-inner-content .wp-block-list,
.entry-content   .wp-block-list { margin-top: 8px; margin-bottom: 12px; }

/* ============================================================
   アーカイブ一覧見出しの h2 → h1 昇格に伴う見た目の維持 2026-07-22
   functions.php 側で .article-list-head 直下の一覧見出しを h2 から h1 に
   変更した(CPTアーカイブ/ブログインデックスに H1 が0個だった問題の修正)。
   Re:Diver の見出し既定値は h1 と h2 で font-weight / line-height が
   異なるため(h1: 600 / 1.4、h2: 700 / 1.5)、そのままだと文字の太さと
   行高がわずかに変わる(高さ 28.8px → 26.9px)。
   昇格前とピクセル単位で同一の表示を保つため h2 側の値へ揃える。
   position:relative も h2 既定値に合わせている(オフセット指定は無いため
   表示上の差は無いが、既定の重なり順を変えないため)。
   ============================================================ */
.article-list-head > h1 {
	font-weight: 700;
	line-height: 1.5;
	position: relative;
}
