/* ==========================================================================
   components.css … ヘッダー・CTA・見出しなど、繰り返し使う部品
   ========================================================================== */

/* ---- 立体ボタンの共通ルール ------------------------------------------------ */
/*
 * --btn-top / --btn-mid / --btn-bottom … 表面のグラデーション
 * --btn-edge                          … 側面（厚み）の色
 * --btn-edge-h                        … 厚み。押すとこの分だけ沈む
 */
.btn-3d {
	--btn-top: #ff9a3c;
	--btn-mid: #ff6a00;
	--btn-bottom: #ea5500;
	--btn-edge: #a83a00;
	--btn-edge-h: 6px;
	position: relative;
	background: linear-gradient(180deg, var(--btn-top) 0%, var(--btn-mid) 52%, var(--btn-bottom) 100%);
	color: #fff !important;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
	box-shadow:
		0 var(--btn-edge-h) 0 var(--btn-edge),
		0 calc(var(--btn-edge-h) + 4px) 12px rgba(0, 0, 0, .25),
		inset 0 1px 0 rgba(255, 255, 255, .55),
		inset 0 -2px 0 rgba(0, 0, 0, .12);
	transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
	-webkit-tap-highlight-color: transparent;
}

.btn-3d:active {
	transform: translateY(var(--btn-edge-h));
	box-shadow:
		0 0 0 var(--btn-edge),
		0 2px 6px rgba(0, 0, 0, .25),
		inset 0 2px 6px rgba(0, 0, 0, .15);
	animation: none;
}

/* ---- ヘッダー（電話のみ） ---------------------------------------------- */
.lp-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 3px solid var(--c-main);
}

@media (min-width: 601px) {
	.admin-bar .lp-header {
		top: 46px;
	}
}

@media (min-width: 783px) {
	.admin-bar .lp-header {
		top: 32px;
	}
}

.lp-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	max-width: var(--w-content);
	margin: 0 auto;
	padding: 8px 10px 12px;
}

.lp-header__brand {
	min-width: 0;
}

.lp-header__logo {
	width: auto;
	height: 34px;
}

.lp-header__name {
	color: var(--c-main);
	font-size: 15px;
	font-weight: 900;
}

.lp-header__tel {
	--btn-edge-h: 4px;
	display: flex;
	flex-shrink: 0;
	flex-direction: column;
	align-items: center;
	padding: 4px 12px 6px;
	border-radius: 10px;
	line-height: 1.2;
	white-space: nowrap;
}

.lp-header__tel-label {
	font-size: 10px;
	font-weight: 700;
}

.lp-header__tel-num {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 900;
}

.lp-header__tel-num .icon {
	font-size: 16px;
	animation: tel-ring 2.4s ease-in-out infinite;
	transform-origin: 50% 60%;
}

.lp-header__tel-text {
	display: none;
}

@media (min-width: 768px) {
	.lp-header__inner {
		padding: 10px var(--gutter) 14px;
	}

	.lp-header__logo {
		height: 48px;
	}

	.lp-header__tel {
		padding: 6px 22px 8px;
	}

	.lp-header__tel-label {
		font-size: 12px;
	}

	.lp-header__tel-num {
		font-size: 24px;
		letter-spacing: .03em;
	}

	.lp-header__tel-text {
		display: inline;
	}

	.lp-header__tel-sp {
		display: none;
	}
}

/* ---- アニメーション ---------------------------------------------------- */
@keyframes tel-ring {
	0%, 70%, 100% { rotate: 0deg; }
	74%           { rotate: -14deg; }
	78%           { rotate: 12deg; }
	82%           { rotate: -8deg; }
	86%           { rotate: 4deg; }
}

@media (prefers-reduced-motion: reduce) {
	.lp-header__tel-num .icon {
		animation: none;
	}
}

/* ---- セクション共通 ------------------------------------------------------ */
.section {
	padding: var(--section-top) var(--gutter) var(--section-bottom);
}

/* セクションの背景（白いカードが背景に埋もれないよう、全セクションに色を敷く） */
.flow,
.price,
.area,
.faq {
	background: var(--c-main-soft);
}

.services,
.compare,
.cases {
	background: var(--c-gray-soft);
}

.section__inner {
	max-width: var(--w-content);
	margin: 0 auto;
}

.section__head {
	margin-bottom: 24px;
	text-align: center;
}

.section__eyebrow {
	margin-bottom: 4px !important;
	color: var(--c-main);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .2em;
}

.section__title {
	font-size: clamp(22px, 6vw, 34px);
	font-weight: 900;
	line-height: 1.45;
}

.section__title em {
	font-style: normal;
	color: var(--c-main);
	background: linear-gradient(transparent 64%, var(--c-accent) 64%);
}

.section__lead {
	margin-top: 12px !important;
	color: var(--c-muted);
	font-size: 14px;
}

