/* Header */
header {
    background: var(--color-black);
    color: var(--color-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* Logo */
.logo {
    display: block;
    width: 200px;
    height: auto;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        width: 70%;
    }
}

/* Navigation */
.nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: flex-start;
    /* Align for dropdown */
}

.nav ul li {
    position: relative;
    /* Context for dropdown */
}

/* Base Link Style */
.nav ul li a {
    text-decoration: none;
    color: var(--color-white);
    /* Requested White Text */
    font-weight: 500;
    transition: 0.3s;
    font-family: 'Teko', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1;
    cursor: pointer;
}

/* Underline Animation */
.nav ul li>a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--color-white);
    transition: width 0.3s ease;
}

.nav ul li>a:hover::after {
    width: 100%;
}

.nav ul li a .ja {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ccc;
    /* Lighter Grey on Dark Header */
    margin-top: 4px;
    letter-spacing: 0.05em;
}

.nav ul li a:hover {
    opacity: 0.8;
}

.nav ul li a:hover .ja {
    color: #fff;
}

/* ============================
   Dropdown Menu (Service)
   ============================ */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-black);
    /* Same as header */
    min-width: 200px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    /* Override .nav ul flex */
    flex-direction: column;
    gap: 0;
    /* Reset gap */
    z-index: 1010;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    flex-direction: row;
    /* Horizontal in dropdown */
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    white-space: nowrap;
}

.dropdown-menu li a .ja {
    margin-top: 0;
    font-size: 0.8rem;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-white);
    /* White toggle */
    z-index: 1100;
}

/* Footer */
footer {
    background: var(--color-primary-red);
    color: #fff;
    padding: 4rem 0 1rem;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section {
    flex: 1;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    border-left: none;
    padding-left: 0;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-section p {
    line-height: 1.8;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Responsive (Mobile/Drawer) */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        /* Dark background for mobile drawer */
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        /* Allow scroll if tall */
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
        padding: 5rem 0;
    }

    /* Reset Dropdown Styles for Mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding-top: 1rem;
        display: none;
        /* Hidden by default, toggle via JS or just show all? usually show all or indent */
        display: flex;
        align-items: center;
        gap: 1.5rem;
        padding: 1rem 0;
        border-top: 1px solid #333;
        border-bottom: 1px solid #333;
        margin-top: 1rem;
        width: 80%;
        /* Center in drawer */
    }

    .nav ul li a {
        font-size: 1.5rem;
        flex-direction: row;
        gap: 1rem;
    }

    /* Hide the parent "Service" link if we just want to show children, 
       OR keep parent and show children indented. 
       Let's keep parent and children. */

    .dropdown-menu li a {
        font-size: 1.4rem;
        /* Smaller sub items */
        padding: 0;
        justify-content: center;
    }

    /* Footer Responsive */
    .footer-inner {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-section {
        width: 100%;
        text-align: left;
    }
}