/* Header Styles - Unified */
:root {
    --header-height: 70px;
}

#header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

#header.scrolled {
    background: rgba(10, 15, 28, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#header nav {
    height: 100%;
}

#header nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #c9a961;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a961;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    gap: 16px;
    margin-left: 32px;
}

.nav-cta .btn {
    padding: 10px 24px;
    font-size: 14px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
    margin: -10px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    display: block;
}

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

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

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

/* Mobile Navigation */
@media (max-width: 768px) {
    /* ハンバーガーメニューを一時的に完全非表示 */
    .hamburger {
        display: none !important;
        position: relative;
        z-index: 10001;
    }

    .nav-menu {
        display: none !important;
        /* モバイルでナビゲーションを一時的に完全非表示 */
        position: fixed;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: linear-gradient(135deg, #0a0f1c 0%, #141929 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        padding: 60px 20px;
        z-index: 10000 !important;
        overflow-y: auto;
        margin: 0 !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-menu.active {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .nav-menu li {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .nav-menu a {
        font-size: 18px;
        padding: 12px 24px;
        display: block;
        color: #ffffff;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: rgba(201, 169, 97, 0.1);
        color: #c9a961;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: 0;
        margin-top: 20px;
        gap: 12px;
    }

    .nav-cta .btn {
        width: 100%;
        text-align: center;
        padding: 14px 28px;
        font-size: 16px;
        border-radius: 25px;
    }

    /* Hamburger active state */
    .hamburger.active {
        position: fixed;
        top: 25px;
        right: 24px;
        background: rgba(10, 15, 28, 0.8);
        padding: 12px;
        border-radius: 8px;
    }
}
