@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;500&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #fbf7f6;
  --white: #ffffff;
  --blush: #f4e8e6;
  --rose: #c9a3a6;
  --rose-deep: #8a5c64;
  --rose-deeper: #74484f;
  --ink: #40272c;
  --muted: #7b6064;
  --line: #e4d3d2;
  /* 제목 글꼴은 이 한 줄만 바꾸면 전체가 바뀝니다 */
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--rose) var(--bg); scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.75;
  color: var(--ink); background: var(--bg); word-break: keep-all; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--rose); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.45; }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.5; }
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 4px; }
.on-photo :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: 16px; top: -60px; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(1280px, 100% - 64px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 64px); margin-inline: auto; }
.center { text-align: center; }
.lead { margin-top: 20px; color: var(--muted); font-size: 1.06rem; max-width: 40em; }
.center .lead { margin-inline: auto; }

/* ---------- 상단 메뉴 ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 20; color: #fff; }
.nav .wrap { display: flex; align-items: center; height: 96px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 21px; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { font-weight: 400; line-height: 1.2; }
.logo small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.26em; margin-top: 3px; }
.menu { display: flex; gap: clamp(24px, 4vw, 64px); margin: 0 auto; padding: 0; list-style: none; font-size: 16px; }
.menu a { display: block; padding: 10px 0; position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform 0.45s var(--ease); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { font-size: 14.5px; padding: 9px 22px; border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 999px; transition: background 0.3s, color 0.3s; white-space: nowrap; }
.nav-cta:hover { background: #fff; color: var(--ink); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; }

/* ---------- 버튼 ---------- */
.line-btn { display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 34px; border: 1px solid currentColor; border-radius: 999px; font-size: 15px; letter-spacing: 0.02em; transition: background 0.35s, color 0.35s, border-color 0.35s; cursor: pointer; background: none; color: inherit; font-family: inherit; }
.line-btn svg { width: 22px; height: 10px; transition: transform 0.45s var(--ease); }
.line-btn:hover svg { transform: translateX(5px); }
.on-photo .line-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.line-btn.dark:hover { background: var(--rose-deep); color: #fff; border-color: var(--rose-deep); }
.fill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 38px; background: var(--rose-deep); color: #fff; font-size: 15.5px; border: 0; cursor: pointer; font-family: inherit; transition: background 0.3s; }
.fill-btn:hover { background: var(--rose-deeper); }

/* ---------- 메인 첫 화면 ---------- */
.hero { position: relative; height: clamp(620px, 100svh, 920px); overflow: hidden; color: #fff; display: grid; place-items: center; text-align: center; background: #6d4a50; }
.hero-photo { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; animation: drift 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { from { transform: scale(1) translate3d(-1.2%, 0.8%, 0); } to { transform: scale(1.07) translate3d(1.2%, -0.8%, 0); } }
.hero-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(86, 44, 56, 0.52) 0%, rgba(150, 96, 108, 0.36) 45%, rgba(86, 44, 56, 0.56) 100%); }
.hero-glow { position: absolute; inset: -20%; background: radial-gradient(38% 34% at 50% 50%, rgba(255, 226, 232, 0.3), rgba(255, 226, 232, 0) 70%); animation: glow 17s ease-in-out infinite alternate; mix-blend-mode: soft-light; }
@keyframes glow { from { transform: translate3d(-22%, -8%, 0); } to { transform: translate3d(22%, 10%, 0); } }
.hero-copy { position: relative; z-index: 2; padding: 40px 24px 0; }
.hero h1 { font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1.48; font-weight: 400; }
.hero h1 span { display: block; animation: rise 1.5s var(--ease) both; }
.hero h1 span + span { animation-delay: 0.18s; }
.hero-sub { margin: 24px auto 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1rem, 1.3vw, 1.18rem); animation: rise 1.5s 0.34s var(--ease) both; }
.hero .line-btn { margin-top: 44px; animation: rise 1.5s 0.48s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.scroll { position: absolute; right: 44px; bottom: 130px; z-index: 2; writing-mode: vertical-rl; font-size: 11px; letter-spacing: 0.32em; display: flex; align-items: center; gap: 12px; }
.scroll::after { content: ""; width: 1px; height: 64px; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); animation: drip 2.6s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60%, 100% { transform: scaleY(1); } }
.quick { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 3; background: var(--rose-deep); color: #fff; font-size: 15px; padding: 15px 34px 14px; display: flex; align-items: center; gap: 12px; transition: background 0.3s; white-space: nowrap; }
.quick:hover { background: var(--rose-deeper); }
.quick svg { width: 12px; height: 12px; }

/* ---------- 하위 페이지 첫 화면 ---------- */
.page-hero { position: relative; min-height: clamp(380px, 56svh, 540px); overflow: hidden; color: #fff; display: grid; place-items: end center; text-align: center; background: #6d4a50; padding: 150px 24px 76px; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(86, 44, 56, 0.6), rgba(120, 74, 84, 0.5) 50%, rgba(70, 36, 46, 0.66)); }
.page-hero > div { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.45; }
.page-hero p { margin-top: 16px; font-family: var(--serif); font-weight: 300; font-size: 1.08rem; }
.crumbs { display: flex; justify-content: center; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 13.5px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.7; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 섹션 공통 ---------- */
.section { padding: clamp(88px, 11vw, 150px) 0; }
.section.white { background: var(--white); }
.section.blush { background: var(--blush); }
.textured { position: relative; overflow: hidden; }
.textured::before { content: ""; position: absolute; inset: 0; background: url("../img/texture.webp") center / cover; opacity: 0.22; }
.textured > * { position: relative; }

/* 숫자 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 80px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { padding: 54px 20px 50px; border-right: 1px solid var(--line); text-align: center; }
.stats li:last-child { border-right: 0; }
.stats .num { font-family: var(--serif); font-weight: 300; font-size: clamp(3.1rem, 5.4vw, 5rem); line-height: 1; color: var(--rose-deep); }
.stats .num small { font-size: 0.34em; margin-left: 6px; color: var(--ink); font-weight: 400; }
.stats .label { display: block; margin-top: 22px; font-size: 1.02rem; font-weight: 500; }
.stats .note { display: block; margin-top: 4px; font-size: 0.92rem; color: var(--muted); }

/* 좌우 나눔 */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; align-items: center; }
.split .sticky { position: sticky; top: 48px; }
.hair-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.hair-list li { padding: 34px 0 36px; border-bottom: 1px solid var(--line); }
.hair-list h3 + p { margin-top: 10px; color: var(--muted); }
.photo { position: relative; overflow: hidden; background: var(--blush); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 16 / 10; }
.photo.arch { border-radius: 999px 999px 0 0; }
.photo.tinted::after { content: ""; position: absolute; inset: 0; background: rgba(150, 96, 108, 0.16); }

/* 진료 카드 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3.4vw, 56px); margin-top: 76px; align-items: start; }
.card { position: relative; display: block; overflow: hidden; color: #fff; aspect-ratio: 4 / 5; background: var(--rose-deep); }
.card:nth-child(2) { margin-top: 84px; border-radius: 999px 999px 0 0; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(86, 52, 58, 0.1) 30%, rgba(60, 34, 40, 0.78) 100%); transition: opacity 0.5s; }
.card:hover img { transform: scale(1.06); }
.card-text { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding: 24px 24px 46px; text-align: center; }
.card-text strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.card-text span { font-size: 0.96rem; }
.plus { width: 46px; height: 46px; margin-top: 12px; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 50%; display: grid; place-items: center; transition: background 0.4s, color 0.4s; }
.plus svg { width: 14px; height: 14px; }
.card:hover .plus { background: #fff; color: var(--ink); }
.has-ghost { position: relative; overflow: hidden; padding-bottom: clamp(170px, 20vw, 260px); }
.ghost { position: absolute; left: 50%; bottom: -0.16em; transform: translateX(-50%); font-family: var(--serif); font-size: clamp(5.4rem, 16.5vw, 16.5rem); line-height: 1; letter-spacing: 0.03em; color: var(--blush); white-space: nowrap; pointer-events: none; user-select: none; }

/* 표 */
.table-scroll { overflow-x: auto; margin-top: 56px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 20px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 500; border-bottom: 1px solid var(--ink); font-size: 0.98rem; }
tbody th { font-family: var(--serif); font-weight: 400; width: 24%; white-space: nowrap; }
td { color: var(--muted); }

/* 순서 */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); margin: 64px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 30px 26px 8px 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--serif); font-weight: 300; font-size: 2rem; color: var(--rose-deep); line-height: 1; margin-bottom: 18px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 0.98rem; }

