/* ==========================================================================
   front.css：トップページのセクション（patterns/front-*.php）
   --------------------------------------------------------------------------
   - トップページだけで読み込む（inc/enqueue.php）。ブロックエディタにも読み込む（inc/setup.php）。
   - 色はすべて base.css のトークン。オレンジは問い合わせボタンだけに使う（CLAUDE.md §8-1）。
   - 英語のラベルは見出しの上の小さな飾り。CSS の生成コンテンツで出し、代替テキストを空にして
     読み上げ・見出しの名前に含めない（content: "…" / ""）。
   - パララックス（§8-1）は、このファイルの最後の @supports の中だけ。transform と opacity のみを動かす。
   ========================================================================== */

/* --------------------------------------------------------------------------
   セクションの共通
   -------------------------------------------------------------------------- */
/* 上下の余白は尺度（--bm-section-space：375px で 64px → 1280px で約128px、上限160px）。
   背景は3種類：白（既定）・淡（.bm-section--subtle）・濃紺（.bm-section--dark、.bm-band）。
   --bm-section-bg は、図の縁取り（循環図の円の外側など）を背景と同じ色で描くための値 */
.bm-section {
	--bm-section-bg: var(--bm-color-bg);
	display: grid;
	gap: var(--bm-space-md);
	padding-block: var(--bm-section-space);
	padding-inline: max(var(--bm-gutter), calc((100% - var(--bm-width-wide)) / 2));
	background: var(--bm-section-bg);
}

/* コアの「フロー」レイアウトの余白（:where で詳細度0）を、セクションの gap にそろえる */
.bm-section > *,
.bm-section .bm-card > *,
.bm-grid > * {
	margin-block: 0;
}

/* 見出しのまとまり（英語のラベル＋H2＋リード文）と中身の間は、セクションの gap より広く取る */
.bm-section > .bm-section__title + :not(.bm-section__lead),
.bm-section > .bm-section__lead + * {
	margin-top: calc(var(--bm-section-head-gap) - var(--bm-space-md));
}

/* カードの中の要素の間（上の margin-block: 0 と同じ詳細度にして、後ろに書いたこちらを効かせる） */
.bm-section .bm-card > * + * {
	margin-top: 0.75rem;
}

.bm-section--subtle {
	--bm-section-bg: var(--bm-color-bg-subtle);
}

/* 濃紺の背景（2 お悩み・6 建設業）。.bm-band は従来の名前（同じ見た目） */
.bm-section--dark,
.bm-band {
	--bm-section-bg: var(--bm-color-primary);
	position: relative;
	isolation: isolate;
	overflow: clip;
	color: var(--bm-color-on-primary);
}

/* セクションの H2：375px で 24px（従来と同じ）→ 1280px で約45px → 上限48px。
   本文（16〜18px）との差を大きくする（design-v2） */
.bm-section__title {
	font-size: clamp(1.5rem, 0.95rem + 2.35vw, 3rem);
	line-height: 1.35;
	letter-spacing: 0.02em;
	word-break: auto-phrase;
	text-wrap: balance;
}

/* 英語のラベル（飾り。読み上げない）：左に短い線を添えた小さな大文字。全セクションで同じ組み方 */
.bm-section__title::before {
	display: block;
	width: fit-content;
	margin-bottom: 0.75rem;
	padding-left: 2.25rem;
	background: linear-gradient(currentColor, currentColor) left center / 1.5rem 1px no-repeat;
	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.6;
	text-transform: uppercase;
}

.bm-problems .bm-section__title::before { content: "Problems"; content: "Problems" / ""; }
.bm-cycle-section .bm-section__title::before { content: "One-stop"; content: "One-stop" / ""; }
.bm-pillars .bm-section__title::before { content: "Services"; content: "Services" / ""; }
.bm-solutions .bm-section__title::before { content: "Solutions"; content: "Solutions" / ""; }
.bm-industry .bm-section__title::before { content: "For construction"; content: "For construction" / ""; }
.bm-works .bm-section__title::before { content: "Works"; content: "Works" / ""; }
.bm-reasons .bm-section__title::before { content: "Why us"; content: "Why us" / ""; }
.bm-cases .bm-section__title::before { content: "Cases"; content: "Cases" / ""; }
.bm-flow .bm-section__title::before { content: "Flow & Price"; content: "Flow & Price" / ""; }
.bm-profile .bm-section__title::before { content: "Message"; content: "Message" / ""; }
.bm-area .bm-section__title::before { content: "Area"; content: "Area" / ""; }
.bm-free .bm-section__title::before { content: "Free"; content: "Free" / ""; }
.bm-faq .bm-section__title::before { content: "FAQ"; content: "FAQ" / ""; }
.bm-updates .bm-section__title::before { content: "Blog"; content: "Blog" / ""; }

/* リード文：375px で 16px → PC で 18px。1行は全角でおよそ40文字まで（--bm-measure） */
.bm-section__lead {
	max-width: var(--bm-measure);
	color: var(--bm-color-text);
	font-size: clamp(1rem, 0.93rem + 0.3vw, 1.125rem);
	line-height: 1.9;
}

/* カード・代表あいさつ・よくある質問の本文も、1行の長さを制限する */
.bm-card p {
	max-width: var(--bm-measure);
}

.bm-more {
	font-weight: var(--bm-font-weight-bold);
}

.bm-more a::after {
	content: " →";
	content: " →" / "";
}

