@charset "utf-8";

/* ============================================
   block--movie : 施設紹介動画モーダル
   ============================================ */
.block--movie {
	margin: 20px 0 30px;
}

.block--movie__inner {
	max-width: 480px;
	margin: 0 auto;
}

.block--movie__link {
	position: relative;
	display: block;
	text-decoration: none;
	overflow: hidden;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: opacity 0.2s ease;
}

.block--movie__link:hover {
	opacity: 0.85;
}

.block--movie__link .img img {
	display: block;
	width: 100%;
	height: auto;
}

.block--movie__link .heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: #fff;
	font-weight: bold;
	font-size: 16px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.block--movie__link .heading svg {
	width: 68px;
	height: 48px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ============================================
   モーダル本体
   ============================================ */
.modal-area.is-open {
	display: flex !important;
	align-items: center;
	justify-content: center;
	position: fixed;
	inset: 0;
	z-index: 9999;
	padding: 20px;
	background: rgba(240, 239, 234, 0.96);
	overflow-y: auto;
	animation: modalFadeIn 0.25s ease-out both;
}

.modal-area.is-open .modal--movie {
	position: relative;
	width: 100%;
	max-width: 720px;
	max-height: calc(100vh - 40px);
	margin: auto;
	padding: 40px 20px 20px;
	/* background: #fff; */
	/* border-radius: 6px; */
	box-sizing: border-box;
	overflow-y: auto;
	animation: modalScaleIn 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.1) both;
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes modalScaleIn {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.94);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.modal-area.is-closing {
	animation: modalFadeOut 0.22s ease-in both;
}

.modal-area.is-closing .modal--movie {
	animation: modalScaleOut 0.22s ease-in both;
}

@keyframes modalFadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes modalScaleOut {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
	to {
		opacity: 0;
		transform: translateY(8px) scale(0.96);
	}
}

@media (prefers-reduced-motion: reduce) {
	.modal-area.is-open,
	.modal-area.is-open .modal--movie,
	.modal-area.is-closing,
	.modal-area.is-closing .modal--movie {
		animation: none;
	}
}

.modal__inner {
	width: 100%;
}

.modal--movie .youtube {
	position: relative;
	width: 100%;
	max-width: 360px;
	margin: 0 auto;
	aspect-ratio: 9 / 16; /* YouTube Shorts (縦動画) */
	background: #000;
}

.modal--movie .youtube iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* .modal--movie .button-close-top {
	position: absolute;
	top: 8px;
	right: 8px;
} */

/* .modal--movie .icon--close {
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	position: relative;
}

.modal--movie .icon--close::before,
.modal--movie .icon--close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 24px;
	height: 2px;
	background: #333;
	transform-origin: center;
}

.modal--movie .icon--close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.modal--movie .icon--close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
} */

.modal--movie .button-area {
	margin-top: 16px;
	text-align: center;
}

.modal--movie .button--close {
	display: inline-block;
	min-width: 160px;
	padding: 10px 24px;
	background: #18A29A;
	color: #fff;
	font-size: 14px;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.modal--movie .button--close:hover {
	opacity: 0.85;
}

@media screen and (max-width: 640px) {
	.modal-area.is-open .modal--movie {
		margin: 2vh 10px;
		padding: 36px 12px 16px;
	}
	.block--movie__link .heading {
		font-size: 14px;
	}
}
