/*
 *　おたり移住ｎａｖｉ
 *　　トップページ
 */

/* nav */
li.pop a ~ img:not(.pop_item) {
	display: none;
}
li.pop img.mobile.pop_item {
	top: 0;
}

/* header */
#hero {
	margin-bottom: 32px;
	position: relative;
}
#hero:before {
	content: "";
	display: block;
	padding-top: 60%;
}
#hero_inner {
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}
ul#keyimage {
	height: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	width: 100%;
}
#hero ul li {
	-webkit-align-content: center;
	align-content: center;
	display: -webkit-flex;
	display: flex;
	height: 100%;
	-webkit-justify-content: center;
	justify-content: center;
	left: 0;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	top: 0;
	transition: opacity 0.6s ease-out;
	width: 100%;
}
#hero ul#key_text li {
	display: block;
	overflow: visible;
	width: inherit;
}
#hero ul li.active {
	opacity: 1.0;
}
#hero ul#keyimage li img {
	display: block;
	height: auto;
	/*min-width: 843px;*/
	width: 100%;
}
h1 {
	-webkit-align-content: center;
	align-content: center;
	-webkit-align-items: center;
	align-items: center;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-justify-content: center;
	height: 100%;
	justify-content: center;
	left: 0;
	position: relative;
	text-align: center;
	top: 0;
	vertical-align: middle;
	width: 100%;
}
h1 img {
	display: block;
	height: auto;
	vertical-align: middle;
	max-width: 90%;
}
#hero ul#key_text li img {
	bottom: 0;
	left: 20px;
	position: absolute;
}
#key_text {
	bottom: 20px;
	display: block;
	height: 53px;
	left: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	width: 100%;
}
p#wrap_next {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: flex-end;
	margin: 0;
	opacity: 0;
	position: absolute;
	transition: all 0.2s;
	right: 0;
	top: 0;
	width: calc(100% / 3);
	z-index: 1;
}
a#next {
	background: url(../img/common/icon_right.png) no-repeat center center;
	background-size: 100% 100%;
	cursor: pointer;
	filter: drop-shadow(2px 2px 4px black);
	height: 64px;
	margin-right: 32px;
	width: 64px;
}
p#wrap_prev {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: flex-start;
	left: 0;
	margin: 0;
	opacity: 0;
	position: absolute;
	transition: all 0.2s;
	top: 0;
	width: calc(100% / 3);
	z-index: 1;
}
a#prev {
	background: url(../img/common/icon_left.png) no-repeat center center;
	background-size: 100% 100%;
	cursor: pointer;
	filter: drop-shadow(2px 2px 4px black);
	height: 64px;
	margin-left: 32px;
	width: 64px;
}
p#wrap_next:hover,
p#wrap_prev:hover {
	opacity: 1;
}

/* main */
#main {
	margin-top: 50px;
}
.fx_child {
	opacity: 0;
}

/* download */
#guide_download {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 20px auto 40px;
	max-width: 808px;
	/*text-align: right;*/
	width: 90%;
}
#guide_download a.hide {
	display: none;
	/*opacity: 0;*/
}
.download_inner {
	width: 100%;
}
div.download_inner a {
	display: inline-block;
	margin: 0 12px;
	vertical-align: top;
}
h4 {
	font-size: 2.8rem;
	margin: 1em 0 0.5em;
	text-decoration: underline;
	text-shadow: 2px 2px 5px white;
}

/* voice */
#voice {
	clear: both;
	margin: 0 auto;
	max-width: 1100px;
	width: 95%;
}
#main div h2 {
	display: block;
	margin: 0;
}
#voice h2 {
	float: left;
	margin: 0;
	width: 249px;
}
div.voice {
	cursor: pointer;
	position: relative;
	width: 215px;
}
div.voice svg {
	height: auto;
	width: 215px;
}
div.voice.no1 {
	float: right;
}
div.voice.no2 {
	margin: -2px auto 0;
}
div.voice.no3 {
	float: left;
	margin-left: 190px;
}
#main div h2 a,
#main div h2 a img {
	display: block;
}
div.voice.new:before {
	content: url(../img/top/icon-new.png);
	display: block;
	left: -14px;
	position: absolute;
	top: -50px;
}
div.voice p {
	background: url(../img/top/frame_column_title.png) no-repeat left top;
	background-size: 100% 100%;
	font-size: 1.5rem;
	height: 73px;
	padding: 12px 8px;
}

/* about otari */
#about_otari {
	clear: both;
	float: left;
	margin-left: calc((100% - 1100px) / 2 - 193px);
	margin-top: -140px;
	width: 193px;
}

/* column */
#column {
	clear: both;
	font-size: 0;
	margin: 16px auto 0;
	max-width: 1012px;
	overflow: hidden;
	width: 95%;
}
#column h2 {
	cursor: pointer;
	float: left;
	width: 216px;
}
div.column {
	cursor: pointer;
	max-width: 291px;
	position: relative;
	width: 100%;
}
div.column.new {
	margin-top: 52px !important;
}
div.column.no1 {
	float: left;
	margin-left: 20px;
	margin-top: 80px;
}
div.column.no2 {
	float: right;
	margin-right: calc(100% - 819px);
	margin-top: 400px;
}
div.column.no3 {
	float: left;
	margin-left: 150px;
	margin-top: 100px;
}
div.column div.thumbnail-box {
	max-width: 286px;
	position: relative;
	width: 100%;
}
div.column div.thumbnail-box:before {
	content: "";
	display: block;
	padding-top: 80.42%;
	width: 100%;
}
div.column div.wrapper {
	background: url(../img/top/frame_column_photo.png) no-repeat left top;
	background-size: 100% 100%;
	height: calc(100% - 8px);
	padding: 4px;
	position: absolute;
	top: 0;
	width: calc(100% - 8px);
}
div.column div.inner {
	background-position: center center;
	background-size: cover;
	height: 100%;
	width: 100%;
}
div.column dl {
	background: url(../img/top/frame_column_title.png) no-repeat left top;
	margin-top: 17px;
	min-height: 73px;
	padding-right: 4%;
	width: 96%;
}
div.column dl dt {
	font-size: 1.5rem;
	line-height: 1.2em;
	margin: 0 0 6px 20px;
	padding: 5px 0 0;
}
div.column dl dd {
	font-size: 1.5rem;
	line-height: 1.2em;
	margin: 0 0 0 20px;
	padding: 0;
}
div.column.new:before {
	content: url(../img/top/icon-new.png);
	display: block;
	left: -14px;
	position: absolute;
	top: -50px;
	z-index: 1;
}

