@charset "utf-8";
/* 아이누리한의원 천안점 — inurinet.kr
   그리드 레이아웃·디자인·애니메이션은 daedaesonsonbusan.kr 의 것을 그대로 옮겼다 (2026-09-22 사용자 지시).
   topbar → sticky header → hero(켄번즈 배경 + 제목 광택 + 배지 글로우) / breadcrumb + page-hero(제목 그라데이션 스윕)
   → section(two-col · philo/card-grid · gallery 타일 · process · hours-col · faq) → 둥근 CTA 카드 → 4단 푸터
   → 우측 퀵바(전화 펄스·흔들림 / 오시는 길 / TOP) → 모바일 floating CTA(부유).
   색만 다르다. 주조색은 브랜드 노랑 #f4c21e, 어두운 면은 차콜. 갈색은 로고와 전화 버튼 글씨에만 남긴다.
   메뉴 밑줄 모션만은 참고 사이트 것이 아니라 2026-09-22 별도 지시로 만든 것이다 (CLAUDE.md §내비게이션). */

:root {
  --yellow:      #f4c21e;
  --yellow-2:    #ffd23f;
  --yellow-deep: #d3a300;
  --amber:       #8a6a00;

  --ink:      #232323;
  --ink-mid:  #555555;
  --ink-soft: #7a7a7a;
  --dark:     #1f1f1f;
  --dark-2:   #2b2b2b;

  --paper:  #ffffff;
  --cream:  #fffbea;
  --cream-2:#fff3c4;
  --line:   #f0e2a8;
  --line-2: #e6cf7a;

  --container: 1160px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(120, 90, 0, .06);
  --shadow: 0 1px 2px rgba(120, 90, 0, .06), 0 8px 28px rgba(120, 90, 0, .08);
  --shadow-lg: 0 24px 48px -20px rgba(120, 90, 0, .28), 0 10px 20px -12px rgba(120, 90, 0, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --serif: "Nanum Myeongjo", "NanumMyeongjo", "Apple SD Gothic Neo", serif;
  --on-dark: #fffdf5;
  --on-dark-soft: rgba(255, 253, 245, .74);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; letter-spacing: -.01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--ink); }
p a { text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.25; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(19px, 2vw, 22px); }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .4em; }
li::marker { color: var(--yellow-deep); }
strong { font-weight: 700; color: var(--ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 900px; }
/* 개인정보처리방침·404 — 법적 고지문은 카드 없이 좁은 컬럼에 h2 단락으로 둔다 */
.legal > section + section { margin-top: 40px; }
.legal > section h2 { font-size: clamp(20px, 2.4vw, 26px); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--dark); color: var(--yellow); padding: .7em 1.2em; }
.skip:focus { left: 0; }

/* ── 섹션 ───────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(40px, 6vw, 64px) 0; }
.section--ivory, .section--sand { background: var(--cream-2); }
.section--paper { background: var(--paper); }
.section-title { max-width: 800px; }
.section-title p { color: var(--ink-mid); font-size: 17px; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .12em; color: var(--amber); text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--yellow-deep); vertical-align: middle; margin-right: 10px; transform: translateY(-2px); }

/* ── topbar ─────────────────────────────────── */
.topbar { background: var(--dark); color: var(--on-dark-soft); font-size: 12.5px; border-bottom: 1px solid rgba(244, 194, 30, .18); }
.topbar__row { display: flex; align-items: center; justify-content: center; height: 34px; gap: 10px; flex-wrap: wrap; text-align: center; }
.topbar__row a { color: var(--on-dark); font-weight: 600; }
.topbar__row a:hover { color: var(--yellow); }
.topbar__divider { color: rgba(244, 194, 30, .45); }
@media (max-width: 560px) { .topbar__row { height: auto; padding: 6px 0; gap: 6px 10px; font-size: 12px; } }

/* ── header ─────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 248, .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.site-header .row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1; text-decoration: none; flex: 0 0 auto; }
/* 심볼 마크는 장식이라 <img> 가 아니라 배경으로 넣는다 (옆 워드마크의 alt 가 상호를 읽는다) */
.brand .mark { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
  background: url("../img/logo-symbol.svg") center / cover no-repeat; transition: transform .3s var(--pop); }
.brand:hover .mark { transform: scale(1.05); }
.brand img.word { width: 132px; height: auto; }
.brand .sub { font-size: 12px; color: var(--ink-soft); border-left: 1px solid var(--line-2); padding-left: 10px; line-height: 1.3; }

.gnb { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.gnb ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.gnb a {
  position: relative; isolation: isolate;
  display: block; padding: 10px 14px 12px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: color .2s var(--ease), transform .12s var(--ease);
}
/* 밑줄 하나로 hover 와 현재 페이지를 같이 쓴다.
   transform-origin 을 상태별로 뒤집어서, 커서가 빠질 때 되감기처럼 보이지 않게 했다
   (들어올 땐 왼→오, 나갈 땐 오른쪽으로 걷힌다). */
.gnb a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  border-radius: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .34s var(--ease);
}
.gnb a:hover { color: var(--amber); }
.gnb a:hover::after, .gnb a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.gnb a:active { transform: translateY(1px); }

/* 현재 페이지 — 굵은 글씨 + 굵은 밑줄만. 배경 면은 두지 않는다 (2026-09-22 지시).
   밑줄은 페이지가 열릴 때 한 번 그려지고 반복 재생하지 않는다. */
