@charset "utf-8";

@-ms-viewport {
  width: device-width;
}

@viewport {
  width: device-width;
}

* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#sec_quiz{
	font-family: "Zen Maru Gothic", sans-serif;
}

#sec_quiz img{
	width: 100%;
	height: auto;
	display: block;
}

#sec_quiz ol{
	list-style: none;
}

#sec_quiz li{
	margin: 0;
	padding: 0;
}

.pc{display:block!important;}
.sp{display:none!important;}


/*Contents layout
----------------------------------------------------*/
.contents:after,
dl:after{
	visibility: hidden;
	display: block;
	font-size: 0px;
	content: " ";
	clear: both;
	height: 0;
}


/*header/footer
----------------------------------------------------*/
/*header{
	height: 255px;
	background: #EEEDE0;
	text-align: center;
}

footer{
	height: 120px;
	background: #015077;
	text-align: center;	
	color: #FFF;
}*/

#sec_quiz{
	background: url("../img/bg.jpg") no-repeat center center / cover;
}

.contents{
	position: relative;
	width: 1200px;
	margin: 0 auto;
	padding: 30px 0 40px 0;
}

@media only screen and (max-width: 1260px) {
.contents{
	width: 94%;
}
}


/*home
----------------------------------------------------*/
.box_main_home{
	margin-bottom: 30px;
	display: grid;
	grid-template-columns: 690px 1fr;
	grid-gap: 120px;
}

#sec_quiz .box_main_home .illust{
	width: auto!important;
	margin-top: 25px;
}

#sec_quiz .box_main_home .illust img{
	width: 160px;
	margin: -40px auto 0 auto;
}

#sec_quiz .box_main_home .illust .box_fukidashi{
	width: 300px;
	padding: 15px 0 60px 0;
	background: url("../img/bg_fukidashi01.png") no-repeat center center / contain;
	line-height: 1.0;
	font-size: 17px;
	text-align: center;
}

.kakomi{
	padding: 10px 20px;
	background: #FFF;
	border: 2px solid #EDAFFD;
	border-radius: 5px;
	text-align: center;
}


/*question
----------------------------------------------------*/
.contents .illust{
	position: absolute;
	top: 0;
	right: 0;
	width: 180px!important;
	margin: 10px auto 0 auto;
}

.p-quiz-ttl{
	margin-bottom: 15px;
	font-weight: 500;
	text-align: center;
}

.p-quiz-ttl span{
	position: relative;
	padding-left: 0.1em;
	font-family: "Montserrat", sans-serif;
	font-size: 50px;
	font-weight: 500;
	line-height: 1.0;
	z-index: 2;
}

.p-quiz-ttl span:after{
	position: absolute;
	bottom: 0;
	right: -5px;
	width: 0;
	height: 0;
	border-top: 20px solid transparent;
	border-left: 20px solid transparent;
	border-right: 20px solid #B4FDCC;
	border-bottom: 20px solid #B4FDCC;
	content: "";
	display: block;
	z-index: -1;
}

.box_q{
	position: relative;
	margin-bottom: 30px;
	padding: 15px 30px;
	font-size: 20px;
	font-size: 500;
	text-align: center;
}

.box_q:before,
.box_q:after{
	position: absolute;
	width: 40px;
	height: 40px;
	content: "";
	display: block;	
}

.box_q:before{
	top: 0;
	left: 0;
	border-top: 18px solid #9AF6F9;
	border-left: 18px solid #9AF6F9;
	border-right: 18px solid transparent;
	border-bottom: 18px solid transparent;
}

.box_q:after{
	bottom: 0;
	right: 0;
	border-top: 18px solid transparent;
	border-left: 18px solid transparent;
	border-right: 18px solid #EDAFFD;
	border-bottom: 18px solid #EDAFFD;
}

.box_q span{
	color: #EB0000;
}

.box_q .illust{
	position: absolute;
	top: -2em;
	right: -2em;
}


/*choises
----------------------------*/
.p-quiz-choices{
	margin-bottom: 50px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 40px;
}

.p-quiz-choices.home{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 40px;
}

.p-quiz-choices:before,
.p-quiz-choices:after{
	display: none;
}

.p-quiz-choices li{
	position: relative;
	height: 220px;
	background: #FFF;
	border: 5px solid #55EFB1;
	border-radius: 10px;
	box-shadow: 0 0 12px 2px rgba(0,0,0,0.1);
	display: flex;
	justify-content: center;
	align-items: center;
	transition: .2s;
}

.check01 .p-quiz-choices li.unknown,
.check02 .p-quiz-choices li.unknown{
	background: #e2e2e2;
}

