/* ベース（フルスクリーンの土台） */
.apn-popup {
	position: fixed;
	z-index: 99999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	box-sizing: border-box;
	border-radius: 0;
	box-shadow: none;
	opacity: 0;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* 半透明の背景レイヤー */
.apn-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.3;
}

/* カード本体 */
.apn-content {
	position: relative;
	z-index: 1;
	background: transparent;
	border: none;
	border-radius: 0;
	width: 45vw;
	aspect-ratio: 370 / 141;
	padding: 28px 64px 68px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	font-family: inherit;
	font-size: min(6vw, 7vh);
	font-weight: 900;
	line-height: 1.3;
	box-shadow: none;
}

/* ---- モバイル対応 ---- */
@media (max-width: 768px) {
	.apn-content {
		width: 92vw;
		padding: 20px 24px;
		font-size: min(8vw, 6vh);
	}
}

/* ---- フェード ---- */
.apn-popup.apn-anim-fade {
	transition: opacity 0.4s ease;
}
.apn-popup.apn-anim-fade.apn-visible {
	opacity: 1;
}

/* ---- バウンス ---- */
@keyframes apn-bounce-in {
	0%   { opacity: 0; transform: scale(0.9); }
	60%  { opacity: 1; transform: scale(1.03); }
	80%  { transform: scale(0.99); }
	100% { opacity: 1; transform: scale(1); }
}
.apn-popup.apn-anim-bounce.apn-visible {
	animation: apn-bounce-in 0.5s ease forwards;
}

/* ---- なし ---- */
.apn-popup.apn-anim-none.apn-visible {
	opacity: 1;
}

/* ---- 消えるアニメーション（しゅんっ） ---- */
@keyframes apn-out {
	0%   { opacity: 1; transform: scale(1) translateY(0); }
	30%  { opacity: 1; transform: scale(1.18) translateY(-12px); }
	100% { opacity: 0; transform: scale(0.05) translateY(-60px); }
}
.apn-popup.apn-out {
	animation: apn-out 0.4s cubic-bezier(0.3, 0, 0.7, 0.5) forwards !important;
}
