/* =============================================================================
   v3_common.css — 신규 테마(ver 3.0) 공통 영역: 헤더 · 푸터 · 맨 위로 버튼
   원본: claude_sub/style.css (정적 시안). 이 파일은 시안에서 "모든 페이지에 쓰이는 부분"만 옮긴 것.
   (메인 전용 섹션: 배너/연구소/사업/제품/뉴스 → 2단계에서 css/v3_main.css 로 별도 추가)

   [시안과 이름이 다른 곳] 기존 테마 CSS와 겹쳐서 v3_ 를 붙임 (겹침 점검 결과)
     #header → #v3_header      .gnb → .v3_gnb        .gnb_wrap → .v3_gnb_wrap
     .inner  → .v3_inner       .grid → .v3_grid      .footer → .v3_footer
   그 외 이름은 시안과 동일. 시안과 비교할 때 위 6개만 기억하면 됨.

   [적용 범위] 전역 기본값(리셋/글꼴/링크/버튼/이미지)은 default.css 로 승격 완료.
   v3_ 접두어 이름(#v3_header, .v3_inner, .v3_grid, .v3_footer 등)은 기존 CSS 와 이름이 겹쳐서 붙인 것이므로,
   옛 CSS(layout.css, content.css 등)를 정리하는 마지막 단계 전까지는 유지할 것.
   ============================================================================= */

/* ===== Font: Pretendard Variable (테마 폴더에 직접 둠, SIL OFL 1.1 — fonts/PRETENDARD_LICENSE.txt) ===== */
@font-face {
    font-family: "Pretendard Variable";
    font-weight: 45 920;
    font-style: normal;
    font-display: swap;
    src: local("Pretendard Variable"), url("../fonts/PretendardVariable.woff2") format("woff2-variations");
}

/* ===== Variables ===== */
:root {
    --color-point: #4E8B79;
    --color-point-hover: #43856f;
    --color-white: #FCFBFA;
    /* 밝은 섹션용 (시안에서 눈대중으로 뽑은 값 → 디자인 값이 있으면 교체) */
    --color-deep: #1F4D3F;
    --color-text: #222;
    --color-text-sub: #666;
    --header-h: 80px;
    --header-gap: clamp(24px, 5.2vw, 100px);
    --sub-h: 80px;
    /* 2차 메뉴 바 높이 (글자 줄과 배경 바가 함께 사용) */
    --content-w: 1440px;
    /* 본문 그리드 (시안: 12컬럼 / 여백 240 / 거터 24). 헤더는 그리드에서 제외 */
    --grid-cols: 12;
    --grid-gap: 24px;
    --font-base: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;
}

/* (전역 기본값 — 리셋, 글꼴, 링크·버튼·이미지 기본 모양 — 은 css/default.css 로 승격되어 이곳에는 없음) */

/* ===== Layout (본문 섹션 공통) ===== */
/* 본문 폭: 1920px에서 양옆 240px(폭 1440px), 그보다 좁으면 헤더와 같은 좌우 여백(--header-gap) */
.v3_inner {
    width: min(100% - var(--header-gap) * 2, var(--content-w));
    margin: 0 auto;
}

/* 12컬럼 그리드 (태블릿 8 / 모바일 4는 아래 미디어쿼리에서 변수만 바뀜) */
.v3_grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols), 1fr);
    gap: var(--grid-gap);
}

/* ===== Header ===== */
#v3_header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: var(--header-h);
    color: var(--color-white);
    /* 시안에서는 body 색을 상속했음. 기존 페이지는 body 색이 달라서 헤더가 직접 지정 */
    background: rgba(45, 45, 45, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.3s, box-shadow 0.3s, transform 0.35s ease;
}

/* 스크롤을 내리면 위로 올라가 숨음 (v3_common.js 에서 붙였다 뗌). 그림자도 꺼야 화면 맨 위에 띠로 남지 않음 */
#v3_header.is_hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    #v3_header {
        transition: background 0.3s, box-shadow 0.3s;
    }
}

#v3_header.is_scrolled {
    background: rgba(45, 45, 45, 0.70);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* 261112 김동현 클로드활용 수정: 서브페이지 헤더 색 추가
   서브페이지(메인 외): 밝은 본문 위에서도 메뉴 글자가 잘 보이도록 처음부터 어두운 배경.
   is_scrolled 와 우선순위가 같아 바로 뒤에 둠(뒤에 오는 쪽이 이김). 메뉴가 열렸을 때 색은 아래 미디어쿼리의 is_menu_open 규칙이 덮음 */
