@charset "utf-8";
/* 프레쉬랩 공통 헤더 — head.php 에서 모든 페이지에 불러온다. 색·폰트는 sm-brand.css 토큰만 사용. */

/* ---------------------------------------------------------------------
   공통 헤더 (#hd.sm-hd) — 메인·서브페이지 공용
   - 크림 화면 위에 떠 있는 딥그린 알약형 바. 1차 메뉴는 영문(Oswald) + 한글 두 줄(구분선 없음).
   - 1024px 이하는 화면 폭 전체의 딥그린 바 + 햄버거.
   - 메인은 고정(fixed, head.php 인라인), 서브페이지는 스크롤과 함께 올라간다(서브 분류 메뉴 바가 상단에 고정되므로).
--------------------------------------------------------------------- */
:root { --sm-hd-total: calc(var(--sm-header-h) + 16px); } /* 알약 헤더 높이 + 위 여백 — 히어로·전체메뉴 시작 위치 */
@media (max-width: 1024px) { :root { --sm-hd-total: var(--sm-header-h); } }

#hd.sm-hd, #hd.sm-hd:not(.black) { background: transparent !important; --sm-focus: var(--sm-white); }
/* head.css 의 width:100vw 는 세로 스크롤바 폭까지 포함해 헤더 오른쪽이 스크롤바 밑으로 들어간다 → 스크롤바를 뺀 폭(100%)으로 맞춰 좌우 여백이 정확히 같게 */
#hd.sm-hd { width: 100%; }
#hd.sm-hd::before { display: none; }
#hd.sm-hd #hd_wrapper {
    width: auto; max-width: none; margin: 16px 40px 0; padding: 0 28px 0 40px; box-sizing: border-box; /* 화면 양옆 40px 띄움 */
    background: var(--sm-dark); border-radius: 999px;
}
#hd.sm-hd .gnb-container { display: flex; align-items: center; height: var(--sm-header-h); }
/* 메인에서 스크롤하면(.is-scrolled) 그림자와 살짝 밝은 딥그린으로 바꿔, 같은 딥그린 섹션(문의 등) 위에서도 헤더 경계가 보이게 한다 */
#hd.sm-hd #hd_wrapper { transition: background .3s ease, box-shadow .3s ease; }
#hd.sm-hd.is-scrolled #hd_wrapper { background: color-mix(in srgb, var(--sm-dark) 86%, var(--sm-cream)); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
@media (prefers-reduced-motion: reduce) { #hd.sm-hd #hd_wrapper { transition: none; } }

#hd.sm-hd #logo { position: relative; top: auto; transform: none; flex: none; width: auto; height: 40px; padding-right: 32px; }
#hd.sm-hd #logo, #hd.sm-hd #logo > a { display: flex; align-items: center; }
#hd.sm-hd #logo > a { width: auto; height: 100%; }
#hd.sm-hd #logo > a > img { position: static; transform: none; height: 40px; }
#hd.sm-hd #logo .light-mode-logo { display: none; }
#hd.sm-hd #logo .dark-mode-logo { opacity: 1 !important; }
/* 흰 로고 파일(tail_logo_img)이 없으면 기본 로고를 그대로 보여 준다 */
#hd.sm-hd #logo .light-mode-logo:only-child { display: block; opacity: 1 !important; }

/* 1차 메뉴: 영문 + 한글 두 줄 */
#hd.sm-hd #gnb { flex: 1; justify-content: flex-start; height: 100%; }
#hd.sm-hd #gnb .gnb_wrap { width: 100%; }
#hd.sm-hd #gnb .gnb_wrap > ul { place-content: stretch; }
#hd.sm-hd #gnb .gnb_1dli { flex: 1 1 0; padding: 0; height: 100%; justify-content: flex-start; text-align: left; }
#hd.sm-hd #gnb .gnb_1dli::before { display: none; }
#hd.sm-hd #gnb .gnb_1da {
    display: flex; flex-direction: column; justify-content: center; gap: 2px; width: 100%; height: 100%; padding: 0 24px !important;
    color: var(--sm-cream) !important; font-weight: 700;
}
#hd.sm-hd .gnb_1da_en { font-family: var(--sm-font-display); font-size: 21px; font-weight: 600; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
#hd.sm-hd .gnb_1da_ko { font-size: 13px; font-weight: 600; line-height: 1.3; color: color-mix(in srgb, var(--sm-cream) 82%, transparent); }
/* 현재 페이지 메뉴(.is-current, head.php)는 호버 때와 같은 글자 모양·포인트 색으로 항상 표시 */
#hd.sm-hd #gnb .gnb_1dli.is-current > .gnb_1da,
#hd.sm-hd #gnb .gnb_1dli.on > .gnb_1da,
#hd.sm-hd #gnb .gnb_1dli:hover > .gnb_1da { color: var(--sm-mango-on-dark) !important; }
#hd.sm-hd #gnb .gnb_1dli.is-current .gnb_1da_ko,
#hd.sm-hd #gnb .gnb_1dli.on .gnb_1da_ko,
#hd.sm-hd #gnb .gnb_1dli:hover .gnb_1da_ko { color: var(--sm-mango-on-dark); }
#hd.sm-hd #gnb .gnb_1da:focus-visible { outline-offset: -10px; }

