/* 폰트 ==================================================================== */
@font-face {
    font-family: 'Pretendard';
    src: url('fonts/PretendardVariable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NanumMyeongjo';
    src: url('fonts/nanum-myeongjo/NanumMyeongjo.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NanumMyeongjo';
    src: url('fonts/nanum-myeongjo/NanumMyeongjoBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 변수 =================================================================== */
:root {
    --font: 'Pretendard', sans-serif;
    --color-text: #28292B;    /* 본문/제목 */
    --color-sub: #787878;     /* 보조 텍스트 */
    --color-point: #568CC7;   /* 포인트 */
    --color-line: #F2F2F2;    /* 보더 */
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

body {
    font-family: var(--font);
    color: var(--color-text);
    /* 가로 스크롤 방지. clip이라 sticky 헤더는 그대로 동작 */
    overflow-x: clip;
    word-break: keep-all;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: var(--font);
}

/* 레이아웃 =============================================================== */
.inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* hero 제외 모든 섹션 상하 padding 120px (pc) */
.section {
    padding-top: 120px;
    padding-bottom: 120px;
    scroll-margin-top: 70px;
}

/* flex 유틸 ============================================================== */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.gap-2 { gap: 2px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* 환경별 노출 (기준 768px) */
.mobile-only { display: none; }
.pc-only { display: revert; }

/* 타이포그래피 / 버튼 ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    height: 56px;
    padding: 0 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
}

.btn-primary {
    border: none;
    background: var(--color-point);
    color: #FFF;
}

.btn-white {
    border: 1px solid var(--color-line);
    background: #FFF;
    color: var(--color-sub);
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
}

.section-description {
    color: var(--color-sub);
    text-align: center;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.7;
}

.section-sub-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
}

.point-color {
    color: var(--color-point);
}

/* 헤더 =================================================================== */
.header-main {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70px;
    background: #FFF;
    border-bottom: 1px solid #E5E8ED;
}

.header-main .logo {
    position: absolute;
    left: 90px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    line-height: 0;
}

.header-main .logo img {
    display: block;
    height: 36px;
    width: auto;
}

.header-main .gnb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1024px;
}

.gnb-menu {
    color: var(--color-sub);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.gnb-menu:hover {
    color: var(--color-point);
}

/* 햄버거 (≤1440에서 노출) */
.gnb-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.gnb-btn span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--color-text);
    transition: transform 0.25s, opacity 0.25s;
}

#gnb-toggle:checked ~ .gnb-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#gnb-toggle:checked ~ .gnb-btn span:nth-child(2) {
    opacity: 0;
}

#gnb-toggle:checked ~ .gnb-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-main .tel {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.header-main .tel .tel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #EAF1FA;
}

.header-main .tel .tel-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.header-main .tel .tel-label {
    color: var(--color-sub);
    font-size: 12px;
    font-weight: 400;
}

.header-main .tel .tel-num {
    color: var(--color-point);
    font-size: 19px;
    font-weight: 700;
}

/* 히어로 =================================================================== */
.hero {
    position: relative;
    aspect-ratio: 2880 / 1230;
    overflow: hidden;
}

/* 배경 아주 천천히 확대→복귀 반복 (Ken Burns) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/main/hero.png') center / cover no-repeat;
    animation: hero-zoom 24s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes hero-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 0 90px;
    text-align: center;
    color: #fff;
}

.hero-sub-title {
    font-family: Poppins;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-sub {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -1px;
}

/* 섹션 01: 협진 소개 ====================================================== */
.feature {
    text-align: center;
}

.feature-thumb {
    display: block;
    width: 320px;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
}

.feature-desc {
    color: var(--color-sub);
    font-size: 22px;
    line-height: 1.6;
}

/* 섹션 02: 의료진 소개 ==================================================== */
#doctors {
    background: #F7F9FC;
}

.doctor-card {
    flex: 1;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    background: #FFF;
}

.doctor-photo {
    position: relative;
}

.doctor-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.doctor-quote {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    text-align: center;
    color: #FFF;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    font-family: 'NanumMyeongjo';
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -2px;
}

.doctor-bar {
    padding: 18px;
    text-align: center;
    background: linear-gradient(90deg, #568CC7 0%, #1D61AC 100%);
}

.doctor-bar span {
    font-family: 'NanumMyeongjo';
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #FFF 6.94%, #E9F3FF 76.39%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.doctor-body {
    padding: 36px 40px;
}

.doctor-name {
    color: var(--color-point);
    font-size: 32px;
    line-height: 1.4;
    font-weight: 700;
}

.doctor-off {
    padding: 8px 16px;
    border-radius: 20px;
    background: #568CC7;
    color: #FFF;
    font-weight: 600;
    white-space: nowrap;
}

.doctor-role {
    color: #626262;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.doctor-career {
    margin-top: 8px;
}

.doctor-career li {
    position: relative;
    padding-left: 14px;
    color: var(--color-sub);
    font-size: 18px;
    line-height: 1.6;
}

.doctor-career li::before {
    content: "·";
    position: absolute;
    left: 3px;
}

/* 슬라이드: 무한 마퀴 (슬라이드 간 42px) */
.doctor-slider {
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: slide-marquee 45s linear infinite;
}

.slider-track img {
    display: block;
    width: 540px;
    height: auto;
    margin-right: 42px;
    border-radius: 16px;
}

@keyframes slide-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* 섹션 03: 심미치료 이유 ================================================== */
.reason-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    list-style: none;
    padding: 0;
}

.reason-card {
    padding: 36px 40px;
    border: 1px solid #E5E8ED;
    border-radius: 16px;
    background: #F7F9FC;
    text-align: left;
}

.reason-num {
    color: var(--color-point);
    font-size: 38px;
    font-weight: 800;
}

.reason-card .section-description {
    text-align: left;
}

/* 섹션 04: 치아미백 (심미치료 연장) ====================================== */
.whitening-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    list-style: none;
    padding: 0;
}

