/* 그대안에산부인과 신촌점 – 일본어 홈페이지 시안
   색상: 블로그스킨 추출값 / 레퍼런스: blcli(키비주얼·퀵메뉴·모션), museclinic, daumclinic */
:root {
  --coral: #DF624B;
  --coral-deep: #C9472F;
  --coral-soft: #E9897A;
  --peach: #FCF2EF;
  --ink: #2B2523;
  --ink-2: #6B6461;
  --ink-3: #A39C99;
  --line: #ECE6E4;
  --line-green: #06C755;
  --hd-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --f-ko: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --f-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  --f-serif-ko: 'Noto Serif KR', serif;
  --f-serif-ja: 'Noto Serif JP', 'Yu Mincho', serif;
  --f-en: 'Cormorant Garamond', 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hd-h); overflow-x: clip; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--f-ko); font-size: 16px; line-height: 1.75; letter-spacing: -.01em;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
html[lang="ja"] body {
  font-family: var(--f-ja); line-height: 1.85; letter-spacing: .02em;
  line-break: strict; word-break: auto-phrase;
}
.serif { font-family: var(--f-serif-ko); font-weight: 500; letter-spacing: -.02em; }
html[lang="ja"] .serif { font-family: var(--f-serif-ja); letter-spacing: .03em; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
em { font-style: normal; color: var(--coral); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 30px; border-radius: 2px;
  font-weight: 600; font-size: 15px; line-height: 1.3; text-align: center;
  transition: background .25s, color .25s, border-color .25s;
}
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn--line { background: var(--line-green); color: #fff; }
.btn--line:hover { background: #05AE4B; }
.btn--outline { border: 1px solid var(--ink); color: var(--ink); background: rgba(255,255,255,.4); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.hd {
  position: sticky; top: 0; z-index: 50; height: var(--hd-h);
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.hd.is-scrolled { box-shadow: 0 4px 20px rgba(43,37,35,.05); }
.hd__in { height: 100%; display: flex; align-items: center; gap: 40px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--coral); flex: none; }
.logo__mark { width: 34px; height: 34px; }
.logo__txt { color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.logo__txt i { font-style: normal; color: var(--coral); font-weight: 600; }

.gnb { margin-left: auto; }
.gnb > ul { display: flex; gap: 8px; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a {
  position: relative; display: block; padding: 0 20px; line-height: var(--hd-h);
  font-weight: 500; font-size: 16px; white-space: nowrap;
}
.gnb > ul > li > a::after {
  content: ''; position: absolute; left: 20px; right: 20px; bottom: 22px; height: 1px; background: var(--coral);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.gnb > ul > li:hover > a { color: var(--coral); }
.gnb > ul > li:hover > a::after { transform: scaleX(1); }
.gnb .sub {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px);
  min-width: 180px; padding: 14px 0; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(43,37,35,.06);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.gnb > ul > li:hover .sub, .gnb > ul > li:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb .sub a { display: block; padding: 7px 20px; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; text-align: center; }
.gnb .sub a:hover { color: var(--coral); }

.hd__right { display: flex; align-items: center; gap: 16px; flex: none; }
.lang { display: flex; align-items: center; }
.lang button {
  border: 0; background: none; padding: 4px 9px; font-size: 13px; font-weight: 600;
  color: var(--ink-3); letter-spacing: .06em; font-family: var(--f-ko); transition: color .2s;
}
.lang button + button { border-left: 1px solid var(--line); }
.lang button[aria-pressed="true"] { color: var(--coral); }
.burger { display: none; }

/* ---------- Hero : 배경 이미지 + 텍스트 ---------- */
.hero {
  position: relative; overflow: hidden;
  height: calc(100vh - var(--hd-h)); min-height: 640px; max-height: 920px;
  background: linear-gradient(110deg, #FBF4F1 0%, #F6E3DD 100%);
  display: flex; flex-direction: column;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% center;
  animation: kenburns 14s var(--ease) both;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(252,246,243,.92) 0%, rgba(252,246,243,.7) 34%, rgba(252,246,243,0) 62%);
}
.hero__txt { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.hero__txt > * { max-width: 600px; }
.kicker { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.hero__txt > .hero__en { max-width: none; white-space: nowrap; }
.hero__en { margin-top: 18px; font-family: var(--f-en); font-size: clamp(40px, 4.6vw, 64px); line-height: 1.05; font-weight: 400; letter-spacing: .01em; color: var(--ink); }
.hero__en em { font-style: italic; color: var(--coral); }
.hero__title { margin-top: 26px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; line-height: 1.45; letter-spacing: -.04em; }
html[lang="ja"] .hero__title { letter-spacing: .02em; font-size: clamp(24px, 2.4vw, 33px); }
.hero__desc { margin-top: 20px; font-size: 17px; color: var(--ink-2); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 96px; z-index: 2; transform: translateX(-50%);
  font-family: var(--f-en); font-size: 12px; letter-spacing: .3em; color: var(--ink-2);
  writing-mode: vertical-rl; padding-bottom: 96px;
}
.hero__scroll::before, .hero__scroll::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 80px; background: currentColor; }
.hero__scroll::before { opacity: .2; }
.hero__scroll::after { transform-origin: top; animation: scrollline 2.4s cubic-bezier(.65,0,.35,1) infinite; }
.hero__facts { position: relative; z-index: 2; background: rgba(255,255,255,.75); backdrop-filter: blur(6px); border-top: 1px solid rgba(255,255,255,.6); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 48px; padding-top: 22px; padding-bottom: 22px; }
.facts li { font-size: 14.5px; color: var(--ink-2); }
.facts b { color: var(--coral); font-weight: 600; margin-right: 10px; }

/* 히어로 등장 모션 */
.motion .hero__txt > * { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; }
.motion .hero__txt > :nth-child(1) { animation-delay: .15s; }
.motion .hero__txt > :nth-child(2) { animation-delay: .3s; }
.motion .hero__txt > :nth-child(3) { animation-delay: .45s; }
.motion .hero__txt > :nth-child(4) { animation-delay: .6s; }
.motion .hero__txt > :nth-child(5) { animation-delay: .75s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes scrollline {
  0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; }
  46% { transform: scaleY(1); transform-origin: bottom; } 90%, 100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 스크롤 등장 */
.motion .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.motion .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .motion .reveal, .motion .hero__txt > * { opacity: 1; transform: none; transition: none; animation: none; }
  .hero__bg img, .hero__scroll::after { animation: none; }
}

/* ---------- Section common ---------- */
.sec { padding: 130px 0; }
.sec--soft { background: #FAF6F5; }
.sec__head { text-align: center; margin-bottom: 64px; }
.label { font-family: var(--f-en); font-size: 17px; font-style: italic; letter-spacing: .06em; color: var(--coral); }
.sec__title { margin-top: 10px; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.5; }
.sec__desc { margin-top: 12px; color: var(--ink-2); }
.num { display: block; font-family: var(--f-en); font-size: 22px; color: var(--coral); line-height: 1; }
.more {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.more::after { content: ''; width: 28px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.more:hover { color: var(--coral); }
.more:hover::after { width: 44px; }

/* 이미지 */
.img { position: relative; overflow: hidden; background: #F1E9E6; }
.img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.img--34 { aspect-ratio: 3 / 4; }
.img--32 { aspect-ratio: 3 / 2; }
.ph {
  display: grid; place-items: center; text-align: center; padding: 16px;
  background: #EFEBEA; color: #A8A09D; font-size: 13.5px;
}
.ph--map { aspect-ratio: 16 / 9; margin-top: 18px; }

/* ---------- Treatment ---------- */
.treat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.treat__item { display: block; }
.treat__item:nth-child(2) { transition-delay: .12s; }
.treat__item:nth-child(3) { transition-delay: .24s; }
.treat__item:hover .img img { transform: scale(1.05); }
.treat__item h3 { margin-top: 26px; font-size: 21px; font-weight: 600; line-height: 1.45; transition: color .2s; }
.treat__item:hover h3 { color: var(--coral); }
.treat__sub { margin-top: 4px; font-size: 14px; color: var(--coral); }
.treat__item p:last-child { margin-top: 12px; font-size: 15px; color: var(--ink-2); line-height: 1.75; }

/* ---------- Why ---------- */
.why { display: flex; flex-direction: column; gap: 90px; }
.why__row { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 80px; }
.why__row--rev { grid-template-columns: 1fr 1.15fr; }
.why__row--rev .img { order: 2; }
.why__row:hover .img img { transform: scale(1.04); }
.why__txt h3 { margin-top: 16px; font-size: 26px; font-weight: 600; line-height: 1.45; }
.why__txt p { margin-top: 16px; color: var(--ink-2); }

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 24px; }
.flow li { padding-top: 24px; border-top: 1px solid var(--ink); }
.flow li:nth-child(2) { transition-delay: .08s; } .flow li:nth-child(3) { transition-delay: .16s; }
.flow li:nth-child(4) { transition-delay: .24s; } .flow li:nth-child(5) { transition-delay: .32s; }
.flow__n { display: block; font-family: var(--f-en); font-size: 34px; color: var(--coral); line-height: 1; }
.flow h3 { margin-top: 16px; font-size: 17px; font-weight: 600; line-height: 1.45; }
.flow p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.flow__cta { margin-top: 56px; text-align: center; }

/* ---------- Doctor ---------- */
.doc { max-width: 820px; text-align: center; }
.doc__msg { margin-top: 20px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.6; }
.doc__name { margin-top: 28px; display: flex; flex-direction: column; gap: 2px; }
.doc__name span { font-size: 14px; color: var(--ink-2); }
.doc__name strong { font-size: 20px; font-weight: 600; }
.doc__career {
  margin: 28px auto 0; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px;
  font-size: 14.5px; color: var(--ink-2);
}
.doc .more { margin-top: 36px; }
/* 원장 소개: 실사진 + 글 */
.doc--split { max-width: 1000px; display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: center; text-align: left; }
.doc--split .doc__photo { aspect-ratio: 372 / 430; }
.doc--split .doc__name { align-items: flex-start; }
.doc--split .doc__career { justify-content: flex-start; margin-left: 0; flex-direction: column; gap: 4px; }
@media (max-width: 960px) {
  .doc--split { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .doc--split .doc__photo { max-width: 280px; margin: 0 auto; }
  .doc--split .doc__name { align-items: center; }
  .doc--split .doc__career { align-items: center; }
}

/* ---------- Info ---------- */
.info { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; }
.info__map { transition-delay: .12s; }
.info h3 { font-size: 18px; font-weight: 600; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 16px 2px; border-bottom: 1px solid var(--line); text-align: left; font-size: 16px; }
.hours th { font-weight: 500; width: 46%; color: var(--ink-2); }
.hours td { font-variant-numeric: tabular-nums; }
.hours .off td { color: var(--coral); }
.note { margin-top: 12px; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.tel { margin-top: 28px; font-family: var(--f-en); font-size: 32px; letter-spacing: .02em; }
.addr { margin-top: 18px; display: flex; flex-direction: column; }
.addr strong { font-size: 17px; font-weight: 600; }
.addr span { font-size: 14px; color: var(--ink-3); }
.route { margin-top: 18px; counter-reset: r; display: flex; flex-direction: column; gap: 6px; }
.route li { counter-increment: r; display: flex; gap: 12px; font-size: 15px; }
.route li::before { content: counter(r, decimal-leading-zero); flex: none; color: var(--coral); font-family: var(--f-en); font-size: 17px; line-height: 1.6; }

/* ---------- Footer ---------- */
.ft { background: #F5F1F0; color: var(--ink-3); padding: 48px 0 56px; font-size: 13.5px; line-height: 1.8; }
.ft__name { color: var(--ink); font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.ft__copy { margin-top: 14px; }

/* ---------- Quick menu (PC: 우측 세로 / 모바일: 하단 바) ---------- */
.quick {
  position: fixed; right: 22px; top: 50%; z-index: 45; width: 86px;
  transform: translate(140%, -50%); opacity: 0;
  display: flex; flex-direction: column; padding: 8px 0;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 43px;
  box-shadow: 0 12px 32px rgba(43,37,35,.08);
  transition: transform .6s var(--ease), opacity .6s;
}
.quick.is-show { transform: translate(0, -50%); opacity: 1; }
.quick a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 11px 4px; margin: 0 12px; color: var(--ink-2); text-align: center;
  font-size: 11.5px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em;
  transition: color .2s;
}
.quick a + a { border-top: 1px solid var(--line); }
.quick svg {
  width: 38px; height: 38px; padding: 9px; border-radius: 50%;
  background: var(--peach); color: var(--coral);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.quick a:hover { color: var(--ink); }
.quick a:hover svg { background: var(--coral); color: #fff; transform: translateY(-2px); }
/* LINE: 형식은 같고 아이콘 원만 LINE 그린 */
.quick__line svg { background: var(--line-green); color: #fff; }
.quick__line { color: var(--ink) !important; font-weight: 600 !important; }
.quick__line:hover svg { background: #05AE4B; }
.quick__top svg { width: 30px; height: 30px; padding: 6px; background: none; color: var(--ink-3); }
.quick__top span { font-family: var(--f-en); font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }
.quick__top:hover svg { background: var(--ink); color: #fff; }

.review-badge {
  position: fixed; left: 16px; top: calc(var(--hd-h) + 12px); z-index: 40;
  background: rgba(43,37,35,.85); color: #fff; font-size: 12px; padding: 5px 12px; border-radius: 999px;
  font-family: var(--f-ko);
}
html[lang="ja"] .review-badge { font-family: var(--f-ja); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .gnb > ul > li > a { padding: 0 14px; }
  .gnb > ul > li > a::after { left: 14px; right: 14px; }
  .hd__in { gap: 20px; }
  .flow { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
}

@media (max-width: 960px) {
  :root { --hd-h: 60px; }
  .wrap { padding: 0 20px; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__txt { font-size: 15.5px; }

  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 36px; height: 36px; border: 0; background: none; padding: 8px 6px;
  }
  .burger span { display: block; height: 1.5px; background: var(--ink); transition: .25s; }
  .nav-open .burger span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
  .nav-open .burger span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

  .gnb {
    position: fixed; inset: var(--hd-h) 0 0 0; background: #fff; overflow-y: auto;
    padding: 8px 20px 120px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav-open .gnb { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .gnb > ul { flex-direction: column; gap: 0; }
  .gnb > ul > li { border-bottom: 1px solid var(--line); padding: 16px 0; }
  .gnb > ul > li > a { line-height: 1.5; padding: 0; font-size: 18px; font-weight: 600; }
  .gnb > ul > li > a::after { display: none; }
  .gnb .sub {
    position: static; transform: none; opacity: 1; visibility: visible; border: 0; box-shadow: none; padding: 8px 0 0; min-width: 0;
    display: flex; flex-wrap: wrap; gap: 4px 18px;
  }
  .gnb > ul > li:hover .sub { transform: none; }
  .gnb .sub a { padding: 2px 0; font-size: 15px; text-align: left; }

  /* 히어로: 휴대폰은 사진 위 · 글 아래 */
  .hero { height: auto; min-height: 0; max-height: none; background: var(--peach); }
  .hero__bg { position: relative; aspect-ratio: 5 / 4; }
  .hero__bg img { object-position: 75% center; }
  .hero::before { display: none; }
  .hero__txt { padding: 32px 20px 40px; }
  .hero__en { font-size: clamp(26px, 8vw, 40px); margin-top: 12px; }
  .hero__title { margin-top: 18px; font-size: clamp(22px, 6vw, 26px); }
  html[lang="ja"] .hero__title { font-size: clamp(20px, 5.6vw, 24px); }
  .hero__desc { font-size: 15.5px; }
  .hero__desc br { display: none; }
  .hero__btns { margin-top: 28px; }
  .hero__btns .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }
  .hero__facts { background: #fff; }
  .facts { flex-direction: column; gap: 6px; }

  .sec { padding: 84px 0; }
  .sec__head { margin-bottom: 40px; }
  .treat { grid-template-columns: 1fr; gap: 52px; }
  .treat__item { transition-delay: 0s !important; }
  .img--34 { aspect-ratio: 4 / 3; }
  .why { gap: 56px; }
  .why__row, .why__row--rev { grid-template-columns: 1fr; gap: 24px; }
  .why__row--rev .img { order: 0; }
  .why__txt h3 { font-size: 22px; }

  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow li { display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); transition-delay: 0s !important; }
  .flow li:first-child { border-top-color: var(--ink); }
  .flow__n { grid-row: span 2; font-size: 28px; }
  .flow h3 { margin-top: 0; }
  .flow p { margin-top: 2px; }
  .flow__cta .btn { width: 100%; }
  .flow__cta { margin-top: 36px; }

  .doc__career { flex-direction: column; align-items: center; }
  .info { grid-template-columns: 1fr; gap: 56px; }

  .quick {
    top: auto; bottom: 0; left: 0; right: 0; width: auto; flex-direction: row; padding: 0;
    border: 0; border-top: 1px solid var(--line); border-radius: 0; transform: none; opacity: 1;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -6px 20px rgba(43,37,35,.06);
  }
  .quick.is-show { transform: none; }
  .quick a { flex: 1; margin: 0; padding: 8px 2px 7px; font-size: 11px; gap: 3px; }
  .quick a + a { border-top: 0; }
  .quick svg { width: 32px; height: 32px; padding: 7px; }
  .quick__flow, .quick__top { display: none !important; }
  .ft { padding-bottom: 100px; }
}