/* 2차 메뉴: 알약 헤더 바로 아래에 간격 없이 붙어, 헤더와 같은 딥그린으로 위에서 아래로 펼쳐진다 */
#hd.sm-hd .gnb_2dul {
    top: 100%; left: 12px; width: max-content; min-width: 176px; padding: 0;
    background: var(--sm-dark); border-radius: 0 0 var(--sm-radius) var(--sm-radius);
    clip-path: inset(0 0 100% 0); transition: clip-path .35s cubic-bezier(.22, .8, .24, 1), opacity .2s ease, visibility .35s;
}
#hd.sm-hd.is-scrolled .gnb_2dul { background: color-mix(in srgb, var(--sm-dark) 86%, var(--sm-cream)); } /* 스크롤 시 헤더 톤과 같게 */
#hd.sm-hd .gnb_2dul::before { display: none; }
#hd.sm-hd .gnb_2dul.show { padding: 0; clip-path: inset(0); }
#hd.sm-hd .gnb_2dul .gnb_2dul_box { padding: 8px 0 14px; }
#hd.sm-hd .gnb_2da {
    padding: 0 22px; line-height: 44px; font-size: 16px; font-weight: 600; text-align: left;
    color: var(--sm-cream) !important; transform: none; transition: color .2s ease;
}
#hd.sm-hd .gnb_2da:hover,
#hd.sm-hd .gnb_2da:focus-visible { color: var(--sm-mango-on-dark) !important; text-decoration: none; } /* 호버·포커스도 밑줄 없이 포인트색만 */
/* 현재 페이지 하위메뉴: 밑줄 없이 포인트색만 */
#hd.sm-hd .gnb_2dli.is-current > .gnb_2da { color: var(--sm-mango-on-dark) !important; }
@media (prefers-reduced-motion: reduce) { #hd.sm-hd .gnb_2dul { transition: none; } }
#hd.sm-hd .gnb_2da:focus-visible { outline-offset: -4px; }

/* 전화 링크: 메뉴와 겹치지 않도록 흐름 배치 */
#hd.sm-hd .hd-tel-cta {
    position: static; transform: none; flex: none; margin-left: 8px; padding: 0 20px; min-height: 44px;
    border: 0; border-radius: 999px;
    font-family: var(--sm-font-en); font-size: 15px; font-weight: 600;
}
#hd.sm-hd a.hd-tel-cta:link, #hd.sm-hd a.hd-tel-cta:visited { color: var(--sm-cream); }
#hd.sm-hd .hd-tel-cta:hover, #hd.sm-hd a.hd-tel-cta:hover { background: var(--sm-cream); color: var(--sm-dark); }

