/* 親子ウェルステ：記事と LP（Elementor で作ったページ）の書体を、ことば帳と同じにする
   - 本文：Zen Kaku Gothic New／見出し：Zen Maru Gothic（太字）。ことば帳（pages/kotoba/futoko.html）の --f-body・--f-head と同じ
   - 読み込みは functions.php（記事と Elementor のページだけ）
   - Elementor は部品ごとに「Roboto」「Noto Serif Toto」を指定しているが、どちらも読み込まれておらず端末の書体で出ていた。
     部品ごとの指定より強くするため !important を付ける
   - アイコン（i 要素、class に icon・fa-・jif・ti を含むもの）は書体を変えない（アイコンが文字化けするため） */

:root {
	--ow-font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
	--ow-font-article: "Klee One", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
	--ow-font-head:"Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Zen Kaku Gothic New", sans-serif;
}

/* ---------- 記事（本文も見出しも Klee One。やわらかい手書き風で、長い文でも読みやすい） ----------
   Klee One の太さは 400 と 600 だけ。太字・見出しは 600 にする */
body.single #mainContent,
body.single #mainContent :is(p, span, div, li, a, strong, b, em, dt, dd, td, th, figcaption, blockquote, cite, small, button, label, h1, h2, h3, h4, h5, h6):not([class*="icon"]):not([class*="fa-"]):not([class*="jif"]):not([class*="ti-"]) {
	font-family: var(--ow-font-article) !important;
}
body.single #mainContent :is(h1, h2, h3, h4, h5, h6, strong, b) { font-weight: 600 !important; }
body.single #mainContent #postContent { font-weight: 400; }
/* Klee One は字がもともと広く細いので、JIN:R の字間（0.7px）をつめ、本文はルールブックの大きさ（スマホ 17px／PC 18px、行間 2.0）に */
body.single #mainContent :is(#postContent, #postContent p, #postContent li, #postContent td, #postContent th) { letter-spacing: .02em; }
body.single #mainContent #postContent :is(p, li) { font-size: 17px; line-height: 2; }
@media (min-width: 782px) { body.single #mainContent #postContent :is(p, li) { font-size: 18px; } }
body.single #mainContent #postContent :is(h2, h3, h4) { letter-spacing: .03em; }
/* Klee One には斜体がなく、傾けると崩れるので、引用・強調の斜体はやめる（引用は左の線で分かる） */
body.single #mainContent :is(blockquote, cite, em, i:not([class*="icon"]):not([class*="jif"]):not([class*="ti"])) { font-style: normal !important; }

/* ---------- LP（Elementor のページ） ---------- */
body.elementor-page .elementor,
body.elementor-page .elementor :is(p, span, div, li, a, strong, b, em, td, th, figcaption, blockquote, small, button, label):not([class*="icon"]):not([class*="fa-"]):not([class*="jif"]) {
	font-family: var(--ow-font-body) !important;
}
/* 見出しの部品は p や div のこともあるので、上の本文の指定より強くする（:not を同じ数だけ付ける） */
body.elementor-page .elementor :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title):not([class*="icon"]):not([class*="fa-"]):not([class*="jif"]),
body.elementor-page .elementor :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title) :is(span, a, strong, b):not([class*="icon"]):not([class*="fa-"]):not([class*="jif"]) {
	font-family: var(--ow-font-head) !important;
}
