/* Header Navigation Styles - Public header navigation style */

/* Fixed header navigation bar */
.group_1 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 16px 20px !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, .2) !important;
    backdrop-filter: blur(8px);
    font-family: "Source Han Sans JP", sans-serif;
}

.flex-col {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

/* Navigation container - Centered content */
.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
    box-sizing: border-box;
}

.group_1 a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.group_1 a:hover {
    opacity: 0.6;
}

/* Logo wrapper */
.nav-container>a:first-child {
    margin-right: auto !important;
    display: flex;
    align-items: center;
}

.image_1 {
    height: 29px;
    width: auto;
    display: block;
}

/* Language switcher */
.text-wrapper_1 {
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 !important;
    cursor: pointer;
}

.text_1 {
    color: rgba(102, 102, 102, 1);
    font-size: 16px;
}

/* Navigation Links Wrapper - Desktop */
.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Menu items spacing */
.nav-links-wrapper>a {
    margin-left: 30px;
    color: rgba(51, 51, 51, 1);
    font-size: 16px;
    white-space: nowrap;
    font-family: "Source Han Sans JP", sans-serif;
}

.text_3,
.text_4,
.text_5,
.text_6,
.text_38 {
    color: rgba(51, 51, 51, 1);
    font-size: 16px;
    font-family: "Source Han Sans JP", sans-serif;
}

/* Active navigation item style */
.nav-links-wrapper>a.active,
.nav-links-wrapper>a.active .text_3,
.nav-links-wrapper>a.active .text_4,
.nav-links-wrapper>a.active .text_5,
.nav-links-wrapper>a.active .text_6,
.nav-links-wrapper>a.active .text_38 {
    color: #666 !important;
}

/* Scrolled header style */
.group_1.scrolled {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px);
    padding: 12px 20px !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Active State (Hamburger Animation) */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hide mobile language switcher on desktop */
.mobile-lang-switch {
    display: none;
}

/* Responsive Navigation */
@media screen and (max-width: 1024px) {
    .group_1 {
        padding: 14px 20px !important;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-links-wrapper>a {
        margin-left: 20px;
        font-size: 15px;
    }
}

@media screen and (max-width: 768px) {
    .group_1 {
        padding: 12px 15px !important;
    }

    .nav-container {
        padding: 0 10px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Navigation Drawer */
    .nav-links-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links-wrapper.active {
        right: 0;
    }

    .nav-links-wrapper>a {
        margin-left: 0;
        margin-bottom: 25px;
        font-size: 18px;
        width: 100%;
        display: block;
        font-family: "Source Han Sans JP", sans-serif;
        font-weight: normal;
    }

    /* Ensure all navigation text has consistent styling */
    .nav-links-wrapper>a span,
    .nav-links-wrapper>a .text_3,
    .nav-links-wrapper>a .text_4,
    .nav-links-wrapper>a .text_5,
    .nav-links-wrapper>a .text_6,
    .nav-links-wrapper>a .text_38 {
        font-family: "Source Han Sans JP", sans-serif;
        font-size: 18px;
        font-weight: normal;
    }

    /* Show mobile language switcher on mobile */
    .mobile-lang-switch {
        display: block;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        width: 100%;
    }

    /* Hide desktop language switcher on mobile */
    .nav-container>.text-wrapper_1 {
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
    .group_1 {
        padding: 10px 15px !important;
    }

    .image_1 {
        height: 25px;
    }

    .nav-links-wrapper {
        width: 250px;
    }
}