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

/* ---- 立体ボタンの共通ルール（ヘッダー・固定フッターの電話ボタン） --------- */
/*
 * --btn-top / --btn-mid / --btn-bottom … 表面のグラデーション
 * --btn-edge                          … 側面（厚み）の色
 * --btn-edge-h                        … 厚み。押すとこの分だけ沈む
 */
.btn-3d {
	--btn-top: #ff6b5f;
	--btn-mid: #e8291f;
	--btn-bottom: #c81c13;
	--btn-edge: #8a1009;
	--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: 1px solid var(--c-border);
}

/* ログイン中の管理バー分ずらす（600px以下は管理バーがスクロールで消えるので不要） */
@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 12px 12px;
}

.lp-header__brand {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	line-height: 1.3;
}

.lp-header__tagline {
	font-size: 10px;
	color: var(--c-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lp-header__name {
	font-size: 16px;
	font-weight: 900;
	color: var(--c-main);
	white-space: nowrap;
}

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

.lp-header__actions {
	flex-shrink: 0;
}

.lp-header__tel {
	--btn-edge-h: 4px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 5px 14px 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: 15px;
	font-weight: 900;
}

.lp-header__tel-num .icon {
	font-size: 17px;
	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__tagline {
		font-size: 12px;
	}

	.lp-header__name {
		font-size: 24px;
	}

	.lp-header__logo {
		height: 44px;
	}

	.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: 640px;
	margin: 0 auto;
}

.cta-buttons__lead {
	margin-bottom: -4px !important;
	font-size: 14px;
	font-weight: 900;
	text-align: center;
}

/* 電話（メイン） */
.btn-tel {
	--btn-top: #ff6b5f;
	--btn-mid: #e8291f;
	--btn-bottom: #c81c13;
	--btn-edge: #8a1009;
	--btn-edge-h: 6px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px 38px 14px;
	border-radius: var(--radius);
	background: linear-gradient(180deg, var(--btn-top) 0%, var(--btn-mid) 52%, var(--btn-bottom) 100%);
	color: #fff !important;
	text-align: center;
	line-height: 1.3;
	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) + 6px) 16px rgba(0, 0, 0, .28),
		inset 0 1px 0 rgba(255, 255, 255, .55),
		inset 0 -2px 0 rgba(0, 0, 0, .12);
	overflow: hidden;
	isolation: isolate;
	transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
	animation: btn-pulse 2.4s ease-in-out infinite;
	-webkit-tap-highlight-color: transparent;
}

.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;
}

/* 上半分のツヤ */
.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(28px, 8.4vw, 38px);
	font-weight: 900;
	letter-spacing: .03em;
}

.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: var(--c-accent);
	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(--c-main);
	box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
	text-shadow: none;
}

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

/* 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;
	width: 92%;
	margin: 4px auto 0;
	padding: 9px 12px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--btn-top) 0%, var(--btn-mid) 55%, var(--btn-bottom) 100%);
	color: #fff !important;
	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, .2),
		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__main {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.btn-line__main .icon {
	font-size: 22px;
}

@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) 36px;
	background:
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, .28) 0 10px, transparent 10px 20px),
		var(--c-accent);
	color: var(--c-ink);
	text-align: center;
	border-top: 6px solid var(--c-main);
	border-bottom: 6px solid var(--c-main);
}

.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: var(--c-main);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 3px 0 var(--c-main-dark);
}

.cta-block__zero strong {
	color: var(--c-accent);
	font-size: 1.35em;
	font-weight: 900;
}

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

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

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

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

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

/* 背景色付きのセクション（白と交互になるように） */
.price,
.scenes,
.voice,
.compare,
.items,
.faq {
	background: var(--c-bg-soft);
}

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

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

.section__eyebrow {
	margin-bottom: 6px !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;
	background: linear-gradient(transparent 62%, var(--c-accent) 62%);
}

.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;
	}
}

/* ---- 注記 ------------------------------------------------------------- */
.notes {
	margin-top: 20px !important;
	color: var(--c-muted);
	font-size: 12px;
}

/* text-indent だと文節（.ph / inline-block）ごとにずれて重なるため、※ は絶対配置にする */
.notes li {
	position: relative;
	padding-left: 1em;
}

.notes li::before {
	content: "※";
	position: absolute;
	left: 0;
	top: 0;
}

/* ---- 画面下の固定ボタン（スマホ・電話のみ） ----------------------------- */
.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(--c-main);
	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-main);
	font-size: 11px;
	font-weight: 900;
	line-height: 1.25;
	text-align: center;
	text-shadow: none;
}

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