/* ==========================================================================
   types.css：デザインの型（design-v2 段階6-a）
   --------------------------------------------------------------------------
   - コアのブロック（グループ・見出し・段落・リスト・引用・表）に、ブロックのスタイル（is-style-bm-*。inc/patterns.php）を
     付けて使う。パターンは patterns/type-*.php（カテゴリー「デザインの型」）。文言・項目はエディタでそのまま編集できる。
   - トップページ（front.css）でも、本文（.post_content。content.css）でも同じ見た目にする。
     本文の指定（.post_content h2 の線など）より後に読み込み、型の中では打ち消す。
   - 番号は CSS のカウンターで自動で振る（並べ替えても番号が合う）。英字・番号は --bm-font-en。
   - 動きはここには入れない（段階6-d）。
   ========================================================================== */

:root {
	--bm-type-line: var(--bm-color-line-soft, rgba(20, 40, 75, 0.14));
	--bm-type-line-strong: rgba(20, 40, 75, 0.32);
}

/* 型の中の見出しには、本文の H2 の線などを付けない */
:is(.is-style-bm-featured, .is-style-bm-numbered, .is-style-bm-before-after, .is-style-bm-split, .is-style-bm-case, .is-style-bm-cta-large) :is(h2, h3, h4) {
	margin-top: 0;
	padding: 0;
	border: 0;
	text-align: left;
}

:is(.is-style-bm-featured, .is-style-bm-numbered, .is-style-bm-before-after, .is-style-bm-split, .is-style-bm-case, .is-style-bm-cta-large) :is(h2, h3)::before {
	content: none;
}

/* 型の中の手で書いたリストの記号は、型ごとに決める（本文の四角の記号を出さない） */
:is(.is-style-bm-featured, .is-style-bm-case) ul > li::before {
	content: none;
}

/* ラベル（段落のスタイル）：英字の小見出し・番号・囲みの見出し */
.is-style-bm-label {
	margin: 0 0 0.6em;
	color: var(--bm-color-primary);
	font-family: var(--bm-font-en), var(--bm-font-base);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: var(--bm-tracking-wider);
	line-height: 1.4;
	text-transform: uppercase;
}

/* ==========================================================================
   T1 主役＋脇役（グループ。1つ目＝主役、2つ目＝脇役をまとめたグループ）
   ========================================================================== */
.is-style-bm-featured {
	display: grid;
	gap: 24px;
	margin-block: 0 var(--bm-content-block-gap, 1.6em);
}

.is-style-bm-featured > * {
	margin: 0 !important;
}

.is-style-bm-featured > :first-child {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 420px;
	padding: clamp(28px, 1rem + 2vw, 48px);
	background: var(--bm-color-primary);
	color: var(--bm-color-on-primary);
}

.is-style-bm-featured > :first-child :is(h2, h3) {
	margin: 18px 0 0;
	color: var(--bm-color-on-primary);
	font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
	line-height: 1.4;
}

