@charset "UTF-8";

#hmb_menu {
    height: 70px;
    margin: 0;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    display: none;
}

#btn_smf {
    display: none !important;

}

/*非アクティブ*/
#hmb {
    width: 45px;
    height: 45px;
    cursor: pointer;
    position: relative;
    z-index: 30;
    margin: auto;
}

#hmb span {
    width: 40px;
    height: 3px;
    display: block;
    background-color: #000000;
    border-radius: 2px;
    position: absolute;
    transition: .2s;
}

#hmb span:first-child {
    top: 0;
}

#hmb span:nth-child(2) {
    top: 15px;
}

#hmb span:last-child {
    top: 30px;
}

.hmb_nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition-property: all;
    transition-duration: .2s;
}

#hmb_menu nav ul {
    display: block;
}

#hmb_menu nav ul li {
    text-align: left;
    font-size: 24px;
    margin: 50px;
}

#hmg nav ul li a {
    margin-bottom: 16px;
}

/*アクティブ*/
.active #hmb span:first-child {
    top: 15px;
    transform: rotate(45deg);
}

.active #hmb span:nth-child(2) {
    opacity: 0;
}

.active #hmb span:last-child {
    top: 15px;
    transform: rotate(-45deg);
}

.active nav {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.active::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    background-color: black;
    width: 100vw;
    height: 100vh;
    opacity: 0.4;
    z-index: 10;
}

/* ハンバーガーメニューメディアクエリ */
@media screen and (max-width: 1200px) {
    #hmb_menu {
        display: block;
    }

    #btn_smf {
        display: block !important;
        border: #806413;
        background-color: #806413;
        color: #fff;
        letter-spacing: 4px;
        line-height: 60px;
        text-align: center;
        width: 100%;
        font-size: 20px;
        position: fixed;
        bottom: 0;
        z-index: 20;
    }
}