.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 80px;
    z-index: 1000;
    background: #fbf7f2;
    box-sizing: border-box;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.main-header.scrolled,
.main-header.on,
.main-header.white {
    background-color: #fbf7f2;
}
/* 서브페이지는 헤더와 펼쳐지는 메뉴 배경을 흰색으로 (메인은 베이지 그대로) */
.sub_page .main-header,
.sub_page .main-header.scrolled,
.sub_page .main-header.on,
.sub_page .main-header.white,
.sub_page .main-header .gnb_bg {
    background-color: #fff;
}
.main-header.scrolled:not(.on) {
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.08);
}
.header_wrap {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 6rem;
    height: 100%;
    margin: 0 auto;
    z-index: 3;
    pointer-events: none;
}
.header_wrap .header_logo,
.header_wrap .hamberger {
    pointer-events: auto;
}
.header_logo {
    display: block;
    width: 220px;
    height: 40px;
}
.header_logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.header_nav {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.header_nav .depth1 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 12rem 0 28rem;
    pointer-events: none;
}
.header_nav .depth1 > li {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
    padding: 0;
    pointer-events: auto;
    transition: padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.main-header.on .header_nav .depth1 > li {
    padding: 0 1.8rem;
}
.main-header.on .header_nav .depth1 > li.has-long {
    min-width: 24rem;
}
.header_nav .depth1 > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 1.4rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #442d1d;
    white-space: nowrap;
    transition: color 0.3s ease, padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.main-header.on .header_nav .depth1 > li > a {
    padding: 0 1.4rem;
}
.main-header.scrolled .header_nav .depth1 > li > a,
.main-header.on .header_nav .depth1 > li > a,
.main-header.white .header_nav .depth1 > li > a {
    color: var(--brown);
}
.header_nav .depth1 > li > a:hover {
    color: #8a6a4b;
}
.header_nav .depth2 {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 2.4rem 1.2rem;
    text-align: center;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.main-header.on .header_nav .depth2 {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.25s ease 0.12s;
}
.header_nav .depth1 > li + li::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 2.4rem;
    width: 1px;
    height: 23.2rem;
    background: rgba(68, 45, 29, 0.16);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.main-header.on .header_nav .depth1 > li + li::after {
    opacity: 1;
}
.header_nav .depth2 > li > a {
    display: block;
    padding: 0.55rem 0;
    font-size: 1.4rem;
    color: #666;
    white-space: nowrap;
}
.header_nav .depth2 > li > a:hover { color: var(--brown); }
.main-header .gnb_bg {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 0;
    background: #fbf7f2;
    transition: height 0.4s ease;
    z-index: 1;
    pointer-events: none;
    box-shadow: rgba(149, 157, 165, 0.1) 0 8px 18px;
}
.main-header.on .gnb_bg {
    height: 28rem;
    pointer-events: auto;
}
/* 메뉴가 펼쳐질 때 헤더와 드롭다운 사이 구분선 (닫혀 있을 때는 선이 보이지 않도록 .on 일 때만) */
.main-header.on .gnb_bg {
    border-top: 1px solid #e8e8e8;
}

.header_left {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
}
.hamberger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 0;
    position: relative;
    z-index: 4;
    -webkit-appearance: none;
    appearance: none;
}
.hamberger_box {
    width: 22px;
    height: 16px;
    margin: 12px auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hamberger .line {
    display: block;
    width: 100%;
    height: 2px;
    background: #442d1d;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.scrolled .hamberger .line,
.white .hamberger .line,
.on .hamberger .line,
.nav_open .hamberger .line { background: var(--brown); }
.hamberger.open .line1 { transform: translateY(7px) rotate(45deg); }
.hamberger.open .line2 { opacity: 0; }
.hamberger.open .line3 { transform: translateY(-7px) rotate(-45deg); }
body.scroll-lock .main-header,
body.scroll-lock .main-header.scrolled,
body.scroll-lock .main-header.scrolled:not(.on) {
    z-index: 5100;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}
body.scroll-lock .hamberger {
    pointer-events: auto;
}
body.scroll-lock .header_logo,
body.scroll-lock .header_nav,
body.scroll-lock .gnb_bg {
    visibility: hidden;
    pointer-events: none;
}
body.scroll-lock .hamberger .line { background: #958478; }

.site_footer {
    background: #fff;
    border-top: 1px solid #e8e8e8;
}
.site_footer_inner {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 3.25rem 4rem 2.75rem;
}
.site_footer_top,
.site_footer_bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.site_footer_info { color: #555; font-size: 1.4rem; line-height: 1.75; }
.site_footer_logo { width: 220px; height: 40px; }
.site_footer_logo img { width: 100%; height: 100%; object-fit: contain; object-position: right center; }
.site_footer_bottom {
    margin-top: 2rem;
    padding-top: 1.35rem;
    border-top: 1px solid #ececec;
}
.site_footer_links { display: flex; gap: 0 1.5rem; }
.site_footer_links a,
.site_footer_copy { color: #666; font-size: 1.3rem; }

.policy_modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}
.policy_modal[hidden] { display: none; }
.policy_modal_dim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.policy_modal_box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    max-height: min(80vh, 780px);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.policy_modal_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 2rem;
    background: var(--brown);
    color: #fff;
}
.policy_modal_title { font-size: 1.8rem; font-weight: 700; }
.policy_modal_close { position: relative; width: 32px; height: 32px; }
.policy_modal_close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1.5px;
    background: #fff;
}
.policy_modal_close span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.policy_modal_close span:last-child { transform: translate(-50%,-50%) rotate(-45deg); }
.policy_modal_body {
    background: #fff;
    overflow-y: auto;
    padding: 2rem;
    color: #333;
    font-size: 1.4rem;
    line-height: 1.75;
}
.policy_modal_body h3 { margin: 1.6rem 0 .7rem; font-weight: 700; }

.icon-social {
    width: 18px;
    height: 18px;
    background: #fff;
    mask-size: contain;
    -webkit-mask-size: contain;
}
.ico-call { -webkit-mask-image: url('../images/ico_phone.svg'); mask-image: url('../images/ico_phone.svg'); }
