/* 경희생생한의원 — 공통 스타일 (모바일 우선, 768 / 1080 에서 확장) */
/* 제목용 글꼴: 나눔스퀘어(굵게·아주 굵게만). 본문·메뉴·버튼·숫자는 프리텐다드 */
@font-face { font-family: "NanumSquare"; font-weight: 700; font-display: swap; src: url(https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/NanumSquareB.woff2) format("woff2"); }
@font-face { font-family: "NanumSquare"; font-weight: 800; font-display: swap; src: url(https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/NanumSquareEB.woff2) format("woff2"); }

:root {
  --font-body: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-head: "NanumSquare", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --g900: #143a27;
  --g700: #1c6337;
  --g600: #2a7f40;
  --g500: #5aa832;
  --g100: #e6f2de;
  --g50: #f3f8ee;
  --ink: #17211b;
  --sub: #58635c;
  --mute: #8a948d;
  --line: #e2e7e0;
  --bg: #f5f6f2;
  --white: #fff;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(20, 58, 39, .08);
  --header-h: 60px;
  --bar-h: 62px;
  --wrap: 1200px;
  --anchor-h: 59px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: break-word;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
h1, h2, h3, blockquote { font-family: var(--font-head); }
h1 small, h2 small, h3 small { font-family: var(--font-body); }
:focus-visible { outline: 3px solid var(--g500); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--g700); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── 헤더 ───────── */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, .04); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { display: block; height: 32px; width: auto; }

.gnb { display: none; }
.header-tel { display: none; }
.menu-btn { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; border-radius: 12px; }
.menu-btn .icon { width: 26px; height: 26px; }

/* 모바일 전체 메뉴 */
.drawer {
  position: fixed; inset: 0; z-index: 150;
  background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .28s ease, visibility .28s;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); flex: none; }
.drawer-body { overflow-y: auto; padding: 8px 20px 32px; flex: 1; }
.drawer-group { border-bottom: 1px solid var(--line); padding: 16px 0; }
.drawer-group > a { display: flex; align-items: center; justify-content: space-between; font-size: 19px; font-weight: 700; padding: 6px 0; }
.drawer-group > a .icon { width: 20px; height: 20px; color: var(--mute); }
.drawer-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.drawer-sub a { padding: 7px 14px; border-radius: 99px; background: var(--bg); font-size: 14.5px; color: var(--sub); }
.drawer-cta { display: grid; gap: 10px; margin-top: 22px; }

