﻿* {
	margin: 0;
	padding: 0;
}
*::after,
* {
	-webkit-box-sizing: border-box;
	-   moz-box-sizing: border-box;
	        box-sizing: border-box;
}
body {
	font-family: 'Lato', sans-serif;
}
a {
	color: #0b8793;
}

#main-visual {
	height: auto;
	margin: 140px 0 0;
	padding: 0;
	text-align:center;
}

#main_contents{
	margin : 20px auto;
	padding-bottom: 30em;
	padding-top   : 0px;
	padding-right : 20px;
	padding-left  : 20px;
	text-align: center;
	width:98%;
	max-width: 600px;
	border:3px dashed #152;
}

h2{
	text-align: center;
	margin : 40px 0 10px;
}
.sub_contents{
	display:block;
	position:relative;
	padding: 10px 10px 0px;
	margin:0 auto;
	width:100%;
	max-width: 600px;
	line-height:1.6;
}
.emscale{
	margin:0;
	padding:0;
	width:1px;
	height:1em;
}

#footer {
	padding: 0.8vw;
	font-size: 70%;
	margin:1vw auto;
	width:96%;
	max-width: 600px;
	border-top: solid 1px #bbb;
}
.logo_pic {
	margin: 0 -2px;
	padding: 2px;
	width: auto;
       	height: 100px;
}
.top_pic {
	display: block;
	margin: 0px auto 10px;
	width: 100%;
	max-width: 700px;
	box-shadow: 0px 0px 20px -5px rgba(0, 0, 0, 0.8);
}
/* ▲▲▲ここまではナビゲーションに関係ない設定▲▲▲ */

.inner:after {
	content: "";
	clear: both;
	display: block;
}

/* header */
#top-head {
	font-size: 14px;
	top: -100px;
	position: absolute;
	width: 100%;
	margin: 100px auto 0;
	padding: 20px 0 0;
	line-height: 1;
	z-index: 999;
}
#top-head a,
#top-head {
	color: #333;
	// color: #fff;
	text-decoration: none;
}
#top-head .inner {
	width: 800px;
	margin: 0 auto;
	position: relative;
}
#top-head .logo {
	float: left;
	font-size: 14px;
	padding: 0 10px 0 0;
}
#top-head .title {
	font-size: 14px;
}
#top-head .title1 {
	padding: 4px 0;
}
#top-head .title2 {
	padding: 5px 0;
}
#global-nav ul {
	list-style: none;
	position: absolute;
	right: 0;
	font-size: 16px;
}
.menu1 {
	top: 20px;
}
.menu2 {
	top: 60px;
}
.novis {
}

#global-nav ul li {
	float: left;
	position: relative;
}
#global-nav ul li a {
	padding: 0 10px;
}

/* Btn Hover */
#global-nav ul li:after {
	position: absolute;
	content: "";
	display: block;
	width: 100%;
	height: 3px;
	bottom: -20px;
	transition: all 0.3s ease;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
}
#global-nav ul li:hover:after {
	background: #2a4;
	//background: #fff;
	bottom: -5px;
}


/* Fixed */
#top-head.fixed {
	margin-top: 0;
	top: 0;
	position: fixed;
	padding-top: 10px;
	height: 60px;
	background: #fff;
	background: rgba(255,255,255,.9);

	transition: top 0.65s ease-in;
	-webkit-transition: top 0.65s ease-in;
	   -moz-transition: top 0.65s ease-in;
}
#top-head.fixed .logo {
	font-size: 24px;
	color: #333;
}
#top-head.fixed .title1 {
	display: none;
}
#top-head.fixed .title2 {
	color: #333;
}
#top-head.fixed .inner {
	width: 800px;
}
#top-head.fixed .menu1 {
	top: 0px;
}
#top-head.fixed .menu2 {
	top: 24px;
}
#top-head.fixed .logo_pic {
	width: auto;
       	height: 40px;
}
#top-head.fixed #global-nav ul li a {
	color: #333;
	padding: 0 10px;
}

