/* 
 *　小谷村移住なび
 *　　Ｑ＆Ａ
 */
/* hero */
#hero {
	margin: 6px auto 16px;
	max-width: 1189px;
	position: relative;
	width: 90%;
}
#hero:before {
	content: "";
	display: block;
	padding-top: 48.95%;
}
#image_wrap {
	background-image: url(../img/qa/photo_top.png);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}
#image_wrap img {
	margin-left: calc(50% - 111px);
	margin-top: calc(24.47% - 46px);
	max-width: 455px;
}

/* Ｑ＆Ａ */
div.qa {
	margin: 0 auto 63px;
	overflow: hidden;
	position: relative;
	width: 95%;
}
div.question {
	position: absolute;
	width: 100%;
}
div.answer {
	width: 100%;
}
div.question h3 {
	color: #E0D71D;
	font-size: 2.9rem;
	font-weight: bold;
	text-align: center;
	margin: 1em 0 0;
}
div.question p {
	color: #5F6439;
	display: block;
	font-size: 2.2rem;
	font-weight: bold;
	line-height: 1.2em;
	margin: 0.8em auto;
	max-width: 200px;
	width: 90%;
}
div.answer h3 {
	color: #8AC125;
	font-size: 2.9rem;
	font-weight: bold;
	text-align: center;
	margin: 1em 0;
}
div.answer p {
	color: #5F6439;
	display: block;
	font-size: 1.6rem;
	font-weight: bold;
	line-height: 1.85em;
	margin: 1em auto;
	max-width: 720px;
	width: 90%;
}
div.qa:nth-child(1) {
	max-width: 1045px;
}
div.qa:nth-child(1) div.question {
	background-image: url(../img/qa/icon_question.png), url(../img/qa/bg_question1.png);
	background-position: left top, 3px 14px;
	background-repeat: no-repeat, no-repeat;
	height: 183px;
	left: 0;
	max-width: 304px;
	top: 0;
}
div.qa:nth-child(1) div.answer {
	background-image: url(../img/qa/icon_answer.png), url(../img/qa/bg_answer1.png);
	background-position: 61px 56px, left top;
	background-repeat: no-repeat, no-repeat;
	float: right;
	height: 371px;
	margin-top: calc((1045px - 100%) * 45 / 67 + 146px);
	max-width: 978px;
}
div.qa:nth-child(2) {
	max-width: 1400px;
}
div.qa:nth-child(2) div.question {
	background-image: url(../img/qa/icon_question.png), url(../img/qa/bg_question2.png);
	background-position: 8px top, left 22px;
	background-repeat: no-repeat, no-repeat;
	height: 191px;
	max-width: 301px;
	right: calc((100% - 1040px) * 102 / 360);
	top: 0;
}
div.qa:nth-child(2) div.question p {
	max-width: 230px;
}
div.qa:nth-child(2) div.answer {
	background-image: url(../img/qa/icon_answer.png), url(../img/qa/bg_answer2.png);
	background-position: 91px 55px, left top;
	background-repeat: no-repeat, no-repeat;
	float: left;
	height: 371px;
	margin-top: calc((1400px - 100%) * 120 / 360 + 79px);
	max-width: 1040px;
}
div.qa:nth-child(3) {
	max-width: 1113px;
}
div.qa:nth-child(3) div.question {
	background-image: url(../img/qa/icon_question.png), url(../img/qa/bg_question3.png);
	background-position: left top, 3px 14px;
	background-repeat: no-repeat, no-repeat;
	height: 183px;
	left: 0;
	max-width: 304px;
	top: 0;
}
div.qa:nth-child(3) div.question p {
	margin: 0.2em auto;
}
div.qa:nth-child(3) div.answer {
	background-image: url(../img/qa/icon_answer.png), url(../img/qa/icon_frog.png), url(../img/qa/bg_answer3.png);
	background-position: 707px top, 100px 407px, left 6px;
	background-repeat: no-repeat, no-repeat;
	float: right;
	height: 479px;
	margin-top: calc((1113px - 100%) * 139 / 183 + 52px);
	max-width: 930px;
}
div.qa:nth-child(3) div.answer h3 {
	margin: 3.5em auto 1.5em;
}
div.qa:nth-child(4) {
	max-width: 1392px;
}
div.qa:nth-child(4) div.question {
	background-image: url(../img/qa/icon_question.png), url(../img/qa/bg_question4.png);
	background-position: left top, 3px 14px;
	background-repeat: no-repeat, no-repeat;
	height: 183px;
	left: 0;
	max-width: 304px;
	top: 0;
}
div.qa:nth-child(4) div.answer {
	background-image: url(../img/qa/icon_answer.png), url(../img/qa/bg_answer4.png);
	background-position: 30px 123px, left top;
	background-repeat: no-repeat, no-repeat;
	float: left;
	height: 571px;
	margin-left: calc((100% - 1004px) * 132 / 388);
	margin-top: calc((1392px - 100%) * 123 / 388 + 78px);
	max-width: 1004px;
}
div.qa:nth-child(4) div.answer h3 {
	margin: 3em auto 4em;
}
div.qa:nth-child(5) {
	max-width: 978px;
}
div.qa:nth-child(5) div.question {
	background-image: url(../img/qa/icon_question.png), url(../img/qa/bg_question5.png);
	background-position: left top, 3px 14px;
	background-repeat: no-repeat, no-repeat;
	height: 190px;
	max-width: 256px;
	right: 0;
	top: 0;
}
div.qa:nth-child(5) div.question p {
	max-width: 218px;
}
div.qa:nth-child(5) div.answer {
	background-image: url(../img/qa/icon_answer.png), url(../img/qa/bg_answer5.png);
	background-position: 61px 56px, left top;
	background-repeat: no-repeat, no-repeat;
	float: right;
	height: 371px;
	margin-top: 154px;
	max-width: 978px;
}
@media (max-width: 1035px) {
	div.qa:nth-child(1) div.answer {
		background-color: white;
		background-image: url(../img/qa/icon_answer.png);
		background-position: 12px 4px;
		background-repeat: no-repeat;
		border-radius: 16px;
		float: none;
		height: inherit;
		margin-top: 192px;
		overflow: hidden;
	}
	div.qa:nth-child(1) div.answer h3 {
		margin: 1em 0 0.5em;
	}
	div.qa:nth-child(1) div.answer p {
		margin: 0;
		padding: 0.5em 2em 2em;
		max-width: calc(100% - 4em);
		width: calc(100% - 4em);
	}
}
@media (max-width: 1096px) {
	div.qa:nth-child(2) div.question {
		right: 0;
	}
	div.qa:nth-child(2) div.answer {
		background-color: white;
		background-image: url(../img/qa/icon_answer.png);
		background-position: 12px 4px;
		background-repeat: no-repeat;
		border-radius: 16px;
		float: none;
		height: inherit;
		margin-top: 200px;
		overflow: hidden;
	}
	div.qa:nth-child(2) div.answer h3 {
		margin: 1em 0 0.5em;
	}
	div.qa:nth-child(2) div.answer p {
		margin: 0;
		padding: 0.5em 2em 2em;
		max-width: calc(100% - 4em);
		width: calc(100% - 4em);
	}
}
@media (max-width: 980px) {
	div.qa:nth-child(3) div.answer {
		background-color: white;
		background-image: url(../img/qa/icon_answer.png);
		background-position: 12px 4px;
		background-repeat: no-repeat;
		border-radius: 16px;
		float: none;
		height: inherit;
		margin-top: 200px;
		overflow: hidden;
	}
	div.qa:nth-child(3) div.answer h3 {
		margin: 1em 0 0.5em;
	}
	div.qa:nth-child(3) div.answer p {
		margin: 0;
		padding: 0.5em 2em 2em;
		max-width: calc(100% - 4em);
		width: calc(100% - 4em);
	}
}
@media (max-width: 1064px) {
	div.qa:nth-child(2) div.question {
		right: 0;
	}
	div.qa:nth-child(4) div.answer {
		background-color: white;
		background-image: url(../img/qa/icon_answer.png);
		background-position: 12px 4px;
		background-repeat: no-repeat;
		border-radius: 16px;
		float: none;
		height: inherit;
		margin-left: 0;
		margin-top: 200px;
		overflow: hidden;
	}
	div.qa:nth-child(4) div.answer h3 {
		margin: 1em 0 0.5em;
	}
	div.qa:nth-child(4) div.answer p {
		margin: 0;
		padding: 0.5em 2em 2em;
		max-width: calc(100% - 4em);
		width: calc(100% - 4em);
	}
}
@media (max-width: 1042px) {
	div.qa:nth-child(5) div.question {
		right: 0;
	}
	div.qa:nth-child(5) div.answer {
		background-color: white;
		background-image: url(../img/qa/icon_answer.png);
		background-position: 12px 4px;
		background-repeat: no-repeat;
		border-radius: 16px;
		float: none;
		height: inherit;
		margin-top: 200px;
		overflow: hidden;
	}
	div.qa:nth-child(5) div.answer h3 {
		margin: 1em 0 0.5em;
	}
	div.qa:nth-child(5) div.answer p {
		margin: 0;
		padding: 0.5em 2em 2em;
		max-width: calc(100% - 4em);
		width: calc(100% - 4em);
	}
}
@media (max-width: 360px) {
	div.qa div.question {
		background-color: white;
		background-image: url(../img/qa/icon_question.png) !important;
		background-position: 12px 4px !important;
		border-radius: 16px;
		overflow: hidden;
		position: static;
		width: 100%;
	}
	div.qa div.answer {
		margin-top: 16px !important;
	}
}
