@charset "utf-8";

/* ==========================================================================
   Header
   ========================================================================== */
header {
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    color: var(--black);
}

#header a {
    text-decoration: none;
}

#header .h01 {
    width: 100%;
    height: 100px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

#header .header_logo {
    display: inline-block;
    white-space: nowrap;
}

/* GNB : 메뉴 + 드롭다운이 한 컬럼 안에 함께 있는 구조 */
#header .gnb {
    flex: 1;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0px;
    margin: 0 40px;
    transition: margin 0.4s ease;
}

#header:hover .gnb {
    margin: 0 10px;
}

#header .gnb__col {
    position: relative;
    height: 100%;
}

/* 상단 메뉴 텍스트 : 컬럼 전체(폭/높이)를 채움 */
#header .gnb__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--black);
    box-sizing: border-box;
    transition: background-color 0.2s, color 0.2s;
    border-bottom: 1px solid #fff;
}

#header .gnb__bg {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 250px;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    display: none;
    z-index: 1;
}

#header:hover .gnb__bg {
    display: block;
}

/* 개별 .gnb__drop은 이제 배경/그림자 없이 텍스트만 담당 */
#header .gnb__drop {
    background-color: transparent;
    box-shadow: none;
    z-index: 2;
}

/* 드롭다운 : 기본 숨김, 헤더 hover 시에만 전체가 같이 나타남(흰 배경) */
#header .gnb__drop {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 250px;
    display: none;
    background-color: #fff;
    padding: 24px 10px 40px;
    box-sizing: border-box;
    text-align: center;
    /*box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);*/
}

#header:hover .gnb__drop {
    display: block;
}

#header .gnb__drop dl dt {
    color: #555555;
    line-height: 1.4;
    margin-bottom: 16px;
    cursor: pointer;
}

#header .gnb__drop dl dt:last-child {
    margin-bottom: 0;
}

#header .gnb__drop dl dt a {
    color: #555555;
}

/* 개별 컬럼에 마우스 올릴 때 : 상단 메뉴 + 드롭다운이 이어진 하나의 navy 박스로 */
#header .gnb__col:hover>.gnb__link {
    background-color: var(--navy);
    color: #fff;
    font-weight: 600;
}

#header .gnb__col:hover>.gnb__drop {
    background-color: var(--navy);
    box-shadow: none;
}

#header .gnb__col:hover>.gnb__drop dl dt,
#header .gnb__col:hover>.gnb__drop dl dt a {
    color: #fff;
    font-weight: 600;
}

#header .gnb__col:hover>.gnb__drop dl dt a {
    position: relative;
}

#header .gnb__col:hover>.gnb__drop dl dt a::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--gold);
    top: 6px;
    left: -10px;
    border-radius: 50%;
}

/* 햄버거(사이트맵 오픈) 버튼 */
#header .m_menu_icon {
    width: 25px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    flex: 0 0 auto;
}

#header .m_menu_icon span {
    width: 25px;
    height: 2px;
    background-color: var(--black);
    display: block;
    position: absolute;
    transition: 0.3s;
}

#header .m_menu_icon span:first-child {
    top: 0;
    left: 0;
}

#header .m_menu_icon span:nth-child(2) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

#header .m_menu_icon span:last-child {
    bottom: 0;
    left: 0;
}

#header .m_menu_icon.on span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

#header .m_menu_icon.on span:nth-child(2) {
    opacity: 0;
}

#header .m_menu_icon.on span:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ==========================================================================
   Site Map 오버레이 (기존 승인된 스타일 그대로 유지)
   ========================================================================== */
#header .sitemap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--navy);
    z-index: 200;
    display: none;
    overflow-y: auto;
}

#header .sitemap.on {
    display: block;
}

#header .sitemap__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#header .sitemap__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    color: #fff;
}

#header .sitemap__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

#header .sitemap__body {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    padding: 60px 0 80px;
}

#header .sitemap__col-title {
    margin-bottom: 30px;
    line-height: 1.4;
}

#header .sitemap__item {
    color: #fff;
    line-height: 1.4;
    margin-bottom: 30px;
}

#header .sitemap__sub {
    color: #fff;
    line-height: 1.4;
    margin-bottom: 16px;
}

#header .sitemap__list {
    margin-bottom: 30px;
}

#header .sitemap__body p {
    cursor: pointer;
}

#header .sitemap__body .sitemap__col-title {
    cursor: default;
}