.gnb a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.gnb a[aria-current="page"]::after {
  height: 3px; background: var(--yellow-deep);
  transform: scaleX(1); transform-origin: left center;
  animation: nav-current-line .56s var(--ease) .08s both;
}
@keyframes nav-current-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nav-current-bar  { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
/* 전화 버튼 — 모양은 참고 이미지의 라운드 태그(로고 노랑 그라디언트 + 로고 갈색 글씨).
   모션은 참고 사이트의 telAttention(들썩이며 흔들림) + telRing(확산 링) 을 그대로. */
.header-tel {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 17px; border-radius: 14px;
  background: linear-gradient(180deg, #ffdc63 0%, var(--yellow) 48%, #e5b112 100%);
  color: #5d3328; font-size: 14.5px; font-weight: 700; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85),
              inset 0 -2px 0 rgba(122, 78, 0, .18),
              0 8px 18px -6px rgba(122, 78, 0, .55);
  transform-origin: center;
  animation: telAttention 2.4s ease-in-out infinite;
  transition: background .2s ease, box-shadow .25s var(--ease), color .2s, transform .2s var(--pop);
}
.header-tel::before {
  content: ""; position: absolute; inset: -4px; border-radius: inherit; pointer-events: none; z-index: -1;
  box-shadow: 0 0 0 0 rgba(244, 194, 30, .55);
  animation: telRing 2.4s ease-out infinite;
}
.header-tel:hover, .header-tel:focus-visible {
  color: #4a2620;
  background: linear-gradient(180deg, #ffe58a 0%, var(--yellow-2) 48%, #edbb1a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92),
              inset 0 -2px 0 rgba(122, 78, 0, .2),
              0 12px 24px -6px rgba(122, 78, 0, .5);
  animation-play-state: paused;
  transform: translateY(-2px);
}
.header-tel:active { box-shadow: inset 0 2px 5px rgba(122, 78, 0, .32), 0 3px 8px -6px rgba(122, 78, 0, .5); }
.header-tel svg { width: 15px; height: 15px; flex: 0 0 auto; fill: currentColor; }
@keyframes telAttention {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  15%      { transform: translateY(-2px) rotate(-2deg); }
  30%      { transform: translateY(0) rotate(2deg); }
  45%      { transform: translateY(-1px) rotate(-1deg); }
  60%      { transform: translateY(0) rotate(0deg); }
}
@keyframes telRing {
  0%   { box-shadow: 0 0 0 0 rgba(244, 194, 30, .55); }
  70%  { box-shadow: 0 0 0 14px rgba(244, 194, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 194, 30, 0); }
}

.mobile-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.mobile-toggle svg { width: 26px; height: 26px; stroke: currentColor; }

@media (max-width: 900px) {
  .brand .sub { display: none; }
  .brand img.word { width: 118px; }
  .site-header .row { height: 64px; }
  /* JS 없이도 메뉴가 보여야 한다 — 기본은 가로 스크롤 줄, JS 가 붙으면 토글 메뉴 */
  .gnb { margin-left: 0; flex: 1 1 100%; order: 3; overflow-x: auto; scrollbar-width: none; }
  .gnb ul::-webkit-scrollbar { display: none; }
  .site-header .row { flex-wrap: wrap; height: auto; padding: 8px 0; }
  .gnb a { padding: 8px 12px 10px; font-size: 14.5px; white-space: nowrap; }
  .gnb a::after { left: 12px; right: 12px; bottom: 3px; }
  .nav-cta { margin-left: 6px; }
  .nav-cta .header-tel { padding: 8px 14px; font-size: 13.5px; border-radius: 12px; }
  html.js-nav .site-header .row { flex-wrap: nowrap; height: 64px; padding: 0; }
  html.js-nav .gnb { display: none; position: fixed; inset: 64px 0 auto 0; background: var(--paper);
    flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); order: 0; overflow: visible; }
  html.js-nav .gnb.open { display: flex; }
  html.js-nav .gnb ul { flex-direction: column; gap: 2px; }
  html.js-nav .gnb a { padding: 14px 14px; font-size: 16px; }
  /* 세로로 쌓인 메뉴에서는 밑줄이 어색하다. 같은 ::after 를 왼쪽 세로 막대로 돌려 쓴다 */
  html.js-nav .gnb a::after {
    left: 0; right: auto; top: 7px; bottom: 7px; width: 3px; height: auto; border-radius: 3px;
    transform: scaleY(0); transform-origin: center bottom;
  }
  html.js-nav .gnb a:hover::after, html.js-nav .gnb a:focus-visible::after { transform: scaleY(1); transform-origin: center top; }
  html.js-nav .gnb a[aria-current="page"]::after { transform: scaleY(1); transform-origin: center top; animation: nav-current-bar .46s var(--ease) .08s both; }
  html.js-nav .mobile-toggle { display: block; }
  html.js-nav .nav-cta .header-tel span.label { display: none; }
}

/* ── 버튼 (hover 시 광택이 왼→오로 스치는 참고 사이트 모션 포함) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer; line-height: 1; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: transform .2s var(--pop), box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease, filter .2s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .55s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); transition-duration: .08s; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-primary, .btn-tel { background: var(--yellow); color: var(--ink) !important; box-shadow: 0 4px 14px rgba(120, 90, 0, .18); }
.btn-primary:hover, .btn-tel:hover { background: var(--yellow-2); box-shadow: 0 10px 24px rgba(120, 90, 0, .26); }
.btn-outline, .btn-line { background: transparent; color: var(--ink); border-color: var(--yellow); }
.btn-outline:hover, .btn-line:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-ghost { background: rgba(244, 194, 30, .12); color: var(--on-dark); border-color: var(--yellow); }
.btn-ghost:hover { background: var(--yellow); color: var(--ink); }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* ── 홈 히어로 — 배경 사진 켄번즈 + 어두운 오버레이 + 단일 컬럼 카피 ── */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--on-dark);
  background: var(--dark); padding: clamp(56px, 8vw, 96px) 0;
}
.hero::before {
  content: ""; position: absolute; inset: -6%; z-index: -2;   /* 확대돼도 가장자리가 안 보이게 여유를 둔다 */
  background: url("../img/hero-waiting-room.webp") center right / cover no-repeat;
  transform-origin: 65% 55%;
  animation: heroKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 18, 8, .82) 0%, rgba(20, 18, 8, .55) 50%, rgba(20, 18, 8, .15) 100%),
              linear-gradient(180deg, rgba(40, 32, 8, .35) 0%, rgba(20, 18, 8, .45) 100%);
}
@keyframes heroKenBurns {
  0%   { transform: scale(1)    translate3d(0, 0, 0); }
  50%  { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
  100% { transform: scale(1.12) translate3d(1%, 1.5%, 0); }
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 640px); gap: clamp(32px, 5vw, 72px); align-items: center; min-height: clamp(400px, 55vh, 560px); }
/* 배지 — 노란 링이 천천히 숨 쉬듯 퍼진다 */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 253, 245, .14); border: 1px solid rgba(244, 194, 30, .7); color: var(--on-dark);
  font-size: 13px; font-weight: 600; margin-bottom: 20px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 0 0 0 rgba(244, 194, 30, .35);
  animation: badgeGlow 2.8s ease-in-out infinite;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 194, 30, .25), 0 0 8px rgba(244, 194, 30, .15); }
  50%      { box-shadow: 0 0 0 4px rgba(244, 194, 30, 0), 0 0 14px rgba(244, 194, 30, .35); }
}
/* 히어로 제목 — 아이보리 글자 위로 밝은 광택 띠가 오른쪽에서 왼쪽으로 스친다.
   글자 자체를 그라데이션으로 칠하고(background-clip: text) 광택 층을 그 위에 겹쳐 움직인다. */