.whitening-card {
    overflow: hidden;
    border: 1px solid #E5E8ED;
    border-radius: 16px;
    background: #F7F9FC;
}

.whitening-card img {
    display: block;
    width: 100%;
    height: auto;
}

.whitening-body {
    padding: 28px 36px 36px;
    text-align: left;
}

.whitening-body .section-description {
    text-align: left;
}

/* 섹션 05: 치료 사례 (라미네이트·심미보철) =============================== */
.case-row:nth-child(1) {
    padding-bottom: 48px;
}

.case-row:nth-child(2) {
    padding: 48px 0;
}

.case-row:nth-child(3) {
    padding-top: 48px;
}

.case-row + .case-row {
    border-top: 1px solid #E5E8ED;
}

.case-photos {
    flex: 0 0 840px;
    max-width: 840px;
}

.case-text {
    text-align: left;
}

.case-text .section-description {
    text-align: left;
}

.case-photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
}

.case-photo img {
    display: block;
    width: 100%;
    height: auto;
}

/* BEFORE / AFTER 뱃지 — 이미지 한 장에 좌우로 붙는 라벨 (이미지 폭에 맞춰 유동) */
.case-photo::before,
.case-photo::after {
    position: absolute;
    top: clamp(10px, 1.5vw, 20px);
    padding: clamp(4px, 0.6vw, 6px) clamp(10px, 1.3vw, 18px);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.30);

    color: #FFF;
    font-family: 'Poppins';
    font-size: clamp(10px, 1.1vw, 14px);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.case-photo::before {
    content: "BEFORE";
    left: clamp(10px, 1.5vw, 20px);
}

.case-photo::after {
    content: "AFTER";
    right: clamp(10px, 1.5vw, 20px);
}

/* 섹션 06: 진료안내 ====================================================== */
#treatment {
    background: #F7F9FC;
}

/* 8개가 한 줄에서 화면 폭 따라 함께 축소 (≤768은 4개씩 2줄) — gap도 비례 */
.treat-nav {
    gap: clamp(8px, 1.4vw, 20px);
}

.treat-nav-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 152px;
    aspect-ratio: 152 / 180;
    padding: 8px;
    border-radius: 16px;
    border: 2px solid var(--color-point);
    background: #FFF;
    box-shadow: 0 4px 20px 0 rgba(86, 140, 199, 0.20);
    color: var(--color-point);
}

.treat-nav-item .treat-nav-label {
    color: var(--color-point);
}

.treat-ico {
    width: 100%;
    max-width: 100px;
    aspect-ratio: 1;
    height: auto;
    color: var(--color-point);
}

.treat-nav-label {
    color: var(--color-text);
    font-size: clamp(13px, 1.7vw, 24px);
    font-weight: 600;
    white-space: nowrap;
}

