/* 箇条書きリストブロック */
.generic-bulleted-list {
	max-width: 1200px;
	margin: 40px auto;
}

.generic-bulleted-list__inner {
	border: 1px solid #d1d5dc;
	background-color: #fff;
	/* padding: 0 20px; */
	border-radius: 10px;
}

.generic-bulleted-list__list {
	list-style: none;
	padding: 20px 20px 20px 20px !important;
	margin: 0;
}

/* 投稿コンテンツ内でも padding 20px を適用（グローバル ul スタイルより優先） */
.single-post__content .generic-bulleted-list__list,
.single-post-content .generic-bulleted-list__list,
.wp-block-post-content .generic-bulleted-list__list,
.entry-content .generic-bulleted-list__list {
	padding: 20px !important;
}

.generic-bulleted-list__list--numbers {
	list-style: none;
	padding-left: 0;
}

/* bullet を ::before で描画（他CSS由来の抑制ルールより高い詳細度で上書き） */
.generic-bulleted-list__inner .generic-bulleted-list__list .generic-bulleted-list__item::before {
	content: "•" !important;
	display: block !important;
	position: absolute !important;
	left: 0.1em;
	top: 0;
	line-height: 1.29;
	color: var(--bullet-color, var(--main-color, #0C7A5E));
	font-size: 1.4rem;
}

.generic-bulleted-list__item {
	margin-bottom: 8px;
	color: #333333;
	font-size: 1rem;
	line-height: 1.8;
	list-style: none;
	position: relative;
	padding-left: 1.4em;
}

.generic-bulleted-list__item:last-child {
	margin-bottom: 0;
}

.generic-bulleted-list__list--numbers .generic-bulleted-list__item {
	list-style-type: none;
	padding-left: 40px;
}

/* 数字リストでは bullet を非表示 */
.generic-bulleted-list__inner .generic-bulleted-list__list--numbers .generic-bulleted-list__item::before {
	content: none !important;
	display: none !important;
}

.generic-bulleted-list__item::marker {
	color: #333333;
}

.generic-bulleted-list__list--numbers .generic-bulleted-list__item::marker {
	display: none;
}

.generic-bulleted-list__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: var(--main-color, #0C7A5E);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	position: absolute;
	left: 0;
	top: 0;
	margin-top: 2px;
}

/* inlineにして・が先頭文字の位置に揃うようにする（mark等を含む場合もずれない） */
.generic-bulleted-list__item-text {
	display: inline;
	line-height: 1.8;
	vertical-align: baseline;
}

.generic-bulleted-list__item-text .medical-marker {
	vertical-align: baseline;
}

/* ── is-style-numbered：番号付きスタイル ──────── */
.generic-bulleted-list.is-style-numbered .generic-bulleted-list__list {
	counter-reset: list-num;
	padding: 0 20px !important;
}

.generic-bulleted-list.is-style-numbered .generic-bulleted-list__item {
	counter-increment: list-num;
	list-style: none;
	padding: 10px 0 10px 34px !important;
	border-bottom: 0.5px solid #e0e0e0;
	position: relative;
	margin-bottom: 0 !important;
}

.generic-bulleted-list.is-style-numbered .generic-bulleted-list__item:last-child {
	border-bottom: none;
}

/* bullet（•）を非表示にして数字サークルに置き換え */
.generic-bulleted-list.is-style-numbered .generic-bulleted-list__inner .generic-bulleted-list__list .generic-bulleted-list__item::before {
	content: counter(list-num) !important;
	position: absolute !important;
	left: 0 !important;
	top: 10px !important;
	width: 22px !important;
	height: 22px !important;
	background: var(--main-color, #0C7A5E) !important;
	color: #fff !important;
	border-radius: 50% !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
}

/* レスポンシブ対応 */

@media (max-width: 480px) {
	.generic-bulleted-list {
		margin: 20px auto;
	}
}