/* グリッド（カードの並び） */
.bm-grid {
	display: grid;
	gap: var(--bm-grid-gap);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
	.bm-grid--2,
	.bm-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.bm-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bm-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* カード：装飾は控えめに。角丸 4px（--bm-radius-card）、白の上は淡い 1px の枠、淡い背景の上は枠なし＋ごく弱い影。
   上端の線を付けるときは --bm-card-rule（2px）の1種類だけ（3本柱・循環図） */
.bm-card {
	position: relative;
	padding: var(--bm-card-padding);
	background: var(--bm-color-bg);
	border: 1px solid var(--bm-color-line-soft);
	border-radius: var(--bm-radius-card);
}

.bm-section--subtle .bm-card {
	border-color: transparent;
	box-shadow: var(--bm-shadow-xs);
}

/* 濃紺の上のカード：面をわずかに明るくし、細い線で区切る */
.bm-section--dark .bm-card,
.bm-band .bm-card {
	background: var(--bm-color-on-dark-surface);
	border-color: var(--bm-color-on-dark-line);
	color: var(--bm-color-on-primary);
}

/* カードの H3：375px で 18px（従来と同じ）→ PC で 21px */
.bm-card h3 {
	font-size: clamp(1.125rem, 1rem + 0.55vw, 1.3125rem);
	line-height: 1.5;
	word-break: auto-phrase; /* 「Webサイ／ト」のように語の途中で折り返さない */
	text-wrap: pretty;
}

.bm-card h3 a {
	color: var(--bm-color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.bm-card h3 a:hover {
	color: var(--bm-color-accent);
}

/* --------------------------------------------------------------------------
   1. ファーストビュー
   -------------------------------------------------------------------------- */
.bm-hero {
	position: relative;
	isolation: isolate;
	overflow: clip;
	align-items: center;
	gap: var(--bm-space-lg);
	padding-block: var(--bm-space-lg) var(--bm-space-xl);
	--bm-section-bg: var(--bm-color-bg-subtle);
}

/* 背景の装飾：格子線（::before）と輪の図形（::after）。パララックス①で動く */
.bm-hero::before,
.bm-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
}

.bm-hero::before {
	inset: -80px 0 -80px 0;
	background-image:
		linear-gradient(to right, var(--bm-color-deco-grid) 1px, transparent 1px),
		linear-gradient(to bottom, var(--bm-color-deco-grid) 1px, transparent 1px);
	background-size: 32px 32px;
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, var(--bm-color-mask) 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, var(--bm-color-mask) 30%, transparent 75%);
}

.bm-hero::after {
	top: 8%;
	right: -120px;
	width: 520px;
	height: 520px;
	border: 1px solid var(--bm-color-deco-line);
	border-radius: 50%;
	/* 外側の輪も細い線だけにする（面の塗りは使わない） */
	outline: 1px solid var(--bm-color-deco-line-soft);
	outline-offset: 60px;
}

.bm-hero__body {
	display: grid;
	gap: var(--bm-space-sm);
	min-width: 0;
	container-type: inline-size; /* H1 の大きさを、この列の幅でも制限する（cqi） */
}

.bm-hero__body > * {
	margin-block: 0;
}

.bm-hero__title {
	color: var(--bm-color-primary-dark);
	/* 375px で 28px（従来と同じ）→ 1280px で 60px。
	   ただし列の幅の 9.6%（cqi）を超えない：10文字の語句（「ホームページ制作から」）が1行に収まる大きさ。
	   cqi に対応していないブラウザでは1行目の指定が使われる */
	font-size: clamp(1.75rem, 0.87rem + 3.76vw, 3.75rem);
	font-size: clamp(1.75rem, min(0.87rem + 3.76vw, 9.6cqi), 3.75rem);
	line-height: 1.3;
	letter-spacing: 0.01em;
	word-break: auto-phrase;
	text-wrap: balance;
}

.bm-hero__lead {
	max-width: 34em;
	word-break: auto-phrase; /* 「制作／歴15年」のように語の途中で改行しない */
	color: var(--bm-color-text);
	font-size: 1rem;
	line-height: 1.9;
}

@media (min-width: 768px) {
	.bm-hero__lead {
		font-size: 1.0625rem;
	}
}

.bm-hero__actions {
	gap: var(--bm-space-sm);
	margin-top: var(--bm-space-xs);
}

/* スマホ（768px 未満）：2つのボタンを横に並べられるよう、左右の余白と間を少し詰める（375px で 1行に収める） */
@media (max-width: 767px) {
	.bm-hero__actions {
		gap: 12px;
	}

	.bm-section .bm-hero__actions .wp-block-button__link {
		padding-inline: 20px;
	}

	.bm-section .bm-hero__actions .wp-block-button.is-style-outline .wp-block-button__link {
		padding-inline: 18px;
	}
}

/* 「無料で相談する」に右向きの矢印（飾り。読み上げない） */
.bm-hero__actions .is-style-cta .wp-block-button__link::after {
	display: inline-block;
	margin-left: 0.5em;
	content: "→";
	content: "→" / "";
	transition: transform var(--bm-transition);
}

.bm-hero__actions .is-style-cta .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/* PC（768px 以上）：ボタンを大きくする（高さ約66px、文字 18px、最小幅 240px）。スマホは従来のまま。
   主（オレンジの塗り）と従（枠線のみ）の差はそのまま残す */
@media (min-width: 768px) {
	.bm-section .bm-hero__actions .wp-block-button__link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 240px;
		min-height: 66px;
		padding: 0.75rem 2rem;
		font-size: 1.125rem;
	}

	.bm-section .bm-hero__actions .wp-block-button.is-style-outline .wp-block-button__link {
		padding: calc(0.75rem - 2px) calc(2rem - 2px);
	}
}

/* ボタンの下の小さな一文（ブロックパターン内の通常の段落） */
.bm-hero__note {
	color: var(--bm-color-text-muted);
	font-size: var(--bm-font-size-sm);
}

.bm-hero__demo {
	min-width: 0;
}

@media (min-width: 960px) {
	.bm-hero {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		gap: var(--bm-space-xl);
		padding-block: var(--bm-space-xl) var(--bm-space-xxl);
	}
}

/* タイピング表示（H1 の上の1行。assets/js/typing.js） */
.bm-typing {
	position: relative;
	justify-self: start;
	max-width: 100%;
	padding: 0.3em 0.9em 0.3em calc(0.9em + 2ch);
	background: var(--bm-color-terminal-bg);
	border-radius: var(--bm-radius-card);
	color: var(--bm-color-terminal-text);
	font-family: var(--bm-font-mono);
	font-size: 0.875rem;
	line-height: 1.6;
	white-space: nowrap;
}

.bm-typing::before {
	position: absolute;
	left: 0.9em;
	color: var(--bm-color-terminal-ok);
	content: ">";
	content: ">" / "";
}

.bm-typing.is-ready .bm-typing__full {
	color: transparent; /* 読み上げと検索の対象のまま、幅だけ確保する */
}

.bm-typing__visual {
	position: absolute;
	top: 0.3em;
	left: calc(0.9em + 2ch);
	white-space: nowrap;
}

.bm-typing__cursor {
	display: inline-block;
	width: 0.55em;
	height: 1.1em;
	margin-left: 2px;
	background: var(--bm-color-terminal-text);
	vertical-align: -0.15em;
	animation: bm-typing-blink 1s steps(1, end) infinite;
}

.bm-typing.is-done .bm-typing__cursor {
	animation: bm-typing-blink 1s steps(1, end) 5; /* 打ち終わってから約5秒で点滅を止める */
}