@media (min-width: 768px) {
	.section__head {
		margin-bottom: 36px;
	}

	.section__lead {
		font-size: 15px;
	}
}

/* ---- お問い合わせボックス（旧LP lp-c の CTA と同じ見た目） ----------------- */
/* 数値は旧LPの表示を実測した値。スマホ → PC（769px〜）の順 */
.octa {
	max-width: 830px;
	margin: 20px auto 0;
	padding: 0 10px;
	color: #1e1e1e;
}

.octa__speed {
	margin-bottom: 3px !important;
	font-size: 17.6px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: -1px;
	text-align: center;
}

.octa__off {
	color: #da0e0e;
}

.octa__now {
	position: relative;
	max-width: 330px;
	margin: 0 auto 10px !important;
	padding: 5px 6px;
	border: 2px solid #000;
	border-radius: 7px;
	font-size: 19.2px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.octa__now::after {
	content: "";
	position: absolute;
	top: -13.5px;
	right: -10px;
	width: 52px;
	height: 53px;
	background: url(../images/cta/badge-sp.png) no-repeat center / contain;
}

.octa__time-now {
	color: #da0e0e;
}

.octa__phone {
	position: relative;
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 60px;
	margin-bottom: 10px;
	padding-top: 5px;
	border-radius: 999px;
	background: #da0e0e;
	color: #fff !important;
	font-family: sans-serif;
	font-size: 41.6px;
	font-weight: 700;
	line-height: .9;
	letter-spacing: -3px;
	white-space: nowrap;
}

/* 上半分の明るい帯（ツヤ） */
.octa__phone::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	right: 0;
	width: 86%;
	height: 50%;
	margin: 0 auto;
	border-radius: 999px;
	background: #f72e2e;
}

.octa__phone::before {
	content: "";
	position: relative;
	top: 2px;
	width: 32px;
	height: 22px;
	margin-right: 10px;
	background: url(../images/cta/tel-sp.png) no-repeat center / contain;
}

.octa__hours {
	position: relative;
	display: block;
	margin: 10px 0;
	font-size: 12.8px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 1px;
	text-align: center;
}

.octa__hours::before,
.octa__hours::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 27%;
	height: 1px;
	margin: auto;
	background: #000;
}

.octa__hours::before {
	left: 0;
}

.octa__hours::after {
	right: 0;
}

/* FV直下は電話だけ。ボタンが無いぶんの余白をここで取る */
.octa--tel-only .octa__hours {
	margin-bottom: 26px;
}

.octa__btns {
	display: flex;
	justify-content: space-between;
	margin-bottom: 26px;
}

.octa__btn-wrap {
	width: 50%;
}

.octa__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 90%;
	height: 72px;
	margin: 10px auto;
	border-bottom: 5px solid;
	border-radius: 8px;
	color: #fff !important;
	font-size: 12.8px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 4.8px;
	text-align: center;
}

.octa__btn:active {
	margin-top: 13px;
	border-bottom-width: 2px;
}

.octa__btn .icon {
	width: 27px;
	height: 27px;
	margin-right: 12px;
}

.octa__btn--orange {
	border-bottom-color: #8b0000;
	background: #eb6100;
}

.octa__btn--green {
	border-bottom-color: #00662d;
	background: #094;
}

@media (min-width: 769px) {
	.octa {
		margin-top: 40px;
		padding: 0;
	}

	.octa__speed {
		margin-bottom: 10px !important;
		font-size: 32px;
		font-weight: 900;
	}

	.octa__now {
		max-width: none;
		padding: 6px 0;
		border-radius: 50px;
		font-size: 25.6px;
		font-weight: 900;
		line-height: 1;
	}

	.octa__now::after {
		top: -60px;
		right: -85px;
		width: 124px;
		height: 124px;
		background-image: url(../images/cta/badge-pc.png);
	}

	.octa__phone {
		display: block;
		height: auto;
		padding: 16px 0 0 100px;
		border-radius: 0;
		background: none;
		color: #da0e0e !important;
		font-size: 88px; /* 旧LPは 99.2px で末尾の「3」が改行されていたので、1行に収まる大きさに */
	}

	.octa__phone::after {
		content: none;
	}

	.octa__phone::before {
		position: absolute;
		top: 13px;
		bottom: 0;
		left: 0;
		width: 90px;
		height: 86px;
		margin: auto;
		background-image: url(../images/cta/tel-pc.png);
	}

	.octa__hours {
		margin: 0 0 20px;
		font-size: 19.2px;
	}

	.octa__hours::before,
	.octa__hours::after {
		width: 285px;
	}

	.octa__btn {
		width: 78%;
		height: 125px;
		font-size: 24px;
		letter-spacing: 2.4px;
	}

	.octa__btn:active {
		margin-top: 13px;
	}

	.octa__btn .icon {
		width: 30px;
		height: 30px;
		margin-right: 16px;
	}
}

