/* =========================================
   Reset & Root Variables
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #030305;
    --text-color: #ffffff;
    --text-muted: #9494a0;
    --primary-color: #00e5ff;
    --secondary-color: #ff0055;
    --accent-color: #8b5cf6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Darker Grotesque', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #030306;
    background-image: 
        radial-gradient(ellipse at 15% 10%, rgba(0, 229, 255, 0.22), transparent 45%),
        radial-gradient(ellipse at 85% 90%, rgba(139, 92, 246, 0.22), transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 0, 85, 0.12), transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 45px 45px, 45px 45px;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .nav-link {
    font-family: var(--font-body); /* For Japanese support */
}

a {
    text-decoration: none;
    color: inherit;
}

img, video, iframe {
    max-width: 100%;
    display: block;
}

/* =========================================
   Typography & Utilities
   ========================================= */
.text-center { text-align: center; }

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffffff, #e2e2ea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: none;
    display: inline-block;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

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

.section-line {
    display: none;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.highlight-desc {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 2rem;
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: all var(--transition-fast);
}

.header.scrolled {
    padding: 0.8rem 0;
    background-color: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

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

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: none;
    letter-spacing: -1px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.nav-desktop .nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: none;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

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

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(3, 3, 5, 0.98);
    backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-slow);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-list li {
    margin-bottom: 2rem;
}

.mobile-nav-link {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: none;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(3,3,5,0.4) 0%, rgba(3,3,5,0.9) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
    margin-top: 25vh;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    color: #ffffff;
    text-transform: none;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

/* Scroll Indication */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    z-index: 1;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #fff;
    border-radius: 20px;
    display: block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* =========================================
   Layout Sections
   ========================================= */
.section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* =========================================
   Works
   ========================================= */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.work-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.work-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.work-info {
    padding: 1.5rem;
    text-align: center;
}

.work-title {
    font-size: 1.25rem;
    font-weight: 700;
}

/* =========================================
   Why AI Animation?
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
}

.feature-image-wrapper {
    width: 100%;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid var(--glass-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.feature-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.feature-card:hover .feature-image {
    transform: scale(1.05);
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-text {
    font-size: 1.35rem;
    color: #ffffff;
    line-height: 1.8;
}

/* =========================================
   About Me
   ========================================= */
.about-container {
    padding: 4rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--glass-border);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.about-name {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.about-role {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 0.5rem;
}

.about-lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 500;
}

.about-achievements {
    list-style: none;
    margin-bottom: 2rem;
    display: inline-block;
    text-align: left;
}

.about-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #f1f1f1;
    font-size: 1.3rem;
}

.about-achievements li::before {
    content: '►';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.about-achievements strong, .text-highlight {
    color: var(--primary-color);
    font-weight: 800;
}

.about-vision {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* =========================================
   Studio Anirof
   ========================================= */
.studio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.studio-card {
    text-align: left;
    padding: 2rem;
}

.studio-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.studio-card-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.8rem;
    text-align: center;
}

.studio-card-text {
    color: #f1f1f1;
    font-size: 1.3rem;
    line-height: 1.8;
}

/* =========================================
   Team Member
   ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.team-icon {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    background: var(--bg-color);
}

.team-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* =========================================
   Contact
   ========================================= */
.contact-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-message {
    font-size: 1.35rem;
    margin-bottom: 3rem;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    font-weight: 700;
    border-radius: 30px;
    transition: all var(--transition-fast);
    cursor: pointer;
    font-size: 1.05rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.btn-social {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-social:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-3px);
}

.x-icon {
    width: 20px;
    height: 20px;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    background: var(--bg-color);
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img-footer {
    height: 200px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.logo-img-footer:hover {
    opacity: 1;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 1rem;
}

/* =========================================
   Animations & Reveals
   ========================================= */
.reveal-up, .reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.active, .reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   Responsiveness
   ========================================= */
.sp-br {
    display: none;
}
.pc-br {
    display: inline;
}

.pc-only {
    display: block;
}
.sp-only {
    display: none !important;
}

@media (max-width: 1024px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .studio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
    
    .sp-br { display: inline; }
    .pc-br { display: none; }
    
    .pc-only { display: none !important; }
    .sp-only { display: block !important; }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }
    
    .team-card {
        padding: 1.5rem 0.5rem;
    }

    .team-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    .team-name {
        font-size: 1.2rem;
    }

    .team-role {
        font-size: 0.9rem;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .contact-actions .btn {
        width: 100%;
    }
    
    .hero-content {
        margin-top: 25vh;
    }
    
    .section {
        padding: 6rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* 読みやすさのためスマホでの解説文の文字サイズを一括縮小 */
    .feature-text,
    .about-lead,
    .about-achievements li,
    .studio-card-text,
    .contact-message {
        font-size: 0.92rem;
        line-height: 1.6;
    }
}
