/* ============================================================
   common.css — 동국산업 공통 스타일
   기준 파일: dikel가치.html
   사용법: <link rel="stylesheet" href="common.css">
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* ===== 섹션 패딩 변수 (PC / TAB / MOB) ===== */
:root {
    --section-padding-x: 120px;
    --section-padding-y: 100px;
}

@media (min-width: 768px) and (max-width: 1439px) {
    :root {
        --section-padding-x: 60px;
        --section-padding-y: 80px;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding-x: 16px;
        --section-padding-y: 40px;
    }
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ===== 네이티브 스크롤바 숨김 ===== */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

/* ===== 커스텀 오버레이 스크롤바 (한화에어로스페이스 .c-scrollbar 방식) ===== */
.c-scrollbar {
    position: fixed;
    right: 0;
    top: 0;
    width: 11px;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.c-scrollbar:hover {
    opacity: 1 !important;
}

.c-scrollbar-thumb {
    position: absolute;
    right: 2px;
    width: 7px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.c-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* ===== RESET / BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
    list-style: none;
    text-decoration: none;
}

html {
    font-size: clamp(12px, 0.84vw, 16px);
    background: #fff;
    /* 1920px 바깥 배경 */
}

body {
    background: #fff;
    color: #111;
    min-width: 0;
    margin: 0 auto;
    overflow-x: clip;
    /* hidden은 position:sticky를 무력화하므로 clip 사용 */
    padding-top: 90px;
    /* GNB fixed 높이 보정 */
}

/* 모바일 전용 줄바꿈 */
.mo-br,
.m-br {
    display: none;
}

/* 데스크탑 전용 줄바꿈 (태블릿·모바일에서 숨김) */
.pc-br {
    display: block;
}


/* ===== LAYOUT ===== */
.inner {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 var(--section-padding-x);
}


/* ===== GNB ===== */
.gnb {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    position: fixed;
    width: 100%;
    max-width: none;
    left: 0;
    top: 0;
    transform: translateY(0);
    z-index: 1002;
    box-sizing: border-box;
    background: #FFFFFF;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    /* 검수 0722: 펼침/접힘 슬라이드 — 등속(linear)으로 즉시 반응하게 (0.35s) */
    transition: transform 0.35s linear, background 0.3s ease, box-shadow 0.3s ease, padding-bottom 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 스크롤 다운 시 GNB 위로 숨김 */
.gnb.gnb-hidden {
    transform: translateY(-100%);
}

.gnb-logo {
    width: 163px;
    height: 34px;
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    z-index: 101;
}

.gnb-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease;
}

.gnb-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 40px;
    position: relative;
    z-index: 101;
}

.gnb-nav-item {
    display: flex;
    align-items: center;
    height: 90px;
    position: relative;
}

.gnb-nav-link {
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.6;
    color: #111111;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    transition: color 0.3s, font-weight 0.2s;
    white-space: nowrap;
    word-break: keep-all;
}

.gnb-nav-link:hover {
    font-weight: 700;
}

/* ===== 서브메뉴 래퍼 (한화에어로스페이스 구조) =====
   각 nav-item 안에 .gnb-submenu-wrap (overflow:hidden + height 트랜지션)
   → 그 안에 .gnb-submenu (실제 링크들)
   래퍼가 height:0이면 자식도 자연스럽게 클리핑 */
.gnb-submenu-wrap {
    position: absolute;
    top: 100%;
    left: 16px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 102;
}

.gnb-submenu-wrap.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gnb-submenu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 0 60px;
    width: 200px;
}

/* ===== 배경 — ::before로 헤더 전체를 커버 ===== */

/* 기본 (라이트모드) 서브메뉴 텍스트 */
.gnb-submenu a {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 12px;
    transition: font-weight 0.2s ease;
    white-space: nowrap;
    word-break: keep-all;
}

.gnb-submenu a:hover {
    font-weight: 700;
}

/* ===== Hover: 헤더 자체가 다크 배경 + 확장 ===== */
.gnb.is-hover {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(50px) !important;
    -webkit-backdrop-filter: blur(50px) !important;
    box-shadow: none !important;
    padding-bottom: calc(var(--gnb-submenu-height, 0) * 1px);
    overflow: hidden;
}