#v3_header.is_sub {
    background: rgba(20, 20, 20, 0.92);
}

.header_inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(32px, 4.2vw, 80px);
    height: 100%;
    /* 화면이 1920px(시안 폭)보다 넓으면 좌우 여백을 늘려 헤더 내용이 1920px 안에 모이게 함.
       max-width 대신 padding을 쓰는 이유: 2차 메뉴 바(.gnb_panel)가 이 박스 폭(=화면 폭)을 기준으로 펼쳐지기 때문.
       % padding은 부모(#v3_header = 화면) 폭 기준이라, 1920px 이하에서는 음수가 되어 max()가 var(--header-gap)을 고름 */
    padding: 0 max(var(--header-gap), calc((100% - 1920px) / 2 + var(--header-gap)));
}

.logo_box {
    position: relative;
    z-index: 2;
    /* 햄버거 전체화면 메뉴 위에 보이도록 */
    flex-shrink: 0;
}

.logo_box a {
    display: block;
}

.logo_box img {
    width: auto;
    height: 40px;
}

/* 메뉴+유틸 묶음: 데스크톱에서는 wrapper가 없는 것처럼 동작 (자식이 header_inner의 flex 아이템이 됨) */
.v3_gnb_wrap {
    display: contents;
}

/* 햄버거 버튼: 1280px 이하에서만 표시 */
.btn_menu {
    position: relative;
    z-index: 2;
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
}

.btn_menu span {
    position: absolute;
    left: 8px;
    width: 24px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: top 0.3s, transform 0.3s, opacity 0.2s;
}

.btn_menu span:nth-child(1) {
    top: 12px;
}

.btn_menu span:nth-child(2) {
    top: 19px;
}

.btn_menu span:nth-child(3) {
    top: 26px;
}

/* 열렸을 때 X 모양 */
.is_menu_open .btn_menu span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.is_menu_open .btn_menu span:nth-child(2) {
    opacity: 0;
}

.is_menu_open .btn_menu span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

/* 메뉴가 열려 있는 동안 뒤 화면 스크롤 막기 */
.menu_locked,
.modal_locked {
    overflow: hidden;
}

/* 데스크톱 ↔ 모바일 전환 순간에는 전환 효과를 꺼서 메뉴가 깜빡이지 않게 함 (v3_common.js 에서 잠깐 붙였다 뗌).
   시안은 페이지 전체에 걸었지만, 기존 스킨에 영향 주지 않도록 헤더 안으로만 제한 */
.is_resizing #v3_header,
.is_resizing #v3_header *,
.is_resizing #v3_header *::before,
.is_resizing #v3_header *::after {
    transition: none !important;
}

/* GNB: 헤더 높이만큼 늘려서 li가 헤더 전체 높이를 차지 (2차 메뉴 hover 영역 확보) */
.v3_gnb {
    display: flex;
    align-self: stretch;
}

/* 메뉴 간격은 gap이 아니라 li의 padding으로 줌 (gap 구간에서 hover가 끊겨 2차 메뉴가 깜빡이는 것 방지) */
.gnb_list {
    --gnb-gap: 28px;
    display: flex;
}

.gnb_list>li {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 var(--gnb-gap);
}

.gnb_list>li:last-child {
    padding-right: 0;
}

.gnb_list a {
    display: block;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s;
}

.gnb_list a:hover,
.gnb_list>li:hover>a {
    color: var(--color-point);
}

/* 텍스트 롤링 hover: 글자 전체가 위로 밀려 올라가고 같은 글자가 아래에서 올라옴 (구조는 v3_common.js) */
.roll {
    display: block;
    height: 24px;
    line-height: 24px;
    overflow: hidden;
}

.roll_text {
    position: relative;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 아래에 대기 중인 복사본 */
.roll_text::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
}

.gnb_list a:hover .roll_text,
.gnb_list a:focus-visible .roll_text,
.gnb_list>li:hover>a .roll_text {
    transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
    .roll_text {
        transition: none;
    }
}

/* 2차 메뉴: 헤더 아래 가로 한 줄 (hover한 1차 메뉴의 항목만 표시) */
.sub_list {
    position: absolute;
    top: 100%;
    left: 0;
    padding-left: var(--gnb-gap);
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 40px;
    height: var(--sub-h);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s, transform 0.35s ease, visibility 0.25s;
}

