/*헤더*/
.head_box {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 20;
}

.head_box::after {
    display: block;
    content: '';
    clear: both;
}

.header_section {
    width: 100%;
    height: 55px;
    line-height: 55px;
}
/* Navbar */
.navbar {
    background-color: rgba(255,255,255,0.7);
    width: 100%;
    min-height: 100px; /* 고정 높이 */
    transition: height 0.4s ease;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow: visible; /* 서브메뉴가 보이도록 설정 */
    /*display: none;*/
}

/*.navbar.expanded {*/
    /*height: 250px; !* 모바일 토글 시 확장 높이 *!*/
/*}*/

.navbar-content {
    width: 1200px; /* 너비를 1200px로 설정 */
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    height: 100%;
}

/* 서브리스트의 <a> 태그 스타일 */
.subList ul li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 10px 20px; /* 필요 시 패딩 조정 */
}

.subList ul li a:hover,
.subList ul li a.active {
    background-color: #f5deb3;
    color: #000;
}
/*.navbar.expanded{*/
    /*height: auto;*/
    /*min-height: 140px; !* 필요한 만큼 여유를 두세요 *!*/
    /*overflow: visible; !* 혹시나 숨겨지는 경우가 있다면 명시 *!*/
/*}*/

/* 서브메뉴가 보일 때 navbar의 레이아웃에 영향을 주도록 설정 */
.navbar .submenu {
    position: static; /* 절대 위치를 해제하고 문서 흐름에 포함 */
    transform: translateY(0);
}

.navbar-content {
    width: 1400px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    /*height: 100%;*/
}

/* 로고 */
.logo {
    float: left;
    height: 100%;
    padding-top: 22px; /* 수직 정렬을 위한 패딩 */
    /*position: relative;*/
}

.logo a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    display: block;
    padding: 0 15px; /* 좌우 패딩 추가 */
}

.logo_img {
    width: 300px;
    /*position: absolute;*/
    /*top:50%;*/
    /*transform: translateY(-50%);*/
}

/* 헤드 SNS */
.head_sns{
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30%;
}


.head_sns_list  {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
}

.head_sns_list li{
    width: 50px;
}

.head_sns_list img {
    width: 100%;
}

/* 메뉴 */
.menu {
    float: right; /* Flexbox 대신 float 사용 */
    /*height: 100%;*/
    position: relative;
    margin-top: 25px; /* 로고와 동일한 수직 패딩 */
    /* display: flex; */ /* Flexbox 제거 */
    /* gap: 20px; */ /* Flexbox gap 제거 */
}

.menu-item {
    float: left; /* 메뉴 아이템을 좌측으로 플로팅 */
    position: relative;
    text-align: center;
    height: 100%;
    /*margin-left: -15px; !* 메뉴 아이템 간격을 20px로 설정 *!*/
    /*z-index: 999;*/
}

.menu-item:first-child {
    margin-left: 0; /* 첫 번째 메뉴 아이템의 왼쪽 마진 제거 */
}

.menu-item > a {
    display: block;
    color: #2c2c2c;
    text-decoration: none;
    padding: 10px 15px; /* 수직 정렬을 위한 패딩 조정 */
    transition: color 0.3s, border-color 0.3s; /* color 및 border-color 전환 */;
    width: 150px;
    font-size: 18px; /* 메인 메뉴 폰트 사이즈 18px */
    line-height: 20px; /* 기본 line-height */
    /*position: relative;*/
    /* 좌우 흔들림 방지 위해 기본 border 확보 (투명) */
    /*border: 2px solid transparent;*/
    /*box-sizing: border-box; !* 보더·패딩을 폭에 포함 *!*/

}

.menu-item > a:hover {
    color: #f5c518;
}

/* 선택된 메인 메뉴 항목에 밑줄 추가 */
.menu-item.active > a {
    /*border-bottom-color: #f5c518;*/
    border-bottom: 2px solid #f5c518;
}

