/*
- Name: megamenu.js - style.css
- Version: 1.0
- Latest update: 29.01.2016.
- Author: Mario Loncarek
- Author web site: http://marioloncarek.com
*/


/* ––––––––––––––––––––––––––––––––––––––––––––––––––
Body - not related to megamenu
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.description {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	-webkit-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	transform: translateX(-50%);
}



/* ––––––––––––––––––––––––––––––––––––––––––––––––––
megamenu.js STYLE STARTS HERE
–––––––––––––––––––––––––––––––––––––––––––––––––– */


/* ––––––––––––––––––––––––––––––––––––––––––––––––––
Screen style's
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.menu-container {
	width: 100%;
	margin: 0 0 0;
}

.menu-container * {
	box-sizing: border-box;
}

.menu-container a {
	color: #666;
}

.menu-mobile {
	display: none;
}

.menu > ul {
	display: flex;
	justify-content: space-between;
	padding: 5px 0 0;
	margin: 0 auto;
	width: 100%;
	list-style: none;
	position: relative;
	box-sizing: border-box;
	/* IF .menu position=relative -> ul = container width, ELSE ul = 100% width */
}

.menu > ul > li {
	float: left;
	/* width: 14%; */
	box-sizing: border-box;
	margin: 0;
	list-style: none;
	position: relative;
	text-align: center;
}

.menu > ul > li a .menu_ttl {
	font-size: 18px;
	font-size: 1.8rem;
	letter-spacing: 2px;
	text-align: center;
	display: block;
	box-sizing: border-box;
	transition: .3s;
}

.menu > ul > li a .menu_ttl_txt {
	text-decoration: none;
	color: #55a78f;
	padding: 0;
	display: block;
	font-size: 10px;
	font-size: 1.0rem;
	letter-spacing: 2px;
	line-height: 1.2;
}

.menu > ul > li a:hover,
.menu > ul > li.current a {
	color: #55a78f;
}



/* ––––––––––––––––––––––––––––––––––––––––––––––––––
Mobile style's
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media only screen and (max-width: 1024px) {
	.header_logo_area {
		border-top: 3px solid #76493a;
		position: fixed;
		z-index: 1000000;
		top: 0;
		left: 0;
		background-color: #fff;
		width: 100%;
		height: 70px;
		padding: 0;
		box-shadow: 0px 4px 5px -2px rgba(10,10,10,0.1);
	}

	.mobile_header {
		position: relative;
	}

	.menu-container {
		width: 100%;
	}

	.menu-mobile {
		display: block;
	}

	.menu-dropdown-icon:before {
		display: block;
	}

	.menu {
		position: fixed;
		top: 0;
		left: 150%;
		width:100%;
		transition: all 0.5s;
		z-index: 9999;
		background: #fff;
	}

	.menu.panelactive {
		left: 0%;
		transition: all 0.5s;
	}

	.menu > ul {
		height: unset;
		display: block;
		padding: 0;
	}

	.menu > ul > li {
		width: 100%;
		float: none;
		display: block;
		position: relative;
		font-size: 1.8rem;
		padding: 0;
	}

	.menu > ul > li a {
		padding: 16px 0;
		width: 100%;
		display: block;
		background: #fffce8;
		border-bottom: 1px dotted #ccc;
	}

	.menu > ul > li a .menu_ttl {
		font-size: 16px;
		font-size: 1.6rem;
	}

	.menu > ul > li.current a,
	.menu > ul > li a:hover {
		background: #fff;
	}

}



/*==================================
グローバルメニューのボタンの設定
==================================*/

.overlay {
	content: "";
	display: block;
	width: 0;
	height: 0;
	background-color: rgba(0,0,0,.7);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 150;
	opacity: 0;
	transition: opacity .5s;
	overflow: hidden;
}

.overlay.open {
	width: 100%;
	height: 100%;
	opacity: 0;
}



@media screen and (max-width : 1024px) {
	.openbtn1{
		position: fixed;
		top: 6px;
		right: 5px;
		background-color: #76493a;
		cursor: pointer;
		width: 60px;
		height: 60px;
		border-radius: 10px;
		z-index: 9999999999;
	}

	.openbtn1 span {
		display: inline-block;
		transition: all .4s;
		position: absolute;
		left: 52%;
		height: 5px;
		border-radius: 2px;
		background: #fff;
		width: 55%;
		transform: translate(-50%, -50%);
		-webkit-transform: translate(-50%, -50%);
		-ms-transform: translate(-50%, -50%);
	}

	.openbtn1 span:nth-of-type(1) {
		top: 31%;
	}

	.openbtn1 span:nth-of-type(2) {
		top: 50%;
	}

	.openbtn1 span:nth-of-type(3) {
		top: 69%;
	}

	.openbtn1.active span:nth-of-type(1) {
		top: 38%;
		left: 25%;
		transform: translateY(6px) rotate(-45deg);
		width: 55%;
	}

	.openbtn1.active span:nth-of-type(2) {
		opacity: 0;
	}

	.openbtn1.active span:nth-of-type(3) {
		top: 58%;
		left: 25%;
		transform: translateY(-6px) rotate(45deg);
		width: 55%;
	}

	.overlay.open {
		width: 100%;
		height: 100%;
		opacity: 0.5;
		position: fixed;
		z-index: 9;
	}

}