.hero h1 {
  font-size: clamp(30px, 4.8vw, 52px); line-height: 1.18; letter-spacing: -.03em; margin-bottom: 22px;
  color: var(--on-dark); position: relative;
  background-image:
    linear-gradient(115deg, transparent 0%, transparent 42%, rgba(255, 240, 180, .95) 48%, #fff3c4 50%, rgba(255, 240, 180, .95) 52%, transparent 58%, transparent 100%),
    linear-gradient(var(--on-dark), var(--on-dark));
  background-size: 300% 100%, 100% 100%;
  background-position: 150% center, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 30px rgba(244, 194, 30, .18);
  animation: heroShine 5s ease-in-out infinite;
}
.hero h1 .accent {
  background: linear-gradient(var(--yellow), var(--yellow));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@keyframes heroShine {
  0%, 35% { background-position: 150% center, 0 0; }   /* 오른쪽에 대기 */
  65%     { background-position: -50% center, 0 0; }   /* 왼쪽으로 휙 통과 */
  100%    { background-position: -50% center, 0 0; }
}
.hero-lead { font-size: clamp(16px, 1.6vw, 18px); color: rgba(255, 253, 245, .88); margin-bottom: 32px; max-width: 560px; }
.hero .chips { margin: 4px 0 28px; }
.hero .chip { background: rgba(255, 253, 245, .1); border-color: rgba(255, 253, 245, .3); color: var(--on-dark); backdrop-filter: blur(3px); }
.hero .chip:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.hero .btn-outline, .hero .btn-ghost { border-color: rgba(255, 253, 245, .5); color: var(--on-dark); background: rgba(255, 253, 245, .08); }
.hero .btn-outline:hover, .hero .btn-ghost:hover { background: rgba(255, 253, 245, .18); border-color: var(--yellow); color: var(--on-dark); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 253, 245, .2); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hero-meta .item strong { display: block; font-size: 20px; color: var(--on-dark); margin-bottom: 4px; }
.hero-meta .item span { font-size: 13px; color: var(--on-dark-soft); }
@media (max-width: 900px) {
  .hero::before { background-position: center; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-meta .item strong { font-size: 16px; }
}

/* ── 내부 페이지: 브레드크럼 바 + page-hero ─────────── */
.breadcrumb-bar { padding: 14px 0; font-size: 13px; color: var(--on-dark-soft); background: var(--dark); position: relative; z-index: 1; box-shadow: inset 0 1px 0 rgba(244, 194, 30, .15); }
.breadcrumb { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: rgba(244, 194, 30, .5); }
.breadcrumb a { color: var(--on-dark-soft); }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb [aria-current="page"] { color: var(--yellow); font-weight: 600; }

.page-hero {
  padding: clamp(64px, 9vw, 104px) 0 clamp(48px, 7vw, 72px); color: var(--on-dark);
  background: var(--dark); position: relative; overflow: hidden; isolation: isolate;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
}
/* 배경 사진(준공촬영) 위에 어두운 그라데이션 한 겹 */
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(140deg, rgba(24, 22, 10, .88) 0%, rgba(31, 31, 31, .75) 50%, rgba(60, 48, 10, .7) 100%),
    radial-gradient(1200px 500px at 85% -20%, rgba(244, 194, 30, .22), transparent 60%),
    radial-gradient(800px 400px at 10% 120%, rgba(211, 163, 0, .15), transparent 60%),
    url("../img/page-hero.webp") center 40% / cover no-repeat;
  filter: saturate(.7);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--yellow); }
.page-hero .eyebrow::before { background: var(--yellow); opacity: .9; }
/* 서브페이지 제목 — 아이보리→노랑→아이보리 그라데이션이 6초 주기로 좌우로 흐른다 */
.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; letter-spacing: -.025em;
  background: linear-gradient(100deg, #fffdf5 0%, #fff0b8 25%, var(--yellow) 45%, #fff0b8 55%, #fffdf5 100%);
  background-size: 220% auto; background-position: 0% center;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: heroGradientSweep 6s ease-in-out infinite;
  text-shadow: 0 1px 30px rgba(244, 194, 30, .15);
}
@keyframes heroGradientSweep {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}
.page-hero p { font-size: 17px; color: rgba(255, 253, 245, .85); max-width: 720px; margin: 0; }
.page-hero .chips { margin: 22px 0 0; }
.page-hero .chip { background: rgba(255, 253, 245, .1); border-color: rgba(255, 253, 245, .3); color: var(--on-dark); }
.page-hero .chip:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* ── 2단 ───────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.two-col.reverse > :first-child { order: 2; }
.two-col > * > .eyebrow + h2, .two-col > * > h2:first-child { margin-top: 0; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .two-col.reverse > :first-child { order: 0; } }

.clinic-hero-img, .doctor-portrait {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--cream-2); margin: 0;
}
.clinic-hero-img img, .doctor-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.doctor-portrait img { object-position: center 15%; }
.clinic-hero-img figure, .doctor-portrait figure { margin: 0; height: 100%; }
.clinic-hero-img figcaption, .doctor-portrait figcaption { display: none; }

