/* 치과(가상) 견본 — 고급·깔끔형 시안 B
   방향: 흰 바탕 + 짙은 남색(주조색 1개) + 사진 오버레이 타일
   규격: tokens.vars.css·tokens.base.css 그대로 사용(간격 4·8·12·16·24·32·48·64·96·128, 글자 13·14·18·20·24·34/40만 사용)
   원칙: 채도 높은 색 없음 · 카드 그림자 없음(얇은 선·굵은 선으로 구분) · 사진 자리는 모두 photo-slot 자리표시 */

@font-face {
  font-family: "Pretendard Fallback";
  src: local("Malgun Gothic"), local("맑은 고딕"), local("Apple SD Gothic Neo"), local("Noto Sans KR");
  size-adjust: 97%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%;
}

:root {
  --bg: #ffffff;
  --soft: #eef1f5;
  --ink: #1b2430;
  --muted: #5c6672;
  --navy: #16263f;
  --navy-ink: #0e1a2c;
  --navy-soft: #e3e8ef;
  --line: #e1e5ea;
  --line-strong: #aab3bd;
  --note-bg: #fff6d6;
  --note-ink: #4a3b00;
  --sans: "Pretendard Variable", "Pretendard", "Pretendard Fallback", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --section-mobile: var(--sp-64); /* 규격(48·64) 밖이던 56px 보정 */
  --gutter: var(--gutter-mobile);
  --section: var(--section-mobile);
}
@media (min-width: 768px) { :root { --gutter: var(--gutter-desktop); --section: var(--section-desktop); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--sp-96); overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--fs-18); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--navy-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
/* 어두운 바탕(첫 화면·사진 타일·문의 띠·바닥글)에서도 포커스 테두리가 보이도록 */
.hero-b :focus-visible,
.tile:focus-visible,
.cta-b :focus-visible,
.site-foot-b :focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--navy-ink);
}
h1, h2, h3 { color: var(--ink); font-weight: 700; }
ul, ol { margin: 0 0 var(--para-gap); padding-left: var(--sp-24); }
li { line-height: var(--lh-listitem); margin-bottom: var(--sp-8); }
.skip { position: absolute; left: -9999px; min-height: var(--touch-min); display: inline-flex; align-items: center; }
.skip:focus { left: var(--sp-16); top: var(--sp-16); background: #fff; padding: 0 var(--sp-16); z-index: 40; }

.shell { max-width: var(--container-shell); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--container-prose); }

/* 견본 고지 띠 */
.demo-bar { background: var(--note-bg); color: var(--note-ink); font-size: var(--fs-14); line-height: var(--lh-caption); border-bottom: 1px solid #e8d78f; }
.demo-bar .shell { padding-top: var(--sp-8); padding-bottom: var(--sp-8); }

/* 영문 눈썹글 — 섹션·히어로 공용 */
.eyebrow { font-size: var(--fs-14); line-height: var(--lh-caption); letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); font-weight: 700; margin: 0 0 var(--sp-8); }
.eyebrow.on-dark { color: #cfd8e3; }

/* 머리 */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 30; }
.site-head .shell { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16); min-height: 64px; }
.brand { display: flex; align-items: center; gap: var(--sp-8); text-decoration: none; color: var(--ink); font-weight: 700; font-size: var(--fs-20); min-height: var(--touch-min); white-space: nowrap; }
.brand svg { width: 32px; height: 32px; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-4); }
.nav li { margin: 0; }
.nav a { display: inline-flex; align-items: center; min-height: var(--touch-min); padding: 0 var(--sp-12); text-decoration: none; color: var(--ink); font-size: var(--fs-18); }
.nav a:hover { color: var(--navy-ink); box-shadow: inset 0 -2px 0 var(--navy); }
.site-head .head-call { display: none; }
.menu-btn { min-height: var(--touch-min); min-width: var(--touch-min); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: inherit; font-size: var(--fs-18); padding: 0 var(--sp-12); border-radius: 4px; cursor: pointer; white-space: nowrap; }
.menu-panel { border-top: 1px solid var(--line); background: var(--bg); }
.menu-panel[hidden] { display: none; }
.menu-panel ul { list-style: none; margin: 0; padding: var(--sp-8) var(--gutter) var(--sp-16); }
.menu-panel li { margin: 0; border-bottom: 1px solid var(--line); }
.menu-panel a { display: flex; align-items: center; min-height: var(--btn-height); text-decoration: none; color: var(--ink); }
@media (min-width: 1024px) {
  .nav { display: block; }
  .menu-btn, .menu-panel { display: none !important; }
  .site-head .head-call { display: inline-flex; }
}

