@charset "UTF-8";

:root { --sec-pad: 50px; }

body { font-family: 'Noto Sans CJK KR', 'Noto Sans KR ', sans-serif !important; color: #222; background: #fff; word-break: keep-all; }
body * { font-family: inherit; }
header, main, footer { margin: 0 auto; }
@media (min-width: 1025px) {
  body { background: #eef0f3; }
  header, main, footer { max-width: 640px; background: #fff;}
}
header img, footer img { width: 100%; }

/* ===== 섹션 1 : 메인 비주얼 슬라이드 ===== */
.main-visual { padding: 10px; }

.mv-slider { position: relative; overflow: hidden; border-radius: 10px; background: #0b0f2e; touch-action: pan-y; container-type: inline-size; }

.mv-track { display: flex; transition: transform .5s ease; }

.mv-slide { position: relative; flex: 0 0 100%; min-width: 0; overflow: hidden; word-break: keep-all; aspect-ratio: 610 / 460; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 3cqw 90px; text-align: center; color: #fff; }

.mv-bg { position: absolute; inset: 0; background: #0b0f2e center / cover no-repeat; z-index: 0; }
.mv-bg:not([style*="background-image"])::after { content: 'SLIDE IMAGE'; position: absolute; inset: 12px; border: 1px dashed rgba(255,255,255,.15); border-radius: 6px; display: flex; align-items: flex-start; justify-content: flex-end; padding: 8px 10px; font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.25); }
.mv-box { width: 84%; margin-top: -4%; padding: clamp(16px, 4cqw, 30px) 3cqw; border-radius: 4px; background: rgba(255,255,255,.88); color: #222; }
.mv-box-sub { font-size: clamp(10.1px, 2.8cqw, 22.4px); font-weight: 500; color: #444; letter-spacing: -0.04em; }
.mv-box-title { margin-top: clamp(10px, 2.4cqw, 20px); font-size: clamp(19px, 5.6cqw, 42.6px); font-weight: 900; line-height: 1.35; letter-spacing: -0.04em; color: #1c1c1c; }
.mv-box-title em { color: #1673e6; }

.mv-content { position: relative; z-index: 1; }

.mv-title { font-size: clamp(17.9px, 6cqw, 51.5px); font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; }
.mv-title em { color: #4fc3f7; }

.mv-desc { margin-top: clamp(14px, 2.6cqw, 26px); font-size: clamp(11.2px, 3.9cqw, 33.6px); line-height: 1.75; color: #ffd54f; letter-spacing: -0.03em; }
.mv-desc u { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.mv-strong { margin-top: clamp(4px, 1cqw, 10px); font-size: clamp(16.8px, 5.8cqw, 49.3px); font-weight: 500; letter-spacing: -0.03em; }
.mv-strong b { font-weight: 900; }

.mv-more { position: absolute; left: 50%; bottom: clamp(20px, 4.5cqw, 40px); transform: translateX(-50%); z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 0 clamp(18px, 3.8cqw, 32px); height: clamp(36px, 7cqw, 56px); border-radius: 999px; background: #0d5fc4; font-size: clamp(15.7px, 3.2cqw, 24.6px); font-weight: 500; white-space: nowrap; transition: background .2s; }
.mv-more:hover { background: #1470e0; }
.mv-box, .mv-box-sub, .mv-box-title, .mv-title, .mv-desc, .mv-strong, .mv-more { opacity: 0; }
.mv-slide.is-active :is(.mv-box, .mv-box-sub, .mv-box-title, .mv-title, .mv-desc, .mv-strong, .mv-more) { animation: mvUp .7s ease both; }
.mv-slide.is-active :is(.mv-box-sub, .mv-title) { animation-delay: .25s; }
.mv-slide.is-active :is(.mv-box-title, .mv-desc) { animation-delay: .45s; }
.mv-slide.is-active .mv-strong { animation-delay: .65s; }
.mv-slide.is-active .mv-more { animation-delay: .8s; }
@keyframes mvUp { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

.mv-control { position: absolute; left: clamp(16px, 4cqw, 36px); bottom: clamp(14px, 3cqw, 28px); z-index: 2; color: #fff; }
.mv-count { display: flex; align-items: flex-end; line-height: 1; }
.mv-current { font-size: clamp(29.1px, 6cqw, 53.8px); font-weight: 700; }
.mv-count i { width: 1px; height: clamp(28px, 5.6cqw, 50px); margin: 0 clamp(6px, 1.2cqw, 10px) 0 clamp(8px, 1.4cqw, 12px); background: #fff; transform: rotate(25deg); transform-origin: bottom; }
.mv-total { font-size: clamp(11.2px, 2cqw, 17.9px); font-weight: 700; padding-bottom: 2px; }

.mv-arrows { display: flex; gap: clamp(14px, 3cqw, 26px); margin-top: clamp(10px, 2cqw, 18px); padding-left: 2px; }
.mv-arrows button { position: relative; width: clamp(28px, 5cqw, 40px); height: clamp(28px, 5cqw, 40px); opacity: .7; transition: opacity .2s; }
.mv-arrows button:hover { opacity: 1; }
.mv-arrows button::before { content: ''; position: absolute; top: 50%; left: 50%; width: clamp(13px, 2.4cqw, 18px); height: clamp(13px, 2.4cqw, 18px); border-top: 2px solid #fff; border-left: 2px solid #fff; }
.mv-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.mv-next::before { transform: translate(-70%, -50%) rotate(135deg); }

@container (max-width: 400px) {
  .mv-more { left: auto; right: 16px; transform: none; }
}

/* ===== 공통 섹션 타이틀 ===== */
.sec-head { text-align: center; container-type: inline-size; }
.sec-title { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: clamp(22.4px, 5.8cqw, 38.1px); font-weight: 400; letter-spacing: -0.04em; color: #222; }
.sec-title b { font-weight: 700; }
.sec-sub { margin-top: 6px; font-size: clamp(14.6px, 3.4cqw, 21.3px); color: #666; letter-spacing: -0.03em; }

.mohw-logo { flex: 0 0 auto; width: 1.15em; height: auto; }

/* ===== 섹션 2 : 인증 의료기관 슬라이드 ===== */
.cert { padding: calc(var(--sec-pad) - 10px) 0 0; }
.cert-slider { margin-top: 24px; overflow: hidden; touch-action: pan-y; container-type: inline-size; }
.cert-track { display: flex; gap: 10px; }
.cert-track.is-anim { transition: transform .5s ease; }

.cert-card { position: relative; flex: 0 0 70%; min-width: 0; display: flex; align-items: center; gap: 3cqw; padding: 5cqw 3cqw; border: 1px solid #c9d3e3; border-radius: 10px; background: #fff; }

.cert-img { flex: 0 0 40%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed #c9d3e3; background: #f4f6fa; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cert-img:empty::after { content: 'IMAGE'; font-size: 11px; letter-spacing: .1em; color: #aab4c5; }
.cert-img img { width: 100%; height: 100%; object-fit: contain; }
.cert-img:has(img) { border: 0; border-radius: 0; background: none; overflow: visible; }

.cert-txt { flex: 1; min-width: 0; }
.cert-badge { display: inline-block; padding: 0 clamp(10px, 2.4cqw, 16px); line-height: clamp(24px, 5.2cqw, 32px); border-radius: 999px; background: #1f3a93; color: #fff; font-size: clamp(12.3px, 2.9cqw, 17.9px); font-weight: 700; white-space: nowrap; }
.cert-org { margin-top: clamp(10px, 2.6cqw, 16px); font-size: clamp(16.8px, 4cqw, 24.6px); color: #222; }
.cert-name { font-size: clamp(17.9px, 4.7cqw, 29.1px); font-weight: 700; color: #1a5fd0; letter-spacing: -0.03em; line-height: 1.3; }
.cert-name::after { content: ''; display: block; width: 24px; height: 2px; margin: clamp(10px, 2.6cqw, 16px) 0; background: #1a5fd0; }
.cert-info { font-size: clamp(11.2px, 2.6cqw, 16.8px); white-space: nowrap; line-height: 1.6; color: #333; letter-spacing: -0.03em; }
.cert-info em { color: #1a5fd0; }

.cert-zoom { position: absolute; top: 4cqw; right: 4cqw; width: clamp(34px, 7.5cqw, 46px); height: clamp(34px, 7.5cqw, 46px); border: 1.5px solid #1f2f5c; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2f5c' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='M15 15l5 5'/%3E%3C/svg%3E") center / 50% no-repeat; }
.cert-txt { padding-top: calc(clamp(34px, 7.5cqw, 46px) - 1cqw); }
@container (max-width: 400px) { .cert-card { flex-basis: 88%; } .cert-img { flex-basis: 46%; } }
@container (max-width: 360px) { .cert-card { flex-basis: 94%; gap: 2cqw; padding-inline: 2.5cqw; } .cert-img { flex-basis: 42%; } .cert-info { white-space: normal; word-break: keep-all; } }

/* ===== 섹션 3 : 병원 소개 ===== */
.intro { container-type: inline-size; }
.intro-wrap { background: linear-gradient(#fff calc(var(--sec-pad) + 12cqw), #232c55 calc(var(--sec-pad) + 12cqw)); padding: var(--sec-pad) 2.5cqw; color: #fff; }

.intro-imgs { display: flex; align-items: flex-end; gap: 2cqw; }
.intro-imgs img { flex: 1; min-width: 0; width: 50%; }

.intro-head { display: flex; align-items: center; gap: 3cqw; margin-top: 6cqw; padding: 0 1cqw; }
.intro-since { flex: 0 0 auto; font-size: clamp(38.1px, 10.1cqw, 65px); font-weight: 700; line-height: 1; color: #ffc600; letter-spacing: -0.02em; }
.intro-title { padding-left: 3cqw; border-left: 1px solid rgba(255,255,255,.5); font-size: clamp(15.7px, 3.9cqw, 19.6px); font-weight: 700; line-height: 1.5; letter-spacing: -0.03em; }

.intro-body { position: relative; margin-top: 5cqw; padding: 0 1cqw; }
.intro-desc { font-size: clamp(14.6px, 3.4cqw, 21.3px); line-height: 1.75; letter-spacing: -0.04em; color: #e6e8f0; }
.intro-desc strong { color: #ffc600; font-weight: 700; }

.intro-more { position: absolute;  right: 1cqw; bottom: 0.5em; padding: 0 clamp(14px, 3.4cqw, 22px); line-height: clamp(30px, 6cqw, 40px); border: 1px solid rgba(255,255,255,.7); border-radius: 999px; font-size: clamp(13.4px, 2.9cqw, 17.9px); font-weight: 500; transition: background .2s, color .2s; }
.intro-more:hover { background: #fff; color: #232c55; }

@container (max-width: 420px) {
  .intro-head { flex-direction: column; align-items: flex-start; gap: 3cqw; }
  .intro-title { padding-left: 0; border-left: 0; }
  .intro-more { position: static; display: inline-block; margin-top: 4cqw; }
}

/* ===== 섹션 4 : 메이요클리닉 공동 연구 ===== */
.research { container-type: inline-size; background: #2146C2; color: #fff; text-align: center; }
.research-head { padding: var(--sec-pad) 4cqw; }

.research-title { font-size: clamp(21.3px, 5.2cqw, 33.6px); font-weight: 700; line-height: 1.45; letter-spacing: -0.03em; }

.research-tag { display: inline-flex; margin-top: 5cqw; font-size: clamp(20.2px, 5.2cqw, 33.6px); font-weight: 700; line-height: 1.6; letter-spacing: -0.03em; }
.research-tag strong,
.research-tag span { padding: 0 0.4em; border: 2px solid #19e6f4; }
.research-tag strong { background: #19e6f4; color: #1137B4; font-weight: 700;}
.research-tag span { color: #19e6f4; font-weight: 500; }

.research-desc { margin-top: 4cqw; font-size: clamp(13.4px, 3.1cqw, 20.2px); color: #b9cbff; letter-spacing: -0.04em; }

.paper-slider { overflow: hidden; touch-action: pan-y; padding-bottom: var(--sec-pad); background: linear-gradient(#2450d3 40%, #fff 40%); }
.paper-track { display: flex; gap: 8cqw; }
.paper-track.is-anim { transition: transform .5s ease; }

.paper-card { flex: 0 0 64%; }
.paper-card img { width: 100%; aspect-ratio: 520 / 431; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.paper-tit { margin-top: 4cqw; font-size: clamp(14.6px, 3.4cqw, 21.3px); font-weight: 700; color: #222; letter-spacing: -0.04em; white-space: nowrap; }

/* ===== 섹션 5 : 진료과목 ===== */
.dept { container-type: inline-size; padding: 0; background: #fff; }
.dept-title { text-align: center; font-size: clamp(22.4px, 5.6cqw, 35.8px); font-weight: 400; letter-spacing: -0.04em; color: #222; }
.dept-title strong { font-weight: 700; }

.dept-slider { margin-top: 7cqw; overflow: hidden; touch-action: pan-y; }
.dept-track { display: flex; }

.dept-card { flex: 0 0 40%; transform: scale(.78); }
.dept-card.is-active { transform: scale(1); }

.dept-track.is-anim { transition: transform .5s ease; }
.dept-track.is-anim .dept-card { transition: transform .5s ease; }

.dept-card a { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.dept-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dept-card a::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.dept-card span { position: absolute; left: 0; right: 0; bottom: 8%; z-index: 1; text-align: center; color: #fff; font-size: clamp(15.7px, 3.8cqw, 22.4px); font-weight: 700; letter-spacing: -0.03em; text-shadow: 0 1px 4px rgba(0,0,0,.3); }

/* ===== 섹션 6 : 유튜브 동영상 ===== */
.yt { container-type: inline-size; padding: var(--sec-pad) 0 0; }
.yt-inner { margin: 0 3cqw; padding: 4cqw 0; border-radius: 10px; background: #f3f4f6; }
.yt-title { text-align: center; font-size: clamp(22.4px, 5.6cqw, 35.8px); font-weight: 400; letter-spacing: -0.04em; color: #222; }
.yt-title strong { font-weight: 700; }

.yt-main { margin-top: 5cqw; margin-left: 3cqw; margin-right: 3cqw; padding-bottom: 5cqw; border-bottom: 1px solid #dcdfe4; }
.yt-video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.yt-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-main-tit { margin-top: 3cqw; padding: 0 2cqw; font-size: clamp(15.7px, 3.7cqw, 22.4px); color: #222; letter-spacing: -0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.yt-side { margin-top: 6cqw; padding: 0 3cqw; }
.yt-list li + li { margin-top: 4cqw; }
.yt-list a { display: flex; align-items: flex-start; gap: 2.5cqw; }
.yt-list img { flex: 0 0 37%; width: 37%; aspect-ratio: 16 / 9; object-fit: cover; }
.yt-list span { font-size: clamp(14.6px, 3.5cqw, 20.2px); line-height: 1.55; color: #333; letter-spacing: -0.04em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.yt-more { display: flex; align-items: center; gap: 8px; width: max-content; margin: 1cqw 0 0 auto; padding: 0 clamp(14px, 3.6cqw, 22px); line-height: clamp(30px, 6cqw, 40px); border-radius: 999px; background: #111; color: #fff; font-size: clamp(14.6px, 3.2cqw, 19px); font-weight: 500; }
.yt-more svg { width: 1.4em; height: 1em; }
.review .yt-inner { background: #f5f5f5; }

/* ===== 섹션 8 : 뉴스룸 ===== */
.news { container-type: inline-size; padding: var(--sec-pad) 1cqw 0; }
.news-title { text-align: center; font-size: clamp(22.4px, 5.6cqw, 35.8px); font-weight: 400; letter-spacing: -0.04em; color: #222; }
.news-title strong { font-weight: 700; }

.news-tabs { display: flex; gap: 1cqw; margin-top: 5cqw; }
.news-tab { padding: 0 clamp(14px, 3.4cqw, 22px); line-height: clamp(32px, 7cqw, 44px); border: 1px solid #c9d0dc; border-radius: 999px; background: #fff; color: #24467f; font-size: clamp(15.7px, 3.6cqw, 21.3px); font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.news-tab.is-active { background: #24508f; border-color: #24508f; color: #fff; }

.news-list { display: none; margin-top: 3cqw; border-top: 1px solid #e3e5e9; }
.news-list.is-active { display: block; animation: newsFade .4s ease; }
.news-list li { border-bottom: 1px solid #e3e5e9; }
.news-list a { display: block; padding: 0 1cqw; line-height: clamp(44px, 9.5cqw, 60px); font-size: clamp(14.6px, 3.5cqw, 20.2px); color: #222; letter-spacing: -0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes newsFade { from { opacity: 0; } to { opacity: 1; } }

/* ===== 섹션 9 : 예약 안내 ===== */
.reserve { container-type: inline-size; padding: var(--sec-pad) 1cqw 0; }
.reserve-inner { padding: 5cqw 3cqw; border-radius: 10px; background: #1e4685; color: #fff; text-align: center; }
.reserve-title { font-size: clamp(17.9px, 4cqw, 24.6px); font-weight: 700; letter-spacing: -0.03em; }
.reserve-list { display: flex; gap: 2.5cqw; margin-top: 4cqw; }
.reserve-list li { flex: 1; }
.reserve-list a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5cqw; height: 100%; padding: 5cqw 1cqw; background: #fff; color: #222; font-size: clamp(14.6px, 3.5cqw, 20.2px); font-weight: 500; letter-spacing: -0.04em; }
.reserve-list img { width: clamp(36px, 9cqw, 56px); height: auto; }
.reserve-note { margin-top: 4cqw; font-size: clamp(12.3px, 2.9cqw, 17.9px); color: #c8d4ea; letter-spacing: -0.04em; }

/* ===== 섹션 10 : 지점소개 · SNS ===== */
.branch { container-type: inline-size; display: flex; gap: 2.5cqw; padding: var(--sec-pad) 1cqw; }
.branch-link { flex: 1; min-width: 0; border-radius: 10px; overflow: hidden; }
.branch-link img { width: 100%; height: 100%; object-fit: cover; }
.sns { flex: 0 0 30%; display: flex; flex-direction: column; border: 1px solid #333; border-radius: 10px; overflow: hidden; }
.sns-title { padding: 0 1cqw; line-height: clamp(30px, 7cqw, 44px); background: #222; color: #fff; text-align: center; font-size: clamp(13.4px, 3.4cqw, 20.2px); font-weight: 500; letter-spacing: -0.04em; white-space: nowrap; }
.sns-list { flex: 1; display: flex; flex-direction: column; padding: 0 2.5cqw; }
.sns-list li { flex: 1; }
.sns-list li + li { border-top: 1px solid #e3e5e9; }
.sns-list a { display: flex; align-items: center; gap: 2.5cqw; height: 100%; font-size: clamp(12.3px, 3cqw, 17.9px); color: #222; letter-spacing: -0.04em; white-space: nowrap; }
.sns-list img { flex: 0 0 auto; width: clamp(24px, 6cqw, 36px); height: auto; }
@container (max-width: 400px) { .sns { flex-basis: 35%; } .sns-list { padding: 0 1.5cqw; } .sns-list a { gap: 1.5cqw; } .sns-list img { width: 18px; } }

/* ===== 퀵메뉴 ===== */
.quick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; max-width: 640px; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom); border-radius: 14px 14px 0 0; background: #1e3fae; }
@media (max-width: 1024px) { .quick { max-width: none; } }
.quick ul { display: flex; }
.quick li { flex: 1; position: relative; }
.quick li + li::before { content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 36px; margin-top: -18px; background: rgba(255,255,255,.3); }
.quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 0; color: #fff; font-size: 15px; letter-spacing: -0.04em; white-space: nowrap; }
.quick img { height: 38px; width: auto; }
@media (max-width: 360px) { body { padding-bottom: 78px; } .quick a { gap: 5px; padding: 12px 0; font-size: 11.5px; letter-spacing: -0.07em; } .quick img { height: 30px; } .quick li + li::before { height: 30px; margin-top: -15px; } }

/* ===== 스크롤 애니메이션 ===== */
.sa { opacity: 0; translate: 0 40px; transition: opacity .8s ease, translate .8s ease; }
.sa.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .sa { opacity: 1; translate: none; transition: none; } }
.cert-star { font-style: normal; font-size: .7em; vertical-align: top; letter-spacing: 0; }