.treat-card {
    height: 400px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #E5E8ED;
    background: #FFF;
}

/* 짝수 카드는 이미지 우측 (지그재그) */
.treat-card:nth-child(even) {
    flex-direction: row-reverse;
}

.treat-photo {
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    object-fit: cover;
}

.treat-body {
    flex: 0 0 50%;
    align-items: flex-start;
    padding: 0 80px;
    text-align: left;
}

.treat-body .section-description {
    text-align: left;
    line-height: 1.7;
}

/* 카드가 화면 중앙에 오면 제목에 밑줄이 그어짐 */
.treat-title {
    position: relative;
    align-self: flex-start;
}

.treat-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 5px;
    background: var(--color-point);
    opacity: .3;
    transition: width 0.6s ease-out;
}

.treat-card.is-inview .treat-title::after {
    width: 100%;
}

.treat-btn {
    height: 48px;
    font-size: 16px;
}

/* 섹션 07: 장비·정밀진단 ================================================= */
/* 이미지가 화면 아래에 붙도록 하단 여백 없음 */
#equipment {
    padding-bottom: 0;
}

.equip-item {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.equip-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease-out;
}

.equip-item:hover img {
    transform: scale(1.05);
}

.equip-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12%;
    z-index: 1;
    text-align: center;
    color: #FFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.equip-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
}

.equip-desc {
    font-size: 22px;
    line-height: 1.7;
}

/* 섹션 08: 둘러보기 ====================================================== */
.tour-photo {
    width: 830px;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
}

/* 텍스트가 가로로 늘어지지 않게 폭 제한 */
.tour-text {
    max-width: 480px;
}

.tour-sub-title {
    font-size: 38px;
}

.tour-lead {
    font-size: 24px;
    font-weight: 700;
}

.tour-list {
    color: var(--color-sub);
    font-size: 18px;
    line-height: 1.9;
}

.tour-list li::before {
    content: "· ";
}

/* 슬라이드: 기본 400px, 가운데만 확대 */
.tour-swiper {
    width: 100%;
    padding: 30px 0;   /* 확대된 가운데 슬라이드가 잘리지 않도록 */
}

.tour-swiper .swiper-slide {
    width: 400px;
    transition: transform 0.5s ease;
}

.tour-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.tour-swiper .swiper-slide-active {
    transform: scale(1.12);
    z-index: 1;
}

/* 화살표: 확대된 가운데 슬라이드(400×1.12=448px) 양 옆에 붙임 */
.tour-swiper .swiper-button-prev,
.tour-swiper .swiper-button-next {
    z-index: 2;
    width: 60px;
    height: 60px;
    background: url('../images/main/arrow.png') center / contain no-repeat;
}

/* 기본 폰트 화살표 제거 */
.tour-swiper .swiper-button-prev::after,
.tour-swiper .swiper-button-next::after {
    content: none;
}

.tour-swiper .swiper-button-prev {
    left: calc(50% - 224px - 100px);
}

.tour-swiper .swiper-button-next {
    right: calc(50% - 224px - 100px);
    transform: scaleX(-1);
}

/* 섹션 09: 오시는 길 ===================================================== */
.map {
    width: 100%;
    height: 388px;
    border-radius: 16px;
    border: 1px solid #E5E8ED;
    overflow: hidden;
}

/* 지도 마커: 병원 핀 + 이름 */
.map-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.map-marker-name {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 700;
}

.map-info > li {
    flex: 1;
}

.map-ico {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #EAF1FA;
}

.map-ico svg {
    width: 22px;
    height: 22px;
}

.map-info-title {
    font-size: 17px;
    font-weight: 700;
}

.map-info-desc {
    color: var(--color-sub);
    font-size: 16px;
    line-height: 1.6;
}

/* 진료시간 카드 */
.hours-card {
    flex: 0 0 424px;
    padding: 36px;
    border: 1px solid #E5E8ED;
    border-radius: 16px;
    background: #F7F9FC;
}

.hours-title {
    font-size: 26px;
    font-weight: 700;
}

.hours-list {
    list-style: none;
    padding: 0;
    color: var(--color-sub);
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
}

.hours-list > li {
    height: 53px;
    border-bottom: 1px solid #E5E8ED;
}

.hours-list > li:last-child {
    border-bottom: none;
}

.hours-day {
    flex: 0 0 110px;
}

