/* 動画用モーダル */

/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-container {
	position: fixed;
	z-index: 5001;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	text-align: center;
	background: rgba(0, 0, 0, 50%);
	overflow: auto;
	opacity: 0;
	visibility: hidden;
	transition: .3s;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	overscroll-behavior: contain;
	overflow-y: scroll;
	scrollbar-width: none;
	-ms-overflow-style: none;
	touch-action: none;
}

.modal-container::before,
.modal-container::after {
	content: "";
	width: 1px;
	height: calc(100vh + 1px);
	display: flex;
}

.modal-container::-webkit-scrollbar {
	display: none;
}

/*モーダル本体の擬似要素の指定*/
.modal-container:before {
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}

/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-container.active {
	opacity: 1;
	visibility: visible;
}

/*モーダル枠の指定*/
.modal-body {
	position: relative;
	/* display: inline-block;
	vertical-align: middle; */
	display: grid;
	place-items: center;
	margin: 0 auto;
	width: 800px;

}


.modal-body iframe {
	width: 100%;
}

.youtube {
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 1em;
}

.youtube iframe {
	width: 100%;
	height: 100%;
}

/*モーダルを閉じるボタンの指定*/
.modal-close {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	top: -20px;
	right: -20px;
	width: 40px;
	height: 40px;
	font-size: 40px;
	color: #fff;
	cursor: pointer;
	text-indent: -9999px;
	background: url(../../images/btn_icon_close.svg) no-repeat;
}

/*モーダル内のコンテンツの指定*/
.modal-content {
	background: #fff;
	text-align: left;
	padding: 30px;
	width: 800px;
}

.movie-title {
	font-size: 18px;
	color: #06244D;
	margin-bottom: 1em;
	line-height: 1.6;
}

@media only screen and (max-width: 520px) {
	.modal-container {
		padding: 0 10px;
	}

	.modal-body {
		width: 97%;
		max-width: 97%;
	}

	.modal-content {
		padding: 0;
		width: 97%;
		max-width: 97%;
	}

	.movie-title {
		padding: 0 10px;
		font-size: 4.266vw;
	}

	.movie-contents {
		padding: 0 10px 10px;

	}

	.modal-close {
		top: -50px;
		right: 0px;
	}
}

/* PDF・小冊子用モーダル */

/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-pdf-container {
	position: fixed;
	z-index: 5001;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	background: rgba(0, 0, 0, 50%);
	padding: 40px 20px;
	overflow: auto;
	opacity: 0;
	visibility: hidden;
	transition: .3s;
	box-sizing: border-box;
}

/*モーダル本体の擬似要素の指定*/
.modal-pdf-container:before {
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}

/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-pdf-container.active {
	opacity: 1;
	visibility: visible;
}

/*モーダル枠の指定*/
.modal-pdf-body {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	max-width: 620px;
	width: 90%;
}

/*モーダルを閉じるボタンの指定*/
.modal-pdf-close {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	top: -40px;
	right: -40px;
	width: 40px;
	height: 40px;
	font-size: 40px;
	color: #fff;
	cursor: pointer;
}

/*モーダル内のコンテンツの指定*/
.modal-pdf-content {
	background: #fff;
	text-align: left;
	padding: 30px;
}