@charset "utf-8";
/*
 * メニュー
 * --------------------------------------------------
 */

.hamburger-menu {
    position: fixed;
    top: 0px;
    right: 0px;
    z-index: 1000;
    cursor: pointer;
    background: rgba(50, 53, 56, 0.2);
}

.hamburger-btn {
    width: 50px;
    height: 50px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    filter: drop-shadow(0px 0px 1px rgba(255, 255, 255, 1));
}

.hamburger-btn .line {
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu {
    position: fixed;
    top: 0;
    right: -40vw;
    width: 40vw;
    height: 100vh;
    background-color: rgba(50, 53, 56, 0.9);
    transition: all 0.5s ease;
    padding: 20px;
    z-index: 999;
}

.menu>ul {
    list-style: none;
    padding: 0px;
    margin-top: -20px;
}

.menu>ul>li>ul {
    list-style: none;
    padding-left: 2.0rem;
}

.menu>ul>li>a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.8rem;
    letter-spacing: 0.1rem;
}

.menu>ul>li>ul>li>a {
    color: #cccccc;
    text-decoration: none;
    font-size: 1.6rem;
}

.menu>ul>li {
    margin-top: 40px;
}

.menu>ul>li>ul>li {
    margin-top: 20px;
}

.open .line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.open .line:nth-child(2) {
    opacity: 0;
}

.open .line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu.active {
    right: 0;
}

/* オーバーレイのスタイル */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明の黒 */
    z-index: 500;
    /* メニューの下 */
    display: none;
    /* 初期状態では非表示 */
}


@media(max-width: 767px) {
    .menu {
        right: -80vw;
        width: 80vw;
    }

    .menu>ul>li {
        margin-top: 20px;
    }

    .menu>ul>li:first-child {
        margin-top: 40px;
    }

    .menu>ul>li>ul {
        padding-left: 1.4rem;
    }

    .menu>ul>li>ul {
        padding-left: 1.4rem;
    }

    .menu>ul>li>a {
        text-decoration: none;
        font-size: 1.4rem;
        line-height: 1.5;
    }

    .menu>ul>li>ul>li>a {
        text-decoration: none;
        font-size: 1.2rem;
    }
}