@charset "utf-8";

/*
 * alpineメニュー用
 * --------------------------------------------------
 */

body.stop {
    overflow: hidden;
}

.menu-hamburger {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
    background: none;
}

.hamburger-btn {
    width: 40px;
    height: 10px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-btn .line {
    height: 1px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
}

.hamburger-btn .menu {
    font-size: 1.0rem;
    line-height: 1;
    letter-spacing: 0px;
    height: 10px;
    width: 100%;
    text-align: center;
    display: inline-block;
}

.menu-main {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100vh;
    background-color: rgba(50, 50, 50, 0.8);
    transition: all 0.5s ease;
    padding: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-main ul {
    display: flex;
    display: inline-block;
    width: 30%;
    margin: 0px;
    padding: 0px;
    overscroll-behavior-y: contain;
    height: auto;
}

.menu-main>ul>li {
    display: inline-block;
    width: 100%;
    padding: 15px 0px;
    border-bottom: 1px solid #ffffff;
    text-align: center;
}

.menu-main>ul>li>a {
    font-size: 12px;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 0px;
    text-decoration: none;
}

.open .line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 3px);
    background-color: #ffffff;
}

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

.open .line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -3px);
    color: #ffffff;
    background-color: #ffffff;
}

.menu-main.active {
    right: 0;
}

/* オーバーレイのスタイル */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 500;
}

@media(max-width: 767px) {
    .menu-hamburger {
        top: 22px;
        right: 20px;
    }

    .hamburger-btn {
        width: 30px;
        height: 10px;
    }

    .open .line:nth-child(1) {
        transform: rotate(45deg) translate(4px, 3px);
        background-color: #ffffff;
    }

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

    .open .line:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -2px);
        background-color: #ffffff;
    }

    .menu-main {
        right: -90vw;
        width: 90vw;
    }

    .menu-main ul {
        width: 80%;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.25);
        z-index: 500;
    }
}