/* 호버 시 서브메뉴 텍스트 */
.gnb.is-hover .gnb-submenu a {
    color: #FFFFFF;
}

.gnb.is-hover .gnb-submenu a:hover {
    font-weight: 700;
}

/* 호버 시 상단 메뉴 텍스트를 흰색으로 */
.gnb.is-hover .gnb-nav-link {
    color: #FFFFFF;
}

.gnb.is-hover .gnb-nav-link:hover {
    font-weight: 700;
}

/* 호버 시 로고 흰색 */
.gnb.is-hover .gnb-logo img {
    filter: brightness(0) invert(1);
}

/* 호버 시 유틸 영역 흰색 */
.gnb.is-hover .gnb-utils a {
    color: #FFFFFF;
}

.gnb.is-hover .gnb-divider {
    background: rgba(255, 255, 255, 0.5);
}

.gnb.is-hover .gnb-menu-btn span {
    background: #FFFFFF;
}


/* ===== 다크모드 및 투명모드 드롭다운 오버라이드 ===== */
/* 다크/투명 모드에서도 동일한 드롭다운 배경 사용 (이미 검은색이므로 그대로) */

/* 투명 배경(스크롤 전)일 때 */
.gnb.gnb-transparent {
    /* 검수 0722: 흰색글씨(히어로 위) 가독성 그라디언트 — Figma 1889:18925 그대로 (0% 000000 30% → 100% 000000 0%) */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
    box-shadow: none;
}

.gnb.gnb-transparent .gnb-logo img {
    filter: brightness(0) invert(1);
}

.gnb.gnb-transparent .gnb-nav a {
    color: #FFFFFF;
}

.gnb.gnb-transparent .gnb-utils a {
    color: #FFFFFF;
}

.gnb.gnb-transparent .gnb-divider {
    background: rgba(255, 255, 255, 0.5);
}

.gnb.gnb-transparent .gnb-menu-btn span {
    background: #FFFFFF;
}

/* ===== 다크모드 GNB ===== */
.gnb.gnb-dark {
    /* 검수 0722: 흰색글씨(히어로 위) 가독성 그라디언트 — Figma 1889:18925 그대로 (0% 000000 30% → 100% 000000 0%) */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
    box-shadow: none;
    opacity: 0.8;
}

.gnb.gnb-dark .gnb-logo img {
    filter: brightness(0) invert(1);
}

.gnb.gnb-dark .gnb-nav a {
    color: #FFFFFF;
}

.gnb.gnb-dark .gnb-utils a {
    color: #FFFFFF;
}

.gnb.gnb-dark .gnb-divider {
    background: #D3D3D3;
}

.gnb.gnb-dark .gnb-menu-btn span {
    background: #FFFFFF;
}

/* solid 배경(스크롤 후) */
.gnb.gnb-solid {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.gnb-utils {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: calc(8px + 0.83vw);
    /* 1920px에서 24px */
    height: 44px;
    flex-shrink: 0;
}

.gnb-utils-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: calc(8px + 0.83vw);
    /* 1920px에서 24px */
}

.gnb-utils a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    height: 44px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 500;
    color: #363636;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

.gnb-divider {
    width: 1px;
    height: 22px;
    background: #D3D3D3;
    flex-shrink: 0;
}

.gnb-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 8.86px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 100px;
    position: relative;
    overflow: visible;
    flex-shrink: 0;
}

