/* 
  V-EDIT STUDIO - Modern CSS 
  Variables, Reset, Base Styles 
*/
:root {
    --color-bg: #030305;
    --color-surface: rgba(255, 255, 255, 0.02);
    --color-surface-hover: rgba(255, 255, 255, 0.05);
    --color-border: rgba(255, 255, 255, 0.08);
    
    --color-text: #f0f0f5;
    --color-text-muted: #8b92a5;
    
    --color-primary: #3b82f6;     /* Neon Blue */
    --color-primary-glow: rgba(59, 130, 246, 0.5);
    --color-secondary: #8b5cf6;   /* Purple */
    --color-accent: #ec4899;      /* Pink / Magenta */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --glass-blur: blur(12px);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.bg-gradient-sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary), transparent 70%);
    top: -200px;
    left: -200px;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-secondary), transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
    /* Basic noise pattern simulation */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* Glassmorphism Card */
.glass-card {
    background: var(--color-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: var(--color-surface-hover);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--color-primary-glow);
}

.btn-glow {
    position: relative;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    filter: blur(8px);
}

.btn-glow:hover::before {
    opacity: 0.8;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-text);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s;
}

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.logo span {
    color: var(--color-primary);
    font-weight: 400;
}

.logo span.fw-bold {
    font-weight: 800;
}

.logo-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav a:not(.btn) {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a:not(.btn):hover {
    color: var(--color-primary);
}

.nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px; right: 0; width: 0; height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav a:not(.btn):hover::after {
    width: 100%;
    left: 0; right: auto;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
}

.image-card {
    padding: 1rem;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-card:hover {
    transform: rotateY(0) rotateX(0);
}

.image-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.floating-badge {
    position: absolute;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #ffffff20;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: float 6s infinite ease-in-out;
}

.badge-1 {
    top: -20px;
    left: -20px;
    color: #9999ff; /* Premiere like */
}

.badge-2 {
    bottom: -20px;
    right: -20px;
    color: #d8b4fe; /* AE like */
    animation-delay: -3s;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-keyword {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.feature-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--color-text-muted);
}

/* Media Wave Full Section */
.visual-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin: 4rem 0;
}

.wave-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.wave-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) opacity(0.8);
    transition: filter 1s;
}

.wave-container:hover .wave-image {
    filter: brightness(0.8) opacity(1);
}

.wave-overlay-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.wave-overlay-text h2 {
    font-size: 4rem;
    letter-spacing: 0.5rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-clip: text;
    -webkit-background-clip: text;
    animation: textGlow 3s infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(99, 102, 241, 0); }
    100% { text-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
}

/* Learn Section Styles */
.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.learn-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.learn-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(236, 72, 153, 0.4);
}

.learn-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

.learn-card h3 {
    font-size: 1.1rem;
    margin: 0;
}

/* Curriculum Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 24px;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0; top: 0;
    width: 50px; height: 50px;
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--color-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.timeline-content p {
    color: var(--color-text-muted);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.05);
}

.popular-badge {
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    white-space: nowrap;
}

.feature-highlight {
    font-weight: bold;
    font-size: 1.1em;
    padding: 0.5rem ;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.highlight-stat .stat-number {
    color: var(--color-accent);
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price-previous {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--color-accent);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.limited-label {
    font-size: 1rem;
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    vertical-align: middle;
    font-weight: bold;
    font-family: var(--font-body);
}

.plan-price span:not(.limited-label) {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: normal;
}

.plan-desc {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.plan-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features li i {
    color: var(--color-primary);
}

.plan-features li.disabled {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.plan-features li.disabled i {
    color: var(--color-text-muted);
}

/* CTA */
.cta-card {
    text-align: center;
    padding: 6rem 3rem;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

.cta-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.input-field {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--color-border);
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

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

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin: 1rem 0 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text); /* .fa-x-twitter now inherits this or white */
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.social-links a i.fa-x-twitter {
    color: white; /* Force X logo to be white */
}

.social-links a:hover {
    background: var(--color-primary);
    color: white;
}

.social-links a:hover i.fa-x-twitter {
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.link-group a {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Scroll Revel Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 968px) {
    .hero-title { font-size: 3rem; }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .stats {
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .nav {
        display: none; /* simple mobile nav approach */
    }
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 576px) {
    .cta-form {
        flex-direction: column;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-actions {
        flex-direction: column;
    }
    .btn { width: 100%; }
}

/* Floating Action Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.1);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 10px;
}

.floating-btn-text {
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.floating-btn i {
    font-size: 1.2rem;
    animation: bounceRight 2s infinite;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.2);
    color: white;
}

@keyframes bounceRight {
    0%, 20%, 50%, 80%, 100% {transform: translateX(0);}
    40% {transform: translateX(4px);}
    60% {transform: translateX(2px);}
}

/* 画面幅が狭いスマホだと邪魔になる可能性があるので少し小さくする */
@media (max-width: 768px) {
    .floating-btn {
        width: 80px;
        height: 80px;
        bottom: 20px;
        right: 20px;
    }
    .floating-btn-text {
        font-size: 0.55rem;
    }
}


/** 以下バグ対応で追加 **/
/* ===== モバイルメニュー強化 ===== */

@media (max-width: 768px) {

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        padding: 80px 20px;
        transition: right 0.3s ease;
        z-index: 1001;
    }

    .nav.active {
        right: 0;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        z-index: 1000;
    }

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

    .mobile-menu-btn {
        z-index: 1100;
    }
}