/*========= ハンバーガーボックス =========*/
.hamburger-box {
    position: fixed;
    top: 5px;
    right: 30px;
    width: 45px;
    height: 45px;
    backdrop-filter: blur(4px);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.hamburger-box:hover {
    background: rgba(255, 255, 255, 0.9);
}


/*========= ハンバーガー線 =========*/
.hamburger-lines {
    width: 23px;
    height: 18px;
    position: relative;
}

.hamburger-lines span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #747474;
    border-radius: 2px;
    transition: 0.4s;
}

.hamburger-lines span:nth-child(1) {
    top: 0;
}

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

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


/*========= マスク =========*/
#mask {
    display: none;
    transition: all 0.5s;
}

.open #mask {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.8;
    z-index: 2;
    cursor: pointer;
}

/*========= モーダルメニュー =========*/
.modal_menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    z-index: 10010;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.4s ease forwards;
    padding: 40px 20px;
    box-sizing: border-box;
}

.modal_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.modal_menu ul li {
    margin: 20px 0;
}

.modal_menu ul li a {
    position: relative;
    display: inline-block;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.modal_menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 100%;
    height: 0.5px;
    background-color: #d6c7a1;
    transition: transform 0.3s ease;
}

.modal_menu ul li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.modal_menu ul li a:hover {
    color: #e0d2b0;
}


/*========= フェードアニメーション =========*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*========= クローズボタン =========*/
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 10011;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #d6c7a1;
    transform: scale(1.05);
}

/*========= レスポンシブ =========*/
@media screen and (max-width: 767px) {
    .hamburger-box {
        display: none;
    }
}