/* ========================================
   CSS Variables - Light Theme (Dark Navy)
   ======================================== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f8;
    --text-primary: #1a2340;
    --text-secondary: #4a5568;
    --text-muted: #8892a4;
    --accent: #2d3a5c;
    --accent-hover: #1a2540;
    --accent-glow: rgba(45, 58, 92, 0.08);
    --accent-light: #4a5f8c;
    --border: #e2e6ee;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --max-width: 1100px;
    --section-padding: 100px 0;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 32px;
    width: auto;
    mix-blend-mode: multiply;
    transition: opacity 0.3s;
}

.nav-logo:hover .nav-logo-img {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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


.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-logo {
    height: clamp(48px, 8vw, 80px);
    width: auto;
    mix-blend-mode: multiply;
    margin-bottom: 32px;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-tagline {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.8;
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.hero-cta:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 58, 92, 0.2);
}

/* ========================================
   Section Common
   ======================================== */
.section {
    padding: var(--section-padding);
}

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

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 32px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.about-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(45, 58, 92, 0.1);
}

.about-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 20px;
}

.about-icon svg {
    width: 100%;
    height: 100%;
}

.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Values */
.values-section {
    text-align: center;
}

.values-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
}

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

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    transition: all 0.3s;
}

.value-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.value-card h4 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 700;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   Services Section
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 28px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(45, 58, 92, 0.1);
}

.service-icon {
    width: 56px;
    height: 56px;
    color: var(--accent);
    margin: 0 auto 24px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ========================================
   Company Section
   ======================================== */
.company-table-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.company-table th {
    width: 140px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.company-table td {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.company-list {
    list-style: none;
}

.company-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
}

.company-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-container {
    text-align: center;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 40px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contact-email:hover {
    border-color: var(--accent);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-email a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-email a:hover {
    color: var(--accent);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 72px 0;
    }

    /* Mobile navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

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

    .nav-link {
        font-size: 1.1rem;
    }

    /* Grid adjustments */
    .about-grid {
        grid-template-columns: 1fr;
    }

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

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

    /* Company table */
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        padding-bottom: 4px;
        border-bottom: none;
    }

    .company-table td {
        padding-top: 4px;
    }

    /* Hero */
    .hero-cta {
        padding: 12px 28px;
    }

    .section-title {
        margin-bottom: 40px;
    }

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

    .contact-email a {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-company {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 24px;
    }
}