/* qa */
#qa {
	margin: 0 auto;
	max-width: 1150px;
	width: 95%;
}
#qa h2 {
	float: right;
	margin-top: -130px;
	width: 193px;
}

/* child-rearing */
#child_rearing {
	margin: 0 auto;
	max-width: 520px;
	width: 95%;
}
#main #child_rearing h2 {
	float: right;
	margin-top: -60px;
	width: 193px;
}

/* event */
#event {
	clear: both;
	margin: 0 auto;
	max-width: 1530px;
	width: 95%;
}
#event h2 {
	width: 192px;
}

/* trial */
#trial {
	margin: 0 auto;
	max-width: 606px;
}
#trial h2 {
	float: right;
	width: 193px;
}

/* recruiting */
#recruiting {
	margin: 120px auto 0;
	max-width: 430px;
	width: 95%;
}

/* property */
#property {
	margin: 0 auto;
	max-width: 1340px;
	padding: 8px;
	width: calc(95% - 16px);
}
#main #property h2 {
	float: left;
	left: 75px;
	margin-top: 11px;
	max-width: 256px;
	position: relative;
	top: -53px;
	width: 100%;
}
#property h2 a img {
	height: auto;
	width: 100%;
}
#property_list {
	background-image: url(../img/top/frame_bottom.png),
					  url(../img/top/frame_left.png),
					  url(../img/top/frame_right.png),
					  url(../img/top/frame_top.png);
	background-repeat: repeat-x,
					   repeat-y,
					   repeat-y,
					   repeat-x;
	background-position: 8px bottom,
						 left 8px,
						 right 8px,
						 left top;
	background-size: calc(100% - 16px) 8px,
					 8px calc(100% - 16px),
					 8px calc(100% - 16px),
					 calc(100% - 16px) 8px;
	border-radius: 8px;
	float: left;
	margin-bottom: 24px;
	margin-top: 140px;
	max-width: 470px;
}
#property_list ul {
	font-size: 0;
	list-style: none;
	margin: 32px 34px 34px 10px;
	padding: 0;
}
#property_list ul li {
	display: inline-block;
	margin: 0 0 24px 24px;
}
#property_list ul li p {
	background-position: center center;
	background-size: cover;
	cursor: pointer;
	height: 166px;
	width: 188px;
}

/* support */
#support {
	margin: 0 auto;
	max-width: 580px;
	width: 95%;
}
#support h2 {
	float: right;
	width: 193px;
}

/* guide */
#guide {
	margin: 257px auto 0;
	max-width: 490px;
	width: 95%;
}
#guide h2 {
	float: right;
	width: 193px;
}

@media (max-width: 1600px) {
	#main {
		margin-top: 0;
	}
	#about_otari {
		margin-left: 48px;
		margin-top: 0;
	}
}
@media (max-width: 1500px) {
	#guide_download {
		max-width: 883px;
	}
}
@media (max-width: 1080px) {
	#main #property h2 {
		top: 0;
	}
	#property_list {
		margin-top: 193px;
	}
}
@media (max-width: 900px) {
	/*#hero:before {
		padding-top: 337px;
	}*/
	a#next {
		height: 24px;
		margin-right: 12px;
		width: 24px;
	}
	a#prev {
		height: 24px;
		margin-left: 12px;
		width: 24px;
	}
	#column {
		text-align: center;
	}
	#main  #column h2 {
		display: inline-block;
		float: none;
	}
	div.column {
		display: inline-block;
		float: none !important;
		margin: 20px !important;
	}
	#main #child_rearing h2 {
		margin-right: 40px;
		margin-top: 0;
	}
	#guide_download {
		max-width: 600px;
	}
	#guide_download a {
		margin-top: 20px;
	}
	#title_top {
		transform: scale(0.7);
		transform-origin: center center;
	}
	#hero ul#key_text li img {
		transform: scale(0.7);
		transform-origin: left bottom;
	}
}
@media (max-width: 640px) {
	#main #property h2 {
		left: 0;
		margin: 11px auto;
	}
	#property_list {
		margin: -11px auto 24px;
	}
	#title_top {
		transform: scale(0.5);
	}
	#hero ul#key_text li img {
		transform: scale(0.5);
	}
}
@media (max-width: 580px) {
	#guide_download {
		display: block;
	}
	#guide_download a {
		display: block;
		margin: 20px auto 0;
		max-width: 243px;
		width: 100%;
	}
	#guide_download a img {
		display: block;
		height: auto;
		width: 100%;
	}
}
@media (max-width: 480px) {
	#about_otari {
		float: none;
		margin: 12px auto;
	}
	div.voice.no3 {
		margin-left: 0;
	}
	#title_top {
		transform: scale(0.3);
	}
	#hero ul#key_text li img {
		transform: scale(0.3);
	}
}