.gnb_list>li:last-child .sub_list {
    left: auto;
    right: 0;
}

.sub_list a {
    font-weight: 400;
    color: rgba(252, 251, 250, 0.8);
}

/* 2차 메뉴 배경 바 (헤더 아래 전체 폭) */
.gnb_panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: var(--sub-h);
    background: rgba(20, 20, 20, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    /* 위에서 아래로 커튼처럼 펼쳐짐 */
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
}

/* 열림: 2차 메뉴가 있는 1차 메뉴에 마우스를 올렸을 때 */
.gnb_list>li:hover>.sub_list {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0.06s;
}

.v3_gnb:has(.gnb_list>li:hover>.sub_list) .gnb_panel {
    clip-path: inset(0);
    visibility: visible;
}

/* 열림: 키보드(Tab)로 접근했을 때 */
.gnb_list>li>a:focus-visible+.sub_list,
.sub_list:has(a:focus-visible) {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0.06s;
}

.v3_gnb:has(.gnb_list>li>a:focus-visible+.sub_list) .gnb_panel,
.v3_gnb:has(.sub_list a:focus-visible) .gnb_panel {
    clip-path: inset(0);
    visibility: visible;
}

/* 열렸을 때 헤더 배경도 바와 같은 색으로 */
#v3_header:has(.gnb_list>li:hover>.sub_list),
#v3_header:has(.gnb_list>li>a:focus-visible+.sub_list),
#v3_header:has(.sub_list a:focus-visible) {
    background: rgba(20, 20, 20, 0.92);
}

/* 우측 유틸 */
.header_util {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

/* 언어 선택: 시안 그대로 "KOR ▾" 버튼을 누르면 목록이 펼쳐짐 (동작은 v3_common.js) */
.lang_box {
    position: relative;
}

.lang_btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 500;
}

.lang_btn::after {
    content: "";
    width: 5px;
    height: 5px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.lang_box.is_open .lang_btn::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.lang_list {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    min-width: 72px;
    padding: 6px 0;
    background: rgba(20, 20, 20, 0.92);
    border-radius: 6px;
    text-align: center;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.lang_box.is_open .lang_list {
    opacity: 1;
    visibility: visible;
}

.lang_list a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
}

.lang_list a:hover {
    color: var(--color-point);
}

/* 쇼핑몰: 문의하기보다 약한 보조 버튼 (테두리형) */
.btn_shop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid rgba(252, 251, 250, 0.6);
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s, border-color 0.2s;
}

.btn_shop:hover {
    color: var(--color-point);
    border-color: var(--color-point);
}

.btn_inquiry {
    display: inline-block;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn_primary {
    display: inline-block;
    /* inline이면 overflow: hidden이 안 먹어서 모서리 밖으로 채움이 튀어나옴 */
    background: var(--color-point);
    transition: background 0.2s, transform 0.2s;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 6px;
    /* z-index: -1인 ::after가 버튼 배경 위, 글자 아래에 오도록 버튼 안에 쌓임 영역을 만듦 */
}

/* hover 시 왼쪽에서 오른쪽으로 차오르는 채움 (글자 뒤에 깔림) */
.btn_primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    height: 100%;
    width: 0;
    background-color: var(--color-deep);
    transition: width .4s ease;
}

.btn_primary:hover::after {
    width: 100%;
}

/* ===== Footer ===== */
.v3_footer {
    /* 시안에서 눈대중으로 뽑은 색 → 디자인 값이 있으면 교체 */
    --footer-bg: #171c24;
    --footer-text: #B2B2B1;
    --footer-line: rgba(252, 251, 250, 0.20);
    --footer-accent: #3a9980;
    padding: clamp(48px, 3.55vw, 80px) 0 clamp(56px, 5.2vw, 100px);
    background: var(--footer-bg);
    color: var(--footer-text);
}

/* 상단: 슬로건(1~8컬럼) + 버튼 3개(11~12컬럼) */
.footer_top {
    align-items: start;
}

.footer_slogan {
    grid-column: 1 / span 8;
    font-size: clamp(26px, 2.3vw, 48px);
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: -0.01em;
    color: #a9a9ab;
}

.footer_slogan span {
    display: block;
}

.footer_slogan .footer_slogan_point {
    color: var(--footer-accent);
}

