/* 
 *　小谷村移住なび
 *　　生活ガイド
 */

/* top */
#top {
	font-size: 0;
	margin: 85px auto 57px;
	max-width: 1171px;
	width: 95%;
}
#top h2 {
	display: inline-block;
}
#top h2 img {
	display: block;
}
#top ul  {
	display: inline-block;
	font-size: 0;
	list-style: none;
	padding: 0;
}
#top ul li {
	display: inline-block;
	margin-left: 45px;
}
#top ul li img {
	display: block;
}
a.point {
	cursor: pointer;
}

/* procedure */
#procedure,
#procedure2,
#information {
	color: #5f6439;
	margin: 0 auto;
	max-width: 1140px;
	width: 95%;
}
#procedure h3,
#procedure2 h3,
#information h3 {
	background: url(../img/guide/line01.png) no-repeat left bottom;
	font-size: 2.5rem;
	font-weight: normal;
	margin-left: 27px;
	padding: 0 0 4px 30px;
}
#procedure h3 img,
#procedure2 h3 img,
#information h3 img {
	margin-right: 49px;
}
#procedure ul,
#procedure2 ul,
#information ul {
	font-size: 0;
	list-style: none;
	padding: 0;
}
#procedure ul li,
#procedure2 ul li,
#information ul li {
	display: inline-block;
	margin-left: calc((25% - 259px) / 2);
	margin-right: calc((25% - 259px) / 2);
	margin-top: 50px;
}
#procedure ul li a,
#procedure2 ul li a,
#information ul li a {
	cursor: pointer;
}
@media (max-width: 1160px) {
	#procedure ul li,
	#procedure2 ul li,
	#information ul li {
		margin-left: calc((100% - 777px) / 6);
		margin-right: calc((100% - 777px) / 6);
	}
}
@media (max-width: 820px) {
	#procedure ul li,
	#procedure2 ul li,
	#information ul li {
		margin-left: calc((50% - 259px) / 2);
		margin-right: calc((50% - 259px) / 2);
	}
}
@media (max-width: 560px) {
	#procedure ul li,
	#procedure2 ul li,
	#information ul li {
		margin-left: calc((100% - 259px) / 2);
		margin-right: calc((100% - 259px) / 2);
	}
}

