/* header {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: auto;
    padding: 24px 32px;
    position: relative;
} */
header {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
    margin: auto;
    padding: 24px 32px;
    position: fixed;
    z-index: 999;
}
/* header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
    z-index: 9999;
    } */

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    margin-right: 12px;
}

.logo-text .title {
    font-size: var(--fontsize-3);
    font-weight: bold;
}

.logo-text .sub {
    font-size: 12px;
    color: #555;
}

.right-section {
    display: flex;
    align-items: center;
    /* gap: 16px; */
}

.contact-btn {
    background-color: #333;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.lang-switch {
    font-size: 14px;
}

.lang-switch .active {
    color: #007bff;
    font-weight: bold;
}

.lang-switch .inactive {
    color: #999;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-container {
    margin-top: 2px;
}

.nav-list {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    padding: 8px;
    display: inline-block;
}

.nav-item:hover > a {
    color: #007bff;
}

.has-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-wrap: wrap;
    gap: 24px;
    background-color: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    text-decoration: none;
    color: #000;
    padding: 8px 0;
    white-space: nowrap;
}

.dropdown-menu li {
    position: relative;
    padding-left: 10px;
}
.dropdown-menu li::before {
    content: "";
    position: absolute;
    left: 0;
    width: 0;
    height: 0;
    top: 50%;
    transform: translateY(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent transparent var(--color-primary);
}

.dropdown-menu a:hover {
    color: var(--color-primary);
}

.external::after {
    content: "↗";
    font-size: 0.8em;
    margin-left: 4px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    header {
        width: 80%;
    }
    .menu-toggle {
        display: block;
    }

    .right-section .contact-btn {
        display: none;
    }

    .nav-list {
        flex-direction: column;
        gap: 16px;
        display: none;
        margin-top: 16px;
    }

    .nav-list.active {
        display: flex;
    }

    .has-dropdown .dropdown-menu {
        position: static;
        display: none;
        flex-direction: column;
        background-color: #f0f0f0;
        padding: 8px 16px;
        margin-left: 8px;
        border-radius: 8px;
    }

    .has-dropdown.open .dropdown-menu {
        display: flex;
    }

    .has-dropdown > a::after {
        content: "▼";
        font-size: 0.7em;
        margin-left: 4px;
    }

    .nav-item.mobile-contact {
        margin-top: 8px;
    }

    .nav-item.mobile-contact a {
        background-color: #333;
        color: #fff;
        padding: 8px 16px;
        border-radius: 8px;
        font-weight: bold;
        display: inline-block;
    }
}