body.scroll-lock {
    overflow: hidden;
}

.gnb-layer {
    position: fixed;
    z-index: 5000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #fbf7f2;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.6s ease;
}
.gnb-layer.open {
    pointer-events: auto;
    transform: translateX(0);
}
.gnb-inner {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}
.gnb-visual {
    position: relative;
    flex: 0 0 36.82%;
    max-width: 707px;
    min-width: 280px;
    height: 100%;
    overflow: hidden;
}
.gnb-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}
.gnb-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    max-width: 72%;
}
.gnb-logo img {
    width: 100%;
    height: auto;
}
.gnb-panel {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 40px 40px;
    overflow: hidden;
}
.gnb-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-shrink: 0;
    padding-right: 72px;
}
.gnb-addr {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    margin-left: auto;
    color: #958478;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.28px;
}
.gnb-close {
    display: none;
}
.gnb-body {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding-top: 40px;
}
.gnb-body .depth1 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 80px;
    row-gap: 64px;
    width: 100%;
    padding-left: 100px;
    padding-right: 20px;
    max-width: 950px;
    align-items: start;
    margin: 0;
    list-style: none;
}
.gnb-body > .depth1 > .nav-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
.gnb-body > .depth1 > .nav-item > .nav-link {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    color: #150600;
    text-align: left;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.72px;
    transition: color 0.3s;
}
.gnb-body .depth2 {
    margin: 0;
    padding: 0;
    width: 100%;
    list-style: none;
}
.gnb-body .depth2 > .nav-item {
    margin-top: 8px;
}
.gnb-body .depth2 > .nav-item:first-of-type {
    margin-top: 0;
}
.gnb-body .depth2 > .nav-item > .nav-link {
    display: inline-flex;
    align-items: center;
    color: #958478;
    text-align: left;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.36px;
    transition: color 0.3s;
    white-space: nowrap;
}
.gnb-body .depth2 > .nav-item > .nav-link:hover,
.gnb-body .depth2 > .nav-item > .nav-link:focus-visible {
    color: #150600;
}

@media (max-width: 1600px) {
    .gnb-panel { padding: 24px 32px 32px; }
    .gnb-body { padding-top: 24px; }
    .gnb-body .depth1 {
        column-gap: 40px;
        row-gap: 40px;
        padding-left: 80px;
    }
    .gnb-body > .depth1 > .nav-item > .nav-link { font-size: 22px; }
    .gnb-body .depth2 > .nav-item > .nav-link { font-size: 16px; }
}

@media (max-width: 1400px) {
    .gnb-body .depth1 {
        column-gap: 20px;
        row-gap: 20px;
        padding-left: 40px;
    }
    .gnb-body > .depth1 > .nav-item > .nav-link { font-size: 20px; }
    .gnb-body .depth2 > .nav-item > .nav-link { white-space: normal; }
}

@media (max-width: 1024px) {
    .gnb-inner { flex-direction: column; }
    .gnb-visual {
        flex: 0 0 168px;
        max-width: none;
        min-width: 0;
        width: 100%;
        height: 168px;
    }
    .gnb-logo { width: 148px; }
    .gnb-panel {
        padding: 16px 20px 28px;
        overflow: auto;
    }
    .gnb-top { padding-right: 56px; }
    .gnb-addr-txt {
        max-width: 62vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .gnb-body {
        align-items: flex-start;
        padding-top: 20px;
    }
    .gnb-body .depth1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 32px;
        padding-left: 0;
        padding-right: 0;
        max-width: none;
    }
    .gnb-body > .depth1 > .nav-item > .nav-link {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .gnb-body .depth2 > .nav-item > .nav-link {
        font-size: 14px;
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .gnb-visual { flex-basis: 132px; height: 132px; }
    .gnb-body .depth1 {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }
    .gnb-addr { font-size: 12px; }
}

.mobile-gnb,
.mobile-gnb-dim {
    display: none;
}
.mobile-gnb {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 5200;
    width: 100%;
    max-width: 600px;
    height: 100%;
    background: var(--beige);
    text-align: left;
    transition: right 0.5s ease;
}
.mobile-gnb.active { right: 0; }
.mobile-gnb-dim {
    position: fixed;
    inset: 0;
    z-index: 5150;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s linear, visibility 0.2s linear;
}
.mobile-gnb-dim.active {
    opacity: 1;
    visibility: visible;
}
.mobile-gnb-head {
    position: relative;
    height: 60px;
    background: var(--brown);
    border-bottom: 1px solid var(--brown_soft);
}
.mobile-gnb-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}
.mobile-gnb-logo { padding: 0 20px; }
.mobile-gnb-logo img {
    display: block;
    height: 30px;
    width: auto;
}
.mobile-gnb-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.mobile-gnb-close span {
    display: block;
    position: absolute;
    left: 18px;
    width: 24px;
    height: 2px;
    background: #fff;
}
.mobile-gnb-close span:first-child { transform: translateY(-1px) rotate(45deg); }
.mobile-gnb-close span:last-child { transform: translateY(-1px) rotate(-45deg); }
.mobile-gnb-body {
    position: relative;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    padding-bottom: 50px;
    overflow-y: auto;
}
.mobile-gnb .depth1,
.mobile-gnb .depth2 {
    margin: 0;
    padding: 0;
    list-style: none;
}
.mobile-gnb .nav-item > .nav-link {
    display: block;
    position: relative;
}
.mobile-gnb .depth1 > .nav-item > .nav-link {
    padding: 16px;
    color: var(--brown);
    font-size: 18px;
    font-weight: 600;
}
.mobile-gnb .depth1 > .nav-item > .nav-link.active {
    background: var(--brown);
    color: #fff;
}
.mobile-gnb .depth2 > .nav-item > .nav-link {
    padding: 11px 16px 11px 26px;
    background: var(--tan2);
    color: var(--brown);
    font-size: 15px;
}
.mobile-gnb .depth1 > .nav-item:first-child > .nav-link { padding-top: 16px; }
.mobile-gnb .depth1 > .nav-item:last-child > .nav-link { padding-bottom: 16px; }
.mobile-gnb .depth2 { display: none; }
.mobile-gnb .nav-item.has-sub > .nav-link:before {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}
.mobile-gnb .nav-item.has-sub > .nav-link.active:before {
    margin-top: -2px;
    transform: rotate(-135deg);
}
body.mobile-gnb-open .hamberger { visibility: hidden; }
body.mobile-gnb-open .main-header {
    z-index: 1000;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 960px) {
    .gnb-layer { display: none !important; }
    .mobile-gnb,
    .mobile-gnb-dim { display: block; }
}

@media (min-width: 961px) {
    .mobile-gnb,
    .mobile-gnb-dim { display: none !important; }
}
