/* ==========================================================================
   clubSISTERS site-base.css - サイト共通の部品(トークン + ブランド + グローバルナビ)
   top.css から切り出したもの。top.css は先頭で @import してこのファイルを読む。
   入室画面(space/)は、top.css を読まずにこのファイルだけを読む(top.css の
   html, body / a などの全体に効く規則を HUD に漏らさないため)。
   前提: ページ側で `* { box-sizing: border-box; margin: 0; padding: 0 }` が効いていること。
   計画: virtual-space/docs/SPACE_ENTRY_DESIGN_PLAN.md
   ========================================================================== */

:root {
    --bg-void: #000000;
    --bg-dark: #050505;
    --surface-card: rgba(0, 0, 0, 0.75);
    --surface-card-hover: rgba(18, 18, 18, 0.85);
    
    --border-subtle: rgba(255, 33, 148, 0.2);
    --border-highlight: #ff1f8f;
    --border-cyan: #00f0ff;
    
    --text-pure: #ffffff;
    --text-primary: #fff0f7;
    --text-secondary: #c9a4bf;
    --text-muted: #7d6577;
    
    --neon-pink: #ff1f8f;
    --neon-pink-glow: rgba(255, 31, 143, 0.5);
    --neon-cyan: #00f0ff;
    --neon-cyan-glow: rgba(0, 240, 255, 0.4);
    --neon-yellow: #fcee0a;
    
    --font-heading: 'Chakra Petch', 'Inter', sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --ease-cyber: cubic-bezier(0.16, 1, 0.3, 1);
    
    --nav-height: 72px;
    --content-max-width: 1240px;
}

.brand-mark {
    height: 44px;
    filter: drop-shadow(0 0 10px var(--neon-pink-glow));
    transition: transform 0.3s var(--ease-cyber);
}

.brand-mark:hover {
    transform: scale(1.06);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-pure);
    text-shadow: 0 0 16px var(--neon-pink-glow);
}

.brand-name .accent-dot {
    color: var(--neon-pink);
}

.brand-subline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ==========================================================================
   Sticky Global Navigation Bar
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

#top, #about, #shop {
    scroll-margin-top: 75px;
}

.portal-nav-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--content-max-width, 1240px);
    z-index: 9999;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    width: 100%;
    padding: 12px 24px;
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-link .brand-mark {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--neon-pink-glow));
    transition: transform 0.3s var(--ease-cyber);
}

.brand-link:hover .brand-mark {
    transform: scale(1.06);
}

.nav-desktop-menu {
    display: flex;
    align-items: center;
    gap: 14px;
}

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* アンカースクロール位置調整（固定ヘッダー考慮） */
#top,
#about,
#shop,
#support,
#supportersWall {
    scroll-margin-top: 85px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 31, 143, 0.12);
    box-shadow: 0 0 10px rgba(255, 31, 143, 0.2);
}

/* 目立つ OFUSE ボタン（デスクトップ） */
.nav-ofuse-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 31, 143, 0.22), rgba(255, 31, 143, 0.38));
    border: 1px solid var(--neon-pink);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
    box-shadow: 0 0 14px rgba(255, 31, 143, 0.45);
    transition: all 0.25s var(--ease-cyber);
    margin-left: 2px;
    flex-shrink: 0;
}

.nav-ofuse-btn:hover {
    background: var(--neon-pink);
    color: #000000;
    box-shadow: 0 0 22px rgba(255, 31, 143, 0.85);
    transform: translateY(-2px) scale(1.04);
}

.nav-ofuse-btn .ofuse-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.nav-ofuse-btn .ofuse-text {
    line-height: 1;
}

.nav-ofuse-btn .ofuse-arrow {
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.nav-ofuse-btn:hover .ofuse-arrow {
    transform: translate(2px, -2px);
    opacity: 1;
}

.nav-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.nav-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.nav-social-btn:hover {
    color: #fff;
    border-color: var(--neon-pink);
    background: rgba(255, 31, 143, 0.18);
    box-shadow: 0 0 10px var(--neon-pink-glow);
    transform: translateY(-1px);
}

.nav-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: all 0.25s ease;
}

.nav-toggle-btn .hamburger-line {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-drawer {
    display: none;
}

.hero-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    :root {
        --nav-height: 52px;
    }

    .portal-nav-bar {
        left: 0;
        transform: none;
        max-width: 100%;
    }

    .portal-nav-bar .nav-inner {
        padding: 8px 16px;
        min-height: var(--nav-height);
        height: auto;
    }

    .brand-link {
        gap: 10px;
    }

    .brand-link .brand-mark {
        height: 36px;
        width: 36px;
    }

    .brand-link .brand-name {
        font-size: 1.25rem;
    }

    .brand-link .brand-subline {
        display: none;
    }

    .nav-desktop-menu {
        display: none;
    }

    .nav-toggle-btn {
        display: flex;
    }

    .nav-mobile-drawer {
        display: block;
        max-height: 0;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 31, 143, 0.3);
        transition: max-height 0.35s ease, padding 0.35s ease;
        padding: 0 16px;
    }

    .nav-mobile-drawer.active {
        max-height: 520px;
        padding: 16px;
    }

    /* モバイル用目立つ OFUSE バナー */
    .mobile-ofuse-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        margin-bottom: 12px;
        border-radius: 10px;
        background: linear-gradient(135deg, rgba(255, 31, 143, 0.25), rgba(255, 31, 143, 0.45));
        border: 1px solid var(--neon-pink);
        color: #ffffff;
        font-family: var(--font-heading);
        font-size: 0.92rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-decoration: none;
        box-shadow: 0 0 16px rgba(255, 31, 143, 0.4);
        transition: all 0.2s ease;
    }

    .mobile-ofuse-banner:hover,
    .mobile-ofuse-banner:active {
        background: var(--neon-pink);
        color: #000000;
        box-shadow: 0 0 22px rgba(255, 31, 143, 0.85);
    }

    .mobile-ofuse-banner .ofuse-banner-icon {
        font-size: 1.1rem;
    }

    .mobile-ofuse-banner .ofuse-banner-text {
        font-weight: 800;
        flex: 1;
        text-align: center;
    }

    .mobile-ofuse-banner .ofuse-banner-arrow {
        font-size: 0.85rem;
    }

    .mobile-nav-links {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 14px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--text-pure);
        font-family: var(--font-heading);
        font-size: 0.92rem;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .mobile-nav-link .link-tag {
        font-family: var(--font-mono);
        font-size: 0.68rem;
        color: var(--neon-pink);
        padding: 2px 6px;
        border-radius: 4px;
        background: rgba(255, 31, 143, 0.12);
    }

    .mobile-nav-link:active,
    .mobile-nav-link:hover {
        background: rgba(255, 31, 143, 0.18);
        border-color: var(--neon-pink);
    }

    .mobile-nav-socials {
        display: flex;
        gap: 8px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        flex-wrap: wrap;
    }

    .mobile-social-btn {
        flex: 1;
        min-width: 52px;
        text-align: center;
        padding: 8px 4px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
        font-family: var(--font-mono);
        font-size: 0.72rem;
        font-weight: 700;
        text-decoration: none;
    }
}
