@charset "UTF-8";
/* =========================================================
   やましろ内科クリニック 本文（下層ページの原稿エリア）
   公開画面（.c-entry）とブロックエディタ（.is-root-container）で同じ見た目にする。
   main.css のリセットや WP 標準のブロック CSS に負けないよう :is() で詳細度を 1 段上げている。
   ========================================================= */

:is(.c-entry, .is-root-container) {
	--e-text: #352d25;
	--e-gold: #d5a062;
	--e-brown: #b2967d;
	--e-dbrown: #8a6a4b;
	--e-orange: #ed9b3d;
	--e-beige: #f6f1eb;
	--e-cream: #fbf7f1;
	--e-line: #e3ded6;
	--e-gray: #8c877c;
	--e-en: "Bodoni Moda SC", "Bodoni Moda", "Didot", serif;
	color: var(--e-text);
	font-size: 16px;
	line-height: 2;
	letter-spacing: .06em;
	overflow-wrap: anywhere;
}

/* ---------- 余白（要素の間） ---------- */
:is(.c-entry, .is-root-container) > * { margin-top: 0; margin-bottom: 0; }
:is(.c-entry, .is-root-container) > * + * { margin-top: 1.6em; }
:is(.c-entry, .is-root-container) :where(.wp-block-group, .wp-block-column, .wp-block-media-text__content, .wp-block-details) > * { margin-top: 0; margin-bottom: 0; }
:is(.c-entry, .is-root-container) :where(.wp-block-group, .wp-block-column, .wp-block-media-text__content) > * + * { margin-top: 1.2em; }
:is(.c-entry, .is-root-container) p { margin-left: 0; margin-right: 0; }

/* ---------- リード文・注釈 ---------- */
:is(.c-entry, .is-root-container) .is-style-yms-lead { font-size: 18px; line-height: 2.1; letter-spacing: .08em; }
:is(.c-entry, .is-root-container) .is-style-yms-note { font-size: 13px; line-height: 1.8; color: var(--e-gray); }
:is(.c-entry, .is-root-container) > * + .is-style-yms-note { margin-top: .8em; }

/* ---------- リンク・強調 ---------- */
:is(.c-entry, .is-root-container) :where(p, li, td, th, figcaption, summary, dd) a {
	color: var(--e-dbrown);
	text-decoration: underline;
	text-decoration-color: rgba(213, 160, 98, .7);
	text-decoration-thickness: 1px;
	text-underline-offset: .25em;
}
:is(.c-entry, .is-root-container) :where(p, li, td, th, figcaption, summary, dd) a:hover { text-decoration-color: var(--e-dbrown); }
:is(.c-entry, .is-root-container) strong { font-weight: 700; background: linear-gradient(transparent 62%, #f5e3cb 62%); }

/* ---------- 大見出し（H2） ---------- */
:is(.c-entry, .is-root-container) h2 {
	position: relative;
	padding: 0 0 18px 46px;
	border-bottom: 1px solid var(--e-line);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.55;
	letter-spacing: .1em;
}
:is(.c-entry, .is-root-container) h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: .1em;
	width: 34px;
	height: 34px;
	background: url(../img/ic-moon.png) center / contain no-repeat;
}
:is(.c-entry, .is-root-container) h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 80px;
	height: 2px;
	background: var(--e-gold);
}
:is(.c-entry, .is-root-container) > * + h2 { margin-top: 96px; }
:is(.c-entry, .is-root-container) h2 + * { margin-top: 32px !important; }

/* ---------- 中見出し（H3） ---------- */
:is(.c-entry, .is-root-container) h3 {
	padding: 12px 20px;
	border-left: 3px solid var(--e-gold);
	border-radius: 0 4px 4px 0;
	background: var(--e-beige);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: .08em;
}
:is(.c-entry, .is-root-container) * + h3 { margin-top: 56px; }
:is(.c-entry, .is-root-container) h2 + h3 { margin-top: 32px; }
:is(.c-entry, .is-root-container) h3 + * { margin-top: 24px !important; }

/* ---------- 小見出し（H4） ---------- */
:is(.c-entry, .is-root-container) h4 {
	position: relative;
	padding-left: 20px;
	color: var(--e-dbrown);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: .08em;
}
:is(.c-entry, .is-root-container) h4::before {
	content: "";
	position: absolute;
	left: 0;
	top: .5em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--e-gold);
}
:is(.c-entry, .is-root-container) * + h4 { margin-top: 40px; }
:is(.c-entry, .is-root-container) h4 + * { margin-top: 12px !important; }