@keyframes bm-typing-blink {
	50% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   2. こんなお悩み
   -------------------------------------------------------------------------- */
/* 吹き出しは bm-site-core のブロック bm/problem-voices（見た目は blocks/problem-voices/style.css）。
   PC（1100px 以上）で吹き出しを配置したとき（is-enhanced）は、範囲の下側に説明が伸びる分（約110px）を取ってあるため、
   その分（80px）このセクションの下の余白を詰める */
@media (min-width: 1100px) {
	.bm-problems:has(.bm-voices.is-enhanced) {
		padding-bottom: max(3rem, calc(var(--bm-section-space) - 80px));
	}
}

/* 置き換え前の本文（カード4枚）の見た目。setup-content で本文を書き換えるまで残す */
.bm-problem {
	font-weight: var(--bm-font-weight-bold);
	line-height: 1.7;
	word-break: auto-phrase; /* 「分か／らない」のように語の途中で改行しない */
}

/* --------------------------------------------------------------------------
   3. 一社で完結（循環図。ブロック bm/cycle。案A「輪」。試作 cycle-mock、2026-11-30 採用）
   - Web の領域（1 Webサイト・2 計測・5 改善）＝ネイビー、業務の領域（3 業務の仕組み・4 分析）＝青緑（--bm-color-domain-*）。
   - 1200px 以上：左に見出し・リード文・凡例、右に輪。カードを開くと、カードの位置から左右の列全体に広がる（cycle.js）。
   - 1199px 以下：縦に並べ、タップでカードの下に開く。
   - 動きは開閉だけ（スクロールの演出は入れない）。prefers-reduced-motion: reduce のときは動かさない。
   -------------------------------------------------------------------------- */
.bm-cycle-section {
	--bm-cycle-bg: var(--bm-color-bg-subtle);
	--bm-cycle-line: rgba(20, 40, 75, 0.28);
	--bm-cycle-panel-bg: var(--bm-color-bg);
	color: var(--bm-color-text);
}
.bm-cycle-layout > * { margin-block: 0; }
.bm-cycle-layout__head > * + * { margin-top: 1.25rem; }
.bm-cycle-layout__head > .bm-section__title + * { margin-top: 1.5rem; }
.bm-cycle-section .bm-cycle p { margin: 0; line-height: 1.6; }
.bm-cycle-section .bm-cycle .bm-cycle__detail-title { line-height: 1.5; }
.bm-cycle-section .bm-cycle .bm-cycle__detail-text { line-height: 1.95; }
.bm-cycle-section .bm-cycle .bm-cycle__detail-title, .bm-cycle-section .bm-cycle .bm-cycle__detail-text { word-break: auto-phrase; text-wrap: pretty; }

/* 図 */
.bm-cycle { position: relative; margin-top: clamp(2.5rem, 1.4rem + 3vw, 4rem); color: var(--bm-color-primary); }
.bm-cycle-section .bm-cycle ol.bm-cycle__list { margin: 0; padding: 0; border: 0; list-style: none; counter-reset: none; }
.bm-cycle-section .bm-cycle ol.bm-cycle__list > li { margin: 0; padding: 0; border: 0; line-height: inherit; }
.bm-cycle-section .bm-cycle ol.bm-cycle__list > li::before,
.bm-cycle-section .bm-cycle ol.bm-cycle__list > li::after { content: none; display: none; }

/* カード（ボタン） */
.bm-cycle__card {
	display: grid; justify-items: start; gap: 4px; width: 100%;
	margin: 0; padding: 20px 20px 18px; border: 0; border-top: 1px solid var(--bm-cycle-line); border-radius: 0;
	background: var(--bm-cycle-bg); color: var(--bm-color-text); font: inherit; text-align: left; cursor: pointer;
	transition: border-color 0.3s ease, background-color 0.3s ease;
}
.bm-cycle__num {
	font-family: var(--bm-font-en); font-weight: 500; font-size: 2.75rem; line-height: 1; letter-spacing: var(--bm-tracking-wide);
	color: transparent; -webkit-text-stroke: 1px var(--bm-color-primary); font-variant-numeric: tabular-nums;
	transition: color 0.4s ease;
}
.bm-cycle__en {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
	font-family: var(--bm-font-en); font-size: 0.8125rem; font-weight: 600; letter-spacing: var(--bm-tracking-wider);
	text-transform: uppercase; color: var(--bm-color-text-muted);
}
.bm-cycle__en::before { width: 6px; height: 6px; background: var(--bm-color-domain-web); content: ""; }
.bm-cycle__item--biz .bm-cycle__en::before { background: var(--bm-color-domain-biz); }
.bm-cycle__name { color: var(--bm-color-primary-dark); font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.bm-cycle__item--biz .bm-cycle__name { color: var(--bm-color-domain-biz); }
.bm-cycle__desc { color: var(--bm-color-text-muted); font-size: 0.9375rem; line-height: 1.7; }
/* 言葉の途中で切らない：文節で折り返し（auto-phrase）、行の長さをそろえる（balance） */
.bm-cycle__name, .bm-cycle__desc { word-break: auto-phrase; text-wrap: balance; }
.bm-cycle__hint {
	margin-top: 6px; padding-right: 22px; color: var(--bm-color-primary); font-size: 0.8125rem; font-weight: 700;
	background: linear-gradient(currentColor, currentColor) right center / 14px 1px no-repeat;
}
.bm-cycle__card:hover,
.bm-cycle__item.is-active .bm-cycle__card { border-top-color: var(--bm-color-primary); }
.bm-cycle__card:hover .bm-cycle__num,
.bm-cycle__item.is-active .bm-cycle__num { color: var(--bm-color-primary); }
.bm-cycle__item--biz .bm-cycle__card:hover,
.bm-cycle__item--biz.is-active .bm-cycle__card { border-top-color: var(--bm-color-domain-biz); }
.bm-cycle__card:focus-visible { outline: 3px solid var(--bm-color-focus); outline-offset: 4px; }

/* 詳しい内容（最初から HTML にある。閉じている間は見た目だけ隠す） */
/* JavaScript が動くときだけ隠す（.bm-cycle--js）。動かないときは、スマホは全文、PC は各ページへのリンクを出す */
.bm-cycle--js .bm-cycle__detail { visibility: hidden; opacity: 0; pointer-events: none; }
.bm-cycle--js .bm-cycle__detail.is-shown { visibility: visible; opacity: 1; pointer-events: auto; }
.bm-cycle:not(.bm-cycle--js) .bm-cycle__close, .bm-cycle:not(.bm-cycle--js) .bm-cycle__next, .bm-cycle:not(.bm-cycle--js) .bm-cycle__hint { display: none; }
.bm-cycle__detail-inner { display: grid; gap: 14px; align-content: start; }
.bm-cycle__detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.bm-cycle__detail-head .bm-cycle__num { font-size: 4rem; color: transparent; }
.bm-cycle__detail-head .bm-cycle__en { margin: 0; }
.bm-cycle__tag { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 700; color: var(--bm-color-text-muted); }
.bm-cycle__tag-sep { display: inline-block; width: 1px; height: 0.9em; background: var(--bm-cycle-line); }
.bm-cycle__detail-title {
	max-width: 30em; color: var(--bm-color-primary-dark); font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); font-weight: 700; line-height: 1.5;
	word-break: auto-phrase;
}
.bm-cycle__detail-text { max-width: 40em; font-size: 1rem; line-height: 1.95; }
.bm-cycle__detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 6px; }
.bm-cycle-section .bm-cycle .bm-cycle__link {
	display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px;
	border: 1px solid var(--bm-color-primary); background: var(--bm-color-primary); color: var(--bm-color-on-primary);
	font-weight: 700; text-decoration: none; transition: background-color 0.2s ease;
}
.bm-cycle-section .bm-cycle .bm-cycle__link::after { width: 16px; height: 1px; background: currentColor; content: ""; }
.bm-cycle-section .bm-cycle .bm-cycle__link:hover { background: var(--bm-color-primary-dark); }
.bm-cycle__next, .bm-cycle__close {
	min-height: 44px; margin: 0; padding: 0 4px; border: 0; background: none; color: var(--bm-color-primary);
	font: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer;
}
.bm-cycle__next span { margin-right: 6px; font-family: var(--bm-font-en); font-weight: 600; letter-spacing: var(--bm-tracking-wider); text-transform: uppercase; }
.bm-cycle__next:hover, .bm-cycle__close:hover { text-decoration: underline; text-underline-offset: 4px; }
.bm-cycle__close { display: inline-flex; align-items: center; gap: 10px; }
.bm-cycle__close-x { position: relative; width: 14px; height: 14px; }
.bm-cycle__close-x::before, .bm-cycle__close-x::after { position: absolute; top: 50%; left: 0; width: 14px; height: 1px; background: currentColor; content: ""; transform: rotate(45deg); }
.bm-cycle__close-x::after { transform: rotate(-45deg); }
.bm-cycle__next:focus-visible, .bm-cycle__close:focus-visible, .bm-cycle-section .bm-cycle .bm-cycle__link:focus-visible { outline: 3px solid var(--bm-color-focus); outline-offset: 3px; }