/* 원장 인사 — 사진 비중을 줄이고 오른쪽 글에 밀도를 준다 (빈 아래쪽이 크게 남던 자리) */
.two-col--doctor { grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); align-items: center; gap: clamp(28px, 4.4vw, 56px); }
.two-col--doctor .doctor-portrait { max-width: 340px; border-radius: var(--radius); }
.doctor-intro h2 { margin: 0 0 16px; }
.doctor-intro h2 .role { font-size: .52em; font-weight: 600; color: var(--ink-soft); letter-spacing: -.01em; margin-left: 10px; white-space: nowrap; }
.doctor-intro .doctor-lead { font-size: clamp(16px, 1.7vw, 18px); line-height: 1.75; color: var(--ink); margin: 0 0 22px; max-width: 46ch; }
.doctor-intro > p:not(.doctor-lead) { color: var(--ink-soft); margin: 0; }
.doctor-intro .check-list { margin: 4px 0 18px; }
.doctor-intro .doctor-sign { color: var(--ink); }

/* 카드형 인용구 — 왼쪽 굵은 선 대신 둥근 액센트 바 + 옅은 그라디언트 면 */
.pull-quote--card {
  position: relative; border: 0; border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #fffdf5, var(--cream-2));
  box-shadow: inset 0 0 0 1px rgba(196, 154, 12, .18), 0 10px 26px -18px rgba(120, 90, 0, .45);
  padding: 24px 28px 24px 30px; margin: 0 0 24px;
  font-size: clamp(17px, 1.9vw, 19.5px); font-weight: 600; line-height: 1.72; color: var(--ink);
}
.pull-quote--card::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px;
  border-radius: 0 4px 4px 0; background: linear-gradient(var(--yellow), var(--yellow-deep));
}
@media (max-width: 560px) { .pull-quote--card { padding: 20px 20px 20px 24px; } }

/* ── 표 ─────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 24px 0 0; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; background: var(--paper); }
caption { caption-side: top; text-align: left; font-size: 14px; color: var(--ink-soft); padding: 0 0 8px; }
th, td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--cream-2); font-weight: 700; }
tbody th { background: #fffdf3; font-weight: 600; white-space: nowrap; }

.hours-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.hours-table th, .hours-table td { padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours-table--tall th, .hours-table--tall td { padding-top: 12px; padding-bottom: 12px; }
.hours-table th { width: 140px; background: var(--cream-2); font-weight: 600; white-space: nowrap; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table .lunch { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.hours-table .closed { color: #b44127; font-weight: 600; }

.notice { background: var(--cream-2); border-left: 3px solid var(--yellow-deep); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 13.5px; color: var(--ink-mid); margin: 24px 0 0; }
.notice strong { color: var(--ink); }
.notice > :last-child { margin-bottom: 0; }
.note { background: var(--cream-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0 0; font-size: 15.5px; }
.caution { background: #fff8dc; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0 0; font-size: 15.5px; }
.note > :last-child, .caution > :last-child { margin-bottom: 0; }
.note h3, .caution h3 { margin-top: 0; font-size: 17px; }

/* ── 이미지 ─────────────────────────────────── */
figure { margin: 24px 0; }
figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }

/* 사진 타일 — 참고 사이트 about 의 시설 사진 카드(4:3, 들썩임 + 확대). 캡션은 카드 안에 넣었다 */
.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 32px 0 0; }
.gallery:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery:has(> :nth-child(3):last-child), .gallery:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery figure {
  margin: 0; scroll-margin-top: 100px; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}
