/* ===================================================
   SPEED WEB DX — MAIN STYLESHEET
   Dark AI/Tech aesthetic
   =================================================== */

/* ── Google Fonts ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Design Tokens ─────────────────────────────────── */
:root {
    /* Colors */
    --bg-primary: #07070f;
    --bg-secondary: #0d0d1a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);

    --accent-purple: #6c63ff;
    --accent-cyan: #00d4ff;
    --accent-pink: #ff63c4;
    --accent-green: #00ff9d;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.35);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(108, 99, 255, 0.4);

    /* Gradients */
    --grad-main: linear-gradient(135deg, #6c63ff 0%, #00d4ff 50%, #ff63c4 100%);
    --grad-purple: linear-gradient(135deg, #6c63ff 0%, #a78bfa 100%);
    --grad-cyan: linear-gradient(135deg, #00d4ff 0%, #00ff9d 100%);
    --grad-bg: linear-gradient(135deg, #0d0d1a 0%, #0a0a14 100%);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-head: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-pad: 120px;
    --container: 1200px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --trans: 0.35s var(--ease);
}

/* ── Reset ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

/* ── Utility ───────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--grad-main);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--accent-purple);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 640px;
    line-height: 1.8;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--trans);
    text-decoration: none;
}

.btn-primary {
    background: var(--grad-main);
    background-size: 200% 200%;
    color: #fff;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 4px 30px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 50px rgba(108, 99, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid var(--border-accent);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--trans);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

/* Typer cursor */
.typer-cursor {
    display: inline-block;
    animation: blink 0.8s step-end infinite;
    color: var(--accent-cyan);
}

/* ── Particle container ─────────────────────────────── */
#particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-purple);
    animation: drift linear infinite;
}

.particle:nth-child(3n) {
    background: var(--accent-cyan);
}

.particle:nth-child(5n) {
    background: var(--accent-pink);
}

.particle:nth-child(7n) {
    background: var(--accent-green);
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 22px 0;
    transition: var(--trans);
}

#navbar.scrolled {
    background: rgba(7, 7, 15, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-logo .logo-main {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    background: var(--grad-main);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    letter-spacing: -0.02em;
}

.nav-logo .logo-sub {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: width 0.3s var(--ease);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

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

.nav-cta {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--trans);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
#mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(7, 7, 15, 0.97);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
}

#mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav-link {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.25s;
}

.mobile-nav-link:hover {
    color: #fff;
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
#hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Video background */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

/* Gradient overlay on top of video */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(7, 7, 15, 0.5) 0%,
            rgba(7, 7, 15, 0.25) 40%,
            rgba(7, 7, 15, 0.6) 80%,
            rgba(7, 7, 15, 1) 100%),
        linear-gradient(135deg,
            rgba(108, 99, 255, 0.15) 0%,
            transparent 50%,
            rgba(0, 212, 255, 0.1) 100%);
    z-index: 2;
}

/* Fallback when no video */
#hero.video-fallback .hero-video-wrap {
    background: radial-gradient(ellipse at 50% 50%, #1a1040 0%, #07070f 70%);
}

/* Grid noise overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image:
        linear-gradient(rgba(108, 99, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 120px 24px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.35);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s var(--ease) both;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulseGlow 2s ease infinite;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    animation: fadeInUp 0.8s 0.15s var(--ease) both;
}

.hero-title-sub {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 3.5vw, 2.6rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s 0.25s var(--ease) both;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.85;
    animation: fadeInUp 0.8s 0.35s var(--ease) both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.45s var(--ease) both;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1s 1s var(--ease) both;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 13px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
}

.scroll-mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 2px;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════ */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 24px;
    border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--grad-main);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════ */
#about {
    padding: var(--section-pad) 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Feature icon wrapper with background image */
.feature-icon-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
}

.feature-icon-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: inherit;
    opacity: 0.45;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-item:hover .feature-icon-bg {
    opacity: 0.6;
    transform: scale(1.08);
}

/* Dark overlay over bg image */
.feature-icon-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 15, 0.28);
    border-radius: inherit;
    z-index: 1;
    transition: background 0.4s ease;
}

.feature-item:hover .feature-icon-wrap::after {
    background: rgba(7, 7, 15, 0.12);
}

