@charset "UTF-8";
/**
 * 병원 홈페이지(10-28) — 폰 먼저, 글자 크게, 색 하나.
 * 색 = 치과가 고른 테마(data-theme) 한 가지만 강조색으로 · 어두운 화면 따라감 · 글자 대비 4.5:1 이상(웹 접근성 의무, 치과의원 2013~).
 * 폰에서 입력칸 글자 16px(아이폰 확대 방지) · 누르는 곳 44px 이상.
 */
.hp {
  --hp-accent: #0f766e;
  --hp-accent-strong: #115e59;
  --hp-on-accent: #ffffff;
  --hp-soft: #e6f4f1;
  --hp-tint: #f5faf9;
  --hp-bg: #ffffff;
  --hp-surface: #ffffff;
  --hp-ink: #111827;
  --hp-muted: #4b5563;
  --hp-line: #e3e7eb;
  --hp-warn-bg: #fff7e6;
  --hp-warn-line: #f0b44c;
  --hp-off-bg: #fdecea;
  --hp-off-ink: #b42318;
  --hp-ok: #15803d;
  --hp-radius: 14px;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--hp-ink);
  background: var(--hp-bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}
.hp[data-theme="navy"] {
  --hp-accent: #1e3a8a;
  --hp-accent-strong: #172e6e;
  --hp-soft: #e8edf9;
  --hp-tint: #f5f7fc;
}
.hp[data-theme="warm"] {
  --hp-accent: #8a4a1c;
  --hp-accent-strong: #6f3a14;
  --hp-soft: #f6ece2;
  --hp-tint: #fbf7f2;
  --hp-bg: #fffdfa;
  --hp-surface: #ffffff;
}
@media (prefers-color-scheme: dark) {
  .hp {
    --hp-accent: #5eead4;
    --hp-accent-strong: #99f6e4;
    --hp-on-accent: #04201c;
    --hp-soft: rgba(94, 234, 212, 0.12);
    --hp-tint: #101817;
    --hp-bg: #0b1211;
    --hp-surface: #121b1a;
    --hp-ink: #e8eeed;
    --hp-muted: #a9b5b3;
    --hp-line: #26322f;
    --hp-warn-bg: rgba(240, 180, 76, 0.12);
    --hp-off-bg: rgba(248, 113, 113, 0.16);
    --hp-off-ink: #fca5a5;
    --hp-ok: #4ade80;
  }
  .hp[data-theme="navy"] {
    --hp-accent: #93b4ff;
    --hp-accent-strong: #c2d4ff;
    --hp-on-accent: #0b1530;
    --hp-soft: rgba(147, 180, 255, 0.13);
    --hp-tint: #0f1420;
    --hp-bg: #0a0e17;
    --hp-surface: #111727;
    --hp-line: #232b3d;
  }
  .hp[data-theme="warm"] {
    --hp-accent: #f0b98a;
    --hp-accent-strong: #f7d3b2;
    --hp-on-accent: #2a1606;
    --hp-soft: rgba(240, 185, 138, 0.13);
    --hp-tint: #17120d;
    --hp-bg: #110d09;
    --hp-surface: #1a140e;
    --hp-line: #33281d;
  }
}
.hp *, .hp *::before, .hp *::after {
  box-sizing: border-box;
}
/* 기본값은 :where()로 — 점수가 낮아 아래 각 칸 규칙이 늘 이긴다 */
.hp :where(img) {
  max-width: 100%;
  height: auto;
  display: block;
}
.hp :where(a) {
  color: var(--hp-accent);
  text-underline-offset: 3px;
}
.hp :where(h1, h2, h3) {
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}
.hp :where(p) {
  margin: 0 0 0.6em;
}
.hp :where(ul, ol) {
  margin: 0;
  padding: 0;
}
.hp :focus-visible {
  outline: 3px solid var(--hp-accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.hp-ic {
  flex: none;
}
.hp-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hp-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--hp-accent);
  color: var(--hp-on-accent) !important;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.hp-skip:focus {
  top: 10px;
}
.hp-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .hp-wrap {
    padding: 0 28px;
  }
}
/* 머리 */
.hp-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--hp-bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hp-line);
}
.hp-head-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.hp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hp-ink) !important;
  min-width: 0;
  margin-right: auto;
}
.hp-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  background: var(--hp-accent);
  color: var(--hp-on-accent);
}
/* 로고·이름 한 덩어리(10-29) — 로고 높이 = 이름 글자 높이의 1.7배 · 한글은 줄 가운데보다 1px 낮게 앉아 아래 여백 2px로 로고 가운데에 맞춤 */
.hp-brand-name {
  font-weight: 800;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  padding-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-nav {
  display: none;
}
.hp-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
}
.hp-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--hp-muted);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.hp-nav a:hover {
  color: var(--hp-ink);
  background: var(--hp-tint);
}
.hp-nav a[aria-current="page"] {
  color: var(--hp-accent);
  background: var(--hp-soft);
}
.hp-head-act {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hp-head-call {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--hp-soft);
  color: var(--hp-accent) !important;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.hp-menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--hp-ink);
  cursor: pointer;
  margin-right: -11px;
  /* 누를 자리는 44px 그대로, 보이는 줄 세 개는 왼쪽 로고와 같은 여백 끝에 */
}
.hp-menu-btn:hover {
  background: var(--hp-tint);
}
.hp-drawer {
  border-top: 1px solid var(--hp-line);
  background: var(--hp-bg);
  /* 11-21 메뉴가 화면보다 길면 메뉴 안에서 굴림 — 위 막대가 화면 위에 붙어 있어 아래쪽 메뉴가 화면 밖으로 나가 안 보이던 것(대표님 폰 · 17개 중 9개) · 아래 고정 단추에 가리지 않게 그 높이도 뺌(열 때 스크립트가 재서 --hp-drawer-cut) */
  max-height: calc(100vh - var(--hp-drawer-cut, 130px));
  max-height: calc(100dvh - var(--hp-drawer-cut, 130px));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.hp-drawer ul {
  list-style: none;
  padding: 8px 16px 16px;
}
.hp-drawer a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--hp-line);
  color: var(--hp-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}
.hp-drawer a[aria-current="page"] {
  color: var(--hp-accent);
}
@media (min-width: 1000px) {
  .hp-nav {
    display: block;
  }
  .hp-head-call {
    display: inline-flex;
  }
  .hp-menu-btn, .hp-drawer {
    display: none !important;
  }
}
/* 휴진 띠 — 11-22 띠 전체가 진료 일정 링크 · 끝에 › 만(「진료 일정 보기」 글자가 폭 4분의 1을 먹어 폰 글씨를 키우면 두 줄이 되던 것 · 대표님 「너가 만든걸로 해」) */
.hp-banner {
  display: block;
  background: var(--hp-warn-bg);
  border-bottom: 1px solid var(--hp-warn-line);
  color: var(--hp-ink);
  text-decoration: none;
}
.hp-banner .hp-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 15px;
}
.hp-banner .hp-ic {
  flex: none;
}
.hp-banner .hp-banner-text {
  flex: 1;
  min-width: 0;
}
.hp-banner .hp-banner-go {
  flex: none;
  font-size: 22px;
  line-height: 1;
  color: var(--hp-muted);
}
.hp-banner:hover .hp-banner-go {
  color: var(--hp-ink);
}
/* 로고는 제 비율대로(네모 칸에 넣으면 세로로 긴 방패 양옆이 비어 이름과 멀어지고 왼쪽 여백이 어긋남) — 높이 = 이름 글자의 두 배 */
.hp-brand-logo {
  width: auto;
  height: 32px;
  max-width: 120px;
  object-fit: contain;
  flex: none;
}
/* PC는 같은 비율로 한 단계 크게 */
@media (min-width: 1000px) {
  .hp-brand {
    gap: 11px;
  }
  .hp-brand-logo {
    height: 36px;
    max-width: 136px;
  }
  .hp-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 18px;
  }
  .hp-brand-name {
    font-size: 21px;
  }
}
/* 미리보기 띠 — 미리보기 주소로 본 화면 맨 위(공개된 화면에는 없음) */
.hp-preview-bar {
  background: var(--hp-soft);
  border-bottom: 1px solid var(--hp-line);
  color: var(--hp-ink);
}
.hp-preview-bar .hp-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 14.5px;
  line-height: 1.45;
}
.hp-preview-bar .hp-ic {
  color: var(--hp-accent);
  flex: none;
}
.hp-preview-bar .hp-wrap > span {
  flex: 1 1 220px;
  min-width: 0;
}
.hp-preview-bar em {
  font-style: normal;
  color: var(--hp-muted);
  margin-left: 4px;
}
.hp-preview-bar a {
  flex: none;
  font-weight: 700;
  white-space: nowrap;
  color: var(--hp-accent);
}
/* 공개 전 홈페이지 = 「준비 중」 */
.hp-soon {
  padding: 72px 0 88px;
  text-align: center;
  background: var(--hp-tint);
}
.hp-soon h1 {
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.hp-soon p {
  margin-top: 14px;
  color: var(--hp-muted);
}
.hp-soon .hp-soon-act {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.hp-soon .hp-soon-addr {
  font-size: 15px;
}
.hp-main {
  display: block;
  outline: none;
}
/* 「진료 달력」「사진 전체」 같은 화면 안 이동이 위 고정 막대에 가리지 않게 */
.hp-main [id] {
  scroll-margin-top: 76px;
}
/* 단추 */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
  color: var(--hp-ink) !important;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.hp-btn:hover {
  border-color: var(--hp-accent);
}
.hp-btn.is-primary {
  background: var(--hp-accent);
  border-color: var(--hp-accent);
  color: var(--hp-on-accent) !important;
}
.hp-btn.is-primary:hover {
  background: var(--hp-accent-strong);
}
.hp-btn.is-small {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 14px;
}
.hp-btn[disabled] {
  opacity: 0.55;
  cursor: default;
}
.hp-next {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
/* 첫 화면 */
.hp-hero {
  padding: 36px 0 32px;
  background: linear-gradient(180deg, var(--hp-tint), var(--hp-bg));
}
@media (min-width: 768px) {
  .hp-hero {
    padding: 64px 0 56px;
  }
}
.hp-hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .hp-hero-grid.has-photo {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
  }
}
.hp-eyebrow {
  color: var(--hp-accent);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}
.hp-hero h1 {
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hp-hero-lead {
  font-size: 18px;
  color: var(--hp-muted);
  margin: 12px 0 0;
  max-width: 34em;
}
.hp-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  color: var(--hp-muted);
}
.hp-now.is-open {
  color: var(--hp-ok);
  border-color: color-mix(in srgb, var(--hp-ok) 35%, transparent);
}
.hp-now.is-lunch, .hp-now.is-before {
  color: #9a6200;
  border-color: var(--hp-warn-line);
}
@media (prefers-color-scheme: dark) {
  .hp-now.is-lunch, .hp-now.is-before {
    color: #f5c26b;
  }
}
.hp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.hp-quick {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 18px;
  font-size: 15px;
}
.hp-quick a {
  color: var(--hp-muted);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--hp-line);
}
.hp-quick a:hover {
  color: var(--hp-accent);
}
.hp-hero-photo {
  margin: 0;
}
.hp-hero-photo img {
  width: 100%;
  aspect-ratio: 1.3333333333;
  object-fit: cover;
  border-radius: 20px;
}
.hp-hero-card {
  display: none;
}
@media (min-width: 900px) {
  .hp-hero-grid.has-card {
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
  }
  .hp-hero-card {
    display: block;
    padding: 24px;
    border-radius: 20px;
    background: var(--hp-surface);
    border: 1px solid var(--hp-line);
    box-shadow: 0 12px 32px -18px rgba(15, 40, 35, 0.25);
  }
  .hp-hero-card dl {
    margin: 0 0 16px;
  }
  .hp-hero-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--hp-line);
  }
  .hp-hero-card dt {
    font-weight: 700;
  }
  .hp-hero-card dd {
    margin: 0;
  }
  .hp-hero-card .is-off {
    color: var(--hp-muted);
  }
  .hp-hero-card-h {
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 6px;
  }
}
/* 칸 */
.hp-sec {
  padding: 44px 0;
}
.hp-sec.is-tint {
  background: var(--hp-tint);
}
@media (min-width: 768px) {
  .hp-sec {
    padding: 64px 0;
  }
}
.hp-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.hp-sec-head h2 {
  font-size: 23px;
  font-weight: 800;
}
@media (min-width: 768px) {
  .hp-sec-head h2 {
    font-size: 26px;
  }
}
.hp-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.hp-sec-cta {
  margin: 22px 0 0;
}
.hp-empty {
  color: var(--hp-muted);
}
.hp-note {
  color: var(--hp-muted);
  font-size: 15px;
}
.hp-intro {
  font-size: 17px;
  max-width: 42em;
}
/* 원장님 */
.hp-doctor-cards {
  list-style: none;
  display: grid;
  gap: 12px;
}
@media (min-width: 768px) {
  .hp-doctor-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hp-doctor-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--hp-radius);
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
  color: var(--hp-ink) !important;
  text-decoration: none;
  height: 100%;
}
.hp-doctor-card:hover {
  border-color: var(--hp-accent);
}
.hp-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--hp-soft);
}
.hp-avatar.is-initial {
  display: grid;
  place-items: center;
  color: var(--hp-accent);
  font-weight: 800;
  font-size: 26px;
}
.hp-avatar.is-large {
  width: 112px;
  height: 112px;
  font-size: 40px;
}
.hp-doctor-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.hp-doctor-name {
  font-weight: 800;
  font-size: 18px;
}
.hp-doctor-name small {
  font-weight: 600;
  color: var(--hp-muted);
  font-size: 15px;
}
.hp-doctor-fields {
  color: var(--hp-muted);
  font-size: 14.5px;
}
.hp-doctor-go {
  color: var(--hp-muted);
}
.hp-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--hp-tint);
  color: var(--hp-muted);
  border: 1px solid var(--hp-line);
}
.hp-badge.is-strong {
  background: var(--hp-soft);
  color: var(--hp-accent);
  border-color: transparent;
}
/* 진료 그림(models/Art.php · scripts/make_art.py가 만든 SVG) — 그림 속 치아·잇몸 색은 그대로, 바탕·강조만 테마를 따라감 */
.hp-art {
  display: block;
  width: 100%;
  height: auto;
}
.hp-art .bg {
  fill: var(--hp-soft);
}
.hp-art .t {
  fill: #fff;
  stroke: #97a1b1;
  stroke-width: 1;
  stroke-linejoin: round;
}
.hp-art .g {
  fill: #ef9f98;
}
.hp-art .l {
  fill: #e39a92;
}
.hp-art .ld {
  fill: none;
  stroke: #c97c74;
  stroke-width: 1.2;
}
.hp-art .m {
  fill: #5e2630;
}
.hp-art .b {
  fill: #f0e3cf;
}
.hp-art .gb {
  fill: none;
  stroke: #ef9f98;
  stroke-width: 26;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.hp-art .pa {
  fill: #f6c2bc;
}
.hp-art .tg {
  fill: #e9928b;
}
.hp-art .mt {
  fill: #c3cad5;
  stroke: #687384;
  stroke-width: 0.8;
}
.hp-art .band {
  fill: none;
  stroke: #687384;
  stroke-width: 2.2;
}
.hp-art .arm {
  fill: none;
  stroke: #687384;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.hp-art .w {
  fill: none;
  stroke: #687384;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.hp-art .w2 {
  fill: none;
  stroke: #687384;
  stroke-width: 2;
  stroke-linejoin: round;
}
.hp-art .sk {
  fill: #ece5de;
  stroke: #a99a8c;
  stroke-width: 1.2;
}
.hp-art .lp {
  fill: none;
  stroke: #a99a8c;
  stroke-width: 1.2;
  stroke-linecap: round;
}
.hp-art .ln {
  fill: none;
  stroke: #8c96a6;
  stroke-width: 1.2;
  stroke-linecap: round;
}
.hp-art .ln2 {
  fill: none;
  stroke: #687384;
  stroke-width: 1;
}
.hp-art .ghost {
  fill: none;
  stroke: var(--hp-accent);
  stroke-width: 1.6;
  stroke-dasharray: 3 3;
  opacity: 0.8;
}
.hp-art .tt {
  fill: #c9a24f;
}
.hp-art .dk {
  fill: #4a3a2e;
}
.hp-art .fil {
  fill: #fff;
  stroke: var(--hp-accent);
  stroke-width: 1.6;
}
.hp-art .tool {
  fill: none;
  stroke: #687384;
  stroke-width: 5;
  stroke-linecap: round;
}
.hp-art .tool2 {
  fill: none;
  stroke: #687384;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.hp-art .sh {
  fill: #2a0d12;
  opacity: 0.35;
}
.hp-art .hl {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.9;
}
.hp-art .ac {
  fill: var(--hp-accent);
}
.hp-art .as {
  fill: none;
  stroke: var(--hp-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hp-art .ad {
  fill: none;
  stroke: var(--hp-accent);
  stroke-width: 1.8;
  stroke-dasharray: 4 3;
  stroke-linecap: round;
}
.hp-art .ad2 {
  fill: none;
  stroke: #687384;
  stroke-width: 1.8;
  stroke-dasharray: 4 3;
  stroke-linecap: round;
}
.hp-art .tr {
  fill: var(--hp-accent);
  fill-opacity: 0.16;
  stroke: var(--hp-accent);
  stroke-opacity: 0.6;
  stroke-width: 1.3;
  stroke-linejoin: round;
}
.hp-art .tx {
  fill: var(--hp-muted);
  font-size: 11px;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .hp-art .sk {
    fill: #d8d0c8;
    stroke: #8f8275;
  }
  .hp-art .b {
    fill: #ddd0bd;
  }
}
/* 고민 — 그림 3칸(폰에서도 3×3) · 짧은 설명은 넓은 화면에서만 */
.hp-concerns {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 768px) {
  .hp-concerns {
    gap: 12px;
  }
}
.hp-concerns a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 8px 8px 10px;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  color: var(--hp-ink) !important;
  text-decoration: none;
}
.hp-concerns a .hp-art {
  border-radius: 10px;
}
.hp-concerns a strong {
  font-size: 14px;
  line-height: 1.35;
  padding: 0 2px;
}
.hp-concerns a span {
  display: none;
}
.hp-concerns a:hover {
  border-color: var(--hp-accent);
}
@media (min-width: 768px) {
  .hp-concerns a {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
    padding: 12px;
  }
  .hp-concerns a .hp-art {
    grid-row: 1 / span 2;
  }
  .hp-concerns a strong {
    font-size: 17px;
    padding: 2px 0 0;
  }
  .hp-concerns a span {
    color: var(--hp-muted);
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
/* 진료 카드 */
.hp-cards {
  list-style: none;
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .hp-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .hp-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hp-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  color: var(--hp-ink) !important;
  text-decoration: none;
}
.hp-card h3 {
  font-size: 18px;
  font-weight: 800;
}
.hp-card p {
  color: var(--hp-muted);
  font-size: 15px;
  margin: 0;
  flex: 1;
}
.hp-card:hover {
  border-color: var(--hp-accent);
}
.hp-card-meta {
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-accent);
}
.hp-card.has-art {
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
}
.hp-card-art {
  flex: none;
  width: 92px;
}
.hp-card-art .hp-art {
  border-radius: 10px;
}
.hp-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
}
@media (min-width: 960px) {
  .hp-cards.is-narrow {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hp-equip {
  margin: 18px 0 0;
  color: var(--hp-muted);
  font-size: 15px;
}
.hp-equip strong {
  color: var(--hp-ink);
  margin-right: 6px;
}
/* 원장님 답변 */
.hp-answers {
  list-style: none;
  display: grid;
  gap: 12px;
}
.hp-answer {
  padding: 18px;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
}
.hp-answer-q, .hp-answer-a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.hp-answer-q {
  font-weight: 700;
  font-size: 17px;
}
.hp-answer-a {
  color: var(--hp-muted);
  font-size: 15.5px;
}
.hp-qa-mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  background: var(--hp-tint);
  color: var(--hp-muted);
  border: 1px solid var(--hp-line);
  margin-top: 1px;
}
.hp-qa-mark.is-a {
  background: var(--hp-soft);
  color: var(--hp-accent);
  border-color: transparent;
}
.hp-answer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 10px 0 0 36px;
  font-size: 14px;
  color: var(--hp-muted);
}
.hp-answer-meta a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  text-decoration: none;
}
/* 진료시간·오시는 길 */
/* 칸이 글 길이만큼 늘지 않게 — 띄어쓰기 없는 긴 줄(버스 번호 「640·650·…」·긴 주소)은 칸 안에서 꺾음(10-30 유펜 폰 메인이 옆으로 밀림) */
.hp-visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}
.hp-visit-grid > * {
  min-width: 0;
}
.hp-addr > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 900px) {
  .hp-visit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}
