/* 背景を暗くするオーバーレイ */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: none; /* 初期は非表示 */
	justify-content: center;
	align-items: center;
	z-index: 999;
}

/* ポップアップ本体 */
.popup {
	background: white;
	padding: 40px 40px;
	border-radius: 8px;
	max-width: 800px;
	width: 80%;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	position: relative;
	font-family: "Yu Gothic", "Hiragino Kaku Gothic Pro", sans-serif;
}

/* タイトル */
.popup h2 {
	font-size: 34px;
	font-weight: bold;
	margin: 0 0 30px 0;
	text-align: center;
	color: #000;
}

/* 本文 */
.popup p {
	font-size: 18px;
	line-height: 1.6;
	margin: 0 0 20px 0;
	color: #000;
	text-align: center;
}

.popup .bold {
	font-weight: bold;
}

/* 赤枠 */
.popup .content-box {
	border: 2px solid #e60012;
	padding: 30px;
	border-radius: 4px;
}

.popup .content-box u {
	text-decoration: underline;
}

/* 閉じるボタン */
.popup .close-btn {
	position: absolute;
	top: 30px;
	right: 30px;
	background: transparent;
	border: none;
	font-size: 60px;
	cursor: pointer;
	color: #525252;
}

/* ==============================
   SP対応 (～767px)
============================== */
@media (max-width: 767px) {
	.popup {
		padding: 30px 16px; /* 余白をコンパクトに */
		width: 90%;
		max-width: 100%;
		border-radius: 6px;
	}

	.popup h2 {
		font-size: 20px; /* タイトル小さめに */
		margin: 0 0 16px 0;
		line-height: 1.4;
	}

	.popup p {
		font-size: 14px; /* 本文小さめに */
		margin: 0 0 12px 0;
		line-height: 1.6;
	}

	.popup .content-box {
		padding: 16px; /* 赤枠の中も調整 */
	}

	.popup .close-btn {
		top: 0px;
		right: 0px;
		font-size: 32px; /* ボタンも小さめに */
	}
}
