/* popup.css - IRBANK ポップアップバナー用 */

#ib-popup-overlay {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	padding: 16px;
	box-sizing: border-box;
}

#ib-popup-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

#ib-popup-box {
	position: relative;
	width: 90vw;
	max-width: 480px;
	max-height: 90vh;
	transform: scale(0.96);
	transition: transform 0.25s ease;
	line-height: 0;
}

#ib-popup-overlay.is-open #ib-popup-box {
	transform: scale(1);
}

#ib-popup-box a {
	display: inline-block;
	line-height: 0;
}

#ib-popup-box img {
	max-width: 100%;
	max-height: 90vh;
	height: auto;
	width: auto;
	display: block;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
	background: #fff;
}

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

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

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

@media (max-width: 600px) {
	#ib-popup-close {
		top: -12px;
		right: -12px;
		width: 30px;
		height: 30px;
		font-size: 18px;
	}
}
