/*
- 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: #333; */
	color: #452e18;
}

.menu-mobile {
		display: none;
}

.menu-mobile:after {
		/* font-family: "Font Awesome 5 Free";
		content: "\f0c9";
		font-weight: 900;
		color: #333;
		padding: 0;
		font-size: 4rem;
		line-height: .9;
		position: absolute;
		top: 15px;
		right: 15px;
		z-index: 100000;
		-webkit-transition: all 1s;
				 -o-transition: all 1s;
						transition: all 1s; */
}

.menu-dropdown-icon:before {
		/* content: "\f489";
		font-family: "Ionicons";
		display: none;
		cursor: pointer;
		float: right;
		position: absolute;
		top: 0;
		right: 0;
		padding: 14px 25px 12px;
		background: #162c85;
		color: #fff;
		font-size: 2.0rem;
		font-weight: bold;
		line-height: 1.5; */
}

.menu > ul {
	display: flex;
	/* justify-content: flex-start; */
	justify-content: flex-end;
	align-items: center;
	width: 100%;
	margin: 30px 0 0;
	padding: 0;
	/* overflow: hidden; */
	list-style: none;
	position: relative;
	/* IF .menu position=relative -> ul = container width, ELSE ul = 100% width */
	box-sizing: border-box;
}

.menu > ul > li {
	float: left;
	box-sizing: border-box;
	padding: 0 30px 0 0;
	margin: 0;
	list-style: none;
	text-align: center;
}

.menu > ul > li:last-child {
	padding: 0;
}

.menu > ul > li a {
	z-index: 99;
	position: relative;
	font-size: 16px;
	font-size: 1.6rem;
	/* display: block; */
	box-sizing: border-box;
	line-height: 1;
	height: 24px;
	display: flex;
	align-items: center;
}

.menu > ul > li a::after {
	content: "";
	position: absolute;
	bottom: -13px;
	left: 50%;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transition: all .3s;
}

.archive .menu > ul > li#menu-item-848 a::after,
.single .menu > ul > li#menu-item-848 a::after,
.menu > ul > li a:hover::after,
.menu > ul > li.current a::after {
	position: absolute;
	bottom: -13px;
	left: 50%;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	content: "";
	width: 5px;
	height: 5px;
	line-height: 5px;
	background-color: #f19e1b;
	border-radius: 50%;
}

.menu > ul > li:first-child a {
	font-size: 24px;
	font-size: 2.4rem;
}

.menu > ul > li a::before {
	content: "";
	display: block;
	position: absolute;
	top: -17px;
	left: 50%;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
}

.menu > ul > li:nth-child(2) a::before {
	width: 20px;
	height: 27px;
	background-image: url("../../img/icon_doctor.png");
}

.menu > ul > li:nth-child(3) a::before {
	width: 26px;
	height: 27px;
	background-image: url("../../img/icon_stethoscope.png");
}

.menu > ul > li:nth-child(4) a::before {
	width: 31px;
	height: 27px;
	background-image: url("../../img/icon_baby.png");
}

.menu > ul > li:nth-child(5) a::before {
	width: 21px;
	height: 27px;
	background-image: url("../../img/icon_karte.png");
}

.menu > ul > li:nth-child(6) a::before {
	width: 15px;
	height: 23px;
	background-image: url("../../img/icon_question.png");
}

.menu > ul > li:last-child a::before {
	width: 24px;
	height: 25px;
	background-image: url("../../img/icon_map.png");
}



@media screen and (min-width: 1201px) and ( max-width: 1299px) {
	.menu > ul > li {
		padding: 0 20px 0 0;
	}

}



@media screen and (min-width: 1025px) and ( max-width: 1200px) {
	.menu > ul > li {
		padding: 0 15px 0 0;
	}

}




/* ––––––––––––––––––––––––––––––––––––––––––––––––––
Mobile style's
–––––––––––––––––––––––––––––––––––––––––––––––––– */