/* 凡例 */
.bm-cycle-section ul.bm-cycle__legend { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 32px 0 0; padding: 0; border: 0; list-style: none; }
.bm-cycle-section ul.bm-cycle__legend > li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; border: 0; font-size: 0.875rem; font-weight: 700; color: var(--bm-color-text); }
.bm-cycle-section ul.bm-cycle__legend > li::before { position: static; width: 6px; height: 6px; margin: 0; border: 0; border-radius: 0; background: var(--bm-color-domain-web); content: ""; transform: none; }
.bm-cycle-section ul.bm-cycle__legend > li.bm-cycle__legend-item--biz::before { background: var(--bm-color-domain-biz); }
.bm-cycle__legend span { color: var(--bm-color-text-muted); font-weight: 400; }

.bm-cycle__center-en { display: block; font-family: var(--bm-font-en); font-size: 0.75rem; font-weight: 600; letter-spacing: var(--bm-tracking-wider); text-transform: uppercase; color: var(--bm-color-text-muted); }

/* ----- スマホ・タブレット（1199px 以下）：縦に並べ、タップでカードの下に開く ----- */
@media (max-width: 1199px) {
	.bm-cycle__ring, .bm-cycle__center, .bm-cycle__chev { display: none; }
	.bm-cycle__list { position: relative; display: grid; }
	.bm-cycle__card { grid-template-columns: 4.25rem 1fr; column-gap: 12px; padding: 20px 0 18px; }
	.bm-cycle__card > * { grid-column: 2; }
	.bm-cycle__card > .bm-cycle__num { grid-column: 1; grid-row: 1 / span 4; font-size: 2.5rem; }
	.bm-cycle__card > .bm-cycle__en { margin-top: 0; }
	.bm-cycle__hint { margin-top: 2px; }
	.bm-cycle__card[aria-expanded="true"] .bm-cycle__hint { background-size: 0 0; }
	.bm-cycle__card[aria-expanded="true"] .bm-cycle__hint::after { content: "（閉じる）"; font-weight: 400; }
	.bm-cycle--js .bm-cycle__detail { height: 0; overflow: hidden; }
	.bm-cycle--js .bm-cycle__detail.is-shown { height: auto; }
	.bm-cycle__detail-inner { padding: 4px 0 24px calc(4.25rem + 12px); }
	.bm-cycle__detail-head, .bm-cycle__mini { display: none; }
	.bm-cycle__detail-title { font-size: 1.125rem; }
	.bm-cycle__detail-text { font-size: 0.9375rem; }
	.bm-cycle__detail .bm-cycle__close { margin: -12px 0 16px calc(4.25rem + 8px); }
	.bm-cycle-section .bm-cycle .bm-cycle__link { width: 100%; justify-content: space-between; }
	/* 左に縦の細い線（番号をつなぐ）、最後に「↺ 改善から、また次の入口へ」 */
	.bm-cycle .bm-cycle__list::before { position: absolute; top: 72px; bottom: 40px; left: 1.25rem; width: 1px; background: var(--bm-cycle-line); content: ""; }
	.bm-cycle .bm-cycle__card > .bm-cycle__num { position: relative; z-index: 1; padding-bottom: 6px; background: var(--bm-cycle-bg); }
	.bm-cycle__loop-label { margin-top: 16px; padding: 14px 0 0 calc(4.25rem + 12px); border-top: 1px solid var(--bm-cycle-line); font-weight: 700; color: var(--bm-color-primary-dark); }
	.bm-cycle__loop-label .bm-cycle__center-en { margin-bottom: 2px; }
	.bm-cycle__loop-label::before { float: left; margin-left: calc(-4.25rem - 12px); font-family: var(--bm-font-en); font-size: 1.5rem; line-height: 1.2; content: "↺"; content: "↺" / ""; }
}