/* Fixed Btn Hover */
#top-head.fixed #global-nav ul li:after {
	bottom: -10px;
}
#top-head.fixed #global-nav ul li:hover:after {
	background: #2a4;
	// background: #0062B8;
	bottom: -5px;
}
/* Toggle Button */
#nav-toggle {
	display: none;
	position: absolute;
	right: 4vw;
	top: 4vw;
	width: 6.5vw;
	height: 8vw;
	cursor: pointer;
	z-index: 101;
}

#nav-toggle div {
	position: relative;
}
#nav-toggle span {
	display: block;
	position: absolute;
	height: 1vw;
	width: 100%;
	background: #666;
	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;
}
#nav-toggle span:nth-child(2) {
	top: 2vw;
}
#nav-toggle span:nth-child(3) {
	top: 4vw;
}

@media screen and (max-width: 800px) {

	.link_float{
		float:none;
		display:inline-block;
		padding:10px;
	}
	#top-head .inner {
		width: 100%;
	}
	#top-head {
		top: 0;
		position: fixed;
		margin-top: 0;
		padding: 0;
	}
	/* Fixed reset */
	#top-head.fixed {
		padding-top: 0;
		background: transparent;
	}
	#main-visual {
		margin: 14vw 0 0;
	}
	.top_pic {
		margin: 0 auto 2vw;
	}
	.logo_pic {
		height: 14vw;
	}
	#top-head.fixed .logo_pic {
		height: 7.5vw;
	}
	#top-head.fixed .inner {
		width: 100%;
	}

	#mobile-head {
		background: #f0faf0;
		color: #333;
		height: 14vw;
		z-index: 999;
		width: 100%;
		position: relative;
	}
	#top-head.fixed #mobile-head {
		height: 8.5vw;
	}
	#top-head.fixed .logo{
		margin: 0.5vw 0 0 0.5vw ;
		color: #333;
	}
	#top-head .logo {
		margin: 0 0 0 0.5vw ;
		color: #333;
	}
	#top-head.fixed .title {
		font-size: 2.4vw;
		padding: 1.6vw 0 0;
	}
	#top-head .title {
		font-size: 2vw;
		padding: 1.6vw 0 0;
	}
	#top-head .title1 {
		padding: 0.4vw 0;
	}
	#top-head .title2 {
		padding: 0.5vw 0;
	}

	#global-nav {
		position: absolute;
		/* 開いてないときは画面外に配置 */
		top: -500px;
		background: #333;
		width: 100%;
		text-align: center;
		padding: 10px 0;
		-webkit-transition: .5s ease-in-out;
		   -moz-transition: .5s ease-in-out;
		        transition: .5s ease-in-out;
	}
	#top-head #global-nav {
		padding: 15vw 0 0;
	}
	#top-head.fixed #global-nav {
		padding: 9vw 0 0;
	}
	#global-nav ul {
		list-style: none;
		position: static;
		right: 0;
		bottom: 0;
		font-size: 18px;
	}
	#global-nav ul li {
		float: none;
		position: static;
	}
	#global-nav ul li:after  {
		display: none;
	}
	#top-head #global-nav ul li a,
	#top-head.fixed #global-nav ul li a {
		width: 100%;
		display: block;
		color: #fff;
		padding: 12px 0;
	}
	#nav-toggle {
		display: block;
	}
	.novis {
		display: none;
	}
		

	/* #global-nav スライドアニメーション */
	.open #global-nav {
		/* #global-nav top + #mobile-head height */
		-webkit-transform: translateY(500px);
		   -moz-transform: translateY(500px);
		        transform: translateY(500px);
	}
	/* #nav-toggle 切り替えアニメーション */
	.open #nav-toggle span:nth-child(1) {
		top: 2vw;
		-webkit-transform: rotate(135deg);
		   -moz-transform: rotate(135deg);
		        transform: rotate(135deg);
	}
	.open #nav-toggle span:nth-child(2) {
		width: 0;
		left: 50%;
	}
	.open #nav-toggle span:nth-child(3) {
		top: 2vw;
		-webkit-transform: rotate(-135deg);
		   -moz-transform: rotate(-135deg);
		        transform: rotate(-135deg);
	}

}

