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

/* ---- 立体ボタンの共通ルール ------------------------------------------------ */
/*
 * --btn-top / --btn-mid / --btn-bottom … 表面のグラデーション
 * --btn-edge                          … 側面（厚み）の色
 * --btn-edge-h                        … 厚み。押すとこの分だけ沈む
 */
.btn-3d,
.btn-tel {
	--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,
.btn-tel: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;
	}
}

/* ---- 電話・LINE ボタン -------------------------------------------------- */
.cta-buttons {
	display: grid;
	gap: 14px;
	max-width: 600px;
	margin: 0 auto;
}

.cta-buttons__lead {
	margin-bottom: -4px !important;
	color: var(--c-main-dark);
	font-size: 14px;
	font-weight: 900;
	text-align: center;
}

/* 電話（メイン） */
.btn-tel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px 40px 14px;
	border-radius: var(--radius);
	text-align: center;
	line-height: 1.3;
	overflow: hidden;
	isolation: isolate;
	animation: btn-pulse 2.4s ease-in-out infinite;
}

/* 上半分のツヤ */
.btn-tel::before {
	content: "";
	position: absolute;
	inset: 0 0 50%;
	z-index: -1;
	border-radius: var(--radius) var(--radius) 40% 40% / var(--radius) var(--radius) 14px 14px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .06) 100%);
	pointer-events: none;
}

/* 斜めに走る光 */
.btn-tel::after {
	content: "";
	position: absolute;
	top: -20%;
	left: -60%;
	width: 36%;
	height: 140%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-22deg);
	animation: btn-shine 3.2s ease-in-out infinite;
	pointer-events: none;
}

.btn-tel__label {
	font-size: 14px;
	font-weight: 900;
}

.btn-tel__num {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 2px 0 6px;
	font-size: clamp(25px, 7.6vw, 38px);
	font-weight: 900;
	letter-spacing: .02em;
}

.btn-tel__num .icon {
	animation: tel-ring 2.4s ease-in-out infinite;
	transform-origin: 50% 60%;
}

.btn-tel__note {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: #fff;
	color: var(--c-ink);
	font-size: clamp(10.5px, 3vw, 12px);
	font-weight: 700;
	text-shadow: none;
	box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

.btn__arrow {
	position: absolute;
	right: 12px;
	top: 50%;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	border-radius: 50%;
	background: #fff;
	color: var(--btn-mid);
	box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
	text-shadow: none;
}

.btn__arrow .icon {
	font-size: 20px;
}

/* 幅の狭いスマホでは矢印を外して番号を大きく見せる */
@media (max-width: 429px) {
	.btn-tel {
		padding-inline: 12px;
	}

	.btn__arrow {
		display: none;
	}
}

/* LINE（サブ：電話より控えめ） */
.btn-line {
	--btn-top: #4cec8a;
	--btn-mid: #06c755;
	--btn-bottom: #04a846;
	--btn-edge: #027330;
	--btn-edge-h: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 50px;
	padding: 8px 12px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--btn-top) 0%, var(--btn-mid) 55%, var(--btn-bottom) 100%);
	color: #fff !important;
	font-size: clamp(13px, 3.8vw, 15px);
	font-weight: 700;
	white-space: nowrap;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
	box-shadow:
		0 var(--btn-edge-h) 0 var(--btn-edge),
		0 calc(var(--btn-edge-h) + 3px) 8px rgba(0, 0, 0, .18),
		inset 0 1px 0 rgba(255, 255, 255, .5);
	transition: transform .08s ease, box-shadow .08s ease;
	-webkit-tap-highlight-color: transparent;
}

.btn-line:active {
	transform: translateY(var(--btn-edge-h));
	box-shadow: 0 0 0 var(--btn-edge), inset 0 2px 4px rgba(0, 0, 0, .15);
}

.btn-line .icon {
	font-size: 24px;
}