/* ----- PC（1200px 以上）：左に見出し・リード文・凡例、右に輪。図の上に並べ、開くとカードの位置から図全体に広がる ----- */
@media (min-width: 1200px) {
	.bm-cycle__detail {
		/* 位置は JavaScript で計算しない：輪の列（.bm-cycle）を基準に、左右の列の全体（100cqw、.bm-cycle-layout がコンテナ）に広げ、上下の中央に置く。
		   .bm-cycle の右端は .bm-cycle-layout の右端と同じなので、左端は「.bm-cycle の幅 − 全体の幅」 */
		position: absolute; inset: auto; left: calc(100% - 100cqw); top: 50%; translate: 0 -50%; width: 100cqw; height: auto; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: clamp(40px, 6vw, 96px);
		max-height: 100%; overflow: auto;
		padding: 36px clamp(40px, 4.5vw, 64px); background: var(--bm-color-bg);
		border-top: 2px solid var(--bm-color-primary);
		box-shadow: var(--bm-shadow-md);
	}
	.bm-cycle__item--biz .bm-cycle__detail { border-top-color: var(--bm-color-domain-biz); }
	.bm-cycle:not(.bm-cycle--js) .bm-cycle__detail { left: var(--x); top: calc(var(--y) + 58px); translate: -50% 0; display: block; width: clamp(240px, 21vw, 288px); height: auto; padding: 0 20px 18px; background: var(--bm-cycle-bg); border: 0; box-shadow: none; color: inherit; z-index: 1; }
	.bm-cycle:not(.bm-cycle--js) .bm-cycle__detail-inner > :not(.bm-cycle__detail-actions), .bm-cycle:not(.bm-cycle--js) .bm-cycle__mini { display: none; }
	.bm-cycle-section .bm-cycle:not(.bm-cycle--js) .bm-cycle__link { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: var(--bm-color-accent); font-size: 0.875rem; text-decoration: underline; }
	.bm-cycle-section .bm-cycle:not(.bm-cycle--js) .bm-cycle__link::after { display: inline; width: auto; height: auto; background: none; content: "\00a0→"; content: "\00a0→" / ""; }
	.bm-cycle__detail-inner { max-width: 720px; }
	.bm-cycle__close { position: absolute; top: 20px; right: 24px; }
	.bm-cycle__mini { display: block; width: 220px; height: auto; color: var(--bm-color-primary); overflow: visible; }
	.bm-cycle__mini-num { fill: var(--bm-color-text-muted); font-family: var(--bm-font-en); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }
	.bm-cycle__mini-num.is-on { fill: currentColor; font-size: 15px; }
	.bm-cycle__item--biz .bm-cycle__mini { color: var(--bm-color-domain-biz); }

	/* 案A：輪 */
	/* 図の高さ：画面の高さに合わせる（固定ヘッダーの下に、輪と凡例が1画面で収まるように）。
	   1280×720 で約 500px、1366×768 で約 548px、高い画面でも 620px まで。輪は高さに合わせて横長の楕円のまま伸び縮みする */
	/* 2列：左 約35%（見出し・リード文・凡例）、右 約65%（輪）。輪の高さは、セクションの上端から1画面に収まる高さ */
	.bm-cycle-section { --bm-cycle-pad: clamp(40px, 3.5vw, 64px); padding-top: var(--bm-cycle-pad); padding-bottom: var(--bm-cycle-pad); }
	.bm-cycle-layout { position: relative; container-type: inline-size; display: grid; grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); grid-template-rows: 1fr auto; column-gap: clamp(32px, 3vw, 56px); }
	.bm-cycle-layout__head { grid-column: 1; grid-row: 1; align-self: center; }
	.bm-cycle-layout > .bm-cycle { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
	.bm-cycle-section .bm-cycle-layout > ul.bm-cycle__legend { grid-column: 1; grid-row: 2; flex-direction: column; gap: 8px; margin: 24px 0 0; }
	.bm-cycle-layout__head .bm-section__lead { font-size: 1rem; }
	.bm-cycle-layout__head .bm-section__title { font-size: clamp(1.75rem, 0.9rem + 1.3vw, 2.375rem); }
	.bm-cycle-layout__head, .bm-cycle-layout > .bm-cycle__legend { transition: opacity 0.3s ease; }
	.bm-cycle-layout:has(.bm-cycle.is-open) > .bm-cycle-layout__head, .bm-cycle-layout:has(.bm-cycle.is-open) > .bm-cycle__legend { opacity: 0; }
	.bm-cycle { height: clamp(440px, calc(100svh - var(--bm-header-height) - 2 * var(--bm-cycle-pad) - 24px), 600px); }
	.bm-cycle .bm-cycle__ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--bm-cycle-line); }
	/* 矢印：引き伸ばさない細い「＞」。上と右の線を 45° 回して、接線の向き（--a）に向ける */
	.bm-cycle .bm-cycle__chev { position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px; border-top: 1.5px solid var(--bm-color-primary); border-right: 1.5px solid var(--bm-color-primary); transform: translate(-50%, -50%) rotate(var(--a)) rotate(45deg); pointer-events: none; }
	.bm-cycle .bm-cycle__center {
		position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
		display: grid; place-content: center; width: clamp(120px, 20svh, 170px); aspect-ratio: 1; border: 1px solid var(--bm-cycle-line); border-radius: 50%;
		color: var(--bm-color-primary-dark); font-size: 1.375rem; font-weight: 700; line-height: 1.4; text-align: center;
	}
	.bm-cycle .bm-cycle__center-en { margin-bottom: 4px; }
	/* カードは .bm-cycle を基準に置く（li は位置を持たない。開いた面の基準を .bm-cycle にそろえるため） */
	.bm-cycle .bm-cycle__item { position: static; }
	.bm-cycle .bm-cycle__card { position: absolute; z-index: 1; left: var(--x); top: var(--y); width: clamp(240px, 21vw, 288px); transform: translate(-50%, -50%); }
	/* カードを低くする：番号を小さく、縦の間隔を詰める（説明文の幅は変えない） */
	.bm-cycle .bm-cycle__card { gap: 2px; padding: 12px 20px 10px; }
	.bm-cycle .bm-cycle__card > .bm-cycle__num { font-size: 2.125rem; }
	.bm-cycle .bm-cycle__card > .bm-cycle__en { margin-top: 4px; }
	.bm-cycle .bm-cycle__card > .bm-cycle__name { font-size: 1.125rem; }
	.bm-cycle .bm-cycle__card > .bm-cycle__hint { margin-top: 2px; }
	.bm-cycle .bm-cycle__item .bm-cycle__card { box-shadow: 0 0 0 12px var(--bm-cycle-bg); }
	/* 開いている間は、面の外の輪とカードを見えなくする（途中で切れて見えないように） */
	.bm-cycle .bm-cycle__ring, .bm-cycle .bm-cycle__center, .bm-cycle .bm-cycle__chev, .bm-cycle .bm-cycle__card { transition: opacity 0.3s ease; }
	.bm-cycle.is-open .bm-cycle__ring, .bm-cycle.is-open .bm-cycle__center, .bm-cycle.is-open .bm-cycle__chev, .bm-cycle.is-open .bm-cycle__card { opacity: 0; }
	.bm-cycle__loop-label { display: none; }

}

@media (prefers-reduced-motion: reduce) {
	.bm-cycle__card, .bm-cycle__num { transition: none; }
}

/* --------------------------------------------------------------------------
   4. サービス（3本柱）・5. 課題別
   -------------------------------------------------------------------------- */
.bm-pillar {
	border-top: var(--bm-card-rule) solid var(--bm-color-primary);
}

.bm-pillar__sub {
	margin-top: var(--bm-space-sm) !important;
	color: var(--bm-color-text-muted);
	font-size: var(--bm-font-size-sm);
	font-weight: var(--bm-font-weight-bold);
}

.bm-link-list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--bm-font-size-sm);
}

.bm-link-list li {
	padding-block: 0.45rem;
	border-top: 1px solid var(--bm-color-border);
}

.bm-link-list a::before {
	content: "→ ";
	content: "→ " / "";
}

.bm-solution__answer {
	color: var(--bm-color-text);
	font-size: var(--bm-font-size-sm);
}