.footer_links {
    grid-column: 11 / span 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

/* 버튼: 흰 바탕 + 오른쪽 초록 아이콘 칸 */
.footer_btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding-left: 24px;
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 14px;
    text-align: left;
    line-height: 1.16;
}

.footer_btn_icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 100%;
    border-radius: 8px;
    background: var(--footer-accent);
    color: var(--color-white);
    transition: background 0.2s;
}

.footer_btn:hover .footer_btn_icon {
    background: #2f8a70;
}

/* Family site: 아래로 펼쳐지는 드롭다운 */
.footer_family {
    position: relative;
}

.footer_family_btn .footer_btn_icon svg {
    transition: transform 0.25s;
}

.footer_family.is_open .footer_btn_icon svg {
    transform: rotate(180deg);
}

.footer_family_list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 5;
    width: 100%;
    padding: 6px 0;
    border-radius: 8px;
    background: var(--color-white);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.footer_family.is_open .footer_family_list {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.footer_family_list a {
    display: block;
    padding: 12px 24px;
    color: var(--color-text);
    font-size: 14px;
    transition: color 0.2s, background 0.2s;
}

.footer_family_list a:hover {
    background: #f1efeb;
    color: var(--color-point);
}

/* 중간: 정보 3칸 (1~4 / 6~8 / 10~12컬럼) + 5컬럼, 9컬럼 가운데의 세로선 */
.footer_info {
    margin-top: clamp(40px, 4.7vw, 90px);
}

.footer_col_loc {
    grid-column: 1 / span 4;
}

.footer_col_co {
    grid-column: 6 / span 3;
}

.footer_col_contact {
    grid-column: 10 / span 3;
}

.footer_divider {
    justify-self: center;
    width: 1px;
    background: var(--footer-line);
}

.footer_divider_first {
    grid-column: 5;
}

.footer_divider_second {
    grid-column: 9;
}

.footer_heading {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-white);
}

.footer_list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* 하단: 구분선 + 저작권 / 개인정보처리방침 */
.footer_bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--footer-line);
    font-size: 14px;
    color: #e6e7ea;
}

.footer_privacy {
    font-weight: 500;
    transition: color 0.2s;
}

.footer_privacy:hover,
.footer_login:hover {
    color: var(--footer-accent);
}

/* 개인정보처리방침 + 로그인 링크 묶음 */
.footer_bottom_links {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 관리자용 로그인 링크: 방침보다 덜 눈에 띄게 */
.footer_login {
    font-size: 13px;
    color: var(--footer-text);
    transition: color 0.2s;
}

/* ===== 맨 위로 버튼: 화면 오른쪽 아래에 고정. 평소엔 숨겨 두고 첫 화면을 지나면(.is_visible) 나타남 ===== */
.top_btn {
    position: fixed;
    right: clamp(16px, 1.6vw, 32px);
    bottom: clamp(16px, 1.6vw, 32px);
    z-index: 90;
    /* 헤더(100)보다 아래 */
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--color-point);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    /* visibility까지 꺼야 숨어 있는 동안 Tab 키로 포커스가 가지 않음 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
}

.top_btn.is_visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.top_btn:hover {
    background: var(--color-point-hover);
}

/* 모바일 전체화면 메뉴가 열려 있는 동안에는 숨김 */
.menu_locked .top_btn {
    opacity: 0;
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .top_btn {
        transition: none;
    }
}

/* ===== 사이트맵 팝업 (<dialog class="sitemap_modal v3">) ===== */
.sitemap_modal {
    width: min(92vw, 1000px);
    max-width: none;
    max-height: 90vh;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: var(--color-white);
    color: var(--color-text);
    overflow: auto;
}

.sitemap_modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.sitemap_inner {
    padding: 40px;
}

.sitemap_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e3df;
}

.sitemap_heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-deep);
}

.sitemap_close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
}

.sitemap_body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px 24px;
}

.sitemap_title {
    display: block;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 600;
}

.sitemap_sub {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sitemap_sub a {
    font-size: 15px;
    color: var(--color-text-sub);
}

.sitemap_title:hover,
.sitemap_sub a:hover {
    color: var(--color-point);
}

/* ===== 개인정보처리방침 팝업 (<dialog class="policy_modal v3">): 제목은 위에 고정하고 본문만 팝업 안에서 스크롤 ===== */
.policy_modal {
    width: min(92vw, 860px);
    max-width: none;
    max-height: 90vh;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: var(--color-white);
    color: var(--color-text);
    overflow: hidden;
}

/* dialog 기본 display(none)를 덮어쓰면 닫혀도 보이므로, 열려 있을 때만 flex로 만듦 */
.policy_modal[open] {
    display: flex;
    flex-direction: column;
}

.policy_modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.policy_head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    padding: 28px 40px 16px;
    border-bottom: 1px solid #e5e3df;
}