/* 햄버거 버튼: 데스크톱에서는 숨기고(1차 메뉴가 모두 노출됨) 1280px 이하에서 44×44 로 노출 */
#hd.sm-hd #menu-btn { display: none; }
@media (max-width: 1280px) {
    #hd.sm-hd #hd_wrapper { margin: 16px 24px 0; padding: 0 20px 0 28px; }
    #hd.sm-hd #logo { padding-right: 0; }
    /* 전체 메뉴 버튼: 배경 없는 크림색 기본 햄버거, 열리면 닫기(X) 아이콘으로 바로 바뀐다(모양이 변하는 움직임 없음) */
    #hd.sm-hd #menu-btn {
        display: flex; align-items: center; justify-content: center; position: relative; top: auto; right: auto; transform: none;
        width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--sm-cream);
    }
    #hd.sm-hd #menu-btn .sm-menu-ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
    #hd.sm-hd #menu-btn .is-close-ico, #hd.sm-hd #menu-btn.active .is-open-ico { display: none; }
    #hd.sm-hd #menu-btn.active .is-close-ico { display: block; }
    #hd.sm-hd #menu-btn.active { right: auto; }
    #hd.sm-hd #menu-btn:focus { outline: none; }
    #hd.sm-hd #menu-btn:focus-visible { outline: none; background: color-mix(in srgb, var(--sm-cream) 14%, transparent); } /* 키보드 포커스: 링 대신 옅은 바탕 */

    /* 메뉴가 열려도 헤더 바는 그대로, 그린 메뉴 패널은 헤더 바로 아래에서 시작 */
    #hd.sm-hd.on, #hd.sm-hd.on:not(.black) { background: transparent !important; }
    #hd.sm-hd #logo.on { display: block; }
    #hd.sm-hd #mob-gnb { top: var(--sm-hd-total); height: calc(100vh - var(--sm-hd-total)); height: calc(100dvh - var(--sm-hd-total)); }
    #hd.sm-hd #mob-gnb .menu-list { max-height: 100%; }
    #hd.sm-hd #mob-gnb .menu-list > ul > li > .dep01 { min-height: 48px; }
    #hd.sm-hd .hd_login { display: none !important; } /* 회원 링크(login)는 로고와 겹쳐 숨긴다 — 푸터에 있음 */
    body.on .ft-quick-container { display: none; } /* 메뉴가 열린 동안 오른쪽 빠른 메뉴가 목록을 가리지 않게 */

    /* ---- 전체 메뉴 패널: 크림 배경, 1차 = 영문·한글 두 줄 + 동그라미 아이콘, 2차 = 흰 둥근 카드 ---- */
    #hd.sm-hd #mob-gnb { background: var(--sm-cream); }
    #hd.sm-hd #mob-gnb > .gw-flex { height: 100%; }
    #hd.sm-hd #mob-gnb .menu-bg { display: none; }
    #hd.sm-hd #mob-gnb .menu-list {
        display: flex; flex-direction: column; width: 100%; max-width: 720px; height: 100%; margin: 0 auto;
        padding: 12px var(--sm-gutter, 20px) 32px; box-sizing: border-box; overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    #hd.sm-hd #mob-gnb .menu-list > ul > li { flex-direction: column; padding: 0; border-bottom: 1px solid var(--sm-line); }
    #hd.sm-hd #mob-gnb .menu-list > ul > li::before { display: none; }
    #hd.sm-hd #mob-gnb .menu-list > ul > li > .dep01 {
        display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; height: auto; min-height: 84px; padding: 0;
        line-height: 1.2; font-family: var(--sm-font); color: var(--sm-dark) !important; text-decoration: none;
    }
    #hd.sm-hd #mob-gnb .mob-1d-text { display: flex; flex-direction: column; gap: 4px; }
    #hd.sm-hd #mob-gnb .mob-1d-en { font-family: var(--sm-font-display); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sm-mango); }
    #hd.sm-hd #mob-gnb .mob-1d-ko { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
    #hd.sm-hd #mob-gnb .mob-1d-ico {
        display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
        background: var(--sm-white); font-size: 16px; color: var(--sm-dark);
    }
    /* 펼치면 + → - 로만 바뀐다(색·회전 없음) */
    #hd.sm-hd #mob-gnb .mob-1d-ico .xi-minus, #hd.sm-hd #mob-gnb .menu-list > ul > li.open .mob-1d-ico .xi-plus { display: none; }
    #hd.sm-hd #mob-gnb .menu-list > ul > li.open .mob-1d-ico .xi-minus { display: block; }
    #hd.sm-hd #mob-gnb .menu-list > ul > li.is-current .mob-1d-ko { color: var(--sm-primary); }

    #hd.sm-hd #mob-gnb .dep02 { gap: 0; width: 100%; margin: 0 0 18px; padding: 6px; box-sizing: border-box; border-radius: 20px; background: var(--sm-white); overflow: hidden; }
    #hd.sm-hd #mob-gnb .dep02 > li { width: 100%; height: auto; padding: 0; line-height: 1.4; }
    #hd.sm-hd #mob-gnb .dep02 > li > a {
        display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 14px;
        font-family: var(--sm-font); font-size: 16px; font-weight: 600; color: var(--sm-ink-2) !important; transition: background .2s ease, color .2s ease;
    }
    #hd.sm-hd #mob-gnb .dep02 > li > a i { font-size: 14px; color: var(--sm-ink-3); }
    #hd.sm-hd #mob-gnb .dep02 > li > a:hover { background: var(--sm-cream); color: var(--sm-dark) !important; }
    /* 현재 페이지 하위메뉴: 옅은 크림 바탕 + 딥그린 굵은 글씨 */
    #hd.sm-hd #mob-gnb .dep02 > li.is-current > a { background: var(--sm-cream); color: var(--sm-dark) !important; font-weight: 800; }
    #hd.sm-hd #mob-gnb .dep02 > li.is-current > a i { color: var(--sm-dark); }

    /* 메뉴 아래 전화·문의·카톡(노란 원형 아이콘 버튼) */
    #hd.sm-hd #mob-gnb .mob-gnb-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 28px; }
    #hd.sm-hd #mob-gnb .mob-gnb-foot:has(.mob-gnb-kakao) { grid-template-columns: 1fr 1fr 54px; }
    #hd.sm-hd #mob-gnb .mob-gnb-foot a {
        display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 999px;
        font-size: 15px; font-weight: 800; text-decoration: none; transition: background .25s ease, color .25s ease;
    }
    #hd.sm-hd #mob-gnb a.mob-gnb-tel { background: var(--sm-dark); color: var(--sm-white) !important; font-family: var(--sm-font-en); }
    #hd.sm-hd #mob-gnb a.mob-gnb-tel:hover { background: var(--sm-primary); }
    #hd.sm-hd #mob-gnb a.mob-gnb-inquiry { border: 1.5px solid var(--sm-dark); color: var(--sm-dark) !important; }
    #hd.sm-hd #mob-gnb a.mob-gnb-inquiry:hover { background: var(--sm-dark); color: var(--sm-white) !important; }
    #hd.sm-hd #mob-gnb a.mob-gnb-kakao { background: #fee500; color: #3c1e1e !important; }
    #hd.sm-hd #mob-gnb a.mob-gnb-kakao .sm-ico { width: 22px; height: 22px; }
}
@media (max-width: 360px) {
    #hd.sm-hd #mob-gnb .mob-gnb-foot { grid-template-columns: 1fr; }
    /* 아주 좁은 화면: 전화는 한 줄 전체, 아래 줄에 문의하기 + 카톡 */
    #hd.sm-hd #mob-gnb .mob-gnb-foot:has(.mob-gnb-kakao) { grid-template-columns: 1fr 54px; }
    #hd.sm-hd #mob-gnb .mob-gnb-foot:has(.mob-gnb-kakao) .mob-gnb-tel { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
    #hd.sm-hd #hd_wrapper { margin: 0; padding: 0 var(--sm-gutter); border-radius: 0; }
}
@media (max-width: 576px) {
    #hd.sm-hd #logo, #hd.sm-hd #logo > a > img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
    #hd.sm-hd #menu-btn, #hd.sm-hd #mob-gnb .menu-list > ul > li { transition: none !important; }
    #hd.sm-hd #mob-gnb .menu-list > ul > li { transform: none; }
}