/* 詳細 */
div.detail {
	background-color: white;
	border: 5px solid #A4C3A9;
	border-radius: 50px;
	color: #5F6439;
	display: none;
	max-width: 360px;
	opacity: 0;
	padding: 20px 50px 27px;
	position: absolute;
	transition: all 0.5s;
	width: calc(95% - 100px);
	z-index: 1;
}
div.detail.active {
	display: block;
	opacity: 1;
}
div.detail a.btn_close {
	background-color: #D2E8D7;
	color: #878A6A;
	cursor: pointer;
	float: right;
	font-size: 2.5rem;
	font-weight: bold;
	height: 27px;
	line-height: 24px;
	margin: 0 -27px 0 0;
	position: relative;
	text-align: center;
	width: 27px;
}
div.detail h4 {
	clear: both;
	font-size: 1.4rem;
	font-weight: bold;
	margin: 0 0 1em;
	text-align: center;
}
div.detail h5 {
	font-size: 1.4rem;
	font-weight: bold;
	line-height: 1.6em;
	margin: 0;
}
div.detail p {
	font-size: 1.4rem;
	line-height: 1.6em;
	margin: 0 0 1em;
}
div.detail dl {
	margin: 0;
	padding: 0;
}
div.detail dl dt {
	font-size: 1.4rem;
	font-weight: normal;
	line-height: 1.6em;
}
div.detail dl dd {
	font-size: 1.4rem;
	line-height: 1.6em;
	margin: 0;
	padding: 0;
}
@media (max-width: 560px) {
	div.detail {
		padding: 20px 20px 27px;
		width: calc(95% - 40px);
	}
}
/* english */
div#english {
	background: white;
	color: #E5AC00;
	display: none;
	max-width: 1163px;
	opacity: 0;
	padding: 50px;
	position: absolute;
	transition: all 0.5s;
	width: calc(95% - 100px);
	z-index: 3;
}
div#english.active {
	display: block;
	opacity: 1;
}
div#english a.btn_close {
	background-color: #AFCDB8;
	color: #5F6439;
	cursor: pointer;
	float: right;
	font-size: 4.6rem;
	font-weight: bold;
	height: 54px;
	line-height: 46px;
	text-align: center;
	width: 54px;
}
div#english a.btn_close:hover {
	color: white;
}
p#welcome {
	clear: both;
	font-size: 1.9rem;
	text-align: center;
	line-height: 1.45em;
	margin: 60px 0 58px;
}
p#office {
	font-size: 1.9rem;
	text-align: center;
	line-height: 1.45em;
	margin: 74px 0;
}
p#welcome span {
	font-size: 2.2rem;
}
div#english ul {
	font-size: 0;
	list-style: none;
	margin: 0 auto;
	max-width: 1136px;
	padding: 0;
	width: 100%;
}
div#english ul li {
	cursor: pointer;
	display: inline-block;
	margin: 0 10px;
	position: relative;
	width: calc(100% / 6 - 20px);
}
div#english ul li:after {
	content: "";
	display: block;
	height: 100%;
	left: 0;
	padding-top: 100%;
	position: absolute;
	top: 0;
	width: 100%;
}
div#english ul li a {
	color: #5B6668;
	cursor: pointer;
	display: block;
	float: right;
	font-size: 2.4rem;
	font-weight: bold;
	margin-right: 16px;
	margin-top: calc(100% - 40px);
}
div#english ul li:nth-child(1) {
	background-color: #AFCDB8;
}
div#english ul li:nth-child(2) {
	background-color: #B7C1CA;
}
div#english ul li:nth-child(3) {
	background-color: #C0B4CD;
}
div#english ul li:nth-child(4) {
	background-color: #CBB1C5;
}
div#english ul li:nth-child(5) {
	background-color: #CCB6B0;
}
div#english ul li:nth-child(6) {
	background-color: #CCC7B0;
}
@media (max-width: 920px) {
	div#english ul li {
		margin-bottom: 20px;
		width: calc(100% / 3 - 20px);
	}
}
@media (max-width: 540px) {
	div#english ul li {
		width: calc(100% / 2 - 20px);
	}
}
@media (max-width: 400px) {
	div#english ul li {
		width: calc(100% - 20px);
	}
}

/* english step */
div#step {
	background-color: #5C6769;
	color: #E5AC00;
	display: none;
	max-width: 720px;
	min-height: 612px;
	opacity: 0;
	padding: 20px;
	position: absolute;
	transition: all 0.8s;
	width: calc(95% - 40px);
	z-index: 4;
}
div#step.active {
	display: block;
	opacity: 1;
}
div#step a.btn_close {
	background-color: #AFCDB8;
	color: white;
	cursor: pointer;
	display: block;
	float: right;
	font-size: 4.6rem;
	font-weight: bold;
	height: 38px;
	line-height: 29px;
	text-align: center;
	width: 38px;
}
div#step a.btn_close:hover {
	color: #5F6439;
}
a#btn_left {
	bottom: 20px;
	color: #AFCDB8;
	cursor: pointer;
	font-size: 3rem;
	font-weight: bold;
	left: 20px;
	position: absolute;
}
a#btn_right {
	bottom: 20px;
	color: #AFCDB8;
	cursor: pointer;
	font-size: 3rem;
	font-weight: bold;
	position: absolute;
	right: 20px;
}
a#btn_left:hover,
a#btn_right:hover {
	color: white;
}
div#step div.step {
	display: none;
	opacity: 0;
	transition: all 0.5s;
}
div#step div.step.active {
	display: block;
	opacity: 1;
}
div#step h3 {
	clear: both;
	font-size: 1.9rem;
	font-weight: bold;
	margin: 10px 0 36px;
	text-align: center;
}
div#step p {
	font-size: 1.9rem;
	line-height: 1.7em;
	margin: 0 auto;
	max-width: 600px;
	text-align: center;
	width: 90%;
}
div#step ul {
	list-style: none;
}
div#step ul li {
	font-size: 1.9rem;
	line-height: 1.7em;
}

@media (max-width: 420px) {
	div#english {
		padding: 50px 12px;
		width: calc(100% - 24px);
	}
}