/* 자주 묻는 질문 */
.faq { margin-top: 56px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-family: var(--serif); font-size: 1.14rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transform: translateY(-50%); transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 48px 30px 0; color: var(--muted); }
.note-box { margin-top: 56px; padding: 26px 30px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 0.95rem; }

/* 본문 글 */
.prose h2 { margin-top: 84px; font-size: clamp(1.5rem, 2.3vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 20px; }
.prose ul { margin: 20px 0 0; padding-left: 1.2em; }
.prose li { margin-top: 8px; }
.prose li::marker { color: var(--rose); }

/* 의료진 */
.doctor { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 6vw, 100px); align-items: start; padding: clamp(60px, 8vw, 100px) 0; border-bottom: 1px solid var(--line); }
.doctor:first-of-type { padding-top: 0; }
.doctor:last-of-type { border-bottom: 0; padding-bottom: 0; }
.doctor.flip { grid-template-columns: 6fr 5fr; }
.doctor.flip .portrait { order: 2; }
.portrait { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #ecd9d8, #d9bcbd); display: grid; place-items: center; color: var(--rose-deeper); font-size: 0.95rem; text-align: center; padding: 24px; }
.portrait { padding: 0; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.doctor h2 small { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-left: 12px; letter-spacing: 0; }
.doctor .role { margin-top: 10px; color: var(--rose-deep); font-weight: 500; }
.doctor .say { margin-top: 26px; }
.cv { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--ink); }
.cv h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; padding: 20px 0 6px; }
.cv ul { margin: 0; padding: 0 0 8px; list-style: none; color: var(--muted); font-size: 0.97rem; }
.cv li { padding: 5px 0; }

