/* ==========================================================
   BMW Floating CTA
   既存LPのトンマナ（BMWブルー #1C68D4 / 角丸なし / 矢印スライド）に準拠
   ========================================================== */

.bmw-fcta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	background: rgba(18, 18, 18, 0.82);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	transform: translateY(110%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	pointer-events: none;
}

.bmw-fcta.is-visible {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.bmw-fcta__inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bmw-fcta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-width: 380px;
	padding: 14px 32px;
	background: #1c68d4;
	color: #fff;
	font-size: 1.4rem;
	line-height: 1.3;
	font-weight: 500;
	text-decoration: none;
	border-radius: 0;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.bmw-fcta__btn:hover,
.bmw-fcta__btn:focus {
	background: #0066b1;
	color: #fff;
	text-decoration: none;
}

.bmw-fcta__btn:visited {
	color: #fff;
}

/* テーマ側の .wp-block-button a::after（Font Awesome矢印）とは独立したSVG矢印 */
.bmw-fcta__arrow {
	flex: 0 0 auto;
	transition: transform 0.3s ease;
}

.bmw-fcta__btn:hover .bmw-fcta__arrow,
.bmw-fcta__btn:focus .bmw-fcta__arrow {
	transform: translateX(5px);
}

/* CTA表示中はページトップボタンを持ち上げて重なりを回避 */
body.bmw-fcta-visible .pagetop a {
	bottom: 7rem;
	transition: bottom 0.35s ease;
}

/* ---------- SP ---------- */
@media (max-width: 767.98px) {
	.bmw-fcta {
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	}

	.bmw-fcta__btn {
		width: 100%;
		min-width: 0;
		padding: 14px 16px;
		font-size: 1.15rem;
	}

	body.bmw-fcta-visible .pagetop a {
		bottom: 6rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bmw-fcta,
	.bmw-fcta__arrow,
	body.bmw-fcta-visible .pagetop a {
		transition: none;
	}
}