/* 본문 바로가기: 키보드 포커스 시 헤더 위에 딥그린 띠로 뚜렷하게 표시 */
#hd #skip_to_container a:focus { background: var(--sm-dark); color: var(--sm-white); font-size: 18px; height: 56px; line-height: 56px; outline: 3px solid var(--sm-mango-on-dark); outline-offset: -6px; }

/* ---------------------------------------------------------------------
   서브 헤더 (#container_title.sm-subhead, head.php) — 모든 서브페이지 공용
   - 화면 폭 가득 찬 비주얼(떠 있는 헤더 뒤까지): 대분류 영문(Oswald 대형) + 페이지 제목. 들어올 때 사진은 살짝 줌아웃, 글자는 떠오른다.
   - 비주얼 아래에 걸친 흰 상자 안에 같은 대분류의 페이지 탭. 기존 브레드크럼·드롭다운 분류 바를 대신한다.
--------------------------------------------------------------------- */
#container_title.sm-subhead { height: auto; padding: 0; background: transparent; }
.sm-subhead-visual {
    position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: center;
    height: calc(var(--sm-hd-total) + clamp(280px, 28vw, 420px)); padding-top: var(--sm-hd-total); box-sizing: border-box; background: var(--sm-dark);
}
.sm-subhead-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: sm-subhead-zoom 1.8s cubic-bezier(.22, .8, .24, 1) both; }
.sm-subhead-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--sm-dark) 45%, transparent), color-mix(in srgb, var(--sm-dark) 30%, transparent) 40%, color-mix(in srgb, var(--sm-dark) 62%, transparent)); } /* 위쪽은 떠 있는 헤더와 겹쳐 조금 더 어둡게 */
.sm-subhead-text { padding: 0 20px; text-align: center; }
.sm-subhead-en {
    font-family: var(--sm-font-display); font-size: clamp(52px, 8vw, 128px); font-weight: 700; line-height: .95; letter-spacing: .005em;
    text-transform: uppercase; color: var(--sm-white); animation: sm-subhead-up .9s cubic-bezier(.22, .8, .24, 1) .1s both;
}
.sm-subhead-title { margin-top: 14px; font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; color: var(--sm-cream); animation: sm-subhead-up .9s cubic-bezier(.22, .8, .24, 1) .25s both; }
@keyframes sm-subhead-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes sm-subhead-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* 페이지 탭: 비주얼 아래 모서리에 반쯤 걸친 흰 둥근 상자(딥그린 테두리), 현재 페이지는 포인트색 */
.sm-subtabs { position: relative; z-index: 2; display: flex; justify-content: center; margin-top: -32px; padding: 0 20px; }
.sm-subtabs ul {
    position: relative; /* 탭 offsetLeft 기준(tail.php 가 현재 탭을 가운데로 스크롤) */
    display: flex; align-items: center; gap: clamp(32px, 4vw, 72px); max-width: 100%; min-height: 64px; padding: 0 clamp(40px, 5vw, 96px);
    box-sizing: border-box; border: 1.5px solid var(--sm-dark); border-radius: 18px; background: var(--sm-white);
    overflow-x: auto; scrollbar-width: none;
}
.sm-subtabs ul::-webkit-scrollbar { display: none; }
.sm-subtabs a {
    display: inline-flex; align-items: center; min-height: 44px;
    font-size: 17px; font-weight: 700; white-space: nowrap; text-decoration: none; transition: color .2s ease;
}
.sm-subtabs a:link, .sm-subtabs a:visited { color: var(--sm-dark); }
.sm-subtabs a:hover, .sm-subtabs a.is-active { color: var(--sm-mango); }
.sm-subtabs a:focus-visible { outline-offset: -2px; } /* 가로 스크롤 상자 안에서 잘리지 않게 안쪽으로 */
/* 모바일 드롭다운용 상자 래퍼·버튼(head.php) — PC 에서는 래퍼가 레이아웃에 끼지 않고 버튼은 숨긴다 */
.sm-subtabs-box { display: contents; }
.sm-subtabs-toggle { display: none; }