/* ---- CTA：電話ボタン下のスタッフ写真＋吹き出し ------------------------------ */
/* スマホ → 小さいスマホ（〜380px）→ PC（769px〜）の順 */
.octa-crew {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 16px auto 10px;
	color: #222;
	line-height: 1.4;
}

/* FV直下（電話だけ）はボタンが無いので、ここで下の余白を取る */
.octa--tel-only .octa__hours {
	margin-bottom: 10px;
}

.octa--tel-only .octa-crew {
	margin-bottom: 26px;
}

.octa-crew__staff {
	flex: 0 0 auto;
	display: flex;
	margin: 0 0 10px !important;
	padding: 0 !important;
	list-style: none;
}

.octa-crew__item {
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
}

.octa-crew__item::before {
	content: none; /* テーマのリスト装飾を無効化 */
}

.octa-crew__item + .octa-crew__item {
	margin-left: -12px !important;
}

.octa-crew__img {
	display: block;
	width: 76px;
	height: 76px;
	max-width: none;
	object-fit: cover;
	object-position: center top;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #eee;
	box-shadow: 0 0 0 3px #47994f, 0 6px 14px rgba(0, 0, 0, .18);
}

.octa-crew__item:nth-child(2) .octa-crew__img {
	box-shadow: 0 0 0 3px #d96a2b, 0 6px 14px rgba(0, 0, 0, .18);
}

.octa-crew__name {
	position: absolute;
	left: 50%;
	bottom: -9px;
	z-index: 1;
	padding: 1px 8px;
	border-radius: 999px;
	background: #47994f;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
	transform: translateX(-50%);
}

.octa-crew__name small {
	margin-left: 2px;
	font-size: 9px;
	font-weight: 700;
}

.octa-crew__item:nth-child(2) .octa-crew__name {
	background: #d96a2b;
}

.octa-crew__bubble {
	position: relative;
	flex: 0 1 auto;
	min-width: 0;
	margin: 0 !important;
	padding: 9px 14px;
	border: 2px solid #cc2e24;
	border-radius: 14px;
	background: #fff6d6;
	color: #222;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

/* 文節ごとに折り返す（不自然な改行を防ぐ） */
.octa-crew__bubble span {
	display: inline-block;
}

.octa-crew__bubble strong {
	color: #cc2e24;
	background: linear-gradient(transparent 62%, #ffe36b 62%);
}

/* 吹き出しのしっぽ（::before が枠線、::after が中の塗り） */
.octa-crew__bubble::before,
.octa-crew__bubble::after {
	content: "";
	position: absolute;
	top: 50%;
	border-style: solid;
	transform: translateY(-50%);
}

.octa-crew__bubble::before {
	left: -14px;
	border-width: 8px 13px 8px 0;
	border-color: transparent #cc2e24 transparent transparent;
}

.octa-crew__bubble::after {
	left: -10px;
	border-width: 6px 10px 6px 0;
	border-color: transparent #fff6d6 transparent transparent;
}

@media (max-width: 380px) {
	.octa-crew {
		gap: 14px;
	}

	.octa-crew__img {
		width: 64px;
		height: 64px;
	}

	.octa-crew__name {
		padding: 1px 6px;
		font-size: 11px;
	}

	.octa-crew__bubble {
		padding: 8px 10px;
		font-size: 15px;
	}
}

@media (min-width: 769px) {
	.octa-crew {
		gap: 28px;
		margin: 20px auto;
	}

	.octa--tel-only .octa__hours {
		margin-bottom: 20px;
	}

	.octa--tel-only .octa-crew {
		margin-bottom: 40px;
	}

	.octa-crew__item + .octa-crew__item {
		margin-left: -18px !important;
	}

	.octa-crew__img {
		width: 120px;
		height: 120px;
		border-width: 5px;
	}

	.octa-crew__name {
		bottom: -10px;
		padding: 3px 12px;
		font-size: 15px;
	}

	.octa-crew__name small {
		font-size: 11px;
	}

	.octa-crew__bubble {
		padding: 14px 26px;
		border-width: 3px;
		border-radius: 20px;
		letter-spacing: .04em;
	}

	.octa-crew__bubble::before {
		left: -19px;
		border-width: 11px 18px 11px 0;
	}

	.octa-crew__bubble::after {
		left: -14px;
		border-width: 8px 14px 8px 0;
	}
}

/* ---- 画面下の固定バナー（スマホのみ。旧LP lp-c と同じ画像） ----------------- */
.sticky-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	padding-bottom: env(safe-area-inset-bottom);
	font-size: 0;
}

.sticky-banner img {
	width: 100%;
}

@media (min-width: 769px) {
	.sticky-banner {
		display: none;
	}
}

/* スマホだけで改行 */
@media (min-width: 769px) {
	.sp-only {
		display: none;
	}
}
