@charset "utf-8";

:root {
    --burger_weight: 4px;
    --menu_item_width: 64px;
}

/* basercmsメニュー */
#UserMenu ul {
    z-index: 99;
    overflow: visible !important;
}

/* メニュー共通 */
nav {
    position: relative;
    width: 100%;
    background-color: var(--menu_bg, linear-gradient(#5B5F66,#2B2F33));
    color: var(--menu_fg);
    z-index: 80;
}
nav a {
    display: block;
    text-decoration: none;
    text-align: center;
    color: var(--menu_fg);
}
nav li a:hover {
    color: var(--menu_hv, greenyellow);
    text-decoration: none;
}
nav .active {
    color: white;
    text-decoration: none;
    background-color: #0040FF;
}

/* メインメニュー関連 */
#menu {
    height: var(--menu_height);
    justify-content: center;
    font-family: "BenchNine", "Bodoni MT Condensed", "Arial Narrow", sans-serif;
    font-size: 1.3rem;
}
#menu_title {
    display: none;
    text-align: left;
    width: 200px;
    height: 100%;
}
#menu_title > a {
    text-align: left;
}
#menu_items {
    display: flex;
    flex-flow: row;
    list-style-type: none;
    justify-content: center;
    height: 100%;
    padding: 0px!important;
}
#menu_items a {
    padding: 0 5px 0 5px;
}
#menu_items > .level1 {
    font-size: 1.4rem;
    font-weight: bold;
    padding: 15px 1px 10px 1px;
    min-width: var(--menu_item_width);
    background-color: var(--menu_bg);
}
#menu_items > .current > a {
    border-bottom: solid 2px var(--menu_fg);
}


/* ハンバーガーメニュー */
#menu_box {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 4px;
    right: 15px;
    height: 35px;
    width: 30px;
}
#menu_btn {
    position: absolute;
    top: 15px;
    right: 0;
    height: var(--burger_weight);
    width: 30px;
    background-color: var(--menu_hb);
    border-top: 0 solid var(--menu_bg);
    border-bottom: 0 solid var(--menu_bg);
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s;
}
#menu_btn:before {
    content: '';
    position: absolute;
    top: -9px;
    right: 0;
    height: var(--burger_weight);
    width: 30px;
    background-color: var(--menu_hb);
    transition: all 0.2s;
}
#menu_btn:after {
    content: '';
    position: absolute;
    bottom: -9px;
    right: 0;
    height: var(--burger_weight);
    width: 30px;
    background-color: var(--menu_hb);
    transition: all 0.2s;
}
#menu_btn.active {
    background-color: var(--menu_bg);
    border-top-color: var(--menu_bg);
    border-bottom-color: var(--menu_bg);
}
#menu_btn.active:before {
    top: 0;
    right: 0;
    transform: rotate(-135deg);
}
#menu_btn.active:after {
    bottom: 0;
    right: 0;
    transform: rotate(135deg);
}
#menu_open {
    margin-top: 29px;
    font-size: 0.5rem;
    width: 30px;
    text-align: center;
    word-wrap: normal;
}
#menu_exit {
    margin-top: 29px;
    font-size: 0.5rem;
    width: 30px;
    text-align: center;
    display: none;
    word-wrap: normal;
}

/* レスポンシブ：横幅が狭いとき */
@media screen and (max-width: 800px) {
    /* タイトル左寄せ */
    #menu {
        justify-content: flex-start;
        border-color: var(--item_bd);
        border-bottom-style: solid;
        border-width: 1px;
    }
    #menu_title {
        display: block;
        margin-left: 10px;
        line-height: 0.8em;
    }
    /* ハンバーガーメニュー表示 */
    #menu_box {
        display: block;
    }
    /* メインメニューを画面幅にする */
    #menu_area {
        position: fixed;
        width: 180px;
        top: calc(var(--menu_height) + var(--tool_offset) + 2px);
        right: 3px;
    }
    /* メインメニューを 縦に並べる */
    #menu_items {
        display: none;
        flex-flow: column;
        width: 100%;
        border-color: var(--item_bd);
        border-width: 1px;
        border-style: solid;
        color: aliceblue;
        padding: 0;
    }
    #menu_items li {
        border-color: dimgray;
        border-width: 1px;
        border-bottom-style: solid;
        height: 40px;
        -webkit-animation-name: initial !important;
        animation-name: initial !important;
    }
    #menu_items > .current > a {
        border-bottom: none;
        color: var(--menu_bg);
        background-color: var(--menu_fg);
    }
    #menu_items > .level1 {
        padding: 0;
    }
    #menu_items a {
        padding: 0;
        width: 100%;
        height: 100%;
        line-height: 40px;
    }
}