/* 
 * 栂池自然園
 * トップページ CSS Document
 */
/* section */
section:nth-of-type(odd) {
	color: white;
	text-shadow: 0 0 10px black;
}
section:nth-of-type(even) h2 + p {
	max-width: 510px;
}
section:not(#catch)::before {
	border-left: 1px solid;
	content: "";
	height: 24px;
	left: 50%;
	position: absolute;
	top: 0;
	width: 1px;
}
article {
	margin: 130px auto 0;
}
.left {
	float: left;
	margin-bottom: 130px;
	max-width: 510px;
	width: 100%;
}
.left + img {
	display: block;
	float: right;
	height: auto;
	margin-bottom: 130px;
	max-width: 420px;
	width: calc(100% - 530px);
}

/* text */
h2 {
	font-size: 5rem;
	font-weight: 500;
	margin: 0;
	padding: 10px 10px 10px 0;
	line-height: 1em;
}
h3 {
	font-size: 3rem;
	font-weight: normal;
}
h2 ~ p {
	font-size: 1.6rem;
	line-height: 1.875;
	margin-bottom: 30px;
}
a.next {
	bottom: 35px;
	color: inherit;
	cursor: pointer;
	display: block;
	font-size: 3rem;
	left: calc(50% - 2em);
	position: absolute;
	text-align: center;
	text-decoration: none;
	width: 4em;
}
a.next::after {
	border-left: 1px solid;
	bottom: -35px;
	content: "";
	display: block;
	height: 24px;
	left: 50%;
	position: absolute;
	width: 1px;
}

/* catch */
#catch {
    height: 922px; /*825px;*/
	padding-bottom: 240px;
	text-align: center;
}
#hero {
	height: 100%;
	list-style: none;
	margin: 0 0 0 calc(50% - 1000px);
	max-height: 825px;
	padding: 0;
	position: absolute;
	width: 2000px;
	z-index: 0;
}
#hero li {
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}
#hero li img {
	animation: 2.4s fadeOut forwards;
	display: block;
	height: 100%;
	opacity: 0;
	width: 100%;
}
#hero li.active img {
	animation: 2.6s fadeIn forwards;
}
#catch article {
	height: calc(100% - 152px);
	margin-top: 312px;
	z-index: 1;
}
h1 {
	font-size: 7rem;
	font-weight: 500;
	line-height: 1.28;
	margin: 0;
}
h1 + p {
	font-size: 3rem;
	font-weight: 500;
}
#news {
	color: black;
	margin: 308px auto 0;
	/*max-width: 46rem;*/
	overflow: hidden;
	text-shadow: none;
}
#news dt {
	border-right: 1px solid;
	float: left;
	font-size: 3rem;
	line-height: 9.6rem;
	padding-right: 3rem;
	width: 8rem;
}
#news dd {
	float: right;
	font-size: 1.6rem;
	line-height: 2;
	margin: 0;
	width: calc(100% - 14rem);
}
#news dd a {
	color: inherit	;
	display: block;
	overflow: hidden;
	text-align: left;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
}
#news dd a font {
	display: block;
	overflow: hidden;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
}
#catch a.next {
	color: black;
	text-shadow: none;
}
#relief {
    border: 1px solid gray;
    color: black;
    font-size: 2rem;
    display: block;
    margin: 1em auto 0;
    padding: 1em 0;
    text-decoration: none;
    text-shadow: none;
    width: 16em;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
@keyframes fadeOut {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

/* mikketa */
#mikketa {
	background: url(../img/top/banner_700x292.jpg) no-repeat center center;
	background-size: cover;
	display: block;
	margin: 130px auto 0;
	max-width: 700px;
	width: calc(100% - 60px);
}
#mikketa::before {
	content: "";
	display: block;
	padding-top: 41.714%;
	width: 100%;
}


/* keywords */
#keywords {
	border: 1px solid black;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	margin: 60px auto 0;
	max-width: 960px;
	padding: 60px 40px 40px;
	position: relative;
	width: 100%;
}
#keywords::before {
	content: "keywords";
	font-size: 2rem;
	left: 0;
	margin: 0 auto;
	position: absolute;
	text-align: center;
	top: 16px;
	width: 100%;
}
ul#keywords li a {
	background-color: black;
	border-radius: 8px;
	color: white;
	display: block;
	font-size: 1.6rem;
	margin: 0 8px 8px 0;
	padding: 12px 24px;
	text-decoration: none;
}

/* walking */
#walking {
	background: url(../img/top/walking_bg.jpg) no-repeat center bottom;
	height: 600px;
}


/* program */
#program {
	background: url(../img/top/program_bg.jpg) no-repeat center center;
	height: 600px;
}

/* guide */
#guide {
	background: url(../img/top/guide_bg.jpg) no-repeat center center;
	height: 600px;
}

/* instagram */
#instagram article {
	margin: 0 auto;
	padding: 140px 0 112px;
}
#instagram article h2 {
	text-align: center;
}
#instagram article h2 img{
	width: 40px;
}
#instagram article .insta-photo{
	text-align: center;
}
#instagram article .insta-photo img{
	width: 50%;
}
#instagram ul {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
	position: relative;
}
#instagram ul::before {
	content: "Instagram";
	font-size: 3rem;
	font-style: italic;
	font-weight: 100;
	top: -52px;
	position: absolute;
	text-align: center;
	width: 100%;
}
#instagram ul li {
	margin: 5px;
	width: calc(20% - 10px);
}
#instagram ul li a {
	background-size: cover;
	display: block;
	width: 100%;
}
#instagram ul li a::before {
	content: "";
	display: block;
	padding-top: 100%;
	width: 100%;
}
#instagram ul li img {
	display: block;
	height: auto;
	width: 100%;
}

