@charset "utf-8";
.headerMenuBox {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	#globalmenu {
		
	}
	.headerTranslation {
		padding-left: 26px;
		
		@media (width <= 999px) {
			padding-left: 0;
		}
		
		a {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 150px;
			height: 50px;
			border: 1px solid var(--color-btnBorder);
			position: relative;
			background: #fff;
			padding: 5px 15px;
			color: #000;
			text-decoration: none;
			
			@media (width <= 999px) {
				width:60px;
				height:60px;
				position:absolute;
				top:0;
				right:63px;
				padding: 5px;
				border:none;
				background:var(--color-sub);
				color:#fff;
				font-size:1.2rem;
				z-index: 997;
			}
			
			&::before {
				font-family: var(--fa);
				font-weight: 900;
				content: "\f0da";
				color: var(--color-sub);
				display: flex;
				align-items: center;
				justify-content: flex-start;
				position: absolute;
				top: 0;
				right: 0;
				width: 15px;
				height: 100%;
				@media (width <= 999px) {
					display:none;
				}
			}
			&:hover {
				border: 1px solid var(--color-sub);
			}
		}
	}
}

/* ------------------------------------------------------- */
/* global menu ------------------------------------------- */
/* ------------------------------------------------------- */

#globalmenu {
	position: relative;
	z-index: 5;
}
#globalmenu ul {
	display: flex;
}
#globalmenu ul li {
	position: relative;
}
#globalmenu ul li a {
	text-decoration: none;
	width: 100%;
	height: 50px;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000;
    font-size: 1.5rem;
	font-weight: bold;
}
body.front #globalmenu ul li a {
	color: #fff;
}
#globalmenu ul li::before {
	content: "";
	display: block;
	width: 0;
	height: 2px;
	background: #fff;
	position: absolute;
	bottom: 0;
	left: 0;
	transition: all 0.3s ease;
}
#globalmenu ul li:hover::before {
	width: 100%;
}
#globalmenu ul ul {
	position: absolute;
	display: block;
	display: none;
	top: 50px;
	padding: 0;
	border-left: none;
	margin: 0 auto;
	float: none;
    width: 100%;
    min-width: 100px;
}
#globalmenu ul ul li {
	display: block;
	float: none;
	border-top: 1px solid #ccc;
	height: auto;
	border-right: none;
	width: 100%;
}
#globalmenu ul ul li.gmsub a {padding-right: 20px;}
#globalmenu ul ul li.gmsub li a {padding-right: 0;}
.gmsub a::after {
	font-family: var(--fa);
	font-weight: 900;
	content: "\f0da";
	position: absolute;
	right: 5px;
    top: 50%;
    margin-top: -12px;
}
.gmsubNone a::after {
	content: "";
	position: static;
	right: 0;
}
#globalmenu ul ul li a {
	height: auto;
	display: block;
	background: #333;
	padding: 12px 4px;
	text-align: center;
}
#globalmenu ul ul li a:hover {
	background-color: #666;
}
#globalmenu ul ul ul {
	top: -1px;
	left: 100%;
	position: absolute;
	display: none;
}
#globalmenu ul ul ul li {
	border-top: none;
	border-bottom: 1px solid #fff;
}
#globalmenu ul ul ul a {
	background-color: #999;
    padding: 15px 5px!important;
}
#globalmenu ul ul ul a:hover {
	background-color: #666;
}
#drawernav, #humberger {
	display: none;
}

@media only screen and (max-width:999px) {
    #globalmenu {
        position: static;
        display: none;
    }
    /*スマートフォン用メニュー*/
    body.drawer-opened {
        overflow-y: hidden;
    }
    #page {
        padding-top: 50px;
        position: relative;
        z-index: 999;
        left: 0;
        background: #fff;
        -webkit-transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -moz-transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -o-transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
        transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000); /* easeInOutExpo */
        -webkit-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -moz-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -o-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000);
        transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000); /* easeInOutExpo */
    }
    #drawernav {
        display: block;
        overflow-y: scroll;
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100%;
        background: #fff;
        color: #000;
        z-index: 995;
        padding-top: 60px;
        -webkit-transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -moz-transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -o-transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
        transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000); /* easeInOutExpo */
        -webkit-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -moz-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -o-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000);
        transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000); /* easeInOutExpo */
    }
    #drawernav ul {
        list-style: none;
        padding: 0;
    }
    #drawernav ul li {
        border-bottom: 1px solid #ccc;
    }
    #drawernav ul li a::before {
        font-family: var(--fa);
        font-weight: 900;
        content: "\f105";
        padding: 0 5px 0 0;
    }
    #drawernav ul li a.gmc::before {
        font-family: var(--fa);
        font-weight: 900;
        content: "\f107";
    }
    #drawernav ul li ul {
        margin: 0 0 0 20px;
    }
    #drawernav ul li ul li:last-child {
        border-bottom: none;
    }
    #drawernav ul li a {
        color: #000;
        display: block;
        padding: 10px;
        text-decoration: none;
    }
    #drawernav ul li a:hover {
        background: var(--color-main-light);
    }
    #drawernav h4 {
        padding: 0 15px;
    }
    #humberger {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 997;
        cursor: pointer;
        box-sizing: border-box;
        display: none;
        display: block;
        width: 60px;
    }
    .drawer-opened #humberger {
        background: #999;
    }
	.humbergerMenu {
		width: 60px;
		height: 60px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: var(--color-main);
		color: #fff;
		font-size: 1.2rem;
	}
    .humbergerMenu::before {
        content: "MENU";
    }
    .drawer-opened .humbergerMenu::before {
        font-family: var(--fa);
        font-weight: 900;
        content: "\f00d";
    }
    .fixed-content {
        right: inherit;
        width: 100%;
        z-index: 996;
        -webkit-transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -moz-transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -o-transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
        transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000); /* easeInOutExpo */
        -webkit-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -moz-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -o-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000);
        transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000); /* easeInOutExpo */
    }
    #overlay {
        z-index: -1;
        opacity: 0;
        background: #000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        position: fixed;
        -webkit-transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -moz-transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -o-transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
        transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000); /* easeInOutExpo */
        -webkit-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -moz-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000);
        -o-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000);
        transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000); /* easeInOutExpo */
    }
    /**
    * ドロワー開放時のスタイル
    **/

    body.drawer-opened #page {
        left: -300px;
        -webkit-box-shadow: 1px 0 2px #000;
        box-shadow: 1px 0 2px #000;
    }
    body.drawer-opened .fixed-content {
        left: -300px;
    }
    body.drawer-opened #drawernav {
        right: 0;
    }
    #gmenu {
        display: none;
    }
    #humberger {
        display: block;
    }
    body.drawer-opened #humberger .icon-bar {
        background: #fff;
    }

    body.drawer-opened #overlay {
        z-index: 997;
        opacity: 0.3;
        left: -300px;
    }

	/*drawer の開閉*/
	#drawernav ul li.menu-item-has-children ul { display: none; }
    #drawernav ul li.menu-item-has-children > a {
        padding-right: 30px;
		position: relative;
    }
	#drawernav ul li.menu-item-has-children > a:after {
		font-family: var(--fa);
		font-weight: 400;
		content: "\f0fe";
		padding: 0 5px 0 0;
        position: absolute;
		font-size: 2.0rem;
		right: 0;
        top: 7px;
	}
	#drawernav ul li.menu-item-has-children > a.active:after {
		content: "\f146";
	}
}