@media (hover: hover) {
	.btn-tel:hover,
	.btn-line:hover,
	.btn-3d:hover {
		filter: brightness(1.07) saturate(1.05);
	}
}

/* ---- アニメーション ---------------------------------------------------- */
@keyframes btn-shine {
	0%, 62% { left: -60%; }
	100%    { left: 130%; }
}

@keyframes btn-pulse {
	0%, 80%, 100% { scale: 1; }
	88%           { scale: 1.03; }
	94%           { scale: .995; }
}

@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) {
	.btn-tel,
	.btn-tel::after,
	.btn-tel__num .icon,
	.lp-header__tel-num .icon,
	.sticky-cta__tel,
	.sticky-cta__icon .icon {
		animation: none;
	}
}

/* ---- CTA ブロック（濃い青の背景でオレンジの電話ボタンを目立たせる） ------- */
.cta-block {
	position: relative;
	padding: 28px var(--gutter) 32px;
	background:
		radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 255, 255, .16), transparent 70%),
		linear-gradient(180deg, var(--c-main) 0%, var(--c-main-dark) 100%);
	color: #fff;
	text-align: center;
}

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

.cta-block__zero {
	display: inline-block;
	margin-bottom: 10px !important;
	padding: 4px 18px;
	border-radius: 999px;
	background: #fff;
	color: var(--c-main-dark);
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 3px 0 rgba(0, 0, 0, .15);
}

.cta-block__zero strong {
	color: #e60c2a;
	font-size: 1.35em;
	font-weight: 900;
}

.cta-block__lead {
	font-size: clamp(19px, 5.2vw, 27px);
	font-weight: 900;
	line-height: 1.5;
	text-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

.cta-block__now {
	margin: 8px 0 14px !important;
	font-size: 13px;
	font-weight: 700;
}

.cta-block__now span {
	display: inline-block;
	padding: 0 6px;
	border-radius: 4px;
	background: var(--c-accent);
	color: var(--c-ink);
	font-variant-numeric: tabular-nums;
}

/* 青背景の中では見出し上の一言を黄色に */
.cta-block .cta-buttons__lead {
	color: var(--c-accent);
}

.cta-block__pay {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	max-width: 600px;
	margin: 18px auto 0 !important;
	font-size: 12px;
	font-weight: 700;
}

.cta-block__pay li {
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .95);
	color: var(--c-ink);
}

.cta-block__pay .cta-block__pay-title {
	background: var(--c-dark);
	color: #fff;
}

.cta-block--final {
	padding-block: 40px 48px;
}

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

/* セクションの背景（白いカードが背景に埋もれないよう、全セクションに色を敷く） */
.reasons,
.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;
	}
}

/* ---- 画面下の固定ボタン（スマホ・電話のみ） ----------------------------- */
.sticky-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	padding: 8px 10px calc(14px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
	transform: translateY(110%);
	transition: transform .25s ease;
}

.sticky-cta.is-show {
	transform: none;
}

.sticky-cta__tel {
	--btn-edge-h: 5px;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 60px;
	padding: 6px 8px 6px 10px;
	border-radius: 12px;
	animation: btn-pulse 2.4s ease-in-out infinite;
}

.sticky-cta__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: var(--btn-mid);
	text-shadow: none;
}

.sticky-cta__icon .icon {
	font-size: 24px;
	animation: tel-ring 2.4s ease-in-out infinite;
	transform-origin: 50% 60%;
}

.sticky-cta__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	line-height: 1.15;
}

.sticky-cta__text small {
	font-size: 11px;
	font-weight: 700;
}

.sticky-cta__text strong {
	font-size: clamp(22px, 6.6vw, 27px);
	font-weight: 900;
	letter-spacing: .02em;
}

.sticky-cta__badge {
	flex-shrink: 0;
	padding: 4px 8px;
	border-radius: 8px;
	background: var(--c-accent);
	color: var(--c-ink);
	font-size: 11px;
	font-weight: 900;
	line-height: 1.25;
	text-align: center;
	text-shadow: none;
}

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