:root {
    /* Colors */
    --primary-color: #0B1120;
    /* Deepest Navy/Black */
    --primary-light: #1e293b;
    --accent-color: #3B82F6;
    /* Bright Tech Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-white: #f8fafc;
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 120px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn--primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    background: #2563eb;
}

.btn--white {
    background: white;
    color: var(--primary-color);
}

.btn--white:hover {
    background: var(--bg-light);
}

.btn--outline-white {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn--outline-white:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

.header.scrolled {
    height: 90px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 100px;
    /* Further increased size */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all var(--transition-fast);
}

.logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
    /* Subtle blue glow matching accent */
}

/* Ensure logo shrinks when header is scrolled */
.header.scrolled .logo img {
    height: 70px;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-fast);
}

.nav__link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    /* Align content to bottom */
    /* background: url('hero-bg.png') no-repeat center center/cover; Removed for video bg */
    background: #0B1120;
    /* Fallback color */
    color: white;
    overflow: hidden;
}

/* Add a subtle zoom effect to the background on load if possible, 
   but since background is on .hero, let's use a pseudo-element for the image if we want to animate it.
   For now, simple background on .hero is fine, but let's add a darker overlay. */

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 17, 32, 0.6);
    /* General darken */
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from left (text side) to right, allowing image to shine through */
    background: linear-gradient(90deg, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0.8) 40%, rgba(11, 17, 32, 0.2) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-top: 0;
    padding-bottom: 10vh;
    /* Position at the bottom */
    width: 100%;
    /* Ensure full width for flex alignment if needed, or keeping container width is fine */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.5s;
    margin-left: 0;
    margin-right: auto;
    padding-left: 5%;
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;

}

.hero__title {
    margin-bottom: 2rem;
}

.hero__title-sub {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero__title-main {
    display: block;
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__description {
    font-size: 1.125rem;
    color: #3B82F6;
    margin-bottom: 3rem;
    max-width: 600px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 2px;
    z-index: 2;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

/* Services Section */
.services {
    background-color: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #fff 0%, transparent 20%, transparent 80%, #fff 100%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(59, 130, 246, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.service-card__icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    transition: var(--transition-fast);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

.service-card:hover .service-card__icon-wrapper {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 15px rgba(59, 130, 246, 0.3);
}

.service-card__icon {
    width: 30px;
    height: 30px;
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card__text {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Features Section */
.features.section {
    padding-bottom: 0;
}

.features {
    background: white;
    position: relative;
    overflow: hidden;
}

.feature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.check-icon {
    width: 24px;
    height: 24px;
    background: #dbeafe;
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.visual-box {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, #f1f5f9 0%, #cbd5e1 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.visual-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.visual-box:hover img {
    transform: scale(1.05);
}

.visual-box-2 {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.1;
}

/* 3D Interactive Section */
.three-section {
    padding: 4rem 0 3rem 0;
    background: #ffffff;
    /* Changed from gradient to white */
    position: relative;
    overflow: hidden;
}

.three-canvas-wrapper {
    width: 100%;
    height: 500px;
    background: #000;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.01);
    border: 1px solid #ffffff;
}

.section-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Back to full clarity */
}


@media (max-width: 768px) {
    .three-canvas-wrapper {
        height: 400px;
    }
}

/* About Section */
.about.section {
    padding-top: 3rem;
    /* Reduced from 6rem */
}

.company-info {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.info-row {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row dt {
    width: 150px;
    font-weight: 700;
    color: var(--primary-color);
}

.info-row dd {
    flex: 1;
    color: var(--text-muted);
}

/* Recruit Section */
.recruit {
    background: white;
    overflow: hidden;
}

.recruit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.recruit-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: var(--primary-color);
}

.recruit-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: var(--transition-fast);
}

.job-item:hover {
    border-color: var(--accent-color);
    background: #eff6ff;
    transform: translateX(5px);
}

.job-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.job-title {
    font-weight: 700;
    color: var(--primary-color);
}

.recruit-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.recruit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.recruit-image:hover img {
    transform: scale(1.05);
    /* Same hover effect as other images for consistency */
}

@media (max-width: 900px) {
    .recruit-grid {
        grid-template-columns: 1fr;
    }

    .recruit-image {
        height: 300px;
        order: -1;
        /* Image first on mobile */
    }

    /* .recruit-image removed, so we don't need to reorder it, but if wrapper exists: */
    .recruit-form-wrapper {
        width: 100%;
    }
}

/* Recruit Form */
.recruit-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.form-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.required {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.recruit-form input,
.recruit-form select,
.recruit-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background: #f8fafc;
    transition: var(--transition-fast);
}

.recruit-form input:focus,
.recruit-form select:focus,
.recruit-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn--full {
    width: 100%;
    margin-top: 1rem;
}

/* Contact Section */
.contact {
    position: relative;
    background: var(--primary-color);
    color: white;
    padding: 6rem 0;
    overflow: hidden;
}

.contact-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, #1e293b 0%, #020617 100%);
    opacity: 1;
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    text-align: left;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

.contact-text {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Contact Form Specifics */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-form .form-group label {
    color: var(--text-white);
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-title {
        font-size: 2.5rem;
    }
}

/* Footer */
.footer {
    background: #020617;
    color: #94a3b8;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer__logo img {
    height: 30px;
    width: auto;
}

.footer__links {
    display: flex;
    gap: 2rem;
}

.footer__links a:hover {
    color: white;
}

.footer__copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero__title-main {
        font-size: 2.5rem;
    }

    .nav {
        display: none;
        /* Mobile menu logic to be added in JS if needed, simplifying for now */
    }

    .mobile-menu-btn {
        display: flex;
    }

    .feature-layout {
        grid-template-columns: 1fr;
    }

    .info-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-row dt {
        width: 100%;
    }
}