.gnb-menu-btn span {
    width: 28px;
    height: 2px;
    background: #4E4E4E;
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 메뉴 열렸을 때: 다크 배경 + 메인메뉴 숨김 (피그마 390:11322) */
.gnb.gnb-menu-active {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(50px) !important;
    -webkit-backdrop-filter: blur(50px) !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
}

/* 메인메뉴 숨김 */
.gnb.gnb-menu-active .gnb-nav {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 호버 서브메뉴도 완전 차단 */
.gnb.gnb-menu-active .gnb-submenu-wrap {
    display: none !important;
}

/* ::before 배경 해제 (menu-active가 자체 배경 처리) */
.gnb.gnb-menu-active::before {
    display: none !important;
}

/* 로고 흰색 */
.gnb.gnb-menu-active .gnb-logo img {
    filter: brightness(0) invert(1);
}

/* 유틸 텍스트 흰색 */
.gnb.gnb-menu-active .gnb-utils a {
    color: #FFFFFF;
}

/* 디바이더 흰색 */
.gnb.gnb-menu-active .gnb-divider {
    background: rgba(255, 255, 255, 0.5);
}

/* 햄버거 → X 흰색 */
.gnb.gnb-menu-active .gnb-menu-btn {
    gap: 0;
    overflow: visible;
}

.gnb.gnb-menu-active .gnb-menu-btn span {
    background: #FFFFFF;
}

.gnb.gnb-menu-active .gnb-menu-btn span:nth-child(1) {
    transform: translateY(2px) rotate(45deg);
}

.gnb.gnb-menu-active .gnb-menu-btn span:nth-child(2) {
    opacity: 0;
}

.gnb.gnb-menu-active .gnb-menu-btn span:nth-child(3) {
    transform: translateY(-2px) rotate(-45deg);
}

/* 모바일 GNB 바 — PC에서 숨김 */
.gnb-mob-bar {
    display: none;
}


/* ===== TABLET/MOBILE (≤1439px): PC GNB 숨기고, 모바일 전용 바 표시 ===== */
@media (max-width: 1439px) {

    /* PC GNB 완전 숨김 */
    .gnb {
        display: none !important;
    }

    /* 데스크탑 전용 줄바꿈 숨김 */
    .pc-br {
        display: none;
    }

    /* 모바일 전용 GNB 바 */
    .gnb-mob-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 72px;
        padding: 0 16px;
        z-index: 100;
        box-sizing: border-box;
        background: #FFFFFF;
        transition: transform 0.35s linear, background 0.3s ease; /* 검수 0722: 펼침/접힘 등속(linear) 즉시 반응 */
        transform: translateY(0);
    }

    /* 투명 모드 (히어로 위) — 검수 0722: 흰글씨 가독성 그라디언트 (PC와 동일, Figma 1889:18925) */
    .gnb-mob-bar.gnb-mob-transparent {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
    }

    .gnb-mob-bar.gnb-mob-transparent .gnb-mob-bar-logo img {
        filter: brightness(0) invert(1);
    }

    .gnb-mob-bar.gnb-mob-transparent .gnb-mob-bar-btn span {
        background: #FFFFFF;
    }

    /* 스크롤 시 solid */
    .gnb-mob-bar.gnb-mob-solid {
        background: #FFFFFF;
    }

    .gnb-mob-bar.gnb-mob-solid .gnb-mob-bar-logo img {
        filter: none;
    }

    .gnb-mob-bar.gnb-mob-solid .gnb-mob-bar-btn span {
        background: #1b1b1b;
    }

    /* 숨김 */
    .gnb-mob-bar.gnb-mob-hidden {
        transform: translateY(-100%);
    }

    /* 로고 */
    .gnb-mob-bar-logo {
        width: 156px;
        height: 30px;
    }

    .gnb-mob-bar-logo a {
        display: flex;
        align-items: center;
        width: 156px;
        height: 30px;
        line-height: 0;
    }

    .gnb-mob-bar-logo img {
        width: 156px;
        height: 30px;
        object-fit: fill;
        display: block;
        transition: filter 0.3s ease;
    }

    /* 햄버거 */
    .gnb-mob-bar-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        gap: 5.5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .gnb-mob-bar-btn span {
        display: block;
        width: 22px;
        height: 1.5px;
        background: #1b1b1b;
        border-radius: 1px;
        transition: background 0.3s ease;
    }

}

/* 모바일 패딩 축소 */
@media (max-width: 767px) {
    .gnb-mob-bar {
        padding: 0 16px;
    }
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 70px 0 100px;
    gap: 70px;
    width: 100%;
    max-width: none;
    background: #FFFFFF;
    margin: 0 auto;
}

.page-header h1 {
    width: 100%;
    height: 106px;
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 700;
    font-size: 80px;
    line-height: 1.4;
    text-align: center;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}


/* ===== TAB NAVIGATION ===== */
.tab-nav {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
    width: 100%;
    max-width: none;
    height: 70px;
    background: #FFFFFF;
    border-bottom: 2px solid #E9E9E9; /* 전체 너비 선 추가 */
}

.tab-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px 20px;
    width: 316px;
    gap: 10px;
    padding-bottom: 21px;
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 700;
    font-size: 26px;
    line-height: 150%;
    color: #A7A7A7;
    border-bottom: 2px solid transparent; /* 기본 선 투명화 */
    margin-bottom: -2px; /* 부모의 border-bottom과 겹치도록 설정 */
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.tab-item.active {
    color: #1B1B1B;
    border-bottom-color: #A7A7A7; /* 활성 탭 강조 선 */
}

.mob-br {
    display: none;
}


/* ===== BTN TOP ===== */
/* bottom 위치는 gnb.js에서 인라인으로 제어 (데스크탑 80px, 모바일 66px) */
.btn-top {
    position: fixed;
    width: 56px;   /* 검수 0723: web 56 / tab 52 / mob 44 */
    height: 56px;
    right: max(40px, calc((100vw - 1920px) / 2 + 40px));
    bottom: 40px;
    background: #1B1B1B;
    border-radius: 800px;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, background 0.3s ease;   /* transform은 푸터 도킹(즉시 따라오게)이라 트랜지션 제외 */
    text-decoration: none;
    will-change: transform;
}

.btn-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-top svg,
.btn-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-top:hover {
    background: #333333;
}

@media (max-width: 1439px) {
    .btn-top {
        width: 52px;   /* 검수 0723: tab 52 */
        height: 52px;
        right: 24px;
        bottom: 24px;
    }
}

/* ===== SUPPORT SECTION ===== */
.support-section {
    padding: 80px var(--section-padding-x);
    background: #fff;
}

.support-banner {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    background: #F8F9FB;
    border-radius: clamp(12px, 1.05vw, 20px);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: clamp(24px, 2.09vw, 40px) clamp(20px, 2.61vw, 50px) clamp(24px, 2.09vw, 40px) clamp(16px, 1.57vw, 30px);
    gap: 20px;
    box-sizing: border-box;
}

/* 고객지원 아이콘: 130×130 컨테이너 */
.support-icon {
    position: relative;
    width: clamp(80px, 6.78vw, 130px);
    height: clamp(80px, 6.78vw, 130px);
    flex: none;
    background: url('../assets/common/ic-support.svg') no-repeat center/contain;
}

/* 배경 원 (SVG 뒤에 표시) */
.support-icon::before {
    content: '';
    position: absolute;
    width: 72.3%;
    /* 94/130 */
    height: 72.3%;
    left: 13.85%;
    /* 18/130 */
    top: 13.85%;
    background: linear-gradient(180deg, #F3782B 50%, #FF9933 100%);
    border-radius: 50%;
    z-index: -1;
}

/* 콘텐츠 박스 (텍스트 + 화살표) */
.support-content-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 0;
}

/* 텍스트 영역 */
.support-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    gap: clamp(6px, 0.53vw, 10px);
    flex: 1;
    min-width: 0;
}

