/* Y'S GEAR : qa.css */


body {
	color: #333;
}

*, *::before, *::after { box-sizing: border-box; }

a, a img { transition: all ease .3s; }

img {
	max-width: 100%;
	vertical-align: middle;
}


/*======================================================================*
 *  [ diagWrap ] 
 *======================================================================*/

#diagWrap {
	font-size: 1.6rem;
	line-height: 1.4;
}


/*======================================================================*
 *  [ diagHeader ] 
 *======================================================================*/

#diagHeader {
	line-height: 1;
}
#diagHeader div {
	max-width: 1010px;
	margin: 0 auto;
	padding: 13px 15px 15px;
}
#diagHeader h1 {
	padding: 20px;
	background: url(../img/bg_header.png) left top / 3px 5px repeat #1e428b;
	color: #fff;
	font-size: 1.8rem;
	text-align: center;
}

@media screen and (max-width: 568px) {
	#diagHeader div { padding: 13px 15px; }
	#diagHeader .ysgear img { width: 136px; }
	#diagHeader h1 {
		padding: 12px 15px;
		font-size: 1.2rem;
	}
} /* */


/*======================================================================*
 *  [ diagContents ] 
 *======================================================================*/

.diagContents {
	max-width: 1010px;
	margin: 25px auto 50px;
	padding: 0 15px;
}


/*======================================================================*
 *  [ qaWrap ] 
 *======================================================================*/

.qaWrap h2 {
	position: relative;
	margin-bottom: 100px ;
	padding-bottom: 7px;
	font-size: 2.2rem;
	line-height: 1.2;
	text-align: center;
}
.qaWrap h2::before {
	display: block;
	width: 75px;
	height: 15px;
	margin: 0 auto 25px;
	background: url(../img/txt_question.svg) center center / contain no-repeat;
	content: "";
}
.qaWrap h2::after {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 150px;
	height: 1px;
	background: rgba(0,0,0,0.5);
	transform: translateX(-50%);
	content: "";
}

@media screen and (max-width: 568px) {
	.qaWrap h2 {
		margin-bottom: 50px ;
		padding-bottom: 5px;
		font-size: 2rem;
	}
	.qaWrap h2::before {
		margin-bottom: 15px;
	}
} /* */


/*======================================================================*
 *  [ answerList ] 
 *======================================================================*/

.answerList {
	display: flex;
	flex-wrap: wrap;
	max-width: 880px;
	margin: 0 auto;
}
.answerList input {
	display: none;
}
.answerList label {
	display: flex;
	position: relative;
	align-items: center;
	width: calc(50% - 10px);
	height: 100px;
	margin: 0 0 20px 20px;
	padding-left: 47px;
	border: 3px solid #ccc;
	border-radius: 10px;
	background: right center no-repeat;
	cursor: pointer;
}
.answerList label:nth-of-type(2n+1) { margin-left: 0; }
.answerList.col3 label {
	width: calc(33.33% - 13.33px);
	margin-left: 20px;
}
.answerList.col3 label:nth-of-type(3n+1) { margin-left: 0; }
.answerList input:checked + label {
	border-color: #D60033;
}
.answerList label[for="Q01A"] { background-image: url(../img/icon_Q01A.svg); }
.answerList label[for="Q01B"] { background-image: url(../img/icon_Q01B.svg); }
.answerList label[for="Q01C"] { background-image: url(../img/icon_Q01C.svg); }
.answerList label[for="Q02A"] { background-image: url(../img/icon_Q02A.svg); background-position: right 10px center; }
.answerList label[for="Q02B"] { background-image: url(../img/icon_Q02B.svg); background-position: right 10px center; }
.answerList label[for="Q02C"] { background-image: url(../img/icon_Q02C.svg); background-position: right 10px center; }
.answerList label[for="Q02D"] { background-image: url(../img/icon_Q02D.svg); background-position: right 10px center; }
.answerList label[for="Q03A"] { background-image: url(../img/icon_Q03A.svg); }
.answerList label[for="Q03B"] { background-image: url(../img/icon_Q03B.svg); }
.answerList label[for="Q04A"] { background-image: url(../img/icon_Q04A.svg); }
.answerList label[for="Q04B"] { background-image: url(../img/icon_Q04B.svg); }
.answerList label[for="Q05A"] { background-image: url(../img/icon_Q05A.svg); }
.answerList label[for="Q05B"] { background-image: url(../img/icon_Q05B.svg); }
.answerList label[for="Q06A"] { background-image: url(../img/icon_Q06A.svg); }
.answerList label[for="Q06B"] { background-image: url(../img/icon_Q06B.svg); }
.answerList label::before {
	position: absolute;
	left: 13px;
	width: 22px;
	height: 24px;
	background: center center no-repeat;
	content: "";
}
.answerList label[for*="A"]::before { background-image: url(../img/icon_A.svg); }
.answerList label[for*="B"]::before { background-image: url(../img/icon_B.svg); }
.answerList label[for*="C"]::before { background-image: url(../img/icon_C.svg); }
.answerList label[for*="D"]::before { background-image: url(../img/icon_D.svg); }
.answerList label span {
	display: block;
	font-size: 1.4rem;
	font-weight: 500;
}