/* bm/post-list のカード表示（公開済みの投稿があるとき） */
.bm-post-list__items {
	display: grid;
	gap: var(--bm-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bm-post-list--cards .bm-post-list__items {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.bm-post-card {
	position: relative;
	height: 100%;
	padding: var(--bm-space-sm) var(--bm-space-md);
	background: var(--bm-color-bg);
	border: 1px solid var(--bm-color-line-soft);
	border-radius: var(--bm-radius-card);
}

.bm-section--subtle .bm-post-card {
	border-color: transparent;
	box-shadow: var(--bm-shadow-xs);
}

.bm-post-card > * {
	margin: 0;
}

.bm-post-card__meta {
	color: var(--bm-color-text-muted);
	font-size: var(--bm-font-size-sm);
}

.bm-post-card__title {
	font-size: 1rem;
	line-height: 1.6;
}

.bm-post-card__link {
	color: var(--bm-color-primary);
	text-decoration: none;
}

.bm-post-card__link::after {
	position: absolute;
	inset: 0;
	content: "";
}

.bm-post-card__link:hover {
	text-decoration: underline;
}

.bm-post-card:focus-within {
	outline: 3px solid var(--bm-color-focus);
	outline-offset: 2px;
}

.bm-post-card__link:focus-visible {
	outline: none;
}

.bm-post-card__excerpt {
	margin-top: var(--bm-space-xs) !important;
	color: var(--bm-color-text-muted);
	font-size: var(--bm-font-size-sm);
}

/* --------------------------------------------------------------------------
   6. 建設業の帯・13. 最後のCTA（ネイビーの帯）
   -------------------------------------------------------------------------- */
.bm-section--dark .bm-section__title,
.bm-band .bm-section__title {
	color: var(--bm-color-on-primary);
}

.bm-section--dark .bm-section__title::before,
.bm-band .bm-section__title::before {
	color: var(--bm-color-on-primary-muted);
}

.bm-section--dark .bm-section__lead,
.bm-band .bm-section__lead {
	color: var(--bm-color-on-primary);
}

.bm-band__list {
	margin: 0;
	padding-left: 1.25em;
	color: var(--bm-color-on-primary-muted);
}

.bm-band__list li + li {
	margin-top: 0.35rem;
}

.bm-section.bm-section--dark .wp-block-button.is-style-outline .wp-block-button__link,
.bm-section.bm-band .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--bm-color-on-primary);
	color: var(--bm-color-on-primary);
}

.bm-section.bm-section--dark .wp-block-button.is-style-outline .wp-block-button__link:hover,
.bm-section.bm-band .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--bm-color-on-primary);
	color: var(--bm-color-primary);
}

/* 建設業の帯の背景の図形（パララックス③で動く） */
.bm-industry::before,
.bm-industry::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
}

.bm-industry::before {
	top: -40%;
	right: -6%;
	width: 46%;
	height: 180%;
	background-image: repeating-linear-gradient(135deg, var(--bm-color-on-dark-hatch) 0 2px, transparent 2px 22px);
	-webkit-mask-image: linear-gradient(to left, var(--bm-color-mask) 20%, transparent);
	mask-image: linear-gradient(to left, var(--bm-color-mask) 20%, transparent);
}

.bm-industry::after {
	right: 10%;
	bottom: -120px;
	width: 260px;
	height: 260px;
	border: 1px solid var(--bm-color-on-dark-line);
	border-radius: 50%;
}

