﻿@charset "utf-8";

header {
	position: sticky;
	top: 0px;
	width: 100%;
	height: 80px;
	background: #fff;
	box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.3);
	z-index: 3;
}

.inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 80%;
	max-width:1200px;
	height: 100%;
	margin: 0 auto;
}

.h_logo {
	margin: 5px 0 0;
}

#navi ul {
	display: flex;
}

#navi li a {
	display:inline-block;
	position:relative;
	color: #333;
	margin: 10px 0 0px 50px;
	letter-spacing: 2px;
	padding: 0px 0px 5px;
	font-weight: normal;
}
#navi li a::after {
	content:'';
	position:absolute;
	left:50%;
	bottom:-3px;
	width:60%;
	height:2px;
	opacity:0;
	background-color:#002d43;
	transform:translate(-50%,0);
	transition:all .3s ease-in-out;
}
#navi li a:hover::after {
	width:100%;
	opacity:1;
}
#navi li a:hover {
	color: #002d43;
}

#nav_toggle{
	display: none;
}

.header_tell {
	display: none;
}

/*スマホ・タブレット用の設定*/
@media screen and (max-width:767px){
	header {
		height: 70px;
	}
	.inner {
		width: 90%;
	}
	.h_logo {
		width: 247px;
		height: 40px;
	}
	
	/*メニュー部分*/
	#navi {
		position: fixed;
		top  : 70px;
		left : 0;
		background: #fff;
		text-align: center;
		transform: translateX(100%);
		transition: all 0.5s;
		width: 100%;
		height: 100vh;
	}
	#navi ul {
		display: block;
		padding: 50px 0 0;
	}
	#navi ul li:last-child {
		padding-bottom: 0;
	}
	#navi ul li a {
		display: block;
		font-weight: bold;
		margin: 0px 0 0px 0px;
		padding: 1.2em 0;
	}
	#navi li a:hover::after {
		opacity: 0;
	}
	
	 /* このクラスを、jQueryで付与・削除する */
	#navi.active {
		transform: translateX(0%);
	}


	/* TEL */
	.header_tell {
		display: block; 
		margin: 50px 0;
		border: 0px;
		text-align:center;
	}
	.tell_number a {
		color:#fff;
	}
	.tell_number a:hover {
		color:#fff;
	}
	.tell_number_btn {
		display: block; 
		width: 60%;
		color:#fff;
		margin: 0px auto 10px;
		padding: 0.7rem 0;
		border-radius: 50px;
		background: #013076;
		transition: 1s;
	}
	.tell_number_btn:hover {
		background: #336abb;
	}
	.tell_number_btn:before {
		font-family: 'Font Awesome 5 Free';
		content: "\f2a0";
		font-weight: 900;
		padding: 0 5px 0 0;
	}
	.tell_time {
		font-size: 0.8rem;
	}


	/*　ハンバーガーボタン　*/
	.nav_toggle {
		display : block;
		position: fixed;
		z-index : 3;
		right : 30px;
		top   : 15px;
		width : 50px;
		height: 50px;
		cursor: pointer;
		text-align: center;
	}
	.nav_toggle span {
		display : block;
		position: absolute;
		width   : 50px;
		height  : 3px ;
		background : #555;
		border-radius: 2px;
		-webkit-transition: all 0.5s ease;
		-moz-transition   : all 0.5s ease;
		transition: all 0.5s ease;
	}
	.nav_toggle span:nth-child(1) {
		top: 10px;
		transition: width 0.15s 0.15s, top 0.15s, right 0.15s, transform 0.15s;
	}
	.nav_toggle span:nth-child(2) {
		top: 20px;
		transition: transform 0.15s;
	}
	.nav_toggle span:nth-child(3) {
		top: 30px;
		right: 0;
		transition: width 0.15s 0.15s, top 0.15s, right 0.15s, transform 0.15s;
	}

	/* ナビ開いてる時のボタン */
	.nav_toggle.active span:nth-child(1) {
		top: 22%;
		left: 8%;
		width: 50%;
		transform: rotate(45deg);
		transition: width 0.15s, top 0.15s 0.15s, left 0.15s 0.15s, transform 0.15s 0.15s;
	}
		.nav_toggle.active span:nth-child(2) {
		transform: rotate(-45deg);
		transition: transform 0.15s 0.15s;
	}
	.nav_toggle.active span:nth-child(3) {
		width: 50%;
		right: 7%;
		top: 57%;
		transform: rotate(45deg);
		transition: width 0.15s, top 0.15s 0.15s, right 0.15s 0.15s, transform 0.15s 0.15s;
	}
}

