@charset "shift_jis";

/* ------------------------------------------------------- */
/* global menu ------------------------------------------- */
/* ------------------------------------------------------- */
#globalmenu {
	width: calc(100% - 285px);
    margin-right: 25px;
}
#globalmenu ul {
	display: flex;
	position: relative;
}
#globalmenu ul li {
    display: inline-block;
    border-right: 1px solid #4dbfee;
}
#globalmenu ul li:last-of-type {border-right: none;}
.globalmenuParent {
	width: 100%;
	height: 40px;
	padding: 5px 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
    font-weight: bold;
	text-decoration: none;
}
.globalmenuParent:hover,
#globalmenu ul li:hover a{color: #fff;}
#globalmenu ul li:hover {
    background: #095679;
    color: #fff;
}

.megaDrop{
    display: none;
    left:0;
    top:100%;
    z-index:1;
    overflow:hidden;
    position: absolute;
    background: #095679;
    width: 1115px;
    color: #fff;
}
.megaDropInner {
    margin: 30px 20px 20px 20px;
}
.megaDrop:hover{
    display: block;
    height: auto;
    Z-index:20;
}

/*megamenu内リスト*/
#globalmenu ul .megaDropInner ul {
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    width: 100%;
}
#globalmenu ul .megaDropInner ul li {
    display: block;
    border-right: none;
    width: calc((100% - 50px) / 6);
    margin: 0 9.9px 10px 0;
    font-size: 1.3rem;
}
#globalmenu ul .megaDropInner ul li:nth-of-type(6n) {margin-right: 0;}
#globalmenu ul .megaDropInner ul li:last-of-type {border-right: none;}
#globalmenu ul .megaDropInner ul li a {
    display: flex;
    background: #fff;
    text-decoration: none;
    color: #000;
    align-items: center;
    min-height: 55px;    
    padding: 5px;
}
#globalmenu ul .megaDropInner ul li a > span:nth-of-type(1) {
    width: 60px;    
}
#globalmenu ul .megaDropInner ul li a > span:nth-of-type(2) {
    width: calc(100% - 60px);
    padding-left: 5px;
}
#globalmenu ul .megaDropInner ul li a > span:nth-of-type(1) img {
    display: block;
    margin: 0 auto;
}

#drawernav {
	display: none;
}

@media only screen and (max-width:768px) {
     #globalmenu {
         display: none;
    }
}
    
/* ------------------------------------------------------- */
/* スマートフォン用　サイトメニュー（右） ---------------- */
/* ------------------------------------------------------- */
@media only screen and (max-width:768px) {
    #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: 45px;
        -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 #666;
    }
    #drawernav ul li a::before {
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f105";
        padding: 0 5px 0 0;
    }
    #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;
    }
    #humberger {
        position:absolute;
        top: 0;
        right: 0;
        /*z-index: 997;*/
        z-index: 5;
        cursor: pointer;
        box-sizing: border-box;
        display: none;
        display: block;
        width: 40px;
        margin: 10px 10px 0 0;
        font-size: 1.2rem;
        color: #fff;
        background: #fff;
    }
    .drawer-opened #humberger {
        background: #999;
        z-index: 997;
    }
    .humbergerMenu::before {
        content: "\f0c9";
        display: flex;
        align-items: center;
		justify-content: center;
		font-family: "Font Awesome 5 Free";
        font-weight: 900;
		font-size: 2.5rem;
        height: 35px;
		color:#999;
    }
    .drawer-opened .humbergerMenu::before {
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f00d";
		color:#333;
    }
    #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 #drawernav{
        right: 0;
    }
    #humberger {
        display: block;
    }
    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";
        }
    }
    @media only screen and (max-width:320px) {
        .globalmenuParent {
            font-size: 1.0rem;
        }
    }

