html.modal-active,
body.modal-active{
	overflow: hidden !important;
}
#modal-container,
#modal-container2,
#modal-container3,
#modal-container4{
	position: fixed;
	display: table;
	min-height: 100vh;
	height: 100vh;
	height: 100lvh;
	width: 100%;
	top: 0;
	left: 0;
	transform: scale(0);
	z-index: 9999999999;
}
.modal-wrapper{
	position: relative;
}
#modal-container.one,
#modal-container2.two,
#modal-container3.three,
#modal-container4.four{
	transform: scaleY(0.01) scaleX(0);
	animation: unfoldIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#modal-container.one .modal-background .modal,
#modal-container2.two .modal-background .modal,
#modal-container3.three .modal-background .modal,
#modal-container4.four .modal-background .modal{
	transform: scale(0);
	animation: zoomIn 0.5s 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#modal-container.one.out,
#modal-container2.two.out,
#modal-container3.three.out,
#modal-container4.four.out{
	transform: scale(1);
	animation: unfoldOut 1s 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#modal-container.one.out .modal-background .modal,
#modal-container2.two.out .modal-background .modal,
#modal-container3.three.out .modal-background .modal,
#modal-container4.four.out .modal-background .modal{
	animation: zoomOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}



#modal-container .modal-background,
#modal-container2 .modal-background,
#modal-container3 .modal-background,
#modal-container4 .modal-background{
	/* display: table-cell; */
	display: block;
	background: rgba(142,206,200,0.85);
	text-align: center;
	vertical-align: middle;
	min-height: 100vh;
	height: 100vh;
	height: 100lvh;

	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}
#modal-container .modal-background .modal,
#modal-container2 .modal-background .modal,
#modal-container3 .modal-background .modal,
#modal-container4 .modal-background .modal{
	/* background: rgba(0, 0, 0, 0.5); */
	/* padding: 50px; */
	display: inline-block;
	/* border-radius: 2px; */
	position: relative;

	min-height: 100vh;
	height: 100vh;
	height: 100dvh;
	width: 100%;

	display: flex;
	justify-content: center;
	align-items: center;
}
@media screen and (min-width: 1024px){
	#modal-container .modal-background .modal,
	#modal-container2 .modal-background .modal,
	#modal-container3 .modal-background .modal,
	#modal-container4 .modal-background .modal{
		height: auto;
	}
}
/* #modal-container .modal-background .modal h2{
	font-size: 25px;
	line-height: 25px;
	margin-bottom: 15px;
}
#modal-container .modal-background .modal p{
	font-size: 18px;
	line-height: 22px;
} */
#modal-container .modal-background .modal .modal-svg{
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	border-radius: 3px;
}
#modal-container .modal-background .modal .modal-svg rect{
	stroke: #fff;
	stroke-width: 2px;
	stroke-dasharray: 778;
	stroke-dashoffset: 778;
}




/* movie.html */
body.modal-open{
	overflow: hidden;
	touch-action: none;
}
.modal{
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.8);
	justify-content: center;
	align-items: center;
	z-index: 9999;
}
.modal-content{
	position: relative;
	width: 90%;
	max-width: 960px;
	background: #000;
	box-sizing: border-box;
}
.modal-close{
	position: absolute;
	top: -44px;
	right: 0px;
	color: #FFF;
	font-size: 32px;
	cursor: pointer;
	z-index: 10001;
}
.modal-video{
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
}
.modal-video iframe{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.youtube-thumb{
    position: relative;
    cursor: pointer;

	width: 100%;
    padding-top: 56.25%; /* 16:9のアスペクト比 */
    overflow: hidden;
    background-color: #000;
}
.youtube-thumb img{
    display: block;
    width: 100%;
    height: auto;

	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-height: 100%;
    object-fit: cover;
}
.play-button{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: url('../img/play-btn-circle.png') no-repeat center;
    background-size: contain;
    border: 4px solid rgba(255,255,255,0.5);
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.35));
    border-radius: 100%;
    transition: 0.5s;

	/* background-size: auto; */
	z-index: 1;
	/* #4c9863 */
	/* rgba(76,152,99,1); */
}
.youtube-thumb img:hover{
	opacity: 0.65;
}
.youtube-thumb:hover .play-button{
	border: 4px solid #76ab47;;
	transition: 0.5s;
	filter: drop-shadow(0 0 2px rgba(76,152,99,0.8));
}