.hp-visit-grid h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}
.hp-hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.hp-hours th, .hp-hours td {
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid var(--hp-line);
  vertical-align: top;
}
.hp-hours th {
  width: 7.5em;
  font-weight: 700;
}
.hp-hours td small {
  display: inline-block;
  margin-left: 8px;
  color: var(--hp-accent);
  font-weight: 700;
  font-size: 13.5px;
}
.hp-hours .is-off td, .hp-hours .is-off th {
  color: var(--hp-muted);
}
.hp-hours .is-lunch td, .hp-hours .is-lunch th {
  color: var(--hp-muted);
}
.hp-addr {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 10px;
}
.hp-addr .hp-ic {
  margin-top: 3px;
  color: var(--hp-accent);
}
.hp-map {
  width: 100%;
  aspect-ratio: 1.3333333333;
  max-height: 360px;
  border-radius: var(--hp-radius);
  background: var(--hp-tint);
  margin-top: 16px;
  border: 1px solid var(--hp-line);
}
.hp-h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 24px 0 10px;
}
.hp-way {
  margin-top: 48px;
}
.hp-way h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}
.hp-way-grid {
  display: grid;
  gap: 8px;
}
@media (min-width: 900px) {
  .hp-way-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
  }
  .hp-way-grid .hp-map {
    margin-top: 0;
  }
}
/* 진료 달력 — 빨간 동그라미 = 쉬는 날(요일·공휴일·치과가 정한 날 모두 같은 모양) · 테두리 = 오늘 */
.hp-cal {
  display: grid;
  gap: 28px;
}
.hp-cal-month table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.hp-cal-month caption {
  text-align: left;
  font-weight: 800;
  font-size: 17px;
  padding-bottom: 8px;
}
.hp-cal-month th {
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-muted);
  padding: 4px 0 8px;
}
.hp-cal-month th.is-sun {
  color: var(--hp-off-ink);
}
.hp-cal-month td {
  text-align: center;
  padding: 3px 0;
  height: 50px;
  vertical-align: top;
  position: relative;
}
.hp-cal-d {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 15.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hp-cal-month .is-red .hp-cal-d {
  color: var(--hp-off-ink);
}
.hp-cal-month .is-off .hp-cal-d {
  background: var(--hp-off-bg);
  color: var(--hp-off-ink);
}
.hp-cal-month .is-today .hp-cal-d {
  box-shadow: inset 0 0 0 2px var(--hp-accent);
  font-weight: 800;
}
.hp-cal-month .is-past {
  opacity: 0.42;
}
/* 어두운 화면 휴진 날 — 옅은 분홍 숫자가 흰 평일 숫자보다 어둡게 보였음(10-30 유펜 원장님) → 진한 빨강 동그라미 위 흰 숫자 · 일요일·공휴일 숫자도 더 밝게 */
@media (prefers-color-scheme: dark) {
  .hp-cal-month .is-off .hp-cal-d {
    background: #c62828;
    color: #fff;
  }
  .hp-cal-month .is-red:not(.is-off) .hp-cal-d, .hp-cal-month th.is-sun {
    color: #ffc2c2;
  }
  .hp-cal .hp-cal-legend .is-off::before {
    background: #c62828;
    box-shadow: none;
  }
}
/* 셋째 달 — 「○월 일정 보기」를 누르면 그 자리에 펼침 */
.hp-cal-next > summary {
  list-style: none;
  cursor: pointer;
  justify-self: start;
  width: fit-content;
}
.hp-cal-next > summary::-webkit-details-marker {
  display: none;
}
.hp-cal-next[open] > summary {
  display: none;
}
.hp-cal-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hp-accent);
}
.hp-cal-list {
  margin: 10px 0 0;
  font-size: 15px;
}
.hp-cal-list div {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--hp-line);
}
.hp-cal-list dt {
  flex: none;
  width: 5.5em;
  font-weight: 700;
  color: var(--hp-off-ink);
}
.hp-cal-list div + div dt {
  color: var(--hp-accent);
}
.hp-cal-list dd {
  margin: 0;
}
.hp-cal-legend {
  display: flex;
  gap: 16px;
  font-size: 13.5px;
  color: var(--hp-muted);
  margin: 0;
}
.hp-cal-legend span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -2px;
}
.hp-cal-legend .is-off::before {
  background: var(--hp-off-bg);
  box-shadow: inset 0 0 0 1px var(--hp-off-ink);
}
.hp-cal-legend .is-today::before {
  box-shadow: inset 0 0 0 2px var(--hp-accent);
}
@media (min-width: 560px) and (max-width: 899px) {
  .hp-cal {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .hp-cal-legend {
    grid-column: 1 / -1;
  }
}
/* 병원 둘러보기 */
.hp-tour {
  margin-top: 48px;
}
.hp-tour h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}
.hp-gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 768px) {
  .hp-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}
.hp-gallery figure {
  margin: 0;
}
.hp-gallery a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
}
.hp-gallery img {
  width: 100%;
  aspect-ratio: 1.3333333333;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.hp-gallery a:hover img {
  transform: scale(1.03);
}
.hp-gallery figcaption {
  font-size: 14px;
  color: var(--hp-muted);
  padding: 6px 2px 0;
}
/* 진료 화면 사진(장치·장비) — 잘라 내지 않고 생긴 그대로 */
.hp-gallery.is-natural {
  align-items: start;
}
@media (min-width: 768px) {
  .hp-gallery.is-natural {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hp-gallery.is-natural img {
  aspect-ratio: auto;
}
/* 지키는 것 */
.hp-promises {
  list-style: none;
  counter-reset: hp-p;
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
@media (min-width: 768px) {
  .hp-promises {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
.hp-promises li {
  counter-increment: hp-p;
  position: relative;
  padding: 20px 20px 18px 64px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
}
.hp-promises li::before {
  content: counter(hp-p,decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 19px;
  font-weight: 800;
  font-size: 18px;
  color: var(--hp-accent);
  font-variant-numeric: tabular-nums;
}
.hp-promises li h3 {
  font-size: 17.5px;
  font-weight: 800;
  margin-bottom: 4px;
}
.hp-promises li p {
  margin: 0;
  color: var(--hp-muted);
  font-size: 15.5px;
}
/* 공지 */
.hp-notice-list {
  list-style: none;
  border-top: 1px solid var(--hp-line);
}
.hp-notice-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--hp-line);
  color: var(--hp-ink) !important;
  text-decoration: none;
}
.hp-notice-list a time {
  color: var(--hp-muted);
  font-size: 14px;
  white-space: nowrap;
}
.hp-notice-list a:hover .hp-notice-title {
  color: var(--hp-accent);
}
.hp-notices {
  list-style: none;
}
.hp-notices li {
  padding: 22px 0;
  border-bottom: 1px solid var(--hp-line);
}
.hp-notices h2 {
  font-size: 19px;
}
.hp-notices time {
  display: block;
  color: var(--hp-muted);
  font-size: 14px;
  margin: 4px 0 10px;
}
/* 하위 화면 */
.hp-page {
  padding-top: 28px;
  padding-bottom: 56px;
}
@media (min-width: 768px) {
  .hp-page {
    padding-top: 44px;
    padding-bottom: 80px;
  }
}
.hp-page-head {
  margin-bottom: 28px;
}
.hp-page-head h1 {
  font-size: clamp(27px, 6vw, 36px);
  font-weight: 800;
  margin-bottom: 10px;
}
.hp-page-head p {
  color: var(--hp-muted);
  max-width: 44em;
}
.hp-lead {
  font-size: 18px;
  color: var(--hp-ink) !important;
}
.hp-crumb {
  margin-bottom: 14px;
  font-size: 15px;
}
.hp-crumb a {
  color: var(--hp-muted);
  font-weight: 600;
  text-decoration: none;
}
.hp-crumb a::before {
  content: "‹ ";
}
.hp-article {
  max-width: 760px;
}
.hp-article > section {
  margin-top: 36px;
}
.hp-article h2, .hp-sec-inline h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 12px;
}
.hp-sec-inline {
  margin-top: 40px;
}
.hp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}
.hp-facts div {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--hp-tint);
  border: 1px solid var(--hp-line);
}
.hp-facts dt {
  font-size: 13px;
  color: var(--hp-muted);
  font-weight: 600;
}
.hp-facts dd {
  margin: 0;
  font-weight: 700;
}
.hp-page-head.has-art .hp-page-art {
  margin-top: 20px;
  max-width: 340px;
}
.hp-page-art a {
  display: block;
  cursor: zoom-in;
}
@media (min-width: 768px) {
  .hp-page-head.has-art {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    column-gap: 32px;
    align-items: start;
  }
  .hp-page-head.has-art > * {
    grid-column: 1;
  }
  .hp-page-head.has-art .hp-page-art {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin-top: 4px;
  }
}
/* 고민 화면 맨 위 「가지런한 경우 · 이 고민」 그림 두 장 */
.hp-pair {
  margin: 0;
  max-width: 560px;
}
.hp-pair .hp-pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hp-pair span {
  display: block;
  text-align: center;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-muted);
}
.hp-pair .is-this span {
  color: var(--hp-accent);
}
.hp-pair figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--hp-muted);
  text-align: center;
}
/* 교정 방법 한눈에 비교 — 폰에서는 방법마다 한 칸 */
.hp-cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.hp-cmp th, .hp-cmp td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--hp-line);
  text-align: left;
  vertical-align: top;
}
.hp-cmp thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-muted);
  background: var(--hp-tint);
}
.hp-cmp tbody th a {
  font-weight: 800;
  text-decoration: none;
}
@media (max-width: 719px) {
  .hp-cmp thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .hp-cmp tr {
    display: block;
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    background: var(--hp-surface);
  }
  .hp-cmp th, .hp-cmp td {
    display: block;
    padding: 4px 0;
    border: 0;
  }
  .hp-cmp tbody th {
    padding-bottom: 6px;
    font-size: 17px;
  }
  .hp-cmp td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
  }
  .hp-cmp td::before {
    content: attr(data-label);
    flex: none;
    color: var(--hp-muted);
    font-size: 14px;
    text-align: left;
  }
}
.hp-doctor-note {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-radius: var(--hp-radius);
  background: var(--hp-soft);
}
.hp-doctor-note p {
  margin: 0;
}
.hp-checks {
  list-style: none;
}
.hp-checks li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
}
.hp-checks li .hp-ic {
  color: var(--hp-accent);
  margin-top: 4px;
}
.hp-steps {
  list-style: none;
  counter-reset: hp-step;
  display: grid;
  gap: 4px;
}
.hp-steps li {
  counter-increment: hp-step;
  position: relative;
  padding: 10px 0 10px 46px;
  display: flex;
  flex-direction: column;
}
.hp-steps li::before {
  content: counter(hp-step);
  position: absolute;
  left: 0;
  top: 9px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  background: var(--hp-soft);
  color: var(--hp-accent);
}
.hp-steps li strong {
  font-size: 17px;
}
.hp-steps li span {
  color: var(--hp-muted);
}
.hp-steps.is-plain li strong {
  display: none;
}
.hp-caution {
  padding: 18px 20px;
  border-radius: var(--hp-radius);
  background: var(--hp-warn-bg);
  border-left: 4px solid var(--hp-warn-line);
}
.hp-caution ul {
  padding-left: 1.2em;
}
.hp-caution li {
  padding: 3px 0;
}
.hp-faq {
  border-top: 1px solid var(--hp-line);
}
.hp-faq details {
  border-bottom: 1px solid var(--hp-line);
}
.hp-faq summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 2px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.5;
}
.hp-faq summary::-webkit-details-marker {
  display: none;
}
.hp-faq summary > span {
  flex: 1;
  min-width: 0;
}
.hp-faq summary > .hp-ic {
  flex: none;
  margin-top: 3px;
  color: var(--hp-muted);
  transition: transform 0.2s;
}
.hp-faq details[open] > summary > .hp-ic {
  transform: rotate(180deg);
}
.hp-faq details[open] > summary {
  color: var(--hp-accent);
}
.hp-faq-a {
  padding: 0 2px 18px;
  color: var(--hp-muted);
}
.hp-faq-a a, .hp-prose a, .hp-doctor-note a {
  text-decoration: underline;
}
.hp-related {
  display: grid;
  gap: 40px;
}
.hp-related h2 {
  margin: 0 0 14px;
}
.hp-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hp-chips a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
  text-decoration: none;
  font-weight: 600;
}
.hp-chips a:hover {
  border-color: var(--hp-accent);
}
.hp-reviewed {
  margin-top: 32px;
  font-size: 14px;
  color: var(--hp-muted);
}
/* 원장님 화면 */
.hp-profile-head {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.hp-profile-head h1 {
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 800;
}
.hp-profile-head h1 small {
  font-size: 0.6em;
  color: var(--hp-muted);
  font-weight: 600;
}
.hp-profile-head p {
  margin: 8px 0 0;
}
.hp-greeting {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-radius: var(--hp-radius);
  background: var(--hp-tint);
  font-size: 17px;
  border-left: 4px solid var(--hp-accent);
}
.hp-greeting p {
  margin: 0;
}
.hp-greeting-en {
  margin-top: 12px;
  font-size: 16px;
}
.hp-profile-sec {
  margin-top: 28px;
}
.hp-profile-sec h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}
.hp-profile-sec ul {
  list-style: none;
}
.hp-profile-sec li {
  padding: 7px 0;
  border-bottom: 1px solid var(--hp-line);
}
.hp-profile-sec li small {
  display: block;
  color: var(--hp-muted);
  font-size: 14px;
}
.hp-profile-sec li a {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.hp-profile-egot {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 15px;
  color: var(--hp-muted);
}
.hp-profile-egot a {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-weight: 700;
}
/* 비급여 */
.hp-search {
  position: relative;
  margin-bottom: 16px;
  max-width: 420px;
}
.hp-search label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hp-muted);
  display: flex;
}
.hp .hp-search input[type="search"] {
  width: 100%;
  padding-left: 44px;
}
.hp-price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 15.5px;
}
.hp-price-table caption {
  text-align: left;
  font-weight: 800;
  font-size: 19px;
  padding-bottom: 10px;
}
.hp-price-table th, .hp-price-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--hp-line);
  text-align: left;
  vertical-align: top;
}
.hp-price-table thead th {
  font-size: 14px;
  color: var(--hp-muted);
  font-weight: 700;
  border-bottom: 2px solid var(--hp-line);
  white-space: nowrap;
}
.hp-price-table tbody th {
  font-weight: 700;
}
.hp-price-table .hp-money {
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .hp-price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .hp-price-table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--hp-line);
  }
  .hp-price-table th, .hp-price-table td {
    display: flex;
    gap: 12px;
    padding: 3px 0;
    border: 0;
  }
  .hp-price-table th {
    font-size: 17px;
  }
  .hp-price-table td::before {
    content: attr(data-label);
    flex: none;
    width: 6.5em;
    color: var(--hp-muted);
    font-weight: 600;
    font-size: 14px;
  }
  .hp-price-table td.is-empty {
    display: none;
  }
  .hp-price-table tr[hidden] {
    display: none;
  }
}
/* 입력 */
.hp-form {
  margin: 0;
}
.hp-field {
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.hp-field label, .hp-field legend {
  font-weight: 700;
  font-size: 15px;
}
.hp-field small {
  color: var(--hp-muted);
  font-size: 13.5px;
}
fieldset.hp-field {
  border: 0;
  padding: 0;
}
.hp-field-row {
  display: grid;
  gap: 0 12px;
}
@media (min-width: 640px) {
  .hp-field-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .hp-field-row .is-grow {
    grid-column: span 2;
  }
}
.hp input[type="text"], .hp input:not([type]), .hp input[type="search"], .hp input[type="url"], .hp input[type="date"], .hp input[type="time"], .hp input[type="file"], .hp textarea, .hp select {
  font: inherit;
  font-size: 16px;
  color: var(--hp-ink);
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
  min-width: 0;
}
.hp input[type="text"]:focus, .hp input:not([type]):focus, .hp input[type="search"]:focus, .hp input[type="url"]:focus, .hp input[type="date"]:focus, .hp input[type="time"]:focus, .hp input[type="file"]:focus, .hp textarea:focus, .hp select:focus {
  outline: none;
  border-color: var(--hp-accent);
  box-shadow: 0 0 0 3px var(--hp-soft);
}
.hp textarea {
  resize: vertical;
  line-height: 1.6;
}
.hp-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hp-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--hp-line);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}
.hp-choice:has(input:checked) {
  border-color: var(--hp-accent);
  background: var(--hp-soft);
}
.hp-check {
  display: block;
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  cursor: pointer;
}
.hp-check input {
  position: absolute;
  left: 0;
  top: 4px;
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--hp-accent);
}
.hp-check small {
  display: block;
  color: var(--hp-muted);
  font-size: 13.5px;
}
.hp-check.is-title {
  margin: 0 0 4px;
}
.hp-check.is-title small {
  display: inline;
  margin-left: 6px;
}
.hp-check.is-confirm {
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  background: var(--hp-soft);
}
.hp-check.is-confirm input {
  left: 14px;
  top: 16px;
}
.hp-drop {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #b42318;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.hp-ask {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
  max-width: 760px;
}
.hp-ask h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 14px;
}
.hp-ask-to {
  margin-bottom: 14px;
}
.hp-ask-public {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--hp-muted);
}
.hp-ask-public .hp-ic {
  margin-top: 3px;
  color: #b26b00;
}
.hp-ask-care {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--hp-soft);
  color: var(--hp-ink);
  text-decoration: none;
}
.hp-ask-care span {
  flex: 1;
  min-width: 0;
}
.hp-ask-care strong {
  font-weight: 800;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hp-ask-care .hp-ic {
  flex: none;
  color: var(--hp-accent);
}
.hp-flash {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: var(--hp-soft);
  margin-bottom: 12px;
}
.hp-flash .hp-ic {
  color: var(--hp-accent);
  margin-top: 2px;
}
.hp-flash p {
  margin: 0 0 4px;
}
.hp-flash a {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  font-weight: 700;
}
/* 관리 */
.hp-manage-nav {
  position: sticky;
  top: 60px;
  z-index: 5;
  background: var(--hp-bg);
  padding: 8px 0;
  margin-bottom: 8px;
  overflow-x: auto;
}
.hp-manage-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
}
.hp-manage-nav a {
  display: block;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--hp-line);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--hp-ink);
}
.hp-mbox {
  padding: 22px 18px;
  margin: 0 0 16px;
  border: 1px solid var(--hp-line);
  border-radius: 18px;
  background: var(--hp-surface);
  scroll-margin-top: 120px;
}
.hp-mbox h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 10px;
}
@media (min-width: 768px) {
  .hp-mbox {
    padding: 28px;
  }
}
.hp-saved {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--hp-ok);
  font-weight: 700;
}
.hp-subbox {
  padding: 14px;
  border: 1px solid var(--hp-line);
  border-radius: 12px;
  margin-bottom: 12px;
}
.hp-subbox-head {
  margin-bottom: 8px;
}
.hp-subbox-head a {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.hp-sub {
  color: var(--hp-muted);
  font-size: 14.5px;
  margin-left: 26px;
}
.hp-rowline {
  align-items: end;
}
.hp-mtable-scroll {
  overflow-x: auto;
  margin: 0 0 12px;
  -webkit-overflow-scrolling: touch;
}
.hp-mtable {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.hp-mtable th, .hp-mtable td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--hp-line);
  text-align: left;
}
.hp-mtable thead th {
  color: var(--hp-muted);
  white-space: nowrap;
}
.hp-mtable input, .hp-mtable select {
  padding: 8px 9px !important;
  font-size: 15px !important;
  min-width: 84px;
}
.hp-mtable input[type="checkbox"] {
  min-width: 0;
  width: 20px;
  height: 20px;
}
.hp-mtable input[type="time"] {
  min-width: 108px;
}
[data-hp-rows] input[name$="[name]"] {
  min-width: 150px;
}
.hp-photo-edit {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.hp-photo-edit img {
  width: 100%;
  aspect-ratio: 1.3333333333;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}
.hp-logo-edit {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hp-logo-edit img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 1px solid var(--hp-line);
  border-radius: 10px;
}
/* 관리 화면 진료 달력 — 날짜를 눌러 쉬는 날 켜고 끄기(체크 = 휴진) */
.hp-mcal {
  display: grid;
  gap: 18px;
  margin: 14px 0 18px;
}
@media (min-width: 900px) {
  .hp-mcal {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hp-mcal-month {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.hp-mcal-month legend {
  font-weight: 800;
  font-size: 16px;
  padding: 0 0 8px;
}
.hp-mcal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.hp-mcal-w {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hp-muted);
  padding-bottom: 2px;
}
.hp-mcal-day {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--hp-tint);
  border: 1px solid transparent;
}
.hp-mcal-day input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.hp-mcal-day.is-red span {
  color: var(--hp-off-ink);
}
.hp-mcal-day:has(input:checked) {
  background: var(--hp-off-bg);
  border-color: var(--hp-off-ink);
}
.hp-mcal-day:has(input:checked) span {
  color: var(--hp-off-ink);
}
.hp-mcal-day:has(input:focus-visible) {
  outline: 3px solid var(--hp-accent);
  outline-offset: 1px;
}
.hp-mcal-day.is-today {
  box-shadow: inset 0 0 0 2px var(--hp-accent);
}
.hp-mcal-day.is-past {
  cursor: default;
  opacity: 0.4;
  background: transparent;
}
.hp-mcal-day.is-past.is-off span {
  color: var(--hp-off-ink);
}
.hp-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0f766e;
}
.hp-swatch[data-theme="navy"] {
  background: #1e3a8a;
}
.hp-swatch[data-theme="warm"] {
  background: #8a4a1c;
}
.hp-staff {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  .hp-staff {
    grid-template-columns: 260px 1fr;
  }
}
.hp-qr {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--hp-line);
}
.hp-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hp-qr.is-wait {
  display: grid;
  place-items: center;
  border-style: dashed;
  background: transparent;
  color: var(--hp-muted);
}
.hp-qr.is-wait p {
  margin: 0;
}
.hp-staff-list ul {
  list-style: none;
}
.hp-staff-list ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hp-line);
}
.hp-staff-list ul li small {
  color: var(--hp-muted);
}
.hp-legal-dl div {
  display: flex;
  gap: 12px;
  padding: 6px 0;
}
.hp-legal-dl dt {
  width: 7em;
  flex: none;
  color: var(--hp-muted);
  font-weight: 600;
}
.hp-legal-dl dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.hp-legal-dl code {
  font-size: 14px;
}
.hp-legal section {
  margin-top: 26px;
  max-width: 760px;
}
.hp-legal h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}
.hp-legal ul {
  padding-left: 1.2em;
}
.hp-em {
  font-weight: 800;
}
/* 맨 아래 */
.hp-foot {
  border-top: 1px solid var(--hp-line);
  background: var(--hp-tint);
  padding: 36px 0 110px;
  font-size: 14.5px;
  color: var(--hp-muted);
}
.hp-foot a {
  color: var(--hp-muted);
}
@media (min-width: 1000px) {
  .hp-foot {
    padding-bottom: 48px;
  }
}
.hp-foot-name {
  font-weight: 800;
  font-size: 17px;
  color: var(--hp-ink);
}
.hp-foot-info {
  margin: 8px 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}
