/*
- 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: #50566a;
}

.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: center; */
	justify-content: end;
  margin: 0 auto;
  width: 100%;
  /* overflow: hidden; */
  list-style: none;
  padding: 0;
  position: relative;
  /* IF .menu position=relative -> ul = container width, ELSE ul = 100% width */
  box-sizing: border-box;
}

.menu > ul > li {
  float: left;
  /* width: 20%; */
  /* padding: 15px 0 0; */
  margin: 0;
	margin-left: 40px;
  list-style: none;
	position: relative;
  text-align: center;
}

.menu > ul > li:first-child {
	margin: 0;
}

.menu > ul > li a {
	font-size: 16px;
	font-size: 1.6rem;
  display: block;
	padding: 18px 0;
	box-sizing: border-box;
}

.menu > ul > li a::after {
  content: "";
  transition: all .3s;
}

.menu > ul > li:nth-child(3) a {
	cursor: pointer;
}

.menu > ul > li ul {
	width: 200px;
	z-index: 9999;
	position: absolute;
	top: 64px;
  left: -67px;
	padding: 0;
	box-sizing: border-box;
	overflow: hidden;
	display: none;
}

.menu > ul > li ul li {
	list-style: none;
	border-bottom: 1px solid #fff;
}

.menu > ul > li ul li:last-child {
	border: unset;
}

.menu > ul > li ul li a {
	color: #fff;
	background-color: #0f4c91;
	padding: 10px 0;
	box-sizing: border-box;
	transition: all .3s;
}

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

.menu > ul > li ul li a:hover ul li {
	display: block;
}

.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: 9px;
	left: 47%;
	content: "";
	width: 5px;
  height: 5px;
  line-height: 4px;
  background-color: #0085d0;
  border-radius: 50%;
}

.menu > ul > li:nth-child(3):hover ul {
	display: block;
}

.menu > ul > li:nth-child(3) a:hover::after {
	content: unset;
}

.menu > ul > li a span {
    text-decoration: none;
    color: #333;
    padding: 0;
    display: block;
    font-size: 1.2rem;
    line-height: 1.2;
    text-align: left;
}

.menu > ul > li a span.menu_ttl_txt {
    color: #85bb48;
    /* font-size: 1.3rem; */
		font-size: 2rem;
    font-family: "TBUDRGothic B";
    line-height: 1.2;
		/* letter-spacing: .1em; */
		/* font-family: cantarell; */
		/* font-family: "aisha-latin"; */
		font-weight: 400;
		font-style: normal;
}

/* .menu > ul > li.current a::after {
	position: absolute;
	bottom: -5px;
	left: 48%;
	content: "";
	width: 5px;
  height: 5px;
  line-height: 5px;
  background-color: #fff;
  border-radius: 50%;
} */


@media screen and (min-width: 1024px) and ( max-width: 1380px) {
	.menu > ul {
		justify-content: center;
	}

	.menu > ul > li {
		margin-left: 10px;

	}

	.menu > ul > li a {
		font-size: 1.5rem;
	}

}


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

@media only screen and (max-width: 1023px) {
    .header_logo_area {
      position: fixed;
			z-index: 9999999999;
      top: 0;
      left: 0;
      background-color: #fff;
      width: 100%;
      /* height: 60px; */
			/* height: unset; */
      padding: 0;
      /* box-shadow */
      box-shadow: 0px 4px 5px -2px rgba(10,10,10,0.1);
    }

    .mobile_header {
        position: relative;
				z-index: 99999;
    }
    .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 {
			display: block;
    }
    .menu > ul > li {
      width: 100%;
      float: none;
      display: block;
      position: relative;
      font-size: 1.8rem;
      /* border-bottom: 1px dotted #ccc; */
			margin: 0;
    }

		.menu > ul > li:nth-child(3) a {
			position: relative;
			pointer-events: none;
		}

		.menu > ul > li:nth-child(3).active a {
			background-color: #eaf3f8;
		}

		.menu > ul > li:nth-child(3) ul li a {
			pointer-events: auto;
		}

		.menu > ul > li:nth-child(3).active ul li a {
			background-color: #0f4c91;
		}

		.menu > ul > li:nth-child(3).active ul li a:hover,
		.menu > ul > li:nth-child(3).active .current a {
			background-color: #fff;
		}

		.menu > ul > li:nth-child(3) a::after {
			font-family: "Font Awesome 5 Free";
			content: '\f078';
			font-weight: 900;
			position: absolute;
			top: 50%;
			left: 65%;
			transform: translate(-50%, -50%);
			-webkit-transform: translate(-50%, -50%);
			-ms-transform: translate(-50%, -50%);
		}

		.menu > ul > li:nth-child(3) ul li a::after {
			content: none;
		}

		.menu > ul > li:nth-child(3).active a::after {
			font-family: "Font Awesome 5 Free";
			content: '\f077';
			font-weight: 900;
			position: absolute;
			top: 50%;
			left: 65%;
			transform: translate(-50%, -50%);
			-webkit-transform: translate(-50%, -50%);
			-ms-transform: translate(-50%, -50%);
		}

		.menu > ul > li:nth-child(3).active ul li a::after {
			content: none;
		}

		.menu > ul > li ul {
			transition: all 0.5s;
			height: 0;
			width: 100%;
			position: unset;
			margin: 0;
			display: block;
		}

		.menu > ul > li ul li a {
			padding: 20px 0;
		}

		.menu > ul > li .panelactive {
			height: 344px;
			display: block;
		}

		.archive .menu > ul > li#menu-item-848 a,
		.single .menu > ul > li#menu-item-848 a,
		.menu > ul > li a:hover,
		.menu > ul > li.current a {
			/* background-color: #f19e1b; */
			background-color: #eaf3f8;
		}

		.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 {
			display: none;
		}

		.menu > ul > li a {
      padding: 2.5vh 0;
      width: 100%;
      display: block;
      /* text-align: left; */
    }

		.header_web_btn a,
		.header_instagram_btn a {
			color: #fff;
			width: 100%;
		}
}


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

	.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 : 1023px) {
		.openbtn1{
			position: relative;/*ボタン内側の基点となるためrelativeを指定*/
			position: fixed;
			top: 0;
			right: 0;
			background: #0085d0;
			cursor: pointer;
			width: 50px;
			height: 50px;
			z-index: 9999999999;
		}

		/*ボタン内側*/
		.openbtn1 span{
			display: inline-block;
			transition: all .4s;/*アニメーションの設定*/
			position: absolute;
			left: 14px;
			height: 3px;
			border-radius: 2px;
			background: #fff;
			width: 45%;
		}

		.openbtn1 span:nth-of-type(1) {
			top: 15px;
		}

		.openbtn1 span:nth-of-type(2) {
			top: 23px;
		}

		.openbtn1 span:nth-of-type(3) {
			top: 31px;
		}

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

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

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

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

	}