/* 진료시간·오시는 길 */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); margin-top: 64px; align-items: start; }
.info-list { margin: 0; border-top: 1px solid var(--ink); }
.info-list div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 500; }
.info-list dd { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.map { aspect-ratio: 4 / 3; background: var(--blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 40h120M0 90h120M35 0v120M95 0v120' stroke='%23e4d3d2' stroke-width='6' fill='none'/%3E%3C/svg%3E"); display: grid; place-items: center; text-align: center; color: var(--rose-deeper); font-size: 0.95rem; padding: 24px; }
.map span { background: var(--white); padding: 12px 20px; border: 1px solid var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.center .btn-row { justify-content: center; }

/* 예약 폼 */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin-top: 56px; text-align: left; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.95rem; font-weight: 500; margin-bottom: 8px; }
.form input, .form select, .form textarea { width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; border-radius: 0; caret-color: var(--rose-deep); transition: border-color 0.25s; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--rose-deep); }
.form input::placeholder, .form textarea::placeholder { color: #8a7073; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--muted); }
.check input { width: 20px; min-height: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--rose-deep); flex: none; }
.check label { margin: 0; font-weight: 400; }
.form-msg { grid-column: 1 / -1; padding: 18px 22px; background: var(--white); border: 1px solid var(--rose); display: none; }
.form-msg.show { display: block; }

/* 안내 창 */
.notice { position: fixed; left: 28px; bottom: 76px; z-index: 35; width: min(340px, calc(100% - 32px)); background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(64, 39, 44, 0.45); padding: 26px 26px 0; }
.notice[hidden] { display: none; }
.notice h2 { font-size: 1.2rem; }
.notice p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.notice-actions { display: flex; margin: 22px -26px 0; border-top: 1px solid var(--line); }
.notice-actions button { flex: 1; padding: 14px 8px; border: 0; background: none; font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; }
.notice-actions button + button { border-left: 1px solid var(--line); }
.notice-actions button:hover { background: var(--blush); }

/* 예약 띠 */
.cta-band { position: relative; overflow: hidden; background: var(--rose-deep); color: #fff; text-align: center; padding: clamp(80px, 9vw, 120px) 24px; }
.cta-band p { margin-top: 14px; }
.cta-band .line-btn { margin-top: 36px; }

/* 고정 버튼 */
.rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 30; display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.97); border: 1px solid var(--line); border-right: 0; }
.rail a { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 80px; padding: 16px 6px; font-size: 12.5px; color: var(--ink); border-bottom: 1px solid var(--line); transition: background 0.25s, color 0.25s; }
.rail a:last-child { border-bottom: 0; }
.rail a:hover { background: var(--rose-deep); color: #fff; }
.rail svg { width: 22px; height: 22px; }

/* 하단 */
.footer { background: #33201f; color: #eedfdd; padding: 80px 0 110px; font-size: 0.94rem; }
.footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.footer .logo { color: #fff; }
.footer h2 { font-family: var(--sans); font-size: 0.92rem; font-weight: 600; letter-spacing: 0; color: #fff; }
.footer ul { margin: 14px 0 0; padding: 0; list-style: none; }
.footer li { padding: 4px 0; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer .biz { margin-top: 22px; color: #d9c3c1; line-height: 1.8; }
.footer .sample-line { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.16); color: #fff; }
.sample { position: fixed; left: 16px; bottom: 16px; z-index: 40; background: rgba(48, 30, 34, 0.94); color: #fff; font-size: 12.5px; padding: 8px 14px; }

/* 스크롤 등장 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1080px) {
  .menu, .nav-cta { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .menu.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 84px; left: 20px; right: 20px; margin: 0; background: #fff; color: var(--ink); padding: 8px 24px; border: 1px solid var(--line); }
  .menu.open li + li { border-top: 1px solid var(--line); }
  .menu.open a { padding: 15px 0; }
  .menu.open a::after { display: none; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 40px); }
  .nav .wrap { height: 72px; }
  .logo { font-size: 18px; }
  .hero { height: clamp(560px, 92svh, 760px); }
  .hero-copy { padding-top: 0; }
  .hero h1 { font-size: 1.6rem; line-height: 1.55; }
  .scroll { display: none; }
  .quick { bottom: 58px; width: calc(100% - 40px); justify-content: center; }
  .page-hero { padding: 120px 20px 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 52px; }
  .stats li { padding: 38px 10px 34px; }
  .stats li:nth-child(2) { border-right: 0; }
  .stats li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .split, .split.even, .doctor, .info-grid { grid-template-columns: 1fr; }
  .split .sticky { position: static; }
  .doctor.flip .portrait { order: 0; }
  .cards { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
  .card { aspect-ratio: 5 / 4; }
  .card:nth-child(2) { margin-top: 0; border-radius: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cv { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .info-list div { grid-template-columns: 6em 1fr; }
  .rail { top: auto; bottom: 0; left: 0; right: 0; transform: none; flex-direction: row; border: 0; border-top: 1px solid var(--line); background: #fff; }
  .rail a { flex: 1; width: auto; flex-direction: row; justify-content: center; padding: 16px 4px; font-size: 13.5px; border-bottom: 0; border-right: 1px solid var(--line); }
  .rail a:last-child { border-right: 0; }
  .rail svg { width: 18px; height: 18px; }
  .sample { left: 50%; transform: translateX(-50%); bottom: 64px; font-size: 12px; white-space: nowrap; padding: 6px 12px; }
  .notice { left: 16px; bottom: 104px; }
  .footer { padding: 64px 0 140px; }
  .footer .wrap { grid-template-columns: 1fr; gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* 점검 후 보완 */
.hero-photo { animation-delay: -13s; }
@media (min-width: 821px) and (max-width: 1500px) {
  .wrap { width: min(1280px, 100% - 152px); }
  .narrow { width: min(860px, 100% - 152px); }
  .rail a { width: 56px; padding: 15px 4px; font-size: 0; gap: 0; }
}
@media (max-width: 820px) {
  .doctor.flip { grid-template-columns: 1fr; }
  .quick { display: none; }
  .notice { bottom: 100px; padding: 20px 20px 0; }
  .notice-actions { margin: 16px -20px 0; }
}
.nav .logo { min-height: 44px; }

/* 진료 다섯 가지 */
.menu { gap: clamp(16px, 2.3vw, 40px); font-size: 15.5px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.6vw, 24px); margin-top: 72px; align-items: start; }
.tile { position: relative; display: block; overflow: hidden; color: #fff; aspect-ratio: 3 / 5; background: var(--rose-deep); }
.tile:nth-child(even) { margin-top: 64px; border-radius: 999px 999px 0 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(86, 52, 58, 0.06) 40%, rgba(60, 34, 40, 0.8) 100%); }
.tile:hover img { transform: scale(1.06); }
.tile-text { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 0 12px 34px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.tile-text strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1.7vw, 1.5rem); }
.tile-text span { font-size: 0.92rem; }
.svc-tabs { background: var(--white); border-bottom: 1px solid var(--line); }
.svc-tabs ul { display: flex; justify-content: center; gap: clamp(8px, 3vw, 48px); margin: 0 auto; padding: 0 20px; list-style: none; overflow-x: auto; }
.svc-tabs a { display: block; padding: 20px 6px 18px; white-space: nowrap; color: var(--muted); border-bottom: 2px solid transparent; transition: color 0.25s, border-color 0.25s; }
.svc-tabs a:hover { color: var(--ink); }
.svc-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--rose-deep); font-weight: 500; }
@media (max-width: 1240px) {
  .menu, .nav-cta { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .menu.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 84px; left: 20px; right: 20px; margin: 0; background: #fff; color: var(--ink); padding: 8px 24px; border: 1px solid var(--line); font-size: 16px; }
  .menu.open li + li { border-top: 1px solid var(--line); }
  .menu.open a { padding: 15px 0; }
  .menu.open a::after { display: none; }
}
@media (max-width: 820px) {
  .menu.open { top: 72px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
  .tile { aspect-ratio: 4 / 5; }
  .tile:nth-child(even) { margin-top: 0; border-radius: 0; }
  .tile:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .svc-tabs ul { justify-content: flex-start; }
}

/* 히어로: 사진 3장이 천천히 겹쳐 바뀜 (21초 주기) */
.hero-slides { position: absolute; inset: 0; }
.hero-slides .hero-photo { opacity: 0; animation: hero-fade 21s linear infinite, drift 26s ease-in-out -13s infinite alternate; }
.hero-slides .hero-photo:nth-child(1) { animation-delay: 0s, -13s; }
.hero-slides .hero-photo:nth-child(2) { animation-delay: 7s, -6s; }
.hero-slides .hero-photo:nth-child(3) { animation-delay: 14s, -19s; }
@keyframes hero-fade { 0% { opacity: 0; } 9% { opacity: 1; } 33.300% { opacity: 1; } 42.300% { opacity: 0; } 100% { opacity: 0; } }
.hero-slides .hero-photo:nth-child(1) { animation-name: hero-fade-first, drift; }
@keyframes hero-fade-first { 0% { opacity: 1; } 33.300% { opacity: 1; } 42.300% { opacity: 0; } 91% { opacity: 0; } 100% { opacity: 1; } }
.hero-bars { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-bars i { width: 34px; height: 2px; background: rgba(255, 255, 255, 0.35); overflow: hidden; position: relative; }
.hero-bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; animation: hero-bar 21s linear infinite; }
.hero-bars i:nth-child(2)::after { animation-delay: 7s; }
.hero-bars i:nth-child(3)::after { animation-delay: 14s; }
@keyframes hero-bar { 0% { transform: scaleX(0); } 33.300% { transform: scaleX(1); } 33.400%, 100% { transform: scaleX(0); } }

/* 시술 페이지 사진 */
.svc-photo { background: var(--white); padding: clamp(40px, 5vw, 72px) 0 0; }
.svc-photo figure { margin: 0; }
.svc-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.svc-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: right; }
.svc-photo + .section { padding-top: clamp(56px, 7vw, 96px); }
@media (max-width: 820px) {
  .svc-photo img { aspect-ratio: 4 / 3; }
  .svc-photo img[src*="model-body"] { aspect-ratio: 2 / 1; object-position: 80% 100%; }
  .hero-bars { bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides .hero-photo { opacity: 0; }
  .hero-slides .hero-photo:first-child { opacity: 1; }
  .hero-bars { display: none; }
}
.svc-photo img[src*="svc-skin"] { object-position: 50% 22%; }
.svc-photo img[src*="model-lifting"] { object-position: 50% 46%; }
.svc-photo img[src*="model-petit"] { object-position: 50% 38%; }
.svc-photo img[src*="model-hair"] { object-position: 28% 60%; }
.svc-photo img[src*="model-body"] { object-position: 50% 96%; }

/* ---------- 블로그 ---------- */
.nav.light { position: relative; color: var(--ink); background: var(--white); border-bottom: 1px solid var(--line); }
.nav.light .nav-cta { border-color: var(--ink); }
.nav.light .nav-cta:hover { background: var(--ink); color: #fff; }
.nav.light :focus-visible { outline-color: var(--rose-deep); }
.crumbs.dark { justify-content: flex-start; color: var(--muted); margin-bottom: 26px; }
.blog-head { background: var(--white); padding: clamp(48px, 6vw, 84px) 0 36px; }
.blog-head h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.3; }
.post-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; padding: 0; list-style: none; }
.post-filters button { min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.post-filters button:hover { border-color: var(--rose-deep); color: var(--ink); }
.post-filters button[aria-pressed="true"] { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.blog-list { background: var(--white); padding: 20px 0 clamp(88px, 10vw, 140px); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px); }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); color: var(--ink); transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.post-card[hidden] { display: none; }
a.post-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(64, 39, 44, 0.45); }
.post-card.is-static { cursor: default; }
.post-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #d9bcbd; display: grid; place-items: end center; padding: 0 9% 6%; }
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-thumb-title { position: relative; width: 100%; background: rgba(255, 255, 255, 0.92); padding: 10px 12px; text-align: center; font-family: var(--serif); font-weight: 500; font-size: clamp(1.02rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--ink); }
.post-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; }
.post-cat { font-size: 14px; font-weight: 600; color: var(--rose-deep); }
.post-card h2 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; line-height: 1.5; letter-spacing: -0.02em; }
.post-meta { font-size: 14px; color: var(--muted); }
.post-excerpt { color: var(--muted); font-size: 0.98rem; }
.blog-note { margin-top: 36px; font-size: 0.93rem; color: var(--muted); text-align: center; }

.post { background: var(--white); padding-bottom: clamp(72px, 8vw, 110px); }
.post-head { padding-top: clamp(40px, 5vw, 72px); }
.post-chip { display: inline-block; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--rose-deep); }
.post-head h1 { margin-top: 18px; font-family: var(--sans); font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.38; letter-spacing: -0.03em; }
.post-by { margin-top: 16px; font-size: 0.95rem; color: var(--muted); }
.toc { margin-top: 32px; padding: 24px 28px; background: var(--blush); border: 1px solid var(--line); }
.toc strong { font-size: 0.95rem; }
.toc ol { margin: 10px 0 0; padding-left: 1.2em; font-size: 0.97rem; }
.toc li { padding: 3px 0; }
.toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-cover { margin: 36px auto 0; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-content { margin-top: 40px; font-size: 1.06rem; line-height: 1.9; }
.post-content > p { margin-top: 14px; }
.post-content h2 { margin-top: 72px; font-family: var(--sans); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.45; scroll-margin-top: 24px; }
.post-content h3 { margin-top: 32px; font-family: var(--sans); font-weight: 700; font-size: 1.14rem; letter-spacing: -0.02em; }
.post-content h3 + p { margin-top: 8px; }
.post-content figure { margin: 26px 0 0; }
.post-content figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-content figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: right; }
.post-content .table-scroll { margin-top: 26px; }
.post-content table { min-width: 0; font-size: 0.98rem; }
.post-content tbody th { font-family: var(--sans); font-weight: 600; width: 34%; white-space: normal; }
.memo, .caution, .first-visit { margin-top: 36px; padding: 26px 28px; font-size: 1rem; line-height: 1.8; }
.memo { background: var(--blush); border-top: 2px solid var(--rose-deep); }
.caution { border: 1px solid var(--line); color: var(--muted); }
.caution strong { color: var(--ink); }
.first-visit { background: var(--bg); border: 1px solid var(--line); }
.memo p, .caution p { margin-top: 8px; }
.first-visit ol { margin: 10px 0 0; padding-left: 1.3em; }
.first-visit li { padding: 3px 0; }
.mid-cta { margin-top: 44px; padding: 30px 32px; background: var(--rose-deep); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.mid-cta p { margin-top: 6px; font-size: 0.98rem; }
.mid-cta .line-btn { margin: 0; border-color: #fff; color: #fff; }
.mid-cta .line-btn.dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.post-links { margin-top: 44px !important; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.97rem; }
.post-links a { text-decoration: underline; text-underline-offset: 4px; }
.author { margin-top: 28px; display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; padding: 24px; border: 1px solid var(--line); }
.author img { width: 96px; height: 96px; object-fit: cover; object-position: 50% 14%; border-radius: 50%; }
.author p { margin-top: 4px; font-size: 0.97rem; color: var(--muted); }
.more-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.95rem; color: var(--rose-deep); }
.more-link svg { width: 22px; height: 10px; transition: transform 0.45s var(--ease); }
.more-link:hover svg { transform: translateX(5px); }
.inquiry { background: var(--blush); padding: clamp(72px, 9vw, 120px) 0; text-align: center; }
.inquiry .lead { margin-inline: auto; }
.blog-more { background: var(--white); padding: clamp(72px, 9vw, 120px) 0; }
.blog-more-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
@media (max-width: 1040px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-body { padding: 22px 20px 26px; }
  .toc { padding: 20px 22px; }
  .mid-cta { padding: 26px 22px; }
  .author { grid-template-columns: 72px 1fr; padding: 20px; }
  .author img { width: 72px; height: 72px; }
}

/* 썸네일: 제목 띠가 사진의 주제를 가리지 않게, 사진을 위로 올리고 제목은 아래 띠로 둔다 */
.post-thumb { padding: 0; }
.post-thumb img { transform: translateY(-13%); }
a.post-card:hover .post-thumb img { transform: translateY(-13%) scale(1.05); }
.post-thumb-title { background: var(--blush); padding: 12px 14px; border-top: 1px solid var(--line); }