@media (max-width: 576px) {
    .sm-subhead-visual { height: calc(var(--sm-hd-total) + 240px); }
    /* 가장 긴 NEWS & CONTACT도 320px 화면에서 단어가 잘리지 않게 맞춘다. */
    .sm-subhead-en { font-size: clamp(32px, 10vw, 52px); white-space: nowrap; }
}
@media (max-width: 768px) {
    /* 768px 이하: 탭이 여섯 개인 묶음(소식·이야기·…)은 700px 가까이 필요해 가로 탭이면 잘리므로 여기서부터 드롭다운.
       탭을 가로로 밀지 않고 드롭다운 — 기존 탭 상자(흰 바탕·딥그린 테두리·둥근 모서리)가 그대로 아래로 길어지며 펼쳐진다.
       닫힌 상자 높이(52px)만 자리를 차지하고, 펼친 상자는 아래 콘텐츠를 밀지 않고 위에 덮는다 */
    .sm-subtabs { height: 52px; margin-top: -26px; padding: 0 12px; }
    /* 상자 안 내용은 처음부터 제자리에 놓여 있고 상자 높이(외곽)만 늘고 줄어 목록이 드러난다 → 글자는 움직이지 않는다.
       펼친 높이는 tail.php 스크립트가 내용 높이를 재서 넣는다 */
    .sm-subtabs-box {
        position: absolute; top: 0; left: 12px; right: 12px; display: block; height: 52px; overflow: hidden; box-sizing: border-box;
        border: 1.5px solid var(--sm-dark); border-radius: 14px; background: var(--sm-white);
        /* 닫힐 때(이 규칙): 스르륵 — 빠르게 출발해 부드럽게 감속하며 올라간다 */
        transition: height .32s cubic-bezier(0, 0, .2, 1), box-shadow .32s ease-out;
    }
    /* 열릴 때: 촤라락 — 떨어지듯 가속해 바닥에서 바로 멈춘다(되튐 없음) */
    .sm-subtabs.is-open .sm-subtabs-box { box-shadow: 0 14px 30px color-mix(in srgb, var(--sm-dark) 16%, transparent); transition: height .22s cubic-bezier(.4, 0, 1, 1), box-shadow .22s ease-in; }
    /* 맨 위: 현재 페이지 이름(포인트색) + 오른쪽 화살표. 높이 고정(49px = 52px - 위아래 테두리) */
    .sm-subtabs-toggle {
        position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 49px; padding: 0 48px;
        box-sizing: border-box; border: 0; border-radius: 12px; background: transparent;
        font-family: var(--sm-font); font-size: 15px; font-weight: 700; color: var(--sm-mango); cursor: pointer;
    }
    .sm-subtabs-caret { position: absolute; top: 50%; right: 18px; margin-top: -9px; color: var(--sm-dark); transition: transform .32s cubic-bezier(0, 0, .2, 1); }
    .sm-subtabs.is-open .sm-subtabs-caret { transform: rotate(180deg); transition: transform .22s cubic-bezier(.4, 0, 1, 1); }
    .sm-subtabs-toggle:focus-visible { outline-offset: -4px; }
    /* 펼친 목록: 같은 상자 안에서 이어지고, 구분선 없이 현재 페이지를 뺀 나머지 페이지만 */
    .sm-subtabs ul {
        position: static; display: block; min-height: 0; max-width: none; padding: 0 0 8px; overflow: visible;
        border: 0; border-radius: 0; background: none;
        visibility: hidden; transition: visibility 0s linear .32s; /* 닫힌 목록 링크는 키보드 포커스에서도 빠지게 */
    }
    .sm-subtabs.is-open ul { visibility: visible; transition-delay: 0s; }
    .sm-subtabs li:has(> a.is-active) { display: none; }
    .sm-subtabs a { display: flex; justify-content: center; min-height: 44px; padding: 0 20px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .sm-subhead-bg, .sm-subhead-en, .sm-subhead-title { animation: none; }
    .sm-subtabs-box, .sm-subtabs-caret, .sm-subtabs ul { transition: none !important; }
}

/* ---------------------------------------------------------------------
   슬로밀 보정
--------------------------------------------------------------------- */
/* 사진 자료가 없는 분류(씨글 등): 다크 컬러 위에 포인트색 빛 번짐 + 물결 무늬로 그린 배경 */
.sm-subhead-visual.is-plain {
    background:
        radial-gradient(60% 80% at 15% 20%, color-mix(in srgb, var(--sm-primary) 55%, transparent), transparent 70%),
        radial-gradient(50% 70% at 90% 90%, color-mix(in srgb, var(--sm-mango-on-dark) 30%, transparent), transparent 70%),
        var(--sm-dark);
}
.sm-subhead-visual.is-plain::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12 Q15 0 30 12 T60 12 T90 12 T120 12' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='2'/%3E%3C/svg%3E") repeat;
}
/* 서브 탭 현재·호버: 브랜드 포인트(브릭 레드) */
.sm-subtabs a:hover, .sm-subtabs a.is-active { color: var(--sm-primary); }
@media (max-width: 768px) { .sm-subtabs-toggle { color: var(--sm-primary); } }
.sm-subhead-en { font-weight: 600; letter-spacing: .01em; }

/* ---------------------------------------------------------------------
   리뉴얼 헤더(2026-11-30, 방향 A · Joyeux Repas 참고)
   - 페이지와 같은 크림 바탕의 평평한 바. 왼쪽 1차 메뉴(한글, 메인색 글자) · 가운데 로고 · 오른쪽 작은 문의하기 버튼.
   - 위의 알약형 헤더 규칙을 이 블록이 덮어쓴다.
--------------------------------------------------------------------- */
:root { --sm-hd-total: var(--sm-header-h); }
#hd.sm-hd { --sm-focus: var(--sm-dark); }
#hd.sm-hd #hd_wrapper,
#hd.sm-hd.is-scrolled #hd_wrapper { margin: 0; padding: 0 40px; border-radius: 0; background: var(--sm-cream); box-shadow: none; }

#hd.sm-hd .gnb-container {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 24px;
    max-width: var(--sm-container); margin: 0 auto;
}
#hd.sm-hd #gnb { grid-column: 1; grid-row: 1; }
#hd.sm-hd #logo { grid-column: 2; grid-row: 1; height: 36px; padding: 0; }
#hd.sm-hd #logo > a > img { height: 36px; }
#hd.sm-hd #logo .light-mode-logo { display: block; opacity: 1 !important; }
#hd.sm-hd #logo .dark-mode-logo { display: none; }