/* ───────── 버튼 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 99px;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--g700); color: #fff; }
.btn-primary:hover { background: var(--g900); }
.btn-line { background: #fff; color: var(--g700); box-shadow: inset 0 0 0 1.5px var(--g700); }
.btn-line:hover { background: var(--g50); }
.btn-white { background: #fff; color: var(--g900); }
.btn-white:hover { background: var(--g100); }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--g700); font-size: 15px; }
.more .icon { width: 18px; height: 18px; transition: transform .2s; }
.more:hover .icon { transform: translateX(3px); }

/* ───────── 섹션 공통 ───────── */
.section { padding: 64px 0; }
.section.tint { background: var(--bg); }
.eyebrow { display: block; font-size: 14px; font-weight: 700; color: var(--g600); letter-spacing: .02em; margin-bottom: 8px; }
.sec-title { font-size: clamp(25px, 3.4vw, 38px); font-weight: 800; }
.sec-desc { margin-top: 12px; color: var(--sub); max-width: 640px; }
.nw { white-space: nowrap; }
.em { font-weight: 800; color: #c62f24; }
.sec-head .more { margin-bottom: 7px; }
.sec-head.center { justify-content: center; text-align: center; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

/* ───────── 메인: 히어로 ───────── */
.hero { background: linear-gradient(180deg, var(--g50), #fff 85%); overflow: hidden; }
.hero .wrap { padding-top: 28px; padding-bottom: 56px; }
.hero-slides { display: grid; }
/* 넘길 때 글자는 먼저 사라진 뒤 다음 글자가 뜨고(겹침 방지), 사진만 서서히 바뀐다 */
.hero-slide { grid-area: 1 / 1; display: grid; grid-template-rows: 1fr auto; gap: 24px; align-items: center; visibility: hidden; transition: visibility 0s .6s; }
.hero-slide.is-active { visibility: visible; transition-delay: 0s; }
.hero-text { opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; }
.is-active > .hero-text { opacity: 1; transform: none; transition: opacity .4s ease .28s, transform .4s ease .28s; }
.hero-text .eyebrow { font-size: 15px; }
.hero-text h1, .hero-text h2 { font-size: clamp(30px, 5.2vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.22; }
.hero-text .hero-long { font-size: clamp(27px, 4.2vw, 46px); line-height: 1.28; }
.hero-text h1 em, .hero-text h2 em { font-style: normal; color: var(--g600); }
.hero-text p { margin-top: 16px; color: var(--sub); font-size: clamp(16px, 1.5vw, 19px); max-width: 30em; text-wrap: balance; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; max-width: 440px; }
.hero-cta .btn { flex: 1 1 150px; padding: 0 18px; }
.hero-cta .btn:only-child { flex: 0 1 auto; min-width: calc(50% - 5px); }
.hero-img { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: var(--g100); opacity: 0; transition: opacity .6s ease; }
.is-active > .hero-img { opacity: 1; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 14px; font-weight: 700; color: var(--sub); font-variant-numeric: tabular-nums; }
.hero-ctrl b { color: var(--ink); }
.hero-bar { flex: 0 0 90px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hero-bar i { display: block; height: 100%; width: 33.33%; background: var(--g600); transition: transform .5s ease; }
.hero-ctrl button { width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.hero-ctrl button:hover { background: var(--g50); }
.hero-ctrl .icon { width: 18px; height: 18px; }
.flip { transform: scaleX(-1); }

/* 빠른 메뉴 */
.quick { margin-top: -28px; position: relative; z-index: 2; }
.quick ul { display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.quick li { border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: -1px 0 0 -1px; }
.quick a { display: flex; flex-direction: column; gap: 8px; padding: 20px 18px; height: 100%; transition: background .2s; }
.quick a:hover { background: var(--g50); }
.quick .icon { width: 28px; height: 28px; color: var(--g600); }
.quick strong { font-size: 16.5px; }
.quick span { font-size: 13.5px; color: var(--sub); line-height: 1.5; }

/* 원장 소개 블록 */
.doctor { display: grid; gap: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.doctor-photo { aspect-ratio: 3 / 2; background: var(--g100); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.doctor-body { padding: 28px 24px 32px; }
.doctor-name { font-size: 24px; font-weight: 800; }
.doctor-name small { font-size: 15px; font-weight: 600; color: var(--g600); margin-left: 3px; }
.doctor-body p { margin-top: 14px; color: var(--sub); }
.doctor-body .more { margin-top: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li { padding: 4px 12px; border-radius: 99px; background: var(--g50); color: var(--g700); font-size: 13.5px; font-weight: 600; }

/* 진료분야(부위 탭) + 치료법 */
.field { background: #ebf3ee; color: #1f4532; border-radius: var(--radius); padding: 28px 22px 30px; position: relative; overflow: hidden; }
.field::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 260px; height: 270px; background: url(../assets/logo/mark-line.png) center / contain no-repeat; opacity: .09; pointer-events: none; }
.field .eyebrow { color: #2d6349; }
.field h2 { font-size: clamp(25px, 3vw, 32px); font-weight: 800; }
.field-desc { margin-top: 8px; color: #3f5548; font-size: 15.5px; }
.tabs { display: flex; gap: 6px; margin: 22px -22px 0; padding: 0 22px 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 15.5px; color: #3f5a4b; transition: background .2s, color .2s; }
.tabs button:hover { background: rgba(31, 69, 50, .08); }
.tabs button[aria-selected="true"] { background: #2d6349; color: #fff; }
.tab-panel { margin-top: 22px; position: relative; z-index: 1; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 19px; }
.tab-panel p { margin-top: 8px; color: #3f5548; font-size: 15.5px; }
.tab-panel ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tab-panel li { padding: 5px 12px; border-radius: 99px; background: #fff; font-size: 14px; }
.focus { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fff; font-size: 14.5px; line-height: 1.5; color: #1f4532; }
/* '중점 치료' 꼬리표 — 보험 배너 꼬리표(.perk-badge)와 같은 모양, 색만 초록 */
.focus b { flex: none; padding: 2px 10px; border-radius: 99px; background: #e3efdc; color: #2d6349; font-size: 12.5px; font-weight: 800; }
.tab-panel .btn { margin-top: 22px; min-height: 46px; font-size: 15px; background: #2d6349; color: #fff; }
.tab-panel .btn:hover { background: #1f4532; }

/* 진료 순서 3단계 — 같은 크기 카드, 사이에 화살표 (휴대폰은 세로로 ↓) */
.steps3 { --sg: 30px; display: grid; gap: var(--sg); counter-reset: none; }
.steps3 li { position: relative; }
.steps3 li + li::before { content: "↓"; position: absolute; left: 50%; top: calc(var(--sg) / -2); transform: translate(-50%, -50%); font-size: 18px; font-weight: 800; line-height: 1; color: var(--g600); }
.steps3 a { display: flex; align-items: center; gap: 16px; height: 100%; padding: 18px 20px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 6px 20px rgba(20, 58, 39, .05); transition: box-shadow .2s, transform .2s; }
.steps3 a:hover { box-shadow: inset 0 0 0 1.5px var(--g600), var(--shadow); transform: translateY(-2px); }
.s-ico { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--g50); color: var(--g700); display: grid; place-items: center; }
.s-ico .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.s-txt { display: grid; gap: 2px; }
.s-num { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--g600); }
.steps3 strong { font-family: var(--font-head); font-size: 18px; font-weight: 800; }
.s-desc { font-size: 14.5px; line-height: 1.55; color: var(--sub); }

.cure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; margin-top: 22px; }
.cure-grid a { display: block; }
.cure-grid .ph { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--g100); }
.cure-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cure-grid a:hover img { transform: scale(1.05); }
.cure-grid strong { display: block; margin-top: 10px; font-size: 16.5px; }
.cure-grid span { display: block; font-size: 13.5px; color: var(--sub); line-height: 1.5; }

/* 클리닉 칩 */
/* 보험 혜택 배너 2칸 (같은 크기) */
.perks { display: grid; grid-auto-rows: 1fr; gap: 12px; margin-top: 28px; }
.perk { display: flex; align-items: center; gap: 16px; height: 100%; padding: 20px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1.5px var(--g100), 0 6px 20px rgba(20, 58, 39, .06); transition: box-shadow .2s, transform .2s; }
.perk:hover { box-shadow: inset 0 0 0 1.5px var(--g600), var(--shadow); transform: translateY(-2px); }
.perk-ico { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--g700); color: #fff; display: grid; place-items: center; }
.perk-ico .icon { width: 26px; height: 26px; }
.perk-txt { flex: 1; display: grid; gap: 3px; }
.perk-badge { justify-self: start; padding: 2px 10px; border-radius: 99px; background: #fdecea; color: #c62f24; font-size: 12.5px; font-weight: 800; }
.perk strong { font-family: var(--font-head); font-size: 18px; font-weight: 800; }
.perk-txt > span:last-child { font-size: 14.5px; line-height: 1.55; color: var(--sub); }
.perk-go { display: none; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--g50); color: var(--g700); display: grid; place-items: center; }
.perk-go .icon { width: 18px; height: 18px; }
.cure-more { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.cure-more h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 20px 8px; margin: 28px -20px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 20px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 15.5px; transition: box-shadow .2s, background .2s; }
.chips a:hover { background: var(--g50); box-shadow: inset 0 0 0 1.5px var(--g600); }
.chips i { width: 26px; height: 26px; border-radius: 50%; background: var(--g700); color: #fff; display: grid; place-items: center; }
.chips .icon { width: 14px; height: 14px; stroke-width: 2.4; }
/* 그 밖의 진료: 같은 폭 칸으로 (휴대폰 2칸, 넓은 화면 3칸) */
.cure-sec .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 8px; }
.cure-sec .chips a { justify-content: space-between; gap: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; letter-spacing: -.02em; white-space: nowrap; padding: 7px 7px 7px 13px; }
.cure-sec .chips a:hover { background: var(--g50); box-shadow: inset 0 0 0 1.5px var(--g600); }
.cure-sec .chips i { width: 22px; height: 22px; }

/* 약속 카드 */
.cards { display: grid; gap: 14px; }
.card { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: inset 0 0 0 1px var(--line); }
.card .num { display: block; font-size: 13px; line-height: 1.2; font-weight: 800; color: var(--g600); letter-spacing: .06em; }
/* .topic h3(위 여백 28px)보다 우선하도록 .topic .card h3 도 함께 지정 — 번호와 제목이 두 줄처럼 벌어지던 원인 */
.card h3, .topic .card h3 { margin-top: 7px; font-size: 19px; }
.card p { margin-top: 8px; color: var(--sub); font-size: 15.5px; }

/* 진료 원칙: 병원 사진을 흐릿하게 깐 배경 */
.promise { position: relative; isolation: isolate; overflow: hidden; background: #f4f6f1; border-bottom: 0; }
.promise::before { content: ""; position: absolute; inset: -30px; z-index: -2; background: url(../assets/img/waiting.jpg) center / cover no-repeat; filter: blur(6px); }
.promise::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .7) 45%, rgba(255, 255, 255, .86)); }
.promise .card { background: rgba(255, 255, 255, .93); box-shadow: 0 8px 26px rgba(20, 58, 39, .09); }

/* 칼럼 카드 */
.posts { display: grid; gap: 14px; }
.post { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 24px 22px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.post:hover { box-shadow: inset 0 0 0 1.5px var(--g600), var(--shadow); transform: translateY(-2px); }
.post .cat { align-self: flex-start; padding: 3px 11px; border-radius: 99px; background: var(--g50); color: var(--g700); font-size: 13px; font-weight: 700; }
.post h3 { margin-top: 12px; font-size: 18.5px; }
.post p { margin-top: 8px; color: var(--sub); font-size: 15px; flex: 1; }
.post .more { margin-top: 16px; }

/* 진료시간 + 오시는 길 */
.info { display: grid; gap: 20px; }
.hours { background: var(--g900); color: #fff; border-radius: var(--radius); padding: 28px 22px 30px; }
.hours h2, .hours h3 { font-size: 22px; font-weight: 800; }
.hours dl { margin: 18px 0 0; }
.hours dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.hours dt { font-weight: 600; color: rgba(255, 255, 255, .8); }
.hours dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.hours dd small { display: block; font-weight: 500; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.hours .note { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.hours .tel { display: block; margin-top: 20px; font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.hours .btn { margin-top: 14px; width: 100%; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.map iframe { width: 100%; height: 280px; border: 0; display: block; }
.map-body { padding: 22px; }
.map-body address { font-style: normal; font-size: 18px; font-weight: 700; }
.way { margin-top: 14px; display: grid; gap: 10px; }
.way li { display: flex; gap: 10px; font-size: 15.5px; color: var(--sub); }
.way .icon { width: 20px; height: 20px; color: var(--g600); margin-top: 3px; }
.way b { color: var(--ink); }
.map-btns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; max-width: 460px; }
.map-btns .btn { min-height: 44px; padding: 0 6px; font-size: 14px; }
.line-badges { display: inline-flex; gap: 4px; vertical-align: -3px; margin-right: 4px; }
.line-badges i { width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.l3 { background: #ef7c1c; } .l8 { background: #e6186c; }

/* ───────── 서브 페이지 ───────── */
.page-hero { background: linear-gradient(180deg, var(--g50), #fff); padding: 40px 0 28px; }
.crumb { font-size: 13.5px; color: var(--mute); display: flex; gap: 6px; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.page-hero p { margin-top: 12px; color: var(--sub); max-width: 680px; font-size: 17px; }
.anchor-nav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.anchor-nav ul { display: flex; gap: 4px; overflow-x: auto; padding: 8px 20px; margin: 0 -20px; scrollbar-width: none; }
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav a { flex: none; display: block; padding: 8px 15px; border-radius: 99px; font-weight: 700; font-size: 15px; color: var(--sub); }
.anchor-nav a:hover, .anchor-nav a.is-on { background: var(--g700); color: #fff; }

.topic { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--anchor-h) - 16px); }
.topic:last-of-type { border-bottom: 0; }
.topic-grid { display: grid; gap: 28px; }
.topic h2 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 800; }
.topic .lead { margin-top: 14px; color: var(--sub); font-size: 17px; }
.topic h3 { margin-top: 28px; font-size: 18px; }
.topic p + p { margin-top: 12px; }
.topic .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--g100); }
.topic .ph img { width: 100%; height: 100%; object-fit: cover; }
.topic .ph.tall { aspect-ratio: 3 / 4; }
.check { margin-top: 12px; display: grid; gap: 8px; }
.check li { display: flex; gap: 10px; }
.check .icon { width: 20px; height: 20px; color: var(--g600); margin-top: 4px; stroke-width: 2.4; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill-list li { padding: 6px 14px; border-radius: 99px; background: var(--g50); color: var(--g700); font-weight: 600; font-size: 14.5px; }
.steps { margin-top: 14px; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg); }
.steps li::before { content: counter(s, decimal-leading-zero); font-weight: 800; color: var(--g600); font-variant-numeric: tabular-nums; }
.steps b { display: block; }
.steps span { color: var(--sub); font-size: 15px; }
.notice { margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg); color: var(--sub); font-size: 14.5px; }
.notice b { color: var(--ink); }

.greeting { display: grid; gap: 28px; }
.greeting blockquote { margin: 0; font-size: clamp(21px, 2.6vw, 28px); font-weight: 800; line-height: 1.45; letter-spacing: -.02em; }
.greeting blockquote em { font-style: normal; color: var(--g600); }
.greeting p { margin-top: 16px; color: var(--sub); font-size: 17px; }
.sign { margin-top: 26px; font-weight: 700; }
.sign b { font-size: 22px; margin-left: 6px; }

/* 칼럼(펼침) */
.acc { display: grid; gap: 12px; }
.acc details { background: #fff; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 8px; }
.acc details[open] { box-shadow: inset 0 0 0 1.5px var(--g600); }
.acc summary { list-style: none; cursor: pointer; padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .cat { grid-column: 1 / -1; justify-self: start; padding: 3px 11px; border-radius: 99px; background: var(--g50); color: var(--g700); font-size: 13px; font-weight: 700; }
.acc summary h2 { font-size: 18.5px; font-weight: 700; }
.acc summary .icon { color: var(--mute); transition: transform .25s; }
.acc details[open] summary .icon { transform: rotate(180deg); color: var(--g600); }
.acc .acc-body { padding: 0 20px 24px; color: var(--sub); }
.acc .acc-body p + p { margin-top: 12px; }
.acc .acc-body h3 { margin-top: 18px; font-size: 16.5px; color: var(--ink); }

/* 둘러보기 사진 */
.tour { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tour figure { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--g100); }
.tour img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tour figure:hover img { transform: scale(1.04); }
.tour figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 14px 11px; color: #fff; font-weight: 700; font-size: 14.5px; background: linear-gradient(transparent, rgba(0, 0, 0, .34) 45%, rgba(0, 0, 0, .72)); text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.tour figcaption b { display: block; }
.tour figcaption small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; line-height: 1.4; opacity: .92; }
.tour .wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.tour.two { grid-template-columns: 1fr; }
.tour.two figure { aspect-ratio: 3 / 2; }

/* 둘러보기 사진 크게 보기 */
.tour figure { cursor: zoom-in; }
.lightbox { border: 0; padding: 0; margin: 0; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: transparent; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .2s ease; }
.lightbox::backdrop { background: rgba(10, 18, 13, .84); }
@keyframes lb-in { from { opacity: 0; } }
.lb-fig { margin: 0; }
.lb-fig img { display: block; width: auto; height: auto; max-width: min(1080px, 92vw); max-height: 76vh; max-height: 76dvh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); background: #1a241e; }
.lb-cap { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px; padding: 0 12px; text-align: center; margin-top: 14px; color: #fff; font-size: 16px; }
.lb-cap em { font-style: normal; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.lb-cap span { font-size: 14px; color: rgba(255, 255, 255, .65); font-variant-numeric: tabular-nums; }
.lb-btn { position: fixed; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 4px 16px rgba(0, 0, 0, .3); transition: background .2s, transform .15s; }
.lb-btn:hover { background: #fff; }
.lb-btn:active { transform: scale(.94); }
.lb-btn .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.lb-close { top: 14px; right: 14px; }
.lb-prev, .lb-next { top: 50%; margin-top: -22px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.is-single .lb-prev, .is-single .lb-next { display: none; }

/* 404 안내 */
.nf { padding: 72px 0 96px; text-align: center; }
.nf .wrap { display: grid; justify-items: center; }
.nf-code { font-family: var(--font-head); font-size: clamp(64px, 12vw, 120px); font-weight: 800; line-height: 1; color: #c5ddb6; }
.nf p { margin-left: auto; margin-right: auto; }
.nf-btns { width: 100%; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 28px; font-weight: 700; color: var(--g700); }

/* 맺음 CTA */
.cta { background: var(--g700); color: #fff; padding: 52px 0; text-align: center; }
.cta h2 { font-size: clamp(23px, 3vw, 32px); font-weight: 800; }
.cta p { margin-top: 10px; color: rgba(255, 255, 255, .85); }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px auto 0; max-width: 480px; }
.cta-btns .btn { flex: 1 1 190px; padding: 0 18px; }
.cta-btns .btn:only-child { flex: 0 1 auto; min-width: calc(50% - 5px); }

/* ───────── 푸터 ───────── */
.footer { background: #101a14; color: rgba(255, 255, 255, .7); padding: 44px 0 36px; font-size: 14.5px; }
.footer .logo img { height: 40px; }
.footer-grid { display: grid; gap: 28px; }
.footer-info { margin-top: 16px; display: grid; gap: 4px; }
.footer-info b { color: #fff; font-weight: 600; margin-right: 6px; }
.footer nav ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer nav a { color: #fff; font-weight: 600; }
.footer nav a:hover { color: #b9e39f; }
.footer-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ───────── 고정 버튼 ───────── */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
}
.bar a { height: var(--bar-h); display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; font-size: 15.5px; }
.bar a + a { border-left: 1px solid var(--line); }
.bar a:first-child { background: var(--g700); color: #fff; }
.bar .icon { width: 20px; height: 20px; }
.side { display: none; }
.top-btn { position: fixed; right: 16px; bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom)); z-index: 80; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .14); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.top-btn.is-on { opacity: 1; visibility: visible; }

/* 등장 효과 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide, .hero-text, .is-active > .hero-text, .hero-img, .cure-grid img, .drawer { transition: none; }
  .lightbox[open] { animation: none; }
}

/* 아주 좁은 휴대폰(360px 미만): 같은 폭 칸에 글자가 넘치지 않게 */
@media (max-width: 359px) {
  .cure-sec .chips a { font-size: 13px; padding: 7px 6px 7px 10px; gap: 4px; }
  .cure-sec .chips i { width: 18px; height: 18px; }
}

/* ───────── 태블릿 ≥ 768 ───────── */
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .section { padding: 88px 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 80px; }
  .hero-slide { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 40px; }
  .quick { margin-top: -44px; }
  .quick ul { grid-template-columns: repeat(4, 1fr); }
  .quick a { padding: 26px 24px; }
  .doctor { grid-template-columns: 5fr 6fr; }
  .doctor-photo { aspect-ratio: auto; min-height: 340px; }
  .doctor-body { padding: 40px; align-self: center; }
  .field, .hours { padding: 36px 32px 38px; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .perk { padding: 24px 22px; }
  .perk-go { display: grid; }
  .steps3 { --sg: 34px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps3 li + li::before { content: "→"; left: calc(var(--sg) / -2); top: 50%; }
  .steps3 a { flex-direction: column; text-align: center; gap: 14px; padding: 30px 18px 28px; }
  .s-ico { width: 72px; height: 72px; }
  .s-ico .icon { width: 34px; height: 34px; }
  .steps3 strong { font-size: 20px; }
  .tabs { margin: 24px 0 0; padding: 0 0 4px; }
  .cure-grid { gap: 22px 18px; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 32px 0 0; padding: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .posts { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .info { grid-template-columns: 5fr 7fr; }
  .map iframe { height: 320px; flex: 1; }
  .page-hero { padding: 64px 0 40px; }
  .anchor-nav ul { padding: 10px 0; margin: 0; }
  :root { --anchor-h: 63px; }
  .topic { padding: 80px 0; }
  .topic-grid { grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
  .topic-grid.rev > :first-child { order: 2; }
  .topic .ph { position: sticky; top: calc(var(--header-h) + 76px); }
  .greeting { grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .cure-sec .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cure-sec .chips a { font-size: 15px; padding: 7px 8px 7px 16px; }
  .tour { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .tour .wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .tour.two { grid-template-columns: repeat(2, 1fr); }
  .lb-btn { width: 52px; height: 52px; }
  .lb-close { top: 24px; right: 24px; }
  .lb-prev, .lb-next { margin-top: -26px; }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
}

/* ───────── 데스크톱 ≥ 1080 ───────── */
@media (min-width: 1080px) {
  :root { --header-h: 78px; }
  body { padding-bottom: 0; }
  .logo img { height: 38px; }
  .menu-btn, .bar { display: none; }
  .gnb { display: block; height: 100%; }
  .gnb > ul { display: flex; height: 100%; }
  .gnb > ul > li { position: relative; height: 100%; }
  .gnb > ul > li > a { display: flex; align-items: center; height: 100%; padding: 0 18px; font-size: 17px; font-weight: 700; position: relative; }
  .gnb > ul > li > a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--g600); transform: scaleX(0); transition: transform .2s; }
  .gnb > ul > li:hover > a, .gnb > ul > li > a.is-on { color: var(--g700); }
  .gnb > ul > li:hover > a::after, .gnb > ul > li:focus-within > a::after, .gnb > ul > li > a.is-on::after { transform: scaleX(1); }
  .gnb .sub { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); min-width: 180px; padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 12px 36px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
  .gnb li:hover .sub, .gnb li:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .gnb .sub a { display: block; padding: 9px 14px; border-radius: 10px; font-size: 15.5px; font-weight: 500; white-space: nowrap; }
  .gnb .sub a:hover { background: var(--g50); color: var(--g700); }
  .header-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 99px; background: var(--g700); color: #fff; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
  .header-tel:hover { background: var(--g900); }
  .header-tel .icon { width: 18px; height: 18px; }

  .hero-slide { grid-template-columns: 11fr 10fr; gap: 64px; min-height: 480px; }
  .cure-grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .field::after { width: 340px; height: 352px; }
  .field { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; padding: 48px 52px; align-items: start; }
  .field .tabs { flex-direction: column; overflow: visible; margin: 28px 0 0; padding: 0; gap: 6px; }
  .field .tabs button { min-height: 50px; padding: 0 20px; text-align: left; font-size: 16.5px; }
  .field-body .tab-panel { margin-top: 0; padding-top: 6px; }
  .field-body .tab-panel h3 { font-size: 26px; }
  .field-body .tab-panel p { font-size: 17px; margin-top: 12px; }
  .field-body .tab-panel ul { margin-top: 20px; gap: 8px; }
  .field-body .tab-panel li { padding: 7px 16px; font-size: 15px; }
  .cure-sec .chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .top-btn { right: 20px; bottom: 24px; }
}

/* ───────── 넓은 화면 ≥ 1500: 옆 고정 버튼 (본문을 가리지 않을 때만) ───────── */
@media (min-width: 1500px) {
  .side { display: grid; gap: 10px; position: fixed; right: 24px; bottom: 96px; z-index: 80; }
  .side a { width: 84px; padding: 14px 6px 12px; border-radius: 18px; display: grid; justify-items: center; gap: 6px; font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); transition: transform .2s; }
  .side a:hover { transform: translateY(-3px); }
  .side a:first-child { background: var(--g700); color: #fff; }
  .side a:last-child { background: #fff; color: var(--g700); }
  .side .icon { width: 26px; height: 26px; }
  .top-btn { right: 43px; bottom: 32px; }
}