/* ------------------------------------------------------- */
/* スマートフォン用　ドロワーメニュー（左） -------------- */
/* ------------------------------------------------------- */
#globalSpDrawernav1,
#globalSpDrawernav2,
#globalSpDrawernav3,
#globalSpDrawernav4,
#globalSpDrawernav5,
#globalSpHumberger1,
#globalSpHumberger2,
#globalSpHumberger3,
#globalSpHumberger4,
#globalSpHumberger5{
    display: none;
}
@media only screen and (max-width:768px) {    
    .globalSpList {
        display: flex;
        width: 100%;
    }
    .globalSpList li {
        width: calc(100% / 5);
        border-right: 1px solid #4dbfee;
    }
    .globalSpList li:last-of-type {border-right: none;}
    .globalSpList li > div {
        display: flex!important;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 50px;
        font-size: 1.1rem;
    }
    .globalSpList li > div span {display: none;}
    
    .globalSpTitle {
        background: #009ad9;
        color: #fff;
        padding: 10px;
        font-size: 1.5rem;
    }    
    #globalSpDrawernav1,
    #globalSpDrawernav2,
    #globalSpDrawernav3,
    #globalSpDrawernav4,
    #globalSpDrawernav5{
        display: block;
        overflow-y: scroll;
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100%;
        background: #fff;
        color: #000;
        z-index: 1995;
        -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 */
    }
    #globalSpHumberger1,
    #globalSpHumberger2,
    #globalSpHumberger3,
    #globalSpHumberger4,
    #globalSpHumberger5{
        color: #fff;
    }
    #globalSpOverlay1,
    #globalSpOverlay2,
    #globalSpOverlay3,
    #globalSpOverlay4,
    #globalSpOverlay5{
        z-index: -1;
        opacity: 0;
        background: #000;
        right: 100%;
        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.globalSpDrawer-opened1 #globalSpDrawernav1,
    body.globalSpDrawer-opened2 #globalSpDrawernav2,
    body.globalSpDrawer-opened3 #globalSpDrawernav3,
    body.globalSpDrawer-opened4 #globalSpDrawernav4,
    body.globalSpDrawer-opened5 #globalSpDrawernav5{
        left: 0;
    }
    #globalSpHumberger1,
    #globalSpHumberger2,
    #globalSpHumberger3,
    #globalSpHumberger4,
    #globalSpHumberger5{
        display: block;
    }
    body.globalSpDrawer-opened1 #globalSpOverlay1,
    body.globalSpDrawer-opened2 #globalSpOverlay2,
    body.globalSpDrawer-opened3 #globalSpOverlay3,
    body.globalSpDrawer-opened4 #globalSpOverlay4,
    body.globalSpDrawer-opened5 #globalSpOverlay5{
        z-index: 1997;
        opacity: 0.9;
        right: -300px;
    }
    body.globalSpDrawer-opened1 #globalSpOverlay1::after,
    body.globalSpDrawer-opened2 #globalSpOverlay2::after,
    body.globalSpDrawer-opened3 #globalSpOverlay3::after,
    body.globalSpDrawer-opened4 #globalSpOverlay4::after,
    body.globalSpDrawer-opened5 #globalSpOverlay5::after{
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f00d";
        font-size: 3.0rem;
        color: #fff;
        z-index: 1001;
        position: absolute;
        top: 10px;
        right:  315px;
    }
    
    /*内部メニュー*/
    .globalSpTitle + ul{
        list-style: none;
        padding: 0;
        margin-bottom: 5px;
    }
    .globalSpTitle + ul li{
        border-bottom: 1px solid #ddd;
    }
    .globalSpTitle + ul li ul{
        margin: 0 0 0 20px;
    }
    .globalSpTitle + ul li ul li:last-of-type{
        border-bottom: none!important;
    }
    .globalSpTitle + ul li a {
        display: flex;
        font-size: 1.35rem;
        align-items: center;
        color: #000;
        padding: 10px 5px;
        text-decoration: none;
    }
    .globalSpTitle + ul li a > span:nth-of-type(1) {
        width: 50px;    
    }
    .globalSpTitle + ul li a > span:nth-of-type(2) {
        width: calc(100% - 60px);
        padding-left: 5px;
    }
    .globalSpTitle + ul li a > span:nth-of-type(1) img {
        display: block;
        margin: 0 auto;
    }
    .globalSpTitle + ul li a:hover {
        background: #f5f5f5;
    }

    /*drawerの開閉*/
    .globalSpTitle + ul li.globalSpDrawer-sub ul{ display: none; }
    .globalSpTitle + ul li.globalSpDrawer-sub > a{
        padding-right: 30px;
        position: relative;
    }
    .globalSpTitle + ul li.globalSpDrawer-sub > a:after{
        font-family: "Font Awesome 5 Free";
        font-weight: 400;
        content: "\f0fe";
        padding: 0 5px 0 0;
        position: absolute;
        font-size: 1.6rem;
        right: 0;
        top: 0;
        width: 20px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .globalSpTitle + ul li.globalSpDrawer-sub > a.active:after{
        content: "\f146";
    }

}

@media only screen and (max-width:320px) {  
    #globalSpDrawernav1,
    #globalSpDrawernav2,
    #globalSpDrawernav3,
    #globalSpDrawernav4,
    #globalSpDrawernav5{
        left: -260px;
        width: 260px;
    }
    body.globalSpDrawer-opened1 #globalSpOverlay1,
    body.globalSpDrawer-opened2 #globalSpOverlay2,
    body.globalSpDrawer-opened3 #globalSpOverlay3,
    body.globalSpDrawer-opened4 #globalSpOverlay4,
    body.globalSpDrawer-opened5 #globalSpOverlay5{
        right: -260px;
    }
    body.globalSpDrawer-opened1 #globalSpOverlay1::after,
    body.globalSpDrawer-opened2 #globalSpOverlay2::after,
    body.globalSpDrawer-opened3 #globalSpOverlay3::after,
    body.globalSpDrawer-opened4 #globalSpOverlay4::after,
    body.globalSpDrawer-opened5 #globalSpOverlay5::after{
        right:  275px;
    }
}