/* 버튼 — 직사각형, 모서리 4px, 알약·그라데이션 없음 */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-8); min-height: var(--btn-height); padding: 0 var(--sp-24); border-radius: 4px; font-size: var(--fs-18); font-weight: 700; line-height: var(--lh-button); letter-spacing: var(--ls-button); text-decoration: none; border: 1px solid var(--navy); }
.btn-primary-b { background: var(--navy); color: #fff; }
.btn-primary-b:hover { background: var(--navy-ink); color: #fff; }
.btn-line-b { background: transparent; color: #fff; border-color: #fff; }
.btn-line-b:hover { background: #fff; color: var(--navy-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-12); }

/* 사진 자리 — 전 구간 공용 */
.photo-slot { position: absolute; inset: 0; background: var(--navy-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.photo-slot svg { width: 36%; max-width: 120px; color: var(--line-strong); }
.ps-tag { position: absolute; left: var(--sp-12); top: var(--sp-12); z-index: 4; display: inline-flex; align-items: center; background: rgba(14, 26, 44, .72); color: #fff; font-size: var(--fs-14); line-height: var(--lh-caption); letter-spacing: 0.01em; padding: var(--sp-4) var(--sp-8); border-radius: 2px; }

/* 첫 화면 */
.hero-b { position: relative; padding: var(--sp-96) 0 var(--sp-96); overflow: hidden; }
.hero-b .photo-slot svg { color: #33465f; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14,26,44,.92) 0%, rgba(14,26,44,.70) 45%, rgba(14,26,44,.15) 100%); }
@media (max-width: 767px) {
  .hero-overlay { background: linear-gradient(180deg, rgba(14,26,44,.55) 0%, rgba(14,26,44,.92) 100%); }
}
.hero-inner { position: relative; z-index: 2; }
.hero-b .kicker-b { font-size: var(--fs-14); line-height: var(--lh-caption); letter-spacing: var(--ls-caption); color: #cfd8e3; margin: 0 0 var(--sp-12); }
.hero-b h1 { color: #fff; font-size: var(--fs-34); line-height: var(--lh-display); margin: 0 0 var(--sp-24); max-width: 560px; }
.hero-b .lead-b { font-size: var(--fs-20); line-height: var(--lh-body); color: #e7ebf0; max-width: 560px; margin: 0 0 var(--sp-32); }
/* 첫 화면 안에서만 주 버튼을 흰 바탕으로(남색 배경 위 묻힘 보정, .cta-b와 같은 처리) */
.hero-b .btn-primary-b { background: #fff; color: var(--navy-ink); border-color: #fff; }
.hero-b .btn-primary-b:hover { background: var(--navy-soft); color: var(--navy-ink); }
.hero-photo { display: none; }
@media (min-width: 1024px) {
  .hero-b { padding: var(--sp-128) 0 var(--sp-128); }
  .hero-b h1 { font-size: var(--fs-40); }
  .hero-inner { display: grid; grid-template-columns: 7fr 5fr; gap: var(--sp-48); align-items: center; }
  .hero-photo { display: block; position: relative; aspect-ratio: 4 / 5; border: 1px solid rgba(255,255,255,.22); }
  .hero-tag { display: none; }
}

/* 첫 화면 끝에 걸치는 정보 띠 */
.info-strip-wrap { position: relative; z-index: 5; margin-top: calc(-1 * var(--sp-64)); }
.info-strip { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); display: grid; grid-template-columns: 1fr; }
.info-card { display: flex; flex-direction: column; justify-content: center; gap: var(--sp-4); padding: var(--sp-24); text-decoration: none; color: var(--ink); min-height: var(--sp-96); border-bottom: 1px solid var(--line); }
.info-card:last-child { border-bottom: 0; }
.info-card:hover { background: var(--soft); }
.info-label { font-size: var(--fs-14); letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); font-weight: 700; }
.info-value { font-size: var(--fs-20); font-weight: 700; color: var(--ink); line-height: var(--lh-subhead); }
@media (min-width: 768px) {
  .info-strip { grid-template-columns: repeat(3, 1fr); }
  .info-card { border-bottom: 0; border-right: 1px solid var(--line); }
  .info-card:last-child { border-right: 0; }
}

/* 섹션 공통 */
.section-b { padding: var(--section) 0; }
.section-b + .section-b { border-top: 1px solid var(--line); }
.section-soft-b { background: var(--soft); }
.section-head-b { margin-bottom: var(--sp-32); max-width: var(--container-prose); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-14); line-height: var(--lh-caption); }

/* 진료 안내 — 오버레이 사진 타일 그리드 */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-16); list-style: none; margin: 0; padding: 0; }
.tile-grid li { margin: 0; }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; text-decoration: none; overflow: hidden; border: 1px solid var(--line); }
.tile-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(14,26,44,.88) 100%); }
.tile-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--sp-16); color: #fff; }
.tile-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.6); color: #fff; font-size: var(--fs-14); font-weight: 700; margin-bottom: var(--sp-8); }
.tile-name { display: block; font-size: var(--fs-20); font-weight: 700; line-height: var(--lh-subhead); margin-bottom: var(--sp-4); }
.tile-desc { display: block; font-size: var(--fs-14); line-height: var(--lh-caption); color: #dbe1e8; }
.tile:hover .tile-overlay { background: linear-gradient(180deg, transparent 35%, rgba(14,26,44,.94) 100%); }
.tile:hover .tile-name { text-decoration: underline; }
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .tile-grid { grid-template-columns: repeat(5, 1fr); gap: var(--sp-24); }
  .tile-grid li:nth-child(1), .tile-grid li:nth-child(2) { grid-column: span 2; }
  .tile-grid li:nth-child(1) .tile, .tile-grid li:nth-child(2) .tile { aspect-ratio: 16 / 10; }
}

/* 진료 시간 */
.split-b { display: grid; gap: var(--sp-48); }
@media (min-width: 1024px) { .split-b { grid-template-columns: 5fr 7fr; gap: var(--sp-96); } }
.split-b a { display: inline-flex; align-items: center; min-height: var(--touch-min); }
.hours-b { width: 100%; border-collapse: collapse; font-size: var(--fs-18); }
.hours-b caption { text-align: left; font-size: var(--fs-14); line-height: var(--lh-caption); color: var(--muted); padding-bottom: var(--sp-8); }
.hours-b th, .hours-b td { text-align: left; padding: var(--sp-12) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours-b th { font-weight: 700; width: 42%; padding-right: var(--sp-16); color: var(--ink); }
.hours-b tr:first-child th, .hours-b tr:first-child td { border-top: 1px solid var(--ink); }

/* 진료를 이렇게 합니다 — 번호 배지 */
.way-list { display: grid; gap: var(--sp-32); grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.way-list li { margin: 0; display: grid; grid-template-columns: var(--sp-48) 1fr; gap: var(--sp-16); }
.way-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-18); font-weight: 700; }
.way-list h3 { margin: 0 0 var(--sp-8); font-size: var(--fs-20); }
.way-list p { margin: 0; color: var(--muted); }
@media (min-width: 1024px) { .way-list { grid-template-columns: repeat(3, 1fr); gap: var(--sp-48); } }

/* FAQ */
.faq-b details { border-bottom: 1px solid var(--line); }
.faq-b details:first-of-type { border-top: 1px solid var(--line); }
.faq-b summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--sp-16); align-items: center; min-height: var(--btn-height); padding: var(--sp-16) 0; font-weight: 700; font-size: var(--fs-18); }
.faq-b summary::-webkit-details-marker { display: none; }
.faq-b summary::after { content: "+"; color: var(--navy); font-size: var(--fs-24); line-height: 1; }
.faq-b details[open] summary::after { content: "\2212"; }
.faq-b .a { padding: 0 0 var(--sp-16); color: var(--muted); max-width: var(--container-prose); }
.faq-b .a a { color: var(--navy-ink); }