.is-style-bm-featured > :first-child p {
	max-width: 30em;
	margin: 16px 0 0;
	color: var(--bm-color-on-primary-muted, #c8d3e0);
	line-height: 1.85;
}

.is-style-bm-featured > :first-child .is-style-bm-label {
	margin: 0;
	color: var(--bm-color-on-primary-muted, #c8d3e0);
}

.is-style-bm-featured > :first-child ul {
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.is-style-bm-featured > :first-child li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.is-style-bm-featured > :first-child li a {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	color: var(--bm-color-on-primary);
	font-weight: 700;
	text-decoration: none;
}

.is-style-bm-featured > :first-child li a::after {
	flex-shrink: 0;
	font-family: var(--bm-font-en);
	content: "→";
	content: "→" / "";
}

.is-style-bm-featured > :nth-child(2) {
	display: grid;
	gap: 24px;
}

.is-style-bm-featured > :nth-child(2) > * {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin: 0 !important;
	padding: 28px 32px;
	background: var(--bm-color-bg);
	border: 1px solid var(--bm-type-line);
}

.is-style-bm-featured > :nth-child(2) :is(h2, h3) {
	margin: 12px 0 0;
	font-size: 1.375rem;
}

.is-style-bm-featured > :nth-child(2) p {
	margin: 10px 0 0;
	color: var(--bm-color-text-muted);
	font-size: 0.9375rem;
	line-height: 1.8;
}

.is-style-bm-featured > :nth-child(2) .is-style-bm-label {
	margin: 0;
}

/* 脇役の最後の段落のリンク：矢印つきの文字のリンク */
.is-style-bm-featured > :nth-child(2) > * > p:last-child a,
.is-style-bm-arrow a,
a.is-style-bm-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--bm-color-primary);
	font-weight: 700;
	text-decoration: none;
}

.is-style-bm-featured > :nth-child(2) > * > p:last-child a::after,
.is-style-bm-arrow a::after {
	font-family: var(--bm-font-en);
	content: "→";
	content: "→" / "";
}

@media (min-width: 960px) {
	.is-style-bm-featured {
		grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	}
}

/* ==========================================================================
   T3 大きな番号のリスト（グループ。中のグループ1つ＝項目1つ：見出し＋段落）
   ========================================================================== */
.is-style-bm-numbered {
	margin-block: 0 var(--bm-content-block-gap, 1.6em);
	border-top: 1px solid var(--bm-type-line-strong);
	counter-reset: bm-numbered;
}

/* 番号と見出しの上端のそろえ方：どちらも文字の枠の上端から字面の上端までの距離が文字の大きさに比例するので、その差だけ番号をずらす。
   番号（Barlow、行の高さ 1）は大きさの約 0.19 倍、見出し（和文、行の高さ 1.5）は約 0.325 倍の所に字面の上端がある。 */
.is-style-bm-numbered > * {
	--bm-num-size: 3rem;
	--bm-num-head-size: 1.25rem;

	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: start;
	gap: 6px 20px;
	margin: 0 !important;
	padding: 32px 0;
	border-bottom: 1px solid var(--bm-type-line);
	counter-increment: bm-numbered;
}

.is-style-bm-numbered > *::before {
	position: relative;
	top: calc(var(--bm-num-head-size) * 0.325 - var(--bm-num-size) * 0.19);
	grid-row: span 2;
	color: transparent;
	font-family: var(--bm-font-en);
	font-size: var(--bm-num-size);
	font-weight: 600;
	line-height: 1;
	content: counter(bm-numbered, decimal-leading-zero);
	-webkit-text-stroke: 1px var(--bm-color-primary);
}

.is-style-bm-numbered > * > * {
	margin: 0 !important;
}

.is-style-bm-numbered :is(h3, h4) {
	color: var(--bm-color-primary-dark);
	font-size: var(--bm-num-head-size);
	line-height: 1.5;
}

.is-style-bm-numbered p {
	color: var(--bm-color-text-muted);
	line-height: 1.85;
}

@media (min-width: 960px) {
	.is-style-bm-numbered > * {
		--bm-num-size: 5rem;
		--bm-num-head-size: 1.5rem;

		grid-template-columns: 160px minmax(0, 22em) minmax(0, 1fr);
		gap: 40px;
		padding: 44px 0;
	}

	.is-style-bm-numbered > *::before {
		grid-row: auto;
	}

	/* 横1行の一覧：説明の1行目の上端も、見出しにそろえる（説明は行の高さ 1.85 なので、字面の上端は大きさの約 0.5 倍の所） */
	.is-style-bm-numbered:not(.bm-grid-2) > * > p {
		position: relative;
		top: calc(var(--bm-num-head-size) * 0.325 - 0.5em);
	}
}

/* ==========================================================================
   Before → After のタイル（グループ。中のグループ1つ＝項目1つ：段落 Before、段落 After、段落 リンク）
   ========================================================================== */
.is-style-bm-before-after {
	display: grid;
	margin-block: 0 var(--bm-content-block-gap, 1.6em);
	border-top: 1px solid var(--bm-type-line-strong);
	counter-reset: bm-ba;
}

.is-style-bm-before-after > * {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 8px 20px;
	margin: 0 !important;
	padding: 28px 0;
	border-bottom: 1px solid var(--bm-type-line);
	counter-increment: bm-ba;
}

.is-style-bm-before-after > *::before {
	grid-row: span 3;
	color: transparent;
	font-family: var(--bm-font-en);
	font-size: 3.25rem;
	font-weight: 600;
	line-height: 1;
	content: counter(bm-ba, decimal-leading-zero);
	-webkit-text-stroke: 1px var(--bm-color-primary);
}

.is-style-bm-before-after > * > p {
	display: grid;
	gap: 2px;
	margin: 0 !important;
	line-height: 1.75;
}

.is-style-bm-before-after > * > p:nth-of-type(1),
.is-style-bm-before-after > * > p:nth-of-type(2) {
	grid-column: 2;
}

.is-style-bm-before-after > * > p:nth-of-type(1)::before,
.is-style-bm-before-after > * > p:nth-of-type(2)::before {
	color: var(--bm-color-text-muted);
	font-family: var(--bm-font-en);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: var(--bm-tracking-wider);
}

.is-style-bm-before-after > * > p:nth-of-type(1) {
	color: var(--bm-color-text-muted);
}

.is-style-bm-before-after > * > p:nth-of-type(1)::before {
	content: "BEFORE";
	content: "BEFORE" / "";
}

.is-style-bm-before-after > * > p:nth-of-type(2) {
	color: var(--bm-color-primary-dark);
	font-weight: 700;
}

.is-style-bm-before-after > * > p:nth-of-type(2)::before {
	color: var(--bm-color-primary);
	content: "AFTER";
	content: "AFTER" / "";
}

.is-style-bm-before-after > * > p:nth-of-type(3) {
	grid-column: 2;
	display: block;
	font-size: 0.875rem;
}

.is-style-bm-before-after > * > p:nth-of-type(3) a {
	display: inline-flex;
	gap: 10px;
	color: var(--bm-color-primary);
	font-weight: 700;
	text-decoration: none;
}

.is-style-bm-before-after > * > p:nth-of-type(3) a::after {
	font-family: var(--bm-font-en);
	content: "→";
	content: "→" / "";
}

@media (min-width: 600px) {
	.is-style-bm-before-after > * > p:nth-of-type(1),
	.is-style-bm-before-after > * > p:nth-of-type(2) {
		grid-template-columns: 4.5em minmax(0, 1fr);
		gap: 12px;
		align-items: baseline;
	}
}

@media (min-width: 960px) {
	.is-style-bm-before-after {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 56px;
	}

	.is-style-bm-before-after > * {
		grid-template-columns: 96px minmax(0, 1fr);
		padding: 36px 0;
	}

	.is-style-bm-before-after > *::before {
		font-size: 4.5rem;
	}
}

/* ==========================================================================
   T2 線でつながる横のステップ（リスト。項目の太字の1行目＝見出し、続く文＝説明）。スマホは縦の線
   ========================================================================== */
.is-style-bm-steps {
	display: grid;
	margin: 0 0 var(--bm-content-block-gap, 1.6em);
	padding: 0;
	list-style: none;
	counter-reset: bm-step;
}

.is-style-bm-steps > li {
	position: relative;
	display: block;
	min-height: 48px;
	margin: 0 !important;
	padding: 10px 0 28px 66px;
	color: var(--bm-color-text-muted);
	font-size: 0.9375rem;
	line-height: 1.8;
	counter-increment: bm-step;
}

.is-style-bm-steps > li::before {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	background: var(--bm-color-bg);
	border: 1px solid var(--bm-color-primary);
	border-radius: 50%;
	color: var(--bm-color-primary);
	font-family: var(--bm-font-en);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: var(--bm-tracking-wide);
	content: counter(bm-step, decimal-leading-zero);
}

.is-style-bm-steps > li::after {
	position: absolute;
	top: 48px;
	bottom: 0;
	left: 24px;
	width: 1px;
	background: var(--bm-type-line-strong);
	content: "";
}

.is-style-bm-steps > li:last-child::after {
	display: none;
}

.is-style-bm-steps > li strong {
	display: block;
	background: none;
	color: var(--bm-color-primary-dark);
	font-size: 1.0625rem;
}

:is(.bm-section--subtle, .bm-band--subtle) .is-style-bm-steps > li::before {
	background: var(--bm-color-bg-subtle);
}

@media (min-width: 960px) {
	.is-style-bm-steps {
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		gap: 24px;
	}

	.is-style-bm-steps > li {
		padding: 66px 0 0;
	}

	.is-style-bm-steps > li::after {
		top: 24px;
		right: -24px;
		bottom: auto;
		left: 48px;
		width: auto;
		height: 1px;
	}
}

/* ==========================================================================
   T5 引用・メッセージ（引用のスタイル）と年表（リストのスタイル。項目の太字＝年）
   ========================================================================== */
.wp-block-quote.is-style-bm-message {
	position: relative;
	margin: 0 0 var(--bm-content-block-gap, 1.6em);
	padding: 56px 0 0;
	background: none;
	border: 0;
}

.wp-block-quote.is-style-bm-message::before {
	position: absolute;
	top: -10px;
	left: -4px;
	color: rgba(20, 40, 75, 0.18);
	font-family: var(--bm-font-en);
	font-size: 7rem;
	font-weight: 500;
	line-height: 1;
	content: "“";
	content: "“" / "";
}

.wp-block-quote.is-style-bm-message p {
	margin: 0;
	color: var(--bm-color-primary-dark);
	font-family: var(--bm-font-heading);
	font-size: clamp(1.25rem, 0.9rem + 1.3vw, 1.875rem);
	font-weight: 700;
	line-height: 1.75;
}

.wp-block-quote.is-style-bm-message cite {
	display: block;
	margin-top: 28px;
	color: var(--bm-color-text-muted);
	font-size: 0.9375rem;
	font-style: normal;
	text-align: left;
}

.wp-block-quote.is-style-bm-message cite::before {
	content: none;
}

.wp-block-quote.is-style-bm-message cite strong {
	display: block;
	background: none;
	color: var(--bm-color-primary-dark);
	font-size: 1.125rem;
}

.is-style-bm-timeline {
	margin: 0 0 var(--bm-content-block-gap, 1.6em);
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--bm-type-line-strong);
}

.is-style-bm-timeline > li {
	position: relative;
	display: grid;
	grid-template-columns: minmax(4.5em, max-content) minmax(0, 1fr);
	gap: 16px;
	margin: 0 !important;
	padding: 0 0 22px 24px;
	line-height: 1.8;
}

.is-style-bm-timeline > li::before {
	position: absolute;
	top: 0.7em;
	left: -4px;
	width: 7px;
	height: 7px;
	background: var(--bm-color-primary);
	border-radius: 50%;
	content: "";
}