.p-quiz-choices li:before{
	position: absolute;
	bottom: 0;
	right: 0;
	width: 45px;
	height: 45px;
	background: url("../img/icon_link_panel.png") no-repeat center / cover;
	content: "";
	display: block;
}

@media (any-hover: hover) {
.p-quiz-choices li:hover{
	transform: scale(1.02);
}
}

.p-quiz-choices li button{
	height: 220px;
	padding: 20px;
	background: none;
	border: 0;
	font-family: "Zen Maru Gothic", sans-serif;
	font-size: 20px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
}

.p-quiz-choices.home li a{
	font-size: 36px;
	font-weight: 900;
	text-align: center;
	background: linear-gradient(to right, #0098C2, #8200B5); 
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	line-height: 1.4;
}

.p-quiz-choices li.maru,
.p-quiz-choices li.batsu{
	padding: 20px!important;
	border: 5px solid #BBC4C0;
	font-family: "Zen Maru Gothic", sans-serif;
	font-size: 20px;
	font-weight: 500;
	color: #666;
	text-align: left;
	cursor: pointer;
}

.p-quiz-choices li.maru:before,
.p-quiz-choices li.batsu:before{
	display: none;
}

.p-quiz-choices li.maru{
	background: url("../img/bg_maru_gray.png") no-repeat center / 140px;
}

.p-quiz-choices li.batsu{
	background: url("../img/bg_batsu_gray.png") no-repeat center / 140px;
}

.p-quiz-choices li.maru:has(.quiz-label-user-choice){
	border: 5px solid #FF5A5A;
	background: #FFF url("../img/bg_maru.png") no-repeat center / 140px;
	color: #000;
}

.p-quiz-choices li.batsu:has(.quiz-label-user-choice){
	border: 5px solid #7AB4D4;
	background: #FFF url("../img/bg_batsu.png") no-repeat center / 140px;
	color: #000;
}

.check01 .p-quiz-choices li:nth-of-type(4).batsu,
.check02 .p-quiz-choices li:nth-of-type(4).batsu{
	background: #F2F2F2 url("../img/bg_batsu_gray.png") no-repeat center / 140px;
}

.check01 .p-quiz-choices li:nth-of-type(4).batsu:has(.quiz-label-user-choice),
.check02 .p-quiz-choices li:nth-of-type(4).batsu:has(.quiz-label-user-choice){
	border: 5px solid #7AB4D4;
	background: #F2F2F2 url("../img/bg_batsu.png") no-repeat center / 140px;
	color: #000;
}


/*anime
-------------------*/
.p-quiz-choices li.maru:has(.quiz-label-user-choice),
.p-quiz-choices li.batsu:has(.quiz-label-user-choice){
	-webkit-animation-fill-mode:both;
	-ms-animation-fill-mode:both;
	animation-fill-mode:both;
	visibility: visible !important;	
	-webkit-animation-duration:0.3s;
	-ms-animation-duration:0.3s;
	animation-duration:0.3s;
	-webkit-animation-name: bound;
	-ms-animation-name: bound;
	animation-name: bound;
	animation-timing-function: ease-in;
}

@keyframes bound {
	0% { opacity: 0; transform: scale(1.2); }
	50% { opacity: 1; transform: scale(0.9); }
	90% { opacity: 1; transform: scale(1.05); }
	96% { opacity: 1; transform: scale(0.95); }
	100% { opacity: 1; transform: scale(1); }
}

.p-quiz-choices li.maru:has(.quiz-label-user-choice):before,
.p-quiz-choices li.batsu:has(.quiz-label-user-choice):before{
	position: absolute;
	top: 0;
	left: 0;
	width: 62px;
	height: 48px;
	content: "";
	display: block;	
}

.p-quiz-choices li.maru:has(.quiz-label-user-choice):after,
.p-quiz-choices li.batsu:has(.quiz-label-user-choice):after{
	position: absolute;
	bottom: 0;
	right: 0;
	width: 62px;
	height: 48px;
	content: "";
	display: block;
}

.p-quiz-choices li.maru:has(.quiz-label-user-choice):before{background: url("../img/bg_maru_before.png") no-repeat center / cover;}
.p-quiz-choices li.batsu:has(.quiz-label-user-choice):before{background: url("../img/bg_batsu_before.png") no-repeat center / cover;}

.p-quiz-choices li.maru:has(.quiz-label-user-choice):after{background: url("../img/bg_maru_after.png") no-repeat center / cover;}
.p-quiz-choices li.batsu:has(.quiz-label-user-choice):after{background: url("../img/bg_batsu_after.png") no-repeat center / cover;}

.quiz-label-correct{
	display: none;
}

.quiz-label-user-choice{
	display: none;
}

.p-quiz-next{
	position: relative;
	height: 60px;
	text-align: center;
}

.p-quiz-next .js-quiz-prev{
	position: absolute;
	left:0;
	padding: 5px 15px 5px 25px;
	background: #FFF url("../img/icon_link_back.png") no-repeat 8px center / 0.4em;
	border: 3px solid #55EFB1;
	border-radius: 10px;
	box-shadow: 0 0 12px 2px rgba(0,0,0,0.1);
	line-height: 1.4;
	font-family: "Zen Maru Gothic", sans-serif;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
}

.p-quiz-next .js-quiz-next{
	margin: 0 auto;
	padding: 10px 50px;
	background: #FFF url("../img/icon_link.png") no-repeat right 8px center / 0.4em;
	border: 3px solid #55EFB1;
	border-radius: 10px;
	box-shadow: 0 0 12px 2px rgba(0,0,0,0.1);
	line-height: 1.4;
	font-family: "Zen Maru Gothic", sans-serif;
	font-size: 20px;
	font-weight: 500;
	cursor: pointer;
}


/*result
----------------------------------------------------*/
.box_result{
	margin: 40px auto 80px auto;
	text-align: center;
}

.box_result .ttl_result{
	margin-bottom: 10px;
	background: url("../img/bg_ttl_result.png") no-repeat center / 8em;
	font-size: 30px;
	font-weight: 500;
}

.box_result .num_result{
	font-size: 30px;
}

.box_result .num_result .all{
	font-size: 50px;
}

.box_result .num_result .correct{
	margin: 0 10px;
	padding: 0 25px 20px 25px;
	background: #EB0000;
	border-radius: 10px;
	line-height: 0.8;
	font-size: 120px;
	font-weight: 900;
	color: #FFF;
}

#sec_quiz .illust_result{
	position: absolute;
	top:50px;
	right:0;
	width: auto!important;
}