/* 1차 메뉴: 한글 한 줄, 메인색 */
#hd.sm-hd #gnb .gnb_wrap > ul { justify-content: flex-start; gap: 4px; }
#hd.sm-hd #gnb .gnb_1dli { flex: none; }
#hd.sm-hd #gnb .gnb_1da { padding: 0 12px !important; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; color: var(--sm-primary) !important; }
#hd.sm-hd #gnb .gnb_1dli:first-child .gnb_1da { padding-left: 0 !important; }
#hd.sm-hd #gnb .gnb_1dli.is-current > .gnb_1da,
#hd.sm-hd #gnb .gnb_1dli.on > .gnb_1da,
#hd.sm-hd #gnb .gnb_1dli:hover > .gnb_1da { color: var(--sm-primary-dark) !important; }

/* 2차 메뉴: 흰 카드(모서리 8px), 잉크색 글자 */
#hd.sm-hd .gnb_2dul,
#hd.sm-hd.is-scrolled .gnb_2dul { left: 0; background: var(--sm-white); border: 1px solid var(--sm-line); border-radius: 8px; box-shadow: var(--sm-shadow); }
#hd.sm-hd .gnb_2dul .gnb_2dul_box { padding: 8px 0; }
#hd.sm-hd .gnb_2da { padding: 0 18px; line-height: 40px; font-size: 15px; color: var(--sm-ink) !important; }
#hd.sm-hd .gnb_2da:hover,
#hd.sm-hd .gnb_2da:focus-visible,
#hd.sm-hd .gnb_2dli.is-current > .gnb_2da { color: var(--sm-primary) !important; }

/* 오른쪽 문의하기: 작은 버튼 */
#hd.sm-hd .sm-hd-cta {
    grid-column: 3; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
    border-radius: 999px; background: var(--sm-primary); font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none;
    transition: background .2s ease;
}
#hd.sm-hd a.sm-hd-cta:link, #hd.sm-hd a.sm-hd-cta:visited { color: var(--sm-white); }
#hd.sm-hd a.sm-hd-cta:hover { background: var(--sm-primary-dark); color: var(--sm-white); }
@media (prefers-reduced-motion: reduce) { #hd.sm-hd .sm-hd-cta { transition: none; } }

/* 1280px 이하: 왼쪽 로고 · 오른쪽 문의하기 + 전체 메뉴 버튼 */
@media (max-width: 1280px) {
    #hd.sm-hd #hd_wrapper, #hd.sm-hd.is-scrolled #hd_wrapper { padding: 0 24px; }
    #hd.sm-hd .gnb-container { display: flex; column-gap: 12px; }
    #hd.sm-hd .sm-hd-cta { margin-left: auto; }
    #hd.sm-hd #menu-btn { margin-left: 0; color: var(--sm-primary); }
    #hd.sm-hd #menu-btn:focus-visible { background: var(--sm-primary-soft); }
}
@media (max-width: 576px) {
    #hd.sm-hd #hd_wrapper, #hd.sm-hd.is-scrolled #hd_wrapper { padding: 0 16px; }
    #hd.sm-hd #logo, #hd.sm-hd #logo > a > img { height: 30px; }
    #hd.sm-hd .sm-hd-cta { display: none; } /* 모바일은 하단 빠른 메뉴의 문의하기를 쓴다 */
    #hd.sm-hd #menu-btn { margin-left: auto; }
}

/* ---- 리뉴얼 헤더 인터랙션 ----
   ① 처음 열릴 때 위에서 내려오며 나타남  ② 스크롤하면 반투명 크림 + 그림자, PC 는 높이가 88→72px 로 줄어듦
   ③ 아래로 스크롤하면 숨고 위로 스크롤하면 다시 나타남(.is-hidden — js/sm-global.js)
   ④ 1차 메뉴 밑줄이 왼쪽에서 그려짐  ⑤ 2차 메뉴 항목이 차례로 나타남  ⑥ 문의하기 글자가 위로 굴러감 */
#hd.sm-hd { transition: transform .45s cubic-bezier(.22, .8, .24, 1); }
#hd.sm-hd.is-hidden { transform: translateY(-100%); }
#hd.sm-hd #hd_wrapper { animation: sm-hd-in .7s cubic-bezier(.22, .8, .24, 1) both; transition: background .3s ease, box-shadow .3s ease; }
@keyframes sm-hd-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
#hd.sm-hd.is-scrolled #hd_wrapper {
    background: var(--sm-cream); -webkit-backdrop-filter: none; backdrop-filter: none; /* 반투명·흐림 없이 불투명 크림(사용자 요청) */
    box-shadow: none; /* 헤더 아래 그림자·선 없음(사용자 요청) */
}
#hd.sm-hd .gnb-container { transition: height .3s ease; }
@media (min-width: 1281px) { #hd.sm-hd.is-scrolled .gnb-container { height: 72px; } }

#hd.sm-hd #gnb .gnb_1da { position: relative; transition: color .2s ease; }
#hd.sm-hd #gnb .gnb_1da::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: calc(50% - 16px); height: 2px; background: currentColor;
    transform: scaleX(0); transform-origin: right center; transition: transform .35s cubic-bezier(.22, .8, .24, 1);
}
#hd.sm-hd #gnb .gnb_1dli:first-child .gnb_1da::after { left: 0; }
#hd.sm-hd #gnb .gnb_1dli:hover > .gnb_1da::after,
#hd.sm-hd #gnb .gnb_1dli.on > .gnb_1da::after,
#hd.sm-hd #gnb .gnb_1dli.is-current > .gnb_1da::after,
#hd.sm-hd #gnb .gnb_1da:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

