@charset "UTF-8";

/* cmn */
.nazo_num {
	position: relative;
	z-index: 1;
	width: fit-content;
	margin-bottom: 20px;
	padding: 8px 30px;
	color: #ffffff;
	font-weight: 900;
	text-align: center;
}

.nazo_num::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	background: url(../img/nazo/dam/cmn-ttl-bg@2.png) no-repeat center;
	background-size: 100% 100%;
}

.nazo_num > span {
	margin-left: 5px;
	font-size: 22px;
}

.-nazo-dam .main_wrap.-large {
	overflow: hidden;
	background: url(../img/nazo/dam/cmn-bg@2x.jpg) no-repeat center;
	background-size: 100% 100%;
}

.quiz_cmnbtn {
	display: flex;
	align-items: center;
	gap: 0 10px;
	width: fit-content;
	margin: 30px auto 0;
	padding: 10px 40px;
	border-radius: 10px;
	background-color: var(--color-key);
	color: #ffffff;
	font-weight: 900;
}

.quiz_cmnbtn::after {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	background: url(/syokuiku/vitachiku_no_nazo/img/cmn/icon-arrow-yellow.png) no-repeat center / contain;
}

/* index */
.index {
	position: relative;
	height: 100%;
	padding-top: 22vh;
	text-align: center;
}

.index .nazo_num {
	opacity: 0;
	transform: translateY(50px);
	margin: 0 auto 20px auto;
	animation: fadeInTtl 0.8s ease forwards;
}

.index_ttl {
	opacity: 0;
	transform: translateY(50px);
	color: #ffffff;
	animation: fadeInTtl 0.8s ease forwards;
	animation-delay: 0.1s;
}

@keyframes fadeInTtl {
	0% {
		opacity: 0;
		transform: translateY(50px);
	}

	100% {
		opacity: 1;
		transform: translateY(0px);
	}
}

.index_img {
	position: absolute;
	right: 0;
	bottom: 80px;
	left: 0;
	width: 90%;
	margin: 0 auto;
	aspect-ratio: 1256/313;
}

.index_img > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* key */
.-key .main_wrap {
	display: flex;
	justify-content: center;
	align-items: center;
}

.key {
	width: 100%;
}

.key_wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0 40px;
	width: 100%;
}

.key_text {
	flex: 1;
	color: #ffffff;
}

.key_text_q {
	margin-top: 20px;
}

.key_text_q_cnt {
	margin-top: 20px;
}

.key_text_q_cnt_list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px 2%;
}

.key_text_q_cnt_list input {
	display: none;
}

.key_text_q_cnt_list label {
	display: block;
	width: 32%;
	padding: 10px;
	border: 4px solid #015229;
	border-radius: 20px;
	box-shadow: var(--shadow);
	background-color: #ffffff;
	color: #015229;
	font-weight: 900;
	font-size: 20px;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
}

input:checked + label {
	background-color: #015229;
	color: #ffffff;
}

.key_text_a {
	opacity: 0;
	transform: translateY(50px);
	margin-top: 20px;
	animation: fadeInAnswer 0.5s ease forwards;
	animation-delay: 0.2s;
}

.key_text_a_hd {
	width: fit-content;
	padding: 6px 10px;
	border-top: 2px solid #e3b800;
	border-bottom: 2px solid #e3b800;
	font-weight: 900;
}

.key_text_a_hd > span {
	margin-left: 5px;
	color: #ffe058;
	font-size: 20px;
}

.key_text_a_cnt {
	margin-top: 10px;
}

@keyframes fadeInAnswer {
	0% {
		opacity: 0;
		transform: translateY(50px);
	}

	100% {
		opacity: 1;
		transform: translateY(0px);
	}
}

.key_img {
	position: relative;
	width: 60%;
}

.key_img > img.-photo {
	opacity: 0;
	transform: translateY(100px);
	width: 100%;
	max-height: 80vh;
	animation: fadeInPhoto 1s ease forwards;
	animation-delay: 0.2s;
	object-fit: contain;
}

@keyframes fadeInPhoto {
	0% {
		opacity: 0;
		transform: translateY(100px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.key_img > img.-wan {
	opacity: 0;
	position: absolute;
	bottom: 0;
	left: 90px;
	transform: scale(0);
	animation: fadeInWan 0.2s ease forwards;
	animation-delay: 0.7s;
}

@keyframes fadeInWan {
	0% {
		opacity: 0;
		transform: scale(0);
	}

	90% {
		opacity: 1;
		transform: scale(1.3);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

/* movie */
.-movie .main_wrap {
	display: flex;
	justify-content: center;
	align-items: center;
}

.movie_ttl {
	margin-bottom: 30px;
	text-align: center;
}

.movie_cnt {
	height: 65vh;
	margin: 0 auto;
	aspect-ratio: 1920/1080;
}

.movie_cnt iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: none;
}

@media screen and (max-width:768px) {
}