/* 1列（959px 以下）では、円が右の図の枠に重なるので出さない */
@media (max-width: 959px) {
	.bm-industry::after {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   8. 選ばれる理由
   -------------------------------------------------------------------------- */
.bm-reasons__list {
	counter-reset: bm-reason;
}

.bm-reason {
	padding-left: calc(var(--bm-card-padding) + 3rem);
	counter-increment: bm-reason;
}

.bm-reason::before {
	position: absolute;
	top: var(--bm-card-padding);
	left: var(--bm-card-padding);
	color: var(--bm-color-primary);
	content: counter(bm-reason, decimal-leading-zero);
	font-family: var(--bm-font-en);
	font-size: 1.75rem;
	font-weight: 600;
	letter-spacing: var(--bm-tracking-wide);
	line-height: 1.2;
}

/* --------------------------------------------------------------------------
   9. 流れ
   -------------------------------------------------------------------------- */
.bm-steps {
	display: grid;
	gap: var(--bm-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: bm-step;
}

.bm-steps li {
	position: relative;
	padding: var(--bm-space-sm) var(--bm-space-sm) var(--bm-space-sm) 3.5rem;
	background: var(--bm-color-bg-subtle);
	border-radius: var(--bm-radius-card);
	counter-increment: bm-step;
	font-size: var(--bm-font-size-sm);
}

.bm-steps li::before {
	position: absolute;
	top: var(--bm-space-sm);
	left: var(--bm-space-sm);
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	background: var(--bm-color-primary);
	border-radius: 50%;
	color: var(--bm-color-on-primary);
	content: counter(bm-step);
	font-size: 0.875rem;
	font-weight: var(--bm-font-weight-bold);
}

.bm-steps strong {
	display: block;
	color: var(--bm-color-primary);
	font-size: 1rem;
}

@media (min-width: 960px) {
	.bm-steps {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.bm-steps li {
		padding: 3.25rem var(--bm-space-sm) var(--bm-space-sm);
	}
}

.bm-section__actions {
	gap: var(--bm-space-sm);
}

/* --------------------------------------------------------------------------
   10. 代表あいさつ
   -------------------------------------------------------------------------- */
.bm-profile__body {
	max-width: 46em;
	padding: var(--bm-space-lg) var(--bm-space-md);
}

.bm-profile__name {
	color: var(--bm-color-primary);
	font-size: 1.125rem;
	font-weight: var(--bm-font-weight-bold);
}

.bm-profile__career {
	color: var(--bm-color-text-muted);
	font-size: var(--bm-font-size-sm);
}

/* --------------------------------------------------------------------------
   11. よくある質問（core/details）
   -------------------------------------------------------------------------- */
.bm-faq__list {
	display: grid;
	gap: var(--bm-space-xs);
	max-width: 52em;
}

/* --------------------------------------------------------------------------
   12. ブログ・お知らせ
   -------------------------------------------------------------------------- */
.bm-updates__col {
	display: grid;
	gap: var(--bm-space-sm);
	align-content: start;
}

.bm-updates__col > * {
	margin: 0;
}

.bm-updates__title {
	padding-bottom: var(--bm-space-xs);
	border-bottom: 2px solid var(--bm-color-primary);
	font-size: clamp(1.125rem, 1rem + 0.55vw, 1.3125rem);
}

.bm-banner {
	display: grid;
	gap: var(--bm-space-xs);
	padding: var(--bm-card-padding);
	background: var(--bm-color-bg);
	border-top: var(--bm-card-rule) solid var(--bm-color-primary);
	border-radius: var(--bm-radius-card);
	box-shadow: var(--bm-shadow-xs);
}

.bm-banner > * {
	margin: 0;
}

.bm-banner__title {
	color: var(--bm-color-primary);
	font-weight: var(--bm-font-weight-bold);
}

@media (min-width: 768px) {
	.bm-banner {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		column-gap: var(--bm-space-md);
	}

	.bm-banner .wp-block-buttons {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
}

/* --------------------------------------------------------------------------
   ボタン（トップページのコアのボタンブロック）
   -------------------------------------------------------------------------- */
.bm-section .wp-block-button__link {
	padding: 0.85rem 1.75rem;
	border-radius: var(--bm-radius-md);
	font-size: 1rem;
	font-weight: var(--bm-font-weight-bold);
	text-decoration: none;
}

.bm-section .wp-block-button.is-style-outline .wp-block-button__link {
	padding: calc(0.85rem - 2px) calc(1.75rem - 2px);
	background: transparent;
	border: 2px solid var(--bm-color-primary);
	color: var(--bm-color-primary);
}

.bm-section .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--bm-color-primary);
	color: var(--bm-color-on-primary);
}

.bm-section .wp-block-button__link:focus-visible {
	outline: 3px solid var(--bm-color-focus);
	outline-offset: 3px;
}

.bm-section.bm-section--dark .wp-block-button__link:focus-visible,
.bm-section.bm-band .wp-block-button__link:focus-visible {
	outline-color: var(--bm-color-on-primary);
}

/* ==========================================================================
   design-v2 段階6-b：トップページのセクションに型を当てたときの組み方（型の見た目は types.css）
   ========================================================================== */

/* 6 建設業：左に文章・解決例のリンク・ボタン、右に工事標示板の仕組み（横のステップを、濃紺の上で縦に） */
.bm-industry__grid {
	display: grid;
	gap: 40px;
	align-items: center;
}

.bm-industry__grid > * {
	margin: 0 !important;
}

.bm-industry__text > * {
	margin-block: 0;
}

.bm-industry__text > * + * {
	margin-top: 20px;
}

.bm-section .bm-industry__links {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.bm-section .bm-industry__links > li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.bm-section .bm-industry__links > li::before {
	content: none;
}

.bm-section .bm-industry__links a {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	color: var(--bm-color-on-primary);
	font-weight: 700;
	text-decoration: none;
}

.bm-section .bm-industry__links a::after {
	flex-shrink: 0;
	font-family: var(--bm-font-en);
	content: "→";
	content: "→" / "";
	transition: transform var(--bm-transition);
}

.bm-section .bm-industry__links a:hover::after {
	transform: translateX(3px);
}

.bm-industry .is-style-bm-steps {
	margin: 0;
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.bm-industry .is-style-bm-steps > li {
	color: var(--bm-color-on-primary-muted, #c8d3e0);
}

.bm-industry .is-style-bm-steps > li strong {
	color: var(--bm-color-on-primary);
}

.bm-industry .is-style-bm-steps > li::before {
	background: var(--bm-color-primary);
	border-color: var(--bm-color-on-primary);
	color: var(--bm-color-on-primary);
}

.bm-industry .is-style-bm-steps > li::after {
	background: rgba(255, 255, 255, 0.35);
}

@media (min-width: 960px) {
	.bm-industry__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 72px;
	}

	/* 帯の中では、ステップを縦に並べる */
	.bm-industry .is-style-bm-steps {
		grid-auto-columns: auto;
		grid-auto-flow: row;
		gap: 0;
	}

	.bm-industry .is-style-bm-steps > li {
		padding: 10px 0 28px 66px;
	}

	.bm-industry .is-style-bm-steps > li:last-child {
		padding-bottom: 0;
	}

	.bm-industry .is-style-bm-steps > li::after {
		top: 48px;
		right: auto;
		bottom: 0;
		left: 24px;
		width: 1px;
		height: auto;
	}
}

/* 9 流れと料金：料金カードの小見出し */
.bm-flow__sub {
	margin: 24px 0 0 !important;
	color: var(--bm-color-primary-dark);
	font-size: var(--bm-font-size-lg);
}

@media (max-width: 767px) {
	.bm-flow .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.bm-flow .wp-block-buttons > .wp-block-button,
	.bm-flow .wp-block-buttons .wp-block-button__link {
		width: 100%;
	}
}

/* 10 代表あいさつ：左に大きな引用文、右に年表 */
.bm-profile__grid {
	display: grid;
	gap: 48px;
}

.bm-profile__grid > * {
	margin: 0 !important;
}

@media (min-width: 960px) {
	.bm-profile__grid {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		gap: 80px;
		align-items: end;
	}
}

/* 12 発信：ブログとお知らせを細い線の一覧の2列に。NAP 診断は細い線の帯 */
.bm-updates__lines {
	display: grid;
	gap: 48px;
}

.bm-updates__lines > * {
	margin: 0 !important;
}

.bm-updates__lines .bm-updates__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin: 0 0 14px !important;
	font-size: var(--bm-font-size-lg);
}

.bm-updates__lines .bm-updates__head a {
	color: var(--bm-color-primary);
	font-size: var(--bm-font-size-sm);
	text-decoration: none;
}

.bm-updates__lines .bm-updates__head a::after {
	margin-left: 8px;
	font-family: var(--bm-font-en);
	content: "→";
	content: "→" / "";
}

.bm-nap-line {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 32px;
	margin-top: 24px !important;
	padding: 24px 0;
	border-top: 1px solid rgba(20, 40, 75, 0.32);
	border-bottom: 1px solid var(--bm-color-line-soft);
}

.bm-nap-line > * {
	margin: 0 !important;
}

.bm-nap-line .bm-nap-line__title {
	color: var(--bm-color-primary-dark);
	font-size: 1.0625rem;
	font-weight: 700;
}

.bm-nap-line .bm-nap-line__text {
	color: var(--bm-color-text-muted);
	font-size: 0.9375rem;
}

@media (min-width: 960px) {
	.bm-updates__lines {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 64px;
	}
}

/* 13 最後の CTA：下層ページの下部の CTA と同じネイビーの帯（見た目は pages.css の .cta-band。patterns/front-cta.php）
   - 帯の上の余白：前のセクションに下の余白があるので、帯はすぐ下に付ける（下層の「幅いっぱいのセクションの後」と同じ扱い）。
   - 1200px 以上の白抜きの英字：本文のブロックには data-bg-word を付けられないので、ここで文字を指定する（作りは pages.css と同じ）。
   - ブロックのボタン・一覧の既定の余白を、下層の帯（a 要素・ul）と同じにする。 */
.bm-front > .bm-final-cta.cta-band {
	margin-top: 0;
}

@media (min-width: 1200px) {
	.bm-final-cta.cta-band::after {
		position: absolute;
		top: 0;
		right: max(var(--bm-gutter), calc((100% - var(--bm-width-wide)) / 2));
		bottom: 0;
		z-index: 0;
		margin-right: -0.035em;
		display: flex;
		align-items: center;
		padding-bottom: 0.1em;
		color: transparent;
		font-family: var(--bm-font-en);
		font-size: 200px;
		font-weight: 600;
		line-height: 1;
		white-space: nowrap;
		pointer-events: none;
		-webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.14);
		content: "CONTACT";
		content: "CONTACT" / "";
	}
}

.bm-final-cta .cta-band__buttons,
.bm-final-cta .cta-band__cta {
	display: block;
	width: 100%;
	margin: 0;
}

.bm-final-cta .cta-band__notes {
	margin: 16px 0 0;
	padding: 0;
}

/* 実績：詳しく見るリンクは、最後の区切りから少し離す */
.bm-works .is-style-bm-case .bm-works-featured__more {
	margin-top: 24px !important;
}

/* 実績の一覧へのリンク */
.bm-works .bm-works-featured__list {
	margin: 0 !important;
}

/* ==========================================================================
   パララックス（控えめな奥行きの演出。CLAUDE.md §8-1）
   --------------------------------------------------------------------------
   - CSS のスクロール連動アニメーションだけ（JavaScript なし）。対応していないブラウザでは動かないだけ。
   - 動かすのは背景の装飾と図の装飾だけで、transform と opacity のみ。文字・ボタンは動かさない。
   - 文字は最初から表示している（装飾の opacity だけを変える）。
   - prefers-reduced-motion: reduce のときは何もしない（no-preference のときだけ有効）。
   ========================================================================== */
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {

		/* ① ファーストビューの背景：ページのスクロールに対して、格子線はゆっくり下へ、輪は上へずれる */
		.bm-hero::before {
			animation: bm-parallax-down linear both;
			animation-timeline: scroll(root block);
			animation-range: 0 100vh;
		}

		.bm-hero::after {
			animation: bm-parallax-up linear both;
			animation-timeline: scroll(root block);
			animation-range: 0 100vh;
		}

		/* ③ 建設業の帯の背景：帯が画面を通り過ぎる間に、斜線と輪がゆっくり逆向きにずれる */
		.bm-industry {
			view-timeline: --bm-industry block;
		}

		.bm-industry::before {
			animation: bm-parallax-band-a linear both;
			animation-timeline: --bm-industry;
		}

		.bm-industry::after {
			animation: bm-parallax-band-b linear both;
			animation-timeline: --bm-industry;
		}
	}
}

@keyframes bm-parallax-down {
	from { transform: translateY(0); }
	to { transform: translateY(64px); }
}

@keyframes bm-parallax-up {
	from { transform: translateY(0); }
	to { transform: translateY(-96px); }
}

@keyframes bm-parallax-band-a {
	from { transform: translateY(-48px); }
	to { transform: translateY(48px); }
}

@keyframes bm-parallax-band-b {
	from { transform: translateY(60px); }
	to { transform: translateY(-60px); }
}

/* ==========================================================================
   原稿 top-v1（2026-12-01）の並べ方
   ========================================================================== */

/* 実績の数字の帯（ブロック bm/stats）：白の帯に、細い線で区切った4つの数字。PC は4列、スマホは2列×2。
   数字は英字の書体（ブロックの style.css）。オレンジは使わない。動き（カウントアップ）は入れない（6-d で検討） */
.bm-section.bm-numbers {
	padding-block: clamp(32px, 1.5rem + 2vw, 56px);
	--bm-section-bg: var(--bm-color-bg);
}

.bm-numbers .bm-stats {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(16px, 3vw, 32px);
	margin: 0;
}

.bm-numbers .bm-stats .bm-stats__item {
	min-width: 0;
	padding: 20px 0 22px;
	border-top: 1px solid rgba(20, 40, 75, 0.32);
	border-bottom: 0;
}

.bm-numbers .bm-stats.bm-stats .bm-stats__num {
	font-size: clamp(2.25rem, 1.55rem + 2.8vw, 4rem);
	white-space: nowrap;
}

.bm-numbers .bm-stats.bm-stats .bm-stats__label {
	margin-top: 10px;
	color: var(--bm-color-text);
	font-size: var(--bm-font-size-sm);
	font-weight: 400;
	line-height: 1.7;
}

@media (min-width: 960px) {
	.bm-numbers .bm-stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.bm-numbers .bm-stats .bm-stats__item {
		padding: 28px 0 8px;
	}
}

/* お悩み：左右の2列（濃紺の上） */
.bm-problem-cols {
	display: grid;
	gap: 24px;
}

.bm-problem-cols > .wp-block-group {
	margin: 0;
	padding: 28px 24px;
	background: rgba(255, 255, 255, 0.06);
	border-top: 3px solid var(--bm-color-on-primary);
}

.bm-problem-cols h3 {
	margin: 0 0 14px;
	color: var(--bm-color-on-primary);
	font-size: var(--bm-font-size-lg);
}

.bm-problem-cols ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bm-problem-cols li {
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	line-height: 1.8;
}

.bm-problems__close {
	max-width: var(--bm-measure);
	line-height: 1.9;
}

@media (min-width: 768px) {
	.bm-problem-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 3つのサービス：カードの下の保守契約の1行 */
.bm-pillars .is-style-bm-price-cards {
	margin-bottom: 0;
}

.bm-pillars__care {
	padding: 18px 0;
	border-top: 1px solid rgba(20, 40, 75, 0.32);
	border-bottom: 1px solid var(--bm-color-line-soft);
	line-height: 1.9;
}

.bm-cases .bm-link-cards {
	margin-bottom: 0;
}

/* 3つのサービスの下の「課題から探す」：文字のリンクを横に並べる */
.bm-solution-links {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 24px;
}

.bm-solution-links > * {
	margin: 0 !important;
}

.bm-solution-links > p {
	color: var(--bm-color-primary-dark);
	font-weight: var(--bm-font-weight-bold);
}

.bm-section .bm-solution-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bm-section .bm-solution-links li {
	margin: 0;
}

.bm-solution-links a {
	display: inline-block;
	padding-block: 4px;
	color: var(--bm-color-primary);
	text-underline-offset: 0.25em;
}

/* 続くリード文は、段落の間を詰める */
.bm-section > .bm-section__lead + .bm-section__lead {
	margin-top: 0;
}

/* 無料でできること：細い線の一覧 */
.bm-section .bm-free__list {
	margin-bottom: 0;
	padding: 0;
	border-top: 1px solid var(--bm-color-primary);
	list-style: none;
}

.bm-section .bm-free__list > li {
	margin: 0;
	padding: 18px 0;
	border-bottom: 1px solid var(--bm-color-line-soft);
	line-height: 1.85;
}