#hd.sm-hd .gnb_2dli { opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .3s cubic-bezier(.22, .8, .24, 1); }
#hd.sm-hd .gnb_2dul.show .gnb_2dli { opacity: 1; transform: none; }
#hd.sm-hd .gnb_2dul.show .gnb_2dli:nth-child(2) { transition-delay: .04s; }
#hd.sm-hd .gnb_2dul.show .gnb_2dli:nth-child(3) { transition-delay: .08s; }
#hd.sm-hd .gnb_2dul.show .gnb_2dli:nth-child(4) { transition-delay: .12s; }
#hd.sm-hd .gnb_2dul.show .gnb_2dli:nth-child(5) { transition-delay: .16s; }
#hd.sm-hd .gnb_2dul.show .gnb_2dli:nth-child(n+6) { transition-delay: .2s; }
#hd.sm-hd .gnb_2da { transition: color .2s ease, padding-left .25s ease; }
#hd.sm-hd .gnb_2da:hover, #hd.sm-hd .gnb_2da:focus-visible { padding-left: 24px; }

#hd.sm-hd .sm-hd-cta { overflow: hidden; }
#hd.sm-hd .sm-hd-cta-txt { position: relative; display: block; line-height: 38px; transition: transform .35s cubic-bezier(.22, .8, .24, 1); }
#hd.sm-hd .sm-hd-cta-txt::after { content: attr(data-text); position: absolute; top: 100%; left: 0; }
#hd.sm-hd .sm-hd-cta:hover .sm-hd-cta-txt,
#hd.sm-hd .sm-hd-cta:focus-visible .sm-hd-cta-txt { transform: translateY(-100%); }

@media (prefers-reduced-motion: reduce) {
    #hd.sm-hd, #hd.sm-hd #hd_wrapper, #hd.sm-hd .gnb-container, #hd.sm-hd #gnb .gnb_1da::after,
    #hd.sm-hd .gnb_2dli, #hd.sm-hd .gnb_2da, #hd.sm-hd .sm-hd-cta-txt { animation: none; transition: none; }
    #hd.sm-hd.is-hidden { transform: none; }
    #hd.sm-hd .sm-hd-cta:hover .sm-hd-cta-txt, #hd.sm-hd .sm-hd-cta:focus-visible .sm-hd-cta-txt { transform: none; }
}

/* 헤더 메뉴 글자: 포인트(메인) 색 대신 딥 로고 레드 #84212D(--sm-mango), 호버·현재 메뉴는 메인색 */
#hd.sm-hd #gnb .gnb_1da { color: var(--sm-mango) !important; }
#hd.sm-hd #gnb .gnb_1dli.is-current > .gnb_1da,
#hd.sm-hd #gnb .gnb_1dli.on > .gnb_1da,
#hd.sm-hd #gnb .gnb_1dli:hover > .gnb_1da { color: var(--sm-primary) !important; }
#hd.sm-hd #menu-btn { color: var(--sm-mango); }
/* 하단 빠른 문의 버튼을 없앴으므로 모바일에서도 헤더 문의하기 버튼을 보인다 */
@media (max-width: 576px) {
    #hd.sm-hd .sm-hd-cta { display: inline-flex; height: 34px; padding: 0 14px; font-size: 13px; margin-left: auto; }
    #hd.sm-hd .sm-hd-cta-txt { line-height: 34px; }
    #hd.sm-hd #menu-btn { margin-left: 0; }
}

/* 헤더 문의하기 버튼: 메뉴 글자와 같은 딥 로고 레드 #84212D(--sm-mango) 바탕, 호버는 메뉴 호버와 같은 메인색 */
#hd.sm-hd .sm-hd-cta { background: var(--sm-mango); }
#hd.sm-hd a.sm-hd-cta:hover, #hd.sm-hd a.sm-hd-cta:focus-visible { background: var(--sm-primary); }

/* 전체 메뉴(햄버거) 버튼이 나타나는 1280px 이하에서는 헤더 문의하기 버튼을 숨긴다(문의하기는 전체 메뉴·메인 문의 섹션에 있음) */
@media (max-width: 1280px) {
    #hd.sm-hd .sm-hd-cta { display: none !important; }
    #hd.sm-hd #menu-btn { margin-left: auto; }
}

