:root {
    --color-primary: #021a14;
    --color-text: #333333;
    --color-white: #ffffff;
    --color-bg-light: #edece7;
    --font-serif: "Shippori Mincho", "Times New Roman", serif;
    --font-sans: "Noto Sans JP", sans-serif;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-bg-light);
}

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

a:hover {
    opacity: 0.7;
}

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

/* Typography */
.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(2, 26, 20, 0.95);
    color: var(--color-white);
    z-index: 1000;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    font-size: 2rem;
}

.logo img {
    height: 40px;
    filter: invert(1);
    /* Ensure white logo if svg is black */
}

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

.nav a {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.btn-contact {
    border: 1px solid var(--color-white);
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 1rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.6;
    font-weight: 500;
}

.hero-title .en {
    font-family: var(--font-sans);
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

/* Service */
.section {
    padding: 6rem 0;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.service-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-item {
    flex: 1;
    min-width: 300px;
    background: var(--color-white);
    padding-bottom: 2rem;
}

.service-image {
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.1);
}

.service-text {
    padding: 1.5rem;
}

.service-text h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-text p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.service-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Mission */
.mission {
    position: relative;
    background-color: var(--color-primary);
    color: var(--color-white);
    overflow: hidden;
}

.mission-bg img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    opacity: 0.3;
}

.mission-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 2rem;
}

.mission-lead {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Company */
.company-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #ccc;
}

.company-row {
    display: flex;
    padding: 1.5rem 0;
    border-bottom: 1px solid #ccc;
}

.company-row dt {
    width: 30%;
    font-weight: bold;
}

.company-row dd {
    width: 70%;
}

/* CTA */
.cta-links {
    display: flex;
    flex-wrap: wrap;
}

.cta-block {
    flex: 1;
    min-width: 100%;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-block {
        min-width: 50%;
    }
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
    z-index: -1;
}

.cta-block:hover .cta-bg {
    transform: scale(1.05);
}

.cta-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.cta-content {
    text-align: center;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
}

.cta-content .arrow {
    display: block;
    margin-top: 1rem;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    margin: 0 1rem;
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: white;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

    .hero-title .en {
        font-size: 2rem;
    }

    .mission-lead {
        font-size: 1.5rem;
    }
}