#insta-widget {
	background-color: inherit !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
}
#insta-widget::before {
	content: "Instagram";
	font-size: 3rem;
	font-style: italic;
	font-weight: 100;
	top: 90px;
	position: absolute;
	text-align: center;
	width: 100%;
}
.iswg-images-item {
	margin: 0 5px 10px;
	padding: 0 !important;
	width: calc((100% - 50px) / 5) !important;
}
.iswg-image-link {
	display: block;
}
.iswg-image {
	display: block;
}

/* access */
#access {
	background: url(../img/top/access_bg.jpg) no-repeat center center;
}
#access article {
	height: calc(100% - 130px);
	margin-top: 130px;
}
#access h2 {
	margin-bottom: 40px;
	text-align: center;
}
#map_wrapper {
	margin-bottom: 50px;
	position: relative;
	width: 100%;
}
#map_wrapper::before {
	content: "";
	display: block;
	padding-top: 60%;
	width: 100%;
}
#map_wrapper iframe {
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}
#buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 50px auto 0;
	padding: 0;
}
#buttons li {
	margin-bottom: 24px;
	max-width: 266px;
	width: 100%;
}
#buttons li .more {
	box-sizing: border-box;
}

/* media query */
@media (max-width: 2000px) {
	/*
	#catch {
		background-color: silver;
		background-size: contain;
	}
	#walking {
		background-position: right top;
	}
	*/
}
@media (max-width: 1100px) {
	section:nth-child(2n) article {
		margin-top: 40px;
	}
	#access article{
		margin-top: 40px;
	}
	#mikketa {
		margin-top: 40px;
	}
}
@media (max-width: 850px) {
	#hero {
		height: 392px;
		margin: 0;
		width: 834px;
	}
	#news {
		margin: 72px auto 0px;
	}
	#news dd a {
		color: black;
	}
	#catch {
		height: auto;
		padding-bottom: 100px;
	}
	#catch article {
		height: calc(100% - 400px);
		margin-top: 130px;
	}
	#catch article p{
		font-size: medium;
	}
	#instagram ul li {
		width: calc(25% - 10px);
	}
}
@media (max-width: 780px) {

	/*
	#top {
		background: transparent;
		box-shadow: none;
		height: 0;
	}
	#buttons {
		display: block;
	}
	#buttons li {
		margin: 0 auto 16px;
		max-width: 266px;
		width: 100%;
	}
	*/
}
@media (max-width: 770px) {
	h1 {
		font-size: 7.6vw;
		padding: 10px;
	}
	#news {
		margin-top: calc(188.356px - 15.111vw);
	}
	.left {
		float: none;
		margin: 0;
		max-width: 100%;
	}
	.left + img {
		float: none;
		margin: 60px auto 80px;
		width: 100%;
	}
	.more {
		margin: 0 auto;
		max-width: 100%;
	}
	#map_wrapper {
		float: none;
		margin: 60px auto 80px;
	}
	#access h2{
		padding: 10px 0;
		line-height: 1em;
		margin-bottom: 10px;
		text-align: left;
	}
	#map_wrapper{
		margin: 0 auto 40px;
	}
	footer{
		margin-top: 30px;
	}
}
@media (max-width: 620px) {
	#buttons {
		display: block;
		max-width: 100%;
		width: 100%;
		margin: 0 auto 0;
	}
	#buttons li{
		max-width: 100%;
		margin-bottom: 10px;
	}
	.iswg-images-item {
		width: calc((100% - 30px) / 3) !important;
	}
}
@media (max-width: 575px) {
	#fun h2 {
		font-size: 8vw;
	}
	#instagram ul li {
		width: calc(100% / 3 - 10px);
	}
	#instagram article .insta-photo img{
		width: 90%;
	}
}
@media (max-width: 520px) {
	#catch{
		height: auto;
	}
	#walking,
	#program,
	#guide {
		background-size: cover;
		height: inherit;
	}
	#walking article,
	#program article,
	#guide article {
		height: inherit;
		margin-top: 50px;
	}
	#walking .more,
	#program .more,
	#guide .more {
		margin-bottom: 100px;
	}
	h2 {
		font-size: 9vw;
		padding: 10px 0;
		margin-bottom: 0;
		line-height: 1em;
	}
	#news dt {
		border: none;
		padding: 20px 0 10px;
		width: 100%;
		line-height: 1em;
		border-bottom: 1px solid #ddd;
	}
	#news dd {
		float: none;
		width: 100%;
		overflow: hidden;
		padding: 15px 0;
		line-height: 1em;
		border-bottom: 1px solid #ddd;
		font-size: small;
	}
	h2 ~ p{
		margin-top: 0;
		margin-bottom: 20px;
		font-size: small;
		font-weight: bold;
	}
}
@media (max-width: 480px) {
	#instagram ul li {
		width: calc(50% - 10px);
	}
    #relief {
        font-size: 1.4rem;
    }
}
@media (max-width: 425px) {
	#program h2 {
		font-size: 11vw;
	}
}
@media (max-width: 380px) {
	#mikketa {
		background-image: url(../img/top/banner_320x134.jpg);
	}
}