.feature-icon {
    position: relative;
    z-index: 2;
    width: 68px;
    height: 68px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

/* feature-icon-wrapにblur効果を付与 */
.feature-icon-wrap {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.feature-icon.purple {
    background: transparent;
    border: 1px solid rgba(108, 99, 255, 0.55);
    box-shadow: 0 0 16px rgba(108, 99, 255, 0.25), inset 0 1px 0 rgba(167, 139, 250, 0.2);
}

.feature-icon.purple svg {
    filter: drop-shadow(0 0 6px rgba(108, 99, 255, 0.8));
}

.feature-item:hover .feature-icon.purple {
    box-shadow: 0 0 28px rgba(108, 99, 255, 0.5), inset 0 1px 0 rgba(167, 139, 250, 0.3);
    border-color: rgba(167, 139, 250, 0.8);
}

.feature-item:hover .feature-icon.purple svg {
    filter: drop-shadow(0 0 12px rgba(108, 99, 255, 1));
}

.feature-icon.cyan {
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.22), inset 0 1px 0 rgba(0, 212, 255, 0.15);
}

.feature-icon.cyan svg {
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.75));
}

.feature-item:hover .feature-icon.cyan {
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.45), inset 0 1px 0 rgba(0, 212, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.8);
}

.feature-item:hover .feature-icon.cyan svg {
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 1));
}

.feature-icon.pink {
    background: transparent;
    border: 1px solid rgba(255, 99, 196, 0.5);
    box-shadow: 0 0 16px rgba(255, 99, 196, 0.22), inset 0 1px 0 rgba(255, 99, 196, 0.15);
}

.feature-icon.pink svg {
    filter: drop-shadow(0 0 6px rgba(255, 99, 196, 0.75));
}

.feature-item:hover .feature-icon.pink {
    box-shadow: 0 0 28px rgba(255, 99, 196, 0.45), inset 0 1px 0 rgba(255, 99, 196, 0.25);
    border-color: rgba(255, 99, 196, 0.8);
}

.feature-item:hover .feature-icon.pink svg {
    filter: drop-shadow(0 0 12px rgba(255, 99, 196, 1));
}

.feature-icon.green {
    background: transparent;
    border: 1px solid rgba(0, 255, 157, 0.5);
    box-shadow: 0 0 16px rgba(0, 255, 157, 0.18), inset 0 1px 0 rgba(0, 255, 157, 0.12);
}

.feature-icon.green svg {
    filter: drop-shadow(0 0 6px rgba(0, 255, 157, 0.7));
}

.feature-item:hover .feature-icon.green {
    box-shadow: 0 0 28px rgba(0, 255, 157, 0.42), inset 0 1px 0 rgba(0, 255, 157, 0.22);
    border-color: rgba(0, 255, 157, 0.75);
}

.feature-item:hover .feature-icon.green svg {
    filter: drop-shadow(0 0 12px rgba(0, 255, 157, 1));
}


/* Feature background image classes */
.feature-icon-bg.bg-ai-tech {
    background-image: url('../images/feature-bg-ai-tech.png');
}

.feature-icon-bg.bg-speed {
    background-image: url('../images/feature-bg-speed.png');
}

.feature-icon-bg.bg-hearing {
    background-image: url('../images/feature-bg-hearing.png');
}

.feature-icon-bg.bg-fullstack {
    background-image: url('../images/feature-bg-fullstack.png');
}


.feature-body h4 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
}

.feature-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Photo placeholder */
.photo-placeholder {
    position: relative;
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(108, 99, 255, 0.4);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.06) 0%, rgba(0, 212, 255, 0.04) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    min-height: 400px;
}

.photo-placeholder .ph-icon {
    font-size: 3rem;
    opacity: 0.4;
}

.photo-placeholder .ph-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(108, 99, 255, 0.5);
    text-transform: uppercase;
}

.photo-placeholder .ph-size {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   COMPARISON SECTION (Speed Web vs DX)
   ═══════════════════════════════════════════════════════ */
#comparison {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

#comparison::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.comparison-header {
    text-align: center;
    margin-bottom: 64px;
}

.comparison-header .section-subtitle {
    margin: 0 auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
}

.compare-card {
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    position: relative;
}

.compare-card.speed-web {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
}

.compare-card.speed-web-dx {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 212, 255, 0.06) 100%);
    border: 1px solid var(--border-accent);
    box-shadow: 0 0 80px rgba(108, 99, 255, 0.1);
}

.compare-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.compare-badge.basic {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.compare-badge.premium {
    background: var(--grad-main);
    background-size: 200%;
    color: #fff;
    animation: gradientShift 3s ease infinite;
}

.compare-card h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.compare-card .compare-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.compare-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.compare-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.compare-list li .check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.compare-card.speed-web .check {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.compare-card.speed-web-dx .check {
    background: rgba(108, 99, 255, 0.3);
    color: var(--accent-purple);
}

/* VS divider */
.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    padding-top: 80px;
}

.vs-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--grad-main);
    background-size: 200%;
    animation: gradientShift 3s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════ */