.hp-foot-info div {
  display: flex;
  gap: 6px;
}
.hp-foot-info dt {
  font-weight: 600;
}
.hp-foot-info dd {
  margin: 0;
}
.hp-foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.hp-foot-links a {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-weight: 600;
}
.hp-foot .hp-foot-privacy {
  color: var(--hp-ink);
  font-weight: 800;
}
.hp-foot-egot {
  margin-top: 14px;
  font-size: 13.5px;
}
/* 폰 아래 고정 단추 */
.hp-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--hp-bg) 94%, transparent);
  border-top: 1px solid var(--hp-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hp-dock a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
  color: var(--hp-ink) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 15.5px;
}
.hp-dock a:first-child {
  background: var(--hp-accent);
  border-color: var(--hp-accent);
  color: var(--hp-on-accent) !important;
}
@media (min-width: 1000px) {
  .hp-dock {
    display: none;
  }
}
/* ───────── 블록(10-28 블록 조립형) ───────── */
/* 겉모습 — 제목 글꼴 · 모서리 · 위 막대(Design이 .hp[data-site]에 변수를 넣음) */
.hp :is(h1, h2, h3), .hp .hp-brand-name {
  font-family: var(--hp-head-font, inherit);
}
.hp[data-font="round"] :is(h1, h2, h3), .hp[data-font="round"] .hp-brand-name {
  font-weight: 400;
}
.hp[data-font="serif"] :is(h1, h2) {
  letter-spacing: -0.02em;
}
.hp-btn {
  border-radius: var(--hp-btn-radius, 12px);
}
.hp-hero-photo img, .hp-gallery a, .hp-hero-card {
  border-radius: var(--hp-radius);
}
.hp[data-head="brand"] .hp-head {
  background: var(--hp-head-bg, var(--hp-accent));
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hp[data-head="brand"] .hp-brand, .hp[data-head="brand"] .hp-menu-btn {
  color: var(--hp-on-head, var(--hp-on-accent)) !important;
}
.hp[data-head="brand"] .hp-brand-mark {
  background: var(--hp-on-head, var(--hp-on-accent));
  color: var(--hp-head-bg, var(--hp-accent));
}
.hp[data-head="brand"] .hp-nav a {
  color: var(--hp-on-head, var(--hp-on-accent));
  opacity: 0.86;
}
.hp[data-head="brand"] .hp-nav a:hover, .hp[data-head="brand"] .hp-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--hp-on-head, var(--hp-on-accent));
  background: color-mix(in srgb, var(--hp-on-head, var(--hp-on-accent)) 16%, transparent);
}
.hp[data-head="brand"] .hp-head-call {
  background: color-mix(in srgb, var(--hp-on-head, var(--hp-on-accent)) 16%, transparent);
  color: var(--hp-on-head, var(--hp-on-accent)) !important;
}
.hp[data-head="brand"] .hp-menu-btn:hover {
  background: color-mix(in srgb, var(--hp-on-head, var(--hp-on-accent)) 16%, transparent);
}
/* 메뉴가 7개 넘으면: 위 막대를 넓히고, 1280px보다 좁으면 「메뉴」 단추로(치과 이름이 잘리지 않게) */
.hp[data-menu-long] .hp-head-row {
  max-width: 1280px;
}
@media (min-width: 1000px) and (max-width: 1279px) {
  .hp[data-menu-long] .hp-nav {
    display: none;
  }
  .hp[data-menu-long] .hp-menu-btn {
    display: inline-grid !important;
  }
  .hp[data-menu-long] .hp-drawer:not([hidden]) {
    display: block !important;
  }
}
/* 대표 진료 묶음 메뉴 — 마우스를 올리거나 키보드로 들어가면 펼침 */
.hp-nav-group {
  position: relative;
}
.hp-nav-group > a {
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
}
.hp-nav .hp-nav-sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 210px;
  padding: 6px;
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  border-radius: 12px;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.3);
}
.hp-nav-group:hover .hp-nav-sub, .hp-nav-group:focus-within .hp-nav-sub {
  display: flex;
}
.hp-nav .hp-nav-sub a, .hp[data-head="brand"] .hp-nav .hp-nav-sub a {
  color: var(--hp-ink);
  opacity: 1;
  background: none;
}
.hp-nav .hp-nav-sub a:hover, .hp[data-head="brand"] .hp-nav .hp-nav-sub a:hover {
  background: var(--hp-tint);
  color: var(--hp-accent);
}
.hp-nav .hp-nav-sub a[aria-current="page"], .hp[data-head="brand"] .hp-nav .hp-nav-sub a[aria-current="page"] {
  background: var(--hp-soft);
  color: var(--hp-accent);
}
.hp-nav-group > a[aria-current] {
  color: var(--hp-accent);
  background: var(--hp-soft);
}
.hp[data-head="brand"] .hp-nav-group > a[aria-current] {
  color: var(--hp-on-head, var(--hp-on-accent));
  opacity: 1;
  background: color-mix(in srgb, var(--hp-on-head, var(--hp-on-accent)) 16%, transparent);
}
.hp-drawer-label {
  display: block;
  padding: 14px 4px 4px;
  font-weight: 800;
  font-size: 14px;
  color: var(--hp-muted);
}
.hp-drawer .hp-drawer-group ul {
  padding: 0 0 0 12px;
}
.hp-drawer .hp-drawer-group a {
  font-size: 16px;
}
/* 첫 화면 큰 칸 — 모양 다섯 */
.hp-hero.is-cover {
  position: relative;
  isolation: isolate;
  padding: 0;
  background: #0b0f12;
}
.hp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hp-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.66) 62%);
}
@media (min-width: 768px) {
  .hp-hero-bg::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.28) 62%, rgba(0, 0, 0, 0.08));
  }
}
.hp-hero.is-cover .hp-hero-grid {
  min-height: min(80vh, 640px);
  align-content: end;
  padding-top: 96px;
  padding-bottom: 40px;
}
@media (min-width: 768px) {
  .hp-hero.is-cover .hp-hero-grid {
    align-content: center;
    padding-top: 72px;
    padding-bottom: 72px;
  }
}
.hp-hero.is-cover :is(h1, .hp-hero-lead, .hp-eyebrow, .hp-hero-sign, .hp-hero-pick p) {
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}
.hp-hero.is-cover .hp-quick a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}
.hp-hero.is-center {
  text-align: center;
}
.hp-hero.is-center .hp-hero-text {
  max-width: 780px;
  margin: 0 auto;
}
.hp-hero.is-center h1 {
  font-size: clamp(32px, 8vw, 58px);
}
.hp-hero.is-center .hp-hero-lead {
  margin-left: auto;
  margin-right: auto;
}
.hp-hero.is-center :is(.hp-cta, .hp-quick, .hp-hero-pick ul) {
  justify-content: center;
}
.hp-hero.is-doctor .hp-hero-photo img {
  aspect-ratio: 0.8;
  object-position: 50% 15%;
  max-height: 640px;
}
@media (min-width: 900px) {
  .hp-hero.is-doctor .hp-hero-grid.has-photo {
    grid-template-columns: 1.25fr 0.75fr;
  }
}
.hp-hero-sign {
  font-weight: 700;
  margin: 14px 0 0;
}
.hp-hero-pick {
  margin-top: 24px;
}
.hp-hero-pick p {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 8px;
}
.hp-hero-pick ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hp-hero-pick a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  color: var(--hp-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.hp-hero-pick a:hover {
  border-color: var(--hp-accent);
  color: var(--hp-accent);
}
/* 글 · 사진 + 글 */
.hp-prose {
  max-width: 44em;
  font-size: 17px;
}
.hp-prose p {
  margin: 0 0 1em;
}
.hp-prose.is-lead {
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.65;
}
.hp-media {
  display: grid;
  gap: 22px;
  align-items: center;
}
.hp-media-img {
  margin: 0;
}
.hp-media-img img {
  width: 100%;
  aspect-ratio: 1.3333333333;
  object-fit: cover;
  border-radius: var(--hp-radius);
}
.hp-media-img .hp-art {
  border-radius: var(--hp-radius);
}
.hp-media.is-wide .hp-media-img img {
  aspect-ratio: 2;
}
.hp-media-body h2 {
  font-size: clamp(22px, 4.5vw, 30px);
  font-weight: 800;
  margin-bottom: 12px;
}
.hp-media-body p {
  font-size: 17px;
}
@media (min-width: 860px) {
  .hp-media.is-left, .hp-media.is-right {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .hp-media.is-right .hp-media-img {
    order: 2;
  }
  .hp-media.no-img {
    grid-template-columns: 1fr;
  }
}
/* 항목 묶음(카드·사진 카드) */
.hp-feats {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.hp-feats li {
  padding: 20px;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
}
.hp-feats h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.hp-feats p {
  color: var(--hp-muted);
  margin: 0;
}
.hp-feats.is-photos li {
  padding: 0;
  overflow: hidden;
}
.hp-feats.is-photos figure {
  margin: 0;
}
.hp-feats.is-photos figure img, .hp-feats.is-photos figure .hp-art {
  width: 100%;
  aspect-ratio: 1.3333333333;
  object-fit: cover;
}
.hp-feats.is-photos h3 {
  padding: 16px 18px 0;
}
.hp-feats.is-photos p {
  padding: 0 18px 18px;
}
/* 사진 여러 장 — 옆으로 넘기기 · 작은 로고 줄 */
.hp-gallery .hp-art {
  border-radius: var(--hp-radius);
}
.hp-gallery.is-strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.hp-gallery.is-strip > li {
  flex: 0 0 80%;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .hp-gallery.is-strip > li {
    flex-basis: 38%;
  }
}
.hp-gallery.is-logos {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}
@media (min-width: 768px) {
  .hp-gallery.is-logos {
    grid-template-columns: repeat(6, 1fr);
  }
}
.hp-gallery.is-logos a {
  border-radius: 0;
}
.hp-gallery.is-logos img {
  aspect-ratio: auto;
  width: auto;
  max-width: 100%;
  max-height: 56px;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
}
.hp-gallery.is-logos figcaption {
  text-align: center;
  font-size: 13px;
}
.hp-bullets {
  padding-left: 1.3em;
}
.hp-bullets li {
  padding: 4px 0;
}
/* 치료 사례 — 전·후 나란히, 분류 탭 */
.hp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}
.hp-tabs button {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
  color: var(--hp-ink);
  cursor: pointer;
}
.hp-tabs button[aria-pressed="true"] {
  background: var(--hp-accent);
  border-color: var(--hp-accent);
  color: var(--hp-on-accent);
}
.hp-cases {
  list-style: none;
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .hp-sec .hp-cases:not(.is-stack) {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hp-case {
  padding: 16px;
  border-radius: var(--hp-radius);
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
}
.hp-case h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}
.hp-case p {
  margin: 10px 0 0;
}
.hp-case-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hp-cases.is-stack .hp-case-pair {
  grid-template-columns: 1fr;
}
.hp-case-pair figure {
  margin: 0;
  position: relative;
}
.hp-case-pair img, .hp-case-pair .hp-art {
  width: 100%;
  aspect-ratio: 1.3333333333;
  object-fit: cover;
  border-radius: 10px;
}
.hp-case-pair figcaption {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.hp-case-risk {
  font-size: 14.5px;
  color: var(--hp-muted);
}
.hp-case-risk strong {
  color: var(--hp-ink);
  margin-right: 4px;
}
.hp-facts.is-small {
  margin: 10px 0 0;
  font-size: 14.5px;
}
.hp-facts.is-small div {
  padding: 6px 10px;
}
/* 숫자 띠 */
.hp-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .hp-stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
.hp-stats li {
  padding: 20px 14px;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  text-align: center;
}
.hp-stats strong {
  display: block;
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 800;
  color: var(--hp-accent);
  line-height: 1.2;
}
.hp-stats span {
  display: block;
  margin-top: 4px;
  color: var(--hp-muted);
  font-size: 15px;
}
/* 영상 — 누르기 전에는 그림만 */
.hp-video-box {
  margin: 0;
}
.hp-video-box figcaption {
  font-size: 14px;
  color: var(--hp-muted);
  margin-top: 8px;
}
.hp-video-box iframe {
  width: 100%;
  aspect-ratio: 1.7777777778;
  border: 0;
  border-radius: var(--hp-radius);
  display: block;
}
.hp-video {
  position: relative;
  display: block;
  border-radius: var(--hp-radius);
  overflow: hidden;
  background: #000;
}
.hp-video img {
  width: 100%;
  aspect-ratio: 1.7777777778;
  object-fit: cover;
  opacity: 0.86;
}
.hp-video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}
.hp-video-play .hp-ic {
  width: 68px;
  height: 68px;
  padding: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
}
/* 표 — 폰에서는 줄마다 한 칸 */
.hp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hp-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.hp-tbl th, .hp-tbl td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--hp-line);
  text-align: left;
  vertical-align: top;
}
.hp-tbl thead th {
  font-size: 14px;
  color: var(--hp-muted);
  font-weight: 700;
  border-bottom-width: 2px;
}
.hp-tbl tbody th {
  font-weight: 700;
}
@media (max-width: 719px) {
  .hp-tbl thead {
    display: none;
  }
  .hp-tbl tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--hp-line);
  }
  .hp-tbl th, .hp-tbl td {
    display: block;
    border: 0;
    padding: 3px 0;
  }
  .hp-tbl td[data-label]::before {
    content: attr(data-label) " · ";
    color: var(--hp-muted);
    font-size: 13.5px;
    font-weight: 600;
  }
}
/* 연락 띠 */
.hp-cta-block.is-band {
  background: var(--hp-accent);
  color: var(--hp-on-accent);
  padding: 44px 0;
}
.hp-cta-block.is-plain {
  padding: 0;
}
.hp-main > .hp-cta-block.is-plain {
  padding: 44px 0;
}
.hp-cta-block h2 {
  font-size: clamp(22px, 4.5vw, 30px);
  font-weight: 800;
  margin-bottom: 8px;
}
.hp-cta-block > .hp-wrap > p, .hp-cta-block > p {
  max-width: 40em;
}
.hp-cta-block.is-band .hp-btn {
  background: var(--hp-on-accent);
  border-color: transparent;
  color: var(--hp-accent) !important;
}
.hp-article .hp-cta-block {
  margin-top: 36px;
}
.hp-article .hp-cta-block.is-band {
  padding: 24px;
  border-radius: var(--hp-radius);
}
.hp-article .hp-cta-block h2 {
  font-size: 21px;
}
/* 대표 원장님 크게 */
.hp-doctor-feature {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}
.hp-doctor-feature figure {
  margin: 0;
}
.hp-doctor-feature figure img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 0.8;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: var(--hp-radius);
}
@media (min-width: 768px) {
  .hp-doctor-feature {
    grid-template-columns: 300px 1fr;
    gap: 36px;
  }
}
.hp-doctor-greeting {
  font-size: 17px;
  border-left: 4px solid var(--hp-accent);
  padding-left: 14px;
  margin-top: 12px;
}
/* 진료 목록 — 대표 진료 표시 · 사진 카드 · 글 목록 */
.hp-card-tag {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--hp-on-accent);
  background: var(--hp-accent);
  padding: 2px 9px;
  border-radius: 999px;
}
.hp-cards > li.is-feature .hp-card {
  border-color: var(--hp-accent);
  box-shadow: 0 0 0 1px var(--hp-accent) inset;
}
.hp-card-art img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  border-radius: 10px;
}
.hp-cards.is-photo .hp-card.has-art {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.hp-cards.is-photo .hp-card-art {
  width: 100%;
}
.hp-cards.is-photo .hp-card-art :is(img, .hp-art) {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  border-radius: 0;
}
.hp-cards.is-photo .hp-card-body {
  padding: 14px 16px 16px;
}
.hp-tlist {
  list-style: none;
  border-top: 1px solid var(--hp-line);
}
.hp-tlist a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--hp-line);
  text-decoration: none;
  color: var(--hp-ink);
}
.hp-tlist strong {
  font-size: 17px;
}
.hp-tlist span {
  color: var(--hp-muted);
  font-size: 15px;
  flex: 1 1 260px;
  min-width: 0;
}
.hp-tlist .hp-ic {
  color: var(--hp-muted);
  margin-left: auto;
}
.hp-tlist a:hover strong {
  color: var(--hp-accent);
}
/* 블록 화면 사이 간격(띠를 쌓는 화면의 화면 제목) */
.hp-sec.hp-blk-page_head {
  padding-bottom: 0;
}
.hp-sec.hp-blk-page_head .hp-page-head {
  margin-bottom: 0;
}
/* ───────── 홈페이지 만들기(우리만) ───────── */
.hp-build-head {
  background: var(--hp-tint);
  border-bottom: 1px solid var(--hp-line);
  padding-top: 18px;
}
.hp-build-head h1 {
  font-size: 22px;
  font-weight: 800;
}
.hp-build-head h1 small {
  font-size: 15px;
  color: var(--hp-muted);
  font-weight: 600;
  margin-left: 6px;
}
.hp-build-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin-top: 12px;
}
.hp-build-tabs a {
  padding: 10px 14px;
  border-radius: 10px 10px 0 0;
  text-decoration: none;
  font-weight: 700;
  color: var(--hp-muted);
}
.hp-build-tabs a[aria-current="page"] {
  background: var(--hp-bg);
  color: var(--hp-ink);
}
.hp-build-tabs .hp-build-out {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}
.hp-build-tabs .hp-build-out:first-of-type {
  margin-left: auto;
}
.hp-build-body {
  padding-top: 20px;
  padding-bottom: 80px;
}
.hp-build-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 960px) {
  .hp-build-grid {
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
  }
  .hp-build-pages {
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 96px);
    overflow: auto;
  }
}
@media (max-width: 959px) {
  .hp-build-pages {
    max-height: 42vh;
    overflow: auto;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    padding: 8px;
  }
}
.hp-build-pages {
  font-size: 15px;
}
.hp-build-pages ul {
  list-style: none;
}
.hp-build-pages a {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--hp-ink);
}
.hp-build-pages a[aria-current="page"] {
  background: var(--hp-soft);
  color: var(--hp-accent);
  font-weight: 700;
}
.hp-build-pages a.is-off span {
  color: var(--hp-muted);
}
.hp-build-pages em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--hp-soft);
  color: var(--hp-accent);
}
.hp-build-pages em.is-off {
  background: var(--hp-off-bg);
  color: var(--hp-off-ink);
}
.hp-build-group {
  font-size: 13px;
  font-weight: 800;
  color: var(--hp-muted);
  margin: 14px 0 4px;
}
.hp-build-new {
  margin-top: 16px;
  padding: 12px;
  border: 1px dashed var(--hp-line);
  border-radius: 12px;
}
.hp-build-new summary {
  cursor: pointer;
  font-weight: 700;
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.hp-build-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.hp-build-bar h2 {
  font-size: 21px;
  font-weight: 800;
}
.hp-build-bar h2 small {
  font-size: 14px;
  color: var(--hp-muted);
  font-weight: 600;
  margin-left: 4px;
}
.hp-build-meta {
  border: 1px solid var(--hp-line);
  border-radius: 14px;
  padding: 14px 16px 4px;
  margin: 0 0 16px;
}
.hp-build-meta legend {
  font-weight: 800;
  padding: 0 6px;
}
.hp-bf {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px;
  min-width: 0;
  border: 0;
  padding: 0;
}
.hp-bf > span, .hp-bf > label, .hp-bf > legend {
  font-weight: 700;
  font-size: 14px;
}
.hp-bf small {
  color: var(--hp-muted);
  font-size: 13px;
}
.hp-bf.is-short input {
  max-width: 140px;
}
.hp .hp-bf input[type="number"] {
  font: inherit;
  font-size: 16px;
  padding: 9px 12px;
  border: 1px solid var(--hp-line);
  border-radius: 10px;
  background: var(--hp-surface);
  color: var(--hp-ink);
}
.hp-bf-check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  font-size: 15px;
  cursor: pointer;
}
.hp-bf-help {
  color: var(--hp-muted);
  font-size: 14px;
}
.hp-bf-img-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hp-bf-img-row input {
  flex: 1;
}
.hp-bf-thumb {
  width: 72px;
  height: 54px;
  flex: none;
  border-radius: 8px;
  background: var(--hp-tint);
  border: 1px solid var(--hp-line);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hp-bf-thumb :is(img, svg) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-bf-items {
  border: 1px solid var(--hp-line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
  min-width: 0;
}
.hp-bf-items legend {
  font-weight: 700;
  font-size: 14px;
  padding: 0 4px;
}
.hp-bf-items ol {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
.hp-bf-item {
  padding: 10px;
  border-radius: 10px;
  background: var(--hp-tint);
}
.hp-bf-item .hp-bl-tools {
  display: flex;
  justify-content: flex-end;
}
.hp-bl-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.hp-bl {
  border: 1px solid var(--hp-line);
  border-radius: 14px;
  background: var(--hp-surface);
  min-width: 0;
}
.hp-bl.is-data {
  border-style: dashed;
}
.hp-bl.is-folded .hp-bl-fields {
  display: none;
}
.hp-bl-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
}
.hp .hp-bl-bar select {
  width: auto;
  max-width: 100%;
  padding: 6px 8px;
  font-size: 14px;
}
.hp-bl-name {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: baseline;
  text-align: left;
  background: none;
  border: 0;
  padding: 6px 2px;
  font: inherit;
  color: var(--hp-ink);
  cursor: pointer;
}
.hp-bl-name strong {
  font-weight: 800;
  white-space: nowrap;
}
.hp-bl-sum {
  color: var(--hp-muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.hp-bl-tools {
  display: inline-flex;
  gap: 4px;
}
.hp-bl-tools button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--hp-line);
  border-radius: 8px;
  background: var(--hp-surface);
  color: var(--hp-ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
}
.hp-bl-tools button:hover {
  border-color: var(--hp-accent);
}
.hp-bl-fields {
  padding: 14px;
  border-top: 1px solid var(--hp-line);
}
.hp-bl.is-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}
.hp-bl.is-row input[type="text"] {
  flex: 1 1 200px;
  width: auto;
}
.hp-bl.is-row .hp-bf-check {
  margin: 0;
  flex: 1 1 180px;
}
.hp-bl-add {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 16px 0;
  padding: 14px;
  border: 1px dashed var(--hp-line);
  border-radius: 14px;
}
.hp-bl-add .hp-bf {
  margin: 0;
  flex: 1 1 240px;
}
.hp-build-save {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 14px 0;
  background: linear-gradient(transparent, var(--hp-bg) 35%);
}
.hp-mbox .hp-build-save {
  background: linear-gradient(transparent, var(--hp-surface) 35%);
}
.hp-build-danger {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hp-line);
}
.hp-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.hp-preset {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--hp-line);
  border-radius: 999px;
  background: var(--hp-surface);
  color: var(--hp-ink);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.hp-preset:hover {
  border-color: var(--hp-accent);
}
.hp-color-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hp-color-row input[type="color"] {
  width: 52px;
  height: 46px;
  padding: 2px;
  border: 1px solid var(--hp-line);
  border-radius: 10px;
  background: var(--hp-surface);
  flex: none;
}
.hp-media-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.hp-media-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hp-media-list img {
  width: 100%;
  aspect-ratio: 1.3333333333;
  object-fit: cover;
  border-radius: 10px;
}
.hp .hp-json {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
}
.hp-error {
  color: var(--hp-off-ink);
  font-weight: 700;
}
.hp-picker {
  width: min(920px, 94vw);
  max-height: 86vh;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  padding: 0;
  background: var(--hp-bg);
  color: var(--hp-ink);
}
.hp-picker::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.hp-picker ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  padding: 14px;
  max-height: calc(86vh - 130px);
  overflow: auto;
}
.hp-picker button[data-src] {
  width: 100%;
  padding: 6px;
  border: 1px solid var(--hp-line);
  border-radius: 10px;
  background: var(--hp-surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: inherit;
  font-size: 12.5px;
  color: var(--hp-muted);
}
.hp-picker button[data-src]:hover {
  border-color: var(--hp-accent);
}
.hp-picker button[data-src] :is(img, svg) {
  width: 100%;
  aspect-ratio: 1.3333333333;
  object-fit: cover;
  border-radius: 6px;
}
.hp-picker .hp-bf-help {
  padding: 0 14px 14px;
}
.hp-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hp-line);
}
@media (prefers-reduced-motion: reduce) {
  .hp * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* 만들기 — 공개 상태 · 미리보기·공개 칸 */
.hp-state {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--hp-line);
  color: var(--hp-muted);
  background: var(--hp-bg);
}
.hp-state.is-live {
  color: var(--hp-ok);
  border-color: currentColor;
}
.hp-publish-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.hp-publish-state .hp-state {
  margin-left: 0;
}
.hp-share {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
@media (min-width: 760px) {
  .hp-share {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}
.hp-share .hp-h3 {
  margin-top: 0;
}
/* 주소는 고정폭 글꼴 — 프리텐다드는 숫자 사이 x를 ×로 바꿔 보여 줌 */
.hp-share-url {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--hp-line);
  border-radius: 10px;
  background: var(--hp-tint);
  color: var(--hp-ink);
}
.hp-share form, .hp-next form {
  display: contents;
}
.hp-share > div:last-child > form {
  display: block;
  margin-top: 12px;
}
.hp-publish-go {
  margin-top: 28px;
  padding-top: 4px;
  border-top: 1px solid var(--hp-line);
}
.hp-ready {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
}
.hp-ready li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-weight: 600;
}
.hp-ready li.is-done {
  color: var(--hp-muted);
  font-weight: 500;
}
.hp-ready li.is-done svg {
  color: var(--hp-ok);
}
.hp-ready a {
  font-weight: 700;
  color: var(--hp-accent);
}
/* 다른 치과와 겹치는 문장(만들기 「미리보기·공개」) — 화면마다 접어 둠 */
.hp-overlap {
  border: 1px solid var(--hp-line);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
}
.hp-overlap summary {
  cursor: pointer;
  font-weight: 700;
}
.hp-overlap summary em {
  font-style: normal;
  font-weight: 600;
  color: var(--hp-muted);
  margin-left: 4px;
}
.hp-overlap ul {
  margin: 10px 0 2px;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}
