/* CSS for TK District Index Page */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* min-height: 500vh; /* スクロール用の高さ */
    transition: background 0.5s ease;
    opacity: 0;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
}

/* Dark overlay for first view */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
    transition: opacity 1s ease;
}

/* Fire-like background animation */
@keyframes fireBackground {
    0%, 100% {
        background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    }
    25% {
        background: linear-gradient(135deg, #1a0f23 0%, #2a1a2e 25%, #26213e 50%, #1f3460 75%, #633483 100%);
    }
    50% {
        background: linear-gradient(135deg, #2a0f23 0%, #3a1a2e 25%, #36213e 50%, #2f3460 75%, #733483 100%);
    }
    75% {
        background: linear-gradient(135deg, #1a0f23 0%, #2a1a2e 25%, #26213e 50%, #1f3460 75%, #633483 100%);
    }
}

@keyframes backgroundShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(1deg);
    }
    50% {
        transform: scale(1.05) rotate(-1deg);
    }
    75% {
        transform: scale(1.15) rotate(0.5deg);
    }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float 8s infinite linear;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Glowing orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(20px);
    animation: glowPulse 4s ease-in-out infinite;
    z-index: -1;
}

.glow-orb:nth-child(1) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(120, 119, 198, 0.4) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.glow-orb:nth-child(2) {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 119, 198, 0.4) 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.glow-orb:nth-child(3) {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(120, 219, 255, 0.4) 0%, transparent 70%);
    bottom: 30%;
    left: 20%;
    animation-delay: 1s;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Content Sections */
.content-section {
    position: relative;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    opacity: 0;
    text-align: center;
    transform: translateY(50px);
    transition: all 1s ease;
    z-index: 10;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* TK District Section */
.tk-district {
    display: flex;
}

.tk-district h1 {
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ffffff, #cccccc, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    letter-spacing: 4px;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Contact Section */
.contact-email {
    font-size: 2rem;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 20px 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin: 0 auto;
    max-width: 400px;
    text-align: center;
}

.contact-email:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Play Ground Section */
.playground-section {
    padding: 50px 20px;
    min-height: 200vh;
}

.playground-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.playground-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.playground-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.playground-card:hover::before {
    transform: translateX(100%);
}

.playground-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-thumbnail {
    width: 100%;
    height: 150px;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

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

/* Individual card themes */
.card-cyberpunk .card-thumbnail {
    background: linear-gradient(135deg, #ff006e 0%, #8338ec 50%, #3a86ff 100%);
}

.card-cosmic .card-thumbnail {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.card-minimal .card-thumbnail {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-glass .card-thumbnail {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.card-interactive .card-thumbnail {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-description {
    font-size: 0.9rem;
    color: #cccccc;
    text-align: center;
    line-height: 1.4;
}

.card-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Copyright Section */
.copyright-section{
    min-height: 50vh;
}

/* Responsive Design */
@media (max-width: 768px) {

    .tk-district h1 {
        font-size: 3rem;
    }
    
    .playground-section {
        min-height: 300vh;
    }

    .contact-section h2 {
        font-size: 2rem;
    }
    
    .contact-email {
        font-size: 1.5rem;
        padding: 15px 30px;
    }
    
    .playground-section h2 {
        font-size: 2rem;
    }

    .playground-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .playground-card {
        padding: 20px;
        min-height: 150px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-description {
        font-size: 0.8rem;
    }

    .card-thumbnail {
        height: 100px;
    }
    
    .copyright-section h2 {
        font-size: 1.5rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
} 