/* RM211407 パーツ（ページ作成ルール）：記事見出し h2〜h4・上下の余白・本文（p・li）だけ。
   すべて .hn-article の中だけに効く（囲みのないページには一切影響しない）。
   既存の .post_content h2 / .post_content p + h3 / .pb_headline に勝つため body を頭に付け .hn-article を2回書く（!important は使わない）。
   about_hc.min.css（.post_content .about_hiroclinic_item … h2 のスマホ用 padding:0 など）やテーマの
   .page-template-page_wide #main_col .post_content > div（幅・余白・スマホ padding:0）にも勝つため、頭を body:not(#hn-up)（idの強さ・実際には body に効く）にしてある。 */

body .post_content.hn-article {
	--hn-pink: #e54c84;
	--hn-pink-a: #ee6798;
	--hn-pink-b: #f3cddb;
}

/* 日本語・英語は Noto Sans JP（中国語ページは今の指定のまま） */
html:not([lang^="zh"]) body:not(#hn-up) .post_content.hn-article.hn-article h2,
html:not([lang^="zh"]) body:not(#hn-up) .post_content.hn-article.hn-article h3,
html:not([lang^="zh"]) body:not(#hn-up) .post_content.hn-article.hn-article h4 {
	font-family: "Noto Sans JP", sans-serif;
}

/* ---- h2：ピンクの塗りの帯＋白の太字 ---- */
body:not(#hn-up) .post_content.hn-article.hn-article h2 {
	position: relative;
	box-sizing: border-box;
	margin: 104px 0 24px;
	padding: 14px 24px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
	text-align: left;
	background: var(--hn-pink);
	border: 0;
	border-radius: 8px;
}

/* ---- h3：左にピンクのグラデーションの帯（高さいっぱい）＋下線 ---- */
body:not(#hn-up) .post_content.hn-article.hn-article h3 {
	position: relative;
	box-sizing: border-box;
	margin: 56px 0 20px;
	padding: 0 0 10px 22px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.5;
	color: #333;
	text-align: left;
	/* 帯は文字の行の高さだけ（下の余白10pxを除く）。下線とはくっつけない */
	background: linear-gradient(180deg, var(--hn-pink-a) 0%, var(--hn-pink-b) 100%) no-repeat left top / 10px calc(100% - 10px);
	border: 0;
	border-bottom: 2px solid var(--hn-pink-b);
}
body:not(#hn-up) .post_content.hn-article.hn-article h3::before {
	content: none;
	display: none;
}

/* ---- h4：頭にピンクの四角 ---- */
body:not(#hn-up) .post_content.hn-article.hn-article h4 {
	position: relative;
	box-sizing: border-box;
	margin: 32px 0 16px;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	color: #333;
	text-align: left;
	border: 0;
}
body:not(#hn-up) .post_content.hn-article.hn-article h4::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin: 0 10px 0 0;
	padding: 0;
	background: var(--hn-pink);
	border: 0;
	vertical-align: 0.05em;
}

/* 中身が空の見出し（hidden-heading など）には帯・線・余白を出さない */
body:not(#hn-up) .post_content.hn-article.hn-article h2:empty,
body:not(#hn-up) .post_content.hn-article.hn-article h3:empty,
body:not(#hn-up) .post_content.hn-article.hn-article h4:empty {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}
body:not(#hn-up) .post_content.hn-article.hn-article h4:empty::before {
	display: none;
}

/* 投稿のアンカー用の余白（.single-post .post_content h2[id^="c"]）を、囲みの中では使わない */
body.single-post:not(#hn-up) .post_content.hn-article.hn-article h2[id^="c"],
body.single-post:not(#hn-up) .post_content.hn-article.hn-article h3[id^="c"],
body.single-post:not(#hn-up) .post_content.hn-article.hn-article h4[id^="c"] {
	z-index: auto;
}
body.single-post:not(#hn-up) .post_content.hn-article.hn-article h2[id^="c"] { margin-top: 104px; padding-top: 14px; }
body.single-post:not(#hn-up) .post_content.hn-article.hn-article h3[id^="c"] { margin-top: 56px; padding-top: 0; }
body.single-post:not(#hn-up) .post_content.hn-article.hn-article h4[id^="c"] { margin-top: 32px; padding-top: 0; }

/* ---- スマホ ---- */
@media screen and (max-width: 767px) {
	body:not(#hn-up) .post_content.hn-article.hn-article h2 { margin: 72px 0 20px; padding: 12px 16px; font-size: 20px; }
	body:not(#hn-up) .post_content.hn-article.hn-article h3 { margin: 40px 0 16px; padding-left: 20px; font-size: 18px; background-size: 8px calc(100% - 10px); }
	body:not(#hn-up) .post_content.hn-article.hn-article h4 { margin: 24px 0 16px; font-size: 16px; }
	body.single-post:not(#hn-up) .post_content.hn-article.hn-article h2[id^="c"] { margin-top: 72px; padding-top: 12px; }
	body.single-post:not(#hn-up) .post_content.hn-article.hn-article h3[id^="c"] { margin-top: 40px; padding-top: 0; }
	body.single-post:not(#hn-up) .post_content.hn-article.hn-article h4[id^="c"] { margin-top: 24px; padding-top: 0; }
}

/* ---- 本文：文字色・太さ・フォントは囲み(.hn-article)に指定して中の要素に継承させる ----
   :where() で強さを0にしてあるので、自分で色・太さ・フォントを持つ要素（.specialty・リンク・バナーなど）はそちらが優先される */
:where(.hn-article) {
	color: #333;
	font-weight: 400;
}
html:not([lang^="zh"]) :where(.hn-article) {
	font-family: "Noto Sans JP", sans-serif;
}
/* 引用・医師紹介・ガイドライン枠・今の目次・今のバナー・今の表は、まだパーツがないので今の見た目のまま（今のサイトの body の値） */
:where(.hn-article :is(blockquote, .doctor-flex, .nipt_guideline, .toc-accordion, .newcta, .old-cta, .nipt-bnr, table)) {
	color: #000;
	font-weight: 900;
}
html:not([lang^="zh"]) :where(.hn-article :is(blockquote, .doctor-flex, .nipt_guideline, .toc-accordion, .newcta, .old-cta, .nipt-bnr, table)) {
	font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo, メイリオ, "游ゴシック Medium", "Yu Gothic Medium", 游ゴシック体, "Yu Gothic", YuGothic, "MS PGothic", Osaka, arial, sans-serif;
}

/* 文字の大きさ・行間・段落の間だけ指定する。対象は「class を持たない p」「p.wp-block-paragraph」と li だけ。
   class を持つ p（ミマルの枠の p.hiro-mmn-ttl・p.hiro-mmn-sub など、部品の段落）は元の値のまま（RM211407 12/4）。
   自分で大きさを持つ .specialty などと、表・引用・目次・バナーなどの中の p・li も元のまま */
body:not(#hn-up) .post_content.hn-article.hn-article :is(p:is(:not([class]), .wp-block-paragraph), li):not(.specialty, .hn-result__stat, .hn-table-note):not(:is(a, table, blockquote, .toc-accordion, .newcta, .old-cta, .nipt-bnr, .doctor-flex, .nipt_guideline) *) {
	font-size: 17px;
	line-height: 1.8;
}
body:not(#hn-up) .post_content.hn-article.hn-article p:is(:not([class]), .wp-block-paragraph):not(.specialty, .hn-result__stat, .hn-table-note):not(:is(a, table, blockquote, .toc-accordion, .newcta, .old-cta, .nipt-bnr, .doctor-flex, .nipt_guideline) *) {
	margin: 0 0 1em;
}
@media screen and (max-width: 767px) {
	body:not(#hn-up) .post_content.hn-article.hn-article :is(p:is(:not([class]), .wp-block-paragraph), li):not(.specialty, .hn-result__stat, .hn-table-note):not(:is(a, table, blockquote, .toc-accordion, .newcta, .old-cta, .nipt-bnr, .doctor-flex, .nipt_guideline) *) { font-size: 15px; }
}

/* 見出しの中の strong・b は、太さ・色・フォントを見出しと同じ（継承）にする。見出しの中では強調の見た目を付けない（RM211407 12/4） */
body:not(#hn-up) .post_content.hn-article.hn-article :is(h2, h3, h4, h5, h6) :is(strong, b) {
	font-weight: inherit;
	color: inherit;
	font-family: inherit;
}

/* ページタイトル（h1）：メタ hn_article があるページ（body.hn-article-page）だけ #333。大きさ・太さ・位置は今のまま */
body.hn-article-page:not(#hn-up) #main_col .post_main_title .title { color: #333; line-height: 1.4; }

/* h1 の下 → 本文の最初の要素：PC 40px／スマホ 24px。最初の要素（目次・見出し・段落など何でも）の上の余白は 0 にして、間は h1 の下の余白だけで決める。
   目次の下 → 次の要素：PC 56px／スマホ 40px（次の要素の上の余白は 0）。メタ hn_article のあるページ（body.hn-article-page） */
body.hn-article-page:not(#hn-up) #main_col .post_main_title .title { margin-bottom: 40px; }
body.hn-article-page:not(#hn-up) .post_content.hn-article.hn-article > :first-child,
body.hn-article-page:not(#hn-up) .post_content.hn-article.hn-article > :first-child > :first-child,
body.hn-article-page:not(#hn-up) .post_content.hn-article.hn-article > :first-child > :first-child > :first-child,
body.hn-article-page:not(#hn-up) .post_content.hn-article.hn-article > .hn-toc + *,
body.hn-article-page:not(#hn-up) .post_content.hn-article.hn-article > .hn-toc + * > :first-child,
body.hn-article-page:not(#hn-up) .post_content.hn-article.hn-article > .hn-toc + * > :first-child > :first-child { margin-top: 0; }
/* 最初のグループの内側の箱の上のパディング（about_hc.min.css の PC 16px）も 0 にする */
body.hn-article-page:not(#hn-up) .post_content.hn-article.hn-article > :first-child > .wp-block-group__inner-container:first-child,
body.hn-article-page:not(#hn-up) .post_content.hn-article.hn-article > .hn-toc + * > .wp-block-group__inner-container:first-child { padding-top: 0; }
@media screen and (max-width: 767px) {
	body.hn-article-page:not(#hn-up) #main_col .post_main_title .title { margin-bottom: 24px; }
}

/* 本文（.post_content）の外にある部品（医師監修の枠・参考文献）を、本文の列（最大1100px・中央・左右最低24px／スマホ10px）にそろえる。メタ hn_article のあるページ（body.hn-article-page） */
body.hn-article-page:not(#hn-up) :is(.hc-review, .hc-references) {
	box-sizing: border-box;
	width: min(1100px, calc(100% - 48px));
	max-width: none;
	margin-left: auto;
	margin-right: auto;
}
@media screen and (max-width: 767px) {
	body.hn-article-page:not(#hn-up) :is(.hc-review, .hc-references) { width: calc(100% - 20px); }
}

/* =====================================================================
   RM211407 パーツ：表・目次・リンクの箱・ボタン・実績つき予約ボタン・番号リスト
   すべて .hn-article の中だけに効く（12/4 hn-preview の条件を外した。hn-preview の仕組みは今後の新パーツの確認用に残してある）。
   色：ピンク #e54c84／LINE #06c755／グレー #e6e1e3・#f7f6f6／文字 #333／補足 #6b6b6b／ゴールド #d4a33a
   既存の `.post_content a { color: initial !important }`（ページ個別CSS）に勝つため、リンクの色だけ !important を付ける
   ===================================================================== */

/* ---- 文中のリンク：ピンク（#e54c84）の文字に下線 ----
   ページ個別CSSの `.post_content a { color: initial !important }` に勝つため、この色だけ !important を付ける。
   段落（p）・箇条書き（li）の中にある class の無い a だけに効かせる（class を持つボタン a.hiro-mmn-btn など、p・li の外のリンクは元の色・下線のまま・RM211407 12/4）。
   自分で色を持つ部分（ボタン・リンクの箱・目次・ピンクの帯 .specialty・見出し・表・引用・医師紹介・今のバナーなど）の中のリンクは対象外。 */
body:not(#hn-up) .post_content.hn-article.hn-article :is(p, li) a:not([class]):not(:is(
	.hn-btn, .hn-linkbox, .hn-toc__head, .specialty,
	:is(h1, h2, h3, h4, h5, h6, table, blockquote, .specialty, .hn-toc, .hn-btn, .hn-linkbox, .hn-linkbox-list, .hn-result, .doctor-flex, .nipt_guideline, .toc-accordion, .newcta, .old-cta, .nipt-bnr) a
)) {
	color: #e54c84 !important;
	text-decoration: underline !important;
}

/* ---- 左右の端を1本の列にそろえる（確認用ページのみ）----
   .post_content 自体に左右の余白を持たせ、中の列を「最大1100px・中央・左右最低24px（スマホ10px）」にする。
   セクション（.about_hiroclinic_item）・グループ・text_group の幅・左右の余白は 0 にして、見出し・本文・表・注釈・画像・枠が同じ左右の端になるようにする。
   例外（わざと内側・中央に置くもの）：引用（blockquote）・医師紹介（.doctor-flex の写真）・ガイドライン枠の中身・ミマルの枠の中身・
   枠線のある箱の中の文字・目次（最大600px 中央）・列より小さい画像（中央）・ピンクの帯（.specialty）。 */
body:not(#hn-up) .post_content.hn-article.hn-article {
	box-sizing: border-box;
	padding-left: max(24px, calc((100% - 1100px) / 2));
	padding-right: max(24px, calc((100% - 1100px) / 2));
}
body:not(#hn-up) .post_content.hn-article.hn-article :is(.about_hiroclinic_item, .wp-block-group__inner-container, .text_group) {
	box-sizing: border-box;
	width: auto;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}
body:not(#hn-up) .post_content.hn-article.hn-article .wp-block-group__inner-container { align-items: stretch; }
@media screen and (max-width: 767px) {
	body:not(#hn-up) .post_content.hn-article.hn-article { padding-left: 10px; padding-right: 10px; }
}

/* ---- 表 ---- */
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table-wrap {
	margin: 24px auto 8px;
	max-width: 1100px;
	width: 100%;
	box-sizing: border-box;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table {
	width: 100%;
	max-width: 100%;
	margin: 0;
	table-layout: auto;
	border-collapse: separate;
	border-spacing: 2px;
	background: #fff;
	border: 0;
	font-size: 15px;
	line-height: 1.6;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table :is(th, td) {
	box-sizing: border-box;
	padding: 18px 16px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
	text-align: left;
	vertical-align: middle;
	word-break: normal;
	overflow-wrap: break-word;
}
/* 中身のセル（td）の中のリンクはピンクの文字に下線。項目名（th）の中のリンクは #333 のまま下線だけ */
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table td a {
	color: #e54c84 !important;
	text-decoration: underline !important;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table th a {
	color: #333 !important;
	text-decoration: underline !important;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table thead th,
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table tbody th {
	background: #e6e1e3;
	font-weight: 700 !important; /* ページ個別CSSの .post_content th { font-weight: 600 !important } に勝つ */
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table td {
	background: #f7f6f6;
	font-weight: 400;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table td :is(strong, b) {
	font-weight: 700;
}
/* 揃え方は列ごと：上の見出し行は中央、左の列（項目名）は左、中身の列は、全部が短い値（全角15字未満・改行なし）なら中央／長い文が1つでもあれば全部左。
   中身の列の「中央」は、その列の全セルに hn-center を付けて表す（書くときに決める）。全部中央にしたい表は表に hn-table--center */
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table :is(th, td).hn-center,
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table thead th,
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table.hn-table--center :is(th, td) {
	text-align: center;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table tbody th {
	text-align: left;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table.hn-table--center tbody th {
	text-align: center;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table--dense :is(th, td) {
	padding-top: 10px;
	padding-bottom: 10px;
}
/* 強調する列（1つの表に1列まで） */
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table thead th.hn-col-hi {
	background: #e54c84;
	color: #fff;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table td.hn-col-hi {
	background: #fdf2f6;
	color: #e54c84;
	font-weight: 700;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table td.hn-col-hi :is(strong, b) {
	color: #e54c84;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-table-note {
	display: none;
	margin: 0 0 1em;
	font-size: 13px;
	line-height: 1.6;
	color: #6b6b6b;
}
@media screen and (max-width: 767px) {
	body:not(#hn-up) .post_content.hn-article.hn-article > .hn-table-wrap {
		width: 100%;
	}
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-table-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-table { min-width: 480px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-table--cols2 { min-width: 0; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-table :is(th, td) { padding: 12px 10px; min-width: 110px; font-size: 12px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-table :is(th, td):first-child { min-width: 92px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-table--dense :is(th, td) { padding-top: 8px; padding-bottom: 8px; }
	/* 1列目を固定して横スクロール */
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-table :is(th, td):first-child {
		position: sticky;
		left: 0;
		z-index: 1;
	}
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-table-note { display: block; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-table-note.hn-table-note--cols2 { display: none; }
}

/* ---- 目次（hn-toc）：開閉できる。最初は閉じている ---- */
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc {
	box-sizing: border-box;
	max-width: 600px; /* PCは最大600pxで中央。スマホの幅（95%）はテーマの指定のまま */
	margin: 0 auto 24px;
	padding: 20px 32px;
	background: #fdf2f6;
	border-radius: 8px;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc.is-open { padding: 28px 32px; }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-family: "Noto Sans JP", sans-serif;
	cursor: pointer;
	text-align: left;
	-webkit-appearance: none;
	appearance: none;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	color: #e54c84;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	color: #e54c84;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__icon {
	position: relative;
	display: inline-block;
	flex: none;
	width: 24px;
	height: 24px;
	background: #e54c84;
	border-radius: 50%;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__icon::before,
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 2px;
	margin: -1px 0 0 -5px;
	background: #fff;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__icon::after { transform: rotate(90deg); }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__head[aria-expanded="true"] .hn-toc__icon::after { display: none; }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__panel[hidden] { display: none; }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__list {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__list li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #e6e1e3;
	font-size: 15px;
	line-height: 1.6;
	list-style: none;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__list li:last-child { border-bottom: 0; }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__list a {
	display: block;
	padding: 12px 0;
	color: #333 !important;
	text-decoration: none !important;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__list a:hover { opacity: 0.7; }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__h2 a { font-weight: 700; }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__h3 a {
	position: relative;
	padding-left: calc(1em + 10px + 8px);
	font-weight: 400;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__h3 a::before {
	content: "";
	position: absolute;
	top: calc(12px + 0.8em);
	left: 1em;
	width: 10px;
	height: 3px;
	background: #e54c84;
	transform: scaleY(0.5); /* 太さ1.5px（位置によって1px・2pxにぶれないように） */
	transform-origin: left top;
}
@media screen and (max-width: 767px) {
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc { padding: 16px 20px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc.is-open { padding: 20px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__title { font-size: 16px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__toggle { font-size: 13px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__icon { width: 22px; height: 22px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__list li { font-size: 14px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__list a { padding: 10px 0; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__h3 a { padding-left: calc(1em + 8px + 8px); }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-toc__h3 a::before { top: calc(10px + 0.8em); width: 8px; }
}

/* ---- リンクの箱（hn-linkbox）：PC 2列・スマホ 1列 ---- */
body:not(#hn-up) .post_content.hn-article.hn-article .hn-linkbox-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 446px));
	justify-content: start;
	gap: 12px 16px;
	margin: 24px 0 16px;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-linkbox {
	position: relative;
	display: block;
	box-sizing: border-box;
	margin: 0;
	padding: 10px 46px 10px 16px; /* Figma：上下10・左右16・文字と矢印の間12（矢印の丸18） */
	background: #fdf2f6;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.8;
	color: #333 !important;
	text-decoration: none !important;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-linkbox::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	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='%23e54c84'/%3E%3Cpath d='M10 7l5 5-5 5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-linkbox:hover { opacity: 0.8; }
@media screen and (max-width: 767px) {
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-linkbox-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-linkbox { padding: 10px 46px 10px 16px; font-size: 15px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-linkbox::after { right: 16px; }
}

/* ---- ボタン（hn-btn）：予約=ピンク／LINE=緑／サブ=白地にピンクの線。右端に丸い矢印 ---- */
body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 360px;
	max-width: 100%;
	min-height: 53px;
	margin: 0 auto;
	padding: 14px 47px;
	background: #e54c84;
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	font-family: "Noto Sans JP", sans-serif;
	text-align: center;
	color: #fff !important;
	text-decoration: none !important;
	line-height: 1.3;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn--line { background: #06c755; }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn--sub { background: #fff; color: #e54c84 !important; box-shadow: inset 0 0 0 2px #e54c84; } /* 線は白地のサブボタンだけ（高さを変えないよう内側の影で描く） */
body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn:has(.hn-btn__sub) { min-height: 67px; }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn__main { font-size: 19px; font-weight: 700; line-height: 1.2; }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn__sub { margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 1.2; }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 19px;
	height: 19px;
	margin-top: -9.5px;
	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='M10 7l5 5-5 5' fill='none' stroke='%23e54c84' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn--line::after {
	background-image: 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='M10 7l5 5-5 5' fill='none' stroke='%2306c755' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn--sub::after {
	background-image: 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='%23e54c84'/%3E%3Cpath d='M10 7l5 5-5 5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn:hover { opacity: 0.85; }
@media screen and (max-width: 767px) {
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn { width: 100%; padding: 14px 41px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn::after { right: 12px; }
}

/* 大きいボタン（hn-btn--large）：目立たせたい1か所（ページの最後の予約など）用。幅 PC 600px・スマホ いっぱい。矢印 23px */
body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn--large { width: 600px; min-height: 65px; padding: 19px 57px; }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn--large:has(.hn-btn__sub) { min-height: 79px; padding: 20px 57px; }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn--large::after { right: 24px; width: 23px; height: 23px; margin-top: -11.5px; }
@media screen and (max-width: 767px) {
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn--large { width: 100%; padding: 19px 41px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn--large:has(.hn-btn__sub) { padding: 20px 41px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-btn--large::after { right: 12px; }
}

/* ---- 実績つき予約ボタン（hn-result）：月桂樹＋「NIPT検査実績 80,000件以上」＋予約ボタン1つ ---- */
body:not(#hn-up) .post_content.hn-article.hn-article .hn-result {
	margin: 32px 0;
	text-align: center;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-result__stat {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 20px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	color: #333;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-result__laurel {
	flex: none;
	width: 25px;
	height: 68px;
	background: no-repeat center / contain;
}
body:not(#hn-up) .post_content.hn-article.hn-article .hn-result__laurel--l { background-image: url("../img/hn-laurel-left.svg"); }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-result__laurel--r { background-image: url("../img/hn-laurel-right.svg"); }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-result__text { font-size: 17px; font-weight: 700; color: #333; }
body:not(#hn-up) .post_content.hn-article.hn-article .hn-result__num { font-size: 40px; font-weight: 700; color: #e54c84; line-height: 1; }
@media screen and (max-width: 767px) {
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-result__stat { gap: 6px; margin-bottom: 16px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-result__laurel { width: 20px; height: 54px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-result__text { font-size: 14px; }
	body:not(#hn-up) .post_content.hn-article.hn-article .hn-result__num { font-size: 30px; }
}

/* ---- 番号リスト（hn-list-num）：ピンクの円に白の番号 ---- */
body:not(#hn-up) .post_content.hn-article.hn-article ol.hn-list-num {
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
	counter-reset: hn-num;
}
body:not(#hn-up) .post_content.hn-article.hn-article ol.hn-list-num > li {
	position: relative;
	margin: 0 0 10px;
	padding: 0 0 0 34px;
	list-style: none;
	counter-increment: hn-num;
}
body:not(#hn-up) .post_content.hn-article.hn-article ol.hn-list-num > li:last-child { margin-bottom: 0; }
body:not(#hn-up) .post_content.hn-article.hn-article ol.hn-list-num > li::before {
	content: counter(hn-num);
	position: absolute;
	top: calc((17px * 1.8 - 24px) / 2); /* 本文の1行目（17px×行間1.8）の中心に円の中心をそろえる（1lh はこの ::before 自身の行間になるので使わない） */
	left: 0;
	width: 24px;
	height: 24px;
	background: #e54c84;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
	color: #fff;
}
@media screen and (max-width: 767px) {
	body:not(#hn-up) .post_content.hn-article.hn-article ol.hn-list-num > li { padding-left: 32px; }
	body:not(#hn-up) .post_content.hn-article.hn-article ol.hn-list-num > li::before { top: calc((15px * 1.8 - 22px) / 2); width: 22px; height: 22px; font-size: 12px; line-height: 22px; }
}

/* 目次の下 → 次の要素（上の .hn-toc の margin より後ろに置いて勝たせる）。確認用ページだけ */
body.hn-article-page:not(#hn-up) .post_content.hn-article.hn-article > .hn-toc { margin-bottom: 56px; }
@media screen and (max-width: 767px) {
	body.hn-article-page:not(#hn-up) .post_content.hn-article.hn-article > .hn-toc { margin-bottom: 40px; }
}

/* ---- 見出しの上の余白（RM211407 本地さん 12/4 指示2）：.hn-article 全体 ----
   見出しの上の余白は、直前に何があっても見出し自身の指定値（h2 104／h3 56／h4 32px、スマホ 72／40／24px）にする。
   足されていたもの：直前の段落などの下の余白（17px。flex の中では見出しの上の余白と重ならない）・グループと引用（blockquote）の下の内側の余白（32px・16px）・
   セクション（.about_hiroclinic_item）の下の余白（24px）・見出しを先頭に持つグループの上の内側の余白（16px）・表の下の余白（8px。PC は注釈が非表示）。
   「見出しの直前で終わる要素」と「見出しで始まるグループ」だけを :has() で選ぶので、見出し以外の要素どうしの間隔は変わらない。
   目次（.hn-toc）の下の余白は別指定（上の 56／40px）のままにする。 */
body:not(#hn-up) .post_content.hn-article.hn-article :is(:not(.hn-toc):has(+ :is(h2, h3, h4)), :not(.hn-toc):has(+ div > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > div:first-child > :is(h2, h3, h4):first-child)),
body:not(#hn-up) .post_content.hn-article.hn-article :is(:not(.hn-toc):has(+ :is(h2, h3, h4)), :not(.hn-toc):has(+ div > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > div:first-child > :is(h2, h3, h4):first-child)) > :is(div, p, ul, ol, figure, blockquote):last-child,
body:not(#hn-up) .post_content.hn-article.hn-article :is(:not(.hn-toc):has(+ :is(h2, h3, h4)), :not(.hn-toc):has(+ div > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > div:first-child > :is(h2, h3, h4):first-child)) > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child,
body:not(#hn-up) .post_content.hn-article.hn-article :is(:not(.hn-toc):has(+ :is(h2, h3, h4)), :not(.hn-toc):has(+ div > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > div:first-child > :is(h2, h3, h4):first-child)) > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child,
body:not(#hn-up) .post_content.hn-article.hn-article :is(:not(.hn-toc):has(+ :is(h2, h3, h4)), :not(.hn-toc):has(+ div > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > div:first-child > :is(h2, h3, h4):first-child)) > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child {
	margin-bottom: 0;
}
body:not(#hn-up) .post_content.hn-article.hn-article :is(:not(.hn-toc):has(+ :is(h2, h3, h4)), :not(.hn-toc):has(+ div > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > div:first-child > :is(h2, h3, h4):first-child)):is(.wp-block-group, .wp-block-group__inner-container, .about_hiroclinic_item, .text_group, blockquote),
body:not(#hn-up) .post_content.hn-article.hn-article :is(:not(.hn-toc):has(+ :is(h2, h3, h4)), :not(.hn-toc):has(+ div > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > div:first-child > :is(h2, h3, h4):first-child)) > :is(div, p, ul, ol, figure, blockquote):last-child:is(.wp-block-group, .wp-block-group__inner-container, .about_hiroclinic_item, .text_group, blockquote),
body:not(#hn-up) .post_content.hn-article.hn-article :is(:not(.hn-toc):has(+ :is(h2, h3, h4)), :not(.hn-toc):has(+ div > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > div:first-child > :is(h2, h3, h4):first-child)) > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child:is(.wp-block-group, .wp-block-group__inner-container, .about_hiroclinic_item, .text_group, blockquote),
body:not(#hn-up) .post_content.hn-article.hn-article :is(:not(.hn-toc):has(+ :is(h2, h3, h4)), :not(.hn-toc):has(+ div > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > div:first-child > :is(h2, h3, h4):first-child)) > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child:is(.wp-block-group, .wp-block-group__inner-container, .about_hiroclinic_item, .text_group, blockquote),
body:not(#hn-up) .post_content.hn-article.hn-article :is(:not(.hn-toc):has(+ :is(h2, h3, h4)), :not(.hn-toc):has(+ div > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > div:first-child > :is(h2, h3, h4):first-child)) > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child:is(.wp-block-group, .wp-block-group__inner-container, .about_hiroclinic_item, .text_group, blockquote) {
	padding-bottom: 0;
}
body:not(#hn-up) .post_content.hn-article.hn-article :is(.wp-block-group, .wp-block-group__inner-container, .about_hiroclinic_item, .text_group):has(> :is(h2, h3, h4):first-child),
body:not(#hn-up) .post_content.hn-article.hn-article :is(.wp-block-group, .wp-block-group__inner-container, .about_hiroclinic_item, .text_group):has(> div:first-child > :is(h2, h3, h4):first-child),
body:not(#hn-up) .post_content.hn-article.hn-article :is(.wp-block-group, .wp-block-group__inner-container, .about_hiroclinic_item, .text_group):has(> div:first-child > div:first-child > :is(h2, h3, h4):first-child) {
	margin-top: 0;
	padding-top: 0;
}
@media screen and (min-width: 768px) {
	body:not(#hn-up) .post_content.hn-article.hn-article :is(:not(.hn-toc):has(+ :is(h2, h3, h4)), :not(.hn-toc):has(+ div > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > div:first-child > :is(h2, h3, h4):first-child)) > .hn-table-wrap:nth-last-child(2),
	body:not(#hn-up) .post_content.hn-article.hn-article :is(:not(.hn-toc):has(+ :is(h2, h3, h4)), :not(.hn-toc):has(+ div > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > div:first-child > :is(h2, h3, h4):first-child)) > :is(div, p, ul, ol, figure, blockquote):last-child > .hn-table-wrap:nth-last-child(2),
	body:not(#hn-up) .post_content.hn-article.hn-article :is(:not(.hn-toc):has(+ :is(h2, h3, h4)), :not(.hn-toc):has(+ div > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > div:first-child > :is(h2, h3, h4):first-child)) > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child > .hn-table-wrap:nth-last-child(2),
	body:not(#hn-up) .post_content.hn-article.hn-article :is(:not(.hn-toc):has(+ :is(h2, h3, h4)), :not(.hn-toc):has(+ div > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > :is(h2, h3, h4):first-child), :not(.hn-toc):has(+ div > div:first-child > div:first-child > :is(h2, h3, h4):first-child)) > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child > :is(div, p, ul, ol, figure, blockquote):last-child > .hn-table-wrap:nth-last-child(2) {
		margin-bottom: 0;
	}
}
