/*
Theme Name: Uami
Description: 우아미한의원 리뉴얼 테마 — 정보형 클리닉 사이트 시스템. 디자인 시스템 문서 별도 관리.
Version: 0.2.0
Author: studioplanc
Text Domain: uami
*/

/* ==========================================================
   1. 디자인 토큰 (:root) — 디자인 시스템 문서 기준
   ========================================================== */
:root {
    /* 색 — 포인트(앰버→우아미 블루) */
    --primary: #2254A5;
    --primary-deep: #1B4384;
    --primary-sky: #71CFF5;
    --primary-soft: #99C1E6;
    --primary-wash: #EAF3FB;

    /* CTA·다크(브라운→딥 네이비) */
    --cta: #1A2E4A;
    --cta-hover: #2254A5;

    /* 보조 액센트 */
    --accent-pink: #EE7EB2;
    --accent-rose: #DE6685;
    --accent-coral: #F1A4A0;
    --accent-lavender: #D3B7CD;

    /* 잉크·본문 */
    --ink: #231F20;
    --ink-2: #232323;
    --body-muted: #696969;
    --on-dark: #FFFFFF;
    --muted-on-dark: rgba(255, 255, 255, 0.65);

    /* 라인·면 */
    --hairline: #DDDDDD;
    --hairline-soft: #F0F0F0;
    --divider: #C9CCDC;
    --line: #BFBFBF;
    --canvas: #FFFFFF;
    --canvas-cool: #F5F7FA;
    --surface-mist: #F6F7F9;
    --surface-navy: #1A2E4A;
    --surface-void: #0E1726;
    --alert: #FFBF00;

    /* 폰트 — 3폰트 체계 */
    --font: 'Pretendard Variable', Pretendard, -apple-system, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    --serif: var(--font);
    --en: var(--font);
    --num: var(--font);

    /* 타이포 스케일 — rem(뷰포트 유동) · 1640px에서 1rem=10px */
    --heroDisplay: 5.6rem;
    --mainTit: 4.2rem;
    --subTit: 3.6rem;
    --bigTxt: 2.8rem;
    --serifQuote: 2.6rem;
    --cardTit: 2.2rem;
    --lead: 1.8rem;
    --txt: max(16px, 2rem);
    /* 제목에 붙는 작은 본문(카드 설명 등) — Figma 17px, 모바일 하한 15px */
    --subTxt: max(1.7rem, 15px);
    --labelEn: max(13px, 1.5rem);
    --caption: max(12px, 1.4rem);

    /* 라운드 */
    --radiusSm: 10px;
    --radiusCard: 20px;
    --radiusCardLg: 24px;
    --radiusPhoto: 40px;
    --pill: 999px;

    /* 그림자 (카드 호버 한정) */
    --shadow-soft: 0 8px 24px rgba(26, 46, 74, 0.06);
    --shadow-lift: 0 12px 32px rgba(26, 46, 74, 0.10);

    /* 레이아웃 */
    --in: min(1640px, 100%);
    --inNarrow: min(1340px, 100%);
    --inPd: 20px;
    /* 화면 가장자리 여백 — 헤더와 메인 히어로가 같은 선을 쓰도록 공유한다 */
    --edgePd: 40px;
    --hdH: max(60px, 8rem);
    --sectSm: 6rem;
    --sectMd: 8rem;
    --sectLg: 12rem;
    --blockGap: 4rem;
}

/* ==========================================================
   반응형 타이포 — 계단식 px 하한 (2026-07-14)
   제목 변수에 px 하한이 없어 태블릿(768~1240px)에서 과축소되던 문제 해결.
   순서: 1640 → 1240 → 768 → 600 (max-width 캐스케이드: 작은 화면이 뒤에서 우선)
   ========================================================== */
@media (max-width: 1640px) {
    :root {
        --heroDisplay: max(5rem, 50px);
        --mainTit: max(4.2rem, 40px);
        --subTit: max(3.2rem, 32px);
        --bigTxt: max(2.4rem, 24px);
        --serifQuote: max(2.3rem, 23px);
        --cardTit: max(2rem, 20px);
        --lead: max(1.8rem, 18px);
        --txt: max(1.8rem, 18px);
    }
}

@media (max-width: 1240px) {
    :root {
        --heroDisplay: max(4.2rem, 42px);
        --mainTit: max(3.6rem, 36px);
        --subTit: max(3rem, 30px);
        --bigTxt: max(2.2rem, 22px);
        --serifQuote: max(2.1rem, 21px);
        --cardTit: max(1.9rem, 19px);
        --lead: max(1.7rem, 17px);
        --txt: max(1.7rem, 17px);
    }
}

@media (max-width: 768px) {
    :root {
        --heroDisplay: 34px;
        --mainTit: 30px;
        --subTit: 24px;
        --bigTxt: 20px;
        --serifQuote: 19px;
        --cardTit: 18px;
        --lead: 16px;
        --txt: 16px;
    }
}

@media (max-width: 600px) {
    :root {
        --heroDisplay: 28px;
        --mainTit: 26px;
        --subTit: 22px;
        --bigTxt: 19px;
        --serifQuote: 18px;
        --cardTit: 17px;
        --lead: 16px;
        --txt: 16px;
        --sectLg: 70px;
        --sectMd: 52px;
        --sectSm: 44px;
        --blockGap: 28px;
    }
}

/* ==========================================================
   2. 베이스
   ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: clamp(7.2px, 0.6098vw, 10px);
}

/* 유동 스케일: 1640px=10px 기준 */
body {
    font-family: var(--font);
    font-size: var(--txt);
    font-weight: 400;
    line-height: 1.75;
    color: var(--ink-2);
    background: var(--canvas);
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--ink);
}

.inner {
    max-width: var(--in);
    margin: 0 auto;
    padding-left: var(--inPd);
    padding-right: var(--inPd);
}

/* ==========================================================
   2-1. 공통 패턴 — 여러 섹션이 똑같이 쓰는 규칙 모음 (2026-07-29)
   ⚠️ 여기 값을 바꾸면 아래 나열된 모든 섹션에 한꺼번에 반영됩니다.
   새 섹션도 같은 모양이면 새로 쓰지 말고 여기 선택자만 추가하세요.
   ========================================================== */
/* 섹션 위·아래 여백 — 인접 섹션 사이가 18rem(위 12 + 아래 6)이 되도록 통일 (2026-07-30)
   ⚠️ 개별 섹션에서 padding 을 다시 선언하면 이 통일이 깨집니다. 반응형 축소는 --sectLg/--sectSm 이 담당.
   배경색이 있는 밴드(intro · reviews · special)와 story 는 밴드 내부 여백이라 제외했습니다. */
.uami-highlight,
.uami-limits,
.uami-causes,
.uami-why,
.uami-compare,
.uami-care,
.uami-cases,
.uami-treatments,
.uami-lctabs,
.uami-diagram,
.uami-areas,
.uami-pinmap,
.uami-visit,
.uami-checklist,
.uami-heatflow {
    padding: var(--sectLg) 0 var(--sectSm);
}