.policy_heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-deep);
}

.policy_close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
}

.policy_body {
    flex: 1;
    min-height: 0;
    padding: 24px 40px 40px;
    overflow-y: auto;
}

/* 같은 본문(.policy_doc)을 내용관리 페이지에서 직접 열 때와 팝업에서 열 때를 모두 지원:
   팝업 안에서는 페이지용 위쪽 여백/폭 제한과 큰 제목(팝업 머리글이 대신함)을 없앰 */
.policy_body .policy_doc {
    width: auto;
    margin: 0;
    padding: 0;
}

.policy_body .policy_title {
    display: none;
}

/* 첫 소제목 위 여백은 팝업에서 불필요 */
.policy_body .policy_doc > :first-child {
    margin-top: 0;
}

/* ===== 개인정보처리방침 본문 (관리자 > 내용관리 'privacy' 페이지 안의 <div class="policy_doc v3"> 에 적용) ===== */
/* 261112 김동현 클로드활용 수정: 서브 상단 도입으로 제목 숨김·위쪽 여백 축소
   내용관리 페이지에는 새 서브 상단(html/sub_top.php)이 붙어 큰 제목·헤더 여백을 이미 처리하므로,
   본문 안의 제목(.policy_title)은 숨기고 위쪽 여백도 줄임 (팝업에서도 숨김이라 동작은 같음) */
.policy_doc {
    width: min(100% - 40px, 960px);
    margin: 0 auto;
    padding: 20px 0 100px;
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: -0.01em;
    color: var(--color-text-sub);
}

.policy_title {
    display: none;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e3df;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-deep);
}

.policy_doc h3 {
    margin: 36px 0 12px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
}

.policy_doc p {
    margin-bottom: 12px;
}

.policy_doc strong {
    font-weight: 600;
    color: var(--color-text);
}

.policy_doc ol,
.policy_doc ul {
    margin: 0 0 12px;
    padding-left: 22px;
}

.policy_doc ol {
    list-style: decimal;
}

.policy_doc ul {
    list-style: disc;
}

/* 기존 테마 CSS 에 li { list-style: none } 이 있어서, 번호/점이 사라지지 않도록 li 에도 직접 지정 */
.policy_doc ol > li {
    list-style: decimal;
}

.policy_doc ul > li {
    list-style: disc;
}


.policy_doc li + li {
    margin-top: 6px;
}

.policy_doc li > ul {
    margin: 6px 0 0;
}

/* 표: 좁은 화면에서는 표만 가로로 스크롤 (글자가 세로로 깨지지 않게 최소 폭을 둠) */
.policy_table_wrap {
    margin-bottom: 12px;
    overflow-x: auto;
}

.policy_doc table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
}

.policy_doc th,
.policy_doc td {
    padding: 10px 14px;
    border: 1px solid #e5e3df;
    text-align: left;
    vertical-align: top;
}

.policy_doc thead th {
    background: #f1efeb;
    font-weight: 600;
    color: var(--color-text);
}

.policy_doc tbody th {
    background: #f8f7f4;
    font-weight: 600;
    color: var(--color-text);
}

/* 아직 확정되지 않은 값 표시. 값을 채운 뒤 HTML에서 span을 떼면 평범한 글자가 됨 */
.policy_blank {
    background: #fff3b0;
    color: var(--color-text);
}