#services {
    padding: var(--section-pad) 0;
    position: relative;
}

#services::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -300px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.services-header {
    text-align: center;
    margin-bottom: 72px;
}

.services-header .section-subtitle {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    cursor: default;
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
    position: relative;
    overflow: hidden;
    /* Background image layer */
    background-image: var(--card-bg, none);
    background-size: cover;
    background-position: center;
}

/* Dark overlay so text is always readable */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(7, 7, 15, 0.82) 0%,
            rgba(7, 7, 15, 0.75) 60%,
            rgba(7, 7, 15, 0.65) 100%);
    border-radius: inherit;
    z-index: 0;
    transition: background 0.35s var(--ease);
}

.service-card:hover::after {
    background: linear-gradient(160deg,
            rgba(7, 7, 15, 0.78) 0%,
            rgba(7, 7, 15, 0.65) 60%,
            rgba(108, 99, 255, 0.22) 100%);
}

/* Ensure content sits above the overlay */
.service-card>* {
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-main);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    border-radius: inherit;
    z-index: 0;
}

.service-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-accent);
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(108, 99, 255, 0.12);
    border: 1px solid rgba(108, 99, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    transition: var(--trans);
}

.service-icon svg {
    filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.5));
    transition: filter 0.35s ease;
}

.service-card:hover .service-icon {
    background: rgba(108, 99, 255, 0.22);
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow: 0 0 24px rgba(108, 99, 255, 0.35);
}

.service-card:hover .service-icon svg {
    filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.9));
}

.service-card h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.service-card .service-tag {
    display: inline-block;
    margin-top: 20px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    background: rgba(108, 99, 255, 0.12);
    color: var(--accent-purple);
    border: 1px solid rgba(108, 99, 255, 0.25);
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   PRODUCTION FLOW
   ═══════════════════════════════════════════════════════ */
#flow {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

#flow::before {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 99, 196, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.flow-header {
    text-align: center;
    margin-bottom: 80px;
}

.flow-timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}

/* center line */
.flow-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--border-accent) 10%, var(--border-accent) 90%, transparent);
    transform: translateX(-50%);
}

.flow-step {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 0;
    margin-bottom: 48px;
    align-items: center;
}

.flow-step:last-child {
    margin-bottom: 0;
}

.flow-content {
    padding: 32px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: var(--trans);
}

.flow-content:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

.flow-step:nth-child(even) .flow-content:first-child {
    opacity: 0;
    pointer-events: none;
}

.flow-step:nth-child(odd) .flow-empty {
    opacity: 0;
}

.flow-content h4 {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.flow-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.75;
}

.flow-node {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.flow-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad-main);
    background-size: 200%;
    animation: gradientShift 3s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.4);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   PHOTO GALLERY PLACEHOLDER
   ═══════════════════════════════════════════════════════ */
#gallery {
    padding: var(--section-pad) 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 64px;
}

/* ── Works card list ─────────────────────── */
.works-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.work-card {
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.work-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 24px 80px rgba(108, 99, 255, 0.12);
}

/* Screenshot area with 16:9 ratio */
.work-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.work-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s var(--ease);
}

.work-card:hover .work-image-wrap img {
    transform: scale(1.03);
}