/* ---------- リスト ---------- */
:is(.c-entry, .is-root-container) .wp-block-list { margin-left: 0; margin-right: 0; padding: 0; list-style: none; }
:is(.c-entry, .is-root-container) .wp-block-list li { position: relative; margin: 0; }
:is(.c-entry, .is-root-container) .wp-block-list li + li { margin-top: .5em; }
:is(.c-entry, .is-root-container) .wp-block-list .wp-block-list { margin-top: .5em; }

/* 箇条書き */
:is(.c-entry, .is-root-container) ul.wp-block-list > li { padding-left: 1.4em; }
:is(.c-entry, .is-root-container) ul.wp-block-list > li::before {
	content: "";
	position: absolute;
	left: .25em;
	top: .8em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--e-gold);
}
/* 番号付き */
:is(.c-entry, .is-root-container) ol.wp-block-list { counter-reset: yms-ol; }
:is(.c-entry, .is-root-container) ol.wp-block-list > li { counter-increment: yms-ol; padding-left: 2.1em; }
:is(.c-entry, .is-root-container) ol.wp-block-list > li::before {
	content: counter(yms-ol);
	position: absolute;
	left: 0;
	top: .3em;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	background: var(--e-brown);
	color: #fff;
	font-family: var(--e-en);
	font-size: .9em;
	line-height: 1.45em;
	letter-spacing: 0;
	text-align: center;
}

