*{
	margin: 0;
	padding: 0;
}
html{
	min-height: 100vh;
}
body{
	font-family: "Noto Sans JP",sans-serif;
	background-image: url(../img/bg.jpg);
	background-position: right bottom;
	background-repeat: no-repeat;
	background-size: cover;
}
input{
	display: none;
}

/* -=-=-=-=-=-=-=-=-=-=-=- wrap -=-=-=-=-=-=-=-=-=-=- */
.wrap{
	box-sizing: border-box;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: min(5vw,30px);
	padding-right: min(5vw,30px);
}

/* -=-=-=-=-=-=-=-=-=-=-=- header -=-=-=-=-=-=-=-=-=-=- */
header{
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
}
header h1{
	color: #003e8d;
	font-family: "Questrial",sans-serif;
	font-size: min(18vw,6em);
	font-weight: 600;
	text-align: center;
	line-height: 0.9;
}
header label{
	font-size: 1rem;
	background-color: #003e8d;
	background-image: url(../img/icon_camera.svgz);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 60%;
	border-radius: 100%;
	display: block;
	width: min(30vw,10em);
	height: min(30vw,10em);
	margin-left: auto;
	margin-right: auto;
	cursor: pointer;
}
header label p{
	color: #003e8d;
	font-size: min(9vw,2.5em);
	font-weight: 600;
	text-align: center;
	text-indent: min(4vw,0.5em);
	letter-spacing: min(4vw,0.5em);
	margin-top: 80%;
	transform: translateY(-100%);
}
header.result{
	position: relative;
	left: 0;
	top: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: min(5vw,30px);
	margin-bottom: min(5vw,30px);
	transform: none;
}
header.result h1{
	font-size: min(10vw,3em);
}
header.result label{
	width: min(15vw,5em);
	height: min(15vw,5em);
	margin-left: 0;
	margin-right: 0;
}
header.result label p{
	display: none;
}

/* -=-=-=-=-=-=-=-=-=-=-=- main -=-=-=-=-=-=-=-=-=-=- */
main .result h2{
	color: #ffffff;
	font-size: min(4vw,2em);
	font-weight: 600;
	background-color: #003e8d;
	margin-bottom: 1em;
	padding: 0.5em;
	padding-left: 1em;
	padding-right: 1em;
}
main .result p{
	text-align: center;
}
main .result p img{
	max-width: 100%;
}

/* -=-=-=-=-=-=-=-=-=-=-=- modal -=-=-=-=-=-=-=-=-=-=- */
.modal,
.modal_filter{
	display: none;
}
.modal{
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(90vw,1000px);
	height: auto;
	transform: translate(-50%,-50%);
	z-index: 3;
}
.modal .modal_close{
	color: transparent;
	font-size: clamp(1rem,2.5vw,1.5rem);
	position: absolute;
	right: 0;
	top: -2.25em;
	width: 2em;
	height: 2em;
	cursor: pointer;
	overflow: hidden;
	transform: rotate(45deg);
}
.modal .modal_close::before,
.modal .modal_close::after{
	content: "";
	background-color: #ffffff;
	position: absolute;
	display: block;
}
.modal .modal_close::before{
	left: 0;
	top: 50%;
	width: 2em;
	height: 0.5em;
	transform: translateY(-50%);
}
.modal .modal_close::after{
	left: 50%;
	top: 0;
	width: 0.5em;
	height: 2em;
	transform: translateX(-50%);
}
.modal_content{
	font-size: clamp(1rem,4vw,1.5rem);
	background-color: #ffffff;
	border-style: solid;
	border-color: #003e8d;
	border-width: clamp(9px,1.5vw,15px);
	max-height: 78vh;
	padding: 1em;
	overflow-y: auto;
}
.modal_content p{
	font-size: 1em;
}
.modal_content span{
	font-size: 0.65em;
	text-align: right;
	display: block;
	margin-top: 1em;
}
.modal_filter{
	color: transparent;
	font-size: 0;
	background-color: rgba(0,0,0,0.75);
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	z-index: 2;
}
.modal.active,
.modal.active + .modal_filter{
	display: block;
	opacity: 100;
	animation-timing-function: linear;
	animation-delay: 0s;
	animation-duration: 0.3s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}
.modal.active{
	animation-name: modal_out;
}
.modal.active + .modal_filter{
	animation-name: filter_out;
}
.modal_flag:checked + .modal.active{
	display: block;
	opacity: 0;
	animation-name: modal_in;
	animation-timing-function: cubic-bezier(0.5,-1.05,0.35,1.85);
	animation-delay: 0.3s;
	animation-duration: 0.3s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}
.modal_flag:checked + .modal.active + .modal_filter{
	display: block;
	animation-name: none;
}
@keyframes modal_in{
	0%{
		opacity: 0;
		transform: translate(-50%,-50%) scale(1.5);
	}
	100%{
		opacity: 1;
		transform: translate(-50%,-50%) scale(1);
	}
}
@keyframes modal_out{
	0%{
		display: block;
		opacity: 1;
		transform: translate(-50%,-50%) scale(1);
	}
	100%{
		display: none;
		opacity: 0;
		transform: translate(-50%,-50%) scale(1.5);
	}
}
@keyframes filter_out{
	0%{
		display: block;
		opacity: 1;
		z-index: 1;
	}
	100%{
		display: none;
		opacity: 0;
		z-index: -1;
	}
}

/* -=-=-=-=-=-=-=-=-=-=-=- loading -=-=-=-=-=-=-=-=-=-=- */
#loading{
	color: transparent;
	font-size: 1rem;
	background-color: #ffffff;
	position: fixed;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	height: 100vh;
	z-index: 140;
}
.fade_out{
	animation-name: fade_out;
	animation-timing-function: linear;
	animation-delay: 0s;
	animation-duration: 0.5s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}
.loader,
.loader::after{
	border-radius: 50%;
	width: 4em;
	height: 4em;
}
.loader{
	text-indent: -100vw;
	border-style: solid;
	border-color: rgba(0,62,141,0.2);
	border-left-color: #003e8d;
	border-width: 0.5em;
	animation-name: loader_animation;
	animation-timing-function: linear;
	animation-delay: 0s;
	animation-duration: 1.2s;
	animation-iteration-count: infinite;
}
@keyframes loader_animation{
	0%{
		transform: rotate(0deg);
	}
	100%{
		transform: rotate(360deg);
	}
}
@keyframes fade_out{
	0%{
		display: flex;
		opacity: 1;
		z-index: 1;
	}
	100%{
		display: none;
		opacity: 0;
		z-index: -1;
	}
}