/* Hover overlay with visit button */
.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 15, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-visit-btn {
    padding: 14px 32px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.work-visit-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

/* Info panel below the image */
.work-info {
    padding: 28px 36px 32px;
}

.work-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.work-tag {
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    background: rgba(108, 99, 255, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.work-location {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.work-title {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.work-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-cyan);
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.work-url::before {
    content: '🔗';
    font-size: 0.75rem;
}

.work-url:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════ */
#contact {
    padding: var(--section-pad) 0;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info .section-subtitle {
    margin-bottom: 40px;
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(108, 99, 255, 0.12);
    border: 1px solid rgba(108, 99, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.55));
}


/* Contact Form */
.contact-form {
    padding: 48px 44px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: border-color 0.25s;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-purple);
    background: rgba(108, 99, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group select option {
    background: #0d0d1a;
}

.form-submit {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand .logo-main {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--grad-main);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    margin-bottom: 4px;
}

.footer-brand .logo-sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.75;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color 0.25s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.25s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* ═══════════════════════════════════════════════════════
   SECTION BG DECORATIONS
   ═══════════════════════════════════════════════════════ */
.section-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-grid .photo-placeholder {
        min-height: 300px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .vs-divider {
        padding-top: 0;
    }

    .vs-circle {
        width: 48px;
        height: 48px;
        font-size: 0.85rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* ── タブレット〜モバイル (768px) ─────────────────────────── */
@media (max-width: 768px) {
    :root {
        --section-pad: 80px;
    }

    /* ナビゲーション */
    .nav-links,
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* ヒーロー */
    .hero-content {
        padding: 110px 20px 70px;
    }

    .hero-desc {
        font-size: 0.95rem;
        padding: 0 4px;
        /* モバイルで <br> を無効化 */
    }

    .hero-desc br {
        display: none;
    }

    .hero-badge {
        font-size: 0.66rem;
        padding: 6px 14px;
        letter-spacing: 0.08em;
    }

    /* ヒーローのタイトルは自然な折り返しに任せる */
    .hero-title br,
    .hero-title-sub br {
        display: none;
    }

    /* スクロールインジケーター非表示 */
    .scroll-indicator {
        display: none;
    }

    /* スタッツバー：2列 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(3) {
        border-top: 1px solid var(--border-subtle);
        border-right: 1px solid var(--border-subtle);
    }

    .stat-item:nth-child(4) {
        border-top: 1px solid var(--border-subtle);
        border-right: none;
    }

    /* アバウト */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* アバウト画像の高さをモバイルに最適化 */
    .about-grid img {
        height: 300px !important;
        border-radius: 16px !important;
    }

    /* サービスグリッド：1列 */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* ─── フロータイムライン：モバイル縦一列レイアウト ─── */
    .flow-timeline::before {
        /* 縦線を左端に移動 */
        left: 22px;
        transform: none;
    }

    .flow-step {
        /* node(左) + content(右) の2列に変更 */
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 32px;
    }

    /* flow-node を常に最初に表示 */
    .flow-node {
        order: -1;
        flex-shrink: 0;
        justify-content: center;
    }

    /* コンテンツを右に配置 */
    .flow-content {
        flex: 1;
        min-width: 0;
        /* 奇数偶数問わず全て表示 */
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        grid-column: auto !important;
    }

    /* flow-empty は全て非表示 */
    .flow-empty {
        display: none !important;
    }

    /* 偶数行で左に来る「空」のflow-contentも非表示 */
    .flow-step:nth-child(even) .flow-content:first-child {
        display: none !important;
    }

    /* ワークカード */
    .work-info {
        padding: 22px 24px 28px;
    }

    .work-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* コンタクト */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-item {
        align-items: flex-start;
    }

    /* 電話番号の折り返し対応 */
    .contact-info-item span {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* 比較セクション */
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .vs-divider {
        padding: 4px 0;
    }

    /* フッター */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* ── モバイル (480px) ──────────────────────────────────── */
@media (max-width: 480px) {

    /* ヒーローボタン */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* スタッツバー */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 16px 12px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* アバウト */
    .about-grid {
        gap: 28px;
    }

    .about-grid img {
        height: 240px !important;
    }

    .feature-item {
        gap: 14px;
    }

    .feature-icon-wrap,
    .feature-icon {
        width: 56px;
        height: 56px;
    }

    /* 比較カード */
    .compare-card {
        padding: 28px 20px;
    }

    /* サービスカード */
    .service-card {
        padding: 28px 22px;
    }

    /* フローコンテンツ */
    .flow-content {
        padding: 20px 16px;
    }

    .flow-num {
        width: 40px;
        height: 40px;
        font-size: 0.78rem;
    }

    /* ワーク */
    .work-info {
        padding: 20px 20px 24px;
    }

    /* コンタクト */
    .contact-grid {
        gap: 32px;
    }

    .contact-form {
        padding: 24px 16px;
    }

    /* フッター */
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    /* ヒーローコンテンツ */
    .hero-content {
        padding: 100px 16px 60px;
    }

    /* セクションタイトル */
    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    /* ボタン */
    .btn {
        padding: 13px 24px;
        font-size: 0.9rem;
    }

    /* モバイルナビリンク */
    .mobile-nav-link {
        font-size: 1.5rem;
    }

    /* フォームsubmitボタン */
    .form-submit {
        padding: 14px;
    }
}

/* ── 極小スマホ (375px以下) ─────────────────────────────── */
@media (max-width: 375px) {
    :root {
        --section-pad: 64px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 90px 14px 56px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-title-sub {
        font-size: clamp(1rem, 5vw, 1.5rem);
    }

    .hero-desc {
        font-size: 0.88rem;
    }

    .mobile-nav-link {
        font-size: 1.3rem;
        gap: 24px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .compare-card {
        padding: 24px 16px;
    }

    .service-card {
        padding: 24px 18px;
    }

    .flow-step {
        gap: 14px;
    }

    .flow-timeline::before {
        left: 20px;
    }

    .contact-form {
        padding: 20px 14px;
    }
}