:root {
    /* Colors - Refined Modern Tech */
    /* Backgrounds: Off-white/Subtle Grey to reduce eye strain and feel premium */
    --color-bg: #F8F9FA;
    --color-surface: #FFFFFF;

    /* Text: Deep Charcoal/Navy for high contrast but softer than pure black */
    --color-text-main: #1E293B;
    /* Slate 800 */
    --color-text-sub: #64748B;
    /* Slate 500 */

    /* Brand Colors */
    --color-primary: #0F172A;
    /* Slate 900 - Deep Navy/Black */
    --color-accent: #0EA5E9;
    /* Sky 500 - Electric Blue */
    --color-accent-glow: rgba(14, 165, 233, 0.15);

    /* Fonts */
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Manrope', sans-serif;

    /* Spacing & Layout (Ma) */
    --spacing-container: 120px;
    /* Generous padding */
    --radius-md: 12px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-en);
    /* Default to English font structure */
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Force JP font for specific language attributes if needed, 
   but generally CSS font stack handles mixed content fairly well if ordered. 
   Here we prioritize Manrope for numbers/english, Noto for JP glyphs via fallback. */
:lang(ja) {
    font-family: var(--font-jp);
}

:lang(zh) {
    font-family: var(--font-jp);
    /* Fallback to Noto Sans SC if loaded, using JP for now matching aesthetic */
}

/* Noise Overlay - Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    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");
}

/* Typography Utility */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(248, 249, 250, 0.8);
    transition: padding 0.3s ease;
}

.site-header.scrolled {
    padding: 16px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-sub);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover {
    color: var(--color-primary);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-en);
    font-size: 0.85rem;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--color-text-sub);
    transition: color 0.3s;
    padding: 0;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--color-primary);
    font-weight: 700;
}

.divider {
    color: #CBD5E1;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.8;
}

/* Gradient Mask for Background */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(248, 249, 250, 0.95) 0%,
            rgba(248, 249, 250, 0.6) 50%,
            rgba(248, 249, 250, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4.5rem;
    /* Generous sizing */
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--color-primary), #475569);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-sub);
    letter-spacing: 0.05em;
    margin-bottom: 48px;
    font-family: var(--font-en);
}

.cta-btn {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
}

/* Sections General */
section {
    padding: var(--spacing-container) 0;
}

.section-header {
    margin-bottom: 64px;
    position: relative;
    padding-left: 60px;
}

.section-label {
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-accent);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 500;
    /* Lighter weight for modern look */
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-sub);
    line-height: 1.8;
}

.company-info-table {
    border-top: 1px solid #E2E8F0;
}

.info-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    padding: 20px 0;
    border-bottom: 1px solid #E2E8F0;
}

.info-row .label {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.info-row .value {
    color: var(--color-text-sub);
}

/* Business Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--radius-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.05);
    border-color: rgba(14, 165, 233, 0.2);
}

.icon-wrapper {
    margin-bottom: 32px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F1F5F9;
    border-radius: 50%;
    color: var(--color-accent);
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

/* We will use a sprite technique or separate images for icons in real deployment. 
   For now simulated with numbers or if image exists, use it. */
.icon-wrapper .service-number {
    z-index: 2;
}

/* Using the generated icon sheet as bg for demo */
.service-card:nth-child(1) .icon-wrapper {
    background-image: url('assets/services-icons.png');
    background-size: 300% auto;
    background-position: 0% 50%;
}

.service-card:nth-child(2) .icon-wrapper {
    background-image: url('assets/services-icons.png');
    background-size: 300% auto;
    background-position: 50% 50%;
}

.service-card:nth-child(3) .icon-wrapper {
    background-image: url('assets/services-icons.png');
    background-size: 300% auto;
    background-position: 100% 50%;
}

/* Hide number if we have icons */
.service-card .service-number {
    display: none;
}


.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--color-text-sub);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--color-primary);
    color: #fff;
    padding: 120px 0;
    margin-top: 80px;
    text-align: center;
}

.contact-section h2 {
    color: #fff;
    margin-bottom: 32px;
}

.contact-card p {
    color: #94A3B8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.email-link {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-en);
    position: relative;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.email-link:hover::after {
    width: 100%;
}

/* Footer */
.site-footer {
    background-color: #020617;
    /* Even darker than primary for contrast */
    color: #64748B;
    padding: 40px 0;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Animation Utilities */
.stagger-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-trigger {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-trigger.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 16px;
    }

    .main-nav {
        display: none;
        /* Simplification: Hide nav on mobile for this iteration or implement toggle */
    }

    .mobile-menu-toggle {
        display: block;
        /* Would need JS to work fully */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-row {
        grid-template-columns: 100px 1fr;
    }

    .email-link {
        font-size: 1.5rem;
    }
}