/* ==================================================
   追従型フローティングバナー
================================================== */
.floating-banner {
	position: fixed;
	z-index: 9999;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	padding:
		0
		env(safe-area-inset-right)
		env(safe-area-inset-bottom)
		env(safe-area-inset-left);
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(calc(100% + 20px));
	transition:
		opacity 0.35s ease,
		visibility 0.35s ease,
		transform 0.35s ease;
}
/* 表示状態 */
.floating-banner.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}
/* ==================================================
   バナー本体 480pxを基準に比率維持
================================================== */

.floating-banner__inner {
	display: grid;
	width: 100%;
	max-width: 480px;
	grid-template-columns: 31fr 69fr;
	align-items: center;
	margin: 0 auto;
	padding: 1.45cqw 1.2cqw 1.65cqw 0;
	box-sizing: border-box;
	background: rgba(248, 248, 248, 0.72);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	container-type: inline-size;
}


/* ==================================================
   A：No.1 + ロゴ
================================================== */
.floating-banner__brand {
	display: flex;
	width: 100%;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 0;
	box-sizing: border-box;
	text-align: left;
	transform: translateX(4.5cqw);
}

/* 赤文字 */
.floating-banner__ranking {
	display: block;
	width: 100%;
	margin: 0 0 0.3cqw;
	color: #E84935;
	font-size: 3.05cqw !important;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.03em;
	text-align: left;
	white-space: nowrap;
}


/* ロゴ枠 */
.floating-banner__logo {
	display: flex;
	width: 100%;
	height: 8.4cqw;
	align-items: center;
	justify-content: flex-start;
	margin: 0;
	overflow: hidden;
}

/* ロゴ画像 */
.floating-banner__logo img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: left center;
}

/* ==================================================
   B：CTA
================================================== */
.floating-banner__cta {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	transform: translateX(-1.5cqw);
}


/*
 * CTA共通CSS
 * .cta-btn
 * .cta-btn::before
 * .cta-btn::after
 *
 * は既存CSSをそのまま利用
 */
.floating-banner .cta-btn--floating {
	width: 100%;
	height: 15.4cqw;
	min-width: 0;
	min-height: 0;
	padding: 1.7cqw 7.4cqw 1.7cqw 2.2cqw;
	box-sizing: border-box;
	border-radius: 999px;
	box-shadow: 0 0.95cqw 0 #22B861;
}


/* CTA内 */
.floating-banner .cta-btn--floating .cta-btn__content {
	position: relative;
	z-index: 2;
	display: flex;
	width: 100%;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.8cqw;
	transform: translateX(1.6cqw);
}
/* 黄色文字 */
.floating-banner .cta-btn--floating .cta-btn__sub {
	display: block;
	width: 100%;
	margin: 0;
	color: #FFF23E;
	font-size: 3.3cqw !important;
	font-weight: 700;
	line-height: 1.15 !important;
	text-align: center;
	white-space: nowrap;
}
/* WPのcta_main */
.floating-banner .cta-btn--floating .cta-btn__main {
	display: block;
	width: 100%;
	margin: 0;
	color: #FFFFFF;
	font-size: 4.35cqw !important;
	font-weight: 700;
	line-height: 1.15 !important;
	letter-spacing: -0.035em;
	text-align: center;
	white-space: nowrap;
}
/* 右側の黄色三角 */
.floating-banner .cta-btn--floating::after {
	right: 3.4cqw;

	border-top-width: 1.45cqw;
	border-bottom-width: 1.45cqw;
	border-left-width: 2.2cqw;
}
/* タップ時 */
.floating-banner .cta-btn--floating:active {
	box-shadow:0 0.2cqw 0 #22B861;
	transform: translateY(0.75cqw);
}
/* ==================================================
   SP専用　768px以上では非表示
================================================== */
@media (min-width: 768px) {
	.floating-banner {
		display: none !important;
	}
}
/* ==================================================
   アニメーション軽減設定
================================================== */
@media (prefers-reduced-motion: reduce) {
	.floating-banner {
		transition: none;
	}
}