/**
 * プライバシーポリシーモーダルの表示領域を管理する。
 *
 * 背景スクロールの停止、ダイアログの最大高、前面レイヤーを共通化する。
 * キーボードフォーカスの制御はprivacy-modal.jsが担当し、CSSは表示状態だけを扱う。
 */

body.privacy-modal-open {
	overflow: hidden;
}

.privacy-modal {
	position: fixed;
	inset: 0;
	z-index: 3000;
	display: grid;
	place-items: center;
	padding: 24px;
}

.privacy-modal[hidden] {
	display: none;
}

.privacy-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(158, 83, 105, 0.62);
	backdrop-filter: blur(5px);
}

.privacy-modal__dialog {
	position: relative;
	width: min(760px, 100%);
	max-height: min(86vh, 880px);
	overflow: auto;
	padding: 42px 44px 38px;
	background: #fff7fb;
	border-radius: 22px;
	box-shadow: 0 24px 70px rgba(158, 83, 105, 0.28);
}

.privacy-modal__close {
	position: absolute;
	top: 16px;
	right: 18px;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	color: #ef78bc;
	font-size: 28px;
	line-height: 1;
	background: rgba(239, 120, 188, .030);
	border: 1px solid rgba(239, 120, 188, .140);
	border-radius: 50%;
	cursor: pointer;
}

.privacy-modal__eyebrow {
	margin: 0 0 10px;
	color: #ef78bc;
	font-family: Oswald, sans-serif;
	font-size: 13px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.privacy-modal__dialog h2 {
	margin: 0 52px 24px 0;
	color: #9e5369;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 500;
	letter-spacing: 0.06em;
}

.privacy-modal__intro,
.privacy-modal__section p,
.privacy-modal__section li {
	color: #5f5559;
	font-size: 14px;
	line-height: 1.9;
}

.privacy-modal__section {
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid rgba(239, 120, 188, .140);
}

.privacy-modal__section h3 {
	margin: 0 0 10px;
	color: #9e5369;
	font-size: 17px;
}

.privacy-modal__section ul {
	margin: 0;
	padding-left: 1.3em;
}

.privacy-modal__actions {
	margin-top: 30px;
	display: flex;
	justify-content: center;
}

.privacy-modal__button {
	min-width: 180px;
	min-height: 48px;
	padding: 0 24px;
	color: #fff;
	font-weight: 700;
	background: #9e5369;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

@media (max-width: 640px) {
	.privacy-modal {
		padding: 14px;
	}

	.privacy-modal__dialog {
		padding: 34px 22px 28px;
		border-radius: 16px;
	}

	.privacy-modal__close {
		top: 10px;
		right: 10px;
	}

	.privacy-modal__dialog h2 {
		margin-right: 38px;
	}
}

.privacy-modal__section p + p,
.privacy-modal__section ul + p {
	margin-top: 12px;
}

.privacy-modal__links {
	margin-top: 14px;
}

.privacy-modal__section a {
	color: #9e5369;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.privacy-modal__contact {
	margin-top: 14px;
	padding: 16px 18px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.7);
	color: #5f5559;
	font-size: 14px;
	font-style: normal;
	line-height: 1.9;
}
