/* ========================================
   外国人出会い隊 - Avant-Garde CSS Design
   ======================================== */

:root {
    --primary: #ff006e;
    --secondary: #8338ec;
    --accent: #3a86ff;
    --neon: #06ffa5;
    --dark: #0a0a0a;
    --darker: #050505;
    --light: #ffffff;
    --gray: rgba(255, 255, 255, 0.7);
    
    /* Custom Easing */
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--dark);
    color: var(--light);
    cursor: none;
    overflow-x: hidden;
}

/* ========================================
   Custom Cursor
   ======================================== */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s var(--ease-smooth), 
                width 0.3s var(--ease-back),
                height 0.3s var(--ease-back);
    transform: translate(-50%, -50%);
}

.cursor.active {
    width: 60px;
    height: 60px;
    border-color: var(--primary);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 110, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s var(--ease-expo), 
                width 0.5s var(--ease-back),
                height 0.5s var(--ease-back);
    transform: translate(-50%, -50%);
    filter: blur(10px);
}

.cursor-follower.active {
    width: 80px;
    height: 80px;
    background: rgba(131, 56, 236, 0.4);
}

/* ========================================
   Background Canvas
   ======================================== */
#noise-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* ========================================
   Navigation
   ======================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-jp {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-en {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
}

.menu-trigger {
    width: 40px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.3s var(--ease-back);
}

.menu-trigger:hover {
    transform: scale(1.1);
}

.menu-trigger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--light);
    transition: all 0.4s var(--ease-expo);
}

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

.menu-trigger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

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

/* ========================================
   Fullscreen Menu
   ======================================== */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s var(--ease-expo);
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.menu-item {
    font-size: 8rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--light);
    text-decoration: none;
    transition: all 0.5s var(--ease-back);
    transform: translateY(100px);
    opacity: 0;
}

.fullscreen-menu.active .menu-item {
    transform: translateY(0);
    opacity: 1;
}

.fullscreen-menu.active .menu-item:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-menu.active .menu-item:nth-child(2) { transition-delay: 0.2s; }
.fullscreen-menu.active .menu-item:nth-child(3) { transition-delay: 0.3s; }
.fullscreen-menu.active .menu-item:nth-child(4) { transition-delay: 0.4s; }

.menu-item:hover {
    color: var(--light);
    -webkit-text-stroke: 0;
    transform: scale(1.1) translateX(20px);
}

/* ========================================
   Horizontal Scroll Layout
   ======================================== */
.horizontal-scroll-container {
    display: flex;
    width: 400vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    will-change: transform;
}

.section {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    padding: 4rem 6rem;
    overflow: hidden;
}

/* ========================================
   Hero Section
   ======================================== */
.section-hero {
    background: radial-gradient(ellipse at 20% 50%, rgba(131, 56, 236, 0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(255, 0, 110, 0.2) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
    z-index: 10;
}

.hero-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-title .glitch {
    font-size: 4rem;
    font-weight: 700;
}

.hero-title-main {
    display: flex;
    gap: 0.2rem;
}

.hero-title-main .char {
    font-size: 12rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--light) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: charFloat 3s ease-in-out infinite;
}

.hero-title-main .char:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-title-main .char:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes charFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
}

.glitch::before {
    animation: glitch-1 2s infinite;
    color: var(--primary);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    color: var(--accent);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 3px); }
    40% { clip-path: inset(40% 0 40% 0); transform: translate(3px, -3px); }
    60% { clip-path: inset(60% 0 20% 0); transform: translate(-3px, 3px); }
    80% { clip-path: inset(80% 0 0% 0); transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 20% 0); transform: translate(3px, -3px); }
    40% { clip-path: inset(40% 0 40% 0); transform: translate(-3px, 3px); }
    60% { clip-path: inset(20% 0 60% 0); transform: translate(3px, -3px); }
    80% { clip-path: inset(0% 0 80% 0); transform: translate(-3px, 3px); }
}

.hero-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-subtitle .separator {
    color: var(--primary);
}

/* Hero Marquee */
.hero-marquee {
    position: absolute;
    bottom: 4rem;
    left: 0;
    width: 100%;
    overflow: hidden;
    opacity: 0.5;
}

.marquee-inner {
    display: flex;
    gap: 3rem;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3em;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero Visual */
.hero-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
}

.floating-shapes {
    width: 100%;
    height: 100%;
    position: relative;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(0px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), transparent);
    top: 0;
    right: 0;
    animation: morphShape1 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary), transparent);
    bottom: 0;
    left: 0;
    animation: morphShape2 10s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--accent), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: morphShape3 12s ease-in-out infinite;
}

@keyframes morphShape1 {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(0deg); }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: rotate(180deg); }
}

@keyframes morphShape2 {
    0%, 100% { border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%; transform: rotate(0deg); }
    50% { border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%; transform: rotate(-180deg); }
}

