@charset "UTF-8";


/*****************************************************************
************************  Modal Window ***************************
*****************************************************************/
#modalWindow
{
	background-color: rgba(0, 0, 0, .8);
}

#modalWindow .jump_cont
{
	display: flex;
	flex-wrap:wrap;
	color: white;
	max-width: 800px;
	margin: 0 auto;
	align-items:flex-end;
	justify-content: center;
}

#modalWindow .text
{
	font-family: 'GG-M';
	font-weight: 550;
	margin: 1rem;
}

#modalWindow .text > div
{
	display:flex;
	flex-direction: column;
	flex-wrap:wrap;
	justify-content:flex-end;
}

#modalWindow .text > div > p
{
	font-family: 'Zen-B', serif;
	font-weight: 700;
	font-size: 1.2em;
	margin: .5em;
	display:flex;
	flex-direction: column;
	flex-wrap:wrap;
}

#modalWindow a.box
{
	margin-top: 2em;
	width: 100%;
	text-align: center;
	color: rgb(50, 50, 50);
	background-color: rgba(255, 255, 255, 1);
}
body:not(.touch) #modalWindow a.box:hover
{
	background-color: rgba(255, 255, 255, .5);
}

#modalWindow figure
{
	margin: 1rem;
	width: min(100%, calc( (100vh - 10rem) * 210 / 297));
	max-width: 300px;
	aspect-ratio: 210 / 297;
}

#modalWindow figure img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}


@media (orientation: portrait) 
{
	#modalWindow figure
	{
		width: calc(20vh  * 297 / 210);
	}
}