/**
 * Booster Ad Manager フロントエンド用スタイル
 */

/* 広告基本コンテナ */
.booster-ad-unit {
	margin: 28px auto;
	text-align: center;
	clear: both;
	max-width: 100%;
}

.booster-ad-content {
	display: inline-block;
	max-width: 100%;
}

/* マイクロコピー (上部訴求文) */
.booster-ad-caption {
	font-size: 14px;
	color: #444;
	margin: 0 0 10px 0;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

/* バナー画像リンク */
.booster-ad-link {
	display: inline-block;
	max-width: 100%;
	line-height: 0;
	text-decoration: none;
	border-radius: 8px;
}

.booster-ad-image {
	display: inline-block;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	vertical-align: middle;
}

.booster-ad-link:hover .booster-ad-image {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* デバイス別切り替え (CSSメディアクエリ) */
@media (min-width: 768px) {
	.booster-device-mobile {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.booster-device-desktop {
		display: none !important;
	}

	.booster-ad-caption {
		font-size: 13px;
	}
}

/* スマホ用下部固定アンカーバナー */
.booster-ad-sticky-wrapper {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.15);
	z-index: 99999;
	padding: 8px 12px;
	padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
	text-align: center;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	animation: boosterSlideUp 0.35s ease-out forwards;
}

@keyframes boosterSlideUp {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.booster-ad-sticky-inner {
	position: relative;
	max-width: 480px;
	margin: 0 auto;
}

.booster-ad-sticky-inner .booster-ad-unit {
	margin: 0 auto !important;
}

.booster-ad-sticky-inner .booster-ad-caption {
	font-size: 11px;
	margin-bottom: 4px;
}

.booster-ad-sticky-inner .booster-ad-image {
	max-height: 80px;
	width: auto;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 閉じる (×) ボタン */
.booster-ad-sticky-close {
	position: absolute;
	top: -24px;
	right: 4px;
	width: 24px;
	height: 24px;
	background: #333;
	color: #fff;
	border: 2px solid #fff;
	border-radius: 50%;
	font-size: 16px;
	line-height: 20px;
	text-align: center;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	z-index: 100000;
	transition: background 0.2s;
}

.booster-ad-sticky-close:hover {
	background: #000;
}

@media (min-width: 768px) {
	/* アンカー広告はスマホのみ */
	#booster-ad-sticky-footer {
		display: none !important;
	}
}

/* 高CVR マイクロコピー付きCTAボタン */
.booster-ad-cta-wrap {
	margin-top: 12px;
	text-align: center;
}

.booster-ad-cta-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 13px 28px;
	font-size: 15px;
	font-weight: 700;
	color: #ffffff !important;
	text-decoration: none !important;
	border-radius: 50px;
	line-height: 1.4;
	transition: all 0.25s ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	max-width: 90%;
	word-break: break-word;
	letter-spacing: 0.03em;
}

.booster-ad-cta-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
	color: #ffffff !important;
}

.booster-ad-cta-btn:active {
	transform: translateY(0);
}

.booster-cta-color-orange {
	background: linear-gradient(135deg, #ff7e1d 0%, #f15a24 100%) !important;
	box-shadow: 0 4px 14px rgba(241, 90, 36, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.booster-cta-color-green {
	background: linear-gradient(135deg, #00c06a 0%, #00994f 100%) !important;
	box-shadow: 0 4px 14px rgba(0, 153, 79, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.booster-cta-color-blue {
	background: linear-gradient(135deg, #0088cc 0%, #006699 100%) !important;
	box-shadow: 0 4px 14px rgba(0, 102, 153, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.booster-cta-color-red {
	background: linear-gradient(135deg, #ff4d4f 0%, #d92427 100%) !important;
	box-shadow: 0 4px 14px rgba(217, 36, 39, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 767px) {
	.booster-ad-cta-btn {
		width: 92%;
		padding: 12px 16px;
		font-size: 14px;
	}
}

