@charset "utf-8";

/* =========================================
	header
========================================= */
#header {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1em;
	background-color: #fff;
	width: 100%;
	text-align: center;
}
#header h1 a {
	display: block;
}
#header h1 img {
	display: block;
	height: auto;
	width: 320px;
	margin: 0 auto;
}

@media screen and (max-width: 960px) {
	#header {
		position: fixed;
		z-index: 999;
		top: 0;
		left: 0;
		justify-content: center;
		padding: 0;
		height: 80px;
	}
	#header h1 img {
		width: 220px;
	}
}
@media screen and (max-width: 568px) {
	#header {
		height: 64px;
	}
	#header h1 img {
		width: 160px;
	}
}

/* =========================================
	ハンバーガーボタン
========================================= */
.openbtn {
	display: none;
}
@media screen and (max-width: 960px) {
	.openbtn {
		display: block;
		position: fixed;
		width: 80px;
		height: 80px;
		z-index: 1001;
		top: 0;
		left: 0;
		margin: 0;
		cursor: pointer;
	}
	.openbtn span {
		display: inline-block;
		transition: all 0.4s;
		position: absolute;
		left: 20px;
		height: 3px;
		width: 40px;
		border-radius: 2px;
		background-color: #111;
	}
	.openbtn span:nth-of-type(1) { top: 29px; }
	.openbtn span:nth-of-type(2) { top: 38px; }
	.openbtn span:nth-of-type(3) { top: 47px; }
	.openbtn.active span {
		background-color: #fff;
	}
	.openbtn.active span:nth-of-type(1),
	.openbtn.active span:nth-of-type(3) {
		top: 38px;
	}
	.openbtn.active span:nth-of-type(1) {
		transform: rotate(45deg);
	}
	.openbtn.active span:nth-of-type(2) {
		opacity: 0;
	}
	.openbtn.active span:nth-of-type(3) {
		transform: rotate(-45deg);
	}
}
@media screen and (max-width: 568px) {
	.openbtn {
		width: 64px;
		height: 64px;
	}
	.openbtn span { left: 17px; width: 30px; }
	.openbtn span:nth-of-type(1) { top: 20px; }
	.openbtn span:nth-of-type(2) { top: 29px; }
	.openbtn span:nth-of-type(3) { top: 38px; }
	.openbtn.active span:nth-of-type(1),
	.openbtn.active span:nth-of-type(3) {
		top: 29px;
	}
}

/* =========================================
	グローバルナビ（#g-nav）
========================================= */
#g-nav {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: -120%;
	width: 50%;
	height: 100vh;
	background-color: rgba(0,0,0,0.9);
	transition: all 0.5s;
	overflow-y: auto;
}
#g-nav.panelactive {
	left: 0;
}
#g-nav ul {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width: 100%;
}
#g-nav li {
	text-align: center;
}
#g-nav li a {
	display: block;
	text-align: center;
	color: #fff;
	text-decoration: none;
	padding: 0.75em;
	font-weight: 600;
	word-break: keep-all;
}
#g-nav li a:hover {
	color: #f4aa2d;
}

@media screen and (max-width: 960px) {
	#g-nav,
	#g-nav.panelactive {
		width: 100%;
	}
}
@media screen and (max-width: 568px) {
	#g-nav li a {
		padding: 0.5em 1em;
		font-size: 0.9rem;
	}
}
