/* ===== 기본 스타일 ===== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    background-color: #fff;
}

/* ===== 네비게이션 바 ===== */

.navbar {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap:30px;
    margin: 0;
}


.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.top-menu a:hover {
    color: #3A4B70;
}


/* ===== 서브메뉴 기본 숨김 ===== */

.submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);  /* 약간 아래에서 올라오는 느낌 */
    position: absolute;
    background: #fff;
    min-width: 80px;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 999;
    list-style: none;
    padding: 10px 3px;
    display: flex;
    flex-direction: column;

}

.has-submenu:hover .submenu, .has-submenu.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);  /* 제자리로 */
}


.submenu li {
    padding: 5px 10px;
    white-space: nowrap;
}

.submenu a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.4s ease-out, top 0.4s ease-out;
    transition-delay: 0.1s;

}

.submenu a:hover {
    font-weight: bold;
}

.has-submenu {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ===== 메인 배너 (이미지 전용) ===== */
.main-banner {
    margin-top: 64px;
    /*background: url('/img/main_bg.jpg') center/cover no-repeat;*/

}

.main-banner img {
    /*max-width: 100%;*/
    height: auto;
    width: 100%;
    object-fit: cover;
}


/* ===== 푸터 ===== */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #f4f4f4;
    margin-top: 50px;
    font-size: 14px;
    color: #666;
}

/* ================ */

@media (max-width: 768px) {

    .main-banner img {
        height: clamp(300px, 30vw, 600px);
        object-fit: cover;
    }

    .large_nav {
        display: none;
    }

    .navbar {
        justify-content: space-between;
    }

    .submenu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        right: -20px;
    }

    ul.submenu {
        gap: 10px;
        padding: 10px;
    }

    #map {
        width: 380px;
        height: 500px;
    }
}

@media (min-width: 768px) {
    .small_nav {
        display: none;
    }

    .submenu {
        top: 20px;
    }

    ul.submenu {
        gap: 10px;
        padding: 20px;
    }

    #map {
        width: 800px;
        height: 500px;
    }

}

.small_nav {
    position: relative;
    right: 60px;
}

.small_nav button {
    border: none;
    background-color: white;
}
