/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    --primary: #1a365d;
    --primary-deep: #0f2440;
    --primary-light: #2a4a7f;
    --accent: #2563eb;
    --accent-light: #dbeafe;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --teal: #0d9488;
    --teal-light: #ccfbf1;

    /* Dark section palette */
    --section-bg: #070e1d;
    --section-alt-bg: #060c18;
    --card-glass: rgba(255, 255, 255, 0.04);
    --card-glass-border: rgba(255, 255, 255, 0.08);
    --card-glass-hover-bg: rgba(37, 99, 235, 0.07);
    --card-glass-hover-border: rgba(37, 99, 235, 0.3);
    --text-on-dark: rgba(255, 255, 255, 0.88);
    --text-muted-on-dark: rgba(255, 255, 255, 0.55);

    --bg: #fafafa;
    --bg-warm: #f5f5f5;
    --card: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --font-body: 'Noto Sans JP', 'Outfit', sans-serif;
    --font-display: 'Outfit', 'Noto Sans JP', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(6, 12, 24, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
    padding: 0.6rem 2rem;
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo {
    color: #fff;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.navbar.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.7);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: var(--transition);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-deep);
    overflow: hidden;
}

/* Background image layer */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero-glider.jpg');
    background-size: cover;
    background-position: center 40%;
}

/* Gradient overlay for text readability + natural blending */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            to right,
            rgba(15, 36, 64, 0.88) 0%,
            rgba(15, 36, 64, 0.75) 30%,
            rgba(26, 54, 93, 0.45) 55%,
            rgba(26, 54, 93, 0.15) 80%,
            rgba(26, 54, 93, 0.08) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(15, 36, 64, 0.3) 0%,
            transparent 30%,
            transparent 70%,
            rgba(15, 36, 64, 0.5) 100%
        );
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: #fff;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.hero-cta:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}


/* ========================================
   Section Common — Dark Theme
======================================== */
.section {
    position: relative;
    padding: 6rem 2rem;
    background: var(--section-bg);
    overflow: hidden;
}

.section-alt {
    background: var(--section-alt-bg);
}

.section-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Particle canvas (injected by JS) */
.section-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 20%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted-on-dark);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* ========================================
   Concept Section
======================================== */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.concept-card {
    background: var(--card-glass);
    border: 1px solid var(--card-glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.concept-card:hover {
    background: var(--card-glass-hover-bg);
    border-color: var(--card-glass-hover-border);
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.2),
        0 20px 60px rgba(37, 99, 235, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.concept-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #60a5fa;
    margin-bottom: 1.25rem;
}

.concept-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: 0.75rem;
}

.concept-card p {
    font-size: 0.9rem;
    color: var(--text-muted-on-dark);
    line-height: 1.8;
}

/* ========================================
   Services Section
======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--card-glass);
    border: 1px solid var(--card-glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.service-card:hover {
    background: var(--card-glass-hover-bg);
    border-color: var(--card-glass-hover-border);
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.2),
        0 20px 60px rgba(37, 99, 235, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.service-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #60a5fa;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-muted-on-dark);
    line-height: 1.8;
}

/* ========================================
   Company Section
======================================== */
.company-table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    background: var(--card-glass);
    border: 1px solid var(--card-glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.company-table th,
.company-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.company-table th {
    width: 160px;
    background: rgba(255, 255, 255, 0.04);
    color: #93c5fd;
    font-weight: 600;
    white-space: nowrap;
}

.company-table td {
    color: var(--text-on-dark);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

/* ========================================
   Contact Section
======================================== */
.contact {
    position: relative;
    overflow: hidden;
    background: var(--section-bg);
    color: #fff;
    text-align: center;
}

/* Glowing orb effect */
.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        ellipse at center,
        rgba(37, 99, 235, 0.18) 0%,
        rgba(37, 99, 235, 0.06) 40%,
        transparent 70%
    );
    animation: contact-glow 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes contact-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.contact .section-label {
    color: rgba(255, 255, 255, 0.5);
}

.contact .section-title {
    background: linear-gradient(135deg, #fff 20%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact .section-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}

.contact-link:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.25);
}

/* ========================================
   Footer
======================================== */
.footer {
    background: #040a14;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

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

/* ========================================
   Responsive
======================================== */
@media (max-width: 968px) {
    .hero-inner {
        text-align: center;
        padding-top: 8rem;
    }

    .hero-text {
        max-width: none;
        margin: 0 auto;
    }

    .hero::after {
        background:
            radial-gradient(
                ellipse at center,
                rgba(15, 36, 64, 0.7) 0%,
                rgba(15, 36, 64, 0.5) 60%,
                rgba(26, 54, 93, 0.3) 100%
            ),
            linear-gradient(
                to bottom,
                rgba(15, 36, 64, 0.4) 0%,
                transparent 30%,
                transparent 70%,
                rgba(15, 36, 64, 0.6) 100%
            );
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-cta {
        margin: 0 auto;
    }

    .concept-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(6, 12, 24, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        gap: 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: rgba(255,255,255,0.75);
        padding: 0.75rem 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 4rem 1.25rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero-inner {
        padding: 7rem 1.25rem 3rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .service-card {
        flex-direction: column;
        gap: 1rem;
    }

    .company-table th {
        width: 100px;
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    .company-table td {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}
