@charset "UTF-8";
/* ----------------------------------------------------------------------------------------------------
*  ビジュアルエディターで装飾した本文 (.entry-content)
*
*  reset.css が strong/em/ul/ol の既定スタイルを打ち消しているため、本文内だけ元に戻す。
*  :where() で詳細度を reset.css と同じ (要素1つ分) に抑え、後から読み込むことで reset.css にだけ勝つ。
*  テーマ側でデザインしたクラス付きの要素や、本文中のインラインスタイルには負けるので既存の見た目を壊さない。
*  クラス付きの ul/ol はデザイン用のリストとみなして対象外にする（WordPress が付ける .wp-block-list は対象）。
* --------------------------------------------------------------------------------------------------*/

/* 太字・斜体
--------------------------------------------------*/
:where(.entry-content) :is(strong, b) {
	font-weight: bold;
}

:where(.entry-content) :is(em, i) {
	font-style: italic;
}

/* 箇条書き・番号付きリスト
   記号の種類は ul/ol に指定し、li はそれを引き継ぐ (ul/ol に付いたインラインの list-style を活かすため)
--------------------------------------------------*/
:where(.entry-content) ul:where(:not([class]), .wp-block-list),
:where(.entry-content) ol:where(:not([class]), .wp-block-list) {
	margin: 1em 0;
	padding-left: 1.8em;
}

:where(.entry-content) ul:where(:not([class]), .wp-block-list) {
	list-style-type: disc;
}

:where(.entry-content) ol:where(:not([class]), .wp-block-list) {
	list-style-type: decimal;
}

:where(.entry-content) li :is(ul, ol):where(:not([class]), .wp-block-list) {
	margin: 0;
}

:where(.entry-content) li ul:where(:not([class]), .wp-block-list) {
	list-style-type: circle;
}

:where(.entry-content :is(ul, ol):is(:not([class]), .wp-block-list)) > li {
	list-style-type: inherit;
	line-height: 1.5;
}

/* 画像の左右中央揃え
--------------------------------------------------*/
:where(.entry-content) .alignleft {
	float: left;
	margin: .5em 1.5em 1em 0;
}

:where(.entry-content) .alignright {
	float: right;
	margin: .5em 0 1em 1.5em;
}

:where(.entry-content) .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

:where(.entry-content)::after {
	content: "";
	display: block;
	clear: both;
}