@media only screen and (max-width: 1024px) {
	.header_logo_area,
	.header_logo_area.is_scroll {
		position: fixed;
		z-index: 1000000;
		top: 0;
		left: 0;
		background-color: #fff;
		width: 100%;
		height: 80px;
		padding: 0;
		/* box-shadow */
		/* 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 {
		/* z-index: 99; */
		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: 45px 0px 0;
		margin: 0;
	}
	.menu > ul > li {
		width: 100%;
		float: none;
		display: block;
		position: relative;
		font-size: 1.8rem;
		padding: 0;
	}
	.menu > ul > li a {
		text-align: left;
		padding: 18px 0;
		padding-left: 6rem;
		width: 100%;
		height: unset;
		display: block;
		/* text-align: left; */
		/* background: #fffce8; */
		border-bottom: 1px dotted #ccc;
	}
	.menu > ul > li:first-child a {
		font-size: 16px;
		font-size: 1.6rem;
	}
	.menu > ul > li a::before {
		top: 50%;
		left: 3rem;
	}
	.menu > ul > li:first-child a::before {
		font-family: 'Font Awesome 5 Free';
		font-weight: 900;
		content:'\f015';
		font-size: 19px;
		font-size: 1.9rem;
		color: #ebac45;
	}
	.archive .menu > ul > li#menu-item-848 a::after,
	.single .menu > ul > li#menu-item-848 a::after,
	.menu > ul > li a:hover::after,
	.menu > ul > li.current a::after {
		content: unset;
	}
	.menu > ul > li a::after,
	.menu > ul > li a:hover::after,
	.menu > ul > li.current a::after {
		font-family: 'Font Awesome 5 Free';
		font-weight: 900;
		content:'\f0da';
		top: 50%;
		right: 2.5rem;
		bottom: unset;
		left: unset;
	}
	.menu > ul > li.current a,
	.menu > ul > li a:hover {
		color: #ebac45;
		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;
	/* z-index: 999; */
}

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

@media screen and (max-width : 1024px) {
	.openbtn1{
		position: relative;/*ボタン内側の基点となるためrelativeを指定*/
		position: fixed;
		top: 10px;
		right: 10px;
		/* background-color: #f19e1b; */
		cursor: pointer;
		width: 43px;
		height: 33px;
		z-index: 9999999999;
	}

	/*ボタン内側*/
	.openbtn1 span {
		display: inline-block;
		transition: all .4s;/*アニメーションの設定*/
		position: absolute;
		left: 50%;
		height: 5px;
		border-radius: 2px;
		background-color: #452e18;
		width: 100%;
		transform: translate(-50%, -50%);
		-webkit-transform: translate(-50%, -50%);
		-ms-transform: translate(-50%, -50%);
	}

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

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

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

	.openbtn1.active span {
		background-color: #ebac45;
	}

	/*activeクラスが付与されると線が回転して×に*/
	.openbtn1.active span:nth-of-type(1) {
		top: 25%;
		left: 0;
		transform: translateY(6px) rotate(-45deg);
		width: 100%;
	}

	/*真ん中の線は透過*/
	.openbtn1.active span:nth-of-type(2) {
		opacity: 0;
	}

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

	.openbtn1 p {
		font-size: 13px;
		font-size: 1.3rem;
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translate(-50%, -50%);
		-webkit-transform: translate(-50%, -50%);
		-ms-transform: translate(-50%, -50%);
		transition: all .4s;/*アニメーションの設定*/
	}

	.openbtn1.active p {
		opacity: 0;
	}

	.mobile_btn_area {
		position: fixed;
		width: 100%;
		z-index: 999;
		bottom: 0;
	}

	.mobile_btn_area ul {
		display: flex;
		margin: 0;
		padding: 0;
	}

	.mobile_btn_area ul li {
		list-style: none;
		width: 100%;
	}

	.mobile_btn_area ul li a {
		font-size: 14px;
		font-size: 1.4rem;
		text-align: center;
		color: #fff;
		padding: 16px 0;
		box-sizing: border-box;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.mobile_btn_area ul li a i {
		font-size: 16px;
		font-size: 1.6rem;
		margin-right: 5px;
	}

	.mobile_btn_area .tel a {
		background-color: #452e18;
	}
	
	.mobile_btn_area .tel a:hover {
		background-color: #7e5e40;
	}
	
	.mobile_btn_area .web a {
		background-color: #e79c24;
	}
	
	.mobile_btn_area .web a:hover {
		background-color: #c58216;
	}
	
	.mobile_btn_area .mq a {
		background-color: #a2c34b;
	}
	
	.mobile_btn_area .mq a:hover {
		background-color: #89a73e;
	}

	/*==================================
	メニューを開いたら背景が暗くなる
	==================================*/
	.overlay.open {
		width: 100%;
		height: 100%;
		opacity: 0.5;
		position: fixed;
		z-index: 9;
	}

}

