/* header */
#top-head {
	top: -100px;
	position: absolute;
	width: 100%;
	margin: 100px auto 0;
	padding: 0;
	line-height: 1;
	z-index: 999;
	background: none;
}
#top-head a,
#top-head {
	text-decoration: none;
}
#top-head .inner {
	position: relative;
	max-width: 960px;
	margin: auto;
}
#top-head .logo {
	position: absolute;
	left: 13px;
	top: 13px;
	margin: 0;
	padding: 0;
	z-index: 10;
	width: 270px;
}
#home #top-head .logo {
	display: none;
}
#global-nav ul {
	list-style: none;
	position: absolute;
	left: 50%;
	top: 100px;
	font-size: 14px;
	display: flex;
	flex-wrap: nowrap;
	margin-left: -370px;
	background: url("../images/navi_tori.png") no-repeat left bottom;
	padding: 13px 0 0 100px;
}
#home #global-nav ul {
	top: 30px;
}
#global-nav ul li {
	background: #6bc1d1;
	padding: 3px;
	border-radius: 10px;
	margin-right: 10px;
	margin-top: 0;
}
#global-nav ul li:last-child {
	position: absolute;
	top: -70px;
	right: -60px;
	background: none;
}
#home #global-nav ul li:last-child {
	display: none;
}
#global-nav ul li:last-child a {
	background: url(../images/btn_top.png) no-repeat;
	border: none;
	color: white;
	text-indent: -9999px;
	width: 121px;
	height: 62px;
}
#global-nav ul li:last-child a:hover {
	background: url(../images/btn_top_on.png) no-repeat;
}
#global-nav ul li.navi01 {
	transform: rotate(1deg);
}
#global-nav ul li.navi02 {
	transform: rotate(-2deg);
}
#global-nav ul li.navi03 {
	transform: rotate(3deg);
}
#global-nav ul li.navi04 {
	transform: rotate(-2deg);
}
#global-nav ul li.navi05 {
	transform: rotate(1deg);
	margin-right: 0;
}
#global-nav ul li a {
	padding: 0;
	background: #6bc1d1;
	border: 2px dotted white;
	color: white;
	padding: 10px 15px;
	display: inline-block;
	border-radius: 5px;
}
#global-nav ul li a:hover {
	background: #a7c33c;
}

/* Fixed */
#top-head.fixed {
	margin-top: 0;
	top: 0;
	position: fixed;
	padding-top: 10px;
	height: 55px;
	background: #5a740b;
	transition: top 0.65s ease-in;
	-webkit-transition: top 0.65s ease-in;
	-moz-transition: top 0.65s ease-in;
}
#top-head.fixed .logo {

}
#top-head.fixed #global-nav ul li a {
	color: #333;
	padding: 0;
}

/* Toggle Button */
#nav-toggle {
	display: none;
	position: absolute;
	right: 12px;
	top: 14px;
	width: 34px;
	height: 36px;
	cursor: pointer;
	z-index: 101;
}
#nav-toggle div {
	position: relative;
}
#nav-toggle span {
	display: block;
	position: absolute;
	height: 4px;
	width: 100%;

	left: 0;
	-webkit-transition: .35s ease-in-out;
	-moz-transition: .35s ease-in-out;
	transition: .35s ease-in-out;
}
#nav-toggle span:nth-child(1) {
	top: 0;
	background: #9ec500;
}
#nav-toggle span:nth-child(2) {
	top: 11px;
	background: #00b1f2;
}
#nav-toggle span:nth-child(3) {
	top: 22px;
	background: #ff7ce5;
}

@media screen and (max-width: 768px) {
	#global-nav ul {
		font-size: 13px;
	}

}
@media screen and (max-width: 640px) {
	#top-head,
	.inner {
		width: 100%;
		padding: 0;
	}
	#top-head {
		top: 0;
		position: fixed;
		margin-top: 0;
	}
	/* Fixed reset */
	#top-head.fixed {
		padding-top: 0;
		background: transparent;
	}
	#mobile-head {
		background: rgba(255,255,255,0.7);
		width: 100%;
		height: 60px;
		z-index: 999;
		position: relative;
	}
	#top-head.fixed .logo,
	#top-head .logo {
		position: absolute;
		left: 13px;
		top: 6px;
		color: #333;
		font-size: 26px;
		width: 200px;
	}
	#home #top-head .logo {
		display: block;
	}
	#global-nav {
		position: absolute;
		/* 開いてないときは画面外に配置 */
		top: -500px;
		background: rgba(0,159,188,0.9);
		width: 100%;
		text-align: center;
		padding: 10px 0 0;
		-webkit-transition: .5s ease-in-out;
		-moz-transition: .5s ease-in-out;
		transition: .5s ease-in-out;
	}
	#global-nav ul {
		list-style: none;
		position: static;
		right: 0;
		bottom: 0;
		font-size: 16px;
		padding-top: 76px;
		margin: 0;
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		background: none;
		padding-left: 0;
	}
	#global-nav ul li {
		position: static;
		width:100%;
		border-bottom: 1px dotted white;
		margin: 0;
		padding: 0;
		background: none;
		border-radius: 0;
	}
	#global-nav ul li.navi01,
	#global-nav ul li.navi02,
	#global-nav ul li.navi03,
	#global-nav ul li.navi04,
	#global-nav ul li.navi05 {
		transform: rotate(0deg);
	}
	#global-nav ul li:first-child {

	}
	#home #global-nav ul li:last-child {
		display: block;
	}
	#global-nav ul li:last-child {
		position: relative;
		top: auto;
		right: auto;
		background: none;
		margin-bottom: 0;
		display: block;
	}
	#global-nav ul li:last-child a {
		background: none;
		border: none;
		color: white;
		text-indent: 0;
		width: auto;
		height: auto;
	}
	#global-nav ul li:last-child a:hover {
		background: none;
	}
	#top-head #global-nav ul li a,
	#top-head.fixed #global-nav ul li a {
		width: 100%;
		display: block;
		color: #fff;
		padding: 18px 0;
		border: none;
		border-radius: 0;
		background: none;
	}
	#nav-toggle {
		display: block;
	}
	/* #nav-toggle 切り替えアニメーション */
	.open #nav-toggle span:nth-child(1) {
		top: 11px;
		-webkit-transform: rotate(315deg);
		-moz-transform: rotate(315deg);
		transform: rotate(315deg);
	}
	.open #nav-toggle span:nth-child(2) {
		width: 0;
		left: 50%;
	}
	.open #nav-toggle span:nth-child(3) {
		top: 11px;
		-webkit-transform: rotate(-315deg);
		-moz-transform: rotate(-315deg);
		transform: rotate(-315deg);
	}
	/* #global-nav スライドアニメーション */
	.open #global-nav {
		/* #global-nav top + #mobile-head height */
		-moz-transform: translateY(500px);
		-webkit-transform: translateY(500px);
		transform: translateY(500px);
	}
}