/* 섹션 제목 — 원래 7곳에 같은 내용이 흩어져 있던 것 (2026-07-29) */
.uami-limits-tit,
.uami-lctabs-tit,
.uami-lctabs .lct-care>.tit,
.uami-lctabs .lct-cases .head .tit,
.uami-banner .bn-tit,
.uami-areas-tit,
.uami-visit-tit,
.uami-checklist-tit,
.uami-heatflow-tit,
.uami-visit .vs-addr .a {
    color: var(--ink);
    font-size: var(--mainTit);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

/* 섹션 안쪽 컨테이너 (좁은 폭) — 원래 7곳에 같은 내용이 흩어져 있던 것 (2026-07-29) */
.uami-compare-in,
.uami-care-in,
.uami-diagram-in,
.uami-areas-in,
.uami-pinmap-in,
.uami-story-in,
.uami-visit-in,
.uami-checklist-in,
.uami-heatflow-in,
.uami-lctabs-in {
    margin: 0 auto;
    padding: 0 var(--inPd);
    width: var(--inNarrow);
}

/* 사진 꽉 채우기 (부모가 크기를 정함) — 원래 7곳에 같은 내용이 흩어져 있던 것 (2026-07-29) */
.uami-compare-table .cmp-photo,
.uami-care-list .img_box img,
.uami-lctabs .lct-lead .img_box img,
.uami-lctabs .lct-signs .circle img,
.uami-diagram .dg-figure .img_box img,
.uami-banner .bn-img img,
.uami-areas .circle img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* 섹션 안쪽 컨테이너 (1340px) — 원래 4곳에 같은 내용이 흩어져 있던 것 (2026-07-29) */
.uami-treatments-in,
.uami-highlight-in,
.uami-limits-in,
.uami-causes-in {
    margin: 0 auto;
    padding: 0 var(--inPd);
    width: min(1340px, 100%);
}

/* 사진 꽉 채우기 (부모에 절대배치) — 원래 4곳에 같은 내용이 흩어져 있던 것 (2026-07-29) */
.uami-treatment-item .img_box img,
.uami-cases .img_wrap img,
.uami-highlight-img img,
.uami-cause-item .img_box img {
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
}

/* 슬라이더 화살표 버튼 (treatments · causes · why 공용) — 원래 3곳에 복붙돼 있던 것 (2026-07-29) */
.uami-treatments-ctrl .sbtn,
.uami-causes-ctrl .sbtn,
.uami-why .sbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.2rem;
    height: 5.2rem;
    padding: 0;
    background: transparent;
    border: 1px solid #BFBFBF;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 슬라이더 화살표 아이콘 — 원래 3곳에 복붙돼 있던 것 (2026-07-29) */
.uami-treatments-ctrl .sbtn .ico,
.uami-causes-ctrl .sbtn .ico,
.uami-why .sbtn .ico {
    width: 25%;
    height: 25%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20.001 20"><path d="M10,0,8.237,1.762,15.212,8.75H0v2.5H15.212L8.237,18.237,10,20,20,10Z" fill="%231c1c1c"/></svg>') no-repeat center / contain;
    transition: background 0.3s ease;
}

/* 슬라이더 진행바 — 원래 2곳에 복붙돼 있던 것 (2026-07-29) */
.uami-treatments-ctrl .swiper-pagination-progressbar,
.uami-causes-ctrl .swiper-pagination-progressbar {
    position: relative;
    width: 8rem;
    height: 0.48rem;
    border-radius: 100rem;
    overflow: hidden;
    background-color: #E6E6E6;
}

/* 슬라이더 화살표 묶음 — 원래 3곳에 복붙돼 있던 것 (2026-07-29) */
.uami-treatments-ctrl .btn-wrap,
.uami-causes-ctrl .btn-wrap,
.uami-why .btn-wrap {
    display: flex;
    align-items: center;
    margin-left: 3.2rem;
}

/* 슬라이더 번호 표시(현재/전체) — 원래 3곳에 복붙돼 있던 것 (2026-07-29) */
.uami-treatments-ctrl .paging,
.uami-causes-ctrl .paging,
.uami-why .paging {
    display: flex;
    align-items: center;
}

/* 섹션 제목 — 30px 계열 — 원래 3곳에 복붙돼 있던 것 (2026-07-29) */
.uami-treatments-tit,
.uami-cases-tit,
.uami-highlight-tit {
    margin: 0;
    font-size: max(4.2rem, 30px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

/* 섹션 부제 — 16px 계열 — 원래 3곳에 복붙돼 있던 것 (2026-07-29) */
.uami-treatments-sub,
.uami-cases-sub,
.uami-highlight-sub {
    margin: 1.9rem 0 0;
    font-size: max(1.8rem, 16px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    word-break: keep-all;
}

/* 섹션 제목 — mainTit · 행간 1.5 — 원래 3곳에 복붙돼 있던 것 (2026-07-29) */
.uami-care-tit,
.uami-story .st-values .list .tit,
.uami-story .st-doctor .tit {
    margin: 0;
    font-size: var(--mainTit);
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
}

/* 섹션 제목 — mainTit · 가운데 정렬 — 원래 2곳에 복붙돼 있던 것 (2026-07-29) */
.uami-diagram-tit,
.uami-pinmap-tit {
    margin: 0;
    font-size: var(--mainTit);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
    text-align: center;
}

/* 섹션 부제 — lead · 가운데 정렬 — 원래 2곳에 복붙돼 있던 것 (2026-07-29) */
.uami-diagram-sub,
.uami-pinmap-sub {
    margin: 2.4rem 0 0;
    font-size: var(--lead);
    font-weight: 500;
    line-height: 1.7;
    color: var(--ink);
    text-align: center;
}


.num {
    font-family: var(--num);
    font-weight: 700;
    color: var(--primary);
}


/* ==========================================================
   3. 헤더
   ========================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--hdH);
    background: #fff;
    transition: box-shadow .3s;
    z-index: 1000;
}

body.is-scroll .site-header {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.075);
}

.site-header .inner {
    height: 100%;
    max-width: none;
    /* 메인 히어로와 같은 --edgePd 를 쓴다(전엔 8rem 기반이라 80/78/60/49px 로 따로 놀았다) */
    padding-left: var(--edgePd);
    padding-right: var(--edgePd);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-header .site-logo,
.site-header .header-cta {
    position: relative;
    z-index: 2;
}

.site-header .main-nav {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: stretch;
    pointer-events: none;
}

.site-header .main-nav .gnb {
    pointer-events: auto;
}

@media (max-width: 1240px) {
    .site-header .main-nav {
        display: none;
    }
}

.site-logo {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.site-logo .logo-img {
    display: block;
    height: max(36px, 5rem);
    width: auto;
}

.gnb {
    display: flex;
    gap: 2rem;
    height: 100%;
}

.gnb>li {
    height: 100%;
    display: flex;
    align-items: center;
}

.gnb>li>a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 3rem;
    font-size: 2rem;
    font-weight: 700;
    color: #1c1c1c;
    transition: .3s;
}

@media (min-width: 1241px) {
    .gnb>li>a:hover {
        color: var(--primary);
    }

    .gnb>li.active>a {
        color: var(--primary);
    }
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

/* ---- GNB 메가 서브메뉴 (2026-07-13) ---- */
.gnb-body {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ececec;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 999;
}

.gnb-body::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 25%;
    right: 25%;
    height: var(--hdH);
}

.main-nav .gnb:hover+.gnb-body,
.main-nav .gnb-body:hover {
    opacity: 1;
    pointer-events: auto;
}

.gnb-body .dep1 {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 max(20px, 8rem);
}

.gnb-body .dep1>li {
    padding: 3rem 2rem 4.5rem;
}

.gnb-body .dep1>li>strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1c1c1c;
    transition: color .3s;
}

.gnb-body .dep1>li:hover>strong {
    color: var(--primary);
}

.gnb-body .dep2>li {
    margin-top: 1.4rem;
    font-size: max(14px, 1.6rem);
    line-height: 1.4;
    letter-spacing: -.02em;
}

.gnb-body .dep2>li>a {
    color: #555;
    transition: .3s;
    word-break: keep-all;
}

.gnb-body .dep2>li>a:hover {
    color: var(--primary);
}

.gnb-body .dep2>li>a.active {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 1240px) {
    .gnb-body {
        display: none;
    }
}

.header-user {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    transition: background .2s ease;
}

.header-user:hover {
    background: var(--primary-wash);
}

.header-user svg {
    width: max(22px, 2.6rem);
    height: max(22px, 2.6rem);
}

.header-tel {
    font-family: var(--num);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: .02em;
}

/* ==========================================================
   4. 버튼 문법 (pill)
   ========================================================== */


/* 모바일 드로어 */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    align-items: center;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: .25s;
}

@media (max-width: 1240px) {

    .gnb {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-drawer {
        position: fixed;
        top: var(--hdH);
        left: 0;
        right: 0;
        background: var(--canvas);
        border-top: 1px solid var(--hairline-soft);
        padding: 20px var(--inPd) 32px;
        display: none;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
    }

    .mobile-drawer.open {
        display: block;
    }

    .mobile-drawer a {
        display: block;
        padding: 14px 6px;
        font-size: 17px;
        font-weight: 600;
        border-bottom: 1px solid var(--hairline-soft);
    }
}

@media (min-width: 1241px) {
    .mobile-drawer {
        display: none !important;
    }
}

.site-main {
    padding-top: 0;
}

.site-main--flush {
    padding-top: 0;
}

/* ==========================================================
   5. 섹션 문법
   ========================================================== */


/* 스크롤 리빌 */
.reveal>* {
    opacity: 0;
    transform: translateY(4rem);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.active>* {
    opacity: 1;
    transform: translateY(0);
}

.reveal.active>*:nth-child(2) {
    transition-delay: .1s;
}

.reveal.active>*:nth-child(3) {
    transition-delay: .2s;
}

.reveal.active>*:nth-child(4) {
    transition-delay: .3s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal>* {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* 비주얼 히어로 */


/* 딥 네이비 밴드 (페이지당 1개) */


/* ==========================================================
   6. 카드
   ========================================================== */


/* 사진 */


/* ==========================================================
   7. 서브페이지
   ========================================================== */
.sub-hero {
    padding: var(--sectLg) 0 var(--sectMd);
    text-align: center;
}

.sub-hero .subtit {
    display: block;
    font-size: var(--lead);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 18px;
    line-height: 1;
}

.sub-hero h1 {
    font-size: var(--mainTit);
    line-height: 1.45;
}

.sub-hero .lead {
    margin-top: 18px;
    color: var(--body-muted);
    font-size: var(--lead);
}

.sub-content {
    padding: var(--sectMd) 0 var(--sectLg);
}

.sub-content .inner {
    max-width: var(--inNarrow);
}

/* ==========================================================
   8. 공통 하단 CTA + 푸터
   ========================================================== */


/* ==========================================================
   9. FAQ 아코디언 (S10 — QAPage)
   ========================================================== */


/* 카운터 밴드 */


/* ---- 모바일 드로어 아코디언 (2026-07-13) ---- */
.drawer-dep1>li {
    border-bottom: 1px solid var(--hairline-soft, #eee);
}

.drawer-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 6px;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink, #231F20);
    font-family: inherit;
    text-align: left;
}

.drawer-arrow {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform .2s;
    margin-right: 4px;
}

.drawer-dep1>li.open .drawer-arrow {
    transform: rotate(225deg);
}

.drawer-dep2 {
    display: none;
    padding: 4px 6px 14px;
}

.drawer-dep1>li.open .drawer-dep2 {
    display: block;
}

.drawer-dep2>li>a {
    display: block;
    padding: 9px 10px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    border-bottom: 0;
}

.drawer-dep2>li>a:active {
    color: var(--primary-deep, #1A2E4A);
}

.drawer-dep2>li>a.active {
    color: var(--primary);
    font-weight: 700;
}

.drawer-dep1>li.current .drawer-cat {
    color: var(--primary);
}


/* ==========================================================
   푸터 — 두드림 구조 · 피그마 37:3 (2026-07-13)
   ========================================================== */
.site-footer {
    background: #fff;
}

/* ==========================================================
   푸터 — 그리드/반응형 스펙 (2026-07-22 재작업)
   cont_box = grid(왼쪽 50% 콘텐츠 · 오른쪽 map 두 행 세로합침)
   ft_location(row1) / ft_info(row2, 상단 라인 열 전체) / map(col2, row 1/3)
   브레이크포인트: 2000 / 1640 / 1240 / 769 / 600
   ========================================================== */
.site-footer .ft_cont {
    width: 100%;
    border-top: 1px solid #ddd;
}

.site-footer .cont_box {
    display: grid;
    grid-template-columns: 50%;
}

.site-footer .ft_location {
    /* 좌우 여백은 콘텐츠 폭을 직접 깎으므로 과하면 지도버튼·진료시간이 눌립니다.
       rem 이 1640px 에서 10px 상한이라 20rem=400px 는 과대 → 12rem(240px)으로. */
    padding: 10rem 12rem 0;
}

.site-footer .map {
    grid-column: 2;
    grid-row: 1 / 3;
    position: relative;
}

.site-footer .map a {
    position: absolute;
    inset: 0;
    display: block;
}

.site-footer .map img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.site-footer .map #ftNaverMap {
    /* 네이버 지도가 이 요소에 인라인 position:relative 를 덮어쓰므로 inset 은 듣지 않습니다.
       따라서 height:100% 가 필요하고, 부모 .map 은 padding-top 대신 실제 높이(aspect-ratio)를
       가져야 합니다 — padding 으로 만든 높이는 콘텐츠 높이 0 이라 100% 가 0 이 됩니다. */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* 지도 마커 — 원본 230px 기준으로 화면에 따라 축소.
   transform-origin 을 포인터 끝(115px 77.43px)에 두어 배율이 바뀌어도 좌표가 유지됩니다. */
.site-footer .map img[src$="map-anchor.svg"],
.uami-visit .vs-map img[src$="map-anchor.svg"] {
    transform-origin: 115px 77.43px;
    transform: scale(1);
}

/* 주소 + 복사 */
.ft_location .address .txt {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ft_location .copy_target {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
}


/* 대중교통 / 주차안내 */
.way_list {
    margin-top: 2rem;
}

.way_list .item {
    display: flex;
    align-items: flex-start;
}

.way_list .item+.item {
    margin-top: 1.5rem;
}

.way_list .tit {
    flex-shrink: 0;
    padding: 0.5em 0.625em;
    line-height: 1;
    margin-right: 1em;
    border-radius: 0.4rem;
    background: var(--primary);
    color: #fff;
    font-size: max(1.35rem, 13px);
    font-weight: 700;
}

.way_list .txt_box {
    font-size: max(1.8rem, 15px);
    color: var(--ink);
    font-weight: 500;
}

.way_list .info_txt {
    margin-top: 0.3em;
    font-size: max(1.6rem, 13px);
    color: #696969;
}

/* 지도 앱 버튼 */
.btn_list {
    display: flex;
    flex-wrap: wrap;
    /* 아이콘 높이가 서로 달라도(PNG 내부 여백 보정) 알약 높이는 같게 */
    align-items: stretch;
    gap: 0.6em;
    margin-top: 3rem;
}

.btn_list .item a {
    height: 100%;
}

.btn_list .item {
    display: flex;
    align-items: center;
}

/* 간격은 .btn_list 의 gap 이 담당 — 줄바꿈 시 첫 항목이 밀리지 않게 */

.btn_list .item a {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    padding: 0.8em 1.5em 0.7em 1.2em;
    border: 1px solid #ddd;
    border-radius: 10rem;
    background: #fff;
    color: var(--ink);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.btn_list .item a:hover {
    background: #1c1c1c;
    color: #fff;
}

.btn_list .ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 1.4em;
    margin-right: 0.3em;
}

.btn_list .ico img {
    display: block;
    height: 100%;
    width: auto;
}

/* 네이버/카카오/구글 PNG는 내부 여백이 있어 티맵과 시각 크기 맞춤 (2026-07-22) */
.btn_list .item:nth-child(-n+3) .ico {
    height: 1.8em;
}

/* 대표전화 + 진료시간 */
.info_cont {
    display: flex;
    margin-top: 6rem;
}

.info_cont .tit {
    font-size: max(1.7rem, 15px);
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 0.8em;
}

.info_cont .tel {
    margin-right: 19rem;
}

.info_cont .tel a {
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}

.info_cont .time_table .table {
    border-collapse: collapse;
    width: auto;
    text-align: left;
    font-size: max(1.7rem, 14px);
    font-weight: 500;
    margin-bottom: 0.8em;
}

.info_cont .time_table tr {
    display: block;
}

.info_cont .time_table tr+tr {
    margin-top: 0.2em;
}

.info_cont .time_table tr td {
    display: inline-block;
    color: var(--ink);
}

.info_cont .time_table tr td:last-child {
    /* "10:00 - 19:00" 이 중간에서 끊기지 않도록 */
    white-space: nowrap;
}

.info_cont .time_table tr td:first-child {
    /* 요일 라벨("월/수/목/금")도 끊기지 않게. rem 이 작아지면 8.5rem 로는 부족해
       고정폭 대신 min-width 로 두어 필요하면 늘어나게 합니다. */
    min-width: 8.5rem;
    padding-right: 0.6em;
    white-space: nowrap;
    font-weight: 600;
}

.info_cont .time_table em {
    font-style: normal;
    color: var(--primary);
    font-size: 0.9em;
}

.info_cont .time_table .info_txt {
    font-size: max(1.6rem, 13px);
    color: #696969;
    line-height: 1.7;
}

/* 하단 정보 — 별도 행, 상단 라인이 열 전체에 걸침 */
.ft_info {
    grid-row: 2;
    margin-top: 8rem;
    padding: 4rem 13rem 7rem;
    border-top: 1px solid #ddd;
    font-size: max(1.6rem, 14px);
}

.ft_info .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ft_info .ft_logo img {
    display: block;
    width: 11em;
    height: auto;
}

.ft_info .sns_list {
    display: flex;
    align-items: center;
}

.ft_info .sns_list .item+.item {
    margin-left: 0.8em;
}

.ft_info .sns_list .ico {
    display: flex;
    width: 1.8em;
    height: 1.8em;
}

.ft_info .sns_list .ico svg {
    width: 100%;
    display: block;
}

.ft_info .sns_list .ico svg path {
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.ft_info .sns_list .ico:hover svg path[fill="#828282"] {
    fill: #000;
}

.ft_info .btm {
    margin-top: 4rem;
}

.ft_info .f_menu {
    display: flex;
}

.ft_info .f_menu .item+.item {
    margin-left: 1.6em;
}

.ft_info .f_menu a {
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    transition: color 0.3s ease;
}

.ft_info .f_menu a:hover {
    color: var(--primary);
}

.ft_info .biz {
    margin-top: 1.8rem;
    font-size: 15px;
    color: #696969;
    line-height: 1.8;
    max-width: 550px;
}

.ft_info .copy {
    margin-top: 2.4rem;
    line-height: 1;
    font-size: 0.9em;
    color: #828282;
}

@media (max-width: 1640px) {
    .site-footer .ft_location {
        padding: 7rem 10% 0;
    }

    .ft_info {
        padding: 4rem 10% 7rem;
    }

    .info_cont .tel {
        margin-right: 7rem;
    }
}

@media (max-width: 1240px) {
    .site-footer .cont_box {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-footer .ft_location {
        grid-row: 1;
        padding: 60px var(--inPd);
    }

    .site-footer .map {
        grid-row: 2;
        grid-column: 1;
        /* padding-top 은 콘텐츠 높이를 0 으로 남겨 자식의 height:100% 가 0 이 됩니다.
           aspect-ratio 는 실제 높이를 만들어 주므로 지도가 정상 렌더됩니다. (40% = 5:2) */
        aspect-ratio: 5 / 2;
    }

    .ft_info {
        grid-row: 3;
        margin-top: 0;
        padding-left: var(--inPd);
        padding-right: var(--inPd);
    }


}

@media (max-width: 769px) {

    .ft_location .copy_target,
    .info_cont .tel a {
        font-size: 24px;
    }

    .btn_list .item a {
        font-size: 14px;
    }

    .site-footer .ft_location {
        padding: 50px var(--inPd) 40px;
    }

    .ft_info {
        padding: 40px var(--inPd) 60px;
    }

    .site-footer .map {
        /* 55% = 20:11 */
        aspect-ratio: 20 / 11;
    }
}

@media (max-width: 600px) {
    .site-footer .ft_location {
        padding: 40px var(--inPd) 30px;
    }

    .ft_info {
        margin-top: 0;
        padding: 30px var(--inPd) 50px;
    }

    .ft_location .copy_target {
        font-size: 18px;
    }

    .btn_list {
        gap: 5px;
    }

    .btn_list .item a {
        font-size: 12px;
        padding: 10px 10px;
    }

    .btn_list .ico {
        margin-right: 5px;
    }

    .info_cont {
        flex-direction: column;
    }

    .info_cont .tel {
        margin-right: 0;
    }

    .info_cont .tel a {
        font-size: 20px;
    }

    .info_cont .time_table {
        margin-top: 30px;
    }

    .info_cont .tit {
        margin-bottom: 10px;
    }

    .ft_info .top {
        flex-direction: column;
        align-items: flex-start;
    }

    .ft_info .sns_list {
        margin-top: 30px;
    }

    .ft_info .f_menu {
        overflow-x: auto;
        width: calc(100% + var(--inPd) * 2);
        margin-left: calc(var(--inPd) * -1);
        padding: 0 var(--inPd);
    }

    .ft_info .f_menu::-webkit-scrollbar {
        display: none;
    }

    .ft_info .f_menu .item a {
        white-space: nowrap;
    }

    .ft_info .biz {
        max-width: 100%;
        font-size: 14px;
    }
}

/* ==========================================================
   푸터 위 상담폼 — com_consult_sect 구조 · 피그마 38:195 (2026-07-13)
   ========================================================== */
.com_consult_sect {
    position: relative;
    background: #3D5FA4;
}

.com_consult_sect .in {
    width: var(--in);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--inPd);
}

.com_consult_sect .cont_box {
    display: flex;
    align-items: flex-start;
    z-index: 2;
    padding-top: 9rem;
    padding-bottom: 9rem;
}

.com_consult_sect .sub_tit_box {
    margin-right: 14rem;
    flex-shrink: 0;
}

.com_consult_sect .sub_tit_box .tit {
    font-size: max(22px, 4.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
}

.com_consult_sect .sub_tit_box .txt {
    margin-top: 2.4rem;
    font-size: max(14px, 1.8rem);
    color: rgba(255, 255, 255, 0.85);
}

.com_consult_sect .right_box {
    flex: 1;
    min-width: 0;
}

/* 폼 그리드 (14열 / 신청하기 2행 스팬) */
.com_consult_sect .form_box {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 15px;
}

.com_consult_sect .form_box .cont {
    position: relative;
    height: max(44px, 5.2rem);
    font-size: max(13px, 1.6rem);
}

.com_consult_sect .form_box .cont input {
    width: 100%;
    height: 100%;
    border-radius: 0.8rem;
    padding: 0 1em;
    border: none;
    outline: none;
    background: #fff;
    font-size: inherit;
    font-family: inherit;
}

.com_consult_sect .form_box .cont textarea {
    width: 100%;
    height: 100%;
    border-radius: 0.8rem;
    padding: 1em;
    border: none;
    outline: none;
    resize: none;
    background: #fff;
    font-size: inherit;
    font-family: inherit;
}

.com_consult_sect .form_box .cont select {
    width: 100%;
    height: 100%;
    border-radius: 0.8rem;
    padding: 0 1em;
    border: none;
    outline: none;
    background: #fff;
    font-size: inherit;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
}

.com_consult_sect .form_box .select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.2em;
    transform: translateY(-50%);
    width: 0.8em;
    height: 0.8em;
    pointer-events: none;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="7" viewBox="0 0 12 7" fill="none"><path d="M0.262666 0.324249C0.635712 -0.0827652 1.26856 -0.1102 1.67575 0.262726L5.99997 4.22366L10.3242 0.262726C10.7314 -0.110302 11.3642 -0.0828187 11.7373 0.324249C12.1103 0.731419 12.0828 1.36424 11.6758 1.73734L6.67673 6.31741C6.29451 6.66758 5.70744 6.66752 5.32517 6.31741L0.32419 1.73734C-0.0828246 1.36429 -0.110259 0.731439 0.262666 0.324249Z" fill="%23333"/></svg>') center / contain no-repeat;
}

.com_consult_sect .form_box .grid1 {
    grid-column: 1 / 5;
}

.com_consult_sect .form_box .grid2 {
    grid-column: 5 / 9;
}

.com_consult_sect .form_box .grid3 {
    grid-column: 9 / 13;
}

.com_consult_sect .form_box .grid5 {
    grid-column: 1 / 13;
    height: 5.7em;
}

.com_consult_sect .form_box .submit_btn {
    grid-column: 13 / 15;
    grid-row: 1 / 3;
    background-color: #101010;
    border: none;
    border-radius: 0.8rem;
    color: #fff;
    font-weight: 600;
    font-size: max(14px, 1.8rem);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.com_consult_sect .form_box .submit_btn:hover {
    background-color: var(--primary-deep);
}

/* 플로팅 플레이스홀더 */
.com_consult_sect .form_box .placeholder {
    position: absolute;
    font-size: 1em;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 2em);
    height: auto;
    font-weight: 500;
    color: #101010;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1;
}

.com_consult_sect .form_box .placeholder span {
    font-size: 1.1em;
    padding-left: 3px;
}

.com_consult_sect .form_box .grid5 .placeholder {
    top: 0.9em;
    transform: none;
}

.com_consult_sect .form_box .cont.filled .placeholder,
.com_consult_sect .form_box .cont:focus-within .placeholder {
    opacity: 0;
}

/* 동의 체크 (chk_wrap) */
.com_consult_sect .chk_wrap {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.com_consult_sect .chk_wrap input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.com_consult_sect .chk_wrap svg {
    width: 2.5rem;
    min-width: 18px;
    height: auto;
}

.com_consult_sect .chk_wrap label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.com_consult_sect .chk_wrap input:checked+label svg circle {
    fill-opacity: 1;
    fill: #101010;
}

.com_consult_sect .chk_wrap .txt {
    font-size: max(13px, 1.6rem);
    margin-left: 10px;
    color: #fff;
}

.com_consult_sect .chk_wrap .view {
    font-size: max(12px, 1.4rem);
    border: none;
    border-bottom: 1px solid #fff;
    background: none;
    margin-left: 2rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    padding: 0 0 1px;
}

@media (max-width: 1240px) {
    .com_consult_sect .cont_box {
        flex-direction: column;
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .com_consult_sect .sub_tit_box {
        margin-right: 0;
        margin-bottom: 4rem;
    }

    .com_consult_sect .right_box {
        width: 100%;
    }

    .com_consult_sect .form_box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .com_consult_sect .form_box .grid1 {
        grid-column: 1 / 2;
    }

    .com_consult_sect .form_box .grid2 {
        grid-column: 2 / 3;
    }

    .com_consult_sect .form_box .grid3 {
        grid-column: 1 / 3;
    }

    .com_consult_sect .form_box .grid5 {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .com_consult_sect .form_box .submit_btn {
        grid-column: 1 / 3;
        grid-row: auto;
        height: 48px;
    }
}


/* ---- 브레드크럼 lnb (2026-07-13) ---- */
.lnb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* select 폭은 가장 긴 option 에 맞춰 늘어나므로 좁은 화면에서 한 줄에 다 안 들어갑니다.
       wrap 을 허용해 아래로 떨어지게 하고, sel_wrap 은 축소도 가능하게 둡니다. */
    flex-wrap: wrap;
    row-gap: 0.6em;
    padding: 2rem 0 0;
    font-size: max(13px, 1.6rem);
    z-index: 99;
}

.lnb .home {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    width: max(34px, 5rem);
    height: max(34px, 5rem);
    border-radius: 50%;
    background-color: var(--primary-wash);
    flex-shrink: 0;
    transition: background .2s;
}

.lnb .home:hover {
    background-color: #dcebf7;
}

.lnb .dot {
    width: 0.3em;
    height: 0.3em;
    margin: 0 1em;
    border-radius: 100%;
}

.lnb .sel_wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 2em;
    /* flex 아이템 기본 min-width:auto 면 긴 option 때문에 축소가 안 돼 가로 넘침이 생깁니다. */
    min-width: 0;
}

.lnb .sel_wrap+.dot {
    margin: 0 0.4em 0 0.8em;
}

.lnb .sel_wrap.current {
    margin-left: 0.8em;
}

.lnb .sel_wrap select {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0.4em 2.2em 0.4em 0.2em;
    font-size: inherit;
    font-family: inherit;
    color: var(--ink);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="%23555" d="M224 385.9L23 185c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L224 318.1 391 151c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-201 201z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.6em center;
    background-size: 0.8em;
    max-width: 100%;
}

.lnb .sel_wrap.current select {
    color: var(--ink);
    font-weight: 700;
}

/* 네비에 없는 단독 페이지의 현재 위치 표기 (드롭다운 대신 텍스트) */
.lnb .lnb-cur {
    margin-left: 0.8em;
    padding: 0.4em 0.2em;
    color: var(--ink);
    font-weight: 700;
}

/* ---- 서브 히어로 (2026-07-13) ---- */
.sub_visual {
    background: none;
}

.sub_visual .lnb-bar {
    width: 100%;
    /* 헤더 로고와 같은 선에 맞춘다 — 예전 8rem(57.6px) 은 로고(40px)와도
       콘텐츠(20px)와도 어긋난 세 번째 기준선이었다. (2026-08-19) */
    padding: 0 var(--edgePd);
}

/* 좁은 화면에서 브레드크럼이 가로로 넘치지 않도록 — 대분류 select 는 숨기고
   현재 페이지(소분류) 선택만 남깁니다. 홈 아이콘으로 상위 이동은 가능합니다. (2026-07-25) */
@media (max-width: 600px) {
    .lnb .sel_wrap:not(.current) {
        display: none;
    }

    .lnb .sel_wrap:not(.current)+.dot {
        display: none;
    }

    .lnb .sel_wrap.current {
        margin-left: 1.2em;
    }
}


.sub_visual .in {
    width: var(--in);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--inPd);
}

.sub_visual .sub_tit_wrap {
    padding: 7rem 0 8rem;
    text-align: center;
}

.sub_visual .page_tit {
    font-size: max(28px, 5.6rem);
    font-weight: 700;
    color: var(--ink);
}

.sub_visual .sub_txt {
    margin: 3.5rem auto 0;
    font-size: max(15px, 2rem);
    color: var(--ink);
    line-height: 1.6;
    word-break: keep-all;
}

.sub-content {
    padding: 8rem var(--inPd) 10rem;
}

.sub-content .placeholder-box {
    padding: 10rem 2rem;
    text-align: center;
    color: #9aa3ad;
    background: #fafbfc;
    border: 1px dashed #dfe4ea;
    border-radius: 1.6rem;
    font-size: max(14px, 1.8rem);
}


/* ==========================================================
   퀵메뉴 (2026-07-13 — 우아미 토큰 적용)
   ========================================================== */
/* ==================== 우측 하단 퀵버튼 ==================== */
.quick-buttons-wrapper {
    position: fixed;
    right: 24px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 9990;
}

/* QUICK 메뉴 컨테이너 - 이 영역에서만 호버 시 메뉴 표시 */
.quick-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 메뉴 패널 - 기본 숨김 */
.quick-menu-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    background: var(--primary-deep);
    border-radius: 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    margin-bottom: 0;
}

/* 호버 시 메뉴 패널 표시 - quick-menu-container에서만
   .is-open 은 호버가 없는 터치 기기에서 탭으로 여는 상태 (2026-08-19) */
.quick-menu-container:hover .quick-menu-panel,
.quick-menu-container.is-open .quick-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 600px;
    margin-bottom: 12px;
}

/* 메뉴 아이템 */
.quick-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.quick-menu-item:hover {
    color: #fff !important;
    opacity: 0.8 !important;
}

.quick-menu-item svg {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
}

.quick-menu-item span {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

/* Quick Contact Modal Styles */
.quick-contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    background: transparent;
    /* Default transparent for desktop contact */
}

/* Desktop: no overlay background */
@media (min-width: 769px) {
    .quick-contact-modal {
        background: transparent;
        pointer-events: none;
    }

    .quick-contact-modal .quick-contact-content {
        pointer-events: auto;
    }
}

/* Mobile: with overlay */
@media (max-width: 768px) {
    .quick-contact-modal {
        background: rgba(0, 0, 0, 0.6) !important;
        pointer-events: auto !important;
    }
}

.quick-contact-modal.show {
    opacity: 1;
    visibility: visible;
}

.quick-contact-content {
    background: #fff;
    padding: 48px 40px 40px;
    border-radius: 0 20px 20px 20px;
    max-width: 480px;
    width: 450px;
    position: relative;
    margin-right: 150px;
    margin-bottom: 40px;
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.07);
    transform: translateX(20px);
    transition: transform 0.3s ease;
    overflow: visible;
}

.quick-contact-modal.show .quick-contact-content {
    transform: translateX(0);
}

/* 닫기 버튼 - 좌측 상단 바깥에 배치 (보라색 사각형) */
.quick-contact-close {
    position: absolute;
    top: -0;
    left: -60px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border: none;
    border-radius: 15px 0 0 15px;
    font-size: 0;
    /* 원래 텍스트 숨김 */
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quick-contact-close svg {
    display: block;
    transition: transform 0.3s ease;
}

.quick-contact-close:hover svg {
    transform: rotate(90deg);
}

.quick-contact-title {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 700;
    color: #191F28;
    text-align: left;
}

.quick-contact-desc {
    font-size: 15px;
    color: #8B95A1;
    margin: 0 0 32px;
    text-align: left;
    line-height: 1.6;
}

.quick-contact-content label {
    display: block;
    font-weight: 600;
}

/* 입력 필드 스타일 */
.qc-form-group {
    margin-bottom: 16px;
}

.quick-contact-content input[type="text"],
.quick-contact-content input[type="tel"],
.qc-form-group input[type="text"],
.qc-form-group input[type="tel"] {
    width: 100%;
    padding: 18px 20px;
    margin-top: 0;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f8f8;
    box-sizing: border-box;
    color: #191F28;
}

.quick-contact-content input[type="text"]::placeholder,
.quick-contact-content input[type="tel"]::placeholder,
.qc-form-group input::placeholder {
    color: #adb5bd;
}

.quick-contact-content input[type="text"]:focus,
.quick-contact-content input[type="tel"]:focus,
.qc-form-group input:focus {
    outline: none;
    border-color: #9b7ed9;
    background: #fff;
}

/* 개인정보 동의 체크박스 - 버튼 스타일 토글 */
.qc-privacy {
    margin: 24px 0 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.qc-privacy-check {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e5e8eb;
    border-radius: 50px;
    font-size: 14px;
    color: #4E5968;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.qc-privacy-check:hover {
    border-color: #d0d0d0;
}

.qc-privacy-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* 체크마크 아이콘 */
.qc-privacy-check .checkbox-mark {
    width: 14px;
    height: 14px;
    min-width: 14px;
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    border: none !important;
    padding: 0 !important;
}

.qc-privacy-check .checkbox-mark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    width: 5px;
    height: 9px;
    border: solid #bbb;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 체크박스 텍스트 - 왼쪽 테두리 제거 */
.qc-privacy-check .checkbox-text {
    color: #4E5968;
    border-left: none !important;
    padding-left: 0 !important;
    line-height: 1;
    font-weight: 500;
}

/* 체크 상태 - 보라색 그라데이션 배경 */
.qc-privacy-check.checked {
    background: #191F28;
    border-color: #191F28;
    color: #fff;
}

.qc-privacy-check.checked .checkbox-mark::after {
    border-color: #fff;
}

.qc-privacy-check.checked .checkbox-text {
    color: #fff;
}

/* 자세히 보기 링크 */
.qc-privacy>.privacy-detail-link {
    color: #888;
    text-decoration: underline;
    font-size: 14px;
    white-space: nowrap;
}

.qc-privacy>.privacy-detail-link:hover {
    color: #666;
}

/* 신청하기 버튼 */
.quick-contact-submit {
    width: 100%;
    background: #191F28;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-contact-submit:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 모바일에서 간편진료예약 모달 중앙 정렬 */
@media (max-width: 768px) {
    .quick-contact-modal {
        align-items: center;
        justify-content: center;
    }

    .quick-contact-content {
        width: 90%;
        max-width: 360px;
        padding: 32px 24px 24px;
        margin-right: 0;
        margin-bottom: 0;
        border-radius: 20px 0 20px 20px;
    }

    .quick-contact-close {
        top: -40px;
        left: auto;
        right: 0;
        width: 45px;
        height: 40px;
        background: var(--primary);
        border-radius: 10px 10px 0 0;
        z-index: 10;
        /* 콘텐츠 내부로 이동 */
    }

    .quick-contact-close svg {
        width: 24px;
        height: 24px;
    }

    .quick-contact-close svg path {
        fill: #fff;
    }
}

/* QUICK 메인 버튼 */
.quick-main-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary-deep);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 6px;
}

.quick-main-btn:hover {
    background: var(--primary-deep);
    transform: scale(1.05);
}

.quick-main-text {
    font-size: 14px;
    font-weight: 700;

}

/* TOP 버튼 */
.quick-top-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.quick-top-btn svg {
    transition: all 0.3s ease;
}

.quick-top-btn:hover svg {
    transform: translateY(-3px);
}

.quick-top-btn:hover svg path {
    fill: var(--primary-deep);
}

/* 반응형: 태블릿 */
@media (max-width: 1024px) {
    .quick-buttons-wrapper {
        right: 16px;
        bottom: 30px;
    }

    .quick-main-btn,
    .quick-top-btn {
        width: 60px;
        height: 60px;
    }

    .quick-main-text {
        font-size: 12px;
    }

    .quick-menu-item svg {
        width: 24px;
        height: 24px;
    }

    .quick-menu-item span {
        font-size: 11px;
    }
}

/* 모바일은 플로팅 대신 하단 고정바를 쓴다 (bburidt.com 과 같은 구성, 2026-08-19).
   하단바 스타일은 이 파일 맨 아래 "모바일 하단 고정 메뉴" 블록에 있다. */
@media (max-width: 768px) {
    .quick-buttons-wrapper {
        display: none;
    }
}

/* ==================== 전체 너비 페이지 (사이드바 없음) ==================== */
/* ===== 푸터 약관 모달 (개인정보처리방침·이용약관) 2026-07-14 ===== */
.footer-terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease
}

.footer-terms-modal.show {
    opacity: 1;
    visibility: visible
}

.footer-terms-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5)
}

.footer-terms-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform .3s ease
}

.footer-terms-modal.show .footer-terms-modal-content {
    transform: translateY(0)
}

.footer-terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0
}

.footer-terms-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #191F28;
    margin: 0
}

.footer-terms-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background .2s ease
}

