/* 메뉴 부분 */
/* ✅ 메뉴: 데스크탑 기본 상단 메뉴 */
@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

#topMenu {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    position: relative;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    font-family: "Pretendard-Regular", sans-serif;
    background: transparent;
}

#topMenu.scrolled {
  background: #fff; /* 하얀 배경 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* Optional: 그림자 효과 */
}

#topMenu #logo img {
    width: 200px;
}

#mainMenu {
    display: flex;
    font-size: 21px;
    font-weight: 600;
    align-items: center;
}

#mainMenu .menu-item {
    position: relative;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

#mainMenu .menu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 3px;
    background-color: #ccc;
    opacity: 0.7;
}

#mainMenu .menu-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    padding: 8px 0;
}

#mainMenu .menu-link {
    position: relative;
}

#mainMenu .menu-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: #39a1db;
    transition: width 0.3s ease;
}

#mainMenu .menu-link:hover::after {
    width: 100%;
}

#mainMenu .menu-link:hover {
    color: #39a1db;
}

/* ✅ 햄버거 메뉴: 기본 숨김 */
#hamburger {
    display: none;
}

/* 서브메뉴 부분 */
/* ✅ submenu: hover 시 드롭다운 */
@media (min-width: 1241px) {
    .menu-item:hover .submenu {
        display: flex;
    }

    .submenu a {
        padding: 10px 20px;
        font-size: 15px;
        color: #333;
        text-decoration: none;
        white-space: nowrap;
    }

    .submenu a:hover {
        background-color: #f5f5f5;
    }

    #mainMenu .menu-item {
        position: relative;
    }

    #mainMenu .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0px;
        box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 8px;
        z-index: 100;
        min-width: 150px;
        flex-direction: column;
        background: rgb(255, 255, 255);
        border-width: 1px;
        border-style: solid;
        border-color: rgb(224, 224, 224);
        border-image: initial;
        padding: 10px 0px;
    }

    .submenu a {
        display: block;
        font-size: 16px;
        color: rgb(51, 51, 51);
        padding: 10px 20px;
        text-decoration: none;
        white-space: nowrap;
    }

    #mainMenu .menu-item:hover .submenu {
        display: block;
    }

    #mobileMenu {
        display: none;
    }
}

@media (max-width: 1240px) {
    #topMenu {
        padding: 0 20px;
        height: 80px;
    }

    #mainMenu {
        display: none !important;
    }

    #hamburger {
        display: block;
        font-size: 28px;
        color: #333;
        cursor: pointer;
        padding: 10px;
        user-select: none;
        order: 2;
    }

    #logo {
        order: 1;
    }

    #mainMenu .submenu {
        display: none;
        flex-direction: column;
        padding-left: 1rem;
    }

    #mainMenu .submenu.active {
        display: flex;
    }

    #mobileMenu {
        position: absolute;
        top: 100%;
        right: 0;
        width: 220px;
        background-color: #fff;
        display: none;
        flex-direction: column;
        z-index: 2000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 8px 8px;
        ;
    }

    #mobileMenu.active {
        display: flex;
    }

    #mobileMenu .menu-item {
        padding: 12px 16px;
        font-size: 16px;
        border-bottom: 1px solid #ddd;
    }

    #mobileMenu .menu-item:last-child {
        border-bottom: none;
    }

    #mobileMenu a {
        color: #111;
        text-decoration: none;
    }

    .main-menu-right.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        right: 100%;
        top: 0;
        width: 220px;
        background-color: #fff;
        border: 1px solid #ddd;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        z-index: 2001;
    }

    .submenu {
        display: none;
    }

    .submenu.active {
        display: flex !important;
        flex-direction: column;
        padding: 10px 0 0 10px;
        background-color: white;
        border-top: 1px solid #5c5b5b;
        margin-top: 10px;
    }

    .submenu a {
        padding: 10px 0;
        font-size: 14px;
        color: #333;
        text-decoration: none;
        white-space: nowrap;
    }

    .submenu a {
        position: relative;
    }

    .submenu a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: 0;
        background-color: #39a1db;
        transition: width 0.3s ease;
    }

    .submenu a:hover::after {
        width: 100%;
    }

    .submenu a:hover {
        color: #39a1db;
    }

    #mainMenu .submenu {
        display: none;
        flex-direction: column;
        padding-left: 1rem;
    }

    #mainMenu .submenu.active {
        display: flex;
    }
}

@media (max-width: 767px) {
    #mobileMenu {
        width: 100%;
    }

    #mobileMenu .submenu {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    #mobileMenu .submenu.active {
        max-height: 800px;
        /* 충분한 높이 확보 */
        opacity: 1;
        border-top: 1px solid #5c5b5b;
        margin-top: 10px;
    }
}

/* 구글 번역 */
#custom-language {
    position: absolute;
    right: 40px;
    top: 30px;
    z-index: 1000;
}

#languageSelect {
    padding: 6px 14px;
    font-size: 15px;
    border-radius: 6px;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Pretendard-Regular', sans-serif;
    cursor: pointer;
}

.goog-te-banner-frame, .goog-logo-link, .goog-te-gadget,
#goog-gt-tt, #goog-gt-vt, .goog-tooltip, .goog-tooltip:hover,
.goog-text-highlight, .skiptranslate {
    display: none !important;
}

.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: none !important;
}

.hero-text-wrapper {
  background: rgba(255, 255, 255, 0.6); /* 밝은 반투명 */
  backdrop-filter: blur(6px);          /* 배경 흐리게 */
  padding: 1rem 2rem;
  border-radius: 12px;
  display: inline-block;
}