/* ---------------------------------------------------------------------
   전체 메뉴(사이드 메뉴) 리뉴얼(2026-12-01) — 메인과 같은 톤
   흰 바탕 · 1차 메뉴 검정 큰 글자 + 얇은 선 · 펼침은 꺾쇠(v) 회전 · 2차 메뉴는 카드 없이 들여 쓴 목록(>) ·
   아래: 대표 전화(TEL 글자) + 메인색 문의하기 버튼(아래에서 차오르는 효과). 닫기 버튼 분홍 바탕 제거
--------------------------------------------------------------------- */
@media (max-width: 1280px) {
    #hd.sm-hd #menu-btn, #hd.sm-hd #menu-btn:hover, #hd.sm-hd #menu-btn:focus, #hd.sm-hd #menu-btn:focus-visible, #hd.sm-hd #menu-btn.active { background: none !important; color: var(--sm-mango); }
    #hd.sm-hd #menu-btn:focus-visible { outline: 2px solid var(--sm-mango); outline-offset: 2px; }

    #hd.sm-hd #mob-gnb { background: var(--sm-white); }
    #hd.sm-hd #mob-gnb .menu-list { padding: 8px var(--sm-gutter) calc(28px + env(safe-area-inset-bottom, 0px)); scrollbar-width: none; }
    #hd.sm-hd #mob-gnb .menu-list::-webkit-scrollbar { display: none; }
    #hd.sm-hd #mob-gnb .menu-list > ul > li { border-bottom: 1px solid color-mix(in srgb, var(--sm-ink) 12%, transparent); }
    #hd.sm-hd #mob-gnb .menu-list > ul > li > .dep01 { min-height: 72px; color: var(--sm-ink) !important; }
    #hd.sm-hd #mob-gnb .mob-1d-ko { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--sm-ink); transition: color .2s ease; }
    #hd.sm-hd #mob-gnb .menu-list > ul > li > .dep01:hover .mob-1d-ko,
    #hd.sm-hd #mob-gnb .menu-list > ul > li.open .mob-1d-ko,
    #hd.sm-hd #mob-gnb .menu-list > ul > li.is-current .mob-1d-ko { color: var(--sm-mango); }
    #hd.sm-hd #mob-gnb .mob-1d-ico { width: 32px; height: 32px; border-radius: 0; background: none; font-size: 20px; color: var(--sm-ink); }
    #hd.sm-hd #mob-gnb .mob-1d-ico i { display: block; transition: transform .3s cubic-bezier(.22, .8, .24, 1); }
    #hd.sm-hd #mob-gnb .menu-list > ul > li.open .mob-1d-ico i { transform: rotate(180deg); }
    #hd.sm-hd #mob-gnb .menu-list > ul > li.open .mob-1d-ico, #hd.sm-hd #mob-gnb .menu-list > ul > li.is-current .mob-1d-ico { color: var(--sm-mango); }

    #hd.sm-hd #mob-gnb .dep02 { margin: -6px 0 16px; padding: 0; border-radius: 0; background: none; }
    #hd.sm-hd #mob-gnb .dep02 > li > a { min-height: 44px; padding: 0 4px 0 2px; border-radius: 0; font-size: 16px; font-weight: 500; color: var(--sm-ink-2) !important; background: none !important; }
    #hd.sm-hd #mob-gnb .dep02 > li > a i { font-size: 16px; color: var(--sm-ink-3); }
    #hd.sm-hd #mob-gnb .dep02 > li > a:hover, #hd.sm-hd #mob-gnb .dep02 > li.is-current > a { color: var(--sm-mango) !important; }
    #hd.sm-hd #mob-gnb .dep02 > li > a:hover i, #hd.sm-hd #mob-gnb .dep02 > li.is-current > a i { color: var(--sm-mango); }
    #hd.sm-hd #mob-gnb .dep02 > li.is-current > a { font-weight: 700; }

    #hd.sm-hd #mob-gnb .mob-gnb-foot,
    #hd.sm-hd #mob-gnb .mob-gnb-foot:has(.mob-gnb-kakao) { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-top: 32px; }
    #hd.sm-hd #mob-gnb .mob-gnb-foot a { height: auto; border-radius: 0; }
    #hd.sm-hd #mob-gnb a.mob-gnb-tel { justify-content: flex-start; gap: 12px; height: auto; padding: 0; background: none !important; color: var(--sm-ink) !important; font-family: var(--sm-font-en); font-size: 17px; font-weight: 600; }
    #hd.sm-hd #mob-gnb a.mob-gnb-tel i { display: none; }
    #hd.sm-hd #mob-gnb a.mob-gnb-tel::before { content: "TEL"; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--sm-ink-3); }
    #hd.sm-hd #mob-gnb a.mob-gnb-tel:hover { color: var(--sm-mango) !important; }
    #hd.sm-hd #mob-gnb a.mob-gnb-inquiry {
        position: relative; isolation: isolate; overflow: hidden; justify-content: space-between; height: 56px; padding: 0 22px 0 26px;
        border: 0; border-radius: 999px; background: var(--sm-primary); color: var(--sm-white) !important; font-size: 16px; font-weight: 700;
    }
    #hd.sm-hd #mob-gnb a.mob-gnb-inquiry::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--sm-mango); transform: translateY(101%); transition: transform .45s cubic-bezier(.22, .8, .24, 1); }
    #hd.sm-hd #mob-gnb a.mob-gnb-inquiry:hover { background: var(--sm-primary); color: var(--sm-white) !important; }
    #hd.sm-hd #mob-gnb a.mob-gnb-inquiry:hover::before { transform: translateY(0); }
    #hd.sm-hd #mob-gnb a.mob-gnb-kakao { width: 56px; height: 56px; border-radius: 50%; align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    #hd.sm-hd #mob-gnb .mob-1d-ico i, #hd.sm-hd #mob-gnb a.mob-gnb-inquiry::before { transition: none; }
}

/* 헤더 좌우 여백 = 푸터와 같은 --sm-edge(PC·노트북 64px, 태블릿·모바일 24px).
   넓은 화면에서도 가운데 1280px 상자에 가두지 않고 양 끝에서 64px 안쪽에 맞춘다 */
#hd.sm-hd #hd_wrapper, #hd.sm-hd.is-scrolled #hd_wrapper { padding-left: var(--sm-edge); padding-right: var(--sm-edge); }
#hd.sm-hd .gnb-container { max-width: none; }