.support-info h3 {
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: clamp(22px, 1.67vw, 32px);
    line-height: 150%;
    color: #1B1B1B;
    margin: 0;
    word-break: keep-all;
}

.support-info p {
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(16px, 1.15vw, 22px);
    line-height: 160%;
    color: #4E4E4E;
    margin: 0;
    word-break: keep-all;
}

/* 화살표 버튼 (공통 – components.js support 배너 포함) */
.support-card-arrow {
    width: 64px;
    height: 64px;
    border-radius: 100000px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 13px;
    box-sizing: border-box;
    cursor: pointer;
}

.support-card-arrow:hover {
    background: rgba(0, 0, 0, 0.05);
}

.support-arrow-inner {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.support-arrow-svg {
    width: 26px;
    height: 26px;
}

/* 화살표 버튼 – ic_Chevron Right */
.btn-arrow-right {
    background: transparent;
    box-shadow: none;
    border: none;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(40px, 3.34vw, 64px);
    height: clamp(40px, 3.34vw, 64px);
    align-self: center;
    text-decoration: none;
    flex: none;
    cursor: pointer;
    font-size: clamp(20px, 1.57vw, 30px);
    transition: transform 0.2s ease;
}

.btn-arrow-right:hover {
    transform: translateX(4px);
}

.btn-arrow-right svg {
    width: 26px;
    height: 26px;
}


/* ===== FOOTER ===== */
.footer {
    width: 100%;
    box-sizing: border-box;
    background: #FFFFFF;
    border-top: 1px solid #D3D3D3;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 60px 80px;
}

/* 상단: 정책 링크 | 액션(방문예약·계열사 바로가기·유튜브) */
.footer-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.footer-policy {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.footer-policy a {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.6;
    color: #7A7A7A;
    text-decoration: none;
    white-space: nowrap;
}

.footer-policy--meta {
    display: none;
}

.footer-bar {
    width: 1px;
    height: 12px;
    background: #D3D3D3;
    flex-shrink: 0;
}

.footer-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;   /* 검수 0723: 좁은 화면에서 버튼이 눌려 터지지 않고 줄바꿈되게 */
}

.footer-btn {
    flex-shrink: 0;        /* 버튼이 눌려 텍스트가 세로로 깨지지 않게 */
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 200px;
    padding: 16px 16px 15px 24px;
    background: #FFFFFF;
    border: 1px solid #E9E9E9;
    border-radius: 100000px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.6;
    color: #111111;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

/* 검수 0723: 모바일은 탭 후 :hover가 눌러붙어(다른 곳 탭 전까지) 방문예약 새 탭 다녀오면 선택된 듯 보임.
   → hover 가능한 기기(마우스)에서만 적용해 모바일 sticky hover 제거. */
@media (hover: hover) {
    .footer-btn:hover {
        background: #F8F9FB;
    }
}

.footer-btn-ic,
.footer-family-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #111111;
}

.footer-family-wrap {
    position: relative;
    flex-shrink: 0;   /* 검수 0723: 계열사 버튼도 눌리지 않게 */
}

.footer-family-btn {
    font-family: inherit;
}

.footer-family-icon {
    transition: transform 0.3s ease;
}

.footer-family-wrap.is-open .footer-family-icon {
    transform: rotate(45deg);
}

.footer-family-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 184px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 50;
}

