/* header */

.rectangle {
    position: absolute;
    background: white;
}

.header_frame {
    position: fixed;
    z-index: 9990;
    width: 100vw;
    height: 80px;
    top: 0;
    left: 0;
}

.header_bg {
    width: 100%;
    height: 100%;
    position: absolute;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.header_bg.active {
    opacity: 1;
}

/* ===== Countdown Timer ===== */

.header_countdown {
    position: absolute;
    top: 50%;
    right: 64px;
    transform: translateY(-50%);
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(26, 18, 7, 0.65);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.header_bg.active .header_countdown {
    opacity: 1;
}

.header_icon {
    position: absolute;
    width: auto;
    height: 60px;
    z-index: 9999;
    margin: 10px;
    transition: opacity 0.3s ease;
}

.header_icon:hover {
    opacity: 0.7;
}

/* ===== Hamburger Button ===== */

.menu_btn {
    display: flex;
    flex-direction: column;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 9999;
    top: 22px;
    padding: 8px;
    justify-content: space-between;
    background: rgba(246, 220, 159, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    position: absolute;
    margin-right: 20px;
    right: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.menu_btn:hover {
    background: rgba(246, 220, 159, 0.95);
    transform: scale(1.05);
}

.menu_btn span {
    height: 2px;
    background: #1a1207;
    border-radius: 2px;
    transition: 0.3s ease;
}

.menu_btn.active {
    background: rgba(26, 18, 7, 0.85);
}

.menu_btn.active span {
    background: #f6dc9f;
}

.menu_btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu_btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Full-Screen Menu Overlay ===== */

.menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-height: 0;
    width: 100vw;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9995;
    background: transparent;
}

.menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(160deg, rgba(218,181,132,0.97) 0%, rgba(246,220,159,0.97) 50%, rgba(218,181,132,0.97) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

.menu.active {
    max-height: 100vh;
    max-height: 100dvh;
}

.menu.active::before {
    opacity: 1;
}

.menu_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    padding: 90px 20px 60px;
    gap: min(2px, 0.5vh);
    box-sizing: border-box;
}

.menu_header_label {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(26, 18, 7, 0.4);
    margin-bottom: 20px;
}

.menu_header_label,
.menu a,
.menu_footer_sns {
    opacity: 0;
    transform: translateY(-10px);
    transition: color 0.3s ease, opacity 0.4s ease-out, transform 0.4s ease-out;
}

.menu a {
    color: #1a1207;
    text-decoration: none;
    padding: 10px 0;
    text-align: center;
    font-family: "Zen Old Mincho", serif;
    font-weight: 700;
    font-size: clamp(16px, 2.5vh, 22px);
    letter-spacing: 0.05em;
    position: relative;
}

.menu a::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 1.5px;
    background: #8b6914;
    transition: transform 0.3s ease;
}

.menu a:hover {
    color: #8b6914;
}

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

.menu a:first-child {
    border-top: none;
}

.menu.active .menu_header_label,
.menu.active a,
.menu.active .menu_footer_sns {
    opacity: 1;
    transform: translateY(0);
}

#menu .menu_inner > * {
    transition-delay: 0s !important;
}

#menu.active .menu_inner > *:nth-child(1)  { transition-delay: 0.10s !important; } /* MENU */
#menu.active .menu_inner > *:nth-child(2)  { transition-delay: 0.15s !important; } /* Top */
#menu.active .menu_inner > *:nth-child(3)  { transition-delay: 0.20s !important; } /* Blog */
#menu.active .menu_inner > *:nth-child(4)  { transition-delay: 0.25s !important; } /* 企画紹介 */
#menu.active .menu_inner > *:nth-child(5)  { transition-delay: 0.30s !important; } /* リーフレット */
#menu.active .menu_inner > *:nth-child(6)  { transition-delay: 0.35s !important; } /* ステージタイムテーブル */
#menu.active .menu_inner > *:nth-child(7)  { transition-delay: 0.40s !important; } /* 喫茶メニュー */
#menu.active .menu_inner > *:nth-child(8)  { transition-delay: 0.45s !important; } /* グッズ・お土産 */
#menu.active .menu_inner > *:nth-child(9)  { transition-delay: 0.50s !important; } /* お問い合わせ */
#menu.active .menu_inner > *:nth-child(10) { transition-delay: 0.55s !important; } /* アクセス */
#menu.active .menu_inner > *:nth-child(11) { transition-delay: 0.60s !important; } /* 落とし物・忘れ物 */
#menu.active .menu_inner > *:nth-child(12) { transition-delay: 0.65s !important; } /* SNS */


/* Menu Footer SNS Icons */
.menu_footer_sns {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.menu_sns_link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #1a1207;
    transition: background 0.3s ease, transform 0.3s ease;
}

.menu_sns_link:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: scale(1.1);
}
/* ===== Responsive adjustments ===== */

@media screen and (max-width: 400px) {
    .header_icon {
        height: 50px;
        margin: 15px 8px;
    }

    .menu_btn {
        top: 20px;
        margin-right: 12px;
    }

    .menu a {
        font-size: clamp(14px, 2.1vh, 18px);
        padding: min(8px, 1vh) 0;
    }

    .menu_inner {
        padding: 80px 16px 40px;
        gap: 0;
    }

    .menu_header_label {
        margin-bottom: 12px;
    }

    .menu_footer_sns {
        margin-top: 16px;
        padding-top: 12px;
    }

    .header_countdown {
        font-size: 9px;
        right: 56px;
    }
}

@media screen and (max-height: 600px) {
    .menu_inner {
        padding-top: 60px;
        padding-bottom: 20px;
        gap: 0;
    }

    .menu_header_label {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .menu a {
        padding: 2px 0;
        font-size: clamp(12px, 3.5vh, 16px);
    }

    .menu_footer_sns {
        margin-top: 8px;
        padding-top: 8px;
        gap: 15px;
    }

    .menu_sns_link {
        width: 36px;
        height: 36px;
    }

    .menu_sns_link svg {
        width: 18px;
        height: 18px;
    }
}

@media screen and (max-height: 450px) {
    .menu_inner {
        padding-top: 50px;
        padding-bottom: 15px;
    }

    .menu a {
        padding: 1px 0;
        font-size: clamp(11px, 4vh, 14px);
    }

    .menu_header_label {
        display: none;
    }

    .menu_footer_sns {
        margin-top: 5px;
        padding-top: 5px;
    }
}

@media screen and (min-width: 768px) {
    .menu a {
        font-size: clamp(20px, 3vh, 26px);
        padding: clamp(10px, 1.5vh, 14px) 0;
    }

    .menu_header_label {
        font-size: 12px;
    }

    .menu_inner {
        padding: 90px 20px 50px;
    }
}
