/* 
 *　小谷村移住なび
 *　　移住STEP
 */
* {
	color: #523333;
}
#main {
	margin: 0 auto;
	max-width: 760px;
	width: 95%;
}
div.steps {
	background-repeat: no-repeat;
	margin: 12px auto;
	overflow: hidden;
	position: relative;
	width: 100%;
}
img.next {
	display: block;
	margin-left: 85px;
	margin-top: -17px;
}
h2 {
	cursor: pointer;
	font-size: 4rem;
	font-weight: bold;
	margin: 0;
	padding: 109px 0 50px 210px;
	text-shadow: 2px 2px white, -2px -2px white, 2px -2px white, -2px 2px white;
}
h2:first-letter {
	font-size: 5.5rem;
	text-shadow: none;
}
h2:after {
	content: url(../img/step/btn_down.png);
	display: inline-block;
	height: 59px;
	vertical-align: middle;
	width: 59px;
}
h2 + div {
	height: 0;
	opacity: 0;
	overflow: hidden;
	transition: all 2s;
}
h2.active + div {
	height: inherit;
	opacity: 1;
}
h2.active:after {
	content: url(../img/step/btn_up.png);
}
p.head {
	background-color: rgba(255, 255, 255, 0.37);
	background-image: url(../img/step/bar1.png);
	background-repeat: repeat-y;
	border-radius: 12px 12px 0 0;
	font-size: 2.7rem;
	line-height: 1.7em;
	margin: 5px 5px 60px;
	padding: 0 25px;
	text-shadow: 1px 1px white, -1px -1px white, 1px -1px white, -1px 1px white;
}
#step4 p.head,
#step5 p.head {
	margin-bottom: 20px;
}
div.panel {
	font-size: 1.8rem;
	height: 402px;
	max-width: 386px;
}
div.panel.background {
	background-image: url(../img/step/bg_content.png);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	height: 356px;
	margin-bottom: 60px;
	max-width: 340px;
	padding: 23px;
}
.left {
	float: left;
}
.right {
	float: right;
}
.panel.wide {
	height: inherit;
	max-width: 100%;
	text-align: center;
	width: 100%;
}
h3 {
	color: #667372;
	cursor: pointer;
	display: inline-block;
	font-family: 'あんず';
	font-size: 2.8rem;
	font-weight: bold;
	margin: 0 18px;
}
h3 span {
	color: #667372;
}
h3 span.small {
	font-size: 2.5rem;
}
div.panel p {
	margin: 1em 11px;
}
hr {
	background-image: url(../img/step/bar2.png);
	background-repeat: no-repeat;
	border: none;
	height: 3px;
	width: 100%;
}
div.panel dl {
	font-size: 0;
	padding: 5px;
}
div.panel dt {
	display: inline-block;
	font-size: 1.8rem;
	width: 6em;
}
div.panel dd {
	display: inline-block;
	font-size: 1.8rem;
	margin: 0;
	width: calc(100% - 6em);
}
div.photo {
	background-image: url(../img/step/frame_photo.png);
	background-size: 100% 100%;
	height: 222px;
	padding: 4px;
	width: 278px;
}
div.panel a {
	display: inline-block;
	margin: 20px;
}

/* STEP 1 */
div#step1 {
	background-image: url(../img/step/title_step1.png);
	margin-top: 60px;
}

/* STEP 2 */
div#step2 {
	background-image: url(../img/step/title_step2.png);
}

/* STEP 3 */
div#step3 {
	background-image: url(../img/step/title_step3.png);
}

/* STEP 4 */
div#step4 {
	background-image: url(../img/step/title_step4.png);
}
#step4 div.panel.right {
	height: 104px;
	margin-right: calc((100% - 486px) / 3);
}

/* STEP 5 */
div#step5 {
	background-image: url(../img/step/title_step5.png);
}
#step5 div.panel.right {
	height: 83px;
	margin-bottom: 20px;
	margin-right: calc((100% - 486px) / 3);
	margin-top: 20px;
}
#step5 div.panel.left {
	height: 83px;
	margin-bottom: 20px;
	margin-left: calc((100% - 486px) / 3);
	margin-top: 20px;
}
#step5 div.panel a {
	margin: 0;
}
div.illust {
	clear: both;
	position: relative;
}
div.illust.left {
	max-width: 597px;
	width: 100%;
}
div.illust.left:before {
	content: "";
	display: block;
	padding-top: 30.318%;
	width: 100%;
}
div.illust.right {
	margin-top: 40px;
	max-width: 496px;
	width: 100%;
}
div.illust.right:before {
	content: "";
	display: block;
	padding-top: 40.121%;
	width: 100%;
}
#here_we_go {
	background-image: url(../img/step/here_we_go.png);
	background-position: right top;
	background-repeat: no-repeat;
	background-size: cover;
	height: 100%;
	position: absolute;
	top: 0;
	transition-delay: 3s;
	transition-duration: 1.5s;
	transition-property: width;
	width: 34.5%;
}
#see_you_in_otari {
	background-image: url(../img/step/we_ll_see_you_in_otari.png);
	background-position: right top;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 34% 0 0 0 / 72% 0 0 0;
	height: 100%;
	position: absolute;
	right: 0;
	top: 0;
	transition-delay: 5s;
	transition-duration: 1.5s;
	transition-property: width;
	width: 24.193%;
}
h2.active + div #here_we_go {
	transition-delay: 0;
	transition-duration: 0;
	width: 100%;
}
h2.active + div #see_you_in_otari {
	border-radius: 0;
	width: 100%;
}
@media (max-width: 840px) {
	.left,
	.right {
		float: none;
		height: inherit !important;
		margin: 0 auto 60px;
	}
	div.photo {
		margin: 0 auto;
	}
	div.panel a,
	#step5 div.panel a {
		display: block;
		margin: 20px auto;
		width: 243px;
	}
	#step5 div.panel.left,
	#step5 div.panel.right {
		margin: 0 auto 30px;
	}
}
@media (max-width: 790px) {
	div.steps {
		background-color: rgba(255, 249, 247, 0.7);
		background-image: url(../img/step/step.png) !important;
		background-position: 150px 32px;
		border-radius: 20px;
	}
	div.steps:before {
		color: #667473;
		font-family: 'あんず';
		font-size: 3.3rem;
		left: 51px;
		position: absolute;
		top: 39px;
	}
	#step1:before {
		content: "STEP1";
	}
	#step2:before {
		content: "STEP2";
	}
	#step3:before {
		content: "STEP3";
	}
	#step4:before {
		content: "STEP4";
	}
	#step5:before {
		content: "STEP5";
	}
	div#step1 {
		margin-top: 0px;
	}
	h2 {
		font-size: 3rem;
		padding: 86px 0 5px 16px;
		text-shadow: none;
	}
	h2:first-letter {
		font-size: 3.5rem;
	}
	p.head {
		text-shadow: none;
	}
}
@media (max-width: 400px) {
	div.panel dd {
		display: block;
		margin-bottom: 0.5em;
		margin-left: 1.5em;
		white-space: nowrap;
	}
}
