* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: keep-all;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* 콘텐츠보다 위에 오도록 z-index 설정 */
}

.header-wrapper {
    margin: 0;
    padding: 0 10vw;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 63, 136, 0.9); /* 약간 투명하게 처리 */
    z-index: 999;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo a {
    text-decoration: none;
    font-family: 'NanumSquareB';
    font-size: 1.3rem;
    color: var(--header-text-color);
}

.custom-logo-link img {
    max-width: 80px; /* 원하는 크기로 조절 가능 */
    height: auto;
    width: auto;
}

/* 메뉴 버튼 스타일 */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
}

/* 데스크톱 메뉴 (1200px 이상) */
@media (min-width: 1200px) {
    .nav-wrapper {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .nav-wrapper ul {
        display: flex;
        list-style: none;
        height: 100%;
        width: 100%;
        align-items: center;
        gap: 3rem;
    }

    .nav-wrapper ul li {
        display: flex;
        align-items: center;
        height: 100%;
        position: relative;
        justify-content: center;
    }

    .nav-wrapper ul li a {
        font-size: 1rem;
        font-family: 'NanumSquareB';
        color: var(--header-text-color);
        text-decoration: none;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .nav-wrapper ul li a:hover {
        font-weight: bold;
        color: var(--header-text-point-color);
    }

    .nav-wrapper .sub-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 50%;
        background: #242f58aa;
        border: 0px;
        padding: 5px 0;
        width: 200%;
        text-align: center;
        min-height: fit-content;
        height: auto;
        overflow: visible;

        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(-10px);
        transition: all 0.3s ease;
        z-index: 10;
    }

    .nav-wrapper .sub-menu li {
        height: auto;
        padding: 8px 0;
        width: 100%;
    }

    .nav-wrapper .sub-menu a {
        justify-content: center;
        padding: 0 15px;
        font-size: 16px;
    }

    .nav-wrapper .sub-menu a:hover {
        font-weight: bold;
        color: var(--header-text-point-color);
    }

    .nav-wrapper li:hover .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .menu-toggle {
        display: none;
    }
}

/* 모바일 뷰 (1199px 이하) */
@media (max-width: 1199px) {
    .menu-toggle {
        display: block;
    }

    .nav-wrapper {
        display: none; /* 모바일에서 메뉴 숨김 */
    }
}