.hours-list .is-off {
    color: #C31C1C;
}

.hours-tag {
    margin-left: auto;   /* 오른쪽 끝 */
    padding: 7px 14px;
    border-radius: 300px;
    background: #D0E7FF;
    color: var(--color-point);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.hours-tel {
    color: var(--color-point);
    font-size: 34px;
    font-weight: 700;
}

/* 반응형: 헤더 / 히어로 =================================================== */
@media (max-width: 1440px) {
    /* 공통 좌우 여백 */
    .inner {
        padding: 0 40px;
    }

    /* 헤더: 절대배치 풀고 로고 좌 · 전화+햄버거 우 */
    .header-main {
        justify-content: flex-start;
        gap: 16px;
        padding: 0 40px;
    }

    .header-main .logo,
    .header-main .tel {
        position: static;
        transform: none;
    }

    .header-main .tel {
        margin-left: auto;
    }

    .gnb-btn {
        display: flex;
    }

    /* gnb는 햄버거 열 때만 드롭다운 패널로 */
    .header-main .gnb {
        display: none;
    }

    #gnb-toggle:checked ~ .gnb {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        gap: 24px;
        padding: 28px 40px;
        background: #FFF;
        border-bottom: 1px solid #E5E8ED;
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
    }

    /* 히어로 */
    .hero-content {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-sub {
        font-size: 20px;
    }

    /* 섹션 09: 오시는 길 — 카드 폭·지도 높이 축소 */
    .hours-card {
        flex: 0 0 360px;
        padding: 32px;
    }

    .map {
        height: 420px;
    }

    .hours-tel {
        font-size: 28px;
    }

    /* 섹션 08: 둘러보기 — 이미지 유동, 폰트·화살표 축소 */
    .tour-photo {
        width: 55%;
        max-width: 830px;
        height: auto;
        aspect-ratio: 830 / 400;
    }

    .tour-sub-title {
        font-size: 30px;
    }

    .tour-lead {
        font-size: 21px;
    }

    .tour-list {
        font-size: 16px;
    }

    .tour-swiper .swiper-button-prev {
        left: calc(50% - 224px - 40px);
    }

    .tour-swiper .swiper-button-next {
        right: calc(50% - 224px - 40px);
    }

    /* 섹션 07: 장비 — 4열 유지, 폰트 축소 */
    .equip-title {
        font-size: 20px;
    }

    .equip-desc {
        font-size: 14px;
    }

    /* 섹션 05: 사진 고정폭 → 유동 (텍스트 최소폭 확보) */
    .case-photos {
        flex: 1 1 auto;
        min-width: 0;
    }

    .case-text {
        flex: 0 0 300px;
    }

    /* 섹션 01: 썸네일 고정폭 → 유동 */
    .features {
        gap: 32px;
    }

    .feature {
        flex: 1;
    }

    .feature-thumb {
        width: 100%;
    }

    .feature-title {
        font-size: 20px;
    }

    .feature-desc {
        font-size: 18px;
    }

    /* 섹션 02: 카드 좁아짐 → 폰트 축소 */
    .doctor-quote {
        font-size: 24px;
        line-height: 32px;
    }

    .doctor-bar span {
        font-size: 20px;
        line-height: 30px;
    }

    .doctor-name {
        font-size: 22px;
    }

    .doctor-role {
        font-size: 17px;
    }

    .doctor-career li {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .mobile-only { display: revert; }
    .pc-only { display: none; }

    .inner {
        padding: 0 20px;
    }

    /* 헤더: 전화 아이콘만, 햄버거 유지 */
    .header-main {
        height: 60px;
        padding: 0 20px;
    }

    .header-main .logo img {
        height: 28px;
    }

    .header-main .tel .tel-info {
        display: none;
    }

    /* 히어로: 납작한 비율 대신 최소 높이 */
    .hero {
        padding: 50px 0;
        aspect-ratio: auto;
    }

    .hero-content {
        padding: 0 24px;
        gap: 32px;
    }

    .hero-sub-title {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-sub {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 버튼 세로 꽉차게 */
    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    /* 섹션 01: 2열 카드 */
    .section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-description {
        font-size: 16px;
    }

    .section-sub-title {
        font-size: 20px;
    }

    .features {
        flex-wrap: wrap;
        gap: 24px 16px;
    }

    .feature {
        flex: 0 0 calc(50% - 8px);
    }

    .feature-title {
        font-size: 16px;
    }

    .feature-desc {
        font-size: 14px;
    }

    /* 섹션 02: 카드 세로 적층, 슬라이드 축소 */
    .doctor-cards {
        flex-direction: column;
    }

    .doctor-quote {
        bottom: 0;
        font-size: 18px;
    }

    .doctor-bar span {
        font-size: 18px;
        line-height: 28px;
    }

    .doctor-body {
        padding: 16px 20px;
    }

    .doctor-name {
        font-size: 20px;
    }

    .doctor-role {
        font-size: 16px;
    }

    .doctor-career li {
        font-size: 15px;
    }

    .slider-track img {
        width: 280px;
        margin-right: 20px;
    }

    /* 섹션 03: 1열 */
    .reason-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .reason-card {
        padding: 28px 24px;
    }

    .reason-title {
        font-size: 20px;
    }

    .reason-desc {
        font-size: 15px;
    }

    /* 섹션 04: 치아미백 1열 */
    .whitening-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .whitening-body {
        padding: 20px 24px 24px;
    }

    /* 섹션 05: 치료 사례 세로 적층 */
    .case-row {
        flex-direction: column;
        gap: 24px;
        padding: 32px 0;
    }

    .case-text,
    .case-photos {
        flex: none;
        max-width: none;
    }

    .case-photos {
        gap: 16px;
    }

    /* 섹션 06: 진료안내 — 카드 세로 적층 */
    /* 4개씩 2줄 */
    .treat-nav {
        gap: 10px;
    }

    .treat-nav-item {
        flex: 0 0 calc(25% - 8px);
        max-width: none;
        padding: 10px 4px;
    }

    .treat-nav-label {
        font-size: 12px;
    }

    /* 푸터 */
    /* 섹션 09: 오시는 길 — 세로 적층 */
    .map-area {
        flex-direction: column;
        gap: 32px;
    }

    .map {
        height: 300px;
    }

    .map-info {
        flex-direction: column;
        gap: 20px;
    }

    .hours-card {
        flex: none;
        padding: 24px;
    }

    .hours-title {
        font-size: 20px;
    }

    .hours-list {
        font-size: 16px;
    }

    .hours-list > li {
        height: 46px;
    }

    .hours-tel {
        font-size: 26px;
    }

    /* 섹션 08: 둘러보기 — 세로 적층 */
    .tour-intro {
        flex-direction: column-reverse;
        gap: 32px;
    }

    .tour-photo {
        width: 100%;
        max-width: none;
    }

    .tour-text {
        width: 100%;
        gap: 12px;
        max-width: none;
    }

    .tour-lead {
        font-size: 18px;
    }

    /* 슬라이드: 화면 대비 유동 폭 */
    .tour-swiper {
        padding: 24px 0;
    }

    .tour-swiper .swiper-slide {
        width: 60vw;
        max-width: 260px;
    }

    .tour-swiper .swiper-slide-active {
        transform: scale(1.06);
    }

    /* 화살표: 슬라이드 위에 겹쳐 배치 */
    .tour-swiper .swiper-button-prev,
    .tour-swiper .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .tour-swiper .swiper-button-prev {
        left: 12px;
    }

    .tour-swiper .swiper-button-next {
        right: 12px;
    }

    /* 섹션 07: 장비 — 2×2 */
    .equip-list {
        flex-wrap: wrap;
    }

    .equip-item {
        flex: 0 0 50%;
    }

    .equip-title {
        font-size: 17px;
    }

    .equip-desc {
        font-size: 13px;
    }

    .treat-card,
    .treat-card:nth-child(even) {
        flex-direction: column;
        height: auto;
    }

    .treat-photo {
        flex: none;
        width: 100%;
        height: auto;
    }

    .treat-body {
        flex: none;
        padding: 24px;
    }

    .treat-body .section-description {
        font-size: 15px;
    }
}

/* 사이드바 =============================================================== */
.sidebar {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
}

.sidebar-menu {
    list-style: none;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 2px 2px 15px 0 rgba(0, 0, 0, 0.10);
}

.sidebar-menu > li + li {
    border-top: 1px solid var(--color-line);
}

.sidebar-item {
    width: 88px;
    padding: 18px 0;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* 아이콘 fill이 currentColor라 링크 색을 그대로 따라감 */
.sidebar-ico {
    width: 30px;
    height: 30px;
    transition: color 0.2s;
}

.sidebar-item {
    transition: color 0.2s;
}

.sidebar-item:hover {
    color: var(--color-point);
}

.sidebar-top {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--color-point);
    box-shadow: 0 4px 20px rgba(86, 140, 199, 0.35);
    transition: transform 0.25s;
}

.sidebar-top:hover {
    transform: translateY(-3px);
}

/* 모바일: 우측 사이드바 → 하단 고정바 */
@media (max-width: 768px) {
    .sidebar {
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        transform: none;
    }

    .sidebar-menu {
        flex-direction: row;
        width: 100%;
        padding: 0;
        border-radius: 0;
        border-top: 1px solid var(--color-line);
        background: #FFF;
    }

    .sidebar-menu > li {
        flex: 1;
    }

    /* 세로 구분선 → 가로 배치용 세로선 */
    .sidebar-menu > li + li {
        border-top: none;
        border-left: 1px solid var(--color-line);
    }

    .sidebar-item {
        width: 100%;
        padding: 10px 4px;
        font-size: 11px;
    }

    .sidebar-ico {
        width: 22px;
        height: 22px;
    }

    /* TOP 버튼은 하단바 위 오른쪽에 띄움 */
    .sidebar-top {
        position: fixed;
        right: 16px;
        bottom: 80px;
        width: 44px;
        height: 44px;
    }

    /* 하단바에 콘텐츠가 가리지 않도록 */
    body {
        padding-bottom: 64px;
    }
}

/* 푸터 =================================================================== */
.footer-main {
    background: #2C2E32;
    color: #FFF;
}

.footer-top {
    gap: 100px;
    padding: 60px 0;
}

.footer-logo {
    width: 137px;
    height: auto;
    align-self: flex-start;
}

.footer-info {
    color: #B5B5B5;
}

.footer-name {
    font-size: 20px;
    font-weight: 700;
}

.footer-meta {
    line-height: 1;
    font-weight: 300;
}

.footer-link {
    align-self: flex-start;
    font-weight: 700;
    color: #fff;
}

button.footer-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
}

.footer-notice {
    padding: 15px;
    border-top: 1px solid #FFF;
    text-align: center;
    color: #FFF;
}

/* 푸터 반응형 (푸터 정의 뒤에 와야 오버라이드가 먹음) */
@media (max-width: 1440px) {
    .footer-top {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 24px;
        padding: 40px 20px;
    }

    .footer-logo {
        width: 110px;
    }

    .footer-name {
        font-size: 17px;
    }

    .footer-meta {
        flex-direction: column;
        gap: 6px;
        line-height: 1.5;
        font-size: 13px;
    }

    .footer-link {
        font-size: 14px;
    }

    .footer-notice {
        padding: 15px 20px;
        text-align: left;
        font-size: 12px;
        line-height: 1.6;
    }
}

/* 메인 팝업 ================================================================ */
#popupArea {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    margin: 0;
    display: none;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 40px 20px;
    overflow-y: auto;
}

#popupArea.is-visible {
    display: flex;
}

#popupArea .item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    width: min(420px, 92vw);
    flex: 0 0 auto;
}

#popupArea.size-l .item {
    width: min(550px, 92vw);
}

#popupArea.size-m .item {
    width: min(550px, 44vw);
}

#popupArea.size-s .item {
    width: min(450px, 30vw);
}

#popupArea .item .popup-image {
    display: block;
    text-decoration: none;
    line-height: 0;
}

#popupArea .item .popup-image img {
    width: 100%;
    height: auto;
    display: block;
}

#popupArea .item .button_group {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    background: #1a1a1a;
}

#popupArea .item .button_group button {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: #fff;
    padding: 10px 16px;
    font-size: 13px;
    cursor: pointer;
    line-height: 1.4;
}

#popupArea .item .button_group button+button {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

#popupArea .item .button_group button:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    #popupArea {
        padding: 0;
        gap: 0;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    #popupArea .item,
    #popupArea.size-l .item,
    #popupArea.size-m .item,
    #popupArea.size-s .item {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 86vw;
        max-width: 400px;
        transform: translate(-50%, -50%);
    }

    #popupArea .item .button_group button {
        flex: 1 1 auto;
        padding: 12px 14px;
        font-size: 12px;
        text-align: center;
    }
}