#sec_quiz .illust_result img{
	width: 180px;
	margin: -40px auto 0 auto;
}

#sec_quiz .illust_result .box_fukidashi{
	width: 300px;
	padding: 15px 0 60px 0;
	background: url("../img/bg_fukidashi01.png") no-repeat center center / contain;
	line-height: 1.4;
	font-size: 17px;
	text-align: center;
}

.q1,
.q2,
.q3,
.q4,
.q5{
	margin-bottom: 50px;
	background: #FFF;
	border: 5px solid #1B98DD;
	border-radius: 10px;
	box-shadow: 0 0 12px 2px rgba(0,0,0,0.1);
}

.box_result_question{
	padding: 30px 30px 30px 0;
	background: linear-gradient(to right, #F6FFFC, #E8FFF6);
	border-radius: 10px 10px 0 0;
	display: grid;
	grid-template-columns: 270px 1fr;
}

.box_result_question .p-quiz-ttl{
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.box_result_question .box_q{
	margin-bottom: 0;
	padding: 25px 40px;
}

.box_result_comment{
	padding: 30px;
	display: grid;
	grid-template-columns: 270px 1fr;	
	grid-gap: 50px;
}

.user-choice-correct,
.user-choice-incorrect{
	position: relative;
	height: 220px;
	padding: 20px!important;
	background: #FFF;
	border: 5px solid #55EFB1;
	border-radius: 10px;
	box-shadow: 0 0 12px 2px rgba(0,0,0,0.1);
	font-family: "Zen Maru Gothic", sans-serif;
	font-size: 20px;
	font-weight: 500;
	text-align: left;
	display: flex;
	justify-content: center;
	align-items: center;
}

.user-choice-correct{
	border: 5px solid #FF5A5A;
	background: #FFF url("../img/bg_maru.png") no-repeat center / 140px;
	color: #000;
}

.user-choice-incorrect{
	border: 5px solid #7AB4D4;
	background: #FFF url("../img/bg_batsu.png") no-repeat center / 140px;
	color: #000;
}

.user-choice-correct:before,
.user-choice-incorrect:before{
	position: absolute;
	top: 0;
	left: 0;
	width: 62px;
	height: 48px;
	content: "";
	display: block;
}

.user-choice-correct:after,
.user-choice-incorrect:after{
	position: absolute;
	bottom: 0;
	right: 0;
	width: 62px;
	height: 48px;
	content: "";
	display: block;
}

.user-choice-correct:before{background: url("../img/bg_maru_before.png") no-repeat center / cover;}
.user-choice-incorrect:before{background: url("../img/bg_batsu_before.png") no-repeat center / cover;}

.user-choice-correct:after{background: url("../img/bg_maru_after.png") no-repeat center / cover;}
.user-choice-incorrect:after{background: url("../img/bg_batsu_after.png") no-repeat center / cover;}


/*comment
----------------------------*/
.box_answer{
	margin-bottom: 40px;
}

.box_answer h3,
.box_comment h3{
	position: relative;
	width: 100px;
	margin-bottom: 10px;
	font-weight: 500;
	text-align: center;
}

.box_answer h3{border: 2px solid #9AF6F9;}
.box_comment h3{border: 2px solid #EDAFFD;}

.box_answer h3:before,
.box_comment h3:before{
	position: absolute;
	top: 0;
	left: 0;
	width: 25px;
	height: 19px;
	content: "";
	display: block;
}

.box_answer h3:after,
.box_comment h3:after{
	position: absolute;
	bottom: 0;
	right: 0;
	width: 25px;
	height: 19px;
	content: "";
	display: block;
}

.box_answer h3:before{background: url("../img/bg_answer_before.png") no-repeat center / cover;}
.box_comment h3:before{background: url("../img/bg_comment_before.png") no-repeat center / cover;}

.box_answer h3:after{background: url("../img/bg_answer_after.png") no-repeat center / cover;}
.box_comment h3:after{background: url("../img/bg_comment_after.png") no-repeat center / cover;}

.box_answer dl{
	display: grid;
	grid-template-columns: 1em 1fr;
	grid-gap:15px;
}

.box_answer dl:after{
	display: none;
}

.box_answer dl dt{
	font-weight: bold;
	color: #737373;
	text-align: center;
	display: grid;
	align-self: end;
}

.box_answer dl.correct dt{
	color: #EB0000;
}

.box_example{
	margin-top: 40px;
}

.box_example h4{
	position: relative;
	width: 32em;
	margin: 0 0 -1.7em -1.0em;
	padding: 1em 0 1.1em 2.5em;
	background: url("../img/bg_ttl_example.png") no-repeat left center / contain;
	font-size: 20px;
	font-weight: 700;
	color: #FFF;
	display: flex;
	align-items: center;
	z-index: 1;
}

.result01 .box_example h4{
	padding: 1em 0 1.1em 1.5em;
	background: url("../img/bg_ttl_example.png") no-repeat left center / contain;	
}

.box_example h4 span{
	padding: 0.4em 3.4em 0.6em 0;
	line-height: 1.4;
	font-size: 16px;
	font-weight: 500;
	color: #000;
	text-align: right;
}

.result01 .box_example h4 span{
	padding: 0.4em 2.5em 0.6em 0;
	text-align: center;
}

.result01 .box_example h4 em{
	font-style: normal;
}

.box_example .inner{
	position: relative;
	padding: 30px 20px 20px 20px;
	background: #1B8359;
	color: #FFF;
}

.box_example .inner:before,
.box_example .inner:after{
	position: absolute;
	width: 20px;
	height: 30px;
	content: "";
	display: block;
}

.box_example .inner:before{
	top: 0;
	left: 0;
	background: url("../img/bg_example_before.png") no-repeat center / cover;
}
.box_example .inner:after{
	bottom: 0;
	right: 0;
	background: url("../img/bg_example_after.png") no-repeat center / cover;
}

.box_example .inner p{
	margin-bottom: 0.5em;
}

.box_example .inner p span{	
	width: 1.5em;
	height: 1.5em;
	margin-right: 0.8em;
	background: #000;
	border-radius: 1.5em;
	line-height: 1.4;
	text-align: center;
	display: inline-block;
}

.box_example .inner a{
	color: #FFF;
	text-decoration: underline;
}

.btn_pdf{
	margin: 30px auto;
	padding: 15px 30px;
	border-radius: 5px;
	background: #E2221F;
	box-shadow: 0 0 12px 2px rgba(0,0,0,0.1);
	width: 580px;
	font-size: 20px;
	color: #FFF!important;
	text-align: center;
	display: inline-block;
}

.btn_pdf span{
	padding-right: 1.5em;
	background: url("../img/icon_link_pdf.png") no-repeat center right / 1em;
}

.btn_return{
	margin: 30px auto;
	padding: 15px 30px;
	border: 3px solid #27C3C8;
	border-radius: 5px;
	background: #ECFEFF;
	box-shadow: 0 0 12px 2px rgba(0,0,0,0.1);
	width: 580px;
	font-size: 20px;
	color: #000!important;
	text-align: center;
	display: inline-block;
}

.btn_return span{
	padding-right: 1.5em;
}