.gallery figure:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(120, 90, 0, .25); border-color: var(--yellow); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: 0; box-shadow: none; filter: saturate(.95); transition: transform .6s var(--ease), filter .4s ease; }
.gallery figure:hover img { transform: scale(1.05); filter: saturate(1.05); }
.gallery figcaption { padding: 14px 16px 16px; margin: 0; font-size: 14px; color: var(--ink); font-weight: 600; }
/* 시설 사진(/about/#clinic): 캡션 없는 타일. 흰 카드 면·테두리를 빼고 사진만 남긴다.
   들썩임과 확대는 다른 갤러리와 똑같이 둔다 */
.gallery--plain figure { background: none; border: 0; box-shadow: none; }
.gallery--plain figure:hover { box-shadow: 0 20px 40px -18px rgba(120, 90, 0, .25); }
/* 타일은 전부 같은 4:3 — 참고 사이트처럼 가로형을 따로 키우지 않는다 (키우면 줄에 빈칸이 생긴다) */
@media (max-width: 900px) { .gallery, .gallery:has(> :nth-child(n)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery, .gallery:has(> :nth-child(n)) { grid-template-columns: 1fr; } }

/* 가로 캐러셀 (홈 시설 사진) */
.carousel { position: relative; margin: 32px 0 0; }
.carousel__track { list-style: none; margin: 0; padding: 4px 4px 18px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; -webkit-overflow-scrolling: touch; }
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-track { background: transparent; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.carousel__slide { flex: 0 0 clamp(240px, 30%, 320px); scroll-snap-align: start; margin: 0; }
@media (max-width: 720px) { .carousel__slide { flex-basis: min(78vw, 300px); } }
.carousel__slide figure { margin: 0; height: 100%; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease; }
.carousel__slide figure:hover { transform: translateY(-6px); border-color: var(--yellow); box-shadow: var(--shadow); }
.carousel__slide img { aspect-ratio: 4/3; object-fit: cover; border-radius: 0; box-shadow: none; transition: transform .6s var(--ease); }
.carousel__slide figure:hover img { transform: scale(1.05); }
.carousel__slide figcaption { padding: 16px 18px 20px; margin: 0; font-size: 17px; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
/* 캡션 없는 캐러셀(홈 둘러보기): 흰 카드 면을 빼고 사진만 남긴다 — .gallery--plain 과 같은 처리 */
.carousel--plain .carousel__slide figure { background: none; border: 0; box-shadow: none; }
.carousel--plain .carousel__slide figure:hover { box-shadow: var(--shadow); }
.carousel__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.carousel__btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease; }
.carousel__btn:hover:not(:disabled) { background: var(--yellow); border-color: var(--yellow); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__btn svg { width: 20px; height: 20px; }
@media (max-width: 720px) { .carousel__nav { justify-content: center; } }

/* ── 카드 그리드 (진료 카드 · philo 카드 공용) ───────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }
/* 4장은 2×2, 6장은 3×2, 8장은 4×2, 9장은 3×3 — 3+1 같은 어정쩡한 줄이 생기지 않게 */
.card-grid:has(> :nth-child(2):last-child), .card-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid:has(> :nth-child(3):last-child), .card-grid:has(> :nth-child(6):last-child), .card-grid:has(> :nth-child(9):last-child), .card-grid:has(> :nth-child(12):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid--compact { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important; gap: 14px; }
@media (max-width: 900px) { .card-grid, .card-grid:has(> :nth-child(n)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid, .card-grid:has(> :nth-child(n)) { grid-template-columns: 1fr !important; } }

.p-card { display: flex; flex-direction: column; margin: 0; position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .35s var(--ease), border-color .25s ease, box-shadow .35s ease; will-change: transform; }
.p-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 30px 60px -20px rgba(120, 90, 0, .25), 0 12px 24px -12px rgba(120, 90, 0, .15); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.p-card:hover { transform: translateY(-6px); border-color: var(--yellow); }
.p-card:hover::before { opacity: 1; }
.p-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-2); position: relative; transition: transform .6s var(--ease); }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; filter: saturate(.95); transition: transform .6s var(--ease), filter .4s ease; }
.p-card:hover .p-card__media img { transform: scale(1.06); filter: saturate(1.05) brightness(1.03); }
.p-card__body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.p-card__tag { font-size: 12px; letter-spacing: .08em; color: var(--amber); font-weight: 700; text-transform: uppercase; }
.p-card h3 { font-size: 20px; margin: 8px 0 10px; letter-spacing: -.02em; }
.p-card h3 a { color: inherit; }
.p-card h3 a::after { content: ""; position: absolute; inset: 0; }
.p-card p { font-size: 14.5px; color: var(--ink-mid); margin: 0 0 18px; flex: 1; }
.p-card__items { margin: 0 0 16px !important; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 13px !important; color: var(--ink-soft) !important; flex: 0 0 auto !important; }
.p-card__more { font-size: 14px; color: var(--amber); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.p-card__more::after { content: "→"; transition: transform .15s; }
.p-card:hover .p-card__more::after { transform: translateX(4px); }
.p-card.is-key { border-color: var(--yellow-deep); }
.p-card.is-key .p-card__media::after { content: ""; position: absolute; top: 12px; left: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(244, 194, 30, .35); }

/* 번호 카드 (참고: philo) */
.philo-grid, .num-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; }
.philo, .num-card { margin: 0; padding: 28px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line-2); transition: transform .35s var(--ease), box-shadow .35s ease, border-color .25s ease; }
.philo:hover, .num-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(120, 90, 0, .22); border-color: var(--yellow); }
.philo__num, .num-card__num { font-family: var(--serif); font-size: 28px; color: var(--yellow-deep); font-weight: 700; line-height: 1.2; }
.philo h3, .num-card h3 { font-size: 19px; margin: 10px 0 8px; }
.philo p, .num-card p { font-size: 14.5px; color: var(--ink-mid); margin: 0; }
.philo p + p { margin-top: 8px; }
.philo--sm { padding: 20px 22px; text-align: left; }
.philo--sm h3 { font-size: 16px; margin: 0; }

