/* RDP CTA Manager - フロントCSS */

/* 記事内バナー */
.rdp-cta--banner {
	margin: 2rem auto;
	text-align: center;
	max-width: 720px;
}
.rdp-cta--banner .rdp-cta__link {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0,0,0,.10);
	transition: transform .15s ease, box-shadow .15s ease;
}
.rdp-cta--banner .rdp-cta__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(230,0,18,.18);
}
.rdp-cta--banner .rdp-cta__img {
	display: block;
	width: 100%;
	height: auto;
	background: #fff;
}

.rdp-cta--article_top    { margin-top: 0; margin-bottom: 2rem; }
.rdp-cta--article_bottom { margin-top: 3rem; margin-bottom: 0; }

/* テキスト版CTA */
.rdp-cta--text {
	margin: 2rem 0;
	padding: 1rem 1.2rem;
	background: linear-gradient(135deg, #FFE9EC 0%, #FFCDD4 100%);
	border-radius: 12px;
	text-align: center;
}
.rdp-cta__textlink {
	color: #c00;
	font-weight: 700;
	text-decoration: none;
	font-size: 1.05rem;
}

/* ポップアップ */
.rdp-cta-popup-wrap {
	position: fixed;
	inset: 0;
	z-index: 99999;
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
}
.rdp-cta-popup-wrap.is-open {
	opacity: 1;
	pointer-events: auto;
}
.rdp-cta-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.55);
}
.rdp-cta-popup__inner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(.95);
	transition: transform .25s ease;
	max-width: min(92vw, 460px);
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.rdp-cta-popup-wrap.is-open .rdp-cta-popup__inner {
	transform: translate(-50%, -50%) scale(1);
}
.rdp-cta-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 0;
	background: rgba(255,255,255,.85);
	color: #333;
	font-size: 22px;
	line-height: 36px;
	cursor: pointer;
	z-index: 2;
}
.rdp-cta-popup__close:hover { background: #fff; }
.rdp-cta-popup__img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 480px) {
	.rdp-cta-popup__inner { max-width: 92vw; }
	.rdp-cta-popup__close { top: 6px; right: 6px; width: 32px; height: 32px; font-size: 20px; line-height: 32px; }
}