@keyframes unfoldIn{
	0%{
		transform: scaleY(0.005) scaleX(0);
	}
	50%{
		transform: scaleY(0.005) scaleX(1);
	}
	100%{
		transform: scaleY(1) scaleX(1);
	}
}
@keyframes unfoldOut{
	0%{
		transform: scaleY(1) scaleX(1);
	}
	50%{
		transform: scaleY(0.005) scaleX(1);
	}
	100%{
		transform: scaleY(0.005) scaleX(0);
	}
}
@keyframes zoomIn{
	0%{
		transform: scale(0);
	}
	100%{
		transform: scale(1);
	}
}
@keyframes zoomOut{
	0%{
		transform: scale(1);
	}
	100%{
		transform: scale(0);
	}
}
@keyframes fadeIn{
	0%{
		background: rgba(0, 0, 0, 0);
	}
	100%{
		background: rgba(0, 0, 0, 0.7);
	}
}
@keyframes fadeOut{
	0%{
		background: rgba(0, 0, 0, 0.7);
	}
	100%{
		background: rgba(0, 0, 0, 0);
	}
}
@keyframes scaleUp{
	0%{
		transform: scale(0.8) translateY(1000px);
		opacity: 0;
	}
	100%{
		transform: scale(1) translateY(0px);
		opacity: 1;
	}
}
@keyframes scaleDown{
	0%{
		transform: scale(1) translateY(0px);
		opacity: 1;
	}
	100%{
		transform: scale(0.8) translateY(1000px);
		opacity: 0;
	}
}
@keyframes scaleBack{
	0%{
		transform: scale(1);
	}
	100%{
		transform: scale(0.85);
	}
}
@keyframes scaleForward{
	0%{
		transform: scale(0.85);
	}
	100%{
		transform: scale(1);
	}
}
@keyframes quickScaleDown{
	0%{
		transform: scale(1);
	}
	99.9%{
		transform: scale(1);
	}
	100%{
		transform: scale(0);
	}
}
@keyframes slideUpLarge{
	0%{
		transform: translateY(0%);
	}
	100%{
		transform: translateY(-100%);
	}
}
@keyframes slideDownLarge{
	0%{
		transform: translateY(-100%);
	}
	100%{
		transform: translateY(0%);
	}
}
@keyframes moveUp{
	0%{
		transform: translateY(150px);
	}
	100%{
			transform: translateY(0);
	}
}
@keyframes moveDown{
	0%{
		transform: translateY(0px);
	}
	100%{
		transform: translateY(150px);
	}
}
@keyframes blowUpContent{
	0%{
		transform: scale(1);
		opacity: 1;
	}
	99.9%{
		transform: scale(2);
		opacity: 0;
	}
	100%{
		transform: scale(0);
	}
}
@keyframes blowUpContentTwo{
	0%{
		transform: scale(2);
		opacity: 0;
	}
	100%{
		transform: scale(1);
		opacity: 1;
	}
}
@keyframes blowUpModal{
	0%{
		transform: scale(0);
	}
	100%{
		transform: scale(1);
	}
}
@keyframes blowUpModalTwo{
	0%{
		transform: scale(1);
		opacity: 1;
	}
	100%{
		transform: scale(0);
		opacity: 0;
	}
}
@keyframes roadRunnerIn{
	0%{
		transform: translateX(-1500px) skewX(30deg) scaleX(1.3);
	}
	70%{
		transform: translateX(30px) skewX(0deg) scaleX(0.9);
	}
	100%{
		transform: translateX(0px) skewX(0deg) scaleX(1);
	}
}
@keyframes roadRunnerOut{
	0%{
		transform: translateX(0px) skewX(0deg) scaleX(1);
	}
	30%{
		transform: translateX(-30px) skewX(-5deg) scaleX(0.9);
	}
	100%{
		transform: translateX(1500px) skewX(30deg) scaleX(1.3);
	}
}
@keyframes sketchIn{
	0%{
		stroke-dashoffset: 778;
	}
	100%{
		stroke-dashoffset: 0;
	}
}
@keyframes sketchOut{
	0%{
		stroke-dashoffset: 0;
	}
	100%{
		stroke-dashoffset: 778;
	}
}
@keyframes modalFadeIn{
	0%{
		background-color: transparent;
	}
	100%{
		background-color: white;
	}
}
@keyframes modalFadeOut{
	0%{
		background-color: white;
	}
	100%{
		background-color: transparent;
	}
}
@keyframes modalContentFadeIn{
	0%{
		opacity: 0;
		top: -20px;
	}
	100%{
		opacity: 1;
		top: 0;
	}
}
@keyframes modalContentFadeOut{
	0%{
		opacity: 1;
		top: 0px;
	}
	100%{
		opacity: 0;
		top: -20px;
	}
}
@keyframes bondJamesBond{
	0%{
		transform: translateX(1000px);
	}
	80%{
		transform: translateX(0px);
		border-radius: 75px;
		height: 75px;
		width: 75px;
	}
	90%{
		border-radius: 3px;
		height: 182px;
		width: 247px;
	}
	100%{
		border-radius: 3px;
		height: 162px;
		width: 227px;
	}
}
@keyframes killShot{
	0%{
		transform: translateY(0) rotate(0deg);
		opacity: 1;
	}
	100%{
		transform: translateY(300px) rotate(45deg);
		opacity: 0;
	}
}
@keyframes fadeToRed{
	0%{
		background-color: rgba(0, 0, 0, 0.6);
	}
	100%{
		background-color: rgba(255, 0, 0, 0.5);
	}
}
@keyframes slowFade{
	0%{
		opacity: 1;
	}
	99.9%{
		opacity: 0;
		transform: scale(1);
	}
	100%{
		transform: scale(0);
	}
}