.footer-family-wrap.is-open .footer-family-popup {
    display: flex;
}

.footer-family-item {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #363636;
    text-decoration: none;
}

.footer-yt {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    border: 1px solid #E9E9E9;
    border-radius: 10000px;
    color: #111111;
    flex-shrink: 0;
    transition: background 0.2s;
}

.footer-yt:hover {
    background: #F8F9FB;
}

.footer-yt svg {
    width: 28px;
    height: 28px;
    display: block;
}

.footer-yt--brand {
    display: none;
}

/* 하단: 로고 | 연락처 */
.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 46px;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 37px;
    width: auto;
    display: block;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.footer-contact-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 23px;
}

.footer-contact-line a,
.footer-contact-line .footer-addr {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
    color: #7A7A7A;
    text-decoration: none;
    white-space: nowrap;
}

.footer-copy {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #A7A7A7;
    text-align: right;
    margin: 0;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1439px) {
    html {
        font-size: clamp(13px, 0.93vw, 14px);
    }

    .page-header {
        padding: 40px 0 60px;
    }

    .page-header h1 {
        font-size: 60px;
        height: auto;
    }
}


/* ════════════════════════════════════════════════════════
   TABLET — 768px ~ 1439px (Footer)
   ════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1439px) {
    .footer {
        padding: 40px 60px;
        gap: 30px;
    }

    .footer-top {
        flex-wrap: wrap;
        row-gap: 20px;
        align-items: flex-start;
    }

    .footer-policy--top {
        padding-right: 40px;
    }

    /* ── Tab Navigation — 검수: 태블릿 탭 스타일 (Figma 전역 공통) ── */
    .tab-nav {
        height: 66px;
    }

    .tab-item {
        width: auto;
        min-width: 256px;
        height: 66px;
        padding: 0 12px;
        font-size: 18px;
        line-height: 1.6;
    }
}