/* [ 注釈 ] */
.answerList + p {
	max-width: 880px;
	margin: 0 auto;
	padding-left: 1em;
	text-indent: -1em;
	font-size: 1.4rem;
}

@media screen and (max-width: 768px) {
	.answerList.col3 label {
		width: calc(50% - 10px);
		margin: 0 0 20px 20px;
	}
	.answerList.col3 label:nth-of-type(3n+1) { margin-left: 20px; }
	.answerList.col3 label:nth-of-type(2n+1) { margin-left: 0; }
} /* */

@media screen and (max-width: 568px) {
	.answerList {
		display: block;
	}
	.answerList label {
		width: 100% !important;
		margin: 0 0 10px !important;
	}
} /* */


/*======================================================================*
 *  [ resultWrap ] 
 *======================================================================*/

.resultWrap h2 {
	position: relative;
	margin-bottom: 100px ;
	padding-bottom: 7px;
	font-size: 2.2rem;
	line-height: 1.2;
	text-align: center;
}
.resultWrap h2::before {
	display: block;
	width: 138px;
	height: 26px;
	margin: 0 auto 25px;
	background: url(../img/txt_result.svg) center center / contain no-repeat;
	content: "";
}
.resultWrap h2::after {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 150px;
	height: 1px;
	background: rgba(0,0,0,0.5);
	transform: translateX(-50%);
	content: "";
}
.resultWrap h2 b { display: inline-block; }

@media screen and (max-width: 568px) {
	.resultWrap { margin-top: -10px; }
	.resultWrap h2 {
		margin-bottom: 10px;
		font-size: 1.8rem;
		letter-spacing: -0.025em;
	}
	.resultWrap h2::before {
		margin-bottom: 10px;
	}
} /* */


/*======================================================================*
 *  [ resultDisplay / resultBox ] 
 *======================================================================*/

.resultDisplay {
	display: flex;
	flex-flow: column;
	max-width: 880px;
	margin: 0 auto;
}

.resultBox { 
	display: flex;
	align-items: center;
	width: 100%;
	margin-bottom: 50px;
	text-align: center;
}
.resultBox.none { display: none; }
.resultBox.no1 { order: 1; }
.resultBox.no2 {
	padding-top: 50px;
	border-top: 1px solid #707070;
	order: 2;
}
.resultBox > * {
	width: 50%;
	padding: 0 10px;
}
.resultBox figure {
	display: inline-block;
	width: 100%;
	max-width: 286px;
	text-align: right;
}
.resultBox.no1 figure { background: url(../img/icon_no1.png) left center / calc(100% - 136px) auto no-repeat; }
.resultBox.no2 figure { background: url(../img/icon_no2.png) left center / calc(100% - 136px) auto no-repeat; }
.resultBox figure img { width: 136px; }

.resultBox h3 {
	margin-bottom: 15px;
	line-height: 1.2;
}
.resultBox h3 > * { display: block; }
.resultBox h3 b { font-size: 2.8rem; }
.resultBox p {
	margin-bottom: 20px;
	font-weight: bold;
}
.resultBox ul {
	list-style: none;
	margin-bottom: 20px;
	padding: 0 10px 10px 10px;
	border: 2px solid #1e428b;
	border-top: none;
	font-size: 1.4rem;
	font-weight: bold;
	text-align: left;
}
.resultBox ul::before {
	display: block;
	margin: 0 -10px 10px;
	padding: 5px 0;
	background: #1e428b;
	color: #fff;
	font-weight: bold;
	text-align: center;
	content: "このような方におすすめ";
}
.resultBox li {
	position: relative;
	padding-left: 1.3em;
	margin-top: 10px;
}
.resultBox li::before {
	position: absolute;
	top: 0.2em;
	left: 0;
	width: 1em;
	height: 1em;
	background: url(../img/icon_check.svg) center center / contain no-repeat;
	font-weight: bold;
	text-align: center;
	content: "";
}

