/* ハンバーガーボタン */
.hamburger {
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 999;
    position: fixed;
    top: 1%;
    right: 1%;
    background: #1e1e1e;
    border: #fff 1px solid;
    padding: 10px;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 50px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 20px;
}

.hamburger span:nth-child(2) {
    top: 32px;
}

.hamburger span:nth-child(3) {
    top: 44px;
}

/* ×になるアニメーション */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 32px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 32px;
}

/* オーバーレイ */
.overlay {
    position: fixed;
    top: 0;
    right: -300px;
    /* 初期位置 */
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    z-index: 990;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding-top: 10px;
    overflow-y: scroll;
}

.overlay.active {
    right: 0;
}

/* メニューアイテム */
.menu-list {
    list-style: none;
    font-family: 'Sawarabi Mincho';
}

.menu-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-list a {
    display: block;
    padding: 18px 10px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.menu-list a:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 40px;
    color: #00d4ff;
}

.menu-list a:hover::before {
    left: 100%;
}


@media screen and (max-width: 590px) {
    .hamburger {
        width: 35px;
        height: 35px;
        cursor: pointer;
        z-index: 999;
        position: fixed;
        top: 10%;
        left: 1%;
        background: #1e1e1e;
        border: #fff 1px solid;
        padding: 10px;
    }

    .hamburger span {
        display: block;
        position: absolute;
        height: 3px;
        width: 35px;
        background: #fff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .hamburger span:nth-child(1) {
        top: 15px;
    }

    .hamburger span:nth-child(2) {
        top: 26px;
    }

    .hamburger span:nth-child(3) {
        top: 37px;
    }

    /* ×になるアニメーション */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 25px;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 25px;
    }
}