@charset "utf-8";

/* ------------------------------------------------------- */
/* global menu ------------------------------------------- */
/* ------------------------------------------------------- */

#globalmenu {
	width: 100%;
    border-bottom: 1px solid var(--color-white);
    transition: all 0.3s;
}

#globalmenu ul {
	display: flex;
	max-width: 1115px;
	min-width: 1000px;
	margin: 0 auto;
    position:relative;
}
#globalmenu > nav > ul::before,
#globalmenu > nav > ul > li::after{
    content:"";
    display:inline-block;
    width:1px;
    height:20px;
    background-color:#fff;
    position:absolute;
    top:20px;
}
#globalmenu ul::before{    
    left:0;
}
#globalmenu ul > li::after{
    right:0;
}
#globalmenu ul > li {
	position: relative;
	width: calc(100% / 5);
}

#globalmenu ul > li a {
	text-decoration: none;
	width: 100%;
	height: 60px;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
    transition: 0.2s ;
}
#globalmenu ul > li a:hover {
	color:rgba(255,255,255,0.7);
}




#globalmenu ul ul {
	position: absolute;
	display: block;
	display: none;
	top: 60px;
	padding: 0;
	margin: 0 auto;
	float: none;
    width: 100%;
    min-width: 100px;
    border-left:1px solid #eee;
    border-right:1px solid #eee;
}
#globalmenu ul ul > li {
	display: block;
	float: none;
	border-bottom: 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: "Font Awesome 5 Free";
	font-weight: 900;
	content: "\f0da";
	position: absolute;
	right: 5px;
    top: 50%;
    margin-top: -12px;
    font-size: 1.4rem;
    color: #666;
}
.gmsubNone a::after {
	content: "";
	position: static;
	right: 0;
}
#globalmenu ul ul > li a {
	height: auto;
	display: block;
	background: #fff;
	padding: 15px 5px;
	text-align: center;
    color:#333;
    transition: 0.2s ;
}
#globalmenu ul ul > li a:hover {
	color:#858585;
}
#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: #ddd;
    padding: 15px 5px!important;
}
#drawernav, #humberger {
	display: none;
}

/* ------------------------
スクロール後
.is-scroll スクロール後
.subPage 下層用クラス
--------------------------*/
#header.is-scroll,
#header.subPage{
    #globalmenu {
        border-bottom: 1px solid #333;
    }
    #globalmenu ul > li a{
        color: var(--color-text);
        &:hover{
            background: #ddd;
        }
    }
    #globalmenu > nav > ul::before,
    #globalmenu > nav > ul > li::after{
        background-color: var(--color-text);
    }
    #globalmenu ul ul ul a {
        &:hover{
            background-color: #ccc;
        }
    }
}

@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: -240px;
        width: 240px;
        height: 100%;
        background: #333;
        color: #fff;
        z-index: 995;
        padding-top: 90px;
        -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 #008BCE;
    }
    #drawernav ul li a::before {
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f105";
        padding: 0 5px 0 0;
    }
    #drawernav ul li a.gmc::before {
        font-family: "Font Awesome 5 Free";
        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: #fff;
        display: block;
        padding: 10px;
        text-decoration: none;
    }
    #drawernav ul li a:hover {
        background: #999;
    }
    #drawernav h4 {
        padding: 0 15px;
    }
    #humberger {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 997;
        cursor: pointer;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        border-radius: 3px;
        padding: 5px 2px;
        text-align: center;
        font-size: 1.2rem;
        color: #fff;
        background: #333;
    }
    .drawer-opened #humberger {
        background: #999;
    }
    .icon-bar {
        height: 2px;
        background: #0D71A2;
        display: block;
        margin-bottom: 6px;
        -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 */
    }
    .humbergerMenu::before {
        content: "MENU";
        letter-spacing: 0.075em;
        font-size: 1.1rem;
    }
    .drawer-opened .humbergerMenu::before {
        font-family: "Font Awesome 5 Free";
        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: -240px;
        -webkit-box-shadow: 1px 0 2px #000;
        box-shadow: 1px 0 2px #000;
    }
    body.drawer-opened .fixed-content {
        left: -240px;
    }
    body.drawer-opened #drawernav {
        right: 0;
    }
    #gmenu {
        display: none;
    }

    body.drawer-opened #humberger .icon-bar {
        background: #fff;
    }

    body.drawer-opened #overlay {
        z-index: 997;
        opacity: 0.3;
        left: -240px;
    }

	/*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: "Font Awesome 5 Free";
		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";
	}
}