/* ════════════════════════════════════════════════════════
   MOBILE — max-width: 767px
   모든 페이지 공통 컴포넌트의 모바일 오버라이드
   ════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* ── Reset / Base ── */
    html {
        font-size: 16px;
    }

    .mo-br,
    .m-br {
        display: inline;
    }

    body {
        min-width: 0;
        width: 100%;
        overflow-x: clip;
        padding-top: 72px;
        /* 모바일 GNB 높이 보정 */
    }

    .inner {
        padding: 0 16px;
        max-width: 100%;
    }

    /* ── GNB ── */
    .gnb {
        height: 72px !important;
        padding: 0 16px !important;
    }

    .gnb.gnb-hidden {
        transform: translateX(-50%) translateY(-100%);
    }

    .gnb-logo {
        width: 156px;
        height: 30px;
    }

    .gnb-utils-links,
    .gnb-divider,
    .gnb-nav {
        display: none;
    }

    .gnb-menu-btn {
        width: 32px;
        height: 32px;
        gap: 5.5px;
    }

    .gnb-menu-btn span {
        width: 22px;
        height: 1.5px;
    }

    /* ── Page Header ── */
    .page-header {
        padding-top: 20px;
        padding-bottom: 30px;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }

    .page-header h1 {
        width: 100%;
        max-width: 100%;
        height: auto;
        font-size: 30px;
        line-height: 1.4;
        padding: 0 16px;
        box-sizing: border-box;
    }

    /* ── Tab Navigation ── */
    .tab-nav {
        margin-top: 0;
        height: auto;
        width: 100%;
        justify-content: center;
        align-items: stretch;
        gap: 0;
        /* border-bottom: 1px solid #E9E9E9; */
    }

    .tab-item {
        width: auto;
        height: 66px;
        box-sizing: border-box;
        padding: 0 10px;
        font-size: 16px;
        line-height: 150%;
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .mob-br {
        display: inline;
    }

    /* ── Support Section ── */
    .support-section {
        padding: 40px 0;
    }

    .support-banner {
        width: calc(100% - 32px);
        max-width: 100%;
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-template-rows: 80px auto;
        column-gap: 12px;
        row-gap: 28px;
        padding: 24px 10px;
        border-radius: 16px;
    }

    .support-icon {
        grid-column: 1;
        grid-row: 1;
        width: 80px;
        height: 80px;
    }

    .support-content-box {
        display: contents;
    }

    .support-info {
        display: contents;
    }

    .support-info h3 {
        grid-column: 2;
        grid-row: 1;
        font-size: 24px;
        line-height: 1.5;
        display: flex;
        align-items: center;
        text-align: left;
        margin: 0;
        height: 80px;
        white-space: pre-wrap;
    }

    .support-info p {
        grid-column: 1 / span 2;
        grid-row: 2;
        font-size: 16px;
        line-height: 26px;
        white-space: normal;
        margin: 0;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .btn-arrow-right,
    .support-card-arrow {
        display: none !important;
    }

}

@media (max-width: 767px) {

    /* ── Page Header ── */
    .page-header h1 {
        font-size: 30px;
    }

    /* ── BTN TOP ── */
    .btn-top {
        width: 44px;   /* 검수 0723: mob 44 */
        height: 44px;
        right: 16px;
        bottom: 16px;
    }

    /* ── Footer ── */
    .footer {
        padding: 40px 20px 60px;
        gap: 60px;
    }

    /* 상단: 버튼 2개만 (정책·유튜브는 하단으로) */
    .footer-top {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .footer-policy--top,
    .footer-yt--top {
        display: none;
    }

    .footer-actions {
        gap: 8px;
        width: 100%;
    }

    .footer-btn {
        width: auto;
        height: 48px;
        padding: 10px 12px 10px 20px;
        font-size: 16px;
    }

    .footer-btn-visit {
        width: 120px;
    }

    .footer-family-btn {
        width: 192px;
    }


    /* 하단: 정책+연락처(위) → 로고+유튜브(아래) */
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .footer-meta {
        order: 1;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .footer-brand {
        order: 2;
        justify-content: space-between;
        width: 100%;
    }

    .footer-policy--meta {
        display: flex;
        gap: 10px;
    }

    .footer-policy--meta a {
        font-size: 16px;
    }

    .footer-contact {
        align-items: flex-start;
        gap: 7px;
        width: 100%;
    }

    .footer-contact-line {
        gap: 10px;
    }

    .footer-contact-line a,
    .footer-contact-line .footer-addr {
        font-size: 14px;
    }

    .footer-copy {
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
    }

    .footer-yt--brand {
        display: flex;
        width: 48px;
        height: 48px;
    }

    .footer-logo {
        height: 28px;
    }

    .footer-logo img {
        height: 22px;
    }
}

/* 창 크기 조절 시 hover 방지 */
body.is-resizing * {
    pointer-events: none !important;
}