@charset "utf-8";

*:focus {
outline: none;
}

/*========= 上部固定させるためのCSS ===============*/
#header {
	position: fixed; /*fixedを設定して固定*/
	height: 80px; /*高さ指定*/
	width: 100%; /*横幅指定*/
	z-index: 999; /*最前面へ*/
	/*以下はレイアウトのためのCSS*/
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: none;
	color: #333333;
	background-color: rgba(0,120,80,0.9);
	box-shadow: 0 0 5px 2px rgba(0,0,0,0.1);
	text-align: center;
	padding: 0 0 0 20px;
}
@media screen and (max-width:768px) {
	#header {
		height: 60px;
	}
}

/*------------------------------------------ハンバーガーメニュー*/
/*ボタン外側*/
.openbtn1 {
  position: relative;/*ボタン内側の基点となるためrelativeを指定*/
  background: none;
  cursor: pointer;
  /*width: 50px;
  height: 36px;*/
	display: block;
	width: 100%;
	height: 100%;
  /*border-radius: 5px;*/
	background-color: #ffffff;
	border-left: 1px solid #007850;
	border-bottom: 1px solid #007850;
}

/*ボタン内側*/
.openbtn1 span {
  display: inline-block;
  position: absolute;
  left: 20px;
  height: 1px;
  background: #007850;
  width: 40px;
}
.openbtn1 span:nth-of-type(1) {
  top:20px; 
}
.openbtn1 span:nth-of-type(2) {
  top:30px;
}
.openbtn1 span:nth-of-type(3) {
  top:40px;
}
.openbtn1 span.openbtn_text {
  top: 50px;
	left: 1px;
	background: none;
	font-size: 1.1rem;
	letter-spacing: 0.15em;
	text-align: center;
	width: 100%;
	color: #008c5a;
}
@media screen and (max-width:768px) {
	.openbtn1 span {
		left: 15px;
		width: 30px;
	}
	.openbtn1 span:nth-of-type(1) {
		top: 15px;
	}
	.openbtn1 span:nth-of-type(2) {
		top: 23px;
	}
	.openbtn1 span:nth-of-type(3) {
		top: 31px;
	}
	.openbtn1 span.openbtn_text {
		top: 35px;
		font-size: 1rem;
	}
}

/*--------------------------------------モーダルメニュー開閉*/
/*hideエリアをはじめは非表示*/
.hide-area{
	display: none;
}
/*モーダルのボタンの色を変更したい場合*/
.modaal-close:after, 
.modaal-close:before{
	background:#ccc;	
}
.modaal-close:focus:after,
.modaal-close:focus:before,
.modaal-close:hover:after,
.modaal-close:hover:before{
	background:#666;
}
/*--------------------------------------モーダルメニュー開閉 ここまで*/

/*========= レイアウトのためのCSS ===============*/
.h_logo {
	width: 220px;
	position: relative;
	/*top: 13px;
    left: 10px;*/
	z-index: 100;
}

nav#hmenu {
	display: flex;
	flex-wrap: wrap;
}
nav#hmenu .hmenu_listbox {
	display: flex;
	flex-direction: column;
}
nav#hmenu .hmenu_listbox .hmenu_list {
	list-style: none;
	display: flex;
	justify-content: flex-end;
	height: 50%;
}
/*2階層目以降は横並びにしない*/
nav#hmenu .hmenu_listbox .hmenu_list ul{
  display: block;
}
nav#hmenu .hmenu_listbox .hmenu_list li {
	position: relative;
}
nav#hmenu .hmenu_listbox .hmenu_list li a {
	/*display: block;*/
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: #ffffff;
	/*padding: 10px 15px;*/
	padding: 0 15px;
	font-size: 1.3rem;
	letter-spacing: 0.1em;
	line-height: 2;
	transition: all 0.3s;
	position: relative;
}
nav#hmenu .hmenu_listbox .hmenu_list li a::after {
	content: "";
	width: 94%;
	height: 1px;
	background-color: #ffffff;
	position: absolute;
	bottom: 3px;
	left: 3%;
	transform: scale(0, 1);
	transform-origin: left top;
	transition: .3s;
}
nav#hmenu .hmenu_listbox .hmenu_list li.current a,
nav#hmenu .hmenu_listbox .hmenu_list li a:hover,
nav#hmenu .hmenu_listbox .hmenu_list li a:active {
	text-shadow: none;
}
nav#hmenu .hmenu_listbox .hmenu_list li.current a::after,
nav#hmenu .hmenu_listbox .hmenu_list li a:hover::after,
nav#hmenu .hmenu_listbox .hmenu_list li a:active::after {
	transform: scale(1, 1);
}
nav#hmenu .hmenu_contact {
	width: 180px;
}
nav#hmenu .hmenu_contact li {
	height: 40px;
	border-bottom: 1px solid #007850;
}
nav#hmenu .hmenu_contact li a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #007850;
	transition: .3s;
}
nav#hmenu .hmenu_contact li.hmenu_tel a {
	background-color: #ffffff;
}
nav#hmenu .hmenu_contact li.hmenu_mail a {
	background-color: #f9f9e1;
	font-size: 1.3rem;
}
nav#hmenu .hmenu_contact li.hmenu_tel a::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-image: url("../img/common/ic_tel.png");
	background-size: contain;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	margin-right: 5px;
}
nav#hmenu .hmenu_contact li.hmenu_mail a::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-image: url("../img/common/ic_mail.png");
	background-size: contain;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	margin-right: 5px;
}
nav#hmenu .hmenu_contact li a:hover {
	opacity: .8;
}
nav#hmenu .btn_mdl {
	width: 80px;
	height: 80px;
	position: relative;
}
@media screen and (max-width:991px) {
	nav#hmenu .spnone {
		display: none;
	}
}
@media screen and (max-width:768px) {
	.h_logo {
		width: 240px;
	}
	nav#hmenu .btn_mdl {
		width: 60px;
		height: 60px;
		position: relative;
	}
}



/*--------モーダル内メニュー*/
.spnav_wrap {
	display: flex;
	flex-wrap: wrap;
	max-width: 600px;
	margin: 0 auto;
}
.spnav_wrap ul.sp_menu {
	width: 31%;
}
.spnav_wrap ul.sp_menu:nth-child(3n+2) {
	width: 33%;
}
.spnav_wrap ul.sp_menu:nth-child(3n) {
	width: 31%;
}
.spnav_wrap ul.sp_menu li {
	font-size: 1.4rem;
	margin-bottom: 0.8em;
}
.spnav_wrap ul.sp_menu li ul.sp_menu_child {
	margin-top: 0.8em;
	margin-left: 1em;
}
.spnav_wrap ul.sp_menu li ul.sp_menu_child li {
	padding-left: 1.2em;
	position: relative;
}
.spnav_wrap ul.sp_menu li ul.sp_menu_child li::before {
	content: "";
	display: block;
	width: 0.6em;
	height: 1px;
	background-color: #ffffff;
	position: absolute;
	left: 0;
	top: 1em;
}
.spnav_wrap ul.sp_menu li a {
	display: block;
	color: #ffffff;
}
@media screen and (max-width: 768px) {
	.spnav_wrap {
		justify-content: space-between;
	}
	.spnav_wrap ul.sp_menu,
	.spnav_wrap ul.sp_menu:nth-child(3n+2),
	.spnav_wrap ul.sp_menu:nth-child(3n) {
		width: 48%;
	}
	.spnav_wrap ul.sp_menu li {
		font-size: 1.3rem;
	}
}









