:root {
    --color-bg: #050505;
    --color-surface: #111111;
    --color-text-main: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-primary: #3b82f6;
    /* Subtle blue accent */
    --color-accent: #8b5cf6;
    /* Purple accent for gradients */

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --container-width: 1200px;
    --border-radius: 12px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav__list {
    display: flex;
    gap: var(--spacing-md);
}

.nav__link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav__link:hover {
    color: var(--color-text-main);
}

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

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: white;
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.2), var(--color-bg));
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    display: flex;
    flex-direction: column;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--color-primary) 50%, var(--color-accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    margin-top: var(--spacing-md);
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 500px;
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

/* Services Grid */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.card__image-wrapper {
    height: 250px;
    overflow: hidden;
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card__image {
    transform: scale(1.05);
}

.card__content {
    padding: var(--spacing-md);
}

.card__title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-heading);
}

.card__desc {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.card__link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    position: relative;
}

.card__link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--color-text-main);
    bottom: -2px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.card:hover .card__link::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer__logo {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer__copyright {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer__links {
    display: flex;
    gap: var(--spacing-md);
}

.footer__links a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer__links a:hover {
    color: var(--color-text-main);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        /* For now, simple hide. JS will handle toggle. */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-surface);
        padding: var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav.active {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }

    .nav-toggle {
        display: block;
    }

    .hero__title {
        font-size: 3rem;
    }

    .footer__container {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* Sub-page Hero */
.hero--sub {
    height: 50vh;
    min-height: 400px;
}

/* Company Info */
.company-info {
    max-width: 800px;
    margin: 0 auto;
}

.company-info__list {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.company-info__item {
    display: flex;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-info__term {
    width: 30%;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-text-muted);
}

.company-info__desc {
    width: 70%;
}

@media (max-width: 768px) {
    .company-info__item {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .company-info__term {
        width: 100%;
    }

    .company-info__desc {
        width: 100%;
    }
}