/* 진료 절차 — 참고 사이트 그대로: 가운데 정렬, 번호 원, 단계 사이 화살표 */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; position: relative; }
.process > li { list-style: none; margin: 0; }
.process--six { grid-template-columns: repeat(6, 1fr); }
.process__step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; text-align: center; position: relative; transition: transform .3s ease, box-shadow .3s ease; }
.process__step:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(120, 90, 0, .22); }
.process__num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 18px; margin: 0 auto 14px;
  transition: transform .3s var(--pop), box-shadow .3s ease;
}
.process__step:hover .process__num { transform: scale(1.08) rotate(-4deg); box-shadow: 0 8px 16px rgba(120, 90, 0, .25); }
.process__step h3, .process__step h4 { font-size: 16px; margin: 0 0 6px; }
.process__step p { font-size: 13px; color: var(--ink-mid); margin: 0; }
.process__step:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 40px; color: var(--yellow-deep); font-size: 18px; font-weight: 700; z-index: 2; }
@media (max-width: 1080px) {
  .process--six { grid-template-columns: repeat(3, 1fr); }
  .process--six .process__step:nth-child(3)::after { display: none; }
}
@media (max-width: 800px) {
  .process, .process--six { grid-template-columns: repeat(2, 1fr); }
  .process__step:not(:last-child)::after { display: none; }
}

/* 정보 카드 */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; }
.info-item { margin: 0; padding: 20px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.info-item:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(120, 90, 0, .18); border-color: var(--yellow); }
.info-item dt { font-size: 12px; letter-spacing: .08em; color: var(--amber); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.info-item dd { margin: 0; font-size: 16px; color: var(--ink); font-weight: 500; }
.info-item dd small { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 4px; font-weight: 400; }

/* 진료 시간 페이지 — 두 컬럼을 억지로 같은 높이로 늘이지 않는다.
   늘이면 표의 일곱 줄이 오른쪽 카드 높이만큼 벌어져 한 화면에 안 들어왔다. */
.two-col:has(> .hours-col) { align-items: start; }
.hours-col { display: flex; flex-direction: column; min-height: 0; }
.hours-col > .eyebrow, .hours-col > h2 { flex: 0 0 auto; }
.hours-col .hours-table--tall { flex: 0 0 auto; }
.hours-col .notice { flex: 0 0 auto; }
.hours-col__cta { flex: 0 0 auto; margin-top: 24px; }
.hours-col .info-grid--stretch { flex: 0 0 auto; grid-auto-rows: auto; margin: 0; }
.info-grid--stretch .info-item { display: flex; flex-direction: column; justify-content: flex-start; }
/* 아이콘 카드는 2×2 로 — 한 줄에 하나씩 쌓으면 오른쪽 컬럼만 길어진다 */
.hours-col .info-grid--iconed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; grid-auto-rows: auto; }
.info-grid--iconed .info-item { align-items: flex-start; justify-content: flex-start; padding: 18px; gap: 8px; min-height: 0; }
.info-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cream-2), var(--paper)); color: var(--amber); border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(120, 90, 0, .06), inset 0 -2px 0 rgba(122, 78, 0, .06); flex: 0 0 auto;
  transition: transform .3s var(--pop), color .2s ease, background .25s ease;
}
.info-icon svg { width: 22px; height: 22px; }
.info-item:hover .info-icon { transform: rotate(-6deg) scale(1.06); color: var(--ink); background: linear-gradient(135deg, #fffdf5, var(--cream-2)); }
@media (max-width: 900px) {
  .hours-col { gap: 20px; }
}
@media (max-width: 620px) {
  .hours-col .info-grid--iconed { grid-template-columns: 1fr; }
}

/* 이력 카드 (참고: career) */
.career { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: transform .3s ease, box-shadow .3s ease, border-color .25s ease; }
.career:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(120, 90, 0, .22); border-color: var(--yellow); }
.career h3 { font-size: 18px; color: var(--amber); margin: 0 0 16px; }
.career ul { list-style: none; padding: 0; margin: 0; }
.career li { padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; color: var(--ink); display: flex; gap: 12px; align-items: baseline; margin: 0; }
.career li:last-child { border-bottom: 0; }
.career li::before { content: "•"; color: var(--yellow-deep); flex: 0 0 auto; }
.two-col--cards { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .two-col--cards { grid-template-columns: 1fr; } }

/* 지도 */
.map-wrap { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--cream-2); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
/* 칩 바탕은 섹션 배경을 그대로 비춘다 (흰 면이 크림색 섹션 위에서 떠 보였다) */
.chip { display: inline-block; margin: 0; padding: 6px 12px; background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink); cursor: default; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.chip:hover { transform: translateY(-2px); background: var(--yellow); border-color: var(--yellow); }
/* 링크 칩 — 글자색·밑줄은 칩이 관리한다 (누를 수 있다는 건 hover 로 드러난다) */
.chips--links .chip { cursor: pointer; padding: 0; }
.chips--links .chip a { display: block; padding: 6px 12px; color: inherit; text-decoration: none; }

/* FAQ — 참고 구조 그대로, 색만 노랑 */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; scroll-margin-top: 100px; transition: box-shadow .25s ease, border-color .25s ease; }
.faq details:hover { border-color: var(--yellow-deep); box-shadow: 0 10px 24px -14px rgba(120, 90, 0, .18); }
.faq details[open] { box-shadow: 0 14px 30px -16px rgba(120, 90, 0, .22); border-color: var(--yellow-deep); }
.faq summary { padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--amber); font-weight: 300; flex: 0 0 auto; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line-2); }
.faq .faq-a { padding: 20px 24px; color: var(--ink-mid); font-size: 15px; line-height: 1.7; }
.faq .faq-a > :last-child { margin-bottom: 0; }
.faq .faq-a .table-scroll { margin-top: 16px; }
.faq .faq-q-tag { display: inline-block; font-family: var(--serif); color: var(--yellow-deep); font-weight: 700; margin-right: 8px; }

