/* ============================================================
   Club Nukamata — Premium Design System
   ============================================================ */

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-latin-wght-normal.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans JP';
    src: url('../fonts/noto-sans-jp-subset.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+306A, U+3064, U+304B, U+3057, U+3044, U+306E, U+306B, U+3042, U+305F, U+3089, U+84B2, U+7530, U+3002, U+3001;
}

/* ---------- CSS Variables ---------- */
:root {
    --primary:         hsl(270, 60%, 55%);
    --primary-dark:    hsl(270, 60%, 40%);
    --primary-glow:    hsla(270, 60%, 55%, 0.35);
    --accent:          hsl(30, 90%, 60%);
    --accent-glow:     hsla(30, 90%, 60%, 0.35);
    --dark:            hsl(220, 20%, 8%);
    --dark-2:          hsl(220, 18%, 12%);
    --dark-3:          hsl(220, 15%, 18%);
    --text-primary:    hsl(0, 0%, 95%);
    --text-secondary:  hsl(0, 0%, 65%);
    --glass-bg:        hsla(220, 20%, 15%, 0.7);
    --glass-border:    hsla(0, 0%, 100%, 0.08);

    --nav-height: 70px;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-base: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Outfit', 'Noto Sans JP', -apple-system, sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition:
        background var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 4px 32px hsla(220, 20%, 4%, 0.4);
}

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

.nav-logo {
    height: 44px;
    width: auto;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.nav-logo:hover {
    opacity: 0.85;
    transform: scale(0.97);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    position: relative;
    transition: color var(--transition-base);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.35s var(--ease-out-expo);
}

.nav-links a:hover {
    color: #fff;
}

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

.nav-instagram {
    display: flex;
    align-items: center;
}

.nav-instagram svg {
    width: 20px;
    height: 20px;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.nav-instagram:hover svg {
    opacity: 0.75;
    transform: scale(1.1);
}

.nav-instagram::after {
    display: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    scroll-snap-align: start;

    background:
        url('../images/backimage.webp') center / cover no-repeat fixed;
}

/* Particles canvas */
.particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Dark gradient overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            160deg,
            hsla(270, 60%, 10%, 0.75) 0%,
            hsla(220, 20%, 4%, 0.65) 50%,
            hsla(30, 60%, 10%, 0.55) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

/* Hero logo — fade in */
.hero-logo {
    max-width: 560px;
    width: 80%;
    height: auto;
    filter: drop-shadow(0 0 40px var(--primary-glow));
}

/* Hero subtitle — character animations */
.hero-subtitle {
    font-size: clamp(1.1rem, 2.8vw, 1.7rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: hsl(0, 0%, 88%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.char-animate {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    animation: charSlideIn 0.5s var(--ease-out-expo) forwards;
    animation-delay: var(--delay, 0s);
}

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

/* Hero CTA button */
.hero-cta {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.75rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 50px;
    border: 1px solid hsla(270, 60%, 75%, 0.2);
    box-shadow: 0 0 24px var(--primary-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 40px var(--primary-glow), 0 8px 24px hsla(220, 20%, 4%, 0.5);
    background: linear-gradient(135deg, hsl(270, 60%, 62%), var(--primary));
}

/* Fade-in animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out-expo) 0.15s forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 2.1s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1.5px solid hsla(0, 0%, 100%, 0.25);
    border-radius: 50%;
    text-decoration: none;
    animation: floatUpDown 2.2s ease-in-out infinite;
    transition: border-color var(--transition-base), background var(--transition-base);
}

.scroll-indicator:hover {
    border-color: hsla(0, 0%, 100%, 0.55);
    background: hsla(0, 0%, 100%, 0.06);
}

.scroll-arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255,255,255,0.7);
    border-bottom: 2px solid rgba(255,255,255,0.7);
    transform: rotate(45deg) translateY(-2px);
}

@keyframes floatUpDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-2);
    padding: 6rem 0;
    scroll-snap-align: start;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    padding: 6rem 0;
    scroll-snap-align: start;
}

/* ============================================================
   SHARED: Container & Section Headers
   ============================================================ */
.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    padding: 0.3rem 1rem;
    border: 1px solid hsla(30, 90%, 60%, 0.3);
    border-radius: 50px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, hsl(270, 60%, 75%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    font-weight: 300;
}

/* ============================================================
   FEATURE CARDS (About)
   ============================================================ */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    transition:
        transform 0.35s var(--ease-out-expo),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px hsla(270, 60%, 20%, 0.35), 0 0 0 1px hsla(270, 60%, 60%, 0.15);
    border-color: hsla(270, 60%, 60%, 0.25);
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    display: block;
    filter: drop-shadow(0 0 12px var(--primary-glow));
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
}

/* ============================================================
   CONTACT CARD
   ============================================================ */
.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    text-align: center;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.contact-card:hover {
    box-shadow: 0 0 60px var(--primary-glow);
    border-color: hsla(270, 60%, 60%, 0.22);
}

.contact-email {
    display: inline-block;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    transition: color var(--transition-base), text-shadow 0.3s ease;
}

.contact-email:hover {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

/* SNS Links */
.sns-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sns-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition:
        color var(--transition-base),
        border-color var(--transition-base),
        background var(--transition-base),
        box-shadow var(--transition-base),
        transform 0.25s ease;
}

.sns-link svg {
    width: 18px;
    height: 18px;
}

.sns-link:hover {
    color: var(--text-primary);
    border-color: hsla(270, 60%, 60%, 0.4);
    background: hsla(270, 60%, 55%, 0.1);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--dark-2);
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-instagram {
    color: var(--text-secondary);
    transition: color var(--transition-base), transform var(--transition-base);
}

.footer-instagram svg {
    width: 22px;
    height: 22px;
}

.footer-instagram:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.reveal {
    transition-delay: var(--card-delay, 0s);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.2rem;
    }

    .nav-links a {
        font-size: 0.88rem;
    }

    .nav-logo {
        height: 36px;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .contact-card {
        padding: 2.5rem 1.5rem;
    }

    html {
        scroll-snap-type: none;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 0.06em;
    }

    .sns-links {
        flex-direction: column;
        align-items: center;
    }
}