/* 서브메뉴 */
.submenu {
    /*visibility: hidden;*/
    display: none;

    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    /*border-radius: 4px;*/
    position: absolute;
    top: 50px; /* 메인 메뉴 높이 + 패딩 */
    left: 0;
    width: 150px;
    border-radius: 4px;
}

/*.menu-item:hover .submenu {*/
/*    visibility: visible;*/
/*    opacity: 1;*/
/*    transform: translateY(0);*/
/*}*/
/* 수정 후 코드 */
.menu:hover .submenu {
    /*visibility: visible;*/
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.submenu a {
    display: block;
    padding: 8px 0;
    color: black;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    font-size: 14px; /* 서브메뉴 폰트 사이즈 14px */
    line-height: 1.4;
}

.submenu  a:hover {
    color: #f5c518;
}

.submenu a.active {
    color: #f5c518;
    background-color: #555;
}

/* 선택된 서브메뉴 항목의 배경색 변경 예시 */
.subList ul li.active {
    border-color: #2c2c2c;
    background-color: #2c2c2c;
    color: #f5deb3;
}

/* 모바일 토글 버튼 */
.menu-toggle {
    display: none;
    background-image: url("../../../user/images/common/toggle.png");
    background-size: cover;
    background-position: center center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}
/* 선택된 서브메뉴 항목의 배경색 변경 */
.subList ul li.active {
    border-color: #2c2c2c;
    background-color: #2c2c2c;
    color: #f5deb3;
}

/* 하단 subList */
.subList {
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.subList ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subList ul li {
    display: inline-block;
    min-width: 150px;
    margin: 0;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #ccc;
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
    font-weight: bold;
    color: #555;
    background-color: white;
    text-align: center;
    font-size: 14px;
}

.subList ul li:hover {
    border-color: #f5deb3;
    background-color: #f5deb3;
    color: #000;
}

.subList ul li.active {
    border-color: #2c2c2c;
    background-color: #2c2c2c;
    color: #f5deb3;
}

.clickable {
    /*padding: 10px;*/
    width: 180px;
}

@media screen and (max-width: 1450px) {
    .head_sns{
        display: block;
    }


    .menu-toggle {
        position: absolute;
        top: 50%; /* 부모 요소의 중앙 */
        right: 20px; /* 오른쪽 간격 */
        transform: translateY(-50%); /* 수직 중앙 정렬 */
        width: 30px;
        height: 30px;
        cursor: pointer;
        background-image: url("../../../user/images/common/toggle.png");
        margin-right: 10%;
        display: block;
        z-index: 2000; /* 다른 요소 위로 올리기 */
    }

    .navbar-content {
        width: 100%;
        position: relative; /* 부모 요소 기준 */
        height: 100px; /* 명확한 높이 설정 */
    }

    .logo {
        position: absolute;
        width: 220px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .logo img{
        position: absolute;
        width: 100%;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .navbar-content, .subList {
        width: 85%;
    }

    /* menu-toggle 클릭 시 메뉴는 하단으로 내려오지 않고 같은 자리에서 열림 */
    .menu {
        width: 100%;
        float: none;
        position: absolute;
        top: 100px;
        right: 0;
        margin-top:0;
        height: auto;
        background-color: rgba(0, 0, 0, 6);
        padding-top: 0; /* 토글 버튼 아래로 */
        display: none; /* 초기 숨김 */
    }

    .menu.active {
        display: block; /* 토글 시 보임 */
        width: 100%;
    }

    /* menu-item이 겹치지 않도록 block 정렬 */
    .menu-item {
        float: none;
        display: block;
        width: 100%;
        margin-left: 0;
    }


    .menu-item > a {
        display: block;
        width: 100%;
        line-height: normal;
        padding: 10px 20px;

        color: wheat;
        box-sizing: border-box;
    }

    /* 하단 subList 마진 조정 */
    #subList {
        display: none;
        margin: 250px auto 20px;
    }

    .navbar.expanded {
        height: 100px;
    }

    .menu-item.active .submenu {
        display: block; /* 토글 시 보임 */
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    /* 서브메뉴도 수직으로 펼쳐지도록 */
    .submenu {
        position: static;
        display: none; /* 클릭 시 활성화 */
        margin-left: 0;
        /*box-shadow: none;*/
        border-radius: 0;
        width: 100%;
        opacity: 1;
        transform: none;
        top: auto;
        left: auto;
        background-color: #444;
    }

    .submenu.active {
        border-color: #2c2c2c;
        background-color: #2c2c2c;
        color: #f5deb3;
        display: block; /* 클릭 시 보임 */
    }

    .submenu a {
        display: block;
        padding: 10px 20px;
        font-size: 14px;
    }

}

/* 모바일 스타일 (최대 너비 480px) */
@media screen and (max-width: 600px) {
    .menu-item > a {
        font-size: 14px;
        padding: 10px 15px;
    }

    .submenu a {
        font-size: 12px;
        padding: 10px 15px;
    }

    .menu {
        width: 180px; /* 좀 더 좁은 폭 */
    }
    .menu-toggle {
        position: absolute;
        top: 50%; /* 부모 요소의 중앙 */
        right: -5%; /* 오른쪽 간격 */
        transform: translateY(-50%); /* 수직 중앙 정렬 */
        width: 30px;
        height: 30px;
        cursor: pointer;
        background-image: url("../../../user/images/common/toggle.png");
        z-index: 2000; /* 다른 요소 위로 올리기 */
    }

    .logo_img {
        position: absolute;
        top:50%;
        transform: translateY(-50%);
        float: none;
        display: block;
        width: 200px;
        margin-left: 0;
        left: 5%;
    }

    .navbar-content {
        position: relative; /* 부모 요소 기준 */
        height: 100px; /* 명확한 높이 설정 */
    }

}

@media screen and (max-width: 500px) {
    .logo img {
        width: 80%;
    }

    .head_sns_list {
        width: 70%;
    }

    .menu-toggle {
        width: 20px;
        height: 20px;
    }

}

@media screen and (max-width: 320px) {

}




/* 팝업 :: S */
/* 팝업 모달 전체 배경 */
#popupModal {
    display: none; /* 기본적으로 숨김 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
}
/* 팝업 내용 스타일 */
#popupContent {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #888;
    text-align: center;
    border-radius: 5px;
    width: auto;
    max-width: 90%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#popupView {
    display: flex;            /* Flex 컨테이너 */
    justify-content: center;  /* 수평 중앙 정렬 */
    align-items: center;      /* 수직 중앙 정렬 */
    gap: 20px;                /* 이미지 간격 */
    flex-wrap: nowrap;        /* 줄바꿈 금지 */
    overflow-x: auto;         /* 가로 스크롤 허용 */
    padding: 10px;
}

#popupView img {
    max-width: 100%;  /* 이미지가 컨테이너를 넘지 않도록 */
    height: auto;     /* 이미지 비율 유지 */
    flex-shrink: 0;   /* Flex 아이템이 줄어들지 않도록 설정 */
}

/*@media (max-width: 1550px) {*/
/*    #popupModal {*/
/*       display: none;*/
/*    }*/
/*    #popupView {*/
/*        flex-direction: column; !* 세로 정렬로 변경 *!*/
/*        align-items: center;*/
/*    }*/
/*    #popupContent {*/
/*        width: 95%;           !* 좁은 화면에서 너비 확대 *!*/
/*        max-width: none;      !* 최대 너비 제한 해제 *!*/
/*    }*/
/*    #popupView img {*/
/*        max-width: 100%;      !* 이미지 크기를 100%로 설정 *!*/
/*        margin-bottom: 10px;  !* 아래 여백 추가 *!*/
/*    }*/
/*}*/


/* 버튼 스타일 */
.btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    color: #fff;
}
/* 개별 버튼 스타일 */
#confirmBtn {
    background-color: #28a745; /* 초록색 */
}
#noShowTodayBtn {
    background-color: #007bff; /* 파란색 */
}
/* 버튼 그룹 (Flexbox를 이용하여 간격 일정하게 배치) */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}
/* 팝업 :: E */