/* ===== Responsive ===== */
/* 1280px 이하: 햄버거 + 전체화면 메뉴 (1차 메뉴는 아코디언) — JS의 matchMedia("(max-width: 1280px)") 와 같은 값 */
@media (max-width: 1280px) {
    :root {
        --header-h: 72px;
        --grid-cols: 8;
        --grid-gap: 20px;
    }

    /* 푸터: 슬로건 아래로 버튼 3개를 가로로, 정보는 Location이 윗줄 / 나머지 둘이 아랫줄, 세로선 숨김 */
    .footer_slogan,
    .footer_links {
        grid-column: 1 / -1;
    }

    .footer_links {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    .footer_links>li {
        width: 220px;
    }

    .footer_info {
        row-gap: 40px;
    }

    .footer_divider {
        display: none;
    }

    .footer_col_loc {
        grid-column: 1 / -1;
    }

    .footer_col_co,
    .footer_col_contact {
        grid-column: span 4;
    }

    .logo_box img {
        height: 32px;
    }

    .btn_menu {
        display: block;
    }

    /* 전체화면 메뉴: 헤더 줄 바로 아래부터 시작 (스크롤은 이 영역 안에서만 일어나 로고/버튼과 겹치지 않음) */
    .v3_gnb_wrap {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        padding: 16px var(--header-gap) 40px;
        overflow-y: auto;
        background: rgba(17, 17, 17, 0.98);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    #v3_header.is_menu_open .v3_gnb_wrap {
        opacity: 1;
        visibility: visible;
    }

    /* 메뉴가 열리면 헤더 줄도 메뉴와 같은 배경색 */
    #v3_header.is_menu_open {
        background: rgba(17, 17, 17, 0.98);
    }

    .v3_gnb {
        display: block;
        align-self: auto;
    }

    .gnb_panel {
        display: none;
    }

    .gnb_list {
        --gnb-gap: 0px;
        display: block;
    }

    .gnb_list>li {
        display: block;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .gnb_list>li>a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 0;
        font-size: 22px;
    }

    /* 2차 메뉴가 있는 항목: 오른쪽에 화살표 */
    .gnb_list>li>a:not(:only-child)::after {
        content: "";
        width: 9px;
        height: 9px;
        margin-right: 4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.3s;
    }

    .gnb_list>li.is_open>a:not(:only-child)::after {
        transform: rotate(-135deg);
    }

    /* 터치 화면에서는 롤링 효과와 hover 색 끄기 */
    .roll {
        height: auto;
        line-height: 1.4;
        overflow: visible;
    }

    .roll_text::after {
        display: none;
    }

    .gnb_list a:hover .roll_text,
    .gnb_list a:focus-visible .roll_text,
    .gnb_list>li:hover>a .roll_text {
        transform: none;
    }

    .gnb_list a:hover,
    .gnb_list>li:hover>a {
        color: var(--color-white);
    }

    .gnb_list>li.is_open>a {
        color: var(--color-point);
    }

    /* 2차 메뉴: 아래로 펼쳐지는 아코디언.
       max-height 는 항목이 많아도 잘리지 않도록 넉넉히(소메뉴 8개 이하 권장, 넘으면 메뉴 안에서 스크롤) */
    .sub_list {
        position: static;
        display: block;
        height: auto;
        max-height: 0;
        padding: 0 0 0 4px;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.35s ease;
    }

    .gnb_list>li.is_open>.sub_list {
        max-height: 640px;
    }

    .sub_list a {
        padding: 10px 0;
        font-size: 17px;
    }

    .sub_list li:last-child {
        margin-bottom: 16px;
    }

    /* 하단: 언어 선택 + 버튼 */
    .header_util {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin: auto 0 0;
        padding-top: 32px;
    }

    .lang_box {
        grid-column: 1 / -1;
    }

    /* 드롭다운 대신 선택지를 바로 펼쳐서 보여줌 */
    .lang_btn {
        display: none;
    }

    .lang_list {
        position: static;
        display: flex;
        gap: 8px;
        min-width: 0;
        padding: 0;
        background: none;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .lang_list a {
        padding: 6px 16px;
        border: 1px solid rgba(252, 251, 250, 0.3);
        border-radius: 999px;
    }

    .btn_shop,
    .btn_inquiry {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
        --grid-cols: 4;
        --grid-gap: 16px;
    }

    .logo_box img {
        height: 28px;
    }

    .gnb_list>li>a {
        padding: 18px 0;
        font-size: 20px;
    }

    /* 푸터: 버튼은 한 줄에 하나씩 전체 폭, 정보 3칸은 위아래로 쌓음 */
    .footer_links>li {
        width: 100%;
    }

    /* 좁은 화면에서는 슬로건이 여러 줄로 꺾이므로 줄 간격을 줄임 */
    .footer_slogan {
        line-height: 1.5;
    }

    .footer_col_co,
    .footer_col_contact {
        grid-column: 1 / -1;
    }

    .sitemap_inner {
        padding: 24px;
    }

    .policy_head {
        padding: 20px 20px 12px;
    }

    .policy_body {
        padding: 16px 20px 28px;
    }

    .policy_doc {
        font-size: 14px;
    }
}