.footer-terms-modal-close:hover {
    background: #f2f4f6
}

.footer-terms-modal-close svg {
    stroke: #8B95A1
}

.footer-terms-modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.7;
    color: #4E5968
}

.footer-terms-modal-body p {
    margin-bottom: 12px
}

.footer-terms-modal-body h3,
.footer-terms-modal-body h4 {
    margin: 20px 0 12px;
    color: #191F28;
    font-size: 15px;
    font-weight: 700
}

.footer-terms-modal-confirm {
    margin: 16px 24px 24px;
    padding: 16px;
    background: var(--primary, #2254A5);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
    flex-shrink: 0
}

.footer-terms-modal-confirm:hover {
    background: var(--primary-deep, #1B4384)
}

@media (max-width:768px) {
    .footer-terms-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0
    }

    .footer-terms-modal-header {
        padding: 20px 16px 16px
    }

    .footer-terms-modal-body {
        padding: 16px
    }

    .footer-terms-modal-confirm {
        margin: 16px
    }
}

/* 서브페이지 타이틀 괄호 부제 줄바꿈 (다이어트 3P 등) 2026-07-14 */
.sub_visual .page_tit {
    line-height: 1.25;
}

.sub_visual .page_tit .tit-sub {
    display: block;
}

/* 피지낭종은 부제가 짧아 한 줄로 붙인다 (2026-08-12) */
.pg-sebaceous-cyst .sub_visual .page_tit .tit-sub {
    display: inline;
}

/* 서브페이지 제목 — 폰에서 축소 (2026-08-19)
   본래 값 max(28px, 5.6rem) 은 폰에서 28px 로 떨어지도록 쓴 것인데,
   루트 폰트 하한이 7.2px 라 5.6rem = 40.32px 가 항상 이겨서 28px 하한이
   한 번도 걸리지 않았다. 360px 화면에서 긴 제목이 5줄까지 늘어난다.
   화면 폭에 따라 30~40px 로 줄인다(600px 에서는 기존 값 그대로라 단차 없음). */
@media (max-width: 600px) {
    .sub_visual .page_tit {
        font-size: clamp(30px, 8.5vw, 40.32px);
    }
}

/* ===== 자주 묻는 질문 (FAQ 아코디언) — Figma 38:324 스펙 2026-07-14 ===== */
.uami-faq {
    padding: 16rem 0 18rem;
}

.uami-faq-in {
    width: min(1400px, 100%);
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 var(--inPd);
}

.uami-faq-head {
    margin-bottom: 6.5rem;
}

.uami-faq-tit {
    font-size: max(26px, 4.5rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.5;
}

.uami-faq-sub {
    margin: 1.2rem 0 0;
    font-size: max(15px, 2rem);
    color: #696969;
    line-height: 1.7;
    word-break: keep-all;
}

.uami-faq-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.uami-faq-item {
    background: #F5F7FA;
    border-radius: 100px;
    overflow: hidden;
    transition: background .25s ease, border-radius .25s ease;
}

.uami-faq-item.open {
    background: var(--primary);
    border-radius: 2.5rem;
}

.uami-faq-q {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    padding: 3.6rem 5rem;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.uami-faq-q .q-mark {
    flex: none;
    font-weight: 700;
    font-size: max(16px, 2rem);
    color: var(--primary);
    line-height: 1.5;
}

.uami-faq-q .q-text {
    flex: 1;
    font-size: max(16px, 2rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
    word-break: keep-all;
}

.uami-faq-q .q-chev {
    flex: none;
    display: flex;
    color: #B0B8C1;
    transition: transform .3s ease;
}

.uami-faq-q .q-chev svg {
    width: 1.8rem;
    height: auto;
}

.uami-faq-item.open .q-mark,
.uami-faq-item.open .q-text,
.uami-faq-item.open .q-chev {
    color: #fff;
}

.uami-faq-item.open .q-chev {
    transform: rotate(180deg);
}

.uami-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

.uami-faq-item.open .uami-faq-a {
    max-height: 80rem;
}

.uami-faq-a .a-inner {
    padding: 0 5rem 5rem 8.2rem;
    color: rgba(255, 255, 255, .7);
    font-size: max(15px, 1.8rem);
    font-weight: 500;
    line-height: 1.7;
    word-break: keep-all;
}

@media (max-width:768px) {
    .uami-faq {
        /* 위 1rem(7.2px)이라 앞 섹션과 거의 붙어 있었다. 다른 섹션의 모바일
           상단 여백(70px 안팎)과 같은 리듬으로 맞춘다. (2026-08-19) */
        padding: 8rem 0 8rem;
    }

    .uami-faq-item {
        border-radius: 2rem;
    }

    .uami-faq-q {
        padding: 2.4rem 2.4rem;
        gap: 1rem;
    }

    .uami-faq-a .a-inner {
        padding: 0 2.4rem 2.4rem 2.4rem;
    }
}

/* ==========================================================
   우아미 리얼스토리 (후기 카드 슬라이드) — parts/reviews.php (2026-07-14)
   치료 이야기 슬라이드 (Swiper loop + centeredSlides)
   폰트 반응형 = 섹션 스코프 변수 캐스케이드 (--rv*)
   기본 → ≤2000 → ≤1840 → ≤1440 → ≤1024 → ≤767 (유효 변화 지점만)
   ========================================================== */
.uami-reviews {
    /* --tit / --txt2 / --txt / --subTxt / --smTxt / --subMt / --pd200 */
    --rvTit: max(4.5rem, 45px);
    --rvTxt2: max(1.8rem, 20px);
    --rvTxt: max(1.7rem, 19px);
    --rvSubTxt: max(1.5rem, 17px);
    --rvSmTxt: max(1.35rem, 15px);
    /* html font-size 스케일 — 카드 지오메트리 전용 단위 */
    --rvU: clamp(8px, 0.15625vw + 5.5px, 10px);
    --rvSubMt: calc(6 * var(--rvU));
    --rvPd: 16rem;

    background: #f8f8f8;
    padding: var(--rvPd) 0;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 2000px) {
    .uami-reviews {
        --rvTit: max(4.2rem, 42px);
        --rvTxt2: max(1.8rem, 18px);
        --rvTxt: max(1.8rem, 18px);
        --rvSubTxt: max(1.7rem, 17px);
        --rvSmTxt: max(1.3rem, 13px);
        --rvPd: 15rem;
    }
}

@media (max-width: 1840px) {
    .uami-reviews {
        --rvTit: max(4rem, 40px);
        --rvTxt2: max(1.6rem, 16px);
        --rvTxt: max(1.6rem, 16px);
        --rvSubTxt: max(1.5rem, 15px);
    }
}

@media (max-width: 1440px) {
    .uami-reviews {
        --rvTit: max(3.2rem, 32px);
        --rvSubTxt: max(1.4rem, 14px);
    }
}

@media (max-width: 1024px) {
    .uami-reviews {
        --rvTit: 28px;
        --rvTxt2: 15px;
        --rvTxt: 14px;
        --rvSubTxt: 14px;
        --rvSmTxt: 12px;
        --rvSubMt: 40px;
        --rvPd: 80px;
    }
}

@media (max-width: 767px) {
    .uami-reviews {
        --rvTit: 26px;
        --rvSubMt: 30px;
        --rvPd: 60px;
    }
}

.uami-reviews-head {
    padding: 0 var(--inPd);
}

.uami-reviews-tit {
    font-size: var(--rvTit);
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.6;
}

.uami-reviews-sub {
    margin: 2rem 0 0;
    font-size: var(--rvTxt2);
    color: #696969;
    line-height: 1.7;
    word-break: keep-all;
}

.uami-reviews-note {
    margin: 4.5rem 0 0;
    font-size: var(--rvSubTxt);
    font-weight: 500;
    color: #444;
    line-height: 1.7;
    word-break: keep-all;
    opacity: .6;
}

/* 모바일에서 요약 텍스트는 smTxt로 축소 */
@media (max-width: 1024px) {
    .uami-reviews-note {
        font-size: var(--rvSmTxt);
        margin-top: 10px;
        line-height: 1.6;
    }
}

.uami-reviews-note .star {
    width: 1.4rem;
    min-width: 11px;
    height: auto;
    vertical-align: -0.15em;
    margin-right: 0.4rem;
    color: #2254a5;
}

/* 슬라이드 */
.uami-reviews-slide {
    margin-top: var(--rvSubMt);
}

.uami-reviews .swiper-slide.uami-review-item {
    width: min(calc(36 * var(--rvU)), 80vw);
    height: auto;
    background-color: #fff;
    border-radius: calc(13 * var(--rvU));
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
}

.uami-review-item .txt_wrap {
    display: flex;
    flex-direction: column;
    min-height: calc(48 * var(--rvU));
    padding: calc(6 * var(--rvU)) calc(4 * var(--rvU)) calc(8 * var(--rvU));
    box-sizing: border-box;
}

.uami-review-item .badge {
    font-size: var(--rvTxt);
    width: max-content;
    margin: 0 auto;
    background-color: #2254a5;
    border-radius: 10em;
    color: #fff;
    padding: 0.3em 1em;
    font-weight: 700;
    line-height: 1.5;
}

.uami-review-item .txt_box {
    position: relative;
    margin-top: calc(2.4 * var(--rvU));
}

.uami-review-item .txt_box .txt {
    margin: 0;
    font-size: var(--rvTxt);
    font-weight: 600;
    line-height: 1.6;
    color: var(--ink);
    word-break: keep-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uami-review-item.is-img .img_box {
    width: 100%;
    height: 100%;
    min-height: calc(48 * var(--rvU));
    background: #d9d9d9;
    /* TODO: 실제 사진 적용 시 <img> cover 로 교체 */
}

.uami-review-item.is-img .img_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 더보기 버튼 (subTxt) */
.uami-reviews-more {
    margin-top: var(--rvSubMt);
    padding: 0 var(--inPd);
}

.uami-reviews-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    font-size: var(--rvSubTxt);
    line-height: 1.5;
    padding: 1.2em 1.6em 1.15em;
    border-radius: 10rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.uami-reviews-btn:hover {
    opacity: 0.85;
}

.uami-reviews-btn svg {
    width: 1em;
    min-width: 11px;
    height: auto;
}

/* ==========================================================
   서브페이지 인트로 섹션 — parts/intro.php (2026-07-16)
   메인 비주얼 / 증상 롤링 + Figma 1-메인 컨텐츠 수치
   폰트 반응형 = 섹션 스코프 변수 캐스케이드 (--iv*)
   기본 → ≤2000 → ≤1840 → ≤1440 → ≤1024 → ≤767
   ========================================================== */
.uami-intro {
    /* --tit / --txt2 / --lgTxt2 / --txt */
    --ivTit: max(4.8rem, 48px);
    --ivTxt2: max(1.8rem, 20px);
    --ivLgTxt2: max(2.5rem, 26px);
    --ivTxt: max(1.7rem, 19px);

    background: linear-gradient(120.73deg, #4170b7 30.46%, #f1a4a0 100.72%);
    padding: 16rem 0;
    overflow: hidden;
}

@media (max-width: 2000px) {
    .uami-intro {
        --ivTit: max(4.2rem, 42px);
        --ivTxt2: max(1.8rem, 18px);
        --ivLgTxt2: max(2.4rem, 24px);
        --ivTxt: max(1.8rem, 18px);
    }
}

@media (max-width: 1840px) {
    .uami-intro {
        --ivTit: max(4rem, 40px);
        --ivTxt2: max(1.6rem, 16px);
        --ivLgTxt2: max(2rem, 20px);
        --ivTxt: max(1.6rem, 16px);
    }
}

@media (max-width: 1440px) {
    .uami-intro {
        --ivTit: max(3.2rem, 32px);
        --ivLgTxt2: max(1.8rem, 18px);
    }
}

@media (max-width: 1024px) {
    .uami-intro {
        --ivTit: 28px;
        --ivTxt2: 15px;
        --ivLgTxt2: 18px;
        --ivTxt: 14px;
    }
}

@media (max-width: 767px) {
    .uami-intro {
        --ivTit: 26px;
        --ivLgTxt2: 17px;
    }
}

.uami-intro-in {
    width: min(1400px, 100%);
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 var(--inPd);
}

.uami-intro-copy {
    color: #fff;
}

.uami-intro-copy .tit {
    margin: 0;
    font-size: var(--ivTit);
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    word-break: keep-all;
}

.uami-intro-copy .txt {
    margin: 2rem 0 0;
    font-size: var(--ivTxt2);
    font-weight: 400;
    line-height: 1.7;
    color: #fff;
    word-break: keep-all;
}

.uami-intro-img {
    position: relative;
    margin-top: 5rem;
    width: 100%;
    aspect-ratio: 1600 / 576;
    border-radius: 2.5rem;
    overflow: hidden;
    background: #d9d9d9;
    /* TODO: 실제 메인 이미지 적용 전 placeholder */
}

.uami-intro-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 증상 롤링 */
.uami-intro-symptom {
    margin-top: 9rem;
}

.uami-intro-symptom .rolling {
    overflow: hidden;
    font-size: var(--ivLgTxt2);
}

.uami-intro-symptom .track {
    display: flex;
    width: max-content;
    gap: 1em;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: uamiRollTxt 80s linear infinite;
}

.uami-intro-symptom .track2 {
    animation: uamiRollTxt 80s linear infinite reverse;
    margin-top: 1.3em;
}

.uami-intro-symptom .pill {
    flex-shrink: 0;
    background: #fff;
    color: #2254a5;
    font-weight: 700;
    height: 2.6em;
    line-height: 2.6em;
    padding: 0 1.3em;
    white-space: nowrap;
    border-radius: 10rem;
}

@keyframes uamiRollTxt {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .uami-intro {
        padding: 9rem 0;
    }

    .uami-intro-symptom .rolling {
        font-size: var(--ivTxt);
    }

    .uami-intro-symptom .track2 {
        margin-top: 15px;
    }
}

@media (max-width: 600px) {
    .uami-intro-symptom {
        margin-top: 40px;
    }

    .uami-intro-symptom .track,
    .uami-intro-symptom .track2 {
        gap: 10px;
    }

    .uami-intro-img {
        aspect-ratio: auto;
        padding-top: 56%;
        border-radius: 2.4rem;
    }
}


/* ===== 우아미한의원만의 특별함 (전 페이지, 상담폼 위) (2026-07-16) ===== */
.uami-special {
    position: relative;
    padding: clamp(6rem, 10vw, 16.5rem) 0 clamp(7rem, 12vw, 20rem);
    background: linear-gradient(-70deg, #f1a4a0 8%, #2254a5 92%);
    overflow: hidden
}

.uami-special .in {
    position: relative;
    max-width: 104rem;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 10
}

.uami-special .sp-head {
    text-align: center;
    color: #fff
}

.uami-special .sp-head .tit {
    font-size: clamp(2.6rem, 4vw, 4.5rem);
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
}

.uami-special .sp-head .txt {
    margin-top: .8em;
    font-size: clamp(1.5rem, 1.8vw, 2rem);
    line-height: 1.7;
    opacity: .95
}

/* 워터마크 마키 */
.uami-special .sp-flow {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    color: rgba(245, 247, 250, .2);
    user-select: none;
    pointer-events: none;
    z-index: 1
}

.uami-special .sp-flow p {
    flex: 0 0 auto;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(6rem, 9.4vw, 12rem);
    letter-spacing: -.02em;
    animation: uamiSpFlow 40s linear infinite
}

@keyframes uamiSpFlow {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-100%)
    }
}

/* 카드 그리드 (2열 + 우열 스태거) */
.uami-special .cont {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 3.4vw, 3.5rem);
    max-width: 88rem;
    margin: clamp(4rem, 6vw, 7rem) auto 0;
    z-index: 10
}

.uami-special .cont .img_box {
    position: relative;
    width: 100%;
    padding-top: 130%;
    border-radius: 2rem;
    overflow: hidden;
    filter: blur(10px);
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out, filter 1s ease-in-out
}

.uami-special .cont .img_box:nth-child(even) {
    top: clamp(3rem, 5vw, 5.2rem)
}

.uami-special .cont .img_box:nth-child(1) {
    transition-delay: 0s
}

.uami-special .cont .img_box:nth-child(2) {
    transition-delay: .2s
}

.uami-special .cont .img_box:nth-child(3) {
    transition-delay: .4s
}

.uami-special .cont .img_box:nth-child(4) {
    transition-delay: .6s
}

.uami-special .cont.active .img_box {
    filter: blur(0);
    opacity: 1;
    transform: none
}

.uami-special .cont .img_box .img {
    position: absolute;
    inset: 0
}

.uami-special .cont .img_box .img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.uami-special .cont .img_box .bg {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(to bottom, rgba(55, 92, 164, 0) 0%, rgba(55, 92, 164, .55) 45%, #375ca4 100%);
    z-index: 10
}

.uami-special .cont .img_box .txt_box {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: clamp(2rem, 3vw, 4rem);
    z-index: 15;
    color: #fff
}

.uami-special .cont .img_box .txt_box .tit {
    font-size: clamp(1.8rem, 2.1vw, 2.6rem);
    font-weight: 700;
    line-height: 1.4
}

.uami-special .cont .img_box .txt_box .txt {
    margin-top: .6em;
    font-size: clamp(1.35rem, 1.4vw, 1.7rem);
    line-height: 1.55
}

@media(max-width:768px) {
    .uami-special .cont {
        grid-template-columns: 1fr;
        max-width: 44rem
    }

    .uami-special .cont .img_box:nth-child(even) {
        top: 0
    }

    .uami-special .cont .img_box {
        padding-top: 118%
    }
}

/* ===== /특별함 ===== */

/* ===== 원인 카드 슬라이드 (parts/causes.php) — 데이터: uami_current_causes(), 2026-07-21 =====
   카드 600x370 r24 + 텍스트 나란히(비활성 슬라이드 흐림), 컨트롤 = current + 10rem 프로그레스바 + total + 6.4rem 원형 화살표.
   컨테이너 좌측선에서 시작해 오른쪽 다음 카드 미리보기(slidesPerView 1.2 계열). */
/* ============================================
   맞춤 치료 종류 슬라이더 — 카드형 Swiper (parts/treatments.php)
   치료 카드 슬라이드: 62% 이미지 카드 + 우측 컨트롤
   ============================================ */
.uami-treatments {
    overflow: hidden;
}


.uami-treatments .head_wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
}


/* 컨트롤 — causes ctrl 스타일 재사용 */
.uami-treatments-ctrl {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-bottom: 0.6rem;
}


.uami-treatments-ctrl .paging>*+* {
    margin-left: 1.2rem;
}

.uami-treatments-ctrl .paging .current,
.uami-treatments-ctrl .paging .total {
    width: 4em;
    text-align: center;
    font-size: max(1.5rem, 12px);
    color: #231f20;
}

.uami-treatments-ctrl .paging .current {
    font-weight: 600;
}


.uami-treatments-ctrl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background-color: var(--primary);
}


.uami-treatments-ctrl .sbtn.prev {
    margin-right: 0.8em;
}

.uami-treatments-ctrl .sbtn.prev .ico {
    transform: rotate(180deg);
}

.uami-treatments-ctrl .sbtn:hover {
    background-color: #000;
}

.uami-treatments-ctrl .sbtn:hover .ico {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20.001 20"><path d="M10,0,8.237,1.762,15.212,8.75H0v2.5H15.212L8.237,18.237,10,20,20,10Z" fill="%23fff"/></svg>') no-repeat center / contain;
}

.uami-treatments-ctrl .sbtn.swiper-button-disabled {
    opacity: 0.3;
}

/* 슬라이드 — 등장 애니메이션 + 카드 */
.uami-treatments-slide {
    margin-top: 4.8rem;
    opacity: 0;
    transform: translateY(5rem);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.uami-treatments.active .uami-treatments-slide {
    opacity: 1;
    transform: none;
}

.uami-treatment-item .img_box {
    position: relative;
    width: 100%;
    padding-top: 62%;
    border-radius: 2rem;
    overflow: hidden;
    background: #d9d9d9;
    /* 이미지 확정 전 placeholder */
}


.uami-treatment-item .txt_box {
    margin-top: 2rem;
}

.uami-treatment-item .txt_box .cont-tit {
    margin: 0;
    font-size: max(3rem, 18px);
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
}

.uami-treatment-item .txt_box .txt {
    margin: 0.8rem 0 0;
    max-width: 90%;
    font-size: max(1.7rem, 14px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    word-break: keep-all;
}

@media (max-width: 768px) {
    .uami-treatments .head_wrap {
        display: block;
    }

    .uami-treatments-ctrl {
        margin-top: 20px;
    }

    .uami-treatments-slide {
        margin-top: 30px;
    }

    .uami-treatment-item .img_box {
        border-radius: 12px;
    }
}

/* ============================================
   치료 케이스 섹션 — 좌 sticky + 우 번호 리스트 (parts/cases.php)
   스크롤 스파이 리스트
   ============================================ */

.uami-cases-in {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: min(1340px, 100%);
    margin: 0 auto;
    padding: 0 var(--inPd);
}

.uami-cases .sticky_box {
    position: sticky;
    top: calc(var(--hdH) + 3rem);
    width: 50%;
    flex-shrink: 0;
}


.uami-cases .img_wrap {
    position: relative;
    margin-top: 4.8rem;
    padding-top: 62%;
    border-radius: 2rem;
    overflow: hidden;
    background: #d9d9d9;
}


.uami-cases .box_wrap {
    width: 50%;
    padding-top: 26rem;
    padding-left: 9.6rem;
    box-sizing: border-box;
}

.uami-cases .box_wrap .box {
    margin-bottom: 13rem;
    opacity: 0.3;
    transition: opacity 0.3s ease-in-out;
}

.uami-cases .box_wrap .box.active {
    opacity: 1;
}

.uami-cases .box_wrap .box:last-child {
    margin-bottom: 4rem;
}

.uami-cases .tit_box {
    display: flex;
    align-items: center;
    margin-bottom: 1.6rem;
}

.uami-cases .tit_box .num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.7em;
    height: 2.7em;
    margin-right: 1.6rem;
    font-size: max(1.5rem, 14px);
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    background-color: var(--ink);
    color: #fff;
}

.uami-cases .tit_box .tit {
    margin: 0;
    font-size: max(3rem, 18px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.uami-cases .box_wrap .txt {
    margin: 0;
    font-size: max(1.7rem, 14px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    word-break: keep-all;
}

.uami-cases .box_wrap .list {
    margin: 0;
    padding-left: 1.9rem;
    list-style: disc;
}

.uami-cases .box_wrap .list li {
    font-size: max(1.5rem, 14px);
    font-weight: 500;
    line-height: 1.7;
    color: var(--ink);
    word-break: keep-all;
}

@media (max-width: 768px) {
    .uami-cases-in {
        display: block;
    }

    .uami-cases .sticky_box {
        position: relative;
        top: 0;
        width: 100%;
    }

    .uami-cases .box_wrap {
        width: 100%;
        margin-top: 40px;
        padding: 0;
    }

    .uami-cases .box_wrap .box {
        margin-bottom: 36px;
        opacity: 1;
    }
}

/* ============================================
   하이라이트 섹션 — 제목 + 본문 + 와이드 이미지 (parts/highlight.php)
   1340px 컨테이너 통일, 이미지 1400×504 비율(36%) cover
   ============================================ */


.uami-highlight-img {
    position: relative;
    margin-top: 4.8rem;
    padding-top: 36%;
    border-radius: 2rem;
    overflow: hidden;
    background: #d9d9d9;
    /* 이미지 확정 전 placeholder */
    opacity: 0;
    transform: translateY(5rem);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

/* 하이라이트 이미지 캡션 — 좌/우 라벨 + 화살표 (2026-08-11)
   대비 이미지(왼쪽 상태 → 오른쪽 상태)에 쓴다. 대시 개수를 고정하지 않고
   가운데 선을 늘려서, 좁은 화면에서도 한 줄이 유지된다. */
.uami-highlight-cap {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 18px);
    margin: 0;
    padding: clamp(12px, 2.2vw, 30px) clamp(12px, 2.4vw, 34px);
    font-size: clamp(22px, 3.6vw, 51px);
    font-weight: 800;
    color: #1b1b1b;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* 사진 위 글씨라 배경이 어떤 색이든 읽히도록 흰 알약 배경을 깐다.
   글로우만으로는 지방층처럼 밝고 복잡한 면 위에서 대비가 부족했다. */
.uami-highlight-cap span {
    flex: none;
    white-space: nowrap;
    padding: 0.3em 0.62em;
    border-radius: 999px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.uami-highlight-cap i {
    position: relative;
    flex: 1 1 auto;
    min-width: 1.5rem;
    height: 0;
    border-top: clamp(2px, 0.32vw, 4px) dashed rgba(27, 27, 27, .78);
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, .9));
}

.uami-highlight-cap i::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    width: 0;
    height: 0;
    transform: translateY(-50%);
    border-left: clamp(9px, 1.1vw, 16px) solid rgba(27, 27, 27, .85);
    border-top: clamp(6px, 0.72vw, 10px) solid transparent;
    border-bottom: clamp(6px, 0.72vw, 10px) solid transparent;
}

.uami-highlight-img.active {
    opacity: 1;
    transform: none;
}


@media (max-width: 1240px) {
    .uami-highlight-sub {
        font-size: max(1.5rem, 15px);
    }
}

@media (max-width: 600px) {
    .uami-highlight-img {
        margin-top: 30px;
        padding-top: 56%;
        border-radius: 12px;
    }

    .uami-highlight-sub {
        font-size: 14px;
    }
}

/* ============================================
   기존 치료의 한계 섹션 — 번호 필 리스트 (parts/limits.php)
   번호 리스트: 최대폭 1540px(--in2 상당) + 반응형(1024/600)
   ============================================ */


.uami-limits-sub {
    margin: 2.4rem 0 0;
    font-size: var(--lead);
    font-weight: 500;
    line-height: 1.7;
    color: var(--ink);
}

.uami-num-list {
    list-style: none;
    margin: 4.8rem 0 0;
    padding: 0;
}

.uami-num-list .item {
    display: flex;
    align-items: center;
    background-color: var(--canvas-cool);
    border-radius: 100rem;
    padding: 4rem 4.5rem;
    opacity: 0;
    transform: translateY(5rem);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.uami-num-list.active .item {
    opacity: 1;
    transform: none;
}

.uami-num-list.active .item:nth-child(2) {
    transition-delay: 0.2s;
}

.uami-num-list.active .item:nth-child(3) {
    transition-delay: 0.4s;
}

.uami-num-list.active .item:nth-child(4) {
    transition-delay: 0.6s;
}

.uami-num-list.active .item:nth-child(5) {
    transition-delay: 0.8s;
}

.uami-num-list .item+.item {
    margin-top: 1.9rem;
}

.uami-num-list .item .num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 1.9rem;
    background-color: var(--ink);
    border-radius: 50%;
    width: 2.7em;
    height: 2.7em;
    font-size: max(1.7rem, 17px);
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.uami-num-list .item .txt_box .tit {
    margin: 0;
    font-size: max(2.4rem, 24px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.uami-num-list .item .txt_box .txt {
    margin: 0.4em 0 0;
    font-size: max(1.7rem, 17px);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
}

/* ==========================================================
   보약 카드 스와이퍼 — 파란 밴드 + 사진 카드 지그재그 (Figma 195:5382, 2026-07-30)
   parts/tonics.php / uami_current_tonics()
   동작 수치는 레퍼런스 질환 슬라이드 그대로: 컨테이너를 화면보다 넓게(110~260%) 깔아
   좌우 카드가 밖으로 삐져나가고, 활성 이웃 카드가 translateY 로 내려가는 지그재그.
   카드 실측(665 기준): r30 · 본문 44/43 · 이름 36 · 설명 20 · 안쪽 박스 #EAEAEA r15 27/34.
   ========================================================== */
.uami-tonics {
    padding: var(--sectLg) 0;
    background-color: var(--primary);
    overflow: hidden;
    text-align: center;
}

.uami-tonics-tit {
    margin: 0;
    color: #fff;
    font-size: var(--mainTit);
    font-weight: 700;
    line-height: 1.4;
}

.uami-tonics-sub {
    margin: 2.4rem 0 0;
    color: #fff;
    font-size: var(--lead);
    font-weight: 500;
    line-height: 1.7;
}

.uami-tonics-slide {
    margin-top: 12rem;
    overflow: hidden;
}

/* 화면보다 넓게 깔아 좌우 카드가 삐져나가게 — 지그재그 내려감 자리는 padding-bottom */
.uami-tonics .swiper {
    width: 110%;
    margin-left: -5%;
    padding-bottom: 8rem;
}

.uami-tonics .tn-item {
    display: flex;
    flex-direction: column;
    border-radius: 3rem;
    overflow: hidden;
    background-color: #F6F8FC;
    text-align: left;
    transition: transform 1s;
}

/* 활성 카드 이웃이 아래로 내려가는 지그재그 (레퍼런스 그대로) */
.uami-tonics .swiper-slide-prev,
.uami-tonics .swiper-slide-active+.swiper-slide,
.uami-tonics .swiper-slide-active+.swiper-slide+.swiper-slide+.swiper-slide {
    transform: translateY(8rem);
}

.uami-tonics .tn-item .img {
    position: relative;
    width: 100%;
    padding-top: 39%;
    background-color: #E9EDF5;
}

.uami-tonics .tn-item .img img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uami-tonics .tn-item .txt_wrap {
    flex: 1 0 auto;
    padding: 4.4rem 4.3rem;
}

.uami-tonics .tn-item .name {
    margin: 0;
    font-size: max(3.6rem, 19px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.uami-tonics .tn-item .txt {
    margin: 0.5rem 0 0;
    font-size: max(2rem, 14px);
    font-weight: 500;
    line-height: 1.7;
    color: var(--ink);
}

.uami-tonics .tn-item .info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.6rem;
    margin-top: 2.1rem;
    padding: 2.7rem 3.4rem;
    background-color: #EAEAEA;
    border-radius: 1.5rem;
}

.uami-tonics .tn-item .info .lb {
    margin: 0;
    font-size: max(1.8rem, 13px);
    font-weight: 700;
    line-height: 1.7;
    color: var(--primary);
}

.uami-tonics .tn-item .info ul {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.uami-tonics .tn-item .info li {
    position: relative;
    padding-left: 0.6em;
    font-size: max(1.6rem, 12px);
    font-weight: 400;
    line-height: 1.62;
    color: #000;
    word-break: keep-all;
}

.uami-tonics .tn-item .info li::before {
    content: '·';
    position: absolute;
    left: 0;
}

/* 진행바 — 흰 바탕 반투명 트랙 + 흰 채움 (레퍼런스 그대로) */
.uami-tonics .paging {
    width: 40rem;
    max-width: 70%;
    margin: 0 auto;
}

.uami-tonics .paging .swiper-pagination-progressbar {
    position: relative;
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 100rem;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.2);
}

.uami-tonics .paging .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background-color: #fff;
}

/* ── 반응형 — 레퍼런스 폭 사다리 그대로: 좁아질수록 컨테이너를 더 넓게 깔아 카드 크기 유지 ── */
@media (max-width: 2000px) {
    .uami-tonics .swiper {
        width: 120%;
        margin-left: -10%;
    }

    .uami-tonics .paging .swiper-pagination-progressbar {
        height: 3px;
    }
}

@media (max-width: 1640px) {
    .uami-tonics .swiper {
        width: 150%;
        margin-left: -25%;
    }
}

@media (max-width: 1240px) {
    .uami-tonics-slide {
        margin-top: 6rem;
    }

    .uami-tonics .swiper {
        width: 180%;
        margin-left: -40%;
    }

    .uami-tonics .tn-item .txt_wrap {
        padding: 3.8rem;
    }
}

@media (max-width: 769px) {
    .uami-tonics .swiper {
        width: 220%;
        margin-left: -60%;
    }
}

@media (max-width: 600px) {
    .uami-tonics .swiper {
        width: 260%;
        margin-left: -80%;
        padding-bottom: 40px;
    }

    .uami-tonics .swiper-slide-prev,
    .uami-tonics .swiper-slide-active+.swiper-slide,
    .uami-tonics .swiper-slide-active+.swiper-slide+.swiper-slide+.swiper-slide {
        transform: translateY(40px);
    }

    .uami-tonics .tn-item .img {
        padding-top: 56%;
    }

    .uami-tonics .tn-item .txt_wrap {
        padding: 25px 20px 30px;
    }

    .uami-tonics .tn-item .info {
        gap: 15px;
        padding: 15px 15px 20px;
    }
}

/* ==========================================================
   열 흐름 도해 — 제목/설명 + 회색 카드 안 실루엣 2장 (Figma 761:14041, 2026-07-30)
   parts/heatflow.php / uami_current_heatflow()
   실측(1400 기준): 카드 1400x560 r30 · 위 86 아래 77, 실루엣 높이 302 · 사이 118,
   실루엣↔라벨 24, 라벨 26px/행간 36. 실루엣 png 는 투명 배경이라 카드색이 그대로 비칩니다.
   ========================================================== */
.uami-heatflow-sub {
    margin: 2.4rem 0 0;
    font-size: var(--lead);
    font-weight: 500;
    line-height: 1.7;
    color: var(--ink);
}

.uami-heatflow .hf-card {
    margin: 6rem 0 0;
    padding: 8.6rem 2rem 7.7rem;
    /* 카드만 중성 회색 — --canvas-cool(#F5F7FA)은 푸른기가 돌아 실루엣 색과 겹칩니다 */
    background-color: #F7F7F7;
    border-radius: 3rem;
}

.uami-heatflow .hf-list {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 11.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.uami-heatflow .hf-item {
    text-align: center;
}

.uami-heatflow .hf-fig img {
    display: block;
    width: auto;
    height: 30.2rem;
}

.uami-heatflow .hf-lb {
    margin: 2.4rem 0 0;
    font-size: max(2.6rem, 17px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

/* ── 반응형 — 사이 간격부터 좁히고, 좁아지면 위아래로 ── */
@media (max-width: 1024px) {
    .uami-heatflow .hf-list {
        gap: 7rem;
    }

    .uami-heatflow .hf-fig img {
        height: 26rem;
    }
}

@media (max-width: 700px) {
    .uami-heatflow .hf-card {
        padding: 5rem 2rem;
    }

    .uami-heatflow .hf-list {
        flex-direction: column;
        align-items: center;
        gap: 5rem;
    }

    .uami-heatflow .hf-fig img {
        height: 24rem;
    }
}

/* ==========================================================
   자가 체크리스트 — 좌 제목 + 우 체크 필 리스트 (Figma 547:7352, 2026-07-30)
   parts/checklist.php / uami_current_checklist()
   필은 .uami-num-list 재사용(순차 등장 포함), 번호 자리에 체크 아이콘을 쓰는 is-check 변형.
   실측(1400 기준): 제목단 472 / 열 간격 203 / 필 높이 81 · 좌우 30 · 상하 16 · 간격 15.
   ========================================================== */
.uami-checklist-in {
    display: grid;
    grid-template-columns: minmax(0, 47.2rem) 1fr;
    align-items: start;
    gap: 20.3rem;
}

.uami-checklist-sub {
    margin: 2.4rem 0 0;
    font-size: var(--lead);
    font-weight: 500;
    line-height: 1.7;
    color: var(--ink);
}

.uami-checklist .uami-num-list {
    margin: 0;
}

/* 체크 필 — 번호 대신 아이콘, 알약을 한 단계 낮게 */
.uami-num-list.is-check .item {
    min-height: 8.1rem;
    padding: 1.6rem 3rem;
}

.uami-num-list.is-check .item+.item {
    margin-top: 1.5rem;
}

.uami-num-list.is-check .item .ico {
    flex-shrink: 0;
    margin-right: 1.8rem;
    width: 2.5rem;
    height: 2.5rem;
}

.uami-num-list.is-check .item .txt_box .tit {
    font-size: max(2rem, 16px);
    font-weight: 600;
    line-height: 1.5;
}

/* ── 반응형 — 열 간격부터 줄이고, 좁아지면 위아래로 ── */
@media (max-width: 1240px) {
    .uami-checklist-in {
        grid-template-columns: minmax(0, 40rem) 1fr;
        gap: 8rem;
    }
}

@media (max-width: 900px) {
    .uami-checklist-in {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}

@media (max-width: 600px) {
    .uami-num-list.is-check .item {
        min-height: 0;
        padding: 1.6rem 2rem;
    }

    .uami-num-list.is-check .item .ico {
        margin-right: 1.2rem;
        width: 22px;
        height: 22px;
    }
}

/* 반응형 계단 — 1240(중간 톤다운) → 1024(num 축소) → 600(필 각지게) */
@media (max-width: 1240px) {
    .uami-num-list .item .txt_box .tit {
        font-size: max(2rem, 20px);
    }

    .uami-num-list .item .txt_box .txt {
        font-size: max(1.5rem, 15px);
    }

    .uami-num-list .item {
        padding: 2.6rem 3.2rem;
    }
}

@media (max-width: 1024px) {
    .uami-num-list .item .num {
        font-size: 11px;
    }

    .uami-num-list .item .txt_box .tit {
        font-size: 18px;
    }

    .uami-num-list .item .txt_box .txt {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .uami-num-list {
        margin-top: 30px;
    }

    .uami-num-list .item+.item {
        margin-top: 15px;
    }

    .uami-num-list .item {
        border-radius: 20px;
        padding: 20px 15px;
        align-items: flex-start;
    }

    .uami-num-list .item .num {
        font-size: 10px;
        width: 25px;
        height: 25px;
        margin-right: 8px;
        margin-top: 0.1em;
    }

    .uami-num-list .item .txt_box .tit {
        font-size: 17px;
    }

    .uami-num-list .item .txt_box .txt {
        font-size: 14px;
    }
}

.uami-causes {
    overflow: hidden;
}


.uami-causes-tit {
    margin: 0;
    font-size: max(4.2rem, 30px);
    font-weight: 700;
    line-height: 1.4;
    color: #231f20;
}

.uami-causes-sub {
    margin: 1.9rem 0 0;
    font-size: var(--lead);
    font-weight: 400;
    line-height: 1.7;
    color: #231f20;
}

/* 슬라이드 랩 — 좌측 컨테이너선 정렬 + 진입 애니메이션 */
.uami-causes-slide {
    position: relative;
    margin-top: 4.8rem;
    padding-left: max(calc((100% - 1340px) / 2 + var(--inPd)), var(--inPd));
    opacity: 0;
    transform: translateX(10rem);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.uami-causes-slide.active {
    opacity: 1;
    transform: none;
}

.uami-cause-item {
    display: flex;
    align-items: center;
    opacity: 0.3;
    transition: opacity 0.6s ease-in-out;
}

.uami-cause-item.swiper-slide-active {
    opacity: 1;
}

.uami-cause-item .img_box {
    position: relative;
    flex-shrink: 0;
    width: 48rem;
    height: 29.6rem;
    margin-right: 6rem;
    border-radius: 2.4rem;
    overflow: hidden;
    background: #d9d9d9;
    /* 이미지 확정 전 placeholder */
}


.uami-cause-item .txt_box {
    width: 100%;
    padding-bottom: calc(5.2rem + 3.8rem);
    /* 하단 컨트롤 자리 */
}

.uami-cause-item .cont-tit {
    margin: 0;
    font-size: max(3rem, 18px);
    font-weight: 700;
    line-height: 1.5;
    color: #000;
}

.uami-cause-item .txt {
    width: 90%;
    margin: 1.3rem 0 0;
    font-size: max(1.8rem, 14px);
    color: #000;
}

/* 컨트롤 — 텍스트 열 하단 정렬 */
.uami-causes-ctrl {
    position: absolute;
    z-index: 20;
    left: max(calc((100% - 1340px) / 2 + var(--inPd)), var(--inPd));
    bottom: 3.8rem;
    padding-left: calc(48rem + 6rem);
    display: flex;
    align-items: center;
}


.uami-causes-ctrl .paging>*+* {
    margin-left: 1.2rem;
}

.uami-causes-ctrl .paging .current,
.uami-causes-ctrl .paging .total {
    width: 4em;
    text-align: center;
    font-size: max(1.5rem, 12px);
    color: #231f20;
}

.uami-causes-ctrl .paging .current {
    font-weight: 600;
}


.uami-causes-ctrl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background-color: var(--primary);
}


.uami-causes-ctrl .sbtn.prev {
    margin-right: 0.8em;
}

.uami-causes-ctrl .sbtn.prev .ico {
    transform: rotate(180deg);
}

.uami-causes-ctrl .sbtn:hover {
    background-color: #000;
}

.uami-causes-ctrl .sbtn:hover .ico {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20.001 20"><path d="M10,0,8.237,1.762,15.212,8.75H0v2.5H15.212L8.237,18.237,10,20,20,10Z" fill="%23fff"/></svg>') no-repeat center / contain;
}

.uami-causes-ctrl .sbtn.swiper-button-disabled {
    opacity: 0.3;
}

@media (max-width: 768px) {
    .uami-cause-item {
        display: block;
    }

    .uami-cause-item .img_box {
        width: 100%;
        height: auto;
        padding-top: 60%;
        margin-right: 0;
    }

    .uami-cause-item .txt_box {
        margin-top: 20px;
        padding-bottom: 0;
    }

    .uami-cause-item .txt {
        width: 95%;
    }

    .uami-causes-ctrl {
        position: relative;
        left: 0;
        bottom: 0;
        width: 100%;
        margin-top: 20px;
        padding-left: 0;
        justify-content: center;
    }

    .uami-causes-ctrl .btn-wrap {
        display: none;
    }

    .uami-causes-ctrl .paging .current,
    .uami-causes-ctrl .paging .total {
        font-size: 12px;
    }
}


/* 우측 하단 퀵메뉴 — 2026-07-22 요청으로 임시 숨겼다가 2026-08-19 요청으로 되살림.
   (이전 규칙: .quick-menu-container { display: none !important }) */


/* ===== "왜 우아미인가" 슬라이드 (parts/why.php) — 데이터: uami_current_why(), 2026-07-22 =====
   좌측 35% 제목/부제/컨트롤 고정 + 우측 60% 정사각 카드 Swiper (1.2~2.2장 미리보기).
   등장 애니메이션: 섹션 진입 시 컨트롤 ↑ / 슬라이드 ← 페이드인. */
.uami-why {
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    /* 컨테이너 1440px 스케일에 맞춤 (--in 1640은 과대) */
    padding-left: max(calc((100% - 1340px) / 2 + var(--inPd)), var(--inPd));
}

.uami-why .left_wrap {
    width: 35%;
    flex-shrink: 0;
    padding-top: 10rem;
}

.uami-why-tit {
    margin: 0;
    font-size: max(4.2rem, 30px);
    font-weight: 700;
    line-height: 1.5;
    color: #231f20;
}

.uami-why-sub {
    margin: 2.4rem 0 0;
    /* 이 부제는 좌측 좁은 칼럼(약 450~560px)에 놓이므로 전체폭 부제(--lead)보다 한 단계 작게 */
    font-size: var(--subTxt);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
}

.uami-why .controls {
    display: flex;
    align-items: center;
    margin-top: 4.8rem;
    opacity: 0;
    transform: translateY(100px);
    transition: transform 0.8s ease-in-out 0.5s, opacity 0.8s ease-in-out 0.5s;
}

.uami-why.active .controls {
    opacity: 1;
    transform: translateY(0);
}


.uami-why .paging>*+* {
    margin-left: 1.2rem;
}

.uami-why .paging .current,
.uami-why .paging .total {
    width: 4em;
    text-align: center;
    font-size: max(1.5rem, 12px);
    font-weight: 700;
    color: #231f20;
}

.uami-why .swiper-pagination-progressbar {
    position: relative;
    width: 8rem;
    height: 2px;
    border-radius: 100rem;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
}

.uami-why .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background-color: var(--primary);
}


.uami-why .sbtn.prev {
    margin-right: 0.8em;
}

.uami-why .sbtn.prev .ico {
    transform: rotate(180deg);
}

.uami-why .sbtn:hover {
    background-color: #000;
}

.uami-why .sbtn:hover .ico {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20.001 20"><path d="M10,0,8.237,1.762,15.212,8.75H0v2.5H15.212L8.237,18.237,10,20,20,10Z" fill="%23fff"/></svg>') no-repeat center / contain;
}

.uami-why .sbtn.swiper-button-disabled {
    opacity: 0.3;
}

.uami-why .slide_wrap {
    width: 60%;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(100px);
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.uami-why .slide_wrap.active {
    opacity: 1;
    transform: translateX(0);
}

.uami-why-item .img_box {
    position: relative;
    padding-top: 100%;
    border-radius: var(--radiusCard);
    overflow: hidden;
    background: #d9d9d9;
    /* 이미지 확정 전 placeholder */
}

.uami-why-item .img_box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.uami-why-item .txt_box {
    margin-top: 3rem;
}

.uami-why-item .txt_box .tit {
    position: relative;
    margin: 0;
    padding-left: 0.8em;
    font-size: max(3rem, 18px);
    font-weight: 650;
    line-height: 1.4;
    color: #231f20;
}

.uami-why-item .txt_box .tit:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.3em;
    height: 0.3em;
    border-radius: 50%;
    background-color: var(--primary);
}

.uami-why-item .txt_box .txt {
    margin: 1.5rem 0 0;
    max-width: 95%;
    font-size: max(1.7rem, 14px);
    line-height: 1.7;
    color: var(--ink);
}

@media (max-width: 1240px) {
    .uami-why {
        flex-direction: column;
    }

    .uami-why .left_wrap {
        width: 100%;
        padding-top: 0;
    }

    .uami-why .controls {
        display: none;
    }

    .uami-why .slide_wrap {
        width: 100%;
        margin-top: 6rem;
    }

    .uami-why-item .txt_box {
        margin-top: 4rem;
    }

    .uami-why-item .txt_box .txt {
        margin-top: 1.5rem;
    }
}

@media (max-width: 600px) {
    .uami-why-item .txt_box {
        margin-top: 25px;
    }
}

/* ==========================================================
   접근 비교 섹션 — 좌·우 2열 + 가운데 항목 라벨 열 (Figma 195:5267, 2026-07-25)
   3개 열이 각각 위·아래만 라운드되어 하나의 표처럼 보이게 처리.
   ========================================================== */


.uami-compare-tit {
    margin: 0;
    font-size: var(--mainTit);
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
    text-align: center;
}

.uami-compare-sub {
    margin: 2.5rem 0 0;
    font-size: var(--lead);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    text-align: center;
}

.uami-compare-table {
    --cmpKeyW: 18rem;
    --cmpGap: 2.8rem;
    --cmpRadius: 15px;
    --cmpRule: rgba(105, 105, 105, .2);
    --cmpKeyLine: rgba(105, 105, 105, .3);
    --cmpLabelBg: var(--ink);
    --cmpCellBg: #EFEFEF;
    --cmpCellBgPoint: #EEF7FF;
    margin: 6rem 0 0;
    opacity: 0;
    transform: translateY(5rem);
    transition: opacity .6s ease-in-out, transform .6s ease-in-out;
}

.uami-compare-table.active {
    opacity: 1;
    transform: none;
}

.uami-compare-table .cmp-head,
.uami-compare-table .cmp-row {
    display: grid;
    grid-template-columns: 1fr var(--cmpKeyW) 1fr;
    gap: var(--cmpGap);
}

.uami-compare-table .cmp-head {
    margin-bottom: 1.5rem;
}

.uami-compare-table .cmp-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 6.5rem;
    padding: 1.4rem 2rem;
    border-radius: var(--cmpRadius);
    background-color: var(--cmpLabelBg);
    color: var(--on-dark);
    font-size: max(2.4rem, 20px);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.uami-compare-table .cmp-label.is-point {
    background-color: var(--primary);
}

.uami-compare-table .cmp-row>p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 2rem 1.5rem;
    font-size: var(--lead);
    line-height: 1.7;
    text-align: center;
}

.uami-compare-table .cmp-cell {
    background-color: var(--cmpCellBg);
    color: var(--ink);
    font-weight: 400;
}

.uami-compare-table .cmp-cell.is-point {
    background-color: var(--cmpCellBgPoint);
    font-weight: 600;
}

.uami-compare-table .cmp-key {
    background-color: var(--canvas);
    border: 1px solid var(--cmpKeyLine);
    color: var(--ink);
    font-weight: 400;
}

/* 셀에 일러스트가 들어가는 행 — 설명 위, 그림 아래 세로 배치 (2026-07-28) */
.uami-compare-table .cmp-row.has-img>.cmp-cell {
    flex-direction: column;
    gap: 1.8rem;
    padding: 2.8rem 2rem;
}

.uami-compare-table .cell-txt {
    display: block;
}

.uami-compare-table .cell-img {
    --cellImgR: 10px;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--cellImgR);
}

@media (max-width: 768px) {
    .uami-compare-table .cmp-row.has-img>.cmp-cell {
        gap: 1.2rem;
        padding: 2rem 1.2rem;
    }

    .uami-compare-table .cell-img {
        width: 100% !important;
    }
}

/* 행 구분선 — 첫 행 위에는 넣지 않음. 가운데 열은 테두리가 이어지므로 중복 제거 */
.uami-compare-table .cmp-row:not(:first-child)>.cmp-cell {
    border-top: 1px solid var(--cmpRule);
}

.uami-compare-table .cmp-row:not(:first-child)>.cmp-key {
    border-top: 0;
}

/* 표 상·하단만 라운드 */
.uami-compare-table .cmp-row:first-child>p {
    border-radius: var(--cmpRadius) var(--cmpRadius) 0 0;
}

.uami-compare-table .cmp-row:last-child>p {
    border-radius: 0 0 var(--cmpRadius) var(--cmpRadius);
}

/* 행이 하나뿐이면 네 꼭짓점 모두 */
.uami-compare-table .cmp-row:first-child:last-child>p {
    border-radius: var(--cmpRadius);
}

@media (max-width: 1240px) {
    .uami-compare-table {
        --cmpKeyW: 12rem;
        --cmpGap: 1.6rem;
    }

    .uami-compare-table .cmp-label {
        min-height: 5.6rem;
        padding: 1.2rem 1.4rem;
    }
}

@media (max-width: 768px) {
    .uami-compare-table {
        --cmpKeyW: 6.4rem;
        --cmpGap: 1rem;
        --cmpRadius: 10px;
        margin-top: 4rem;
    }

    .uami-compare-table .cmp-head {
        margin-bottom: 1rem;
    }

    .uami-compare-table .cmp-label {
        min-height: 0;
        padding: 1.2rem .8rem;
        font-size: max(15px, 1.7rem);
    }

    .uami-compare-table .cmp-row>p {
        padding: 1.6rem .8rem;
        font-size: max(13px, 1.5rem);
    }

    .uami-compare-table .cmp-key {
        font-size: max(12px, 1.4rem);
        line-height: 1.4;
    }

    /* 좁은 화면에서는 데이터의 줄바꿈을 무시하고 자연 흐름으로 */
    .uami-compare-table .cmp-cell br {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uami-compare-table {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── 비교표 사진 블록 (media 키가 있을 때만) ───────────────── */
.uami-compare-table .cmp-media {
    display: grid;
    grid-template-columns: 1fr var(--cmpKeyW) 1fr;
    gap: var(--cmpGap);
    margin-bottom: 5.2rem;
}

.uami-compare-table .cmp-figure {
    position: relative;
    margin: 0;
    aspect-ratio: 580 / 320;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--cmpCellBg);
}


/* 좌하단 확대 컷 — 사진 대비 비율로 배치해 열 폭이 줄어도 위치 유지 */
.uami-compare-table .cmp-detail {
    position: absolute;
    left: 5.2%;
    top: 42.8%;
    width: 34.1%;
    height: auto;
    aspect-ratio: 198 / 151;
    object-fit: cover;
    border: 1px solid var(--ink);
    background-color: var(--canvas);
}

@media (max-width: 768px) {
    .uami-compare-table .cmp-media {
        margin-bottom: 2.4rem;
    }

    /* 좁은 화면에선 확대 컷을 겹치지 않고 사진 아래로 내림 */
    .uami-compare-table .cmp-figure {
        aspect-ratio: auto;
        border-radius: 0;
        overflow: visible;
        background: none;
    }

    .uami-compare-table .cmp-photo {
        height: auto;
        aspect-ratio: 580 / 320;
        border-radius: var(--cmpRadius);
    }

    .uami-compare-table .cmp-detail {
        position: static;
        width: 100%;
        margin-top: .6rem;
        border-radius: var(--cmpRadius);
    }
}

/* ── 비교표 색 변형 — 기본 스타일이 전부 변수라 변수만 덮어쓰면 됩니다 ──
   기본  : 좌 회색 라벨 + 회색 셀  /  우 파란 라벨 + 하늘 셀 (우열 비교)
   peer  : 양쪽 모두 파란 라벨 + 동일한 셀 (우열 없는 두 사례 병렬)
   cool  : 기본과 같은 라벨 + 한 톤 시원한 셀 (붓기·순환 주제)
   ------------------------------------------------------------------ */
/* 진한 헤더 변형 — 좌 헤더 먹색, 셀 대비를 낮춘 톤 (Figma 719:7820, 2026-07-28)
   돌출점 비교표 전용. 기본 변형(회색 헤더)을 쓰는 표에는 영향 없음 */
.uami-compare-table.is-ink {
    --cmpKeyW: 15rem;
    --cmpGap: 2.7rem;
    --cmpLabelBg: #231F20;
    --cmpCellBg: #EFEFEF;
    --cmpCellBgPoint: #EEF7FF;
}

.uami-compare-table.is-ink .cmp-label {
    font-size: max(2.3rem, 19px);
}

.uami-compare-table.is-ink .cmp-key {
    font-size: max(1.8rem, 15px);
    font-weight: 500;
}

/* 연한 파랑 셀이라 강조 굵기를 낮춰 본문과 균형을 맞춥니다 */
.uami-compare-table.is-ink .cmp-cell.is-point {
    font-weight: 400;
}

@media (max-width: 1240px) {
    .uami-compare-table.is-ink {
        --cmpKeyW: 11rem;
        --cmpGap: 1.6rem;
    }
}

@media (max-width: 600px) {
    .uami-compare-table.is-ink {
        --cmpKeyW: 6.4rem;
        --cmpGap: 1rem;
    }
}

/* 표 아래 보충 카드 — 제목·번호 없이 표의 일부로 붙습니다 (Figma 684:7492, 2026-07-28) */
.uami-compare-table .cmp-notes {
    list-style: none;
    margin: 6rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cmpGap);
}

.uami-compare-table .cmp-note {
    padding: 4rem 4.4rem;
    border-radius: 20px;
    background-color: var(--canvas-cool);
}

.uami-compare-table .cmp-note .tit {
    margin: 0;
    font-size: max(2.6rem, 19px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.uami-compare-table .cmp-note .txt {
    margin: 1.4rem 0 0;
    font-size: max(1.7rem, 15px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
}

@media (max-width: 1024px) {
    .uami-compare-table .cmp-notes {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        margin-top: 4rem;
    }

    .uami-compare-table .cmp-note {
        padding: 2.8rem 3rem;
    }
}

/* 구분 열을 맨 앞에 두는 배치 — Figma 536:2 (2026-07-28)
   헤더 첫 칸은 빈 칸(cmp-spacer)이라 라벨은 표 본문과만 정렬됩니다. */
.uami-compare-table.is-keyfirst .cmp-head,
.uami-compare-table.is-keyfirst .cmp-row {
    grid-template-columns: var(--cmpKeyW) 1fr 1fr;
}

/* 표 상·하단 라운드 — 첫 열(구분)까지 포함해 다시 지정 */
.uami-compare-table.is-keyfirst .cmp-row:first-child>.cmp-key {
    border-radius: var(--cmpRadius) 0 0 0;
}

.uami-compare-table.is-keyfirst .cmp-row:last-child>.cmp-key {
    border-radius: 0 0 0 var(--cmpRadius);
}

.uami-compare-table.is-peer {
    --cmpLabelBg: var(--primary);
    --cmpCellBg: #F6F8FC;
    --cmpCellBgPoint: #F6F8FC;
    --cmpKeyLine: rgba(105, 105, 105, .2);
}

/* peer 는 좌·우가 동등하므로 우측 강조 굵기를 쓰지 않습니다 */
.uami-compare-table.is-peer .cmp-cell.is-point {
    font-weight: 400;
}

.uami-compare-table.is-cool {
    --cmpCellBg: #F6F8FC;
    --cmpCellBgPoint: #B5D1EB;
    --cmpKeyLine: rgba(105, 105, 105, .2);
}

/* 회색 라벨에 흰 텍스트는 대비가 부족해(약 1.4:1) 진한 잉크로 표기.
   양쪽이 파란 라벨인 peer 변형은 흰 텍스트를 그대로 씁니다. */

/* ==========================================================
   맞춤 케어 카드 섹션 — 좌측 정렬 헤더 + 이미지 카드 3단 (Figma 428:14987, 2026-07-25)
   ========================================================== */


.uami-care-sub {
    margin: 2rem 0 0;
    font-size: var(--lead);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
}

.uami-care-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    margin: 6rem 0 0;
    padding: 0;
}

.uami-care-list .item {
    opacity: 0;
    transform: translateY(5rem);
    transition: opacity .6s ease-in-out, transform .6s ease-in-out;
}

.uami-care-list.active .item {
    opacity: 1;
    transform: none;
    /* 등장 시차 — 순번(--i)은 parts/care.php 가 인라인으로 넣습니다.
       ⚠️ 예전엔 nth-child(2)·(3) 만 하드코딩돼 있어 4장·5장 배치에서 마지막 카드가
       1번과 동시에 떠 순서가 어긋났습니다. 장수가 늘어도 이 한 줄이 알아서 처리합니다. */
    transition-delay: calc(var(--i, 0) * .2s);
}

.uami-care-list .img_box {
    aspect-ratio: 443.683 / 325;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--canvas-cool);
}


.uami-care-list .txt_box {
    width: 87%;
    margin: 2.5rem auto 0;
    text-align: center;
}

.uami-care-list .tit {
    margin: 0;
    font-size: max(2.6rem, 20px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.uami-care-list .txt {
    margin: 1rem 0 0;
    font-size: var(--subTxt);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
}

@media (max-width: 1240px) {
    .uami-care-list {
        gap: 2.4rem;
    }

    .uami-care-list .txt_box {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* 가로 스크롤 — 컨테이너 좌우 여백을 넘겨 화면 끝까지 흐르게 하고 카드 단위로 스냅 */
    .uami-care-list {
        display: flex;
        grid-template-columns: none;
        gap: 1.5rem;
        margin: 4rem calc(var(--inPd) * -1) 0;
        padding: 0 var(--inPd);
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: var(--inPd);
        overscroll-behavior-x: contain;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .uami-care-list::-webkit-scrollbar {
        display: none;
    }

    .uami-care-list .item {
        flex: 0 0 280px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        /* 스크롤 컨테이너 안에서는 위로 밀어올리는 등장 효과를 생략(스크롤 높이 흔들림 방지) */
        transform: none;
    }

    .uami-care-list .img_box {
        border-radius: 12px;
    }

    .uami-care-list .txt_box {
        margin-top: 1.8rem;
    }

    /* 좁은 화면에서는 데이터의 줄바꿈을 무시하고 자연 흐름으로 */
    .uami-care-list .txt br {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uami-care-list .item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── care 카드 4단 + STEP 배지 변형 (Figma 528:6866) ───────── */
.uami-care-list.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 4단은 카드가 좁아 본문을 카드 폭 전체로 (Figma 도 4단에서 100%) */
.uami-care-list.cols-4 .txt_box {
    width: 100%;
}

/* STEP 배지 — 데이터에 step 값이 있을 때만 출력 */
.uami-care-list .step {
    display: block;
    width: fit-content;
    margin: 2.5rem auto 0;
    padding: 0.4rem 2rem;
    border-radius: var(--pill);
    background-color: var(--ink);
    color: var(--on-dark);
    font-size: max(1.5rem, 12px);
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

/* 배지가 있으면 배지가 이미지와의 간격을 담당하므로 제목 간격을 줄임 */
.uami-care-list .step+.txt_box {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .uami-care-list .step {
        margin-top: 1.8rem;
    }

    .uami-care-list .step+.txt_box {
        margin-top: 1.2rem;
    }
}

/* ── care 카드 5단 (Figma 528:6867 — 보험 처리 절차) ───────── */
/* 5단은 한 줄에 5개를 늘어놓으면 카드가 241px 로 작아지므로,
   6열 격자에 2칸씩 배치해 한 줄에 3개 + 둘째 줄 2개 가운데 정렬(카드 약 415px).
   모바일(≤768px)은 공통 규칙의 flex 가로 스크롤을 쓰므로 데스크톱으로 한정. */
@media (min-width: 769px) {
    .uami-care-list.cols-5 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 6rem 2.8rem;
    }

    .uami-care-list.cols-5 .item {
        grid-column: span 2;
    }

    .uami-care-list.cols-5 .item:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .uami-care-list.cols-5 .item:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

.uami-care-list.cols-5 .txt_box {
    width: 100%;
}

/* 초광폭(2001px+)에서는 좌우 여백을 더 넉넉히 — 콘텐츠 폭이 충분히 남는 구간 */
@media (min-width: 2001px) {
    .site-footer .ft_location {
        padding: 10rem 20rem 0;
    }
}

/* 지도 마커 반응형 배율 (원본 230px) */
@media (max-width: 1640px) {

    .site-footer .map img[src$="map-anchor.svg"],
    .uami-visit .vs-map img[src$="map-anchor.svg"] {
        transform: scale(0.87);
    }
}

@media (max-width: 1400px) {

    .site-footer .map img[src$="map-anchor.svg"],
    .uami-visit .vs-map img[src$="map-anchor.svg"] {
        transform: scale(0.8);
    }
}

@media (max-width: 1240px) {

    .site-footer .map img[src$="map-anchor.svg"],
    .uami-visit .vs-map img[src$="map-anchor.svg"] {
        transform: scale(0.74);
    }
}

@media (max-width: 768px) {

    .site-footer .map img[src$="map-anchor.svg"],
    .uami-visit .vs-map img[src$="map-anchor.svg"] {
        transform: scale(0.57);
    }
}

/* ==========================================================
   섹션 사이 워터마크 마키 밴드 (Figma 195:5265, 2026-07-25)
   Cormorant Garamond Bold / 최대 120px / #F5F7FA.
   애니메이션은 uami-special 에서 쓰는 uamiSpFlow 키프레임 재사용.
   ========================================================== */
.uami-marquee {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

.uami-marquee p {
    flex: 0 0 auto;
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    /* 12rem = 1640px 이상에서 120px (Figma 값) */
    font-size: clamp(6rem, 9.4vw, 12rem);
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--canvas-cool);
    animation: uamiSpFlow 40s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .uami-marquee p {
        animation: none;
    }
}

/* ==========================================================
   생애주기 다이어트 탭 섹션 (Figma 345:12842 / 345:13007, 2026-07-25)
   탭 nav(알약) + 패널 전환. 패널 안 블록: lead / signs / care / cases.
   care·cases 는 기존 .uami-num-list 를 재사용하고, 탭 안에서는
   등장 애니메이션이 필요 없으므로 .is-static 으로 즉시 표시합니다.
   ========================================================== */

/* 상단 탭에서 내려올 때 스티키 헤더에 제목이 가리지 않도록 (2026-08-11) */
.uami-lctabs[id] {
    scroll-margin-top: calc(var(--hdH) + 20px);
}


.uami-lctabs-sub {
    margin: 2.4rem 0 0;
    font-size: var(--lead);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);

}

/* ── 탭 nav ── */
.uami-lctabs .tab_nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
    margin: 5.6rem 0 0;
}

.uami-lctabs .tab_nav .btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 2rem 4.2rem;
    border-radius: 100rem;
    background-color: var(--cmp-inactive, #D9D9D9);
    font-family: inherit;
    font-size: max(2rem, 17px);
    font-weight: 700;
    line-height: 1.3;
    color: #696969;
    transition: background-color .25s ease, color .25s ease;
}

.uami-lctabs .tab_nav .btn:hover {
    background-color: #CFCFCF;
}

.uami-lctabs .tab_nav .btn.active {
    background-color: var(--primary);
    color: #fff;
}

.uami-lctabs .tab_nav .btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ── 패널 ── */
.uami-lctabs .tab {
    display: none;
}

.uami-lctabs .tab.active {
    display: block;
}

/* ── lead (대표: 좌 텍스트 + 우 이미지) ── */
.uami-lctabs .lct-lead {
    display: grid;
    grid-template-columns: 1fr min(56rem, 42%);
    align-items: center;
    gap: 6rem;
    margin: 10rem 0 0;
}

.uami-lctabs .lct-lead .txt_box .tit {
    margin: 0;
    font-size: var(--subTit);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.uami-lctabs .lct-lead .txt_box .txt {
    margin: 2.4rem 0 0;
    font-size: var(--lead);
    font-weight: 400;
    line-height: 1.75;
    color: var(--ink);
}

.uami-lctabs .lct-lead .img_box {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 560 / 406;
}


.uami-lctabs .lct-lead .img_box.is-empty {
    background-color: #D9D9D9;
}

/* ── signs (신호 원형 4개) ── */
.uami-lctabs .lct-signs {
    margin: 12rem 0 0;
}

.uami-lctabs .lct-signs>.tit {
    margin: 0;
    font-size: var(--subTit);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.uami-lctabs .lct-signs>.sub {
    margin: 1.8rem 0 0;
    font-size: var(--lead);
    font-weight: 400;
    line-height: 1.7;
    color: var(--body-muted);
}

.uami-lctabs .lct-signs .list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.6rem;
    list-style: none;
    margin: 5.6rem 0 0;
    padding: 0;
}

.uami-lctabs .lct-signs .item {
    text-align: center;
}

.uami-lctabs .lct-signs .circle {
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}


.uami-lctabs .lct-signs .circle.is-empty {
    background-color: #D9D9D9;
}

.uami-lctabs .lct-signs .s_tit {
    margin: 2.6rem 0 0;
    font-size: max(2.6rem, 20px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.uami-lctabs .lct-signs .s_txt {
    margin: 1.2rem 0 0;
    font-size: var(--subTxt);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
}

/* ── care (치료 번호 리스트) / cases (대상 필) ── */
.uami-lctabs .lct-care,
.uami-lctabs .lct-cases {
    margin: 12rem 0 0;
}


.uami-lctabs .lct-care>.sub,
.uami-lctabs .lct-cases .head .sub {
    margin: 2.2rem 0 0;
    font-size: var(--lead);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
}

/* 탭 안에서는 순차 등장 애니메이션 없이 즉시 표시 */
.uami-lctabs .uami-num-list.is-static .item {
    opacity: 1;
    transform: none;
    transition: none;
}

/* 대상 필: 설명 없이 라벨만 — 번호를 브랜드 블루로 */
.uami-lctabs .uami-num-list.is-label .item .num {
    background-color: transparent;
    color: var(--primary);
    width: auto;
    height: auto;
    margin-right: 2.2rem;
    font-size: max(2rem, 17px);
}

.uami-lctabs .uami-num-list.is-label .item .txt_box .tit {
    font-weight: 650;
    font-size: max(2rem, 17px);
}

/* cases: 좌 제목 + 우 리스트 (Figma 배치) */
.uami-lctabs .lct-cases {
    display: grid;
    grid-template-columns: minmax(0, 46rem) 1fr;
    align-items: start;
    gap: 10rem;
}

.uami-lctabs .lct-cases .uami-num-list {
    margin: 0;
}

/* ── 반응형 ── */
@media (max-width: 1240px) {
    .uami-lctabs .lct-lead {
        grid-template-columns: 1fr;
        gap: 4rem;
        margin: 8rem 0 0;
    }

    .uami-lctabs .lct-signs,
    .uami-lctabs .lct-care,
    .uami-lctabs .lct-cases {
        margin: 9rem 0 0;
    }

    .uami-lctabs .lct-signs .list {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 3rem;
    }

    .uami-lctabs .lct-cases {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .uami-lctabs .tab_nav {
        gap: 1rem;
        margin: 4rem 0 0;
    }

    .uami-lctabs .tab_nav .btn {
        padding: 1.6rem 2.4rem;
        /* 터치 타겟 44px 확보 — rem 이 작아지는 구간에서 43px 로 떨어졌음 */
        min-height: 44px;
        font-size: max(1.7rem, 15px);
    }

    .uami-lctabs .lct-signs .list {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .uami-lctabs .lct-signs .circle {
        max-width: 29rem;
        margin: 0 auto;
    }
}


/* ==========================================================
   부위별 부작용 다이어그램 — 가운데 이미지 + 좌우 카드 (2026-07-27)
   parts/diagram.php / uami_current_diagram()
   ========================================================== */


/* ── 본체 ── */
.uami-diagram .dg-map {
    display: grid;
    grid-template-columns: 1fr minmax(0, 38rem) 1fr;
    align-items: center;
    column-gap: 6rem;
    margin: 7rem 0 0;
}

.uami-diagram .dg-col {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    min-width: 0;
}

.uami-diagram .dg-card {
    position: relative;
    z-index: 4;
    background-color: var(--canvas-cool);
    border-radius: var(--radiusCard);
    padding: 2.8rem 3rem;
}

.uami-diagram .dg-card .c_tit {
    margin: 0;
    font-size: max(2rem, 17px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.uami-diagram .dg-card .c_txt {
    margin: 0.6rem 0 0;
    font-size: max(1.5rem, 13px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
}

/* 카드 ↔ 지시점 연결선 — SVG 로 그립니다 (parts/diagram.php 스크립트)
   실측: 0.5px · #231F20 40% 실선 (Figma 660:7496) */
.uami-diagram .dg-map {
    position: relative;
}

.uami-diagram .dg-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    /* 사진 위 · 지시점 아래로 (사진에 가리면 선이 지시점까지 닿지 않아 보입니다) */
    z-index: 2;
}

.uami-diagram .dg-lines line {
    stroke: rgba(35, 31, 32, .4);
    stroke-width: .5;
}

/* 지시점 — 사진 위 % 좌표 */
.uami-diagram .dg-figure .img_box {
    position: relative;
}

.uami-diagram .dg-dot {
    position: absolute;
    z-index: 3;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background-color: var(--ink);
}

/* 1024px 이하 — 사진이 위로 가고 카드가 아래로 떨어지므로
   선과 지시점 모두 가리킬 대상을 잃어 함께 숨깁니다. */
@media (max-width: 1024px) {

    .uami-diagram .dg-lines,
    .uami-diagram .dg-dot {
        display: none;
    }
}

/* ── 가운데 이미지 ── */
.uami-diagram .dg-figure {
    min-width: 0;
}

.uami-diagram .dg-figure .img_box {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radiusPhoto);
    overflow: hidden;
}

.uami-diagram .dg-figure .img_box.is-empty {
    background-color: #D9D9D9;
}


/* ── 공통 증상 띠 ── */
.uami-diagram .dg-common {
    margin: 8rem 0 0;
    background-color: var(--primary-wash);
    border-radius: var(--radiusCardLg);
    padding: 4rem 3rem;
}

.uami-diagram .dg-common .h {
    margin: 0;
    font-size: var(--cardTit);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
    text-align: center;
}

.uami-diagram .dg-common .list {
    list-style: none;
    margin: 3.2rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2rem;
}

.uami-diagram .dg-common .list .item {
    text-align: center;
    min-width: 0;
}

.uami-diagram .dg-common .ico {
    display: block;
    width: 6.4rem;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
}

.uami-diagram .dg-common .ico.is-empty {
    background-color: var(--canvas);
}

.uami-diagram .dg-common .ico img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.uami-diagram .dg-common .lb {
    display: block;
    margin: 1.2rem 0 0;
    font-size: var(--subTxt);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.uami-diagram .dg-note {
    margin: 2.4rem 0 0;
    font-size: var(--caption);
    line-height: 1.6;
    color: var(--body-muted);
    text-align: center;
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
    /* 좌 · 우 묶음을 풀어 카드 전체를 한 격자에 올린다 (2026-08-19).
       예전에는 컬럼마다 따로 2열 격자를 만들어서, 홀수 장이면 컬럼마다
       한 칸씩 비었다 — 3장씩이면 2 · 1 · 2 · 1 로 구멍이 두 개 생긴다.
       display:contents 로 컬럼을 투명하게 만들면 6장이 2 · 2 · 2 로 맞아떨어진다. */
    .uami-diagram .dg-map {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
        row-gap: 2rem;
        /* 데스크톱은 좌 · 사진 · 우 세 덩어리를 가운데 맞추지만, 카드 격자에서는
           높이가 다른 카드가 서로 어긋나 보인다. 같은 행끼리 높이를 맞춘다. */
        align-items: stretch;
    }

    .uami-diagram .dg-col {
        display: contents;
    }

    /* 이미지는 맨 위, 두 열을 가로질러 */
    .uami-diagram .dg-figure {
        order: -1;
        grid-column: 1 / -1;
        margin-bottom: 2rem;
    }

    .uami-diagram .dg-figure .img_box {
        max-width: 42rem;
        margin: 0 auto;
        aspect-ratio: 4 / 3;
    }

    /* 세로로 쌓이면 연결선은 의미가 없다 */
    .uami-diagram .dg-card::after {
        display: none;
    }

    .uami-diagram .dg-common .list {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 3rem;
    }
}

@media (max-width: 600px) {
    .uami-diagram .dg-map {
        grid-template-columns: 1fr;
    }

    .uami-diagram .dg-common {
        padding: 3rem 2rem;
    }

    .uami-diagram .dg-common .list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Figma 660:7496 톤 — 맵 전체를 연한 패널로 감싸고 카드는 흰색 (2026-07-28) */
.uami-diagram .dg-map {
    background-color: var(--canvas-cool);
    border-radius: var(--radiusCardLg);
    padding: 5rem;
    column-gap: 4rem;
}

.uami-diagram .dg-card {
    background-color: var(--canvas);
}

/* 좌열은 우측 정렬, 우열은 좌측 정렬 — 사진을 향해 마주보게 */
.uami-diagram .dg-col.is-left .dg-card {
    text-align: right;
}

/* 사진은 원본 비율 그대로 (잘라내지 않음) */
.uami-diagram .dg-figure .img_box {
    aspect-ratio: auto;
    border-radius: 0;
    overflow: visible;
}

.uami-diagram .dg-figure .img_box img {
    height: auto;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .uami-diagram .dg-map {
        padding: 3rem 2.4rem;
        /* 예전에는 한 열로 쌓여 가로 간격이 필요 없었지만, 이제 카드가 2열로
           나란히 놓이므로 열 사이를 띄운다. 0 이면 흰 카드 두 장이 붙어
           한 덩어리로 보인다. (2026-08-19) */
        column-gap: 2rem;
    }

    .uami-diagram .dg-col.is-left .dg-card {
        text-align: left;
    }
}


/* ==========================================================
   와이드 배너 — parts/banner.php (2026-07-27)
   배경 이미지 위에 글자를 얹습니다. 모바일에서는 글이 이미지 아래로 내려갑니다.
   ========================================================== */
.uami-banner {
    padding: var(--sectSm) 0;
}

.uami-banner-in {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 var(--inPd);
}

.uami-banner .bn-box {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.uami-banner .bn-img {
    aspect-ratio: 1200 / 380;
}

.uami-banner .bn-img.is-empty {
    background-color: #D9D9D9;
}


.uami-banner .bn-txt {
    position: absolute;
    top: 50%;
    left: 8.7%;
    transform: translateY(-50%);
    width: min(56%, 62rem);
}


.uami-banner .bn-sub {
    margin: 2.4rem 0 0;
    font-size: max(1.8rem, 15px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
}

/* 태블릿 — 배너를 조금 높여 글자 공간 확보 */
@media (max-width: 1024px) {
    .uami-banner .bn-img {
        aspect-ratio: 1200 / 480;
    }

    .uami-banner .bn-txt {
        width: min(60%, 52rem);
    }
}

/* 모바일 — 글자를 이미지 아래로 */
@media (max-width: 768px) {
    .uami-banner .bn-box {
        background-color: var(--canvas-cool);
    }

    .uami-banner .bn-img {
        aspect-ratio: 3 / 2;
    }

    .uami-banner .bn-img img {
        object-position: 78% center;
    }

    .uami-banner .bn-txt {
        position: static;
        transform: none;
        width: auto;
        padding: 3rem 2.4rem 3.4rem;
    }
}


/* ==========================================================
   부위별 안내 — 원형 사진 + 번호 배지 + 부위명 + 설명 2열 (2026-07-27)
   parts/areas.php / uami_current_areas()   Figma 615:2
   번호 배지는 limits · cases 와 같은 규격(2.7em 원형, --ink 바탕 흰 글씨)
   ========================================================== */


.uami-areas-sub {
    margin: 2.4rem 0 0;
    font-size: var(--lead);
    font-weight: 500;
    line-height: 1.7;
    color: var(--ink);
}

.uami-areas .ar-list {
    list-style: none;
    margin: 8rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10rem;
    row-gap: 9rem;
}

.uami-areas .ar-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    min-width: 0;
}

.uami-areas .circle {
    flex-shrink: 0;
    width: 25rem;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.uami-areas .circle.is-empty {
    background-color: #D9D9D9;
}


.uami-areas .txt_box {
    min-width: 0;
}

.uami-areas .head {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.uami-areas .num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.7em;
    height: 2.7em;
    border-radius: 50%;
    background-color: var(--ink);
    color: var(--on-dark);
    font-size: max(1.7rem, 15px);
    font-weight: 700;
    line-height: 1;
}

.uami-areas .tit {
    margin: 0;
    font-size: max(2.6rem, 19px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.uami-areas .txt {
    margin: 2rem 0 0;
    font-size: var(--subTxt);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
}

@media (max-width: 1240px) {
    .uami-areas .ar-list {
        column-gap: 6rem;
        row-gap: 7rem;
    }

    .uami-areas .ar-item {
        gap: 3rem;
    }

    .uami-areas .circle {
        width: 20rem;
    }
}

@media (max-width: 1024px) {
    .uami-areas .ar-list {
        grid-template-columns: 1fr;
        row-gap: 5rem;
    }

    .uami-areas .circle {
        width: 22rem;
    }
}

/* 좁은 화면 — 사진을 위로 올리고 가운데 정렬 */
@media (max-width: 600px) {
    .uami-areas .ar-item {
        flex-direction: column;
        align-items: center;
        gap: 2.4rem;
        text-align: center;
    }

    .uami-areas .circle {
        width: 18rem;
    }

    .uami-areas .head {
        justify-content: center;
    }

    .uami-areas .txt {
        margin-top: 1.4rem;
    }
}


/* ==========================================================
   도해 섹션 — parts/pinmap.php (2026-07-27)
   라벨·지시선까지 그려진 통이미지 한 장을 카드 위에 얹습니다.
   여백은 Figma 642:14774 실측(카드 1400 기준 %) — 좌우 94 / 위 75 / 아래 103,
   이미지 1257x547, 이미지↔3단계 54.
   ========================================================== */


.uami-pinmap .pm-card {
    margin: 3.4rem 0 0;
    padding: 5.36% 6.71% 7.36%;
    background-color: var(--canvas-cool);
    border-radius: 40px;
}

.uami-pinmap .pm-fig img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1257 / 547;
    object-fit: contain;
}

.uami-pinmap .pm-list {
    display: none;
}

/* ── 3단계 (카드 안 흰 박스) ── */
.uami-pinmap .pm-steps {
    list-style: none;
    margin: 4.46% 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.14%;
}

/* 4열이 좁아지는 구간 — 2열로 접는다 (900 이하는 아래에서 1열) */
@media (max-width: 1240px) {
    .uami-pinmap .pm-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
}

.uami-pinmap .pm-step {
    background-color: var(--canvas);
    border-radius: 20px;
    padding: 3rem 3.2rem;
    text-align: center;
    min-width: 0;
}

.uami-pinmap .pm-step .no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4em 1.2em;
    border-radius: var(--pill);
    background-color: var(--primary);
    color: var(--on-dark);
    font-size: max(1.5rem, 13px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.uami-pinmap .pm-step .tit {
    margin: 1.4rem 0 0;
    font-size: max(2.3rem, 18px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.uami-pinmap .pm-step .txt {
    margin: 1.4rem 0 0;
    font-size: max(1.8rem, 15px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
}

/* ── 반응형 ── */
/* 좁은 화면 — 이미지 속 라벨이 작아지므로 같은 내용을 목록으로 함께 보여줍니다 */
@media (max-width: 900px) {
    .uami-pinmap .pm-card {
        padding: 3rem 2.4rem 3.4rem;
    }

    .uami-pinmap .pm-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem 2rem;
        list-style: none;
        margin: 2.4rem 0 0;
        padding: 0;
    }

    .uami-pinmap .pm-list li {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        font-size: max(1.6rem, 14px);
        font-weight: 700;
        line-height: 1.4;
        color: var(--primary);
    }

    .uami-pinmap .pm-list .ico {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
        background-color: var(--primary);
        color: var(--on-dark);
        font-size: 1.3rem;
        font-style: normal;
    }

    .uami-pinmap .pm-steps {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        margin: 3rem 0 0;
    }
}

@media (max-width: 600px) {
    .uami-pinmap .pm-list {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   우아미 소개 (Figma 345:12903, 2026-07-28)
   parts/story.php / uami_current_story()
   레퍼런스 구조는 3열 사진 그리드 — 셀 폭만 같고 높이는 원본 비율대로 위쪽 정렬.
   ⚠️ 사진 webp 에 30px 라운드가 구워져 있으므로 아래 라운드 값을 바꾸면 흰 모서리가 드러납니다.
   ========================================================== */


/* ── 1. 리드 + 대표 이미지 ── */
.uami-story .st-lead {
    padding: var(--sectLg) 0 0;
}

.uami-story .st-lead .tit {
    margin: 0;
    font-size: var(--mainTit);
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    color: var(--ink);
}

.uami-story .st-lead .img {
    margin: 7.2rem 0 0;
    border-radius: 30px;
    overflow: hidden;
}

.uami-story .st-lead .img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1400 / 540;
    object-fit: cover;
}

/* ── 2. 영문 디스플레이 + 진료 가치 ── */
.uami-story .st-values {
    padding: 13.5rem 0 0;
}

.uami-story .st-values .uami-story-in {
    display: grid;
    grid-template-columns: 1fr 47.8rem;
    gap: 6rem;
    align-items: start;
}

.uami-story .st-values .en {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 9rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.uami-story .st-values .en span {
    display: block;
}

.uami-story .st-values .en .is-point {
    color: #2488C9;
}

.uami-story .st-values .list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12rem;
}


.uami-story .st-values .list .txt {
    margin: 2rem 0 0;
    font-size: max(2rem, 16px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
}

/* ── 3. 이야기 밴드 ── */
.uami-story .st-band {
    margin: 12rem 0 0;
    padding: 22.9rem 0 25.2rem;
    background-color: var(--surface-mist);
}

.uami-story .st-band .tit {
    margin: 0;
    font-size: var(--mainTit);
    font-weight: 700;
    line-height: 1.5;
    color: #000;
}

.uami-story .st-band .sub {
    margin: 3.4rem 0 0;
    font-size: max(3.4rem, 20px);
    font-weight: 700;
    line-height: 1.5;
    color: #000;
}

.uami-story .st-band .body {
    margin: 5rem 0 0;
    max-width: 136.8rem;
}

.uami-story .st-band .body p {
    margin: 0;
    font-size: max(1.8rem, 15px);
    font-weight: 400;
    line-height: 1.62;
    color: #000;
}

.uami-story .st-band .body p+p {
    margin-top: 1.6em;
}

.uami-story .st-band .photos {
    list-style: none;
    margin: 8.7rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
}

.uami-story .st-band .photos img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px;
}

/* ── 4. 의료진 소개 ── */
.uami-story .st-doctor {
    padding: 20rem 0 var(--sectLg);
}


.uami-story .st-doctor .head .sub {
    margin: 2rem 0 0;
    font-size: max(2rem, 16px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
}

.uami-story .st-doctor .row {
    margin: 11.8rem 0 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12.7rem;
}

.uami-story .st-doctor .photo {
    flex: 0 0 56rem;
    max-width: 56rem;
}

.uami-story .st-doctor .photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px;
}

.uami-story .st-doctor .name {
    margin: 1.1rem 0 0;
    font-size: var(--mainTit);
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
}

.uami-story .st-doctor .career {
    list-style: none;
    margin: 3.4rem 0 0;
    padding: 0;
}

.uami-story .st-doctor .career li {
    position: relative;
    padding-left: 1.4rem;
    font-size: max(2rem, 16px);
    font-weight: 400;
    line-height: 1.9;
    color: var(--ink);
}

.uami-story .st-doctor .career li:before {
    content: "\00B7";
    position: absolute;
    left: 0;
}

/* ── 반응형 ── */
@media (max-width: 1240px) {
    .uami-story .st-values .uami-story-in {
        grid-template-columns: 1fr;
        gap: 8rem;
    }

    .uami-story .st-values .list {
        gap: 8rem;
    }

    .uami-story .st-band {
        padding: 14rem 0 16rem;
    }

    .uami-story .st-doctor {
        padding: 14rem 0 var(--sectLg);
    }

    .uami-story .st-doctor .row {
        margin-top: 8rem;
        gap: 8rem;
    }

    .uami-story .st-doctor .photo {
        flex-basis: 44rem;
    }
}

@media (max-width: 900px) {
    .uami-story .st-doctor .row {
        flex-direction: column;
        align-items: center;
        gap: 5rem;
    }

    .uami-story .st-doctor .photo {
        flex-basis: auto;
        width: 100%;
        max-width: 44rem;
    }

    .uami-story .st-doctor .info {
        width: 100%;
        max-width: 44rem;
    }

    .uami-story .st-doctor .name {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .uami-story .st-lead {
        padding-top: var(--sectMd);
    }

    .uami-story .st-lead .img {
        margin-top: 4rem;
        border-radius: 20px;
    }

    .uami-story .st-values {
        padding-top: 9rem;
    }

    .uami-story .st-values .en {
        font-size: max(5.6rem, 40px);
    }

    .uami-story .st-band {
        margin-top: 9rem;
        padding: 9rem 0 10rem;
    }

    .uami-story .st-band .photos {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 5rem;
    }

    .uami-story .st-band .photos img {
        border-radius: 20px;
    }

    .uami-story .st-doctor .photo img {
        border-radius: 20px;
    }
}

/* ── 스크롤 모션 ─────────────────────────────────────────────
   전역 .reveal(main.js IntersectionObserver, threshold 0.18) 을 재사용하고,
   블록별로 기본 모션(translateY 페이드)을 덮어씁니다.
   레퍼런스 모션 수치 그대로: 영문 translateX(80px)+blur(10px) 1s / 2번째 줄 0.2s 지연,
   가치 카드 translateX(-100px), 사진 clip-path 아래→위 1.5s.
   가로 이동이 있는 구간은 overflow-x: clip 으로 가로 스크롤을 막습니다.
   ------------------------------------------------------------ */
.uami-story .st-values,
.uami-story .st-band {
    overflow-x: clip;
}

/* 리드 — 기본 리빌 해제. 제목은 스크롤 잉크 채움(bgPosX 100→0), 이미지는 폭 80→100% 스크럽 — main.js */
.uami-story .st-lead .reveal>* {
    opacity: 1;
    transform: none;
    transition: none;
}

.uami-story .st-lead .tit {
    background: linear-gradient(to right, var(--ink) 50%, rgba(35, 31, 32, .05) 50%);
    background-size: 200% 100%;
    background-position-x: 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.uami-story .st-lead .img {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* 가치 — 기본 리빌 해제 후 자체 모션 */
.uami-story .st-values .reveal>* {
    opacity: 1;
    transform: none;
    transition: none;
}

.uami-story .st-values .en span {
    opacity: 0;
    transform: translateX(8rem);
    filter: blur(10px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out, filter 1s ease-in-out;
}

.uami-story .st-values .en span+span {
    transition-delay: .2s;
}

.uami-story .st-values .reveal.active .en span {
    opacity: 1;
    transform: none;
    filter: none;
}

/* 가치 카드 — 스크롤 진행에 연동해 왼쪽 -100px 순차 등장(stagger 0.3) — main.js 스크럽 */
.uami-story .st-values .list li {
    opacity: 0;
    transform: translateX(-100px);
}

/* 밴드 사진 — 아래에서 위로 열리는 클립 리빌 */
.uami-story .st-band .uami-story-in.reveal>.photos {
    opacity: 1;
    transform: none;
    transition: none;
}

.uami-story .st-band .photos.reveal>li {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.5s ease-in-out;
}

.uami-story .st-band .photos.reveal>li:nth-child(2) {
    transition-delay: .15s;
}

.uami-story .st-band .photos.reveal>li:nth-child(3) {
    transition-delay: .3s;
}

.uami-story .st-band .photos.reveal.active>li {
    clip-path: inset(0 0 0 0);
}

/* 의료진 — 사진은 제자리 페이드(1.5s ease-in .2s), 이력은 아래 100px 에서 (레퍼런스 수치) */
.uami-story .st-doctor .row.reveal>.photo {
    transform: none;
    transition: opacity 1.5s ease-in .2s;
}

.uami-story .st-doctor .row.reveal>.info {
    transform: translateY(100px);
    transition: opacity 1s ease-in-out .2s, transform 1s ease-in-out .2s;
}

.uami-story .st-doctor .row.reveal.active>.info {
    transform: none;
}

/* 레퍼런스와 같이 ≤1240 에서는 영문 블러 등장을 끄고 즉시 표시 */
@media (max-width: 1240px) {
    .uami-story .st-values .en span {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .uami-story .st-values .en span,
    .uami-story .st-values .list li,
    .uami-story .st-doctor .row.reveal>.photo,
    .uami-story .st-doctor .row.reveal>.info {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .uami-story .st-band .photos.reveal>li {
        clip-path: none;
        transition: none;
    }

    .uami-story .st-lead .tit {
        background-position-x: 0%;
    }

    .uami-story .st-lead .img {
        width: 100%;
    }
}

/* ==========================================================
   진료안내 — 진료시간 카드 + 주소·지도 + 주차·대중교통 (2026-07-28)
   parts/visit.php / uami_current_visit()   Figma 345:12937 실측
   제목·주소·지도링크·교통설명은 모두 좌측 정렬, 진료시간 카드 안만 중앙 정렬.
   진료시간·주소·지도 링크는 푸터와 같은 값 — 한쪽만 고치면 어긋납니다.
   ========================================================== */


.uami-visit .vs-h {
    margin: 9rem 0 0;
    font-size: var(--mainTit);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

/* ── 진료시간 3×2 카드 (450x240 · r30 · gap 25 실측) ── */
.uami-visit .vs-hours {
    list-style: none;
    margin: 5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.uami-visit .vs-hour {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 24rem;
    padding: 3rem 2rem;
    border-radius: 30px;
    background-color: var(--canvas-cool);
    text-align: center;
}

.uami-visit .vs-hour .d {
    margin: 0;
    font-size: max(2rem, 16px);
    font-weight: 800;
    line-height: 1.4;
    color: var(--ink);
}

.uami-visit .vs-hour .t {
    margin: 0;
    font-size: max(3.6rem, 24px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}

/* 시간 아래 알약 — 흰 배경 r40, 좌우 여백 20 / 위아래 10, 16px SemiBold (실측) */
.uami-visit .vs-pill {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: .4rem 0 0;
    padding: 1rem 2rem;
    border-radius: 40px;
    background-color: var(--canvas);
    font-size: max(1.6rem, 13px);
    font-weight: 600;
    line-height: 1;
    color: var(--primary);
}

/* 바로가기 알약은 먹색 + ↑ 아이콘 */
.uami-visit .vs-pill.is-link {
    color: var(--ink);
    transition: color .2s, box-shadow .2s;
}

.uami-visit .vs-pill.is-link:hover {
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary) inset;
}

.uami-visit .vs-pill .ar {
    display: block;
    width: 1.1rem;
    height: 1.3rem;
    flex-shrink: 0;
}

/* 시간 자리에 들어가는 로고 (카카오채널) — Figma 58x58 */
.uami-visit .vs-hour .vs-logo {
    display: block;
    width: 5.8rem;
    height: 5.8rem;
    margin: .2rem 0;
    object-fit: contain;
}

/* ── 주소 + 지도 링크 (좌측 정렬) ── */
.uami-visit .vs-addr {
    margin: 9rem 0 0;
}


.uami-visit .vs-maps {
    list-style: none;
    margin: 3.2rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.uami-visit .vs-maps a {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: 1.2rem 2.4rem;
    border: 1px solid var(--divider);
    border-radius: var(--pill);
    font-size: max(1.7rem, 14px);
    font-weight: 600;
    color: var(--ink);
    transition: border-color .2s, background-color .2s;
}

.uami-visit .vs-maps a:hover {
    border-color: var(--primary);
    background-color: var(--primary-wash);
}

.uami-visit .vs-maps .ico {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
}

.uami-visit .vs-maps .ico img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── 지도 (1400x700 · r30) ── */
.uami-visit .vs-map {
    margin: 5rem 0 0;
    width: 100%;
    aspect-ratio: 1400 / 700;
    border-radius: 30px;
    overflow: hidden;
    background-color: #D9D9D9;
}

/* ── 주차 · 대중교통 (3열, 내용은 좌측 정렬) ── */
.uami-visit .vs-ways {
    list-style: none;
    margin: 5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.uami-visit .vs-way {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.uami-visit .vs-way .ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background-color: var(--canvas-cool);
}

.uami-visit .vs-way .ico img {
    width: 6.4rem;
    height: 6.4rem;
    object-fit: contain;
}

.uami-visit .vs-way .lb {
    margin: 2rem 0 0;
    font-size: max(2.2rem, 18px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.uami-visit .vs-way .rows {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.uami-visit .vs-way .rows li {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    font-size: max(1.8rem, 15px);
    font-weight: 600;
    line-height: 1.6;
    color: #000;
}

.uami-visit .vs-way .badges {
    display: inline-flex;
    flex-shrink: 0;
    gap: .4rem;
}

.uami-visit .vs-way .bd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.2rem;
    height: 2.9rem;
    padding: 0 1rem;
    border-radius: var(--pill);
    color: var(--on-dark);
    font-size: max(1.8rem, 13px);
    font-weight: 600;
    line-height: 1;
}

.uami-visit .vs-way .bd.is-round {
    min-width: 2.9rem;
    padding: 0;
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
    .uami-visit .vs-hours {
        grid-template-columns: repeat(2, 1fr);
    }

    .uami-visit .vs-ways {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .uami-visit .vs-map {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 600px) {
    .uami-visit .vs-hours {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .uami-visit .vs-hour {
        min-height: 0;
        padding: 2.4rem 2rem;
    }

    .uami-visit .vs-h,
    .uami-visit .vs-addr {
        margin-top: 6rem;
    }

    .uami-visit .vs-map {
        aspect-ratio: 1 / 1;
        border-radius: 20px;
    }
}

/* ==========================================================
   모바일 줄바꿈 정리 (2026-07-29)
   데스크톱 균형을 위해 넣은 <br> 이 좁은 화면에서 한 번 더 접혀
   짧은 줄이 남는 문제 — 768px 이하에서는 본문·부제의 강제 줄바꿈을 무시하고
   컨테이너 폭에 맞춰 자연스럽게 흐르게 합니다.
   ⚠️ 푸터 사업자정보(.biz), 표 셀, 주소처럼 줄 구분이 의미를 갖는 곳은 제외.
   ⚠️ 여기에 선택자를 추가할 때는 그 줄바꿈이 "디자인"인지 "의미"인지 먼저 볼 것.
   ========================================================== */
@media (max-width: 768px) {

    .uami-intro-copy .tit br,
    .uami-intro-copy .txt br,
    .uami-highlight-sub br,
    .uami-causes-tit br,
    .uami-causes-sub br,
    .uami-cause-item .txt br,
    .uami-care-tit br,
    .uami-care-sub br,
    .uami-limits-sub br,
    .uami-compare-sub br,
    .uami-cases-sub br,
    .uami-treatments-tit br,
    .uami-treatments-sub br,
    .uami-treatment-item .txt br,
    .uami-why-tit br,
    .uami-why-sub br,
    .uami-why-item .txt br,
    .uami-lctabs-in .txt br,
    .uami-story .st-lead .tit br,
    .uami-story .st-band .body br,
    .uami-story .st-values .list .txt br {
        display: none;
    }
}

/* 위 규칙의 예외 — 줄바꿈이 "디자인"이 아니라 "의미"인 페이지 (2026-08-10)
   두 줄로 읽혀야 뜻이 사는 카피. 대부분은 짧은 2행이라 좁은 화면에서도 더 접히지 않는다.
   dampness 는 예외적으로 긴 카피지만, 질문("~안 빠진다면?")과 답("체지방보다~")을
   나눠 읽히게 하려고 원장 요청으로 포함했다(2026-08-11). 접혀서 총 5행이 되는 건 의도.
   예외를 늘릴 때는 그 줄바꿈이 뜻을 가르는지 먼저 볼 것 — 단순 균형용이면 원래 규칙이 맞다. */
@media (max-width: 768px) {

    .pg-sebaceous-cyst .uami-intro-copy .tit br,
    .pg-extraction .uami-intro-copy .tit br,
    .pg-pores-scars .uami-intro-copy .tit br,
    .pg-lifting .uami-intro-copy .tit br,
    .pg-dampness .uami-intro-copy .tit br,
    .pg-post-surgery .uami-intro-copy .tit br {
        display: inline;
    }
}
/* 탭 버튼만 페이지 상단으로 분리했을 때 (uami_current_lifecycle 의 pos: top) */
.uami-lctabs--nav {
    padding: 0 0 var(--sectSm);
}

.uami-lctabs--nav .tab_nav {
    margin-top: 0;
}

/* 화면 가장자리 여백 — 좁은 화면에서 축소 (헤더·메인 히어로·브레드크럼 공용)
   1240px 이하에서는 콘텐츠(.in + --inPd)가 화면 끝 20px 까지 차기 때문에
   헤더만 40px 이면 로고가 본문보다 안쪽으로 들어가 보인다. 기준을 맞춘다.
   1240 은 히어로가 세로로 쌓이는 기존 분기점과 같은 값이다. (2026-08-19) */
@media (max-width: 1239.98px) {
    :root { --edgePd: 20px; }
}

/* ==========================================================
   비급여 진료비용 표 (2026-08-11)
   의료법 제45조 고지 페이지. 좁은 화면에서는 표를 가로 스크롤시키고,
   1열(항목)은 붙박이로 고정해 어떤 줄을 보는지 놓치지 않게 한다.
   ========================================================== */
.uami-price {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 0 var(--sectSm);
}

.uami-price-note {
    margin: 0 0 3.2rem;
    padding: 1.8rem 2.2rem;
    border-radius: 1.2rem;
    background: var(--canvas-cool, #f4f6fa);
    font-size: clamp(13px, 1.15vw, 16px);
    line-height: 1.7;
    color: var(--txt-muted, #5d5d5d);
    word-break: keep-all;
}

.uami-price-tit {
    margin: 4.8rem 0 1.6rem;
    font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.uami-price-tit:first-of-type {
    margin-top: 0;
}

.uami-price-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.uami-price-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: clamp(13px, 1.2vw, 16px);
    line-height: 1.6;
}

.uami-price-table th,
.uami-price-table td {
    padding: 1.4rem 1.6rem;
    border-bottom: 1px solid #e6e8ee;
    text-align: left;
    vertical-align: middle;
    word-break: keep-all;
}

.uami-price-table thead th {
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid #cfd3dc;
    background: #f7f8fb;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

.uami-price-table tbody th {
    font-weight: 700;
    color: var(--ink);
    background: #fcfcfd;
}

.uami-price-table tbody td {
    color: #4a4a4a;
}

.uami-price-table .won {
    text-align: right;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

.uami-price-table tbody tr:last-child th,
.uami-price-table tbody tr:last-child td {
    border-bottom: 1px solid #cfd3dc;
}

.uami-price-foot {
    margin: 2.4rem 0 0;
    padding: 0;
    list-style: none;
    font-size: clamp(12px, 1.1vw, 15px);
    line-height: 1.8;
    color: var(--txt-muted, #6e6e6e);
}

.uami-price-foot li {
    position: relative;
    padding-left: 1.2rem;
    word-break: keep-all;
}

.uami-price-foot li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

@media (max-width: 768px) {
    .uami-price-table th,
    .uami-price-table td {
        padding: 1.2rem 1.2rem;
    }
}

/* 스크린리더 전용 */
.uami-price .blind {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================
   진료 페이지 전후사진 슬라이더 (2026-08-11)
   카드 3장 노출 + 좌우 원형 화살표 + 하단 도트.
   회원공개 글은 AFTER 칸을 잠가 비로그인 노출을 막는다(의료광고 고려).
   ========================================================== */
.uami-ba2 {
    padding: var(--sectLg) 0 var(--sectSm);
    background: var(--canvas-cool, #f6f7fa);
    overflow: hidden;
}

.uami-ba2-in {
    width: min(var(--in), 100%);
    margin: 0 auto;
    padding: 0 var(--inPd);
}

.uami-ba2-head {
    text-align: center;
}

/* 제목·부제는 테마 공통 규칙(--mainTit / 700 / 1.4, 부제 max(1.8rem,16px) / 400 / 1.7)을 따른다.
   영문 라벨 폰트스택도 다른 섹션과 동일하게 맞춘다. */
.uami-ba2-head .tit {
    margin: 0;
    font-size: var(--mainTit);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
    word-break: keep-all;
}

.uami-ba2-head .sub {
    margin: 1.9rem 0 0;
    font-size: max(1.8rem, 16px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    word-break: keep-all;
}

.uami-ba2-rail {
    position: relative;
    margin-top: clamp(30px, 4vw, 60px);
}

.uami-ba2-rail .swiper {
    overflow: hidden;
}

/* 설명(desc) 유무로 카드 길이가 달라져 아랫줄이 어긋난다 → 슬라이드를 늘려 높이를 맞춘다 */
.uami-ba2-rail .swiper-wrapper {
    align-items: stretch;
}

.uami-ba2-rail .swiper-slide {
    height: auto;
}

/* 카드 상자(흰 배경 · 그림자 · 라운드)를 걷어내고 사진만 남긴 썸네일 형태.
   전/후 두 장은 붙여서 한 장처럼 읽히게 한다.
   비율은 1:1 — 게시판 원본 92장이 전부 가로(중앙값 1.17)라 세로로 세우면
   좌우가 3분의 1 가까이 잘린다. 1:1 이면 잘림이 15% 로 줄어든다. (2026-08-11 실측) */
.uami-ba2-rail .card {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    /* 카드 전체가 게시판 본문으로 가는 링크다 (2026-08-11) */
    text-decoration: none;
    cursor: pointer;
}

.uami-ba2-rail .card:hover > .tit {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.uami-ba2-rail .card:focus-visible {
    outline: 2px solid var(--point, #2f6df6);
    outline-offset: 4px;
    border-radius: 6px;
}

.uami-ba2-rail .card > .tit {
    display: -webkit-box;
    order: 2;
    margin: 1.4rem 0 0;
    font-size: max(1.6rem, 15px);
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uami-ba2-rail .pair {
    order: 1;
    display: flex;
    gap: 0;
}

.uami-ba2-rail .ph {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0;
    background: #eceef3;
}

.uami-ba2-rail .ph img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uami-ba2-rail .ph em {
    position: absolute;
    z-index: 2;
    left: 8px;
    bottom: 7px;
    font-style: normal;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 700;
    letter-spacing: .05em;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.uami-ba2-rail .ph.lock {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c2f36;
    color: #fff;
}

.uami-ba2-rail .ph.lock .lock-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.uami-ba2-rail .ph.lock svg {
    width: clamp(20px, 1.9vw, 26px);
    height: auto;
}

.uami-ba2-rail .ph.lock .txt {
    font-size: clamp(11px, 1vw, 13px);
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.uami-ba2-rail .desc {
    order: 3;
    margin: .6rem 0 0;
    font-size: max(1.5rem, 14px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--txt-muted, #6e6e6e);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uami-ba2-rail .navbtn {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(38px, 3.4vw, 52px);
    height: clamp(38px, 3.4vw, 52px);
    padding: 0;
    border: 1px solid rgba(35, 31, 32, .18);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: background-color .3s, color .3s, opacity .3s;
}

.uami-ba2-rail .navbtn svg { width: 40%; height: auto; }
.uami-ba2-rail .navbtn:hover { background: var(--ink); color: #fff; }
.uami-ba2-rail .navbtn.prev { left: 0; }
.uami-ba2-rail .navbtn.next { right: 0; }
.uami-ba2-rail .navbtn.swiper-button-disabled { opacity: .35; cursor: default; }

/* 화살표를 컨테이너 밖으로 밀면 섹션의 overflow:hidden 에 잘린다.
   대신 슬라이더 좌우에 화살표 자리를 비워, 카드와 떨어져 보이게 한다. */
.uami-ba2-rail {
    padding: 0 84px;
}

@media (max-width: 1279px) {
    .uami-ba2-rail { padding: 0 62px; }
}

@media (max-width: 767px) {
    .uami-ba2-rail { padding: 0; }
    .uami-ba2-rail .navbtn.prev { left: -4px; }
    .uami-ba2-rail .navbtn.next { right: -4px; }
}

.uami-ba2-rail .dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: clamp(20px, 2.4vw, 32px);
}

.uami-ba2-rail .dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #c9ccd6;
    opacity: 1;
    transition: width .3s, background-color .3s;
}

.uami-ba2-rail .dots .swiper-pagination-bullet-active {
    width: 26px;
    background: var(--primary);
}

/* 섹션 제목 — 모바일에서 --mainTit 로 통일 (2026-08-19)
   아래 여섯 개는 토큰 대신 4.2rem · 4.5rem 을 직접 쓰고 있어서, 루트 폰트
   하한(7.2px) 때문에 폰에서 30.2 · 32.4px 로 남았다. 토큰을 쓰는 다른 제목은
   같은 자리에서 26px 이라 한 화면에 세 가지 크기가 섞여 보였다.
   데스크톱 크기는 그대로 두고 768px 이하만 토큰에 맞춘다. */
@media (max-width: 768px) {
    .uami-treatments-tit,
    .uami-cases-tit,
    .uami-highlight-tit,
    .uami-causes-tit,
    .uami-why-tit,
    .uami-faq-tit,
    /* 하단 CTA 제목은 폰에서 30.24px 로 가장 컸고, */
    .com_consult_sect .sub_tit_box .tit,
    /* 「우아미한의원만의 특별함」은 반대로 18.7px 까지 줄어 혼자 작았다. */
    .uami-special .sp-head .tit {
        font-size: var(--mainTit);
    }
}

/* ==========================================================
   모바일 하단 고정 메뉴 — planc-quick-menu 플러그인 출력 (2026-08-19)
   구성은 bburidt.com(planc-basic 테마)과 같고, 색·글자만 우아미 토큰으로.
   768px 이하에서만 뜨며, 같은 구간에서 우측 플로팅 퀵메뉴는 숨긴다.
   ========================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--primary-deep);
    padding: 12px 0;
    /* 아이폰 홈 인디케이터 영역만큼 더 띄운다 */
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav a.mobile-nav-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    transition: opacity .2s ease;
}

.mobile-bottom-nav a.mobile-nav-item:hover,
.mobile-bottom-nav a.mobile-nav-item:active {
    opacity: .8;
}

.mobile-bottom-nav a.mobile-nav-item svg {
    width: 24px;
    height: 24px;
}

.mobile-bottom-nav a.mobile-nav-item span {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* 하단바에 콘텐츠가 가리지 않도록 본문 아래 여백 확보 */
    body {
        padding-bottom: 80px;
    }
}

/* ==========================================================
   로그인 · 회원 폼 정돈 (2026-08-19)
   스타일 원본은 planc-members 플러그인이고 테마보다 뒤에 실린다.
   플러그인을 고치면 업데이트 때 날아가므로 여기서 덮어쓴다.
   버튼 규칙은 플러그인이 !important 를 쓰고 있어 같이 맞춰야 이긴다.
   ========================================================== */
body .planc-input-wrapper input {
    /* 아이콘이 left 16px 에 20px 크기로 놓이는데 입력칸 좌패딩도 16px 이라
       글자와 아이콘이 겹쳐 보였다. 아이콘 자리를 확보한다. */
    height: 64px;
    padding: 0 20px 0 52px;
    font-size: 16px;
    border-color: #BCBFC7;
}

body .planc-input-wrapper .planc-input-icon {
    left: 20px;
}

/* 모달 쪽은 좌패딩을 따로 잡고 있어 같은 값으로 맞춘다 */
body #plancModal .planc-input-wrapper input {
    padding-left: 52px;
}

body .planc-submit-btn {
    font-weight: 700 !important;
    /* 플러그인 기본 파랑(#2F75FF)은 사이트 톤과 맞지 않아 무채색으로 (2026-08-19) */
    background: #232323 !important;
}

body .planc-submit-btn:hover {
    background: #000 !important;
}

body .planc-submit-btn:disabled {
    background: #BCBFC7 !important;
}

body .planc-form-links a {
    font-size: 14px;
    color: #9A9EA7;
}

body .planc-form-links a:hover {
    color: var(--ink);
}

body .planc-social-login .social-login-divider span,
body .planc-social-login .social-btn span {
    font-size: 14px;
}

/* 카드 크기와 요소 간 간격 — 입력칸 64px 를 기준으로 리듬을 다시 잡았다.
   제목 아래를 넉넉히 띄우고 버튼은 입력칸에서 떨어뜨려, 폼이 한 덩어리로
   뭉쳐 보이지 않게 한다. (2026-08-19) */
body .planc-form-container {
    width: 100%;
    max-width: 480px;
    padding: 64px 48px;
    border-radius: 20px;
}

body .planc-modal-content {
    padding: 64px 48px;
    border-radius: 20px;
}

body .planc-form-title,
body .planc-modal-title {
    font-size: 28px;
    margin-bottom: 44px;
}

body .planc-form {
    gap: 10px;
}

body .planc-submit-btn {
    margin-top: 24px !important;
}

body .planc-form-links {
    margin-top: 20px;
}

body .planc-social-login {
    margin-top: 64px;
}

/* 좁은 화면에서는 카드 여백을 줄인다 */
@media (max-width: 600px) {
    body .planc-form-container,
    body .planc-modal-content {
        padding: 40px 20px;
    }

    body .planc-form-title,
    body .planc-modal-title {
        margin-bottom: 32px;
    }

    body .planc-social-login {
        margin-top: 44px;
    }
}

/* ── 게시판 3종 본문 폭 1200px (2026-08-19) ──────────────────
   공지사항 · 전후사진 · 건강칼럼은 목록·표라서 기본 폭(--in 1640px)이면
   한 줄이 너무 길어 읽기 어렵다. 세 페이지만 1200px 로 줄인다.
   ⚠️ page-sub.php 가 래퍼에 인라인 width 를 넣으므로 !important 가 필요하다.
   ⚠️ 다른 서브페이지(진료 페이지)는 그대로 1640px 을 쓴다. */
.pg-notice .in.sub-content,
.pg-before-after .in.sub-content,
.pg-real-story .in.sub-content {
    width: min(1200px, 100%) !important;
}

/* SNS 로그인 실패 안내 (2026-08-20) */
body .planc-social-error {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #FDECEE;
    color: #B4243A;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* ── 건강칼럼 글 상세·아카이브 (2026-08-20) ────────────────────
   single.php / category.php 전용. 발행 글이 없으면 화면에 안 나온다. */
.pg-single .single-cat,
.pg-archive .page_tit {
    /* 카테고리 라벨 */
}
.pg-single .single-cat {
    display: inline-block;
    margin: 0 0 12px;
    padding: 5px 14px;
    border-radius: 50px;
    background: var(--canvas-cool, #F5F7FA);
    color: var(--primary, #4C6EF5);
    font-size: 14px;
    font-weight: 600;
}
.pg-single .single-meta {
    margin: 16px 0 0;
    color: var(--muted, #8A919B);
    font-size: 15px;
}
.pg-single .single-meta .single-hit { margin-left: 14px; }

.single-body,
.archive-body {
    padding-top: 3rem;
    padding-bottom: 6rem;
}
.single-article {
    font-size: 17px;
    line-height: 1.85;
    color: var(--ink-2, #232323);
    word-break: keep-all;
}
.single-article img { max-width: 100%; height: auto; border-radius: 8px; }
.single-article p { margin: 0 0 1.4em; }
.single-article h2 { font-size: 24px; font-weight: 700; margin: 2em 0 .8em; }
.single-article h3 { font-size: 20px; font-weight: 700; margin: 1.6em 0 .6em; }

/* 이전·다음·목록 */
.single-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hairline, #E5E8EB);
}
.single-nav-item .lbl {
    display: block;
    font-size: 13px;
    color: var(--muted, #8A919B);
    margin-bottom: 4px;
}
.single-nav-item a { color: var(--ink, #191F28); text-decoration: none; font-weight: 500; }
.single-nav-item a:hover { text-decoration: underline; }
.single-nav-item.next { text-align: right; }
.single-nav-item.list { text-align: center; }
.single-nav-item .to-list {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid var(--hairline, #E5E8EB);
    border-radius: 50px;
    font-weight: 600;
}

/* 아카이브 목록 */
.archive-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink, #191F28); }
.archive-item { border-bottom: 1px solid var(--hairline-soft, #F1F3F5); }
.archive-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 8px;
    text-decoration: none;
    color: var(--ink, #191F28);
}
.archive-link:hover .archive-title { text-decoration: underline; }
.archive-title { font-size: 17px; font-weight: 500; }
.archive-date { flex-shrink: 0; font-size: 14px; color: var(--muted, #8A919B); }
.archive-empty { padding: 60px 0; text-align: center; color: var(--muted, #8A919B); }

@media (max-width: 768px) {
    .single-nav { grid-template-columns: 1fr; gap: 12px; text-align: left; }
    .single-nav-item.next, .single-nav-item.list { text-align: left; }
    .archive-date { font-size: 13px; }
}
