@charset "UTF-8";

/* 1. 서브 폰트 및 공통 토큰 */
.upic-page :is(h1, h2, h3, strong, b) {font-weight: var(--weight-bold);}

/* 적용 기준
 * 기본·한글·진료 철학 카드 제목 --font-body
 * .english(UPIC STORY 포함) 및 영상 영문 문구 --font-english
 * 영문 제목·자연 모티브·카드 번호 --weight-bold
 * 의료진 영문 이름 --weight-medium (아래 의료진 섹션)
 * 영상 영문 문구 --weight-regular
 * 통합 순서 폰트 설정 → 서브 공통 → 의료진
 */
.upic-page :is(p, li, dt, dd, button, a, small) {letter-spacing: var(--tracking-body);}
.upic-page :is(h1, h2, h3) {letter-spacing: var(--tracking-heading);}
.upic-page .eyebrow, .upic-page .number {letter-spacing: var(--tracking-label);}

/* 2. 서브페이지 공통 및 페이지별 본문 */
/* 서브 본문: 헤더 높이만큼 상단 공간 확보 */
.upic-page {padding-top:88px;}

@media (max-width:1080px) {
    .upic-page {padding-top:50px;}
}
.upic-page {--font-body:'Noto Sans KR', 'Malgun Gothic', sans-serif; --font-english:"minerva-modern", sans-serif; --weight-regular:400; --weight-medium:500; --weight-bold:700; --tracking-body:-0.05em; --tracking-heading:-0.055em; --tracking-english:-0.04em; --tracking-label:-0.02em; font-weight:var(--weight-regular); font-style:normal; letter-spacing:var(--tracking-body); --green:#00594c; --ink:#222; --muted:#666; --section-space:160px; margin:0; background:#fff; color:var(--ink); font-family:var(--font-body); font-size:16px; line-height:1.5; word-break:keep-all; overflow-wrap:break-word;}
.upic-page * {box-sizing:border-box}
.upic-page :is(h1,h2,h3,p,figure,dl,dd) {margin:0}
.upic-page a {color:inherit; text-decoration:none}
.upic-page button {font:inherit; cursor:pointer}
.upic-page img {display:block; max-width:100%}
.upic-page button:focus-visible,.upic-page a:focus-visible {outline:3px solid #ba983d; outline-offset:5px}
.upic-page .container {width:min(1240px,calc(100% - 48px)); margin-inline:auto}
.upic-page .english {letter-spacing:var(--tracking-english); font-family:var(--font-english); font-style:normal; font-weight:var(--weight-bold);}

/* 서브 상단 비주얼 */
.upic-page .visualtop {position:relative; isolation:isolate; display:grid; place-items:center; height:343px; margin:0; overflow:hidden; background:var(--green); color:white; text-align:center}
.upic-page .visualtop picture {position:absolute; inset:0; z-index:-1}
.upic-page .visualtop img {width:100%; height:100%; object-fit:cover}
.upic-page .visualtop h1 {font-size:40px; line-height:1.2}
.upic-page .visualtop p {font-size:22px; margin-top:18px}

/* 브랜드 스토리 */
.upic-page .story {max-width:1278px; display:grid; grid-template-columns:603fr 530fr; column-gap:85px; row-gap:50px; align-items:center; margin:var(--section-space) auto}
.upic-page .story figure {grid-row:1/3}
.upic-page .story img {width:100%; aspect-ratio:603/419; object-fit:cover; border-radius:50px 0 0; height:auto}
.upic-page .story header {align-self:end}
.upic-page .eyebrow {font-size:12px; color:#999; letter-spacing:var(--tracking-label)}
.upic-page .story h2 {font-size:38px; color:var(--green); margin-top:10px; letter-spacing:var(--tracking-heading)}
.upic-page .story .description {align-self:start; margin-top:0; color:var(--muted); max-width:440px; letter-spacing:var(--tracking-body)}

/* 자연주의 브랜드 소개 */
.upic-page .greenery {text-align:center; margin-bottom:var(--section-space); display:flex; flex-direction:column; align-items:center}
.upic-page .section-title {font-size:44px; color:var(--green); line-height:1.2; letter-spacing:var(--tracking-english); max-width:100%;}
.upic-page .greenery .description {margin-top:30px; color:#3f3f3e}

/* 자연 모티브 카드 */
.upic-page .nature-grid {display:grid; grid-template-columns:repeat(3,1fr); gap:40px; width:min(1280px,100%); margin-top:70px}
.upic-page .nature-grid figure {position:relative; overflow:hidden; border-radius:50px 0 0; aspect-ratio:400/442}
.upic-page .nature-grid img {width:100%; height:100%; object-fit:cover}
.upic-page .nature-grid figcaption {position:absolute; inset:0; display:grid; place-items:center; font-size:48px; color:#71949c}
.upic-page .nature-grid figure:nth-child(2) figcaption {color:#a8aa8c}
.upic-page .nature-grid figure:nth-child(3) figcaption {color:#60917a}
.upic-page .nature-grid figure::before {content:""; position:absolute; inset:0; background:rgba(9,27,61,.5); opacity:0; pointer-events:none;}
.upic-page .nature-grid figure:nth-child(2)::before {background:rgba(163,138,84,.7);}
.upic-page .nature-grid figure:nth-child(3)::before {background:rgba(0,89,76,.75);}
.upic-page .nature-grid figure:hover::before {opacity:1;}
.upic-page .nature-grid figure:hover figcaption {color:#fff;}

/* 진료 철학 */
.upic-page .specialties {min-height:0; padding:var(--section-space) 24px; text-align:center; background:#eeeee4 url('/images/upic/sub/specialties.jpeg') center/cover}
.upic-page .specialties .description {margin:30px auto 100px; font-size:17px}
.upic-page .specialty-grid {display:grid; grid-template-columns:repeat(4,1fr); gap:13px; max-width:1200px; margin:auto}
.upic-page .specialty-card {height:318px; border-radius:0 0 0 60px; background:#ffffff40; border:1px solid #ffffff50; display:flex; flex-direction:column; align-items:center; justify-content:space-between; padding:46px 18px; color:#163a34}
.upic-page .specialty-card:hover {background:#00612ce6; color:#fff}
.upic-page .specialty-card .number {font-size:24px; opacity:.4}
.upic-page .specialty-card h3 {font-family:var(--font-body); font-size:27px; letter-spacing:var(--tracking-heading)}
.upic-page .specialty-card h3 small {font-family:var(--font-body); display:block; font-size:16px; font-weight:var(--weight-regular)}
.upic-page .specialty-card p {border-top:1px solid #b7c0b2; padding-top:20px; font-size:16px; max-width:210px; color:inherit}

/* 병원 둘러보기 */
.upic-page .hospital-list {padding:var(--section-space) 0}
.upic-page .hospital-wrap {display:grid; grid-template-columns:minmax(0,820fr) minmax(0,386fr); gap:34px; align-items:center}
.upic-page .second-tabs {grid-column:2; grid-row:1}
.upic-page .second-tabs h2 {font-size:32px; font-weight:var(--weight-medium); color:#666; letter-spacing:var(--tracking-heading)}
.upic-page .second-tabs h2 strong {color:var(--green); font-weight:var(--weight-medium)}
.upic-page .second-tabs>p {font-size:18px; color:#666; margin:18px 0 30px; letter-spacing:var(--tracking-body)}
.upic-page .tour-tabs {display:flex; flex-direction:column; align-items:flex-start; gap:4px}
.upic-page .tour-tabs button {display:flex; align-items:center; gap:0; background:none; border:0; padding:0; color:#666; min-height:32px}
.upic-page .tour-tabs img {width:32px; height:32px}
.upic-page .tour-tabs [aria-selected=true] {color:var(--green); font-weight:var(--weight-bold)}

/* 공간 갤러리 */
.upic-page .gallery {grid-column:1; grid-row:1; min-width:0; position:relative}
.upic-page .gallery-photo {width:100%; aspect-ratio:820/460; object-fit:cover; height:auto}
.upic-page .gallery-controls {position:absolute; inset:0; display:flex; justify-content:space-between; align-items:center; pointer-events:none}
.upic-page .gallery-controls button {pointer-events:auto; background:#ffffff80; border:0; padding:0; width:34px; height:50px}
.upic-page .gallery-controls img {width:34px; height:50px}
.upic-page [data-next] img {transform:rotate(180deg)}
.upic-page .gallery-dots {position:absolute; top:calc(100% + 24px); left:0; width:100%; display:flex; justify-content:center; gap:6px}
.upic-page .gallery-dots button {width:17px; height:17px; border:1px solid var(--green); border-radius:50%; background:white; padding:0}
.upic-page .gallery-dots [aria-current=true] {background:var(--green)}
.upic-page .sr-only {position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap}

/* 진료안내 및 오시는길 */
.upic-page .location {padding-top:var(--section-space); padding-bottom:var(--section-space)}
.upic-page .location-grid {display:grid; grid-template-columns:560fr 620fr; gap:60px; align-items:center}
.upic-page .location-info {border-top:1px solid #bcbcbc; border-bottom:1px solid #bcbcbc}
.upic-page .info-block {padding:42px 10px; border-bottom:1px solid #ddd}
.upic-page .info-block:last-child {border:0}
.upic-page .info-block h2 {color:var(--green); font-size:25px; margin-bottom:16px}
.upic-page .info-block p,.upic-page .hours {font-size:22px; color:#666}
.upic-page .hours {max-width:390px}
.upic-page .hours div {display:grid; grid-template-columns:142px 1fr; gap:0}
.upic-page .hours dt {color:#222; font-weight:var(--weight-medium)}
.upic-page .phone {display:inline-block; color:#28472c; font-size:22px; font-weight:var(--weight-bold); margin-top:16px}
.upic-page .info-block .clinic {color:#222; margin-bottom:22px}
.upic-page .info-block .address {font-size:20px; line-height:1.3}
.upic-page .map {width:100%; aspect-ratio:620/635; background:#f3f1e9; overflow:hidden;}
.upic-page .map iframe {display:block; width:100%; height:100%; border:0;}

/* 예약 버튼 */
.upic-page .booking {display:flex; justify-content:center; gap:20px; margin-top:130px}
.upic-page .pill {display:inline-flex; align-items:center; justify-content:center; min-height:48px; border:1px solid #222; border-radius:99px; background:transparent; padding:12px 26px; font-weight:var(--weight-bold); font-size:16px}
.upic-page .booking .pill {width:376px; min-height:74px; font-size:18px}
.upic-page .pill.kakao {background:#fae100; border-color:#fae100}

/* 오시는길 영상 */
.upic-page .video-section {background:#f4f5f6; padding:var(--section-space) 0}
.upic-page .video-layout {display:grid; grid-template-columns:744fr 460fr; gap:34px}
.upic-page .video-main {min-width:0; background:#606060; aspect-ratio:744/400; display:grid; place-items:center; color:white}
.upic-page .video-main video {width:100%; height:100%}
.upic-page .video-copy {display:flex; flex-direction:column; justify-content:space-between; gap:30px}
.upic-page .video-copy h2 {font-size:32px; line-height:1.3; font-weight:var(--weight-medium); margin-top:24px; letter-spacing:var(--tracking-heading)}
.upic-page .video-copy p {font-family:var(--font-english); letter-spacing:var(--tracking-english); font-weight:var(--weight-regular); font-style:normal; font-size:18px; color:#666; margin:12px 0 22px}
.upic-page .video-thumbs {display:grid; grid-template-columns:1fr 1fr; gap:10px}
.upic-page .video-thumbs div {aspect-ratio:225/126; background:#606060}

@media(max-width:1000px) {
    /* 브랜드 스토리 */
    .upic-page .story {column-gap:40px; margin-block:var(--section-space)}
    .upic-page .story h2 {font-size:28px}

    /* 자연 모티브 카드 */
    .upic-page .nature-grid {gap:20px}

    /* 섹션 제목 */
    .upic-page .section-title {font-size:34px}

    /* 진료 철학 */
    .upic-page .specialties {padding:var(--section-space) 24px; min-height:0}
    .upic-page .specialty-card h3 {font-size:21px}

    /* 병원 둘러보기 */
    .upic-page .hospital-wrap {grid-template-columns:1.4fr 1fr}
    .upic-page .second-tabs h2 {font-size:25px}

    /* 진료안내 및 오시는길 */
    .upic-page .location-grid {gap:30px}
    .upic-page .info-block {padding:30px 0}
    .upic-page .info-block p,.upic-page .hours {font-size:17px}
    .upic-page .hours div {grid-template-columns:110px 1fr}

    /* 브랜드 소개 */
    .upic-page .greenery {margin-bottom:var(--section-space)}
}

/* 동작 줄이기 미설정 시 애니메이션 */
@media(prefers-reduced-motion:no-preference) {
    /* 자연 모티브 카드 */
    .upic-page .nature-grid figure::before {transition:opacity .2s;}
    .upic-page .nature-grid figcaption {transition:color .2s;}

    /* 마우스 오버 효과 */
    .upic-page button,.upic-page .pill,.upic-page .specialty-card {transition:background-color .2s,color .2s}

    /* 예약 버튼 */
    .upic-page .pill:hover {background:#edf4ef}
    .upic-page .pill.kakao:hover {background:#f0d900}
}

/* 의료진 소개 */
.upic-page .doctors-list {padding-bottom:var(--section-space);}
.upic-page .doctor {position:relative; isolation:isolate; padding:var(--section-space) 24px 60px;}
.upic-page .doctor:first-child {padding-top:var(--section-space);}
.upic-page .doctor::before {content:""; position:absolute; inset:calc(var(--section-space) + 155px) 0 0; background:#f0f0f0; z-index:-1;}
.upic-page .doctor:first-child::before {top:calc(var(--section-space) + 150px);}
.upic-page .doctor-inner {display:grid; grid-template-columns:420px minmax(0,528px); gap:88px; max-width:1036px; margin:auto; align-items:start;}
.upic-page .doctor-portrait img {width:100%; height:auto; aspect-ratio:1; object-fit:cover; border-radius:50px 0 0; box-shadow:4px 4px 10px #0000001a;}
.upic-page .doctor:nth-child(even) .doctor-inner {grid-template-columns:minmax(0,470px) 420px; max-width:978px;}
.upic-page .doctor:nth-child(even) .doctor-portrait {grid-column:2; grid-row:1;}
.upic-page .doctor:nth-child(even) .doctor-info {grid-column:1; grid-row:1;}
.upic-page .doctor:nth-child(even) .doctor-portrait img {border-radius:0 50px 0 0;}
.upic-page .doctor-info {min-width:0;}
.upic-page .doctor-english {font-weight:var(--weight-medium); font-size:34px; line-height:1.4; color:#dadada; margin-bottom:20px;}
.upic-page .doctor-info h2 {font-size:40px; font-weight:var(--weight-bold); line-height:1.3; color:#3f3f3e; display:flex; align-items:center; gap:20px;}
.upic-page .doctor-info h2 span {font-size:24px; font-weight:var(--weight-medium); color:#292929;}
.upic-page .doctor-career {list-style:none; padding:0; margin:66px 0 0; color:#5c5c5c; font-size:16px; line-height:1.625;}
.upic-page .doctor-career li {position:relative; padding-left:12px; margin-top:7px;}
.upic-page .doctor-career li:first-child {margin-top:0;}
.upic-page .doctor-career li::before {position:absolute; left:0;}

/* 의료진 배경 로고 */
.upic-page .doctor-watermark {position:absolute; width:238px; height:90px; object-fit:contain; right:6.25%; bottom:27px; z-index:-1;}
.upic-page .doctor-watermark img {display:block; width:100%; height:100%; object-fit:contain;}
.upic-page .doctor:nth-child(even) .doctor-watermark {right:auto; left:7.3%;}
@media(max-width:1200px) {
    .upic-page .doctor-inner,.upic-page .doctor:nth-child(even) .doctor-inner {grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:50px; max-width:960px;}
    .upic-page .doctor:nth-child(even) .doctor-inner {grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);}
    .upic-page .doctor-watermark {width:170px; height:65px; right:24px; opacity:.65;}
}
@media(max-width:800px) {
    .upic-page .doctor-inner,.upic-page .doctor:nth-child(even) .doctor-inner {gap:30px;}
    .upic-page .doctor-english {font-size:26px;}
    .upic-page .doctor-info h2 {font-size:32px; gap:14px;}
    .upic-page .doctor-info h2 span {font-size:18px;}
    .upic-page .doctor-career {font-size:14px; margin-top:42px;}
    .upic-page .doctor::before {top:calc(var(--section-space) + 115px);}
    .upic-page .doctor:first-child::before {top:calc(var(--section-space) + 115px);}
}

@media(max-width:600px) {
    /* 서브 레이아웃 */
    .upic-page {--section-space:100px;}
    .upic-page .container {width:calc(100% - 40px)}

    /* 서브 상단 비주얼 */
    .upic-page .visualtop {height:210px}
    .upic-page .visualtop h1 {font-size:25px}
    .upic-page .visualtop p {font-size:15px; margin-top:10px}
    .upic-page .directions-hero {text-align:center; justify-items:center; padding-inline:20px}
    .upic-page .directions-hero h1 {max-width:none}

    /* 브랜드 스토리 */
    .upic-page .story {width:calc(100% - 20px); margin:var(--section-space) auto; display:flex; flex-direction:column; gap:36px; text-align:center}
    .upic-page .story header {order:0; align-self:stretch}
    .upic-page .story figure {order:1; width:100%}
    .upic-page .story h2 {font-size:26px; letter-spacing:var(--tracking-heading)}
    .upic-page .story .description {order:2; align-self:center; margin:0; font-size:16px; max-width:310px}

    /* 자연주의 브랜드 소개 */
    .upic-page .greenery {width:100%; padding-top:0; margin-bottom:var(--section-space)}

    /* 섹션 제목 */
    .upic-page .section-title {font-size:26px; letter-spacing:var(--tracking-english)}

    /* 자연주의 브랜드 소개 */
    .upic-page .greenery .description {order:3; padding:0 20px; margin-top:40px; font-size:16px}
    .upic-page .greenery .description strong {display:inline-block; max-width:300px}

    /* 자연 모티브 카드 */
    .upic-page .nature-grid {display:block; position:relative; width:min(360px,100%); height:630px; margin-top:20px}
    .upic-page .nature-grid figure {position:absolute; width:60.2%; height:240px; border-radius:30px 0 0; left:5.3%; top:0}
    .upic-page .nature-grid figure:nth-child(2) {left:33.9%; top:180px; z-index:1}
    .upic-page .nature-grid figure:nth-child(3) {left:5.8%; top:360px}
    .upic-page .nature-grid figcaption {font-size:26px}

    /* 진료 철학 */
    .upic-page .specialties {padding:var(--section-space) 8px; min-height:0}
    .upic-page .specialties .description {margin:44px auto; font-size:16px; max-width:340px}
    .upic-page .specialty-grid {grid-template-columns:1fr 1fr; gap:8px; max-width:440px}
    .upic-page .specialty-card {height:200px; padding:22px 8px; border-radius:0 0 0 35px}
    .upic-page .specialty-card .number {font-size:16px}
    .upic-page .specialty-card h3 {font-size:17px; letter-spacing:var(--tracking-heading)}
    .upic-page .specialty-card h3 small {font-size:13px}
    .upic-page .specialty-card p {font-size:12px; padding-top:12px; max-width:155px}

    /* 병원 둘러보기 */
    .upic-page .hospital-list {padding:var(--section-space) 0}
    .upic-page .hospital-wrap {display:flex; flex-direction:column; gap:56px}
    .upic-page .second-tabs {width:100%}
    .upic-page .second-tabs h2 {font-size:22px; letter-spacing:var(--tracking-heading)}
    .upic-page .second-tabs>p {font-size:16px; margin:18px 0 24px}
    .upic-page .tour-tabs {display:grid; grid-template-columns:1fr 1fr; max-width:230px; gap:4px 10px}

    /* 공간 갤러리 */
    .upic-page .gallery {width:100%}
    .upic-page .gallery-photo {aspect-ratio:320/250}
    .upic-page .gallery-dots {top:calc(100% + 18px)}
    .upic-page .gallery-dots button {width:11px; height:11px}

    /* 진료안내 및 오시는길 */
    .upic-page .location {padding-top:var(--section-space); padding-bottom:var(--section-space)}
    .upic-page .location-grid {display:flex; flex-direction:column; gap:60px}
    .upic-page .location-info {width:100%}
    .upic-page .info-block {padding:24px 0 30px}
    .upic-page .info-block h2 {font-size:23px; margin-bottom:16px}
    .upic-page .info-block p,.upic-page .hours {font-size:18px; letter-spacing:var(--tracking-body)}
    .upic-page .hours div {grid-template-columns:108px 1fr}
    .upic-page .phone {font-size:18px}
    .upic-page .info-block .clinic {margin-bottom:22px}
    .upic-page .info-block .address {font-size:17px}
    .upic-page .map {width:100%; aspect-ratio:320/370;}

    /* 예약 버튼 */
    .upic-page .booking {margin-top:50px; gap:14px}
    .upic-page .booking .pill {width:50%; min-height:48px; padding:10px; font-size:14px}

    /* 오시는길 영상 */
    .upic-page .video-section {padding:var(--section-space) 0}
    .upic-page .video-layout {display:flex; flex-direction:column; gap:45px}
    .upic-page .video-copy {display:contents}
    .upic-page .video-heading {order:0; text-align:center}
    .upic-page .video-copy h2 {margin:0; font-size:24px}
    .upic-page .video-copy p {font-size:18px}
    .upic-page .video-main {order:1; aspect-ratio:320/200}
    .upic-page .video-thumbs {order:2; margin-top:-30px}

    /* 섹션 제목 */
    .upic-page .greenery .section-title,.upic-page .specialties .section-title {font-size:clamp(20px,6.5vw,26px); letter-spacing:var(--tracking-english)}

    /* 의료진 소개 */
    .upic-page .doctors-hero {text-align:center; justify-items:center;}
    .upic-page .doctors-list {padding:var(--section-space) 0;}
    .upic-page .doctor,.upic-page .doctor:first-child {padding:0 0 32px; margin-bottom:var(--section-space);}
    .upic-page .doctor:last-child {margin-bottom:0;}
    .upic-page .doctor::before,.upic-page .doctor:first-child::before {top:405px;}
    .upic-page .doctor-inner,.upic-page .doctor:nth-child(even) .doctor-inner {display:flex; flex-direction:column; gap:36px; max-width:360px; width:100%; align-items:center;}
    .upic-page .doctor-portrait {width:min(294px,calc(100% - 66px));}
    .upic-page .doctor:nth-child(even) .doctor-portrait img {border-radius:50px 0 0;}
    .upic-page .doctor-info {width:calc(100% - 76px);}
    .upic-page .doctor-english {font-size:20px; line-height:28px; margin-bottom:8px;}
    .upic-page .doctor-info h2 {font-size:28px; line-height:34px; gap:14px;}
    .upic-page .doctor-info h2 span {font-size:16px;}
    .upic-page .doctor-career {margin-top:42px; font-size:14px; line-height:1.45;}
    .upic-page .doctor-career li {margin-top:6px; padding-left:10px;}
    .upic-page .doctor-watermark {display:none;}
}
