@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    --primary-color: #001f3f;
    /* Navy */
    --secondary-color: #003366;
    /* Darker Blue */
    --accent-color: #ffffff;
    /* White text */
    --text-color: #333333;
    /* Dark gray for white backgrounds */
    --light-bg: #f4f6f9;
    /* Very light blue/gray for sections */
    --font-main: 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: #fff;
    color: var(--primary-color);
    padding: 0.8rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 90%;
    max-width: 1200px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    /* Font size removed as we use image */
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Adjust based on logo aspect ratio */
    width: auto;
}

/* Hamburger button (hidden on desktop) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Above nav */
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s linear;
}

/* Nav Links default (Desktop) */
.nav-links ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 31, 63, 0.7), rgba(0, 31, 63, 0.7)), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--accent-color);
    padding: 0 1rem;
    /* margin-top removed to let hero start at top */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Sections Common */
section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    display: inline-block;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Vision/Message */
.vision {
    background-color: #fff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.vision p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Business Section */
.business {
    background-color: #fff;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.business-item {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    overflow: hidden;
}

.business-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.business-item:hover {
    transform: translateY(-5px);
}

.business-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
}

.business-item p {
    font-size: 1rem;
    color: var(--text-color);
}


/* Company Overview */
.company {
    background-color: var(--light-bg);
}

.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.company-table th,
.company-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.company-table th {
    background-color: var(--primary-color);
    color: var(--accent-color);
    width: 30%;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--accent-color);
    text-align: center;
    padding: 2rem;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        width: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        margin: 0;
        padding: 0.8rem 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .logo img {
        height: 32px;
        /* Slightly smaller for mobile */
    }

    .hamburger-menu {
        display: flex;
    }

    /* Mobile Nav Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 31, 63, 0.95);
        /* Primary color with transparency */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: bold;
    }

    /* Hamburger Animation */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 8px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -8px);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        padding-bottom: 0.5rem;
    }

    .company-table td {
        padding-top: 0.5rem;
        padding-bottom: 1.5rem;
    }
}