#header .sitemap__list li {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
    line-height: 1.4;
    cursor: pointer;
}

#header .sitemap__list li:hover {
    width: 100%;
    color: rgba(255, 255, 255, 1);
}

#header .sitemap__list li::before {
    content: '· ';
}

#header .sitemap__list li:last-child {
    margin-bottom: 0;
}


/* fixed */
.fixed {
    position: fixed;
    z-index: 999;
    right: 0;
    bottom: 30%;

    display: flex;
    flex-direction: column;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.fixed .menu {
    border: 1px solid;
    padding: 30px;
    background-color: #FFFFFF;
    color: #555555;

}

.fixed>div {
    box-sizing: border-box;
    background-color: #fff;
    color: #555555;
    padding: 15px 12.5px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.fixed>div:hover {
    color: var(--navy);
}

.fixed>div:hover img {
    filter: invert(46%) sepia(68%) saturate(464%) hue-rotate(131deg) brightness(92%) contrast(101%);
}

#fixed .resevation {
    padding-top: 25px;
    border-top-left-radius: 20px;

}

#fixed .top {
    display: flex;
    flex-direction: row;
    border-bottom-left-radius: 20px;
    background-color: var(--navy);
    color: white;
    border: none;
}


/* ==========================================================================
   Tablet (768px ~ 1024px)
   - GNB는 유지하되 gap/padding만 줄이고, 사이트맵은 3열로 축소
   ========================================================================== */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    #header .h01 {
        height: 80px;
        padding: 0 30px;
        box-sizing: border-box;
    }

    #header .header_logo {
        font-size: 18px;
    }

    #header .gnb {
        margin: 0 20px;
    }

    #header:hover .gnb {
        margin: 0 8px;
    }

    #header .gnb__link {
        font-size: 14px;
    }

    #header .gnb__drop {
        height: 200px;
        padding: 20px 8px 30px;
    }

    #header .gnb__bg {
        height: 200px;
    }

    #header .gnb__drop dl dt {
        font-size: 13px;
    }

    /* 사이트맵 : 6열 → 3열 */
    #header .sitemap__head {
        padding: 40px 30px 20px;
    }

    #header .sitemap__title {
        font-size: 32px;
    }

    #header .sitemap__body {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        padding: 40px 30px 60px;
        row-gap: 50px;
    }

    /* 우측 하단 fixed 퀵메뉴 */
    .fixed>div {
        padding: 12px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Mobile (max-width: 767px)
   - GNB 전체 숨김, 햄버거만 노출. 사이트맵은 1열
   ========================================================================== */
@media screen and (max-width: 767px) {

    #header .h01 {
        height: 60px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    #header .header_logo {
        font-size: 16px;
    }

    /* PC/태블릿용 그리드 GNB는 모바일에서 완전히 숨김 */
    #header .gnb {
        display: none;
    }

    #header .gnb__bg,
    #header .gnb__drop {
        display: none !important;
    }

    /* 햄버거 버튼 축소 */
    #header .m_menu_icon {
        width: 22px;
        height: 18px;
    }

    #header .m_menu_icon span {
        width: 22px;
    }

    /* 사이트맵 : 헤드 영역 */
    #header .sitemap__head {
        padding: 30px 20px 20px;
    }

    #header .sitemap__title {
        font-size: 26px;
    }

    #header .sitemap__close {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    /* 사이트맵 : 6열 그리드 → 1열로 재배치 */
    #header .sitemap__body {
        display: block;
        padding: 20px 20px 60px;
    }

    #header .sitemap__col {
        margin-bottom: 40px;
    }

    #header .sitemap__col:last-child {
        margin-bottom: 0;
    }

    #header .sitemap__col-title {
        margin-bottom: 16px;
    }

    #header .sitemap__item {
        margin-bottom: 16px;
    }

    #header .sitemap__sub {
        margin-bottom: 10px;
    }

    #header .sitemap__list {
        margin-bottom: 16px;
    }

    /* 우측 하단 fixed 퀵메뉴 : 위치/크기 축소 */
    .fixed {
        bottom: 16px;
        right: 12px;
        border-radius: 10px;
    }

    .fixed>div {
        padding: 10px;
        font-size: 12px;
    }

    #fixed .resevation {
        padding-top: 14px;
        border-top-left-radius: 10px;
    }

    #fixed .top {
        border-bottom-left-radius: 10px;
    }
}