.is-style-bm-timeline > li strong {
	white-space: nowrap;
	background: none;
	color: var(--bm-color-primary);
	font-family: var(--bm-font-en), var(--bm-font-base);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: var(--bm-tracking-wide);
}

/* ==========================================================================
   T6 左に見出しを固定（グループ。1つ目＝見出しの側、2つ目＝中身）。PC で左の列がスクロールしても止まる
   ========================================================================== */
.is-style-bm-split {
	display: grid;
	gap: 32px;
	margin-block: 0 var(--bm-content-block-gap, 1.6em);
}

.is-style-bm-split > * {
	margin: 0 !important;
}

.is-style-bm-split > :first-child :is(h2, h3) {
	font-size: clamp(1.375rem, 1rem + 1.4vw, 2.25rem);
	line-height: 1.4;
}

.is-style-bm-split > :first-child p:not(.is-style-bm-label) {
	margin: 18px 0 0;
	color: var(--bm-color-text-muted);
	font-size: 0.9375rem;
	line-height: 1.85;
}

@media (min-width: 960px) {
	.is-style-bm-split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		gap: 80px;
	}

	.is-style-bm-split > :first-child {
		position: sticky;
		top: calc(var(--bm-header-height, 76px) + 40px);
		align-self: start;
	}
}

/* ==========================================================================
   T8 事例（グループ。1つ目＝本文：ラベルのリスト・見出し・4つの区切り、2つ目＝大きな数字）
   4つの区切り：中のグループ1つ＝区切り1つ（ラベルの段落＋段落）
   ========================================================================== */
.is-style-bm-case {
	display: grid;
	gap: 40px;
	margin-block: 0 var(--bm-content-block-gap, 1.6em);
}

.is-style-bm-case > * {
	margin: 0 !important;
}

.is-style-bm-case > :first-child > ul:first-child {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.is-style-bm-case > :first-child > ul:first-child > li {
	margin: 0;
	padding: 2px 12px;
	border: 1px solid var(--bm-type-line-strong);
	color: var(--bm-color-text-muted);
	font-size: 0.8125rem;
	line-height: 1.6;
}

.is-style-bm-case > :first-child :is(h3, h4) {
	margin: 0 0 28px;
	font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem);
	line-height: 1.5;
}

.is-style-bm-case > :first-child > .wp-block-group {
	display: grid;
	grid-template-columns: 7em minmax(0, 1fr);
	gap: 16px;
	margin: 0 !important;
	padding: 20px 0;
	border-bottom: 1px solid var(--bm-type-line);
}

.is-style-bm-case > :first-child > :is(h3, h4) + .wp-block-group {
	border-top: 1px solid var(--bm-type-line-strong);
}

.is-style-bm-case > :first-child > .wp-block-group > p {
	margin: 0 !important;
	line-height: 1.85;
}

.is-style-bm-case > :first-child > .wp-block-group > .is-style-bm-label {
	color: var(--bm-color-primary);
	font-size: 0.75rem;
	line-height: 1.7;
}

.is-style-bm-case > :nth-child(2) {
	padding: 32px;
	background: var(--bm-color-bg-subtle);
}

.is-style-bm-case .bm-stats {
	grid-template-columns: 1fr;
	margin: 0;
}

.is-style-bm-case .bm-stats .bm-stats__item {
	padding: 20px 0;
	border-top: 0;
	border-bottom: 1px solid var(--bm-type-line);
}

.is-style-bm-case .bm-stats .bm-stats__item:last-child {
	border-bottom: 0;
}

:is(.bm-section--subtle) .is-style-bm-case > :nth-child(2) {
	background: var(--bm-color-bg);
}

@media (min-width: 960px) {
	.is-style-bm-case {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
		gap: 56px;
		align-items: start;
	}
}

/* ==========================================================================
   大きな文字の CTA（グループ。ラベル・大きな見出し・区切り線・説明とボタンのグループ）。背景は白（オーナーの回答）
   区切り線の上の点の動き（数秒で止まる）は段階6-d。ここでは止まった位置に置く
   ========================================================================== */
.is-style-bm-cta-large {
	margin-block: 0 var(--bm-content-block-gap, 1.6em);
}

.is-style-bm-cta-large > * {
	margin-block: 0;
}

.is-style-bm-cta-large :is(h2, h3) {
	max-width: 14em;
	font-size: clamp(2rem, 1rem + 4vw, 4.25rem);
	line-height: 1.3;
	letter-spacing: 0.02em;
}

.is-style-bm-cta-large .wp-block-separator {
	position: relative;
	width: 100%;
	height: 1px;
	margin: clamp(2rem, 1rem + 3vw, 3.5rem) 0 !important;
	background: var(--bm-type-line-strong);
	border: 0;
	opacity: 1;
	overflow: visible; /* 線の上の点（::after）を切らない */
}

.is-style-bm-cta-large .wp-block-separator::after {
	position: absolute;
	top: -3px;
	left: 62%;
	width: 7px;
	height: 7px;
	background: var(--bm-color-primary);
	border-radius: 50%;
	content: "";
}

.is-style-bm-cta-large > .wp-block-group {
	display: grid;
	gap: 28px;
	align-items: center;
}

.is-style-bm-cta-large > .wp-block-group > * {
	margin: 0 !important;
}

.is-style-bm-cta-large > .wp-block-group > p {
	color: var(--bm-color-text-muted);
	line-height: 1.85;
}

@media (min-width: 960px) {
	.is-style-bm-cta-large > .wp-block-group {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

/* ==========================================================================
   T9 細い線で区切る一覧（bm/post-list のスタイル「一覧（細い線）」）
   ========================================================================== */
.is-style-bm-lines .bm-post-list__items {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--bm-color-primary);
}

.is-style-bm-lines .bm-post-list__item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--bm-type-line);
}

.is-style-bm-lines .bm-post-list__item::before {
	content: none;
}