@keyframes morphShape3 {
    0%, 100% { border-radius: 50%; transform: translate(-50%, -50%) scale(1); }
    50% { border-radius: 20% 80% / 80% 20%; transform: translate(-50%, -50%) scale(1.2); }
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    position: absolute;
    top: 4rem;
    left: 6rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.section-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--primary);
    letter-spacing: 0.2em;
}

.section-title {
    font-size: 5rem;
    font-weight: 900;
    -webkit-text-stroke: 2px var(--light);
    color: transparent;
    letter-spacing: 0.1em;
}

/* ========================================
   Concept Section
   ======================================== */
.section-concept {
    background: radial-gradient(ellipse at 80% 20%, rgba(58, 134, 255, 0.2) 0%, transparent 50%);
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
}

.concept-card {
    width: 250px;
    height: 350px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.5s var(--ease-back);
    cursor: pointer;
    transform-style: preserve-3d;
}

.concept-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(255, 0, 110, 0.3);
}

.card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 0.3em;
}

.concept-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: auto;
}

.concept-card p {
    font-size: 0.9rem;
    color: var(--gray);
    font-family: 'Space Grotesk', sans-serif;
}

.concept-text {
    position: absolute;
    right: 6rem;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 2rem;
    font-weight: 300;
    line-height: 2;
    margin-bottom: 2rem;
    opacity: 0.6;
}

.concept-desc {
    max-width: 300px;
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.7;
    font-family: 'Space Grotesk', sans-serif;
}

/* ========================================
   Members Section
   ======================================== */
.section-members {
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 0, 110, 0.15) 0%, transparent 60%);
}

.members-container {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
}

.member-card {
    position: relative;
    width: 280px;
    cursor: pointer;
    transition: transform 0.5s var(--ease-back);
}

.member-card:hover {
    transform: translateY(-20px);
}

.member-image {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s var(--ease-back);
}

.member-card:hover .image-placeholder {
    transform: scale(1.1);
}

.member-info {
    margin-top: 1.5rem;
    text-align: center;
}

.member-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.member-info p {
    color: var(--gray);
    font-size: 0.9rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.2em;
}

/* ========================================
   Contact Section
   ======================================== */
.section-contact {
    background: radial-gradient(ellipse at 30% 80%, rgba(131, 56, 236, 0.2) 0%, transparent 50%);
}

.contact-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-container {
    width: 400px;
    height: 400px;
    position: relative;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 100%;
    height: 100%;
    animation: rotateOrbit 20s linear infinite;
}

.orbit-2 {
    width: 70%;
    height: 70%;
    border-color: var(--primary);
    animation: rotateOrbit 15s linear infinite reverse;
}

.orbit-3 {
    width: 40%;
    height: 40%;
    border-color: var(--secondary);
    animation: rotateOrbit 10s linear infinite;
}

@keyframes rotateOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: 0 0 60px rgba(255, 0, 110, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.contact-content {
    flex: 1;
    max-width: 500px;
}

.contact-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.3rem;
}

.contact-title span {
    display: inline-block;
    background: linear-gradient(135deg, var(--light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleBounce 2s ease-in-out infinite;
}

.contact-title span:nth-child(2) { animation-delay: 0.1s; }
.contact-title span:nth-child(3) { animation-delay: 0.2s; }
.contact-title span:nth-child(4) { animation-delay: 0.3s; }

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

.contact-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5em;
    color: var(--gray);
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--light);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s var(--ease-smooth);
}

.form-group input:focus {
    border-color: var(--primary);
}

.form-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: all 0.3s var(--ease-smooth);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.7rem;
    color: var(--primary);
}

.line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s var(--ease-expo);
}

.form-group input:focus ~ .line {
    width: 100%;
}

.submit-btn {
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: var(--light);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-back);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 0, 110, 0.4);
}

.submit-btn span {
    position: relative;
    z-index: 2;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s var(--ease-expo);
}

.submit-btn:hover::before {
    left: 100%;
}

/* ========================================
   Scroll Progress
   ======================================== */
.scroll-progress {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    z-index: 100;
}

.progress-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: height 0.1s var(--ease-smooth);
    height: 0%;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .section {
        padding: 4rem;
    }
    
    .hero-title-main .char {
        font-size: 8rem;
    }
    
    .concept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .members-container {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor, .cursor-follower {
        display: none;
    }
    
    .horizontal-scroll-container {
        flex-direction: column;
        width: 100%;
        height: auto;
    }
    
    .section {
        width: 100%;
        height: auto;
        min-height: 100vh;
        flex-direction: column;
        padding: 6rem 2rem;
    }
    
    .hero-title-main .char {
        font-size: 4rem;
    }
    
    .concept-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 300px;
        height: 300px;
        margin-top: 2rem;
    }
    
    .concept-text {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 2rem;
        text-align: left;
    }
    
    .vertical-text {
        writing-mode: horizontal-tb;
    }
    
    .contact-visual {
        margin-bottom: 3rem;
    }
    
    .menu-item {
        font-size: 4rem;
    }
}

/* ========================================
   Animations & Utilities
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s var(--ease-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Selection Styling */
::selection {
    background: var(--primary);
    color: var(--light);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}