/* ========================================
   はじめまして！！！ - 超最新技術サイト
   ======================================== */

/* CSS Variables */
:root {
    --primary: #ff00ff;
    --secondary: #00ffff;
    --accent: #ffff00;
    --bg-dark: #0a0a0f;
    --bg-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 50%, #0f1a2e 100%);
    --neon-pink: #ff00aa;
    --neon-blue: #00aaff;
    --neon-purple: #aa00ff;
    --neon-green: #00ff88;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
#cursor-glow {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.8) 0%, transparent 70%);
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition: transform 0.1s ease;
}

#cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--secondary), 0 0 40px var(--secondary);
}

/* Particles Container */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-gradient);
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    scroll-snap-align: start;
    padding: 2rem;
}

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 3px);
    }

    40% {
        transform: translate(-3px, -3px);
    }

    60% {
        transform: translate(3px, 3px);
    }

    80% {
        transform: translate(3px, -3px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    10% {
        transform: skew(2deg);
    }

    20% {
        transform: skew(-2deg);
    }

    30% {
        transform: skew(0deg);
    }

    100% {
        transform: skew(0deg);
    }
}

@keyframes glitch-color {
    0% {
        text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff;
    }

    25% {
        text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
    }

    50% {
        text-shadow: 2px 2px #ff00ff, -2px -2px #00ffff;
    }

    75% {
        text-shadow: -2px 2px #ff00ff, 2px -2px #00ffff;
    }

    100% {
        text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes rainbow {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes wave-move {
    0% {
        d: path("M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z");
    }

    50% {
        d: path("M0,60 C150,0 350,120 600,60 C850,0 1050,120 1200,60 L1200,120 L0,120 Z");
    }

    100% {
        d: path("M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z");
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    50% {
        border-color: transparent;
    }
}

@keyframes neon-pulse {

    0%,
    100% {
        text-shadow:
            0 0 5px var(--neon-pink),
            0 0 10px var(--neon-pink),
            0 0 20px var(--neon-pink),
            0 0 40px var(--neon-pink);
    }

    50% {
        text-shadow:
            0 0 10px var(--neon-blue),
            0 0 20px var(--neon-blue),
            0 0 40px var(--neon-blue),
            0 0 80px var(--neon-blue);
    }
}

@keyframes wave-letter {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink);
    }

    50% {
        box-shadow: 0 0 40px var(--neon-blue), 0 0 80px var(--neon-blue);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

#hero {
    background: radial-gradient(ellipse at center, rgba(100, 0, 150, 0.3) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    z-index: 10;
}

/* Glitch Text Effect */
.glitch {
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 900;
    position: relative;
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch span {
    display: inline-block;
    animation: glitch-color 0.5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--primary);
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-3px);
}

.glitch::after {
    color: var(--secondary);
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(3px);
}

/* Tagline */
.tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-top: 1rem;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--secondary);
    animation: typing 3s steps(20) 1s forwards, blink-caret 0.5s step-end infinite;
    width: 0;
}

/* Badges */
.hero-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

.badge.delay-1 {
    animation-delay: 0.3s;
}

.badge.delay-2 {
    animation-delay: 0.6s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   FLOATING SECTION
   ======================================== */

#floating {
    background: radial-gradient(ellipse at center, rgba(0, 100, 150, 0.2) 0%, transparent 70%);
    overflow: hidden;
}

.floating-container {
    text-align: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.neon-text {
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 900;
    animation: neon-pulse 3s infinite;
    color: #fff;
}

.hajimemashite-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* ========================================
   CARDS SECTION
   ======================================== */

#cards {
    background: radial-gradient(ellipse at center, rgba(150, 0, 100, 0.2) 0%, transparent 70%);
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 3rem;
    text-align: center;
}

.shimmer {
    background: linear-gradient(90deg, #fff 0%, var(--primary) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

.cards-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    perspective: 1000px;
}

.glass-card {
    width: 280px;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.glass-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(255, 0, 255, 0.3);
}

.card-content {
    text-align: center;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   COUNTER SECTION
   ======================================== */

#counter {
    background: radial-gradient(ellipse at center, rgba(0, 150, 100, 0.2) 0%, transparent 70%);
}

.glass-panel {
    padding: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    text-align: center;
}

.counter-container h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 2rem;
}

.counter-display {
    margin-bottom: 2rem;
}

.counter-number {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.counter-unit {
    font-size: 2rem;
    color: var(--text-secondary);
}

.mega-button {
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-purple) 100%);
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: glow-pulse 2s infinite;
}

.mega-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 60px var(--neon-pink);
}

.mega-button:active {
    transform: scale(0.95);
}

.mega-button .btn-text {
    position: relative;
    z-index: 1;
}

/* ========================================
   MARQUEE SECTION
   ======================================== */

#marquee {
    background: radial-gradient(ellipse at center, rgba(100, 100, 0, 0.2) 0%, transparent 70%);
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: fit-content;
}

.marquee-content {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    white-space: nowrap;
    padding: 1rem 0;
    animation: marquee 20s linear infinite;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.marquee-track.reverse .marquee-content {
    animation-direction: reverse;
}

/* ========================================
   WAVE SECTION
   ======================================== */

#wave {
    background: radial-gradient(ellipse at center, rgba(0, 100, 200, 0.2) 0%, transparent 70%);
    position: relative;
}

.wave-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    display: flex;
}

.wave-title span {
    display: inline-block;
    animation: wave-letter 1s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

.wave-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
}

.wave-path {
    fill: var(--neon-purple);
    opacity: 0.5;
    animation: wave-move 4s ease-in-out infinite;
}

/* ========================================
   FOOTER
   ======================================== */

#footer {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

.footer-text {
    font-size: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.rainbow-text {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 3s linear infinite;
}

.footer-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.blink {
    animation: blink-caret 1s step-end infinite;
}

.footer-credits {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========================================
   PARTICLES
   ======================================== */

.particle {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.5;
    animation: particle-float 15s linear infinite;
}

.floating-text {
    position: absolute;
    font-size: clamp(0.8rem, 2vw, 1.5rem);
    color: var(--primary);
    opacity: 0.6;
    animation: float 5s ease-in-out infinite;
    text-shadow: 0 0 10px var(--primary);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    #cursor-glow,
    #cursor-trail {
        display: none;
    }

    .mega-button {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }

    .glass-card {
        width: 100%;
        max-width: 300px;
    }
}