/* floating.css - PC右下フローティング + SP追従フッター */

/* ===== PC: 右下フローティングバナー ===== */
#ib-floating {
	position: fixed;
	right: 16px;
	bottom: 16px;
	width: 260px;
	z-index: 9000;
	display: none;
}

@media (min-width: 768px) {
	#ib-floating {
		display: block;
	}
}

#ib-floating a {
	display: block;
	line-height: 0;
}

#ib-floating img {
	width: 260px;
	height: auto;
	display: block;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
	background: #fff;
}

#ib-floating-close {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #fff;
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	color: #333;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	z-index: 1;
	line-height: 1;
}

#ib-floating-close:hover {
	background: #f2f2f2;
}

#ib-floating-close::before {
	content: "×";
	margin-top: -2px;
}

/* ===== SP: 追従フッター ===== */
#ib-footer-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	z-index: 9000;
	box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.18);
	display: none;
	background: #001f3f;
}

@media (max-width: 767px) {
	#ib-footer-cta {
		display: block;
	}
	body {
		padding-bottom: 86px !important;
	}
}

#ib-footer-cta a {
	display: block;
	color: #fff !important;
	text-decoration: none !important;
	padding: 0;
}

/* 上段: ゴールドの特典帯 */
.ib-footer-cta__sub {
	background: linear-gradient(90deg, #c89020 0%, #f0c952 30%, #ffe79a 50%, #f0c952 70%, #c89020 100%);
	color: #2b1a00;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
}

.ib-footer-cta__badge {
	background: #2b1a00;
	color: #ffd97a;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	letter-spacing: 0.1em;
	font-weight: bold;
	flex-shrink: 0;
}

/* 下段: 青ボタン */
.ib-footer-cta__main {
	background: #0057AC;
	padding: 15px 12px;
	font-size: 17px;
	font-weight: bold;
	letter-spacing: 0.04em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.ib-footer-cta__arrow {
	display: inline-block;
	font-size: 20px;
	font-weight: normal;
	transition: transform 0.2s ease;
}

#ib-footer-cta a:active .ib-footer-cta__main {
	background: #00468c;
}

#ib-footer-cta a:active .ib-footer-cta__arrow {
	transform: translateX(4px);
}
