@charset "utf-8";
/* CSS Document */


/* ナビゲーション */
nav{
    width:240px;
    position: relative;
}
nav a{
    text-decoration: none;
    color: #0d65a4;
}
#navbox{
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
}
#menuhead{
    width: 100%;
    height: 180px;
    background: #1e2c5e;
    display: flex;
    justify-content: center;
    align-items: center;
}
#menuhead a{
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
#menuhead img{
    width: 220px;
}
#mainmenu{
    width: 100%;
    height: fit-content;
    margin: 20px auto 0;
    padding: 10px 0 20px;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
}
#mainmenu ul{
    padding: 0 0 50px;
}
#mainmenu li{
    width: 100%;
    height: 40px;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.1em;
}
#mainmenu li.__2line{
    height: 60px;
}
#mainmenu li a{
    padding-top: 10px;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
}
#mainmenu li a::before{
    content: '';
    width: 100px;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0d65a4;
    transition: .2s ease-in-out;
}
#mainmenu li a:hover::before{
    width: 220px;
}

/* ハンバーガーメニュー */
#openbtn{
    display: none;
}

/* バナー＆ダウンロードボタン */
#flyers{

}

/* レスポンシブ対応 */

@media screen and (max-width:1160px){

}
@media screen and (max-width:1060px){

    /* ハンバーガーメニュー(ボタン) */
    #openbtn{
        display: block;
        position: relative;
        width: 10vw;
        height: 10vw;
        position: fixed;
        background-color: #1e2c5e;
        padding: 6px;
        border-radius: 6px;
    }
    .openbtn-area{
        width: 100%;
        height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }
    .openbtn-area span{
        position: relative;
        width: 100%;
        max-width: 50px;
        height: 3px;
        transition: .4s;
        background-color: #fff;
    }
    #openbtn.active .open-line:nth-of-type(1){
        transform: rotate(45deg);
        top: 33%;
    }
    #openbtn.active .open-line:nth-of-type(2){
        opacity: 0;
    }
    #openbtn.active .open-line:nth-of-type(3){
        transform: rotate(-45deg);
        top: -33%;
    }

    /* ハンバーガーメニュー(メニュー本体) */
    nav{
        width: 0;
    }
    #navbox{
        width: 100vw;
        height: fit-content;
        position: fixed;
        top: -150%;
        transition: .3s ease-in-out;
        background-color: rgba(255, 255, 255, 0.9);
        pointer-events: none;
        opacity: 0;
        z-index: 20;
    }
    #navbox.active{
        top: 0;
        opacity: 1;
        pointer-events: all;
    }
    #menuhead{
        position: sticky;
    }
    #menuhead a{
        width: 100vw;
        height: 180px;
    }
    #menuhead img{
        width: auto;
        height: 18vw;
        max-height: 160px;
    }
    
    #mainmenu{
        --menuhsp: 180px;
        height: calc(100vh - var(--menuhsp));
        margin: 0;
        padding-top: 5vw;
        position: relative;
        overflow: hidden;
        overflow-y: auto;
    }
    #mainmenu ul{
        width: 80%;
        margin: 0 auto 20px;
        padding: 10px 30px 50px;
        position: relative;
        overflow: hidden;
        overflow-y: auto;
        /* background-color: #fff; */
    }
    #mainmenu ul::-webkit-scrollbar{width:12px;}
    #mainmenu ul::-webkit-scrollbar-thumb{
        background:#0d65a4;
        border-radius: 100vh;
    }
    #mainmenu ul::-webkit-scrollbar-track{
        background:#b4c3e3;
        margin-top: 4px;
        margin-bottom: 4px;
    }
    #mainmenu li{
        height: 60px;
        line-height: 1.3em;
    }
    #mainmenu li a{
        padding-top: 24px;
    }
    #mainmenu li a::before{
        content: '';
        width: 200px;
    }
    #mainmenu li a:hover::before{
        width: 70%;
    }

@media screen and (max-width:780px){
    .openbtn-area{
        width: 90%;
        height: 80%;
    }
    .openbtn-area span{
        position: relative;
        width: 80%;
        height: 2px;
    }
    #navbox{
        height: 100vh;
    }
    #menuhead{
        height: 30vw;
        min-height: 100px;
    }
    #mainmenu{
        --menuhsp: 30vw;
    }
    #mainmenu ul{
        margin: 0 auto 5vw;
    }
    #mainmenu li.__2line{
        height: 80px;
    }
    #mainmenu li a::before{
        content: '';
        width: 80%;
    }
    #mainmenu li a:hover::before{
        width: 100%;
    }
}


@media screen and (max-width:430px){

    #mainmenu ul{
        width: 90%;
    }
    
}