.hp-overlap q {
  display: block;
}
.hp-overlap span {
  display: block;
  font-size: 13px;
  color: var(--hp-muted);
  margin-top: 2px;
}
.hp-error code {
  font-size: 13px;
  word-break: break-all;
}
.hp-ready-dot {
  width: 16px;
  height: 16px;
  border: 2px solid var(--hp-muted);
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.hp-bl-name.is-static {
  cursor: default;
}
.hp-bl-flag {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--hp-off-bg);
  color: var(--hp-off-ink);
}
.hp-person-grid {
  display: grid;
  gap: 0 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.hp-chips.is-static li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hp-tint);
  border: 1px solid var(--hp-line);
  font-size: 14.5px;
  font-weight: 600;
}
@media print {
  .hp-head, .hp-dock, .hp-banner, .hp-preview-bar {
    display: none;
  }
}
/* ───────── 화면 바깥 · 치과 색 첫 화면 · 책 표지 선반 · 학술형 (10-29 유펜) ───────── */
/* 브라우저 기본 여백(8px) 때문에 폰에서 위·아래·양옆에 흰 테두리가 보였다 — 홈페이지가 화면 끝까지. 당겨 늘인 바깥도 바탕색 */
html, body {
  margin: 0;
  padding: 0;
}
html:has(.hp) {
  background: #ffffff;
}
html:has(.hp[data-theme="warm"]) {
  background: #fffdfa;
}
@media (prefers-color-scheme: dark) {
  /* 「치과 색 바탕」 위 막대 — 밝은 강조색을 깔면 흐린 회색 막대가 됐다. 진한 치과 색 그대로(색을 고른 치과는 Design이 계산) */
  html:has(.hp) {
    background: #0b1211;
  }
  html:has(.hp[data-theme="navy"]) {
    background: #0a0e17;
  }
  html:has(.hp[data-theme="warm"]) {
    background: #110d09;
  }
  .hp {
    --hp-head-bg: #134e4a;
    --hp-on-head: #ffffff;
  }
  .hp[data-theme="navy"] {
    --hp-head-bg: #1e3a8a;
  }
  .hp[data-theme="warm"] {
    --hp-head-bg: #6f3a14;
  }
}
/* 첫 화면 「치과 색으로 꽉 채우기」 */
.hp-hero.is-tone-brand {
  background: var(--hp-head-bg, var(--hp-accent));
}
.hp-hero.is-tone-brand :is(h1, .hp-hero-sign, .hp-hero-pick p) {
  color: #fff;
}
.hp-hero.is-tone-brand .hp-eyebrow {
  color: rgba(255, 255, 255, 0.8);
}
.hp-hero.is-tone-brand .hp-hero-lead {
  color: rgba(255, 255, 255, 0.86);
}
.hp-hero.is-tone-brand .hp-now {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff !important;
}
.hp-hero.is-tone-brand .hp-quick a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.hp-hero.is-tone-brand .hp-quick a:hover {
  color: #fff;
}
.hp-hero.is-tone-brand .hp-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff !important;
}
.hp-hero.is-tone-brand .hp-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.hp-hero.is-tone-brand .hp-btn.is-primary {
  background: #fff;
  border-color: #fff;
  color: var(--hp-head-bg, var(--hp-accent)) !important;
}
.hp-hero.is-tone-brand .hp-btn.is-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}
.hp-hero.is-tone-brand .hp-hero-pick a {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}
.hp-hero.is-tone-brand :focus-visible {
  outline-color: #fff;
}
/* 첫 화면 「글 + 책 표지·상장 나란히」 — 표지가 선반 위에 선 모양(높이가 달라도 아래를 맞춤) */
@media (min-width: 900px) {
  .hp-hero-grid.has-shelf {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
  }
}
/* 책 선반 첫 화면은 제목이 길어(교과서·자격) 글자를 줄이고 줄 길이를 고르게 — 뜻이 끊기는 곳에서 줄이 나뉘지 않게 */
.hp-hero.is-shelf h1 {
  font-size: clamp(26px, 6.4vw, 36px);
  line-height: 1.32;
  text-wrap: balance;
}
.hp-shelf {
  margin: 0;
  width: 100%;
  max-width: 440px;
}
@media (min-width: 900px) {
  .hp-shelf {
    justify-self: end;
  }
}
.hp-shelf ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px 16px;
  align-items: flex-end;
}
.hp-shelf li {
  position: relative;
  padding-bottom: 10px;
  flex: 0 0 calc((100% - 32px) / 3);
}
/* 넷·일곱·여덟 개는 폰에서도 한 줄에 넷(일곱 = 4 + 3 — 묶음이 줄을 넘지 않게) */
.hp-shelf:is([data-n="4"], [data-n="7"], [data-n="8"]) {
  max-width: 520px;
}
.hp-shelf:is([data-n="4"], [data-n="7"], [data-n="8"]) ul {
  column-gap: 12px;
}
.hp-shelf:is([data-n="4"], [data-n="7"], [data-n="8"]) li {
  flex-basis: calc((100% - 36px) / 4);
}
.hp-shelf:is([data-n="4"], [data-n="7"], [data-n="8"]) li::after {
  left: -6px;
  right: -6px;
}
/* 두 장(증서 둘 등)은 반씩 크게 — 셋씩 놓는 크기면 1/3 폭이라 글자가 안 읽힘(10-30 유펜 시안 첫 화면) */
.hp-shelf[data-n="2"] {
  max-width: 520px;
}
.hp-shelf[data-n="2"] ul {
  column-gap: 24px;
}
.hp-shelf[data-n="2"] li {
  flex-basis: calc((100% - 24px) / 2);
}
.hp-shelf li::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 0;
  height: 3px;
  background: var(--hp-line);
}
.hp-shelf img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22), 0 2px 4px rgba(0, 0, 0, 0.18);
}
.hp-shelf figcaption {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hp-muted);
}
.hp-hero.is-tone-brand .hp-shelf li::after {
  background: rgba(255, 255, 255, 0.22);
}
.hp-hero.is-tone-brand .hp-shelf img {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.hp-hero.is-tone-brand .hp-shelf figcaption {
  color: rgba(255, 255, 255, 0.76);
}
/* 화면 결 「단정한 학술형」 — 칸마다 상자 대신 가는 선, 위 막대 아래·칸 제목 위에 보조색 줄, 숫자도 제목 글꼴 */
.hp[data-look="classic"] .hp-head {
  border-bottom: 3px solid var(--hp-accent2, var(--hp-accent));
}
.hp[data-look="classic"] .hp-sec-head {
  align-items: flex-end;
}
.hp[data-look="classic"] .hp-sec-head h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 14px;
  background: var(--hp-accent2, var(--hp-accent));
}
.hp[data-look="classic"] .hp-stats {
  gap: 0;
}
.hp[data-look="classic"] .hp-stats li {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 14px 10px;
}
.hp[data-look="classic"] .hp-stats li:nth-child(2n) {
  border-left: 1px solid var(--hp-line);
}
.hp[data-look="classic"] .hp-stats li:nth-child(n + 3) {
  border-top: 1px solid var(--hp-line);
}
.hp[data-look="classic"] .hp-stats strong {
  font-family: var(--hp-head-font, inherit);
  font-weight: 700;
  color: var(--hp-accent);
}
.hp[data-look="classic"] .hp-foot {
  border-top: 3px solid var(--hp-accent2, var(--hp-accent));
}
@media (min-width: 768px) {
  .hp[data-look="classic"] .hp-stats li:nth-child(n) {
    border-top: 0;
    border-left: 0;
  }
  .hp[data-look="classic"] .hp-stats li:nth-child(n) + li {
    border-left: 1px solid var(--hp-line);
  }
}
/* ───────── 폰 동선(10-29) — 사진 크게 보기 · 누를 자리 · 첫 화면 책장 · 비급여 빈 줄 ───────── */
/* 사진 크게 보기 — 화면 가득 · 옆으로 넘기기는 스크롤 맞춤(폰 손가락 그대로) */
html.hp-noscroll, html.hp-noscroll body {
  overflow: hidden;
}
.hp-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
  overflow: hidden;
}
.hp-viewer::backdrop {
  background: #000;
}
.hp-viewer-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.hp-viewer-track::-webkit-scrollbar {
  display: none;
}
.hp-viewer-slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: calc(64px + env(safe-area-inset-top)) 12px calc(24px + env(safe-area-inset-bottom));
}
.hp-viewer-slide img {
  max-width: 100%;
  max-height: calc(100% - 52px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}
.hp-viewer-slide figcaption {
  max-width: 40em;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.hp-viewer-count {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  left: 16px;
  margin: 0;
  line-height: 48px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
.hp-viewer-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}
.hp-viewer-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}
.hp-viewer-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.hp-viewer-btn[disabled] {
  opacity: 0.3;
  cursor: default;
}
.hp-viewer-btn.is-close {
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
}
.hp-viewer-btn.is-prev, .hp-viewer-btn.is-next {
  top: 50%;
  transform: translateY(-50%);
}
.hp-viewer-btn.is-prev {
  left: 16px;
}
.hp-viewer-btn.is-next {
  right: 16px;
}
/* 손가락 화면은 넘기기로 — 화살표 단추는 마우스 화면에만 */
@media (hover: none) {
  .hp-viewer-btn.is-prev, .hp-viewer-btn.is-next {
    display: none;
  }
}
.hp-gallery li[hidden] {
  display: none;
}
.hp-case-pair a, .hp-shelf a {
  display: block;
}
.hp-shelf a {
  border-radius: 2px;
}
.hp-shelf a:focus-visible {
  outline-offset: 3px;
}
/* 작은 링크의 누를 자리 — 손가락 크기(위아래 12px씩)로 넓히되 줄 간격·글자는 그대로 */
.hp :is(.hp-more, .hp-quick a, .hp-crumb a, .hp-banner a, .hp-answer-meta a, .hp-foot a) {
  padding-block: 12px;
  margin-block: -12px;
}
/* 폰 첫 화면(책장) — 제목 바로 아래 책장을 놓아 첫 화면에서 저서가 보이게, 소개·단추는 그 아래 */
@media (max-width: 899px) {
  .hp-hero-grid.has-shelf {
    gap: 0;
  }
  .hp-hero-grid.has-shelf > .hp-hero-text {
    display: contents;
  }
  .hp-hero-grid.has-shelf .hp-eyebrow {
    order: 1;
  }
  .hp-hero-grid.has-shelf h1 {
    order: 2;
  }
  .hp-hero-grid.has-shelf .hp-shelf {
    order: 3;
    margin: 22px auto 4px;
  }
  .hp-hero-grid.has-shelf .hp-hero-lead {
    order: 4;
    margin-top: 22px;
  }
  .hp-hero-grid.has-shelf .hp-now {
    order: 5;
    justify-self: start;
  }
  .hp-hero-grid.has-shelf .hp-cta {
    order: 6;
  }
  .hp-hero-grid.has-shelf .hp-quick {
    order: 7;
  }
  .hp-hero-grid.has-shelf .hp-hero-pick {
    order: 8;
  }
}
/* 아래 막대(전화·카톡 또는 예약·길찾기)가 있는 폭에서는 첫 화면의 같은 단추를 빼 첫 화면을 넓게 */
@media (max-width: 999px) {
  .hp-hero .hp-cta .is-docked {
    display: none;
  }
}
/* 대표님이 그린 옆모습 비교 그림(10-29) · 사진이 있는 치료 순서 */
.hp-pair-pic {
  display: block;
  border-radius: var(--hp-radius);
  overflow: hidden;
}
.hp-pair-pic img {
  width: 100%;
  height: auto;
}
.hp-steps.has-pics {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 22px 14px;
}
@media (min-width: 768px) {
  .hp-steps.has-pics {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
  }
}
.hp-steps.has-pics li {
  padding: 0;
}
.hp-steps.has-pics li::before {
  top: 8px;
  left: 8px;
  z-index: 1;
  background: var(--hp-head-bg, var(--hp-accent));
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.hp-step-pic {
  display: block;
  margin-bottom: 10px;
  border-radius: var(--hp-radius);
  overflow: hidden;
}
.hp-step-pic img {
  width: 100%;
  aspect-ratio: 1.3333333333;
  object-fit: cover;
}
/* ───────── 신뢰를 주는 화면 효과(10-29) — 병원 실제 사진 띠 · 움직임 「은은하게」 ───────── */
/* 사진 띠 — 화면 가득한 실제 사진, 글은 아래쪽을 어둡게 깐 자리 위에(글자 대비) */
.hp-band {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(380px, 62vh, 600px);
  overflow: hidden;
  background: #111;
  color: #fff;
}
.hp-band-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}
.hp-band-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-band-bg picture {
  display: contents;
}
/* 폰 사진(「폰에서 쓸 사진」)을 넣어도 사진이 칸을 그대로 채우게 */
.hp-band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.7) 100%);
}
.hp-band-body {
  padding-top: 140px;
  padding-bottom: 44px;
}
@media (min-width: 768px) {
  .hp-band-body {
    padding-bottom: 68px;
  }
}
.hp-band-body .hp-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.hp-band-body h2 {
  color: #fff;
  font-size: clamp(25px, 4.6vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}
.hp-band-body p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  max-width: 36em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.hp-band-body .hp-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}
.hp-band-body .hp-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.hp-band-body :focus-visible {
  outline-color: #fff;
}
/* 움직임 「은은하게」 — 스크립트가 붙인 칸만(처음 화면 밖) · 짧게 · 한 번만 */
.hp-pre {
  opacity: 0;
  transform: translateY(14px);
}
.hp-pre.hp-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hp-settle {
  overflow: hidden;
}
.hp-media-img.hp-settle {
  border-radius: var(--hp-radius);
}
.hp-settle img {
  transform: scale(1.06);
}
.hp-settle.hp-settled img {
  transform: none;
  transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .hp-pre {
    opacity: 1;
    transform: none;
  }
  .hp-settle img {
    transform: none;
  }
}
@media print {
  .hp-pre {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* 화면에 놓인 마지막 사진 위 「+남은 장수」(10-29) — 누르면 그 사진부터 묶음 전체를 넘겨 봄 */
.hp-gallery a {
  position: relative;
}
.hp-more-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hp-gallery a:hover .hp-more-count {
  background: rgba(0, 0, 0, 0.6);
}
/* ───────── 위·아래 막대 모양(10-29) — 기본 · 가운데 · 띠 ─────────
 * 치과마다 다른 홈페이지로 보이게 틀 자체를 바꾼다(색·글꼴만 다르면 같은 집으로 보였음).
 * 전화·길찾기 단추, 맨 아래 대표원장·주소·사업자등록번호·개인정보 처리방침은 어느 모양에나 있다 — 놓는 자리만 다름. */
/* 「가운데」 — 폰: 전화 | 로고 | 메뉴 · PC: 로고 줄 가운데, 그 아래 메뉴 줄(내리면 로고 줄은 올라가고 메뉴 줄만 붙음) */
.hp[data-frame="center"] {
  /* 맨 아래 — 가운데로, 로고가 있으면 이름 위에 */
  /* 폰 아래 — 그림 위에 글자(앱 아래 막대처럼), 전화만 치과 색 */
}
.hp[data-frame="center"] .hp-head-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  grid-template-areas: "call brand menu";
  gap: 8px;
}
.hp[data-frame="center"] .hp-brand {
  grid-area: brand;
  justify-self: center;
  max-width: 100%;
  margin-right: 0;
}
.hp[data-frame="center"] .hp-head-act {
  display: contents;
}
.hp[data-frame="center"] .hp-head-call {
  grid-area: call;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: -11px;
  border-radius: 12px;
  background: transparent;
}
.hp[data-frame="center"] .hp-head-call span {
  display: none;
}
.hp[data-frame="center"] .hp-menu-btn {
  grid-area: menu;
}
.hp[data-frame="center"] .hp-nav {
  grid-area: nav;
}
.hp[data-frame="center"] .hp-foot {
  text-align: center;
}
.hp[data-frame="center"] .hp-foot-logo {
  width: auto;
  height: 44px;
  max-width: 160px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.hp[data-frame="center"] .hp-foot-info, .hp[data-frame="center"] .hp-foot-links {
  justify-content: center;
}
.hp[data-frame="center"] .hp-dock {
  gap: 0;
  padding: 2px 6px calc(2px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--hp-surface) 96%, transparent);
}
.hp[data-frame="center"] .hp-dock a {
  flex-direction: column;
  gap: 3px;
  min-height: 56px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--hp-muted) !important;
  font-size: 12.5px;
}
.hp[data-frame="center"] .hp-dock a:first-child {
  background: none;
  color: var(--hp-accent) !important;
}
.hp[data-frame="center"] .hp-dock .hp-ic {
  width: 22px;
  height: 22px;
}
@media (min-width: 1000px) {
  /* 메뉴 줄이 화면 폭을 다 쓰니 메뉴가 많아도 「메뉴」 단추로 접지 않음 */
  /* 「두 줄 왼쪽」 — 로고는 글 줄 왼쪽 끝, 전화는 오른쪽 · 메뉴 첫 글자도 로고 왼쪽 끝에 맞춤(단추 안쪽 여백만큼 당김) */
  .hp[data-frame="center"] .hp-head {
    top: -73px;
  }
  .hp[data-frame="center"] .hp-head-row {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: ". brand call" "nav nav nav";
    gap: 0 16px;
    min-height: 0;
  }
  .hp[data-frame="center"] .hp-brand {
    gap: 12px;
    padding: 14px 0;
  }
  .hp[data-frame="center"] .hp-brand-logo {
    height: 44px;
    max-width: 160px;
  }
  .hp[data-frame="center"] .hp-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 21px;
  }
  .hp[data-frame="center"] .hp-brand-name {
    font-size: 24px;
  }
  .hp[data-frame="center"] .hp-head-call {
    display: inline-flex;
    justify-self: end;
    width: auto;
    height: auto;
    margin: 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--hp-soft);
  }
  .hp[data-frame="center"] .hp-head-call span {
    display: inline;
  }
  .hp[data-frame="center"] .hp-nav {
    display: block;
    border-top: 1px solid var(--hp-line);
  }
  .hp[data-frame="center"] .hp-nav > ul {
    justify-content: center;
    gap: 4px;
    padding: 5px 0;
  }
  .hp[data-frame="center"] .hp-menu-btn, .hp[data-frame="center"] .hp-drawer {
    display: none !important;
  }
  .hp[data-frame="center"][data-menu-long] .hp-nav {
    display: block;
  }
  .hp[data-frame="center"][data-menu-long] .hp-nav a {
    padding-inline: 10px;
  }
  .hp[data-frame="center"][data-head="brand"] .hp-head-call {
    background: color-mix(in srgb, var(--hp-on-head, var(--hp-on-accent)) 16%, transparent);
  }
  .hp[data-frame="center"][data-head="brand"] .hp-nav {
    border-top-color: color-mix(in srgb, var(--hp-on-head, var(--hp-on-accent)) 22%, transparent);
  }
  .hp[data-frame="center"][data-brand="left"] .hp-head-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand . call" "nav nav nav";
    max-width: 1080px;
  }
  .hp[data-frame="center"][data-brand="left"] .hp-brand {
    justify-self: start;
  }
  .hp[data-frame="center"][data-brand="left"] .hp-nav > ul {
    justify-content: flex-start;
    margin-left: -12px;
  }
  .hp[data-frame="center"][data-brand="left"][data-menu-long] .hp-nav > ul {
    margin-left: -10px;
  }
}
/* 「띠」 — 위 막대 위 진료 시간 띠 · 메뉴는 밑줄 · 전화는 꽉 찬 단추 · 맨 아래 치과 색 바탕에 큰 전화번호 · 폰 아래는 끝까지 이어진 한 줄 */
.hp-topline {
  display: none;
}
.hp[data-frame="strip"] {
  /* 메뉴 — 둥근 바탕 대신 지금 있는 곳 밑줄 */
  /* 맨 아래 */
  /* 폰 아래 — 둥근 단추 셋 대신 치과 색 한 줄, 사이는 가는 선 */
}
.hp[data-frame="strip"] .hp-topline {
  display: block;
  background: color-mix(in srgb, var(--hp-head-bg, var(--hp-accent-strong)) 82%, #000);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.4;
}
.hp[data-frame="strip"] .hp-topline .hp-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 20px;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.hp[data-frame="strip"] .hp-topline :is(a, span) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
}
.hp[data-frame="strip"] .hp-topline-now {
  margin-right: auto;
  font-weight: 700;
}
.hp[data-frame="strip"] .hp-topline-now:hover {
  text-decoration: underline;
}
.hp[data-frame="strip"] .hp-topline-side {
  gap: 20px !important;
}
.hp[data-frame="strip"] .hp-topline .hp-ic {
  opacity: 0.8;
}
.hp[data-frame="strip"] .hp-topline :focus-visible {
  outline-color: #fff;
}
.hp[data-frame="strip"] .hp-nav > ul > li > a {
  position: relative;
  border-radius: 0;
  background: none !important;
}
.hp[data-frame="strip"] .hp-nav > ul > li > a[aria-current]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--hp-accent);
}
.hp[data-frame="strip"] .hp-head-call {
  background: var(--hp-accent);
  color: var(--hp-on-accent) !important;
}
.hp[data-frame="strip"] .hp-foot {
  border-top: 0;
  background: color-mix(in srgb, var(--hp-head-bg, var(--hp-accent-strong)) 88%, #000);
  color: rgba(255, 255, 255, 0.78);
}
.hp[data-frame="strip"] .hp-foot a {
  color: rgba(255, 255, 255, 0.88);
}
.hp[data-frame="strip"] .hp-foot :is(.hp-foot-name, .hp-foot-privacy) {
  color: #fff;
}
.hp[data-frame="strip"] .hp-foot :focus-visible {
  outline-color: #fff;
}
.hp[data-frame="strip"] .hp-foot-contact {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hp[data-frame="strip"] .hp-foot-label {
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}
.hp[data-frame="strip"] .hp-foot .hp-foot-tel {
  display: inline-block;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.hp[data-frame="strip"] .hp-foot-now {
  margin: 6px 0 0;
}
.hp[data-frame="strip"] .hp-foot-go {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 12px 0 0;
}
.hp[data-frame="strip"] .hp-foot-go a {
  font-weight: 700;
}
.hp[data-frame="strip"] .hp-dock {
  gap: 0;
  padding: 0 0 env(safe-area-inset-bottom);
  background: var(--hp-head-bg, var(--hp-accent-strong));
  border-top: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hp[data-frame="strip"] .hp-dock a {
  min-height: 54px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #fff !important;
}
.hp[data-frame="strip"] .hp-dock a:first-child {
  background: color-mix(in srgb, #000 16%, transparent);
}
.hp[data-frame="strip"] .hp-dock a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.hp[data-frame="strip"] .hp-dock :focus-visible {
  outline-color: #fff;
  outline-offset: -4px;
}
.hp[data-frame="strip"][data-head="brand"] .hp-nav > ul > li > a[aria-current]::after {
  background: var(--hp-on-head, var(--hp-on-accent));
}
.hp[data-frame="strip"][data-head="brand"] .hp-head-call {
  background: var(--hp-on-head, #fff);
  color: var(--hp-head-bg, var(--hp-accent)) !important;
}
/* 맨 위 띠에 「지금 진료 중」이 있으면 첫 화면의 같은 줄은 뺌(한 화면에 두 번) */
.hp[data-frame="strip"]:has(.hp-topline-now) .hp-hero .hp-now {
  display: none;
}
@media (max-width: 999px) {
  .hp[data-frame="strip"] .hp-topline-side {
    display: none !important;
  }
  .hp[data-frame="strip"] .hp-topline:not(:has(.hp-topline-now)) {
    display: none;
  }
}
@media (min-width: 1000px) {
  .hp[data-frame="strip"] .hp-foot-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: start;
  }
  .hp[data-frame="strip"] .hp-foot-contact {
    margin: 0;
    padding: 0;
    border: 0;
    text-align: right;
  }
  .hp[data-frame="strip"] .hp-foot-go {
    justify-content: flex-end;
  }
}
/* 치료 사례 「더 보기」(10-29) — 처음엔 몇 건만, 누르면 그 분류의 나머지 */
.hp-cases > li[hidden] {
  display: none;
}
.hp-cases-more {
  display: flex;
  justify-content: center;
  margin: 20px 0 24px;
}
.hp-cases-more[hidden] {
  display: none;
}
.hp-cases-more .hp-btn {
  min-width: 200px;
  justify-content: center;
}
/* 사례 아래 안내 줄이 마지막 사례 상자에 붙어 보였다 */
.hp-cases + .hp-note {
  margin-top: 18px;
}
/* 보조색이 있으면 화면 결과 상관없이 보이게(10-29 고우넷 방 부탁 — 카드형이면 로고 금색이 한 군데도 안 나왔음)
 * 위 막대 아래 줄 · 칸 제목 위 짧은 줄 · 맨 아래 위 줄 · 사례 탭 고른 칸 테두리 · 띠 모양 진한 바탕 위 「지금 진료 중」·큰 전화번호 */
.hp[data-accent2] .hp-head {
  border-bottom: 2px solid var(--hp-accent2);
}
.hp[data-accent2] .hp-sec-head {
  align-items: flex-end;
}
.hp[data-accent2] .hp-sec-head h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 14px;
  background: var(--hp-accent2);
}
.hp[data-accent2] .hp-foot {
  border-top: 3px solid var(--hp-accent2);
}
.hp[data-accent2] .hp-tabs button[aria-pressed="true"] {
  border-color: var(--hp-accent2);
  box-shadow: 0 0 0 1px var(--hp-accent2);
}
.hp[data-accent2][data-look="classic"] .hp-head {
  border-bottom-width: 3px;
}
.hp[data-frame="strip"] .hp-topline .hp-topline-now, .hp[data-frame="strip"] .hp-topline .hp-topline-now span, .hp[data-frame="strip"] .hp-foot .hp-foot-tel {
  color: var(--hp-on-head2, #fff);
}
/* ───────── 칸 모양 벤치마크(10-29 · 05 문서 1순위 10 + 칸 바탕) — 같은 부품이라도 치과마다 다른 홈페이지로 ───────── */
/* 칸 바탕 「치과 색 (어둡게)」 — 칸 안에서 색 이름을 다시 정해 카드·단추·글·선이 저절로 어두운 바탕에 맞음.
 * 강조(링크·단추·점·줄) = 보조색이 그 바탕에서 4.5:1이면 보조색(먹색 위 금색), 아니면 흰색 */
.hp {
  --hp-dark-bg: var(--hp-head-bg, var(--hp-accent));
}
.hp :is(.hp-sec, .hp-bleed).is-dark {
  --hp-bg: var(--hp-dark-bg);
  --hp-surface: rgba(255, 255, 255, 0.07);
  --hp-tint: rgba(255, 255, 255, 0.05);
  --hp-soft: rgba(255, 255, 255, 0.12);
  --hp-line: rgba(255, 255, 255, 0.18);
  --hp-ink: #ffffff;
  --hp-muted: rgba(255, 255, 255, 0.76);
  --hp-accent: var(--hp-on-head2, #ffffff);
  --hp-accent-strong: var(--hp-on-head2, #ffffff);
  --hp-accent2: var(--hp-on-head2, #ffffff);
  --hp-on-accent: var(--hp-dark-bg);
  background: var(--hp-bg);
  color: var(--hp-ink);
}
.hp :is(.hp-sec, .hp-bleed).is-dark :focus-visible {
  outline-color: #fff;
}
/* 칸 머리 「제목 왼쪽 · 글 오른쪽」 — 넓은 화면만(폰은 위아래 그대로) */
@media (min-width: 900px) {
  .hp-sec.is-split > .hp-wrap {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 56px;
  }
  .hp-sec.is-split > .hp-wrap > * {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .hp-sec.is-split > .hp-wrap > .hp-sec-head {
    grid-column: 1;
    margin-bottom: 30px;
  }
  .hp-sec.is-split > .hp-wrap > .hp-sec-head h2 {
    font-size: 30px;
  }
  .hp-sec.is-split > .hp-wrap > .hp-sec-head + .hp-intro {
    grid-column: 2;
    align-self: end;
    max-width: none;
    margin: 0 0 30px;
    color: var(--hp-muted);
  }
}
/* 큰 칸 「큰 글자만」 — 사진 없이 제목을 아주 크게(폰 40px · PC 84px) */
.hp-hero.is-type {
  padding: 64px 0 52px;
}
@media (min-width: 768px) {
  .hp-hero.is-type {
    padding: 112px 0 96px;
  }
}
.hp-hero.is-type .hp-hero-text {
  max-width: 1000px;
}
.hp-hero.is-type .hp-eyebrow {
  font-size: 15px;
  margin-bottom: 18px;
}
.hp-hero.is-type h1 {
  font-size: clamp(40px, 10.6vw, 84px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hp-hero.is-type .hp-hero-lead {
  font-size: clamp(17px, 2vw, 20px);
  margin-top: 26px;
  max-width: 34em;
}
.hp-hero.is-type .hp-cta {
  margin-top: 30px;
}
/* 치과 색 바탕 큰 칸의 작은 글 = 보조색(먹색 위 금색) · 없으면 흰 글 */
.hp-hero.is-tone-brand .hp-eyebrow {
  color: var(--hp-on-head2, rgba(255, 255, 255, 0.8));
}
/* 큰 칸 「여백 안 둥근 큰 사진」 — 작은 글·제목은 사진 아래쪽 위, 설명·단추는 사진 아래 */
.hp-hero.is-inset {
  padding: 12px 0 36px;
}
.hp-hero.is-inset:not(.is-tone-brand) {
  background: var(--hp-bg);
}
@media (min-width: 768px) {
  .hp-hero.is-inset {
    padding: 20px 0 56px;
  }
}
.hp-inset {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(440px, 72vh, 680px);
  border-radius: 24px;
  overflow: hidden;
  background: #111;
}
.hp-inset-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}
.hp-inset-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-inset-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.68) 100%);
}
.hp-inset-text {
  padding: 28px 22px;
}
@media (min-width: 768px) {
  .hp-inset-text {
    padding: 48px;
  }
}
.hp-inset h1 {
  color: #fff;
  font-size: clamp(32px, 7vw, 58px);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}
.hp-inset .hp-eyebrow {
  color: rgba(255, 255, 255, 0.88);
}
.hp-hero.is-inset .hp-hero-grid {
  margin-top: 24px;
}
/* 글 「큰 글 한 문장」 — 넓은 여백 가운데 큰 글 + 출처(원장님 말·병원 이념) */
.hp-sec.is-bigquote {
  padding: 88px 0;
}
@media (min-width: 768px) {
  .hp-sec.is-bigquote {
    padding: 128px 0;
  }
}
.hp-bigquote {
  margin: 0 auto;
  max-width: 880px;
  text-align: center;
}
.hp-bigquote .hp-eyebrow {
  font-size: 15px;
  margin-bottom: 20px;
}
.hp-bigquote blockquote {
  margin: 0;
}
.hp-bigquote blockquote p {
  margin: 0;
  font-family: var(--hp-head-font, inherit);
  font-size: clamp(26px, 5.4vw, 44px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
  text-wrap: balance;
}
.hp-bigquote blockquote p + p {
  margin-top: 0.5em;
}
.hp-bigquote figcaption {
  margin-top: 26px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-muted);
}
.hp-bigquote figcaption::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin: 0 auto 14px;
  background: var(--hp-accent2, var(--hp-accent));
}
/* 사진 + 글 「사진을 화면 끝까지」 — 폰은 사진 위 끝에서 끝까지 · PC는 사진이 화면 끝에 붙고 글 칸은 좁게 */
.hp-bleed {
  display: grid;
  background: var(--hp-bg);
}
.hp-bleed.is-tint {
  background: var(--hp-tint);
}
.hp-bleed-img {
  margin: 0;
}
.hp-bleed-img img {
  width: 100%;
  aspect-ratio: 1.3333333333;
  object-fit: cover;
}
.hp-bleed-body {
  padding: 28px 16px 48px;
}
.hp-bleed-body h2 {
  font-size: clamp(24px, 4.4vw, 32px);
  font-weight: 800;
  margin-bottom: 14px;
}
.hp-bleed-body p {
  color: var(--hp-muted);
  font-size: 17px;
}
.hp-bleed-body .hp-sec-cta {
  margin-top: 20px;
}
@media (min-width: 768px) {
  .hp-bleed-body {
    padding: 36px 28px 64px;
  }
}
@media (min-width: 900px) {
  .hp-bleed {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: center;
  }
  .hp-bleed-img {
    order: 2;
    align-self: stretch;
  }
  .hp-bleed-img img {
    height: 100%;
    min-height: 520px;
    aspect-ratio: auto;
  }
  .hp-bleed-body {
    padding: 72px 56px 72px max(28px, calc((100vw - 1080px) / 2 + 28px));
  }
  .hp-bleed.is-flip {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
  .hp-bleed.is-flip .hp-bleed-img {
    order: 0;
  }
  .hp-bleed.is-flip .hp-bleed-body {
    padding: 72px max(28px, calc((100vw - 1080px) / 2 + 28px)) 72px 56px;
  }
  .hp-bleed.no-img {
    grid-template-columns: 1fr;
  }
}
/* 진료 목록 「모자이크」 — 첫 진료는 큰 칸(PC 2×2), 나머지는 작은 칸 · 빈 칸이 안 생기게 마지막 줄을 넓힘(w2 · w4 · h2) */
.hp-bento {
  list-style: none;
  display: grid;
  gap: 12px;
}
.hp-bento-card {
  display: flex;
  gap: 14px;
  align-items: center;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  color: var(--hp-ink) !important;
  text-decoration: none;
  overflow: hidden;
}
.hp-bento-card:hover {
  border-color: var(--hp-accent);
}
.hp-bento-art {
  flex: none;
  width: 104px;
}
.hp-bento-art :is(img, .hp-art) {
  display: block;
  width: 100%;
  aspect-ratio: 1.3333333333;
  object-fit: cover;
  border-radius: 10px;
}
.hp-bento-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hp-bento-body h3 {
  font-size: 17px;
  font-weight: 800;
}
.hp-bento-body p {
  margin: 0;
  font-size: 14.5px;
  color: var(--hp-muted);
}
.hp-bento > .is-big .hp-bento-card {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
}
.hp-bento > .is-big .hp-bento-art {
  width: 100%;
}
.hp-bento > .is-big .hp-bento-art :is(img, .hp-art) {
  aspect-ratio: 1.6;
  border-radius: 0;
}
.hp-bento > .is-big .hp-bento-body {
  padding: 18px 20px 20px;
}
.hp-bento > .is-big h3 {
  font-size: 22px;
}
.hp-bento > .is-big p {
  font-size: 16px;
}
@media (min-width: 640px) {
  .hp-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-bento > .is-big {
    grid-column: 1 / -1;
  }
  .hp-bento-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
  }
  .hp-bento-art {
    width: 100%;
  }
  .hp-bento-art :is(img, .hp-art) {
    aspect-ratio: 1.6;
    border-radius: 0;
  }
  .hp-bento-body {
    padding: 14px 16px 16px;
  }
}
@media (min-width: 960px) {
  .hp-bento {
    grid-template-columns: repeat(4, 1fr);
  }
  .hp-bento > .is-big {
    grid-column: span 2;
    grid-row: span 2;
  }
  .hp-bento > .is-big .hp-bento-art {
    flex: 1;
  }
  .hp-bento > .is-big .hp-bento-art :is(img, .hp-art) {
    height: 100%;
    min-height: 280px;
    aspect-ratio: auto;
  }
  .hp-bento > .w2 {
    grid-column: span 2;
  }
  .hp-bento > .h2 {
    grid-row: span 2;
  }
  .hp-bento > .w4 {
    grid-column: 1 / -1;
  }
  .hp-bento > .w4 .hp-bento-card {
    flex-direction: row;
    align-items: center;
  }
  .hp-bento > .w4 .hp-bento-art {
    width: 34%;
  }
}
/* 사례 「첫 사례 크게」 — 첫 사례는 전·후 크게 + 오른쪽 기간·장치·설명 · 나머지는 한 줄(작은 사진 · 이름 · 분류), 누르면 그 자리에서 펼침 */
.hp-case-big {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
}
.hp-case-big-t {
  font-size: 20px;
  font-weight: 800;
}
.hp-case-big > p {
  margin: 0;
}
@media (min-width: 900px) {
  .hp-case-big {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    column-gap: 32px;
    align-content: center;
    padding: 24px;
  }
  .hp-case-big > :is(.hp-case-pair, .hp-ba) {
    grid-column: 1;
    grid-row: 1 / span 6;
    align-self: center;
  }
  .hp-case-big > :not(.hp-case-pair):not(.hp-ba) {
    grid-column: 2;
  }
  .hp-case-big-t {
    font-size: 24px;
    align-self: end;
  }
}
.hp-case-rows {
  list-style: none;
  margin-top: 14px;
  border-top: 1px solid var(--hp-line);
}
.hp-case-rows > li {
  border-bottom: 1px solid var(--hp-line);
}
.hp-case-rows summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  cursor: pointer;
  list-style: none;
}
.hp-case-rows summary::-webkit-details-marker {
  display: none;
}
.hp-case-thumb {
  flex: none;
  width: 72px;
}
.hp-case-thumb img {
  width: 100%;
  aspect-ratio: 1.3333333333;
  object-fit: cover;
  border-radius: 8px;
}
.hp-case-row-t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hp-case-row-t strong {
  font-size: 16.5px;
  font-weight: 700;
}
.hp-case-row-t small {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hp-muted);
}
.hp-case-rows summary > .hp-ic {
  flex: none;
  color: var(--hp-muted);
  transition: transform 0.2s;
}
.hp-case-rows details[open] summary > .hp-ic {
  transform: rotate(180deg);
}
.hp-case-row-body {
  display: grid;
  gap: 12px;
  padding: 4px 4px 22px;
}
.hp-case-row-body > p {
  margin: 0;
}
@media (min-width: 900px) {
  .hp-case-thumb {
    width: 96px;
  }
  .hp-case-row-body {
    max-width: 760px;
  }
}
/* 새 칸 「누르면 사진이 바뀌는 목록」 — 하나만 펼침 · 넓은 화면은 펼친 항목 사진이 오른쪽 큰 칸에 */
.hp-explore {
  display: grid;
}
.hp-explore-item {
  border-bottom: 1px solid var(--hp-line);
}
.hp-explore-item:first-child {
  border-top: 1px solid var(--hp-line);
}
.hp-explore-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 700;
}
.hp-explore-item summary::-webkit-details-marker {
  display: none;
}
.hp-explore-no {
  flex: none;
  font-size: 14px;
  font-weight: 800;
  color: var(--hp-muted);
  font-variant-numeric: tabular-nums;
}
.hp-explore-item[open] .hp-explore-no {
  color: var(--hp-accent);
}
.hp-explore-t {
  flex: 1;
  min-width: 0;
}
.hp-explore-item summary > .hp-ic {
  flex: none;
  color: var(--hp-muted);
  transition: transform 0.2s;
}
.hp-explore-item[open] summary > .hp-ic {
  transform: rotate(180deg);
}
.hp-explore-body {
  padding: 0 2px 22px;
}
.hp-explore-body p {
  margin: 0;
  font-size: 16.5px;
  color: var(--hp-muted);
}
.hp-explore-pic {
  margin: 16px 0 0;
}
.hp-explore-pic img {
  width: 100%;
  aspect-ratio: 1.3333333333;
  object-fit: contain;
  background: var(--hp-tint);
  border-radius: var(--hp-radius);
}
@media (min-width: 900px) {
  .hp-explore {
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 56px;
  }
  .hp-explore::after {
    content: "";
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 1.3333333333;
  }
  .hp-explore-list {
    grid-column: 1;
    grid-row: 1;
  }
  .hp-explore-pic {
    position: absolute;
    top: 0;
    right: 0;
    width: calc((100% - 56px) / 2);
    margin: 0;
  }
  .hp-explore-item summary {
    padding: 22px 2px;
    font-size: 20px;
  }
  .hp-explore-item[open] summary {
    cursor: default;
  }
}
/* 새 칸 「시간선」 — 가는 선 위 점(보조색) · 해 · 제목 · 한 줄, 옆으로 넘김 */
.hp-tl-list {
  list-style: none;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 14px;
  scrollbar-width: thin;
}
.hp-tl-list:focus-visible {
  outline-offset: 4px;
}
.hp-tl-list > li {
  position: relative;
  flex: 0 0 76%;
  scroll-snap-align: start;
  padding: 32px 28px 0 0;
}
@media (min-width: 640px) {
  .hp-tl-list > li {
    flex-basis: 42%;
  }
}
@media (min-width: 960px) {
  .hp-tl-list > li {
    flex-basis: 25%;
  }
}
.hp-tl-list > li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hp-line);
}
.hp-tl-list > li:last-child::before {
  right: auto;
  width: 12px;
}
.hp-tl-dot {
  position: absolute;
  top: 2px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--hp-accent2, var(--hp-accent));
}
.hp-tl-when {
  margin: 0 0 6px;
  font-family: var(--hp-head-font, inherit);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--hp-ink);
  font-variant-numeric: tabular-nums;
}
.hp-tl-list h3 {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 4px;
}
.hp-tl-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hp-muted);
}
.hp-tl-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.hp-tl-nav[hidden] {
  display: none;
}
.hp-tl-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
  color: var(--hp-ink);
  cursor: pointer;
}
.hp-tl-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.hp-tl-btn.is-prev .hp-ic {
  transform: rotate(180deg);
}
/* 연락 띠 「연락 방법 상자」 — 상자마다 무엇으로 · 언제 · › */
.hp-channels {
  list-style: none;
  display: grid;
  gap: 10px;
}
@media (min-width: 640px) {
  .hp-channels {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .hp-channels {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
.hp-channels a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px 16px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  color: var(--hp-ink) !important;
  text-decoration: none;
}
.hp-channels a:hover {
  border-color: var(--hp-accent);
}
.hp-ch-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--hp-soft);
  color: var(--hp-accent);
}
.hp-ch-t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hp-ch-t strong {
  font-size: 16.5px;
  font-weight: 800;
}
.hp-ch-big {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.hp-ch-t small {
  font-size: 14px;
  color: var(--hp-muted);
  overflow-wrap: anywhere;
}
.hp-channels a > .hp-ic:last-child {
  flex: none;
  color: var(--hp-muted);
}
/* 줄을 나눈 큰 제목은 정한 줄 수 그대로(10-29 고우넷 방 부탁 — 「수술 없이 / 얼굴이 작아지는 교정치료」가 폰에서 세 줄)
 * 글자 크기 상한 --hp-fit = View::fit()이 줄마다 「글자 종류 × 글꼴별 글자 폭」으로 만든 값. 글자 폭(글자 크기 대비) = test에서 잰 값(글자 사이 0 기준) */
.hp {
  --hp-fh: 0.87;
  --hp-fsp: 0.23;
  --hp-fd: 0.63;
  --hp-fl: 0.52;
  --hp-fp: 0.37;
}
.hp[data-font="serif"] {
  --hp-fh: 0.97;
  --hp-fsp: 0.31;
  --hp-fd: 0.59;
  --hp-fl: 0.57;
}
.hp[data-font="round"] {
  --hp-fh: 0.91;
  --hp-fsp: 0.31;
  --hp-fd: 0.54;
  --hp-fl: 0.46;
}
@supports (container-type: inline-size) {
  /* 제목 칸 폭 = 글 칸(사진 옆이면 그 칸) · 폰 책장 첫 화면처럼 글 칸이 상자를 안 만들면 바깥 칸 */
  .hp-hero-grid, .hp-hero-text, .hp-inset-text {
    container-type: inline-size;
  }
  /* 폭을 재는 칸은 글 길이로 폭을 정하지 못함 — 가운데 맞춤(좌우 auto 여백) 글 칸이 0으로 줄지 않게 폭을 정해 둠(최대 폭은 각 모양 그대로) */
  .hp-hero-text, .hp-inset-text {
    width: 100%;
  }
  .hp-hero h1[style] {
    font-size: min(clamp(30px, 7vw, 46px), var(--hp-fit));
  }
  .hp-hero.is-center h1[style] {
    font-size: min(clamp(32px, 8vw, 58px), var(--hp-fit));
  }
  .hp-hero.is-shelf h1[style] {
    font-size: min(clamp(26px, 6.4vw, 36px), var(--hp-fit));
  }
  .hp-hero.is-type h1[style] {
    font-size: min(clamp(40px, 10.6vw, 84px), var(--hp-fit));
  }
  .hp-inset h1[style] {
    font-size: min(clamp(32px, 7vw, 58px), var(--hp-fit));
  }
}
/* ───────── 책 소개(10-30 · 대표님 「책을 하나하나 소개하는 형태로 · 책에 커서를 올리면 이벤트」 — 고우넷 방 시안) ─────────
 * 책장 판 위에 입체 표지 · 들어올 때 판이 깔리고 책이 한 권씩 꽂힘 · 고른 책은 앞으로 돌아 나와 들리고 빛이 스침 · 아래 칸에 그 책 소개.
 * 폰은 옆으로 넘겨 가운데 온 책을 고름. 스크립트가 없으면 책은 그냥 서 있고 첫 책 소개가 보임 */
.hp-blk-books {
  overflow-x: clip;
}
.hp-bk-stage {
  --hp-bk-top: color-mix(in srgb, var(--hp-ink) 7%, var(--hp-bg));
  --hp-bk-face: color-mix(in srgb, var(--hp-ink) 15%, var(--hp-bg));
  --hp-bk-shadow: rgba(0, 0, 0, 0.28);
  --hp-bk-gap: 22px;
  position: relative;
  margin-top: 26px;
  container-type: inline-size;
  word-break: keep-all;
  overflow-wrap: break-word;
}
@media (prefers-color-scheme: dark) {
  .hp-bk-stage {
    --hp-bk-shadow: rgba(0, 0, 0, 0.7);
  }
}
.hp-sec.is-dark .hp-bk-stage {
  --hp-bk-shadow: rgba(0, 0, 0, 0.55);
}
/* 책 자리(offsetLeft)는 이 줄 기준 — 폰에서 옆으로 넘겨도 같은 값 */
.hp-bk-row {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 56px 8px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--hp-bk-gap);
}
.hp-bk-row > li {
  flex: 0 0 auto;
}
/* 책 폭 — 넓은 화면은 책 수에 맞춰 한 줄에(고른 책이 1.1배로 커질 자리까지) · 최대 122px */
.hp-bk {
  --w: clamp(56px, calc((100cqi - 16px - (var(--n) - 1) * var(--hp-bk-gap)) / var(--n) / 1.12), 122px);
  position: relative;
  display: block;
  width: var(--w);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  perspective: 700px;
  font: inherit;
}
.hp-bk:focus-visible {
  outline: none;
}
/* 「…#hp-book-몇 번째」로 왔을 때 책이 위 막대에 가리지 않고 소개까지 보이게 */
.hp-bk[id] {
  scroll-margin-top: 28vh;
}
.hp-bk:focus-visible .hp-bk-3d img {
  outline: 3px solid var(--hp-accent2, var(--hp-accent));
  outline-offset: 4px;
}
.hp-bk-3d {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transform: rotateY(-28deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s, filter 0.4s;
}
.hp-bk-3d img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.6666666667;
  object-fit: cover;
  border-radius: 1px 3px 3px 1px;
  box-shadow: inset 4px 0 6px rgba(0, 0, 0, 0.18);
  background: var(--hp-surface);
}
/* 책등 = 표지 왼쪽 끝을 어둡게 늘려 붙임 · 오른쪽 = 종이 결 */
.hp-bk-3d::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 15px;
  transform-origin: left center;
  transform: rotateY(90deg);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25)), var(--img) left center / auto 100% no-repeat;
}
.hp-bk-3d::after {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  right: 0;
  width: 13px;
  transform-origin: right center;
  transform: rotateY(-90deg);
  background: repeating-linear-gradient(90deg, #f3efe6 0 1px, #dcd6c8 1px 2px);
}
.hp-bk-gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%) 140% 0 / 260% 100% no-repeat;
  mix-blend-mode: screen;
}
.hp-bk::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8%;
  right: -6%;
  bottom: -7px;
  height: 12px;
  border-radius: 50%;
  background: var(--hp-bk-shadow);
  filter: blur(6px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s;
}
/* 고른 책 — 앞으로 돌아 나와 들림 · 뒤에 보조색 빛 · 나머지는 흐리게 */
.hp-bk[aria-pressed="true"] .hp-bk-3d {
  transform: translateY(-24px) rotateY(0deg) translateZ(40px) scale(1.1);
}
.hp-bk[aria-pressed="true"]::after {
  transform: scale(1.25, 1.6) translateY(4px);
  opacity: 0.55;
}
.hp-bk-row.has-pick .hp-bk[aria-pressed="false"] .hp-bk-3d {
  opacity: 0.58;
  filter: saturate(0.6);
}
.hp-bk-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 40%;
  width: 230%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hp-accent2, var(--hp-accent)) 34%, transparent), transparent);
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.5s, scale 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hp-bk[aria-pressed="true"] .hp-bk-glow {
  opacity: 1;
  scale: 1;
}
.hp-bk.is-shine .hp-bk-gloss {
  animation: hp-bk-shine 1s ease-out both;
}
@keyframes hp-bk-shine {
  0% {
    opacity: 1;
    background-position: 140% 0;
  }
  100% {
    opacity: 1;
    background-position: -40% 0;
  }
}
/* 책장 판 + 고른 책 밑 보조색 표시 */
.hp-bk-plank {
  position: relative;
  height: 16px;
  margin: 0 -8px;
  border-radius: 3px;
  background: linear-gradient(var(--hp-bk-top) 0 6px, var(--hp-bk-face) 6px);
  box-shadow: 0 14px 22px -12px var(--hp-bk-shadow);
}
.hp-bk-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 4px;
  margin-left: -23px;
  border-radius: 0 0 3px 3px;
  background: var(--hp-accent2, var(--hp-accent));
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
}
.hp-bk-row.has-pick + .hp-bk-plank .hp-bk-marker {
  opacity: 1;
}
/* 소개 — 고른 책이 바뀌면 살짝 올라오며 바뀜 */
.hp-bk-info {
  display: grid;
  max-width: 760px;
  margin: 30px auto 0;
  padding: 22px 24px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
}
/* 소개를 한 칸에 겹침 — grid-area: 1 / 1은 꾸밈 파일 변환기가 나눗셈(= 1)으로 바꿔 버려서 줄·칸을 따로 씀 */
.hp-bk-card {
  grid-row: 1;
  grid-column: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 4px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.3s;
}
.hp-bk-card.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s 0.08s, transform 0.45s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}
.hp-bk-meta {
  grid-column: 1;
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--hp-accent2-text, var(--hp-accent));
}
.hp-bk-name {
  grid-column: 1;
  margin: 2px 0 0;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.hp-bk-name small {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--hp-muted);
}
.hp-bk-note {
  grid-column: 1;
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--hp-ink);
}
.hp-bk-count {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  font-size: 13px;
  color: var(--hp-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hp-bk-count b {
  font-size: 22px;
  color: var(--hp-ink);
}
.hp-bk-foot {
  max-width: 760px;
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--hp-muted);
}
.hp-bk-foot a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--hp-ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--hp-accent2, var(--hp-accent));
  white-space: nowrap;
}
.hp-sec.is-dark .hp-bk-meta {
  color: var(--hp-accent);
}
/* 들어올 때(스크립트가 is-wait를 붙인 뒤) — 판이 왼쪽부터 깔리고 책이 한 권씩 위에서 꽂힘(75ms 간격 · 살짝 튕김) */
.hp-bk-stage.is-wait .hp-bk {
  opacity: 0;
  transform: translateY(-46px);
}
.hp-bk-stage.is-wait .hp-bk-plank {
  transform: scaleX(0);
  transform-origin: left center;
}
.hp-bk-stage.is-in .hp-bk {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s calc(0.25s + var(--i) * 75ms), transform 0.75s cubic-bezier(0.2, 1.35, 0.4, 1) calc(0.25s + var(--i) * 75ms);
}
.hp-bk-stage.is-in .hp-bk-plank {
  transform: scaleX(1);
  transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1);
}
/* 폰 — 옆으로 넘기기 · 가운데 온 책을 고름 · 표시는 가운데 고정 */
@media (max-width: 719px) {
  .hp-bk-row {
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 48px calc(50% - 56px) 14px;
    gap: 18px;
    margin: 0 -16px;
  }
  .hp-bk-row::-webkit-scrollbar {
    display: none;
  }
  .hp-bk-row > li {
    scroll-snap-align: center;
  }
  .hp-bk {
    --w: 112px;
  }
  .hp-bk-3d {
    transform: rotateY(-22deg) scale(0.9);
  }
  .hp-bk[aria-pressed="true"] .hp-bk-3d {
    transform: translateY(-16px) rotateY(0deg) translateZ(30px) scale(1.08);
  }
  .hp-bk-plank {
    margin: -14px -16px 0;
  }
  .hp-bk-marker {
    left: 50% !important;
    transform: none !important;
  }
  .hp-bk-info {
    margin-top: 22px;
    padding: 18px 18px 20px;
  }
  .hp-bk-card {
    grid-template-columns: 1fr;
  }
  .hp-bk-count {
    grid-column: 1;
    grid-row: auto;
    order: -1;
  }
  .hp-bk-name {
    font-size: 17.5px;
  }
  .hp-bk-note {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hp-bk, .hp-bk-3d, .hp-bk-plank, .hp-bk-card, .hp-bk-marker, .hp-bk-glow, .hp-bk::after {
    transition: none !important;
    animation: none !important;
  }
  .hp-bk-stage.is-wait .hp-bk {
    opacity: 1;
    transform: none;
  }
  .hp-bk-stage.is-wait .hp-bk-plank {
    transform: none;
  }
}
/* 첫 화면 책장에서 책 소개로 가는 표지 — 누르면 그 책 소개(크게 보기 대신) */
.hp-shelf-go {
  display: block;
  transition: transform 0.25s;
}
.hp-shelf-go:hover {
  transform: translateY(-4px);
}
/* 사진에서 꼭 보일 자리(10-30 · 사진 칸의 「focus」 — 폰처럼 사진이 많이 잘리는 폭에서도 원장님·모델이 보이게) · 비우면 가운데(원장님 사진 큰 칸은 위쪽) */
.hp :is(.hp-hero-bg, .hp-inset-bg, .hp-hero-photo, .hp-band-bg, .hp-bleed-img, .hp-media-img) img {
  object-position: var(--hp-focus, 50% 50%);
}
.hp-hero.is-doctor .hp-hero-photo img {
  object-position: var(--hp-focus, 50% 15%);
}
/* ───────── 처음 온 환자가 얻는 것(10-30 · 대표님 「툴 칸 전부를 이 기준으로 다시 보고 밋밋하거나 의미 없는 곳을 고쳐」) ───────── */
/* 진료시간 표 — 오늘 줄 */
.hp-hours tr.is-today th {
  box-shadow: inset 3px 0 0 var(--hp-accent);
  padding-left: 10px;
}
.hp-hours tr.is-today :is(th, td) {
  font-weight: 800;
}
.hp-hours tr.is-today:not(.is-off) :is(th, td) {
  color: var(--hp-ink);
}
.hp-today {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--hp-accent);
  color: var(--hp-on-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  vertical-align: 1px;
}
.hp-hero-card .is-today dt, .hp-hero-card .is-today dd {
  font-weight: 800;
}
/* 사진 카드(지키는 것·특징) — 폰은 옆으로 넘기기(8장이 세로로 쌓여 3,700px 넘게 길었음) · 다음 카드가 살짝 보여 넘길 수 있는 줄 앎 */
@media (max-width: 639px) {
  .hp-feats.is-photos {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 8px;
    scroll-padding: 0 16px;
    scrollbar-width: thin;
  }
  .hp-feats.is-photos > li {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}
/* 치료 순서 — 번호를 잇는 선 · 내리면 지나온 단계가 하나씩 켜짐(스크립트가 is-live를 붙인 뒤 · 없으면 전처럼) */
.hp-steps:not(.has-pics) > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 42px;
  bottom: -12px;
  width: 2px;
  border-radius: 1px;
  background: var(--hp-line);
}
.hp-steps.is-live:not(.has-pics) > li::before {
  background: var(--hp-surface);
  box-shadow: inset 0 0 0 2px var(--hp-line);
  color: var(--hp-muted);
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
/* 선 채우기 — 꾸밈 파일 변환기가 「/」를 나눗셈으로 바꿀 수 있어 background를 나눠 씀 */
.hp-steps.is-live:not(.has-pics) > li::after {
  background-color: var(--hp-line);
  background-image: linear-gradient(var(--hp-accent), var(--hp-accent));
  background-repeat: no-repeat;
  background-size: 100% 0;
  transition: background-size 0.6s ease;
}
.hp-steps.is-live:not(.has-pics) > li.is-on::before {
  background: var(--hp-accent);
  box-shadow: none;
  color: var(--hp-on-accent);
}
.hp-steps.is-live:not(.has-pics) > li.is-on::after {
  background-size: 100% 100%;
}
.hp-steps.is-live:not(.has-pics) > li > :is(strong, span) {
  transition: opacity 0.4s;
}
.hp-steps.is-live:not(.has-pics) > li:not(.is-on) > :is(strong, span) {
  opacity: 0.55;
}
/* 치료 사례 「전·후 밀어 보기」 — 아래 치료 후 · 위 치료 전(선 왼쪽만) · 끌거나 누른 자리로 선이 옴 */
.hp-ba {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1.3333333333;
  background: var(--hp-tint);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.hp-ba-img {
  position: absolute;
  inset: 0;
}
.hp-ba-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hp-ba-img.is-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.hp-ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.hp-ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hp-ba-knob::before, .hp-ba-knob::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -5px;
  border: 5px solid transparent;
}
.hp-ba-knob::before {
  left: 7px;
  border-right: 6px solid #444;
  border-left: 0;
}
.hp-ba-knob::after {
  right: 7px;
  border-left: 6px solid #444;
  border-right: 0;
}
.hp-ba-tag {
  position: absolute;
  top: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  pointer-events: none;
}
.hp-ba-tag.is-before {
  left: 8px;
}
.hp-ba-tag.is-after {
  right: 8px;
}
.hp-ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.hp-ba:has(.hp-ba-range:focus-visible) {
  outline: 3px solid var(--hp-accent);
  outline-offset: 2px;
}
.hp-ba.is-hint .hp-ba-img.is-before, .hp-ba.is-hint .hp-ba-line {
  transition: clip-path 0.6s cubic-bezier(0.45, 0, 0.2, 1), left 0.6s cubic-bezier(0.45, 0, 0.2, 1);
}
.hp-ba-more {
  margin: 8px 0 0;
  font-size: 14px;
}
.hp-ba-more a {
  font-weight: 700;
}
@media print {
  .hp-ba-line, .hp-ba-range {
    display: none;
  }
}
/* 길찾기 고르기(10-30) — 폰 아래에서 올라오는 창 · 지도 앱 둘 + 주소 복사 */
.hp-go {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 22px 18px calc(16px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--hp-surface);
  color: var(--hp-ink);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
}
.hp-go::backdrop {
  background: rgba(0, 0, 0, 0.42);
}
.hp-go[open] {
  animation: hp-go-up 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes hp-go-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.hp-go-h {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}
.hp-go-addr {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--hp-muted);
}
.hp-go-addr .hp-ic {
  flex: none;
  margin-top: 3px;
  color: var(--hp-accent);
}
.hp-go-list {
  display: grid;
  gap: 8px;
}
.hp-go-app {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: var(--hp-btn-radius, 12px);
  border: 1px solid var(--hp-line);
  background: var(--hp-bg);
  color: var(--hp-ink) !important;
  font: inherit;
  font-size: 16.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.hp-go-list > :first-child {
  background: var(--hp-accent);
  border-color: var(--hp-accent);
  color: var(--hp-on-accent) !important;
}
.hp-go-close {
  display: block;
  width: 100%;
  margin-top: 10px;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--hp-muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .hp-go[open] {
    animation: none;
  }
}
/* 사진 띠 「폰에서 사진 전체 보이기」(10-30 · 대표님 「유펜 모바일에서 옛 이미지가 엉뚱한 영역이 나와 — PC는 다 보여」)
 * PC용으로 가로가 긴 사진은 폰 세로 칸을 채우면 가운데 ⅓만 보임 → 폰(767px 이하)에서는 사진을 자르지 않고 그 비율 그대로, 글은 사진 아래 진한 바탕에. PC는 그대로 */
@media (max-width: 767px) {
  .hp-band.is-whole {
    display: block;
    min-height: 0;
  }
  .hp-band.is-whole .hp-band-bg {
    position: static;
    z-index: auto;
  }
  .hp-band.is-whole .hp-band-bg img {
    height: auto;
    aspect-ratio: auto;
    object-fit: initial;
  }
  .hp-band.is-whole .hp-band-bg::after {
    display: none;
  }
  .hp-band.is-whole .hp-band-body {
    padding-top: 26px;
    padding-bottom: 40px;
  }
  .hp-band.is-whole .hp-band-body p {
    text-shadow: none;
  }
}
/* 폰 「글 + 오른쪽 사진」 첫 화면 — 사진을 제목 바로 아래로(10-30 · 대표님 「고우넷 모바일 첫 화면이 글로만 나와 허전」 — 사진이 긴 설명·단추 아래로 밀려 첫 화면 밖에 있었음)
 * 순서 = 작은 글 → 큰 제목 → 사진 → 설명 → 지금 진료 → 단추 → 바로가기 · PC는 그대로(글 왼쪽 · 사진 오른쪽) */
@media (max-width: 899px) {
  .hp-hero.is-split .hp-hero-grid.has-photo {
    gap: 0;
  }
  .hp-hero.is-split .hp-hero-grid.has-photo > .hp-hero-text {
    display: contents;
  }
  .hp-hero.is-split .hp-hero-grid.has-photo .hp-eyebrow {
    order: 1;
  }
  .hp-hero.is-split .hp-hero-grid.has-photo h1 {
    order: 2;
  }
  .hp-hero.is-split .hp-hero-grid.has-photo > .hp-hero-photo {
    order: 3;
    margin-top: 20px;
  }
  .hp-hero.is-split .hp-hero-grid.has-photo .hp-hero-lead {
    order: 4;
    margin-top: 20px;
  }
  .hp-hero.is-split .hp-hero-grid.has-photo .hp-now {
    order: 5;
    justify-self: start;
  }
  .hp-hero.is-split .hp-hero-grid.has-photo .hp-cta {
    order: 6;
  }
  .hp-hero.is-split .hp-hero-grid.has-photo .hp-quick {
    order: 7;
  }
  .hp-hero.is-split .hp-hero-grid.has-photo .hp-hero-pick {
    order: 8;
  }
}
/* 11-08 상담 화면 질문 칸 바로 위 「치료비 · 예약은 전화 · 카톡으로」 · 병원 자기 게시판 · 관리 계정 */
.hp-ask-direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--hp-soft);
}
.hp-ask-direct p {
  margin: 0;
}
.hp-ask-direct-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hp-board-up {
  margin-bottom: 8px;
  font-size: 15px;
}
.hp-board-up a {
  color: var(--hp-muted);
}
.hp-board-meta {
  color: var(--hp-muted);
  font-size: 14px;
}
.hp-board-list {
  list-style: none;
  border-top: 1px solid var(--hp-line);
}
.hp-board-list li {
  border-bottom: 1px solid var(--hp-line);
}
.hp-board-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 14px 2px;
  color: var(--hp-ink);
  text-decoration: none;
}
.hp-board-list a:hover .hp-board-title, .hp-board-list a:focus-visible .hp-board-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hp-board-title {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.hp-board-body {
  max-width: 44em;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.hp-board-body p + p {
  margin-top: 1em;
}
.hp-board-body img {
  max-width: 100%;
  height: auto;
}
.hp-board-body h3 {
  margin: 1.9em 0 0.55em;
  font-size: 1.12em;
  font-weight: 800;
  line-height: 1.45;
}
.hp-board-body > h3:first-child {
  margin-top: 0;
}
.hp-board-body figure {
  margin: 1.2em 0;
}
.hp-board-body figure img {
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}
.hp-board-body figcaption {
  margin-top: 6px;
  font-size: 14px;
  color: var(--hp-muted);
  text-align: center;
}
.hp-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.hp-board-drop {
  margin-top: 28px;
}
/* 11-22 「원장님이 ○년 ○월에 다시 확인한 글입니다」 · 원장님 계정에만 보이는 「다시 읽고 확인했어요」 */
.hp-board-reviewed {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 44em;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--hp-line);
  color: var(--hp-muted);
  font-size: 14.5px;
}
.hp-board-reviewed .hp-ic {
  flex: none;
  color: var(--hp-accent);
}
.hp-board-review {
  margin-top: 20px;
}
.hp-board-review small {
  display: block;
  margin-top: 8px;
  color: var(--hp-muted);
}
/* 11-23 게시판 목록 모양 — 증상별 사례 카드(전후사례) · 고민별 묶음(케이스 스토리) · 사례 글 틀 */
/* 이름 = hp-bcard(예전부터 있는 hp-card · hp-cards 블록과 안 겹치게 — 처음 판이 그 이름을 써서 다른 카드 칸까지 바뀔 뻔했음) · 폰 = 그림 왼쪽 가로 카드 · 640px부터 세로 카드 */
.hp-bcards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 6px 0 4px;
  padding: 0;
}
@media (min-width: 640px) {
  .hp-bcards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (min-width: 1000px) {
  .hp-bcards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
.hp-bcard {
  display: flex;
  align-items: center;
  height: 100%;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius, 14px);
  background: var(--hp-surface);
  color: var(--hp-ink) !important;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.hp-bcard:hover, .hp-bcard:focus-visible {
  border-color: var(--hp-accent);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.hp-bcard-art {
  flex: none;
  display: block;
  width: 40%;
  max-width: 170px;
  aspect-ratio: 1.7777777778;
  align-self: center;
  margin-left: 8px;
  border-radius: 10px;
  background: var(--hp-soft);
  overflow: hidden;
}
.hp-bcard-art svg, .hp-bcard-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.hp-bcard-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
}
.hp-bcard-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.hp-bcard-lead {
  color: var(--hp-muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-bcard-meta {
  margin-top: auto;
  padding-top: 2px;
  color: var(--hp-accent);
  font-size: 13px;
  font-weight: 700;
}
@media (min-width: 640px) {
  .hp-bcard {
    flex-direction: column;
  }
  .hp-bcard {
    align-items: stretch;
  }
  .hp-bcard-art {
    width: 100%;
    max-width: none;
    aspect-ratio: 1.6;
    margin: 0;
    border-radius: 0;
    align-self: auto;
  }
  .hp-bcard-body {
    padding: 14px 16px 16px;
  }
  .hp-bcard-lead {
    -webkit-line-clamp: 3;
  }
}
.hp-case-note {
  max-width: 44em;
  margin: 22px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--hp-soft);
  color: var(--hp-muted);
  font-size: 14px;
  line-height: 1.6;
}
.hp-topic-chips {
  margin: 4px 0 24px;
}
.hp-topic-chips a[aria-current="true"] {
  background: var(--hp-accent);
  border-color: var(--hp-accent);
  color: var(--hp-on-accent) !important;
}
.hp-topic-chips small {
  margin-left: 5px;
  font-size: 12.5px;
  opacity: 0.75;
}
.hp-topic {
  margin: 0 0 30px;
  scroll-margin-top: 90px;
}
.hp-topic-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 19px;
}
.hp-topic-head small {
  color: var(--hp-muted);
  font-size: 14px;
  font-weight: 600;
}
.hp-topic-art {
  flex: none;
  width: 56px;
  height: 35px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--hp-soft);
}
.hp-topic-art svg, .hp-topic-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hp-line);
}
.hp-topic-list li {
  break-inside: avoid;
  border-bottom: 1px solid var(--hp-line);
}
.hp-topic-list a {
  display: block;
  min-height: 44px;
  padding: 13px 2px;
  color: var(--hp-ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.45;
}
.hp-topic-list a:hover, .hp-topic-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 1000px) {
  .hp-topic-list {
    columns: 2;
    column-gap: 36px;
  }
}
.hp-case-intro {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.hp-case-ba {
  max-width: 560px;
  margin: 0 0 6px;
}
.hp-case-more {
  margin-top: 28px;
}
.hp-case-more h2 {
  font-size: 18px;
  margin: 0 0 10px;
}
.hp-case-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  max-width: 760px;
}
.hp-case-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--hp-line);
}
.hp-case-rel {
  margin-top: 28px;
}
.hp-case-rel h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.hp-case-rel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44em;
  border-top: 1px solid var(--hp-line);
}
.hp-case-rel li {
  border-bottom: 1px solid var(--hp-line);
}
.hp-case-rel a {
  display: block;
  padding: 12px 2px;
  color: var(--hp-ink);
  text-decoration: none;
  font-weight: 600;
}
.hp-case-rel small {
  display: block;
  margin-bottom: 2px;
  color: var(--hp-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.hp-case-ask {
  max-width: 44em;
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--hp-radius, 14px);
  background: var(--hp-tint, var(--hp-soft));
}
.hp-case-ask p {
  margin: 0;
}
.hp-case-ask .hp-next {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
/* 11-23 PC 「전화」 단추 — 단추 옆 번호 · 누르면 「전화번호를 복사했습니다」 한 줄(폰은 바로 전화라 안 나옴) */
.hp-tel-num {
  margin-left: 8px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hp-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  max-width: min(92vw, 520px);
  margin: 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--hp-ink);
  color: var(--hp-bg);
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.hp-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
  .hp-toast {
    transition: none;
  }
}
.hp-accounts {
  list-style: none;
  margin-bottom: 18px;
}
.hp-accounts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hp-line);
}
.hp-accounts small {
  color: var(--hp-muted);
}
.hp-accounts form {
  margin: 0;
}
/* 11-21 환자 로그인(카카오 · 네이버 버튼 — 각 회사 버튼 안내 색: 카카오 #FEE500 · 검은 글 / 네이버 #03C75A · 흰 글) */
.hp-login-btns {
  list-style: none;
  margin: 24px 0 14px;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 360px;
}
.hp-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 12px;
  font-size: 16.5px;
  font-weight: 700;
  text-decoration: none;
}
.hp-login-btn.is-kakao {
  background: #fee500;
  color: rgba(0, 0, 0, 0.85) !important;
}
.hp-login-btn.is-naver {
  background: #03c75a;
  color: #fff !important;
}
.hp-login-btn svg {
  flex: none;
}
.hp-login-n {
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.hp-login-fail {
  padding: 10px 14px;
  border-radius: 8px;
  background: #fdecec;
  color: #8a1f1f;
}
.hp-login-forget {
  margin-top: 28px;
}
.hp-login-btn.is-egot {
  background: #1f3a6b;
  color: #fff !important;
}
/* 11-22 환자 로그인 자리(대표님 「넣어」) — 폰 = 메뉴 맨 위 테두리 단추 · PC = 전화번호 옆 작은 글자 · 로그인하면 「로그아웃」(흐린 단추) */
.hp-drawer .hp-drawer-login {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 4px;
  padding: 13px 4px;
  border: 1.5px solid var(--hp-accent);
  border-radius: var(--hp-btn-radius, 12px);
  color: var(--hp-accent);
  font-weight: 700;
}
.hp-drawer .hp-drawer-login.is-out {
  border-color: var(--hp-line);
  color: var(--hp-muted);
  font-weight: 600;
}
.hp-head-login {
  display: none;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--hp-muted);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
}
.hp-head-login:hover {
  color: var(--hp-ink);
  background: var(--hp-tint);
}
.hp[data-head="brand"] .hp-head-login {
  color: var(--hp-on-head, var(--hp-on-accent));
  opacity: 0.86;
}
.hp[data-head="brand"] .hp-head-login:hover {
  opacity: 1;
  background: color-mix(in srgb, var(--hp-on-head, var(--hp-on-accent)) 16%, transparent);
}
@media (min-width: 1000px) {
  /* 「가운데」 · 「두 줄 왼쪽」 — 전화 칸 자리에 로그인 + 전화를 한 줄로(폰에서는 전화 · 로고 · 메뉴 칸 그대로) */
  .hp-head-login {
    display: inline-block;
  }
  .hp[data-frame="center"] .hp-head-act {
    display: flex;
    grid-area: call;
    justify-self: end;
    align-items: center;
    gap: 6px;
  }
}
/* 11-23 상담 질문 칸(홈페이지 안) — 사진 줄 · 자르기 창(설계2 · 터치 칸 44px · 앱 안 브라우저 높이 550px에서도 단추가 보이게) */
.hp-askx-label {
  font-weight: 700;
  font-size: 15px;
}
.hp-askx-label small {
  font-weight: 500;
  color: var(--hp-muted);
  margin-left: 4px;
}
.hp-askx-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hp-askx-list:empty {
  display: none;
}
@media (min-width: 640px) {
  .hp-askx-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.hp-askx-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1.6;
  padding: 0;
  border: 1px solid var(--hp-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--hp-soft);
  cursor: pointer;
}
.hp-askx-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hp-askx-thumb:focus-visible {
  outline: 3px solid var(--hp-accent);
  outline-offset: 2px;
}
.hp-askx-add-row {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hp-askx-add {
  min-height: 44px;
  border-style: dashed;
  flex: 1 1 140px;
  justify-content: center;
}
.hp-askx-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--hp-muted);
}
.hp-askx-status.is-alert {
  color: #b42318;
  font-weight: 600;
}
.hp-askx-done, .hp-askx-resume {
  margin-bottom: 14px;
}
.hp-askx-done:focus, .hp-askx-resume:focus {
  outline: none;
}
.hp-askx-done[hidden], .hp-askx-resume[hidden], .hp-askx-done a[hidden], .hp-askx-add-row[hidden] {
  display: none;
}
.hp-crop {
  width: min(560px, 100vw);
  max-width: 100vw;
  max-height: 100dvh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--hp-surface);
  color: var(--hp-ink);
}
.hp-crop::backdrop {
  background: rgba(10, 14, 22, 0.72);
}
.hp-crop-in {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 16px;
  max-height: 100dvh;
  overflow: auto;
}
.hp-crop h2 {
  margin: 0 44px 0 0;
  font-size: 18px;
  font-weight: 800;
}
.hp-crop-count {
  margin: -4px 0 0;
  font-size: 14px;
  color: var(--hp-muted);
  min-height: 1em;
}
.hp-crop-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1.6;
  max-height: calc(100dvh - 250px);
  overflow: hidden;
  border-radius: 12px;
  background: #0f141b;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.hp-crop-frame:focus-visible {
  outline: 3px solid var(--hp-accent);
  outline-offset: 2px;
}
.hp-crop-frame img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  -webkit-user-drag: none;
}
.hp-crop-frame:active {
  cursor: grabbing;
}
.hp-crop-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--hp-muted);
}
.hp-crop-zoom input {
  flex: 1;
  min-height: 44px;
  accent-color: var(--hp-accent);
}
.hp-crop-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.hp-crop-btns .hp-btn {
  min-height: 44px;
  flex: 1 1 auto;
  justify-content: center;
}
.hp-crop-del {
  color: #b42318;
}
.hp-crop-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--hp-ink);
  cursor: pointer;
}
.hp-crop-close:hover {
  background: var(--hp-soft);
}
@media (max-width: 560px) {
  .hp-crop {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .hp-crop-in {
    height: 100%;
  }
}
/*# sourceMappingURL=f7ffff2e563465b890b852ae113bdbb3d5d8df67.homepage.scss.map */
