/* =========================================================
   623hr theme — blocks-compat.css
   方式A: Emanon Blocks / Word Balloon 由来の本文マークアップを
   プラグイン非依存で表示する（保存済み静的HTMLをCSSで再スタイル）。
   本文DBは書き換えない。
   ========================================================= */

/* Emanon が定義していた名前付きカラー（プラグイン/テーマ非在時のフォールバック） */
.entry-content .has-ep-white-background-color { background-color: #ffffff; }
.entry-content .has-ep-black-color { color: #23272b; }
.entry-content .has-ep-gray-background-color { background-color: #f4f6f8; }

/* ---------- notice-box（注意ボックス / おすすめボックス） ---------- */
.entry-content .epb-box {
	margin: 1.6em 0;
	border-radius: 8px;
	overflow: hidden;
}
.entry-content .epb-box.is-style-epb-radius__3 { border-radius: 12px; }
.entry-content .epb-box__headline {
	display: block;
	padding: 10px 16px;
	font-weight: 700;
	font-size: 1rem;
	/* 背景色・文字色は保存済みインラインstyleが持つ */
}
.entry-content .epb-box__headline::before {
	font-weight: 700;
	margin-right: .5em;
}
.entry-content .epb-box__headline.icon-checkmark::before { content: "\2714\FE0E"; }
.entry-content .epb-box__headline.icon-info::before { content: "\2139\FE0E"; }
.entry-content .epb-box__headline.icon-warning::before,
.entry-content .epb-box__headline.icon-attention::before { content: "\26A0\FE0E"; }
.entry-content .epb-box__headline.icon-pencil::before { content: "\270E\FE0E"; }
.entry-content .epb-box__body {
	/* padding / border は保存済みインラインstyleが持つ。無い場合の保険のみ */
}
.entry-content .epb-box__body > :first-child { margin-top: 0; }
.entry-content .epb-box__body > :last-child { margin-bottom: 0; }
.entry-content .epb-box__body p { margin: .8em 0; }

/* ---------- balloon（Emanon Blocks の吹き出し） ---------- */
.entry-content .epb-balloon,
.entry-content .wp-block-emanon-blocks-balloon {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 1.6em 0;
}
.entry-content .epb-balloon.is-style-epb-balloon__right,
.entry-content .wp-block-emanon-blocks-balloon.is-style-epb-balloon__right { flex-direction: row-reverse; }
.entry-content .epb-balloon figure,
.entry-content .epb-balloon img {
	flex: none;
	width: 64px; height: 64px;
	border-radius: 50%;
	margin: 0;
	object-fit: cover;
}
.entry-content .epb-balloon__text,
.entry-content .epb-balloon__body {
	position: relative;
	background: #f4f6f8;
	border: 1px solid #e3e7ea;
	border-radius: 12px;
	padding: 12px 16px;
	max-width: 100%;
}
.entry-content .epb-balloon__text > :first-child { margin-top: 0; }
.entry-content .epb-balloon__text > :last-child { margin-bottom: 0; }

/* Emanon旧アイコンを、ろん表情差分へ置換した後の配置 */
.entry-content .epb-balloon__icon.hr-ron-balloon__person {
	flex: 0 0 104px;
	width: 104px;
}
.entry-content .epb-balloon__content { flex: 1; min-width: 0; }

/* LIQUID SPEECH BALLOON停止後も、保存済み本文の同じ位置で表示する */
.entry-content .wp-block-liquid-speech-balloon {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 1.8em 0;
}
.entry-content .liquid-speech-balloon-avatar.hr-ron-balloon__person {
	flex: 0 0 104px;
	width: 104px;
	text-align: center;
}
.entry-content .liquid-speech-balloon-text {
	position: relative;
	flex: 1;
	min-width: 0;
	padding: 14px 17px;
	border: 2px solid var(--mc-ink, #263746) !important;
	border-radius: 13px;
	box-shadow: 4px 4px 0 rgba(53, 167, 156, .13);
}
.entry-content .liquid-speech-balloon-text > :first-child { margin-top: 0; }
.entry-content .liquid-speech-balloon-text > :last-child { margin-bottom: 0; }
.entry-content .liquid-speech-balloon-arrow { display: none; }

/* ---------- review（レビューボックス） ---------- */
.entry-content .epb-review {
	margin: 1.8em 0;
	border: 1px solid #e3e7ea;
	border-radius: 12px;
	padding: 16px;
	background: #fff;
}
.entry-content .epb-review .is-style-epb-column__two-left,
.entry-content .epb-review .is-style-epb-column__two-right {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.entry-content .epb-review .is-style-epb-column__two-right { flex-direction: row-reverse; }
.entry-content .epb-review__icon {
	flex: none;
	width: 110px;
	text-align: center;
}
.entry-content .epb-review__icon figure { margin: 0; }
.entry-content .epb-review__img {
	width: 90px; height: 90px;
	object-fit: cover;
	border-radius: 8px;
	border: 2px solid #e3e7ea;
}
.entry-content .epb-review__icon.is-style-epb-circle .epb-review__img { border-radius: 50%; }
.entry-content .epb-review__name {
	display: block;
	margin-top: 6px;
	font-size: .8rem;
	font-weight: 700;
}
.entry-content .epb-review__content { flex: 1; min-width: 0; }
.entry-content .epb-review__headling {
	font-size: 1.05rem;
	margin: 0 0 10px;
	padding: 6px 10px;
	border-radius: 4px;
	/* 背景色・文字色は保存済みインラインstyle */
}
.entry-content .epb-review__headling-under { box-shadow: 0 2px 0 0 var(--mc-orange, #e56a45); }
.entry-content .epb-review__body > :first-child { margin-top: 0; }
.entry-content .epb-review__body > :last-child { margin-bottom: 0; }

/* ---------- faqs / step（レア。崩れ防止の最低限） ---------- */
.entry-content .epb-faqs,
.entry-content .epb-faq,
.entry-content .epb-step {
	margin: 1.6em 0;
}
.entry-content .epb-faqs__q,
.entry-content .epb-faq__q {
	font-weight: 700;
	padding: 10px 14px;
	background: #f4f6f8;
	border-radius: 6px;
}
.entry-content .epb-faqs__a,
.entry-content .epb-faq__a {
	padding: 10px 14px 4px;
}
.entry-content .epb-step__item {
	border-left: 3px solid var(--mc-teal, #35a79c);
	padding: 4px 0 4px 16px;
	margin: 10px 0;
}

/* ---------- 統一吹き出し（[word_balloon] フォールバック / 3系統の寄せ先） ---------- */
.entry-content .hr-balloon {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 1.6em 0;
}
.entry-content .hr-balloon--right { flex-direction: row-reverse; }
.entry-content .hr-balloon__avatar {
	flex: none;
	width: 56px; height: 56px;
	border-radius: 50%;
	background: #e3e7ea;
	color: #5b6570;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}
.entry-content .hr-balloon__bubble {
	position: relative;
	background: #f4f6f8;
	border: 1px solid #e3e7ea;
	border-radius: 14px;
	padding: 12px 16px;
	max-width: 100%;
}
.entry-content .hr-balloon__bubble::before {
	content: "";
	position: absolute;
	top: 18px;
	width: 10px; height: 10px;
	background: #f4f6f8;
	border: 1px solid #e3e7ea;
	transform: rotate(45deg);
}
.entry-content .hr-balloon--left .hr-balloon__bubble::before {
	left: -6px;
	border-right: 0; border-top: 0;
}
.entry-content .hr-balloon--right .hr-balloon__bubble::before {
	right: -6px;
	border-left: 0; border-bottom: 0;
}
.entry-content .hr-balloon__name {
	display: block;
	font-size: .78rem;
	font-weight: 700;
	color: #5b6570;
	margin-bottom: 4px;
}
.entry-content .hr-balloon__text > :first-child { margin-top: 0; }
.entry-content .hr-balloon__text > :last-child { margin-bottom: 0; }

/* パターン版（wp-block-columns ベース） */
.entry-content .hr-balloon.wp-block-columns { gap: 14px; align-items: flex-start; }
.entry-content .hr-balloon__avatar-col {
	flex: none !important;
	width: 56px !important;
	font-size: 2rem;
	line-height: 1;
	text-align: center;
}
.entry-content .hr-balloon__avatar-col p { margin: 0; }
.entry-content .hr-balloon.wp-block-columns .hr-balloon__bubble { flex: 1; }
.entry-content .hr-balloon.wp-block-columns .hr-balloon__bubble > p { margin: 0; }

/* ---------- 623hr パターン: 補足 / 要点 ---------- */
.entry-content .hr-note {
	margin: 1.6em 0;
	padding: 1em 1.25em;
	background: linear-gradient(135deg, #f1f8f7, #f7f9fa);
	border: 1px solid #d9e8e6;
	border-left: 5px solid var(--mc-teal, #35a79c);
	border-radius: 8px;
}
.entry-content .hr-note > :first-child { margin-top: 0; }
.entry-content .hr-note > :last-child { margin-bottom: 0; }

.entry-content .hr-point {
	margin: 1.8em 0;
	padding: 1.25em 1.45em;
	background: linear-gradient(135deg, #263746, #344d60);
	border-top: 4px solid var(--mc-orange, #e56a45);
	border-radius: 10px;
	box-shadow: 0 8px 22px rgba(29, 49, 63, .12);
	color: #fff;
}
.entry-content .hr-point > :first-child { margin-top: 0; }
.entry-content .hr-point > :last-child { margin-bottom: 0; }
.entry-content .hr-point h4 {
	margin: 0 0 .7em;
	padding: 0 0 0 .6em;
	border-left: 3px solid var(--mc-orange, #e56a45);
	color: #fff;
}
.entry-content .hr-point a { color: #cfe6ff; }

@media (max-width: 430px) {
	.entry-content .epb-review .is-style-epb-column__two-left,
	.entry-content .epb-review .is-style-epb-column__two-right { flex-direction: column; align-items: center; }
	.entry-content .epb-review__content { width: 100%; }
}

/* ---------- ブログカード（内部リンクのリッチ表示） ---------- */
.entry-content .hr-blogcard {
	display: flex;
	gap: 16px;
	align-items: stretch;
	margin: 1.8em 0;
	padding: 12px;
	border: 1px solid var(--mc-line, #dce5e8);
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 4px 14px rgba(39, 61, 76, .06);
	transition: box-shadow .18s ease, transform .18s ease;
}
.entry-content .hr-blogcard:hover { box-shadow: 0 8px 22px rgba(29, 49, 63, .12); transform: translateY(-2px); }
.entry-content .hr-blogcard__thumb {
	flex: none;
	width: 34%;
	max-width: 220px;
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	overflow: hidden;
	background: var(--mc-pale, #f4f7f8);
}
.entry-content .hr-blogcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entry-content .hr-blogcard__noimg {
	display: block; width: 100%; height: 100%;
	background:
		repeating-linear-gradient(45deg, rgba(63,96,120,.05) 0 12px, transparent 12px 24px),
		var(--mc-pale, #f4f7f8);
}
.entry-content .hr-blogcard__body { display: flex; flex-direction: column; gap: 6px; justify-content: center; min-width: 0; padding: 4px 6px 4px 0; }
.entry-content .hr-blogcard__label {
	font-size: .68rem; font-weight: 700; letter-spacing: .08em;
	color: var(--mc-blue, #3f6078);
}
.entry-content .hr-blogcard__title {
	font-size: .98rem; font-weight: 700; line-height: 1.5; color: var(--mc-ink, #263746);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.entry-content .hr-blogcard:hover .hr-blogcard__title { color: var(--mc-blue, #3f6078); }
.entry-content .hr-blogcard__excerpt {
	font-size: .82rem; line-height: 1.65; color: #566573;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.entry-content .hr-blogcard__meta { display: flex; gap: 10px; font-size: .72rem; color: #8a97a1; }
.entry-content .hr-blogcard__cat { color: #227d73; font-weight: 700; }
.entry-content .hr-blogcard--ext { }
.entry-content .hr-blogcard--ext .hr-blogcard__title { font-size: .88rem; font-weight: 600; word-break: break-all; }
.entry-content .hr-blogcard__host { font-weight: 700; }

@media (max-width: 560px) {
	.entry-content .hr-blogcard { flex-direction: column; }
	.entry-content .hr-blogcard__thumb { width: 100%; max-width: none; }
}

/* [icon] フォールバック（Font Awesome プラグイン無効時） */
.entry-content .hr-icon { margin: 0 .15em; color: var(--mc-teal, #35a79c); }

/* ---------- 623hr オリジナル: ろん表情つき吹き出し ---------- */
.entry-content .hr-ron-face {
	display: block;
	width: 104px;
	height: 104px;
	object-fit: contain;
	object-position: center bottom;
	filter: drop-shadow(0 4px 5px rgba(29, 49, 63, .12));
}

.entry-content .hr-ron-balloon {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 2em 0;
}
.entry-content .hr-ron-balloon--right { flex-direction: row-reverse; }
.entry-content .hr-ron-balloon__person {
	flex: 0 0 104px;
	text-align: center;
}
.entry-content .hr-ron-balloon__name {
	display: block;
	margin-top: 5px;
	font-size: .72rem;
	font-weight: 700;
	color: #566573;
}
.entry-content .epb-balloon__icon.hr-ron-balloon__person .hr-ron-face,
.entry-content .liquid-speech-balloon-avatar.hr-ron-balloon__person .hr-ron-face {
	width: 104px !important;
	height: 104px !important;
	max-width: none;
}

/* 非表示待機中のWordPress埋め込みiframeが中央起点で横にはみ出すのを防ぐ */
.entry-content .wp-block-embed__wrapper { overflow: hidden; max-width: 100%; }
.entry-content iframe.wp-embedded-content {
	left: 0 !important;
	right: auto !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	max-width: 100% !important;
}
.entry-content .hr-ron-balloon__bubble {
	position: relative;
	flex: 1;
	min-width: 0;
	padding: 14px 17px;
	background: #fff;
	border: 2px solid var(--mc-ink, #263746);
	border-radius: 13px;
	box-shadow: 4px 4px 0 rgba(53, 167, 156, .13);
}
.entry-content .hr-ron-balloon__bubble::before,
.entry-content .hr-ron-balloon__bubble::after {
	content: "";
	position: absolute;
	top: 20px;
	width: 0;
	height: 0;
	border-style: solid;
}
.entry-content .hr-ron-balloon--left .hr-ron-balloon__bubble::before {
	left: -13px;
	border-width: 9px 13px 9px 0;
	border-color: transparent var(--mc-ink, #263746) transparent transparent;
}
.entry-content .hr-ron-balloon--left .hr-ron-balloon__bubble::after {
	left: -9px;
	top: 22px;
	border-width: 7px 10px 7px 0;
	border-color: transparent #fff transparent transparent;
}
.entry-content .hr-ron-balloon--right .hr-ron-balloon__bubble::before {
	right: -13px;
	border-width: 9px 0 9px 13px;
	border-color: transparent transparent transparent var(--mc-ink, #263746);
}
.entry-content .hr-ron-balloon--right .hr-ron-balloon__bubble::after {
	right: -9px;
	top: 22px;
	border-width: 7px 0 7px 10px;
	border-color: transparent transparent transparent #fff;
}
.entry-content .hr-ron-balloon__bubble > :first-child { margin-top: 0; }
.entry-content .hr-ron-balloon__bubble > :last-child { margin-bottom: 0; }

/* ---------- 623hr オリジナル: 漫画ブレイク ---------- */
.entry-content .hr-ron-story {
	margin: 2.2em auto;
	max-width: 760px;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--mc-line, #dce5e8);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(29, 49, 63, .09);
}
.entry-content .hr-ron-story img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border-radius: 6px;
}
.entry-content .hr-ron-story figcaption {
	padding: 10px 8px 2px;
	font-size: .82rem;
	line-height: 1.6;
	text-align: center;
	color: #566573;
}

@media (max-width: 560px) {
	.entry-content .hr-ron-balloon { gap: 9px; }
	.entry-content .hr-ron-balloon__person { flex-basis: 72px; }
	.entry-content .hr-ron-face { width: 76px; height: 76px; }
	.entry-content .epb-balloon__icon.hr-ron-balloon__person,
	.entry-content .liquid-speech-balloon-avatar.hr-ron-balloon__person {
		flex-basis: 76px;
		width: 76px;
	}
	.entry-content .epb-balloon__icon.hr-ron-balloon__person .hr-ron-face,
	.entry-content .liquid-speech-balloon-avatar.hr-ron-balloon__person .hr-ron-face {
		width: 76px !important;
		height: 76px !important;
	}
	.entry-content .hr-ron-balloon__bubble { padding: 11px 13px; font-size: .94rem; }
	.entry-content .hr-ron-story { margin: 1.7em -4px; padding: 6px; border-radius: 8px; }
}
