* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mobile-menu-header,
.mobile-header,
.mobile-menu,
.mobile-overlay {
    display: none;
}

.div-navbar {
    width: 100%;
    background-color: #FFF;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    display: flex;
    position: fixed;
    top: 0;
    justify-content: center;
    align-items: center;
    height: 64px;
    z-index: 1003;
}

.navbar {
    width: 100%;
    max-width: 1440px;
    padding-left: 12px;
    height: 64px;
    position: fixed;
    top: 0;
    background-color: #FFF;
    z-index: 1003;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1 0 0;
    position: relative;
}

.navbar-brand {
    display: flex;
    width: 106px;
    height: 37px;
    padding: 5px 0 4px 0;
    justify-content: center;
    align-items: center;
}

.navbar-brand img {
    width: 106px;
    height: 28px;
    flex-shrink: 0;
    aspect-ratio: 53/14;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-center a {
    display: flex;
    height: 37px;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;

    color: #232222;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%; /* 20.8px */
    letter-spacing: -0.4px;
    text-decoration: none;
}

.nav-center a:hover {
    color: #053C54;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-right a, .nav-right button {
    display: flex;
    height: 37px;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;

    color: #232222;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%; /* 20.8px */
    letter-spacing: -0.4px;
    text-decoration: none;
}

.nav-right button {
    background: none;
    border: none;
}

.nav-right .lang-toggle:hover {
    color: #CFEAF6;
}

.nav-right .nav-btn-login:hover {
    color: #CFEAF6;
}

.nav-right .nav-btn-signup:hover {
    color: #CFEAF6;
}

.nav-right .nav-btn-logout:hover {
    color: #CFEAF6;
}

.footer {
    display: flex;
    width: 100%;
    padding: 80px 40px;
    justify-content: center;
    align-items: flex-end;
    background: #242B33;
    color: #C5C5C5;
    font-family: Pretendard;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 15.6px */
    letter-spacing: -0.3px;
}

.footer-container {
    max-width: 1440px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1 0 0;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    flex: 1 0 0;
    align-self: stretch;
}

.footer-logo {
    display: flex;
    width: 80px;
    height: 14px;
    padding: 1px 1px 1px 0;
    justify-content: center;
    align-items: center;
}

.footer-name {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-address-row {
    display: flex;
    gap: 8px;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a {
    text-decoration: none;
    color: #C5C5C5;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-sites-wrapper {
    position: relative;
}

.footer-sites {
    width: 91px;
    
    display: flex;
    padding: 8px;
    align-items: center;
    gap: 4px;

    color: var(--Text-Grey-50);
    font-family: Satoshi;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    letter-spacing: -0.8px;
    cursor: pointer;
    user-select: none;
    border-top: 1px solid var(--Fill-Grey-800);
}

.footer-sites.active {
    width: 91px;
    background-color: var(--Grey-900);
}

.footer-sites .arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.footer-sites.active .arrow-icon {
    transform: rotate(180deg);
}

.family-site-dropdown {
    display: flex;
    width: 91px;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: var(--Grey-900);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.family-site-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.family-site-dropdown a {
    display: flex;
    width: 91px;
    padding: 8px;
    align-items: center;
    gap: 4px;

    color: var(--Text-Grey-100);
    font-family: Satoshi;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%; /* 15.6px */
    letter-spacing: -0.3px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.family-site-dropdown a:hover {
    color: var(--Text-Grey-100);
}

.family-site-dropdown a:active {
    color: var(--Text-Grey-500);
}

@media (max-width: 820px) {
    /* 데스크톱 메뉴 숨김 */
    .navbar > .navbar-container {
        display: none;
    }

    .navbar {
        display: flex;
        padding-left: 10px;
        justify-content: center;
        align-items: center;
        gap: 276px;
    }

    /* 모바일 메뉴 헤더 */
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex: 1 0 0;
    }

    .mobile-header .logo {
        display: flex;
        width: 106px;
        height: 37px;
        padding: 5px 0 4px 0;
        justify-content: center;
        align-items: center;
        text-decoration: none;
    }
    
    .mobile-header .logo-detail {
        width: 106px;
        height: 28px;
        flex-shrink: 0;
        aspect-ratio: 53 / 14;
        background: url('/static/images/index_logo.png') center / cover no-repeat;
    }

    .mobile-menu-header .logo-detail {
        background: url('/static/images/index_logo.png') center / cover no-repeat;
    }

    .mobile-header .button {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .mobile-header .lang-toggle {
        display: flex;
        height: 37px;
        padding: 8px 12px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        background: none;
        border: none;
        cursor: pointer;
        /* color: #FFF; */
        font-family: Pretendard;
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 130%; /* 20.8px */
        letter-spacing: -0.4px;
    }

    .mobile-menu-header .lang-toggle {
        color: #232222;
    }
    
    .menu-toggle {
        display: flex;
        padding: 10px;
        align-items: center;
        gap: 8px;
        background: none;
        border: none;
        cursor: pointer;
        color: #232222;
    }

    /* 모바일 메뉴 */
    .mobile-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #FFF;
        z-index: 1002;
        transition: right 0.3s ease;
        overflow-y: auto;
        padding-top: 80px;

    }
    
    .mobile-menu.active {
        right: 0;
    }

    /* 모바일 메뉴 리스트 */
    .mobile-menu-list {
        width: 100%;
        list-style: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        align-self: stretch;
    }
    
    .mobile-menu-list a {
        display: flex;
        padding: 8px 16px;
        justify-content: space-between;
        align-items: center;
        align-self: stretch;
        background: #FFFFFF;
        color: #232222;
        font-family: Pretendard;
        font-size: 20px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%; /* 28px */
        letter-spacing: -0.5px;
        text-decoration: none;
    }
    
    .mobile-menu-list a:active {
        background: #E7F4FA;
        color: #0D96D2;
    }

    /* 모바일 메뉴 선택된 상태 */
    .mobile-menu-list a.selected {
        color: #0D96D2;
    }

    .mobile-menu-list > li > a > div:nth-child(2) {
        display: flex;
        padding: 10px;
        align-items: center;
        gap: 8px;
    }

    .mobile-menu-list li {
        width: 100%;
    }
    
    .mobile-menu-list svg {
        width: 24px;
        height: 24px;
        aspect-ratio: 1/1;
    }
    
    /* 오버레이 */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .mobile-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    
    /* 스크롤 방지 */
    body.menu-open {
        overflow: hidden;
    }



    
    /* 모바일 푸터 */
    .footer {
        display: flex;
        width: 100%;
        padding: 40px 16px;
        justify-content: center;
        align-items: center;
        gap: 31px;
        background: #242B33;
        color: #C5C5C5;
        font-family: Pretendard;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 130%; /* 15.6px */
        letter-spacing: -0.3px;
    }

    .footer-container {
        max-width: 360px;
        display: flex;
        align-items: flex-start;
        align-content: flex-start;
        gap: 16px 357px;
        flex-wrap: wrap;
    }

    .footer-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        flex: 1 0 0;
        gap: 8px;
    }

    .footer-logo {
        display: flex;
        width: 80px;
        height: 14px;
        padding: 1px 1px 1px 0;
        justify-content: center;
        align-items: center;
    }

    .footer-name {
        display: flex;
        align-items: flex-start;
        align-content: flex-start;
        gap: 4px;
        align-self: stretch;
        flex-wrap: wrap;
    }

    .footer-name-row {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .footer-address {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        align-content: flex-start;
        gap: 8px 8px;
        align-self: stretch;
        flex-wrap: wrap;
    }

    .footer-address-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .footer-links {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .footer-links a {
        text-decoration: none;
        color: #C5C5C5;
    }

    .footer-social {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .mobile-delete {
        display: none !important;
    }
}