/* [ ボタン ] */
.resultBox .btnBox { margin: 0; }

@media screen and (max-width: 568px) {
	.resultBox { 
		display: block;
		margin-bottom: 30px;
	}
	.resultBox > * {
		width: 100%;
		padding: 0;
	}
	.resultBox .img { margin-bottom: 5px; }
	.resultBox figure img { width: 110px; }
	.resultBox h3 span { font-size: 1.4rem; }
	.resultBox h3 b { font-size: 2.6rem; }
	.resultBox p {
		margin-bottom: 5px;
		line-height: 1.2;
	}
	.resultBox ul { padding-bottom: 5px; }
	.resultBox ul::before {
		margin-bottom: 5px;
		padding: 3px 0;
		font-size: 1.3rem;
	}
	.resultBox li {
		margin-top: 5px;
		line-height: 1.2;
	}
} /* */


/*======================================================================*
 *  [ answerContent ] 
 *======================================================================*/

.answerContent {
	max-width: 880px;
	margin: 0 auto;
	padding: 15px 10px;
	border-top: 1px solid #707070;
	border-bottom: 1px solid #707070;
	background: #F3F5F9;
	font-weight: bold;
	text-align: center;
}
.answerDisplay {
	display: inline-block;
	font-size: 1.4rem;
	text-align: left;
}
.answerDisplay .q {
	margin: 10px 0 5px;
	color: #1E428B;
}


/*======================================================================*
 *  [ snsBox ] 
 *======================================================================*/

.snsBox {
	margin: 60px 0;
	text-align: center;
}
.snsBox p {
	margin-bottom: 20px;
	color: #1E428B;
	font-size: 2rem;
}
.snsBox p b { display: block; }
.snsBox ul {
	display: flex;
	justify-content: center;
	list-style: none;
}
.snsBox li + li { margin-left: 20px; }
.snsBox a:hover img, 
.snsBox a:active img {
	opacity: 0.6;
}

@media screen and (max-width: 568px) {
	.btnBox {
		margin: 50px 0;
	}
} /* */


/*======================================================================*
 *  [ errorBox ] 
 *======================================================================*/

.errorBox {
	max-width: 880px;
	margin: 0 auto 50px;
	text-align: center;
}
.errorBox p {
	margin-bottom: 30px;
	font-weight: bold;
}
.errorBox p b {
	color: #D60033;
	font-size: 3em;
	line-height: 1;
}
.errorBox.none { display: none; }
.errorBox:not(.none) ~ .resultDisplay, 
.errorBox:not(.none) ~ .answerContent,
.errorBox:not(.none) ~ .snsBox {
	display: none !important;
}


/*======================================================================*
 *  [ btnBox ] 
 *======================================================================*/

.btnBox {
	margin: 60px 0;
	text-align: center;
}
.btnBox a {
	cursor: pointer;
}
.btnBox a:hover,
.btnBox a:active {
	opacity: 0.6;
}
.btnBox .btn {
	display: inline-block;
	width: 210px;
	padding: 1.2em;
	border-radius: 1.7em;
	background: url(../img/icon_arrow.svg) right 1.2em center no-repeat #1E428B;
	color: #fff;
	font-weight: bold;
	line-height: 1;
}
.btnBox .detail {
	display: inline-block;
	width: 210px;
	padding: 1.2em;
	border-radius: 1.7em;
	background: url(../img/icon_arrow.svg) right 1.2em center no-repeat #000;
	color: #fff;
	font-weight: bold;
	line-height: 1;
}
.btnBox .again {
	display: inline-block;
	width: 210px;
	padding: 1.2em;
	border-radius: 1.7em;
	background: url(../img/icon_again.svg) right 1.2em center no-repeat #D60033;
	color: #fff;
	font-weight: bold;
	line-height: 1;
}

@media screen and (max-width: 568px) {
	.btnBox {
		margin: 30px 0;
	}
} /* */


/*======================================================================*
 *  [ diagFooter ] 
 *======================================================================*/

#diagFooter {
	max-width: 1010px;
	margin: 0 auto;
	padding: 0 15px;
	line-height: 1;
}
#diagFooter div {
	padding: 20px 0;
	text-align: center;
}
#diagFooter div a {
	display: inline-block;
}
#diagFooter small {
	display: block;
	border-top: 1px solid #b4b4b4;
	padding: 15px 0;
	font-size: 1rem;
}

