/* Hero Section */
.hero {
    text-align: center;
    background: transparent;
    position: relative;
    overflow: hidden;
    min-height: 100svh;
}

.hero-phrases {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 12;
}

.phrase {
    position: absolute;
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    font-weight: 400;
    color: var(--text-primary);
    white-space: nowrap;
    transition: all 1s ease;
    letter-spacing: 0.08em;
}

.phrase-1 { top: 30%; right: 6%; }
.phrase-2 { bottom: 30%; left: 6%; }

.hero.scrolled .phrase {
    opacity: 0.6;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 300;
    color: var(--text-secondary);
}

.hero.scrolled .phrase-1 { transform: translateX(30px) translateY(-30px); }
.hero.scrolled .phrase-2 { transform: translateX(-30px) translateY(30px); }

.hero-title {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: opacity 1s ease, transform 1s ease;
    z-index: 13;
    position: relative;
}

.hero.scrolled .hero-title { opacity: 1; transform: translateY(0) scale(1); }

.title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

.title-sub {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.5em;
    color: var(--text-secondary);
    margin-bottom: 3em;
}

.scroll-hint {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--accent);
    opacity: 1;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 14;
}

.scroll-hint .arrow {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: arrowBounce 1.5s ease infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.hero.scrolled .scroll-hint { opacity: 0; }

.continue-hint {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 14;
}

.hero.scrolled .continue-hint {
    opacity: 1;
    animation: gentlePulse 2s ease-in-out infinite;
    animation-delay: 0.5s;
}

.hero.scroll-released .continue-hint { opacity: 0; }

@keyframes gentlePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Punchline Section */
.punchline { background: var(--bg-secondary); }

.punchline-text {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    line-height: 2.2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.punchline-text .highlight {
    color: var(--accent);
    font-weight: 500;
}

/* About Section */
.about { background: var(--bg-primary); }

.about-content { max-width: 900px; margin: 0 auto; }

.about-text {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 2em;
}

/* Members Section */
.members { background: var(--bg-secondary); }

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.member-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 4px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.member-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.3em;
}

.member-name-en {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 1.5em;
}

.member-role {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1em;
    font-weight: 500;
}

.member-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Events Section */
.events { background: var(--bg-accent); }

.events-container { position: relative; max-width: 900px; margin: 0 auto; }

.events-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}

.events-carousel::-webkit-scrollbar { display: none; }

.event-card {
    flex: 0 0 100%;
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 4px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    text-align: center;
    scroll-snap-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.event-card.past { opacity: 0.7; }
.event-card.past:hover { opacity: 1; }

.event-badge {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--bg-primary);
    background: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 1.5em;
}

.event-badge.past-badge { background: var(--text-secondary); }

.event-number {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    margin-bottom: 0.5em;
}

.event-topic {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 0.5em;
}

.event-date {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.3em;
}

.event-time {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5em;
}

.event-venue {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.3em;
}

.event-address {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.event-note {
    margin-top: 1.5em;
    padding-top: 1.5em;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--accent);
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.carousel-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
}

.carousel-btn:hover::before { opacity: 1; transform: scale(1.1); }

.carousel-btn .line {
    width: 20px;
    height: 1px;
    background: var(--text-secondary);
    position: relative;
    transition: all 0.3s ease;
}

.carousel-btn:hover .line { background: var(--accent); width: 25px; }

.carousel-btn.prev .line::before,
.carousel-btn.next .line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 1px;
    background: inherit;
}

.carousel-btn.prev .line::before { left: 0; transform: rotate(-40deg); transform-origin: left center; }
.carousel-btn.prev .line::after { content: ''; position: absolute; left: 0; width: 8px; height: 1px; background: inherit; transform: rotate(40deg); transform-origin: left center; }
.carousel-btn.next .line::before { content: ''; position: absolute; right: 0; width: 8px; height: 1px; background: inherit; transform: rotate(40deg); transform-origin: right center; }
.carousel-btn.next .line::after { right: 0; transform: rotate(-40deg); transform-origin: right center; }

.carousel-dots { display: flex; gap: 12px; }

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active { background: var(--accent); }
.carousel-dot:hover { transform: scale(1.3); }

/* SNS Section */
.sns { background: var(--bg-primary); min-height: 50vh; }

.sns-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.sns-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: 0.1em;
    padding: 16px 32px;
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.sns-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.sns-link svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 768px) {
    .phrase { font-size: 1rem; white-space: normal; max-width: 45%; }
    .phrase-1 { top: 20%; right: 5%; text-align: right; }
    .phrase-2 { bottom: 20%; left: 5%; text-align: left; }
    .hero.scrolled .phrase { font-size: 0.85rem; }
    .hero.scrolled .phrase-1 { transform: translateX(-10px) translateY(-15px); }
    .hero.scrolled .phrase-2 { transform: translateX(10px) translateY(15px); }
    .punchline-text {
        text-align: left;
        line-height: 2;
        max-width: 560px;
    }
    .punchline-text br { display: none; }
    .carousel-nav { gap: 20px; }
    .members-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 520px;
        margin: 0 auto;
        padding: 0;
    }
    .member-card {
        width: 100%;
        min-width: 0;
        padding: 28px 22px;
    }
    
    /* Events section - complete mobile override */
    .events {
        padding: 60px 0;
        overflow: hidden;
        max-width: 100vw;
    }
    .events-container {
        max-width: 100%;
        width: 100%;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
    .events-carousel {
        display: flex;
        gap: 24px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 20px 6%;
        scroll-padding-inline: 6%;
        max-width: 100%;
    }
    .events-carousel::-webkit-scrollbar { display: none; }
    .event-card {
        flex: 0 0 88%;
        width: 88%;
        min-width: 88%;
        max-width: 88%;
        margin: 0;
        padding: 30px 20px;
        box-sizing: border-box;
        scroll-snap-align: center;
    }
}

@media (max-width: 480px) {
    .phrase {
        font-size: 0.9rem;
        max-width: 55%;
        letter-spacing: 0.02em;
    }
    .phrase-1 { top: 22%; right: 12%; left: auto; text-align: right; }
    .phrase-2 { bottom: 25%; left: 8%; right: auto; text-align: left; }
    .hero.scrolled .phrase { font-size: 0.8rem; }
    .hero.scrolled .phrase-1 { transform: translateX(30px) translateY(-10px); }
    .hero.scrolled .phrase-2 { transform: translateX(-20px) translateY(10px); }
    .event-card { padding: 24px 16px; }
    .event-topic { font-size: clamp(1.3rem, 6vw, 1.8rem); }
    .event-date { font-size: 1.1rem; }
    .event-time { font-size: 0.9rem; }
    .event-note { font-size: 0.85rem; }
}