/* 바이라인 · 링크 목록 */
.byline { margin: 40px 0 0; padding: 20px 24px; border-radius: var(--radius); background: var(--cream-2); font-size: 14px; color: var(--ink-mid); line-height: 1.7; }
.byline p { margin: 0 0 .35em; }
.byline p:last-child { margin-bottom: 0; }
.next-links { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.next-links li { margin: 0; }
.next-links a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 600; color: var(--ink); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.next-links a:hover { border-color: var(--yellow); background: #fff8dc; transform: translateX(3px); }

/* ── CTA 카드 ──────────────────────────────────── */
/* 배경은 로비 사진. 노랑 면을 덮으면 사진이 안 보여서 걷어내고,
   page-hero 와 같은 방식으로 어두운 그라데이션만 깔아 글자를 밝은 색으로 올린다 */
.cta-band {
  background: var(--dark); color: var(--on-dark); border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 56px); text-align: center;
  margin: 0; box-shadow: 0 30px 60px -25px rgba(120, 90, 0, .5); position: relative; overflow: hidden; isolation: isolate;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(140deg, rgba(24, 22, 10, .72) 0%, rgba(31, 31, 31, .58) 50%, rgba(60, 48, 10, .62) 100%),
    radial-gradient(900px 400px at 85% -20%, rgba(244, 194, 30, .2), transparent 60%),
    url("/assets/img/cta-reception-wide.webp") center 62% / cover no-repeat;
}
.cta-band > * { position: relative; }
.cta-band .eyebrow { color: var(--yellow); }
.cta-band .eyebrow::before { background: var(--yellow); opacity: .9; }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 12px; color: var(--on-dark); }
.cta-band p { color: var(--on-dark-soft); margin-bottom: 20px; }
.cta-band .tel-big { color: var(--yellow); font-size: clamp(26px, 4vw, 38px); font-weight: 800; display: inline-block; letter-spacing: -.01em; }
.cta-band .tel-big:hover { color: #fff0b8; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 18px 0 0; }
.cta-band .btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-band .btn-ghost:hover { background: var(--dark); color: var(--yellow); border-color: var(--dark); }

/* ── 우측 퀵바 (참고 quickbar.js — 여기서는 HTML 에 정적으로 넣고 TOP 만 JS) ── */
.quickbar { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 95; }
.qb-btn {
  width: 62px; height: 62px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; border: 0; padding: 0; font-family: inherit; font-size: 10.5px; font-weight: 700; line-height: 1.1; text-align: center; text-decoration: none;
  color: var(--on-dark);
  box-shadow: 0 6px 16px -4px rgba(60, 40, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: transform .25s var(--pop), box-shadow .25s ease, background .25s ease;
}
.qb-btn:hover { transform: translateX(-3px) scale(1.05); }
.qb-ico { display: flex; align-items: center; justify-content: center; }
.qb-ico svg { width: 22px; height: 22px; }
.qb-label { font-size: 9.5px; letter-spacing: -.02em; }
/* 1. 전화 예약 — 브랜드 노랑 그라디언트 + 흰 원 안의 아이콘 + 펄스 + 흔들림 */
.qb-tel {
  background: linear-gradient(135deg, #ffd23f 0%, #f4c21e 50%, #d3a300 100%);
  color: #5d3328 !important; transform-origin: center;
  animation: qbTelPulse 1.8s ease-in-out infinite, qbTelShake 2.4s ease-in-out infinite;
}
.qb-tel .qb-ico { background: rgba(255, 255, 255, .95); border-radius: 50%; width: 32px; height: 32px; box-shadow: 0 2px 6px rgba(122, 78, 0, .35); }
.qb-tel .qb-ico svg { width: 18px; height: 18px; stroke: #b98d00; fill: none; stroke-width: 2.2; }
.qb-tel:hover { animation-play-state: paused; background: linear-gradient(135deg, #ffe07a 0%, #ffd23f 50%, #f4c21e 100%); }
@keyframes qbTelPulse {
  0%, 100% { box-shadow: 0 6px 18px -4px rgba(122, 78, 0, .5), 0 0 0 0 rgba(244, 194, 30, .6); }
  50%      { box-shadow: 0 10px 24px -4px rgba(122, 78, 0, .65), 0 0 0 14px rgba(244, 194, 30, 0); }
}
@keyframes qbTelShake {
  0%, 92%, 100% { transform: rotate(0deg); }
  93%           { transform: rotate(-8deg); }
  95%           { transform: rotate(8deg); }
  97%           { transform: rotate(-6deg); }
  99%           { transform: rotate(4deg); }
}
/* 2. 네이버 예약 · 블로그 — 네이버 초록. 전화(노랑)·오시는 길(차콜)과 역할이 구분되게 */
.qb-book { background: linear-gradient(135deg, #06d167 0%, #03c75a 100%); color: #fff !important; box-shadow: 0 6px 16px -4px rgba(3, 140, 65, .45), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.qb-book:hover { background: linear-gradient(135deg, #1ade79 0%, #06d167 100%); }
.qb-blog { background: var(--paper); color: #03a94d !important; border: 1px solid #9fe3bd; box-shadow: 0 6px 16px -4px rgba(3, 140, 65, .18); }
.qb-blog:hover { background: #f1fdf5; border-color: #03c75a; color: #02913f !important; }
/* 2. 오시는 길 — 차콜 */
.qb-map { background: linear-gradient(135deg, #3a3a3a 0%, var(--dark) 100%); color: var(--on-dark) !important; box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.qb-map:hover { background: linear-gradient(135deg, #4a4a4a 0%, var(--dark-2) 100%); color: var(--yellow) !important; }
/* 3. TOP — 크림 카드형. 스크롤이 내려가면 JS 가 보여 준다 */
.qb-top {
  background: rgba(255, 253, 245, .95); color: var(--ink) !important; backdrop-filter: blur(8px); border: 1px solid var(--yellow-deep);
  box-shadow: 0 6px 16px -4px rgba(120, 90, 0, .25);
  opacity: 0; pointer-events: none; transform: translateX(0) scale(.85);
  transition: opacity .3s ease, transform .3s var(--pop), background .2s ease;
}
.qb-top:hover { background: #fff; }
.qb-top.qb-top--visible { opacity: 1; pointer-events: auto; transform: translateX(0) scale(1); }
@media (max-width: 900px) {
  .quickbar { right: 12px; gap: 8px; }
  .qb-btn { width: 52px; height: 52px; font-size: 9.5px; }
  .qb-ico svg { width: 18px; height: 18px; }
  .qb-btn .qb-label { display: none; }
}
@media (max-width: 480px) { .quickbar { display: none; } }

/* ── 모바일 floating CTA (천천히 떠 있는 참고 모션 포함) ─────── */
.floating-cta {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 90;
  background: rgba(255, 253, 248, .96); backdrop-filter: blur(10px); padding: 8px; border-radius: 999px;
  box-shadow: 0 16px 40px rgba(120, 90, 0, .22), 0 4px 10px rgba(120, 90, 0, .1); border: 1px solid var(--line);
  animation: floatY 3.5s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-4px); }
}
.floating-cta .btn { padding: 10px 16px; font-size: 14px; }
@media (min-width: 901px) { .floating-cta { display: none; } }

/* ── 푸터 (4단) ─────────────────────────────── */
.site-footer { background: var(--dark); color: var(--on-dark-soft); padding: 56px 0 32px; font-size: 14px; }
.site-footer a { color: var(--on-dark-soft); }
.site-footer a:hover { color: var(--yellow); }
.footer-title { color: var(--on-dark); font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .biz-name { font-size: 18px; font-weight: 700; color: var(--yellow); margin: 0 0 6px; }
.footer-brand p { color: var(--on-dark-soft); font-size: 13px; margin: 0 0 8px; }
.footer-brand address { font-style: normal; font-size: 13.5px; margin: 0 0 8px; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 253, 245, .1); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: rgba(255, 253, 245, .5); }

/* ── 스크롤 리빌 (JS 가 <html> 에 .js-reveal-ready 를 붙인 뒤에만 숨긴다) ── */
html.js-reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease); }
html.js-reveal-ready .reveal.in { opacity: 1; transform: none; }
html.js-reveal-ready .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s var(--ease); }
html.js-reveal-ready .reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .47s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .54s; }
.reveal-stagger.in > *:nth-child(n+9) { transition-delay: .58s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero::before { animation: none; transform: scale(1.02); }
  .hero h1, .page-hero h1 { animation: none; }
  .badge, .floating-cta { animation: none; }
  .header-tel, .header-tel::before, .qb-tel { animation: none; }
  .p-card, .p-card__media, .p-card__media img, .num-card, .philo, .gallery figure, .gallery img, .carousel__slide figure, .carousel__slide img,
  .process__step, .process__num, .btn, .btn::after, .chip, .info-item, .info-icon, .career, .next-links a, .brand .mark, .qb-btn { transition: none !important; }
  .p-card:hover, .num-card:hover, .philo:hover, .gallery figure:hover, .carousel__slide figure:hover, .process__step:hover,
  .info-item:hover, .career:hover, .btn:hover, .chip:hover, .next-links a:hover, .p-card:hover .p-card__media img,
  .gallery figure:hover img, .carousel__slide figure:hover img, .qb-btn:hover { transform: none !important; }
  .faq summary::after { transition: none; }
  .gnb a::after { transition: none !important; }
  .gnb a[aria-current="page"]::after { animation: none; }
  .carousel__track { scroll-behavior: auto; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media print {
  .topbar, .site-header, .cta-band, .next-links, .carousel__nav, .floating-cta, .quickbar { display: none; }
  body { background: #fff; font-size: 12pt; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .page-hero h1 { -webkit-text-fill-color: #000; color: #000; background: none; }
}