/* 문의 띠 */
.cta-b { background: var(--navy); color: #fff; padding: var(--sp-48) 0; }
.cta-b h2 { color: #fff; margin: 0 0 var(--sp-12); }
.cta-b p { color: #cfd8e3; }
.cta-b .btn-primary-b { background: #fff; color: var(--navy-ink); border-color: #fff; }
.cta-b .btn-line-b { color: #fff; border-color: #fff; }
.cta-b .btn-line-b:hover { background: var(--navy-ink); color: #fff; }
.cta-grid-b { display: grid; gap: var(--sp-24); align-items: end; }
@media (min-width: 1024px) { .cta-grid-b { grid-template-columns: 1fr auto; } }

/* 발 */
.site-foot-b { background: var(--navy-ink); color: #c9d2db; padding: var(--sp-48) 0 var(--sp-64); font-size: var(--fs-14); line-height: var(--lh-caption); }
.site-foot-b a { color: #fff; }
.site-foot-b h2 { color: #fff; font-size: var(--fs-18); margin: 0 0 var(--sp-12); }
.foot-grid-b { display: grid; gap: var(--sp-32); }
@media (min-width: 1024px) { .foot-grid-b { grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-64); } }
.site-foot-b ul { list-style: none; padding: 0; margin: 0; }
.site-foot-b li { margin: 0; }
.site-foot-b li a { display: inline-flex; align-items: center; min-height: var(--touch-min); }
.foot-legal-b { border-top: 1px solid #3a4a5e; margin-top: var(--sp-32); padding-top: var(--sp-16); color: #9aa7b3; }
.foot-legal-b p { margin-bottom: var(--sp-8); }
.placeholder { background: var(--note-bg); color: var(--note-ink); padding: 0 var(--sp-4); }

/* 휴대폰 아래 고정 전화 */
.mobile-call-b { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.mobile-call-b a { display: flex; align-items: center; justify-content: center; min-height: var(--btn-height); background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--fs-18); }
.mobile-call-b a.call { background: var(--navy); color: #fff; }
body { padding-bottom: var(--btn-height); }
@media (min-width: 1024px) { .mobile-call-b { display: none; } body { padding-bottom: 0; } }
.hero-b .photo-slot svg { position: absolute; right: var(--sp-32); bottom: var(--sp-96); width: 64px; opacity: .6; }