/* チェックリスト */
:is(.c-entry, .is-root-container) ul.wp-block-list.is-style-yms-check {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 28px;
	padding: 30px 34px;
	border: 1px solid var(--e-line);
	border-radius: 8px;
	background: #fff;
}
:is(.c-entry, .is-root-container) ul.wp-block-list.is-style-yms-check > li { margin: 0; padding-left: 34px; line-height: 1.75; }
:is(.c-entry, .is-root-container) ul.wp-block-list.is-style-yms-check > li::before {
	left: 0;
	top: .2em;
	width: 22px;
	height: 22px;
	background: var(--e-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* 流れ（ステップ） */
:is(.c-entry, .is-root-container) ol.wp-block-list.is-style-yms-steps > li {
	min-height: 48px;
	padding: 8px 0 32px 70px;
	font-weight: 500;
	line-height: 1.8;
}
:is(.c-entry, .is-root-container) ol.wp-block-list.is-style-yms-steps > li + li { margin-top: 0; }
:is(.c-entry, .is-root-container) ol.wp-block-list.is-style-yms-steps > li::before {
	top: 0;
	width: 48px;
	height: 48px;
	background: #fff;
	border: 1.5px solid var(--e-gold);
	color: var(--e-dbrown);
	font-size: 20px;
	line-height: 45px;
	content: counter(yms-ol, decimal-leading-zero);
}
:is(.c-entry, .is-root-container) ol.wp-block-list.is-style-yms-steps > li::after {
	content: "";
	position: absolute;
	left: 24px;
	top: 52px;
	bottom: 4px;
	width: 1px;
	background: repeating-linear-gradient(to bottom, var(--e-gold) 0 4px, transparent 4px 8px);
}
:is(.c-entry, .is-root-container) ol.wp-block-list.is-style-yms-steps > li:last-child { padding-bottom: 0; }
:is(.c-entry, .is-root-container) ol.wp-block-list.is-style-yms-steps > li:last-child::after { display: none; }

/* ---------- 表 ---------- */
:is(.c-entry, .is-root-container) .wp-block-table { margin-left: 0; margin-right: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
:is(.c-entry, .is-root-container) .wp-block-table table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; line-height: 1.75; letter-spacing: .04em; }
:is(.c-entry, .is-root-container) .wp-block-table :where(th, td) { padding: 14px 18px; border: 1px solid var(--e-line); text-align: left; vertical-align: middle; word-break: normal; overflow-wrap: anywhere; }
:is(.c-entry, .is-root-container) .wp-block-table thead { border-bottom: 0; }
:is(.c-entry, .is-root-container) .wp-block-table thead :where(th, td) { background: var(--e-brown); border-color: #c4ae9a; color: #fff; font-weight: 500; text-align: center; letter-spacing: .1em; }
:is(.c-entry, .is-root-container) .wp-block-table tbody th { background: var(--e-beige); font-weight: 700; }
:is(.c-entry, .is-root-container) .wp-block-table tfoot { border-top: 0; }
:is(.c-entry, .is-root-container) .wp-block-table.is-style-yms-rowhead tbody td:first-child { background: var(--e-beige); font-weight: 700; }
:is(.c-entry, .is-root-container) .wp-block-table.is-style-yms-rowhead :is(thead th, thead td, tbody td):first-child { width: 30%; }
:is(.c-entry, .is-root-container) .wp-block-table figcaption,
:is(.c-entry, .is-root-container) .wp-block-table .wp-element-caption { margin-top: 8px; color: var(--e-gray); font-size: 13px; text-align: left; }

/* ---------- 画像 ---------- */
:is(.c-entry, .is-root-container) .wp-block-image { margin-left: 0; margin-right: 0; }
:is(.c-entry, .is-root-container) .wp-block-image img { border-radius: 4px; }
:is(.c-entry, .is-root-container) .wp-block-image.is-style-yms-round img { border-radius: 16px; }
:is(.c-entry, .is-root-container) :where(.wp-block-image, .wp-block-gallery) figcaption { margin-top: 8px; color: var(--e-gray); font-size: 13px; text-align: center; }
:is(.c-entry, .is-root-container) .wp-block-gallery { gap: 12px; }

/* ---------- 画像と文章 ---------- */
:is(.c-entry, .is-root-container) .wp-block-media-text { gap: 0; }
:is(.c-entry, .is-root-container) .wp-block-media-text__media img { border-radius: 8px; }
:is(.c-entry, .is-root-container) .wp-block-media-text .wp-block-media-text__content { padding: 0 0 0 40px; }
:is(.c-entry, .is-root-container) .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { padding: 0 40px 0 0; }
:is(.c-entry, .is-root-container) .wp-block-media-text__content h3:first-child { margin-top: 0; }

/* ---------- 段組み ---------- */
:is(.c-entry, .is-root-container) .wp-block-columns { gap: 32px; margin-bottom: 0; }

/* ---------- 囲み ---------- */
:is(.c-entry, .is-root-container) .wp-block-group:where(.is-style-yms-point, .is-style-yms-caution, .is-style-yms-box) { position: relative; border-radius: 8px; }
:is(.c-entry, .is-root-container) .wp-block-group.is-style-yms-point { margin-top: 2.2em; padding: 40px 36px 32px; border: 1px solid #ecdcc6; background: var(--e-cream); }
:is(.c-entry, .is-root-container) h2 + .wp-block-group.is-style-yms-point { margin-top: 44px !important; }
:is(.c-entry, .is-root-container) .wp-block-group.is-style-yms-point::before {
	content: "Point";
	position: absolute;
	left: 28px;
	top: 0;
	translate: 0 -50%;
	padding: 0 18px;
	border-radius: 99px;
	background: var(--e-gold);
	color: #fff;
	font-family: var(--e-en);
	font-size: 15px;
	line-height: 30px;
	letter-spacing: .12em;
}
:is(.c-entry, .is-root-container) .wp-block-group.is-style-yms-caution { padding: 64px 34px 30px; border: 1.5px solid var(--e-orange); background: #fff; }
:is(.c-entry, .is-root-container) .wp-block-group.is-style-yms-caution::before {
	content: "ご注意ください";
	position: absolute;
	left: 34px;
	top: 22px;
	padding-left: 30px;
	color: #c9711a;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	letter-spacing: .1em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%23ed9b3d'/%3E%3Cpath d='M11 5.5v7' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='11' cy='16.2' r='1.2' fill='%23fff'/%3E%3C/svg%3E") left center / 22px no-repeat;
}
:is(.c-entry, .is-root-container) .wp-block-group.is-style-yms-caution ul.wp-block-list > li::before { background: var(--e-orange); }
:is(.c-entry, .is-root-container) .wp-block-group.is-style-yms-box { padding: 30px 34px; border: 1px solid var(--e-line); background: #fff; }

/* ---------- よくある質問 ---------- */
:is(.c-entry, .is-root-container) .wp-block-details { padding: 0; border: 1px solid var(--e-line); border-radius: 8px; background: #fff; }
:is(.c-entry, .is-root-container) .wp-block-details + .wp-block-details { margin-top: 12px; }
:is(.c-entry, .is-root-container) .wp-block-details summary {
	position: relative;
	padding: 20px 60px 20px 70px;
	font-weight: 700;
	line-height: 1.75;
	list-style: none;
	cursor: pointer;
}
:is(.c-entry, .is-root-container) .wp-block-details summary::-webkit-details-marker { display: none; }
:is(.c-entry, .is-root-container) .wp-block-details summary::before {
	content: "Q";
	position: absolute;
	left: 22px;
	top: 18px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--e-gold);
	color: #fff;
	font-family: var(--e-en);
	font-size: 18px;
	font-weight: 500;
	line-height: 32px;
	letter-spacing: 0;
	text-align: center;
}
:is(.c-entry, .is-root-container) .wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 26px;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -7px;
	border-right: 1.5px solid var(--e-gold);
	border-bottom: 1.5px solid var(--e-gold);
	rotate: 45deg;
	transition: rotate .3s, margin .3s;
}
:is(.c-entry, .is-root-container) .wp-block-details[open] summary::after { rotate: -135deg; margin-top: -2px; }
:is(.c-entry, .is-root-container) .wp-block-details > :not(summary) { position: relative; margin: 0; padding: 0 28px 0 70px; }
:is(.c-entry, .is-root-container) .wp-block-details > summary + * { padding-top: 18px; border-top: 1px dashed var(--e-line); }
:is(.c-entry, .is-root-container) .wp-block-details > summary + *::before {
	content: "A";
	position: absolute;
	left: 22px;
	top: 14px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1.5px solid var(--e-gold);
	color: var(--e-dbrown);
	font-family: var(--e-en);
	font-size: 18px;
	line-height: 31px;
	text-align: center;
	letter-spacing: 0;
}
:is(.c-entry, .is-root-container) .wp-block-details > summary + ul.wp-block-list > li:first-child::before { display: none; }
:is(.c-entry, .is-root-container) .wp-block-details > :last-child { padding-bottom: 22px; }
:is(.c-entry, .is-root-container) .wp-block-details > * + :not(summary) { padding-top: .8em; }

/* ---------- ボタン ---------- */
:is(.c-entry, .is-root-container) .wp-block-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
:is(.c-entry, .is-root-container) .wp-block-button__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 320px;
	min-height: 62px;
	padding: 14px 60px 14px 40px;
	border-radius: 3px;
	background: var(--e-brown);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: .12em;
	text-decoration: none;
	transition: opacity .3s;
}
:is(.c-entry, .is-root-container) .wp-block-button__link::after {
	content: "";
	position: absolute;
	right: 18px;
	top: 50%;
	width: 18px;
	height: 18px;
	translate: 0 -50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23fff'/%3E%3Cpath d='M7 12h9.5M12.5 8l4 4-4 4' fill='none' stroke='%23b2967d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(.c-entry, .is-root-container) .wp-block-button__link:hover { opacity: .8; }
:is(.c-entry, .is-root-container) * + .wp-block-buttons { margin-top: 32px; }

/* ---------- 区切り線・ファイル ---------- */
:is(.c-entry, .is-root-container) hr.wp-block-separator { width: 100%; height: 1px; margin-left: 0; margin-right: 0; border: 0; background: var(--e-line); opacity: 1; }
:is(.c-entry, .is-root-container) > * + hr.wp-block-separator,
:is(.c-entry, .is-root-container) > hr.wp-block-separator + * { margin-top: 56px; }
:is(.c-entry, .is-root-container) .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 24px; border: 1px solid var(--e-line); border-radius: 8px; background: #fff; }
:is(.c-entry, .is-root-container) .wp-block-file a:not(.wp-block-file__button) { color: var(--e-dbrown); text-decoration: underline; text-underline-offset: .25em; }
:is(.c-entry, .is-root-container) .wp-block-file .wp-block-file__button { padding: 6px 18px; border-radius: 99px; background: var(--e-brown); color: #fff; font-size: 13px; text-decoration: none; }

/* ---------- ページ一覧（自動） ---------- */
:is(.c-entry, .is-root-container) .c-plinks-block > h2 + .c-plinks { margin-top: 32px; }
:is(.c-entry, .is-root-container) > * + .c-plinks-block,
:is(.c-entry, .is-root-container) > * + .wp-block-yms-page-links { margin-top: 48px; }
:is(.c-entry, .is-root-container) > h2 + .c-plinks-block { margin-top: 32px; }

/* =========================================================
   スマホ
   ========================================================= */
@media (max-width: 1023px) {
	:is(.c-entry, .is-root-container) { font-size: 15px; line-height: 1.95; letter-spacing: .05em; }
	:is(.c-entry, .is-root-container) .is-style-yms-lead { font-size: 16px; line-height: 2; }
	:is(.c-entry, .is-root-container) h2 { padding: 0 0 14px 36px; font-size: 21px; line-height: 1.5; }
	:is(.c-entry, .is-root-container) h2::before { width: 28px; height: 28px; top: .05em; }
	:is(.c-entry, .is-root-container) h2::after { width: 56px; }
	:is(.c-entry, .is-root-container) > * + h2 { margin-top: 64px; }
	:is(.c-entry, .is-root-container) h2 + * { margin-top: 24px !important; }
	:is(.c-entry, .is-root-container) h3 { padding: 10px 14px; font-size: 17px; }
	:is(.c-entry, .is-root-container) * + h3 { margin-top: 40px; }
	:is(.c-entry, .is-root-container) h3 + * { margin-top: 18px !important; }
	:is(.c-entry, .is-root-container) h4 { font-size: 16px; }
	:is(.c-entry, .is-root-container) * + h4 { margin-top: 32px; }

	:is(.c-entry, .is-root-container) ul.wp-block-list.is-style-yms-check { grid-template-columns: 1fr; gap: 10px; padding: 20px 18px; }
	:is(.c-entry, .is-root-container) ul.wp-block-list.is-style-yms-check > li { padding-left: 30px; }
	:is(.c-entry, .is-root-container) ul.wp-block-list.is-style-yms-check > li::before { width: 20px; height: 20px; }
	:is(.c-entry, .is-root-container) ol.wp-block-list.is-style-yms-steps > li { min-height: 40px; padding: 6px 0 24px 56px; }
	:is(.c-entry, .is-root-container) ol.wp-block-list.is-style-yms-steps > li::before { width: 40px; height: 40px; font-size: 17px; line-height: 37px; }
	:is(.c-entry, .is-root-container) ol.wp-block-list.is-style-yms-steps > li::after { left: 20px; top: 44px; }

	:is(.c-entry, .is-root-container) .wp-block-table table { font-size: 14px; line-height: 1.7; }
	:is(.c-entry, .is-root-container) .wp-block-table :where(th, td) { padding: 10px 12px; }
	/* 3列以上の表は横スクロール */
	:is(.c-entry, .is-root-container) .wp-block-table table:has(tr > :nth-child(3)) { min-width: 560px; }
	:is(.c-entry, .is-root-container) .wp-block-table.is-style-yms-rowhead :is(thead th, thead td, tbody td):first-child { width: 36%; }

	:is(.c-entry, .is-root-container) .wp-block-media-text .wp-block-media-text__content,
	:is(.c-entry, .is-root-container) .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { padding: 20px 0 0; }
	:is(.c-entry, .is-root-container) .wp-block-columns { gap: 24px; }

	:is(.c-entry, .is-root-container) .wp-block-group.is-style-yms-point { padding: 34px 20px 22px; }
	:is(.c-entry, .is-root-container) .wp-block-group.is-style-yms-point::before { left: 16px; font-size: 14px; line-height: 28px; }
	:is(.c-entry, .is-root-container) .wp-block-group.is-style-yms-caution { padding: 56px 20px 22px; }
	:is(.c-entry, .is-root-container) .wp-block-group.is-style-yms-caution::before { left: 20px; top: 18px; font-size: 15px; }
	:is(.c-entry, .is-root-container) .wp-block-group.is-style-yms-box { padding: 22px 20px; }

	:is(.c-entry, .is-root-container) .wp-block-details summary { padding: 16px 44px 16px 56px; }
	:is(.c-entry, .is-root-container) .wp-block-details summary::before { left: 14px; top: 15px; width: 30px; height: 30px; font-size: 16px; line-height: 28px; }
	:is(.c-entry, .is-root-container) .wp-block-details summary::after { right: 18px; }
	:is(.c-entry, .is-root-container) .wp-block-details > :not(summary) { padding: 0 18px 0 56px; }
	:is(.c-entry, .is-root-container) .wp-block-details > summary + *::before { left: 14px; width: 30px; height: 30px; font-size: 16px; line-height: 27px; }

	:is(.c-entry, .is-root-container) .wp-block-button { width: 100%; }
	:is(.c-entry, .is-root-container) .wp-block-button__link { width: 100%; min-width: 0; min-height: 56px; padding: 12px 48px 12px 28px; font-size: 14px; }
}