.is-style-bm-lines .bm-post-card {
	position: relative;
	display: grid;
	grid-template-columns: 8.75rem minmax(0, 1fr) 20px; /* 日付の欄は固定幅（日付の文字数でタイトルの位置がずれないように） */
	gap: 4px 24px;
	padding: 18px 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.is-style-bm-lines .bm-post-card__meta {
	grid-column: 1;
	grid-row: 1 / span 2;
	margin: 0;
	color: var(--bm-color-text-muted);
	font-family: var(--bm-font-en), var(--bm-font-base);
	font-size: 0.9375rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	letter-spacing: var(--bm-tracking-wide);
	line-height: 1.7;
	white-space: nowrap;
}

.is-style-bm-lines .bm-post-card__title {
	grid-column: 2;
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
}

.is-style-bm-lines .bm-post-card__link {
	color: var(--bm-color-primary-dark);
	text-decoration: none;
}

.is-style-bm-lines .bm-post-card__link::after {
	position: absolute;
	inset: 0;
	content: "";
}

.is-style-bm-lines .bm-post-card::after {
	grid-column: 3;
	grid-row: 1 / span 2;
	align-self: center;
	color: var(--bm-color-primary);
	font-family: var(--bm-font-en);
	content: "→";
	content: "→" / "";
	transition: transform var(--bm-transition, 0.2s ease);
}

.is-style-bm-lines .bm-post-card:hover::after {
	transform: translateX(3px);
}

.is-style-bm-lines .bm-post-card__excerpt {
	display: none;
}

.is-style-bm-lines .bm-post-card__link:focus-visible {
	outline: 3px solid var(--bm-color-accent);
	outline-offset: 2px;
}

/* スマホ：日付をタイトルの上に置く */
@media (max-width: 599px) {
	.is-style-bm-lines .bm-post-card {
		grid-template-columns: minmax(0, 1fr) 20px;
		gap: 2px 12px;
	}

	.is-style-bm-lines .bm-post-card__meta {
		grid-row: 1;
		font-size: 0.875rem;
	}

	.is-style-bm-lines .bm-post-card__title {
		grid-column: 1;
		grid-row: 2;
	}

	.is-style-bm-lines .bm-post-card::after {
		grid-column: 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-bm-lines .bm-post-card::after {
		transition: none;
	}
}

/* ==========================================================================
   料金カード（グループ「型：料金カード」。中のグループ1つ＝プラン1つ。design-v2 段階6-b）
   - プラン：ラベル（英字）・プラン名（見出し）・費用の目安（段落。数字を太字にすると大きく表示）・内容・期間の目安（段落）
   - 真ん中（2つ目）のプランを、濃紺の枠と上の帯で少し強調する（オレンジは使わない）
   - スマホは縦に並べる
   ========================================================================== */
.is-style-bm-price-cards {
	display: grid;
	gap: 20px;
	margin-block: 0 var(--bm-content-block-gap, 1.6em);
}

.is-style-bm-price-cards > * {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0 !important;
	padding: 32px 28px 28px;
	background: var(--bm-color-bg);
	border: 1px solid var(--bm-type-line);
}

.is-style-bm-price-cards > :nth-child(2) {
	border: 2px solid var(--bm-color-primary);
	box-shadow: var(--bm-shadow-lg, 0 14px 32px rgba(13, 27, 51, 0.2));
}

.is-style-bm-price-cards > :nth-child(2)::before {
	position: absolute;
	top: -2px;
	right: -2px;
	left: -2px;
	height: 6px;
	background: var(--bm-color-primary);
	content: "";
}

.is-style-bm-price-cards > * > * {
	margin: 0 !important;
}

.is-style-bm-price-cards :is(h2, h3, h4) {
	margin-top: 6px !important;
	padding: 0;
	border: 0;
	color: var(--bm-color-primary-dark);
	font-size: 1.25rem;
	line-height: 1.5;
}

.is-style-bm-price-cards :is(h2, h3, h4)::before {
	content: none;
}

/* 費用の目安（2つ目の段落）。太字にした数字を大きく */
.is-style-bm-price-cards > * > p:not(.is-style-bm-label):nth-of-type(2) {
	margin-top: 20px !important;
	padding-bottom: 20px !important;
	border-bottom: 1px solid var(--bm-type-line);
	color: var(--bm-color-text-muted);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.is-style-bm-price-cards > * > p:not(.is-style-bm-label):nth-of-type(2) strong {
	margin-right: 4px;
	background: none;
	color: var(--bm-color-primary);
	font-family: var(--bm-font-en), var(--bm-font-base);
	font-size: 2.75rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
}

/* 内容・期間の目安 */
.is-style-bm-price-cards > * > p:not(.is-style-bm-label):nth-of-type(n+3) {
	margin-top: 16px !important;
	color: var(--bm-color-text);
	font-size: 0.9375rem;
	line-height: 1.8;
}

.is-style-bm-price-cards > * > p:not(.is-style-bm-label):last-child {
	margin-top: auto !important;
	padding-top: 16px;
	color: var(--bm-color-text-muted);
	font-size: 0.875rem;
}

@media (min-width: 960px) {
	.is-style-bm-price-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: stretch;
	}
}

/* 主役＋脇役：脇役の中のリンクの一覧（この分野の解決例） */
.is-style-bm-featured > :nth-child(2) ul {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.is-style-bm-featured > :nth-child(2) li {
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	line-height: 1.7;
}

.is-style-bm-featured > :nth-child(2) li + li {
	margin-top: 6px;
}

.is-style-bm-featured > :nth-child(2) li a {
	color: var(--bm-color-primary);
	text-decoration: none;
}

.is-style-bm-featured > :nth-child(2) li a::before {
	margin-right: 8px;
	font-family: var(--bm-font-en);
	content: "→";
	content: "→" / "";
}

.is-style-bm-featured > :nth-child(2) li a:hover {
	text-decoration: underline;
}

.is-style-bm-featured > :nth-child(2) ul > li::before {
	content: none;
}

/* 事例：数字の欄がないとき（bm/works-featured が is-single を付ける）は1列 */
@media (min-width: 960px) {
	.is-style-bm-case.is-single {
		grid-template-columns: minmax(0, 1fr);
		max-width: 880px;
	}
}

/* ラベルの中の日本語（英字の下に添える訳語）：英字用の字間をかけない（design-v2 段階6-b の手直し） */
.is-style-bm-label .bm-label__ja {
	font-family: var(--bm-font-base);
	letter-spacing: normal;
}

/* 主役のパネルの要点（主役の説明文の下。リンクの一覧とは別の、線のない短いリスト） */
.is-style-bm-featured > :first-child ul.bm-featured__points {
	margin: 24px 0 0;
	padding: 0;
	border: 0;
}

.is-style-bm-featured > :first-child ul.bm-featured__points > li {
	position: relative;
	padding: 0 0 0 1.4em;
	border: 0;
	color: var(--bm-color-on-primary);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.7;
}

.is-style-bm-featured > :first-child ul.bm-featured__points > li + li {
	margin-top: 10px;
}

.is-style-bm-featured > :first-child ul.bm-featured__points > li::before {
	position: absolute;
	top: calc(0.85em - 3px);
	left: 0;
	width: 6px;
	height: 6px;
	background: var(--bm-color-on-primary-muted, #c8d3e0);
	content: "";
}

/* --------------------------------------------------------------------------
   よくある質問の開閉の動き（details.bm-faq__item。トップ・FAQ ページ・サービスなど共通）
   高さと文字の動きは main.js（Web Animations API）。ここでは矢印の回転と、動いている間のはみ出しの処理だけ。
   JavaScript がないとき・対応していないブラウザでは、ふつうに一瞬で開閉する。
   -------------------------------------------------------------------------- */
.bm-faq__item summary::after {
	transition: transform 0.38s cubic-bezier(0.33, 1, 0.68, 1);
}

.bm-faq__item.is-animating {
	overflow: hidden;
}

/* 閉じる途中は open がまだ付いているので、矢印だけ先に閉じた向きへ戻す */
.bm-faq__item[open].is-closing summary::after,
.post_content .bm-faq__item[open].is-closing summary::after {
	transform: translateY(-70%) rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
	.bm-faq__item summary::after {
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   セクションの見出し（サービス・業種などのパターン。design-v2 段階6-c-0 §1-3）
   英字のラベル（番号つき。aria-hidden）＋H2。本文の H2 の飾り（上の線と短い線）は使わない。
   マークアップ：
     <p class="bm-sec-label" aria-hidden="true"><span>01</span>Problem</p>
     <h2 class="wp-block-heading bm-sec-title">こんな課題</h2>
   セクションの背景を白と淡いグレーで交互にするときは、外側のグループ（幅いっぱい）に .bm-sec と .bm-sec--subtle を付ける。
   -------------------------------------------------------------------------- */
.bm-sec-label {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 0 0 10px;
	color: var(--bm-color-text-muted);
	font-family: var(--bm-font-en);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: var(--bm-tracking-wider);
	line-height: 1.4;
	text-transform: uppercase;
}

/* 番号は CSS で自動で振る（目次の番号とそろえる）。導入部分があるサービスのページは、導入（目次の 01 概要）の次から 02 */
.post_content {
	counter-reset: bm-sec;
}

.single-service .post_content:has(.bm-service-intro) {
	counter-reset: bm-sec 1;
}

.bm-sec-label::before {
	color: var(--bm-color-primary);
	font-size: 1.75rem;
	font-weight: 500;
	letter-spacing: var(--bm-tracking-wide);
	font-variant-numeric: tabular-nums;
	counter-increment: bm-sec;
	content: counter(bm-sec, decimal-leading-zero);
}

.post_content .bm-sec-label {
	margin: 0 0 10px;
	line-height: 1.4;
}

.post_content h2.bm-sec-title,
h2.bm-sec-title {
	margin: 0 0 clamp(24px, 3vw, 40px);
	padding: 0;
	border-top: 0;
	color: var(--bm-color-primary-dark);
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
	line-height: 1.4;
	text-wrap: balance;
	word-break: auto-phrase;
}

.post_content h2.bm-sec-title::before,
h2.bm-sec-title::before {
	content: none;
}

/* セクションの背景（白と淡いグレーを交互に）。外側のグループ（幅いっぱい）に付ける。中の幅は 1200px */
.post_content .bm-sec {
	margin-block: 0;
	padding-block: clamp(56px, 7vw, 96px);
	padding-inline: max(var(--bm-gutter), calc((100vw - var(--bm-width-wide)) / 2)); /* % は本文の幅（760px）が基準になるので、画面の幅で */
}

:where(.post_content .bm-sec) > * { /* 詳細度 0（ラベル・見出しの余白の指定が勝つように） */
	margin-block: 0;
}

.post_content .bm-sec + .bm-sec {
	margin-top: 0;
}

/* セクションの中の注記 */
.post_content .bm-sec-note {
	margin: 24px 0 0;
	color: var(--bm-color-text-muted);
	font-size: 0.875rem;
}

.post_content .bm-sec--subtle {
	background: var(--bm-color-bg-subtle);
}

/* --------------------------------------------------------------------------
   主役＋脇役の一覧（bm/post-list の is-style-bm-pickup。建設業ページの「解決できること」。design-v2 段階6-c-1）
   最初の1件を濃紺の主役に、ほかを白い脇役にする。課題別ページが公開されるまでは、中の予備の内容（主役＋脇役の型）を出す
   -------------------------------------------------------------------------- */
.is-style-bm-pickup .bm-post-list__items {
	display: grid;
	gap: var(--bm-grid-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 960px) {
	.is-style-bm-pickup .bm-post-list__items {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	}

	.is-style-bm-pickup .bm-post-list__item:first-child {
		grid-row: span 6;
	}
}

.is-style-bm-pickup .bm-post-list__item {
	margin: 0;
	padding: 0;
}

.is-style-bm-pickup .bm-post-list__item::before {
	content: none;
}

.is-style-bm-pickup .bm-post-card {
	height: 100%;
	padding: clamp(24px, 3vw, 40px);
	border-top: 2px solid var(--bm-color-primary);
	background: var(--bm-color-bg);
}

.is-style-bm-pickup .bm-post-list__item:first-child .bm-post-card {
	border-top: 0;
	background: var(--bm-color-primary);
	color: var(--bm-color-on-primary);
}

.is-style-bm-pickup .bm-post-card__title {
	margin: 0 0 12px;
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	line-height: 1.5;
}

.is-style-bm-pickup .bm-post-list__item:first-child .bm-post-card__title {
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
}

.is-style-bm-pickup .bm-post-card__link {
	color: inherit;
	text-decoration: none;
}

.is-style-bm-pickup .bm-post-card__link::after {
	content: " →";
	content: " →" / "";
}

.is-style-bm-pickup .bm-post-list__item:first-child .bm-post-card__excerpt {
	color: var(--bm-color-on-primary-muted);
}

/* ==========================================================================
   型：縦のステップ（グループ。中のグループ1つ＝1段階。design-v2 段階6-c-3。ご依頼の流れ）
   段階：見出し・説明・「お客様にしていただくこと／期間の目安」の2列（中のグループ2つ。ラベルと段落）
   番号は CSS のカウンター。番号どうしを縦の線でつなぐ
   ========================================================================== */
.is-style-bm-flow-steps {
	margin-block: 0 var(--bm-content-block-gap, 1.6em);
	counter-reset: bm-flow;
}

.is-style-bm-flow-steps > .wp-block-group {
	position: relative;
	margin: 0 !important;
	padding: 0 0 48px 56px;
	counter-increment: bm-flow;
}

.is-style-bm-flow-steps > .wp-block-group:last-child {
	padding-bottom: 0;
}

.is-style-bm-flow-steps > .wp-block-group::before {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	background: var(--bm-color-bg);
	border: 1px solid var(--bm-color-primary);
	border-radius: 50%;
	color: var(--bm-color-primary);
	font-family: var(--bm-font-en);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: var(--bm-tracking-wide);
	content: counter(bm-flow, decimal-leading-zero);
}

.is-style-bm-flow-steps > .wp-block-group:not(:last-child)::after {
	position: absolute;
	top: 40px;
	bottom: 0;
	left: 20px;
	width: 1px;
	background: var(--bm-type-line-strong);
	content: "";
}

.is-style-bm-flow-steps > .wp-block-group > h3 {
	margin: 0 0 8px;
	padding: 6px 0 0;
	background: none;
	border: 0;
	color: var(--bm-color-primary-dark);
	font-size: 1.25rem;
	line-height: 1.5;
}

.is-style-bm-flow-steps > .wp-block-group > h3::before,
.is-style-bm-flow-steps > .wp-block-group > h3::after {
	content: none;
}

.is-style-bm-flow-steps > .wp-block-group > p {
	margin: 0 0 16px;
}

.is-style-bm-flow-steps > .wp-block-group > .wp-block-group {
	display: grid;
	margin: 0;
	column-gap: 32px;
	border-top: 1px solid var(--bm-type-line);
}

.is-style-bm-flow-steps > .wp-block-group > .wp-block-group > .wp-block-group {
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--bm-type-line);
}

.is-style-bm-flow-steps > .wp-block-group > .wp-block-group p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.85;
}

.is-style-bm-flow-steps > .wp-block-group > .wp-block-group .is-style-bm-label {
	margin: 0 0 4px;
	font-size: 0.8125rem;
}

@media (min-width: 768px) {
	.is-style-bm-flow-steps > .wp-block-group {
		padding-left: 80px;
	}

	.is-style-bm-flow-steps > .wp-block-group::before {
		width: 48px;
		height: 48px;
	}

	.is-style-bm-flow-steps > .wp-block-group:not(:last-child)::after {
		top: 48px;
		left: 24px;
	}

	.is-style-bm-flow-steps > .wp-block-group > .wp-block-group {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}
}

.bm-sec--subtle .is-style-bm-flow-steps > .wp-block-group::before {
	background: var(--bm-color-bg-subtle);
}

/* ==========================================================================
   細い線の一覧（リストのスタイル。項目の太字＝見出し。続く文＝説明。design-v2 段階6-c-3）
   ========================================================================== */
ul.is-style-bm-rows,
.post_content ul.is-style-bm-rows {
	margin: 0 0 var(--bm-content-block-gap, 1.6em);
	padding: 0;
	border-top: 1px solid var(--bm-color-primary);
	list-style: none;
}

ul.is-style-bm-rows > li,
.post_content ul.is-style-bm-rows > li {
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid var(--bm-type-line);
	line-height: 1.85;
}

ul.is-style-bm-rows > li::before,
.post_content ul.is-style-bm-rows > li::before {
	content: none;
}

ul.is-style-bm-rows > li > strong,
.post_content ul.is-style-bm-rows > li > strong {
	display: block;
	background: none;
	color: var(--bm-color-primary-dark);
}

@media (min-width: 768px) {
	ul.is-style-bm-rows > li:has(> strong),
	.post_content ul.is-style-bm-rows > li:has(> strong) {
		display: grid;
		grid-template-columns: 12em minmax(0, 1fr);
		column-gap: 24px;
		align-items: baseline;
	}
}

/* セクションの中の2列（含まれるもの／含まれないもの）の見出しには、本文の H3 の飾りを付けない */
.post_content .bm-sec .wp-block-columns h3 {
	margin: 0 0 14px;
	padding: 0;
	background: none;
	border: 0;
	font-size: 1.125rem;
}

.post_content .bm-sec .wp-block-columns h3::before,
.post_content .bm-sec .wp-block-columns h3::after {
	content: none;
}

.post_content .bm-sec .wp-block-columns ul.is-style-bm-check {
	margin-top: 0;
}

/* ==========================================================================
   Web制作ページ（原稿 v1。design-v2 段階6-c-4）の並べ方。部品は作成済みのものを使い、列の数と強弱だけを足す
   ========================================================================== */
/* 大きな番号のリストを 2×2 のカードに */
@media (min-width: 768px) {
	.is-style-bm-numbered.bm-grid-2 {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
		border-top: 0;
	}

	.is-style-bm-numbered.bm-grid-2 > * {
		--bm-num-size: 3.5rem;
		--bm-num-head-size: 1.25rem;

		grid-template-columns: 64px minmax(0, 1fr); /* 番号の列は固定の幅（01〜04 で見出しの左端をそろえる） */
		align-content: start;
		gap: 12px 24px;
		padding: 32px 28px;
		background: var(--bm-color-bg);
		border: 1px solid var(--bm-type-line);
		border-top: 3px solid var(--bm-color-primary);
	}

	.is-style-bm-numbered.bm-grid-2 > *::before {
		grid-row: span 2;
	}
}

/* 料金カード：2枚の比較／最後の段落も本文として見せる（期間の目安がないカード） */
@media (min-width: 960px) {
	.is-style-bm-price-cards.bm-price-cards--two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.is-style-bm-price-cards.bm-price-cards--plain > * > p:not(.is-style-bm-label):last-child {
	margin-top: 16px !important;
	padding-top: 0;
	color: var(--bm-color-text);
	font-size: 0.9375rem;
}

/* 2×2／3列の一覧 */
@media (min-width: 768px) {
	.post_content ul.bm-grid-2 {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 32px;
	}

	.post_content ul.bm-grid-3 {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 24px;
	}
}

.post_content ul.bm-grid-3 {
	padding: 0;
	list-style: none;
}

.post_content ul.bm-grid-3 > li::before {
	content: none;
}

.post_content ul.bm-grid-3 > li strong {
	background: none;
	color: var(--bm-color-primary);
	font-family: var(--bm-font-en), var(--bm-font-base);
	font-size: 2.25rem;
	font-weight: 600;
}

/* 細い線で区切る、見出しと説明のまとまり */
.bm-line-blocks {
	margin-block: var(--bm-content-block-gap, 1.6em);
	border-top: 1px solid var(--bm-color-primary);
}

.bm-line-blocks > .wp-block-group {
	margin: 0;
	padding: 20px 0;
	border-bottom: 1px solid var(--bm-type-line);
}

.post_content .bm-line-blocks > .wp-block-group > h3 {
	margin: 0 0 8px;
	padding: 0;
	background: none;
	border: 0;
	font-size: 1.125rem;
}

.post_content .bm-line-blocks > .wp-block-group > h3::before,
.post_content .bm-line-blocks > .wp-block-group > h3::after {
	content: none;
}

.post_content .bm-line-blocks > .wp-block-group > p {
	margin: 0;
}

/* 左の列の大きな言葉（「3か月以内」） */
.post_content .is-style-bm-split > :first-child p.bm-sec-figure {
	margin-top: 20px;
	color: var(--bm-color-primary);
	font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem);
	line-height: 1.25;
}

.post_content p.bm-sec-figure strong {
	background: none;
	color: inherit;
}

/* 「続きを開く」形の開閉（よくある質問の形にしない。見た目は faq.css の対象外） */
.post_content details.wp-block-details.is-style-bm-more {
	margin: 0 0 var(--bm-content-block-gap, 1.6em);
	border-top: 1px solid var(--bm-type-line-strong);
	border-bottom: 1px solid var(--bm-type-line);
}

.post_content details.is-style-bm-more > summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 4px;
	color: var(--bm-color-primary-dark);
	font-weight: var(--bm-font-weight-bold);
	line-height: 1.7;
	list-style: none;
	cursor: pointer;
}

.post_content details.is-style-bm-more > summary::-webkit-details-marker {
	display: none;
}

.post_content details.is-style-bm-more > summary::after {
	flex: none;
	color: var(--bm-color-primary);
	font-family: var(--bm-font-en);
	font-size: 1.375rem;
	line-height: 1.2;
	content: "+";
	content: "+" / "";
}

.post_content details.is-style-bm-more[open] > summary::after {
	content: "−";
	content: "−" / "";
}

.post_content details.is-style-bm-more > summary:focus-visible {
	outline: 3px solid var(--bm-color-focus);
	outline-offset: -3px;
}

.post_content details.is-style-bm-more > :not(summary):first-of-type {
	margin-top: 8px;
}

/* まだ作っていない部品の位置の仮の表示（公開前に置き換える） */
.post_content .bm-placeholder,
.bm-section .bm-placeholder {
	margin-block: var(--bm-content-block-gap, 1.6em);
	padding: 16px;
	border: 2px dashed var(--bm-type-line-strong);
}

.post_content .bm-placeholder > p.bm-placeholder__title,
.bm-section .bm-placeholder > p.bm-placeholder__title {
	display: inline-block;
	margin: 0 0 12px;
	padding: 2px 10px;
	background: var(--bm-color-primary);
	color: var(--bm-color-on-primary);
	font-size: 0.8125rem;
	font-weight: var(--bm-font-weight-bold);
}

/* SEO ページ（原稿 v1）の並べ方 */
/* 大きな番号のリストの項目に足した開閉などは、番号の右の幅いっぱいに置く */
.is-style-bm-numbered > * > details {
	grid-column: 2 / -1;
}

/* 料金カード：真ん中を強調しない（内容の違う3つを並べるとき） */
.is-style-bm-price-cards.bm-price-cards--flat > :nth-child(2) {
	border: 1px solid var(--bm-type-line);
	box-shadow: none;
}

.is-style-bm-price-cards.bm-price-cards--flat > :nth-child(2)::before {
	content: none;
}

/* 事例の型：見出しと最初の区切りの間に説明の段落があるとき */
.is-style-bm-case > :first-child > p + .wp-block-group {
	border-top: 1px solid var(--bm-type-line-strong);
}

.is-style-bm-case > :first-child > h3 + p {
	margin: -12px 0 24px;
}

/* 無料ツールの紹介 */
.bm-tool-card {
	margin-block: var(--bm-content-block-gap, 1.6em);
	padding: 24px;
	background: var(--bm-color-bg);
	border: 1px solid var(--bm-type-line);
	border-top: 3px solid var(--bm-color-primary);
}

.post_content .bm-tool-card > h3 {
	margin: 0 0 8px;
	padding: 0;
	background: none;
	border: 0;
	font-size: 1.125rem;
}

.post_content .bm-tool-card > h3::before,
.post_content .bm-tool-card > h3::after {
	content: none;
}

.post_content .bm-tool-card > :last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   リンクつきのカード（グループ「bm-link-cards」。中のグループ1つ＝1枚：見出し・説明・矢印のリンク。トップの事例と会社概要の事業内容）
   ========================================================================== */
.bm-link-cards {
	display: grid;
	gap: 20px;
	margin-block: 0 var(--bm-content-block-gap, 1.6em);
}

.bm-link-cards > .wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 28px 24px 24px;
	background: var(--bm-color-bg);
	border: 1px solid var(--bm-type-line);
	border-top: 3px solid var(--bm-color-primary);
}

.bm-link-cards > .wp-block-group > * {
	margin: 0 !important;
}

.bm-link-cards > .wp-block-group > h3,
.post_content .bm-link-cards > .wp-block-group > h3 {
	padding: 0;
	background: none;
	border: 0;
	color: var(--bm-color-primary-dark);
	font-size: 1.125rem;
	line-height: 1.6;
}

.bm-link-cards > .wp-block-group > h3::before,
.bm-link-cards > .wp-block-group > h3::after,
.post_content .bm-link-cards > .wp-block-group > h3::before,
.post_content .bm-link-cards > .wp-block-group > h3::after {
	content: none;
}

.bm-link-cards > .wp-block-group > p {
	color: var(--bm-color-text);
	font-size: 0.9375rem;
	line-height: 1.85;
}

.bm-link-cards > .wp-block-group > p:last-child {
	margin-top: auto !important;
}

@media (min-width: 960px) {
	.bm-link-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ==========================================================================
   会社概要（原稿 company-v1）
   ========================================================================== */
.post_content p.bm-signature {
	text-align: right;
	font-weight: var(--bm-font-weight-bold);
}

/* 年の列の幅をそろえる。599px 以下は、年の下に内容を置く */
.post_content .is-style-bm-timeline.bm-timeline--wide > li {
	grid-template-columns: 9em minmax(0, 1fr);
}

@media (max-width: 599px) {
	.post_content .is-style-bm-timeline.bm-timeline--wide > li {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}
}

/* 会社情報の表：項目の列は折り返さない。長い英数字（メールアドレス）は折り返せる */
.post_content .bm-company-table table {
	min-width: 0;
}

.post_content .bm-company-table td:first-child,
.post_content .bm-company-table th:first-child {
	width: 8em;
	white-space: nowrap;
}

.post_content .bm-company-table td {
	overflow-wrap: anywhere;
}

/* ==========================================================================
   建設業・課題別ページ（原稿 industry-v1）
   ========================================================================== */
/* 番号の一覧の項目に足した矢印のリンクは、番号の右の列に置く */
.is-style-bm-numbered > * > p.is-style-bm-arrow {
	grid-column: 2 / -1;
}

@media (min-width: 960px) {
	.is-style-bm-numbered:not(.bm-grid-2) > * > p.is-style-bm-arrow {
		top: 0;
	}
}

/* 仕組み：左に説明、右にターミナル風の実演 */
.post_content .bm-mech {
	display: grid;
	gap: 32px;
}

.post_content .bm-mech > * {
	min-width: 0;
	margin: 0;
}

@media (min-width: 960px) {
	.post_content .bm-mech {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 64px;
		align-items: center;
	}
}

/* 2枚のカード */
@media (min-width: 960px) {
	.bm-link-cards.bm-link-cards--two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.bm-link-cards.bm-link-cards--two > .wp-block-group > p:last-child {
	margin-top: 0 !important;
}

/* 費用の表：金額の列は折り返さない */
.post_content .bm-price-table td:last-child {
	width: 8em;
	white-space: nowrap;
}

/* 3列の費用の表（内容・初期費用・月額）：金額の列は語の途中で折り返さない（「10万円〜」の後でだけ折り返す） */
.post_content .bm-price-3col :is(th, td):not(:first-child) {
	word-break: keep-all;
	overflow-wrap: normal;
}

/* 599px 以下：3列の表は、行ごとに縦に並べる（取り組み → 内容 → 手伝えること） */
@media (max-width: 599px) {
	.post_content .wp-block-table.bm-stack-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.post_content .wp-block-table.bm-stack-table :is(table, tbody, tr, td) {
		display: block;
	}

	.post_content .wp-block-table.bm-stack-table tr {
		padding: 12px 0;
		border-bottom: 1px solid var(--bm-table-border-color);
	}

	.post_content .wp-block-table.bm-stack-table td {
		padding-block: 4px;
		border: 0;
	}

	.post_content .wp-block-table.bm-stack-table td:first-child {
		color: var(--bm-color-primary-dark);
		font-weight: var(--bm-font-weight-bold);
	}

	.post_content .wp-block-table.bm-stack-table td:nth-child(2)::before {
		display: block;
		color: var(--bm-color-text-muted);
		font-size: 0.8125rem;
		font-weight: var(--bm-font-weight-bold);
		content: "内容";
	}

	.post_content .wp-block-table.bm-stack-table td:nth-child(3)::before {
		display: block;
		color: var(--bm-color-primary);
		font-size: 0.8125rem;
		font-weight: var(--bm-font-weight-bold);
		content: "この仕組みで手伝えること";
	}
}

/* ==========================================================================
   料金・流れ（原稿 price-flow-faq-v1）
   ========================================================================== */
/* 料金の表：サービスと料金の列は折り返さない */
.post_content .bm-fee-table td:first-child {
	width: 11em;
	color: var(--bm-color-primary-dark);
	font-weight: var(--bm-font-weight-bold);
	white-space: nowrap;
}

.post_content .bm-fee-table td:last-child {
	width: 13em;
	font-weight: var(--bm-font-weight-bold);
	white-space: nowrap;
}

/* 599px 以下：行ごとに縦に並べる（サービス → 内容 → 料金（税別）） */
@media (max-width: 599px) {
	.post_content .wp-block-table.bm-fee-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.post_content .wp-block-table.bm-fee-table :is(table, tbody, tr, td) {
		display: block;
		width: auto;
		min-width: 0;
	}

	.post_content .wp-block-table.bm-fee-table tr {
		padding: 12px 0;
		border-bottom: 1px solid var(--bm-table-border-color);
	}

	.post_content .wp-block-table.bm-fee-table td {
		padding-block: 2px;
		border: 0;
	}

	.post_content .wp-block-table.bm-fee-table td:first-child {
		color: var(--bm-color-text-muted);
		font-size: 0.8125rem;
	}

	.post_content .wp-block-table.bm-fee-table td:last-child::before {
		color: var(--bm-color-text-muted);
		font-size: 0.8125rem;
		content: "料金（税別）　";
	}
}

/* 縦のステップで、見出しに「STEP 1」を書くときは、丸の中の番号の代わりに点を出す */
.is-style-bm-flow-steps.bm-flow-steps--named > .wp-block-group::before {
	background: radial-gradient(circle, var(--bm-color-primary) 0 6px, var(--bm-color-bg) 7px);
	content: "";
}

.bm-sec--subtle .is-style-bm-flow-steps.bm-flow-steps--named > .wp-block-group::before {
	background: radial-gradient(circle, var(--bm-color-primary) 0 6px, var(--bm-color-bg-subtle) 7px);
}

/* ==========================================================================
   対応エリアの一覧（会社概要。地図は使わない）
   - 項目の太字＝見出し（訪問・オンライン）、続く文＝地域名。訪問は濃紺の太い線、オンラインは細い線。
   - PC（768px 以上）は2列、スマホは縦に並べる。
   ========================================================================== */
ul.bm-area-list,
.post_content ul.bm-area-list {
	display: grid;
	gap: 16px;
	margin: 0 0 var(--bm-content-block-gap, 1.6em);
	padding: 0;
	list-style: none;
}

ul.bm-area-list > li,
.post_content ul.bm-area-list > li {
	margin: 0;
	padding: 20px 24px 22px;
	border-top: 3px solid var(--bm-color-primary);
	background: var(--bm-color-bg-subtle);
	color: var(--bm-color-primary-dark);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	font-weight: 700;
	line-height: 1.7;
}

ul.bm-area-list > li.is-online,
.post_content ul.bm-area-list > li.is-online {
	border-top: 1px solid rgba(20, 40, 75, 0.32);
	padding-top: 22px;
}

ul.bm-area-list > li::before,
.post_content ul.bm-area-list > li::before {
	content: none;
}

ul.bm-area-list > li > strong,
.post_content ul.bm-area-list > li > strong {
	display: block;
	margin-bottom: 6px;
	background: none;
	color: var(--bm-color-text-muted);
	font-size: 0.875rem;
	letter-spacing: 0.08em;
}

ul.bm-area-list > li.is-visit > strong,
.post_content ul.bm-area-list > li.is-visit > strong {
	color: var(--bm-color-primary);
}

@media (min-width: 768px) {
	ul.bm-area-list,
	.post_content ul.bm-area-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}

/* ==========================================================================
   レポートの Before → After（Web制作）
   - 上に「よくあるレポート」（淡い色）、矢印、下に「計測を設計したレポート」（濃紺の線）と表。
   - PC（768px 以上）は、見出しを左の列、文と表を右の列に置く。スマホは縦に並べ、表は行ごとに縦に並べる。
   ========================================================================== */
.bm-report-compare {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 36px;
	margin: 0 0 var(--bm-content-block-gap, 1.6em);
}

.bm-report-compare > * {
	position: relative;
	margin: 0;
	padding: 20px 24px 24px;
}

.bm-report-compare__before {
	border-top: 1px solid rgba(20, 40, 75, 0.32);
	background: var(--bm-color-bg-subtle);
}

.bm-report-compare__after {
	border-top: 3px solid var(--bm-color-primary);
	background: var(--bm-color-bg);
	box-shadow: 0 0 0 1px var(--bm-color-line-soft, rgba(20, 40, 75, 0.12));
}

/* 2つの間の下向きの矢印（飾り） */
.bm-report-compare__after::before {
	position: absolute;
	top: -27px;
	left: 32px;
	width: 12px;
	height: 12px;
	border-right: 2px solid var(--bm-color-primary);
	border-bottom: 2px solid var(--bm-color-primary);
	transform: rotate(45deg);
	content: "";
}

.post_content .bm-report-compare p {
	margin: 0;
}

.post_content .bm-report-compare .bm-report-compare__label {
	margin-bottom: 8px;
	color: var(--bm-color-text-muted);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.post_content .bm-report-compare__after .bm-report-compare__label {
	color: var(--bm-color-primary);
}

.post_content .bm-report-compare .bm-report-compare__text {
	color: var(--bm-color-primary-dark);
	font-weight: 700;
	line-height: 1.8;
}

.post_content .bm-report-compare .wp-block-table {
	margin: 16px 0 0;
}

@media (min-width: 768px) {
	.bm-report-compare > * {
		display: grid;
		grid-template-columns: 11em minmax(0, 1fr);
		column-gap: 24px;
		align-items: baseline;
	}

	.post_content .bm-report-compare .bm-report-compare__label {
		grid-row: 1 / span 2;
		margin-bottom: 0;
	}

	.post_content .bm-report-compare .wp-block-table {
		grid-column: 2;
	}
}

/* ==========================================================================
   スマホ（767px 以下）で、表を行ごとに縦に並べる（レポートの表・対応エリアの表・SEO の診断の例の表）
   - 列の名前は CSS で添える（表の見出しの行と同じ言葉）。
   ========================================================================== */
@media (max-width: 767px) {
	.post_content .wp-block-table:is(.bm-report-table, .bm-area-table, .bm-audit-table) thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.post_content .wp-block-table:is(.bm-report-table, .bm-area-table, .bm-audit-table) :is(table, tbody, tr, td) {
		display: block;
		width: auto;
	}

	.post_content .wp-block-table:is(.bm-report-table, .bm-area-table, .bm-audit-table) tr {
		padding: 12px 0;
		border-bottom: 1px solid var(--bm-table-border-color);
		background: none;
	}

	.post_content .wp-block-table:is(.bm-report-table, .bm-area-table, .bm-audit-table) td {
		padding: 2px 0;
		border: 0;
		background: none;
	}

	.post_content .wp-block-table:is(.bm-report-table, .bm-area-table, .bm-audit-table) td:first-child {
		color: var(--bm-color-primary-dark);
		font-weight: var(--bm-font-weight-bold);
	}

	.post_content .wp-block-table:is(.bm-report-table, .bm-area-table, .bm-audit-table) td:not(:first-child)::before {
		display: inline;
		margin-right: 0.75em;
		color: var(--bm-color-text-muted);
		font-size: 0.8125rem;
		font-weight: var(--bm-font-weight-bold);
	}

	/* 列の多い表の「最小の幅＋横スクロール＋1列目の固定」（content.css）を、ここでは使わない（クラスを重ねて優先させる） */
	.post_content .wp-block-table:is(.bm-report-table, .bm-audit-table):is(.bm-report-table, .bm-audit-table) table {
		min-width: 0;
	}

	.post_content .wp-block-table:is(.bm-report-table, .bm-audit-table):is(.bm-report-table, .bm-audit-table) td:first-child {
		position: static;
		background: none;
	}

	.post_content .bm-report-table td:nth-child(2)::before { content: "件数"; }
	.post_content .bm-report-table td:nth-child(3)::before { content: "最初に見たページ（いちばん多い）"; }
	.post_content .bm-report-table td:nth-child(4)::before { content: "流入元（いちばん多い）"; }
	.post_content .bm-area-table td:nth-child(2)::before { content: "主な市町村"; }
	.post_content .bm-area-table td:nth-child(3)::before { content: "打ち合わせ"; }
	.post_content .bm-audit-table td:first-child::before { margin-right: 0.75em; color: var(--bm-color-text-muted); font-size: 0.8125rem; content: "優先度"; }
	.post_content .bm-audit-table td:nth-child(2)::before { content: "見つかったこと"; }
	.post_content .bm-audit-table td:nth-child(3)::before { content: "影響"; }
	.post_content .bm-audit-table td:nth-child(4)::before { content: "直し方"; }
}
