/* ===================================================================
   88플러스내과·산부인과의원 — 공통 스타일
   톤: 미니멀·모던 / 타이포그래피 중심 / 웜 크림 + 올리브
   색상은 병원 기존 아이덴티티(환자 결과지·문진폼) 계승
   =================================================================== */

:root{
  --cream:    #FAF9F5;   /* 배경 — 순백 아님(고급감의 핵심) */
  --cream-dp: #F3F1EA;   /* 한 단계 진한 배경 */
  --ink:      #1A1A18;   /* 큰 타이포 */
  --body:     #4A4A45;   /* 본문 */
  --muted:    #8A8A80;   /* 보조 */
  --line:     #E5E2D8;   /* 선 */
  --olive:    #5C7F22;   /* 액센트 */
  --olive-dk: #3F5A14;   /* 액센트 진하게 */
  --hd-h: 84px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0; background:var(--cream); color:var(--body);
  font-family:'Pretendard','Pretendard Variable',-apple-system,BlinkMacSystemFont,
              'Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  font-size:17px; line-height:1.8; letter-spacing:-.01em;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ margin:0; color:var(--ink); font-weight:700; letter-spacing:-.035em; line-height:1.28; }
p{ margin:0; }
ol,ul{ margin:0; padding:0; list-style:none; }

/* ── 헤더 ───────────────────────────────────────── */
.hd{
  position:fixed; inset:0 0 auto 0; height:var(--hd-h); z-index:100;
  background:rgba(250,249,245,.82); backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid transparent; transition:border-color .3s, background .3s;
}
.hd.scrolled{ border-bottom-color:var(--line); }
.hd-in{
  max-width:1400px; height:100%; margin:0 auto; padding:0 40px;
  display:flex; align-items:center; gap:36px;
}
.brand{ display:flex; align-items:center; flex:none; }
.brand-logo{ height:44px; width:auto; }

.hd-nav{ display:flex; gap:34px; margin-left:20px; }
.hd-nav a{
  font-size:17px; font-weight:600; color:var(--body); position:relative; padding:5px 0;
  letter-spacing:-.02em; transition:color .25s;
}
.hd-nav a::after{
  content:''; position:absolute; left:0; right:100%; bottom:0; height:1.5px;
  background:var(--olive); transition:right .35s var(--ease);
}
.hd-nav a:hover{ color:var(--ink); }
.hd-nav a:hover::after{ right:0; }

.hd-act{ margin-left:auto; display:flex; align-items:center; gap:20px; }
.tel{
  font-size:18px; font-weight:700; color:var(--ink); letter-spacing:-.02em;
  font-feature-settings:'tnum';
}
.btn-book{
  font-size:15px; font-weight:700; color:#fff; background:var(--olive);
  padding:12px 24px; border-radius:100px; transition:background .25s, transform .25s var(--ease);
}
.btn-book:hover{ background:var(--olive-dk); transform:translateY(-1px); }

/* ── 헤더 예약 탭 (온라인 예약 / 예약 조회·취소) ─────────
   헤더에서 가장 큰 요소. 예약하러 온 사람과 취소하러 온 사람이 같은 자리에서
   갈라지도록, **알약 하나를 가운데 선으로 반 나눈** 모양으로 둔다(원장 지시 2026-07-21).
   채워진 쪽이 바깥 곡면까지 그대로 이어지도록 컨테이너에서 잘라낸다(overflow:hidden)
   — 안쪽에 또 둥근 알약을 넣으면 '원 안의 원'처럼 보인다.

   ⚠ 함정 둘:
   1) 높이를 고정한다. stretch 로 두면 헤더 높이(84px)만큼 늘어나 알약이 **원**이 된다.
   2) 셀렉터를 `.hd-tabs` 로 묶고 수식 클래스에 `tb-` 를 붙였다 — 스타일시트 아래쪽에
      섹션용 `.book{padding:64~100px}` 이 있어, 그냥 `.book` 을 쓰면 뒤 규칙에 덮여
      온라인 예약만 거대한 원이 된다. */
.hd-tabs{
  display:inline-flex; align-items:stretch; gap:0; flex:none;
  padding:0; border:2px solid var(--olive); border-radius:100px; background:#fff;
  overflow:hidden;
}
.hd-tabs .hd-tab{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  white-space:nowrap; height:48px; padding:0 26px; line-height:1; box-sizing:border-box;
  font-size:16.5px; font-weight:800; letter-spacing:-.02em; color:var(--olive-dk);
  border:none; border-radius:0;
  transition:background .22s, color .22s;
}
/* 두 쪽을 가르는 경계선 */
.hd-tabs .hd-tab + .hd-tab{ border-left:2px solid var(--olive); }
/* 채워진 쪽 = 지금 보고 있는 화면. 다른 페이지에서는 '온라인 예약'이 채워져 있다
   (예약이 이 사이트의 주 행동이므로 기본 강조를 여기에 둔다) */
.hd-tabs .hd-tab.on{ background:var(--olive); color:#fff; }
.hd-tabs .hd-tab:not(.on):hover{ background:var(--cream-dp); }
.hd-ico{
  width:19px; height:19px; flex:none;
  fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
}

.hd-menu{ display:none; }
.hd-drawer{ display:none; }

/* ── ① 3분할 타일 ───────────────────────────────── */
/* 타일 높이 — 화면을 꽉 채우면 세로로 너무 길어져 장면(장비·모니터)의 좌우가 잘린다.
   높이를 줄이면 같은 폭에서 가로 시야가 넓어져 '검사하는 장면'이 살아난다.
   (겸사겸사 아래 내용이 살짝 보여 스크롤을 유도) */
.tiles{
  display:grid; grid-template-columns:repeat(3,1fr);
  height:86svh; min-height:560px; padding-top:var(--hd-h);
}
.tile{
  position:relative; overflow:hidden; display:flex; align-items:flex-end;
  border-right:1px solid var(--line); background:var(--cream);
  transition:background .6s var(--ease);
}
.tile:last-child{ border-right:none; }

/* 배경 이미지 — 세로 타일이라 인물이 잘리지 않게 background-position 개별 지정 */
.tile-bg{
  position:absolute; inset:0; z-index:0;
  background-size:cover; background-position:center; background-repeat:no-repeat;
  transform:scale(1); transition:transform 1.1s var(--ease);
}
/* ⚠ 이 타일의 목적은 '의사 얼굴'이 아니라 **어떤 검사를 하는지 보여주는 것**.
   확대(zoom)하면 내시경·모니터·초음파 장비가 잘려나가 무슨 검사인지 사라진다.
   → 확대하지 않고(cover) 전체 높이를 살린 뒤, 좌우 위치만 잡아 '장면'을 담는다.
   background-position 앞 숫자 = 좌우(작을수록 왼쪽). 이 값만 조정하면 됨. */

.tile-bg[data-img="checkup"]{
  background-image:url(../img/checkup.jpg);
  /* 산부인과(cover 기준)와 인물 크기를 맞추기 위해 확대를 140% → 110% 로 낮춤.
     확대가 줄어든 만큼 가로 시야가 넓어져 좌측 판독 모니터도 일부 다시 들어온다. */
  background-size:auto 110%;
  background-position:90% 30%;
}
.tile-bg[data-img="internal"]{
  background-image:url(../img/internal.jpg?v=07201132);
  /* 새 사진은 더 멀리서 찍혀 인물이 작다(머리 180px/1254). 산부인과·건강검진과
     크기를 맞추려 140% 확대. 원본에 여백이 넉넉해 확대해도 의사+모니터가 함께 들어온다. */
  background-size:auto 140%;
  background-position:67% 72%;
}
.tile-bg[data-img="obgy"]{
  background-image:url(../img/obgy.jpg);
  /* 모니터(자궁·난소 설명 화면)를 최대한 보여주는 게 우선.
     확대하면 좌우가 잘려 모니터가 프레임 밖으로 밀려나므로 확대 없이(cover) 전체 높이를 쓴다.
     → 세로 전체가 보여 모니터가 위아래로 안 잘리고, 가로 시야도 가장 넓다.
     좌우 66%: 의사 머리는 다 들어오면서 우측 모니터를 최대한 담는 위치.
     (원장 요청으로 인물 크기·머리 높이 정렬보다 모니터 노출을 우선함) */
  background-size:cover;
  background-position:66% center;
}
.tile:hover .tile-bg{ transform:scale(1.045); }

/* 스크림 — 사진 위 텍스트 가독성(아래는 크림으로 덮고 위는 사진이 보이게).
   .tile-bg 가 hover 시 확대되므로 스크림은 별도 레이어에 둔다(같이 확대되면 경계 깨짐). */
.tile::after{
  content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
  /* 장면이 최대한 보이도록 아래쪽만 짧고 진하게 덮는다(글씨 가독성은 유지) */
  background:
    linear-gradient(to top,
      var(--cream) 0%,
      rgba(250,249,245,.96) 19%,
      rgba(250,249,245,.62) 32%,
      rgba(250,249,245,.18) 46%,
      rgba(250,249,245,0) 61%),
    linear-gradient(to bottom,
      rgba(250,249,245,.45) 0%,
      rgba(250,249,245,0) 18%);
}

.tile-in{
  position:relative; z-index:2; width:100%;
  padding:0 clamp(28px,3.4vw,52px) clamp(44px,5vw,70px);
}
.tile-no{
  display:block; font-size:15px; font-weight:700; color:var(--olive);
  letter-spacing:.16em; margin-bottom:auto;
}
.tile-ko{
  font-size:clamp(30px,3.1vw,46px); margin-bottom:6px;
  transition:transform .6s var(--ease);
}
.tile-en{
  font-size:12.5px; font-weight:600; color:var(--muted);
  letter-spacing:.18em; text-transform:uppercase; margin-bottom:20px;
}
.tile-desc{
  font-size:15.5px; color:var(--body); line-height:1.75;
  max-height:0; opacity:0; overflow:hidden;
  transition:max-height .6s var(--ease), opacity .45s, margin .6s var(--ease);
}
.tile-go{
  display:inline-flex; align-items:center; gap:8px; margin-top:22px;
  font-size:14px; font-weight:600; color:var(--olive);
  opacity:0; transform:translateY(8px);
  transition:opacity .5s .06s, transform .5s .06s var(--ease);
}
.tile-go::after{
  content:''; width:22px; height:1.5px; background:var(--olive);
  transition:width .4s var(--ease);
}
.tile:hover .tile-desc{ max-height:120px; opacity:1; }
.tile:hover .tile-go{ opacity:1; transform:translateY(0); }
.tile:hover .tile-go::after{ width:34px; }
.tile:hover .tile-ko{ transform:translateY(-2px); }

/* 타일 상단 넘버가 위에 붙도록 */
.tile-in{ display:flex; flex-direction:column; height:100%; padding-top:clamp(34px,4vw,56px); }

/* ── ② 슬로건 ───────────────────────────────────── */
.stmt{
  padding:clamp(110px,14vw,190px) 40px clamp(100px,12vw,170px);
  text-align:center; border-top:1px solid var(--line);
}
.stmt-eyebrow{
  font-size:12px; font-weight:700; color:var(--olive);
  letter-spacing:.3em; margin-bottom:34px;
}
.stmt-copy{
  font-size:clamp(26px,4.1vw,58px); line-height:1.44; font-weight:700;
  letter-spacing:-.04em; max-width:20em; margin:0 auto; word-break:keep-all;
}
.stmt-copy em{ font-style:normal; color:var(--olive); }

/* ── 공통 섹션 요소 ─────────────────────────────── */
.sec-label{
  font-size:12px; font-weight:700; color:var(--olive);
  letter-spacing:.22em; text-transform:uppercase; margin-bottom:18px;
}
.sec-h{ font-size:clamp(24px,2.9vw,38px); margin-bottom:20px; word-break:keep-all; }
.sec-p{ font-size:17px; color:var(--body); max-width:32em; word-break:keep-all; }

/* ── ③ 인사말 ───────────────────────────────────── */
/* ── ③ 인사말 ───────────────────────────────────
   사진 자체에 왼쪽 빈 벽면 여백이 있어, 섹션 전체 배경으로 깔고
   그 여백 위에 글을 얹는다. 사진 경계는 화면 밖이라 모서리가 보이지 않는다. */
.greet{
  position:relative; overflow:hidden;
  padding:clamp(90px,10vw,150px) 40px; border-top:1px solid var(--line);
  min-height:clamp(520px,52vw,760px); display:flex; align-items:center;
}
.greet-bg{
  position:absolute; inset:0; z-index:0;
  background:url(../img/greeting.jpg?v=07210845) center/cover no-repeat;
}
/* 크림 베일 — 왼쪽(글 자리)은 진하게, 오른쪽(인물)은 거의 투명.
   위·아래는 크림으로 녹여 인접 섹션과 이어지게. */
.greet::after{
  content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(to right,
      rgba(250,249,245,.92) 0%,
      rgba(250,249,245,.86) 26%,
      rgba(250,249,245,.55) 44%,
      rgba(250,249,245,.18) 60%,
      rgba(250,249,245,.06) 78%,
      rgba(250,249,245,.10) 100%),
    linear-gradient(to bottom,
      var(--cream) 0%, rgba(250,249,245,0) 16%,
      rgba(250,249,245,0) 84%, var(--cream) 100%);
}
.greet-in{
  position:relative; z-index:2; width:100%;
  max-width:1240px; margin:0 auto; display:grid;
  grid-template-columns:minmax(0,.52fr) 1fr; align-items:center;
}
.greet-sign{ margin-top:30px; font-size:15px; font-weight:600; color:var(--ink); }

/* ── ④ 의료진 ───────────────────────────────────── */
.docs{ padding:clamp(70px,8vw,120px) 40px; border-top:1px solid var(--line); }
.docs-head{ max-width:1240px; margin:0 auto clamp(44px,5vw,66px); }
/* 가로형 행 — 사진 왼쪽, 정보 오른쪽 */
.docs-list{ max-width:1240px; margin:0 auto; }
.doc{
  display:grid; grid-template-columns:clamp(190px,20vw,250px) 1fr;
  gap:clamp(26px,3.5vw,52px); align-items:start;
  padding:clamp(30px,3.5vw,44px) 0; border-top:2px solid var(--ink);
}
.doc + .doc{ border-top-color:var(--line); border-top-width:1px; }

/* 의료진 사진 — 원본이 1122×1402(4:5)이라 비율을 맞춰 잘림 없이 표시 */
.doc-photo{
  aspect-ratio:4/5; background:var(--cream-dp); border:1px solid var(--line);
  overflow:hidden;
}
.doc-photo img{ width:100%; height:100%; object-fit:cover; object-position:center top; }

.doc-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; flex-wrap:wrap; padding-bottom:18px; border-bottom:1px solid var(--line);
}
.doc-name{ font-size:clamp(22px,2.2vw,27px); margin:0; }
.doc-name span{ font-size:16px; font-weight:500; color:var(--body); margin-left:4px; }
.doc-name i{
  display:inline-block; font-style:normal; font-size:14.5px; font-weight:600;
  color:var(--olive); margin-left:14px; padding-left:15px; border-left:1px solid var(--line);
  vertical-align:2px;
}
.doc-more{
  flex:none; font:inherit; font-size:14.5px; font-weight:600; color:#fff;
  background:var(--olive); border:none; border-radius:100px;
  padding:11px 24px; cursor:pointer; transition:background .2s, transform .2s var(--ease);
}
.doc-more:hover{ background:var(--olive-dk); transform:translateY(-1px); }
.doc-more.on{ background:var(--body); }

/* 약력 — 기본 접힘, 버튼으로 펼침 */
.doc-cvbox{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .35s var(--ease); }
.doc-cvbox.on{ grid-template-rows:1fr; }
.doc-cvbox > .doc-cv{ overflow:hidden; margin:0; }
.doc-cvbox.on > .doc-cv{ padding:20px 0 4px; }
.doc-cv li{
  position:relative; padding-left:13px; font-size:15px; color:var(--body);
  line-height:1.75; margin-bottom:5px; word-break:keep-all;
}
.doc-cv li::before{
  content:''; position:absolute; left:0; top:.78em;
  width:4px; height:1px; background:var(--muted);
}
/* 논문 제목 — 영문이라 한 톤 낮춰 표기 */
.doc-cv i{ font-style:italic; color:var(--muted); }

/* ── ⑤ 진료 흐름 ────────────────────────────────── */
.flow{ padding:clamp(70px,8vw,120px) 40px; border-top:1px solid var(--line); }
.flow-head{ max-width:1240px; margin:0 auto clamp(44px,5vw,66px); }
.flow-list{
  max-width:1240px; margin:0 auto;
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line);
  border:1px solid var(--line);
}
.flow-list li{ background:var(--cream); padding:clamp(28px,3vw,42px); }
.fl-no{
  display:block; font-size:13px; font-weight:700; color:var(--olive);
  letter-spacing:.14em; margin-bottom:16px; font-feature-settings:'tnum';
}
.flow-list h3{ font-size:19px; margin-bottom:8px; }
.flow-list p{ font-size:15px; color:var(--muted); word-break:keep-all; }

/* ── ⑤ 진료시간 · 오시는길 ──────────────────────── */
.visit{ padding:clamp(70px,8vw,120px) 40px; border-top:1px solid var(--line); background:var(--cream-dp); }
.visit-in{
  max-width:1240px; margin:0 auto; display:grid; gap:clamp(40px,5vw,80px);
  grid-template-columns:1fr 1fr;
}
.hours{ width:100%; border-collapse:collapse; }
.hours th,.hours td{
  padding:15px 0; border-bottom:1px solid var(--line); text-align:left; font-size:16.5px;
}
.hours th{ font-weight:600; color:var(--ink); width:40%; }
.hours td{ color:var(--body); font-feature-settings:'tnum'; }
.hours .off th,.hours .off td{ color:var(--muted); }
.btn-tel{
  display:inline-block; margin-top:28px; font-size:22px; font-weight:800;
  color:var(--ink); letter-spacing:-.02em; font-feature-settings:'tnum';
  border-bottom:2px solid var(--olive); padding-bottom:3px;
}
.hours-note{ margin-top:18px; }
.hours-note li{
  position:relative; padding-left:14px; font-size:14.5px; color:var(--muted);
  line-height:1.7; margin-bottom:4px;
}
.hours-note li::before{ content:'※'; position:absolute; left:0; top:0; }
.hours-note b{ color:var(--ink); font-weight:600; }
.hours-book{ margin-top:16px; }
.hours-book a{
  font-size:15px; font-weight:600; color:var(--olive-dk);
  border-bottom:1.5px solid var(--line); padding-bottom:3px;
}
.hours-book a:hover{ border-bottom-color:var(--olive); }

.addr{ font-size:19px; font-weight:600; color:var(--ink); line-height:1.65; margin-bottom:24px; }
.addr span{ display:inline-block; font-size:14.5px; font-weight:400; color:var(--muted); }
.way{ border-top:1px solid var(--line); padding-top:20px; margin:0 0 26px; }
.way dt{
  font-size:12.5px; font-weight:700; color:var(--olive);
  letter-spacing:.1em; margin-bottom:5px;
}
.way dd{ margin:0 0 16px; font-size:15.5px; color:var(--body); word-break:keep-all; }
.way dd:last-child{ margin-bottom:0; }
.btn-outline{
  display:inline-block; font-size:14.5px; font-weight:600; color:var(--olive-dk);
  border:1.5px solid var(--line); border-radius:100px; padding:11px 22px;
  transition:border-color .25s, background .25s;
}
.btn-outline:hover{ border-color:var(--olive); background:#fff; }

/* ── 푸터 ───────────────────────────────────────── */
.ft{ padding:clamp(50px,6vw,76px) 40px 40px; border-top:1px solid var(--line); }
.ft-in{
  max-width:1240px; margin:0 auto; display:grid; gap:34px;
  grid-template-columns:1.1fr 1.4fr .9fr;
}
.ft-logo{ height:34px; width:auto; margin-bottom:10px; }
.ft-tag{ font-size:13.5px; color:var(--muted); }
.ft-info p{ font-size:14.5px; color:var(--muted); margin-bottom:4px; }
.ft-info a{ color:var(--body); }
.ft-info a:hover{ color:var(--olive-dk); }
.ft-links{ display:flex; flex-direction:column; gap:9px; align-items:flex-start; }
.ft-links a{ font-size:14.5px; color:var(--body); border-bottom:1px solid transparent; transition:border-color .25s; }
.ft-links a:hover{ border-bottom-color:var(--olive); }
.ft-copy{
  max-width:1240px; margin:44px auto 0; padding-top:26px; border-top:1px solid var(--line);
  font-size:13px; color:var(--muted);
}

/* ── 스크롤 등장 ────────────────────────────────── */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ── 반응형 ─────────────────────────────────────── */
@media (max-width:1400px){
  /* 메뉴와 예약 탭이 부딪히기 시작하는 구간 — 탭을 먼저 지키고 전화번호를 줄인다 */
  .hd-nav{ gap:24px; }
  .hd-act{ gap:14px; }
  .tel{ font-size:16px; }
}
@media (max-width:1320px){
  /* '예약 조회·취소' 는 글자가 길다 — 이 폭부터 탭을 줄이고 전화번호를 접는다 */
  .hd-tabs .hd-tab{ font-size:15px; height:44px; padding:0 18px; gap:7px; }
  .hd-ico{ width:17px; height:17px; }
  .tel{ display:none; }        /* 전화번호는 푸터·드로어에 남는다 */
}
@media (max-width:1140px){
  .hd-in{ padding:0 24px; gap:22px; }
  .hd-nav{ display:none; }
  /* 메뉴가 사라지는 즉시 햄버거 노출(원장 지시 2026-07-23) — 768~1140 구간도 드로어로 대체 */
  .hd-menu{
    display:flex; flex-direction:column; justify-content:center; gap:5px;
    width:40px; height:40px; border:none; background:none; cursor:pointer; padding:0;
  }
  .hd-menu span{ display:block; height:1.6px; background:var(--ink); transition:transform .3s var(--ease); }
  .hd-menu.on span:nth-child(1){ transform:translateY(3.3px) rotate(45deg); }
  .hd-menu.on span:nth-child(2){ transform:translateY(-3.3px) rotate(-45deg); }
  .hd-drawer{
    display:block; position:fixed; top:var(--hd-h); left:0; right:0; z-index:99;
    background:var(--cream); border-bottom:1px solid var(--line);
    padding:8px 24px 22px; transform:translateY(-120%); transition:transform .4s var(--ease);
  }
  .hd-drawer.on{ transform:translateY(0); }
  .hd-drawer a{ display:block; padding:15px 0; font-size:17px; font-weight:600; color:var(--ink); border-bottom:1px solid var(--line); }
  .hd-drawer a:last-child{ border-bottom:none; }
  .hd-drawer .d-tel{ color:var(--olive); font-weight:800; }
  .greet-in,.visit-in{ grid-template-columns:1fr; }
  .flow-list{ grid-template-columns:repeat(2,1fr); }
  .ft-in{ grid-template-columns:1fr 1fr; }
}
@media (max-width:768px){
  body{ font-size:16.5px; }
  .hd-act .btn-book{ display:none; }
  /* 예약 탭은 이 폭부터 숨김 — 햄버거는 1140부터 이미 노출되어 두 링크를 드로어가 담는다 */
  .hd-act .hd-tabs{ display:none; }

  /* 타일 — 세로로 쌓되 한 화면에 셋 다 보이게 */
  .tiles{ grid-template-columns:1fr; height:auto; min-height:0; }
  .tile{ border-right:none; border-bottom:1px solid var(--line); min-height:33svh; }
  .tile-in{ padding:30px 24px 34px; }
  .tile-no{ margin-bottom:14px; }
  /* 모바일은 호버가 없으므로 설명을 항상 노출 */
  .tile-desc{ max-height:120px; opacity:1; }
  .tile-go{ opacity:1; transform:none; margin-top:16px; }

  .stmt{ padding:80px 24px 70px; }
  .greet,.flow,.visit,.docs{ padding:64px 24px; }
  .doc{ grid-template-columns:1fr; gap:20px; }
  .doc-photo{ aspect-ratio:4/3; }
  .doc-top{ align-items:flex-start; flex-direction:column; gap:14px; }
  .doc-name i{ display:block; margin:8px 0 0; padding:0; border-left:none; }
  .doc-more{ width:100%; }
  .doc-sch th,.doc-sch td{ font-size:12.5px; padding:8px 1px; }
  .doc-sch thead th:first-child{ width:46px; }
  .ft{ padding:48px 24px 34px; }
  .flow-list{ grid-template-columns:1fr; }
  .ft-in{ grid-template-columns:1fr; gap:26px; }
}

/* ===================================================================
   서브 페이지 공통 (건강검진 / 내과 / 산부인과 / 비급여 / 예약)
   =================================================================== */

/* 서브 히어로 */
.sub-hero{
  position:relative; overflow:hidden; padding-top:var(--hd-h);
  border-bottom:1px solid var(--line); background:var(--cream-dp);
}
.sub-hero-bg{
  position:absolute; inset:0; background-size:cover; background-repeat:no-repeat;
  opacity:.55;
}
.sub-hero::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(to right, var(--cream) 0%, rgba(250,249,245,.90) 42%, rgba(250,249,245,.35) 72%, rgba(250,249,245,.15) 100%);
}
.sub-hero-in{
  position:relative; z-index:2; max-width:1240px; margin:0 auto;
  padding:clamp(64px,8vw,110px) 40px clamp(58px,7vw,96px);
}
.sub-hero .sh-en{
  font-size:12px; font-weight:700; color:var(--olive);
  letter-spacing:.24em; text-transform:uppercase; margin-bottom:16px;
}
.sub-hero h1{
  font-size:clamp(34px,5vw,64px); letter-spacing:-.045em; margin-bottom:18px;
}
.sub-hero .sh-lead{
  font-size:clamp(16px,1.5vw,19px); color:var(--body);
  max-width:30em; word-break:keep-all;
}

/* 진료 항목 그리드 */
.items{ padding:clamp(70px,8vw,120px) 40px; }
.items-in{ max-width:1240px; margin:0 auto; }
.items-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line); margin-top:clamp(36px,4vw,52px);
}
.item{ background:var(--cream); padding:clamp(30px,3.2vw,44px); }
.item .it-no{
  display:block; font-size:13px; font-weight:700; color:var(--olive);
  letter-spacing:.14em; margin-bottom:15px; font-feature-settings:'tnum';
}
.item h3{ font-size:20px; margin-bottom:10px; word-break:keep-all; }
.item p{ font-size:15px; color:var(--muted); line-height:1.75; word-break:keep-all; }

/* 안내 박스 */
.note-box{
  max-width:1240px; margin:0 auto; padding:26px 30px;
  border-left:3px solid var(--olive); background:var(--cream-dp);
}
.note-box p{ font-size:15.5px; color:var(--body); word-break:keep-all; }
.note-box b{ color:var(--ink); }

/* CTA */
.cta{
  padding:clamp(70px,8vw,110px) 40px; text-align:center;
  border-top:1px solid var(--line); background:var(--cream-dp);
}
.cta h2{ font-size:clamp(23px,2.7vw,34px); margin-bottom:14px; word-break:keep-all; }
.cta p{ font-size:16px; color:var(--body); margin-bottom:30px; }
.cta-btns{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.cta-tel{
  display:inline-block; font-size:20px; font-weight:800; color:#fff; background:var(--olive);
  padding:15px 34px; border-radius:100px; letter-spacing:-.02em; font-feature-settings:'tnum';
  transition:background .25s, transform .25s var(--ease);
}
.cta-tel:hover{ background:var(--olive-dk); transform:translateY(-1px); }
.cta-book{
  display:inline-block; font-size:17px; font-weight:700; color:var(--olive-dk);
  background:#fff; border:1.5px solid var(--olive); border-radius:100px;
  padding:15px 34px; transition:background .2s, transform .2s var(--ease);
}
.cta-book:hover{ background:var(--cream-dp); transform:translateY(-1px); }
/* 온라인 예약이 주 행동인 페이지의 CTA — 전화 버튼이 있던 자리를 대신한다
   (전화 예약 폐지 2026-07-21). 채움 스타일이라 시선이 여기로 간다. */
.cta-main{
  display:inline-block; font-size:19px; font-weight:800; color:#fff; background:var(--olive);
  padding:15px 38px; border-radius:100px; letter-spacing:-.02em;
  transition:background .25s, transform .25s var(--ease);
}
.cta-main:hover{ background:var(--olive-dk); transform:translateY(-1px); }

/* 비급여 가격표 */
.price-tabs{
  display:flex; gap:8px; flex-wrap:wrap; margin-bottom:clamp(30px,3.5vw,46px);
  border-bottom:1px solid var(--line); padding-bottom:16px;
}
.price-tab{
  font:inherit; font-size:15px; font-weight:600; color:var(--muted);
  background:none; border:1.5px solid var(--line); border-radius:100px;
  padding:10px 22px; cursor:pointer; transition:.25s;
}
.price-tab:hover{ color:var(--ink); border-color:var(--bi,#C8D4B8); }
.price-tab.on{ color:#fff; background:var(--olive); border-color:var(--olive); }
.price-pane{ display:none; }
.price-pane.on{ display:block; }
.price-group{ margin-bottom:clamp(38px,4vw,56px); }
.price-group h2{
  font-size:19px; margin-bottom:14px; padding-bottom:12px;
  border-bottom:2px solid var(--ink); display:inline-block;
}
.ptable{ width:100%; border-collapse:collapse; }
.ptable tr{ border-bottom:1px solid var(--line); }
.ptable tr:last-child{ border-bottom:none; }
.ptable td{ padding:15px 4px; font-size:16px; color:var(--body); word-break:keep-all; }
.ptable td:last-child{
  text-align:right; white-space:nowrap; font-weight:700; color:var(--ink);
  font-feature-settings:'tnum'; padding-left:18px;
}
/* 가격표 아래 준비사항·조건 — 값만 보고 오시면 그날 시술을 못 받는 항목이 있다(제모 면도 등) */
.price-note{
  margin-top:14px; padding:13px 15px; background:var(--cream-dp);
  border-left:3px solid var(--olive); font-size:14.5px; line-height:1.7;
  color:var(--body); word-break:keep-all;
}
.price-note b{ color:var(--olive-dk); font-weight:700; }

/* 예약·오시는길 */
.map-box{
  width:100%; aspect-ratio:16/9; background:var(--cream-dp);
  border:1px solid var(--line); margin-top:26px;
}
.map-box > div{ width:100%; height:100%; }

@media (max-width:1080px){
  .items-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px){
  .sub-hero-in{ padding:52px 24px 46px; }
  .sub-hero::after{
    background:linear-gradient(to right, var(--cream) 0%, rgba(250,249,245,.92) 55%, rgba(250,249,245,.55) 100%);
  }
  .items,.cta{ padding:60px 24px; }
  .items-grid{ grid-template-columns:1fr; }
  .note-box{ padding:22px 20px; }
  .ptable td{ font-size:15px; padding:13px 2px; }
}

/* 서브 히어로 배경 — 타일과 같은 사진, 옅게 */
.sub-hero-bg[data-img="checkup"]{ background-image:url(../img/checkup.jpg); background-position:70% 32%; }
.sub-hero-bg[data-img="internal"]{
  background-image:url(../img/internal.jpg);
  /* 서브 히어로는 가로로 길고 세로가 짧은 띠라 원본의 약 23%만 보인다.
     47%: 의사 얼굴(35%~)과 모니터(42%~)가 함께 들어오는 지점.
     (가로는 전체가 보이므로 좌우값은 영향 없음) */
  background-position:center 47%;
}
.sub-hero-bg[data-img="obgy"]{   background-image:url(../img/obgy.jpg);   background-position:45% 30%; }
/* 접수 로비 — 비급여 안내·오시는길. 왼쪽 벽면이 비어 있어 글자와 겹치지 않고,
   오른쪽 로고 사인이 살아 있는 지점으로 잡는다(띠라서 세로는 일부만 보인다). */
.sub-hero-bg[data-img="reception"]{
  background-image:url(../img/reception.jpg); background-position:center 58%;
}

/* ── 진료항목 아코디언 (클릭 시 설명 펼침) ────────── */
.item{ padding:0; }                      /* 내부 버튼이 패딩을 가짐 */
.item-hd{
  display:block; width:100%; text-align:left; background:none; border:none;
  font:inherit; color:inherit; cursor:pointer; position:relative;
  padding:clamp(30px,3.2vw,44px);
  padding-right:calc(clamp(30px,3.2vw,44px) + 26px);
  transition:background .25s;
}
.item-hd:hover{ background:#fff; }
.item-hd:focus-visible{ outline:2px solid var(--olive); outline-offset:-3px; }
/* +/− 토글 표시 */
.it-toggle{
  position:absolute; right:clamp(26px,3vw,38px); top:clamp(32px,3.3vw,46px);
  width:15px; height:15px; flex:none;
}
.it-toggle::before,.it-toggle::after{
  content:''; position:absolute; left:0; top:7px; width:15px; height:1.6px;
  background:var(--olive); transition:transform .4s var(--ease), opacity .3s;
}
.it-toggle::after{ transform:rotate(90deg); }
.item.on .it-toggle::after{ transform:rotate(0deg); opacity:0; }

/* 펼침 영역 — grid 0fr→1fr 로 부드럽게(높이 계산 불필요) */
.item-detail{
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows .45s var(--ease);
}
.item.on .item-detail{ grid-template-rows:1fr; }
.item-detail > .id-in{ overflow:hidden; }
.item-detail .id-body{
  padding:0 clamp(30px,3.2vw,44px) clamp(30px,3.2vw,42px);
  border-top:1px solid var(--line); margin-top:2px; padding-top:22px;
}
.item-detail p{
  font-size:15.5px; color:var(--body); line-height:1.85; word-break:keep-all;
}
.item-detail p + p{ margin-top:12px; }
.item-detail .id-prep{
  margin-top:16px; padding:13px 16px; background:var(--cream-dp);
  border-left:2px solid var(--olive); font-size:14.5px; color:var(--body);
}
.item-detail .id-prep b{ color:var(--ink); }
@media (max-width:768px){
  .item-hd{ padding:26px 44px 26px 24px; }
  .it-toggle{ right:22px; top:28px; }
  .item-detail .id-body{ padding:20px 24px 26px; }
}

/* ── 인증·강점 (객관적 사실만) ──────────────────── */
.creds{ padding:clamp(64px,7vw,100px) 40px; border-top:1px solid var(--line); background:var(--cream-dp); }
.creds-in{ max-width:1240px; margin:0 auto; }
.creds-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line); margin-top:clamp(32px,3.5vw,46px);
}
.cred{ background:var(--cream-dp); padding:clamp(26px,2.8vw,38px); text-align:center; }
.cred .cr-v{
  display:block; font-size:clamp(21px,2.2vw,28px); font-weight:800; color:var(--olive-dk);
  letter-spacing:-.035em; margin-bottom:8px; word-break:keep-all;
}
.cred .cr-l{ font-size:14px; color:var(--muted); word-break:keep-all; line-height:1.6; }

/* ── 의료진 진료일정표 ──────────────────────────── */
/* table-layout:fixed — 칸 내용(진료/빈칸)에 관계없이 폭이 균등해야 한다 */
.doc-sch{ width:100%; border-collapse:collapse; margin-top:20px; table-layout:fixed; }
.doc-sch th,.doc-sch td{
  border:1px solid var(--line); padding:10px 2px; text-align:center;
  font-size:14px; line-height:1.5; color:var(--body);
}
.doc-sch thead th{ background:var(--cream-dp); color:var(--muted); font-weight:600; }
.doc-sch tbody th{ background:var(--cream-dp); color:var(--muted); font-weight:600; }
/* fixed 레이아웃은 첫 행으로 폭이 결정된다 — 라벨 열은 여기서 지정해야 한다 */
.doc-sch thead th:first-child{ width:64px; }
.doc-sch .on{ color:var(--olive-dk); font-weight:700; }
.doc-sch .off{ color:#B23A2E; font-weight:600; }

/* ── 우측 고정 퀵바 ─────────────────────────────── */
.quick{
  position:fixed; right:16px; top:50%; transform:translateY(-50%); z-index:90;
  display:flex; flex-direction:column; gap:8px;
}
.quick a{
  min-width:60px; padding:12px 14px; border-radius:12px; text-align:center; white-space:nowrap;
  background:rgba(250,249,245,.94); border:1px solid var(--line);
  backdrop-filter:blur(10px); box-shadow:0 2px 10px rgba(0,0,0,.05);
  font-size:11.5px; font-weight:600; color:var(--body); line-height:1.35;
  transition:background .25s, color .25s, transform .25s var(--ease), border-color .25s;
}
.quick a:hover{ background:#fff; color:var(--olive-dk); border-color:var(--olive); transform:translateX(-2px); }
.quick a.pri{ background:var(--olive); border-color:var(--olive); color:#fff; }
.quick a.pri:hover{ background:var(--olive-dk); color:#fff; }
.quick .qi{ display:block; font-size:17px; margin-bottom:3px; }

@media (max-width:1080px){ .creds-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:768px){
  .creds{ padding:56px 24px; }
  /* 모바일 — 하단 고정 바로 전환 */
  .quick{
    right:0; left:0; top:auto; bottom:0; transform:none;
    flex-direction:row; gap:0; border-top:1px solid var(--line);
    background:rgba(250,249,245,.97); backdrop-filter:blur(10px);
  }
  .quick a{
    flex:1; width:auto; min-width:0; border:none; border-radius:0; box-shadow:none;
    background:none; padding:12px 2px; font-size:12px;
    display:flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap;
  }
  /* 예약 칸만 초록으로 채운다 — 셋 다 같은 모양이면 어디를 눌러야 할지 알 수 없다.
     환자 대부분이 모바일로 들어오므로 이 한 칸이 가장 중요한 진입점이다. */
  /* 두 칸은 **같은 너비**(원장 지시 2026-07-21) — 색으로만 주·부를 구분한다 */
  .quick a.pri{
    background:var(--olive); color:#fff; font-weight:800;
  }
  .quick a.pri:hover{ background:var(--olive); color:#fff; }
  .quick a.pri .qi{ font-size:16px; }
  .quick .qi{ display:inline; font-size:15px; margin:0; }
  body{ padding-bottom:58px; }   /* 하단 바에 콘텐츠 안 가리도록 */
}

/* 진료항목 상세 — 권장대상 / 주의사항 */
.id-block{ margin-top:18px; }
.id-block h4{
  font-size:13px; font-weight:700; color:var(--olive); letter-spacing:.06em;
  margin:0 0 9px;
}
.id-block ul li{
  position:relative; padding-left:14px; font-size:15px; color:var(--body);
  line-height:1.7; margin-bottom:4px; word-break:keep-all;
}
.id-block ul li::before{
  content:''; position:absolute; left:2px; top:.78em;
  width:4px; height:4px; border-radius:50%; background:var(--olive);
}
.id-warn{
  margin-top:12px; padding:13px 16px; background:#FBF3EC;
  border-left:2px solid #C08A4A; font-size:14.5px; color:var(--body); word-break:keep-all;
}
.id-warn b{ color:#8A5A22; }

/* ── 검사 선택 가이드 (건강검진 페이지 상단) ─────── */
.guide{ padding:clamp(40px,4.5vw,64px) 40px 0; }
.guide-in{ max-width:1240px; margin:0 auto; }
.guide-btn{
  width:100%; display:flex; align-items:center; gap:20px; flex-wrap:wrap;
  text-align:left; font:inherit; cursor:pointer;
  background:var(--cream-dp); border:1.5px solid var(--line); border-left:3px solid var(--olive);
  padding:clamp(22px,2.6vw,30px) clamp(24px,3vw,36px);
  transition:border-color .25s, background .25s, transform .25s var(--ease);
}
.guide-btn:hover{ background:#fff; border-color:var(--olive); transform:translateY(-1px); }
.guide-btn:focus-visible{ outline:2px solid var(--olive); outline-offset:2px; }
.gb-txt{ flex:1; min-width:240px; }
.gb-q{
  display:block; font-size:clamp(18px,2vw,24px); font-weight:700; color:var(--ink);
  letter-spacing:-.035em; margin-bottom:6px; word-break:keep-all;
}
.gb-s{ display:block; font-size:15px; color:var(--muted); word-break:keep-all; }
.gb-act{
  flex:none; display:inline-flex; align-items:center; gap:9px;
  font-size:14.5px; font-weight:700; color:#fff; background:var(--olive);
  padding:12px 22px; border-radius:100px; white-space:nowrap;
}
.gb-ico{ position:relative; width:11px; height:11px; }
.gb-ico::before,.gb-ico::after{
  content:''; position:absolute; left:0; top:5px; width:11px; height:1.8px;
  background:#fff; transition:transform .4s var(--ease), opacity .3s;
}
.gb-ico::after{ transform:rotate(90deg); }
.guide.on .gb-ico::after{ transform:rotate(0); opacity:0; }
.guide.on .guide-btn{ background:#fff; border-color:var(--olive); }

.guide-panel{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .5s var(--ease); }
.guide.on .guide-panel{ grid-template-rows:1fr; }
.gp-in{ overflow:hidden; }
.gp-body{
  border:1.5px solid var(--olive); border-top:none;
  padding:clamp(26px,3vw,40px) clamp(24px,3vw,36px) clamp(30px,3.4vw,44px);
  background:#fff;
}
.gp-lead{ font-size:15.5px; color:var(--body); line-height:1.85; word-break:keep-all; }
.gp-lead b{ color:var(--ink); }
.gp-sec{ margin-top:clamp(30px,3.4vw,44px); }
.gp-no{
  display:inline-block; font-size:12.5px; font-weight:700; color:var(--olive);
  letter-spacing:.14em; margin-bottom:8px; font-feature-settings:'tnum';
}
.gp-sec h3{ font-size:19px; margin-bottom:14px; }
.gp-tw{ overflow-x:auto; }
.gp-tbl{ width:100%; border-collapse:collapse; min-width:460px; }
.gp-tbl th{
  background:var(--cream-dp); color:var(--muted); font-size:12.5px; font-weight:700;
  letter-spacing:.06em; text-align:left; padding:11px 14px; border:1px solid var(--line);
}
.gp-tbl td{
  padding:13px 14px; border:1px solid var(--line); font-size:15px;
  color:var(--body); line-height:1.65; word-break:keep-all; vertical-align:top;
}
.gp-tbl td:first-child{ color:var(--ink); font-weight:600; width:38%; }
.gp-tbl strong{ color:var(--olive-dk); font-weight:700; }
.gp-info{
  margin-top:14px; padding:14px 17px; background:var(--cream-dp);
  border-left:2px solid var(--olive); font-size:14.5px; color:var(--body);
  line-height:1.75; word-break:keep-all;
}
.gp-info b{ color:var(--olive-dk); }
.gp-note{
  margin-top:clamp(26px,3vw,38px); padding-top:20px; border-top:1px solid var(--line);
  font-size:14px; color:var(--muted); line-height:1.75; word-break:keep-all;
}
@media (max-width:768px){
  .guide{ padding:32px 24px 0; }
  .guide-btn{ padding:20px 22px; gap:14px; }
  .gb-act{ width:100%; justify-content:center; }
  .gp-tbl td:first-child{ width:42%; }
}

/* ── 건강검진 → 검사별 상세 안내 링크 카드 ────────── */
.detail-link{ padding:0 40px clamp(60px,7vw,90px); }
.detail-link-in{
  max-width:1240px; margin:0 auto; display:flex; align-items:center; gap:28px; flex-wrap:wrap;
  background:var(--cream-dp); border:1px solid var(--line); border-left:3px solid var(--olive);
  padding:clamp(28px,3.2vw,42px) clamp(26px,3vw,40px);
}
.dl-txt{ flex:1; min-width:260px; }
.dl-txt .sec-h{ margin-bottom:12px; }
.dl-btn{
  flex:none; font-size:15px; font-weight:700; color:#fff; background:var(--olive);
  padding:15px 28px; border-radius:100px; white-space:nowrap;
  transition:background .25s, transform .25s var(--ease);
}
.dl-btn:hover{ background:var(--olive-dk); transform:translateY(-1px); }

/* ── 검사 안내 상세 페이지 (checkup/exam-guide.html) ─
   옛 사이트 마크업(class)을 그대로 살리고 스타일만 새로 입힘 */
.eg-wrap{
  max-width:1300px; margin:0 auto; padding:clamp(44px,5vw,72px) 40px clamp(60px,7vw,90px);
  display:grid; grid-template-columns:210px 1fr; gap:clamp(32px,4vw,60px); align-items:start;
}
/* 좌측 목차 */
.eg-nav{ position:sticky; top:calc(var(--hd-h) + 22px); }
.eg-guidelink{
  display:block; font-size:13.5px; font-weight:700; color:var(--olive-dk);
  background:var(--cream-dp); border:1px solid var(--line); border-radius:8px;
  padding:12px 14px; margin-bottom:20px; line-height:1.5; word-break:keep-all;
}
.eg-guidelink:hover{ border-color:var(--olive); background:#fff; }
.eg-gl{
  font-size:11.5px; font-weight:700; color:var(--olive); letter-spacing:.16em;
  margin:20px 0 8px; padding-bottom:7px; border-bottom:1px solid var(--line);
}
.eg-gl:first-of-type{ margin-top:0; }
.eg-nav a:not(.eg-guidelink){
  display:block; font-size:14.5px; color:var(--body); padding:7px 0 7px 11px;
  border-left:2px solid transparent; transition:.2s;
}
.eg-nav a:not(.eg-guidelink):hover{ color:var(--olive-dk); border-left-color:var(--olive); }
.eg-nav a.on{ color:var(--olive-dk); font-weight:700; border-left-color:var(--olive); }

/* 본문 블록 */
.eg-block{ padding-bottom:clamp(52px,6vw,86px); scroll-margin-top:calc(var(--hd-h) + 20px); }
.eg-block + .eg-block{ border-top:1px solid var(--line); padding-top:clamp(46px,5vw,72px); }
.eg .page-header{ margin-bottom:clamp(30px,3.4vw,44px); }
.eg .page-header .label{
  font-size:12px; font-weight:700; color:var(--olive);
  letter-spacing:.22em; text-transform:uppercase; margin-bottom:12px;
}
.eg .page-header h2{ font-size:clamp(25px,3vw,36px); margin-bottom:14px; }
.eg .page-header .desc{ font-size:16.5px; color:var(--body); line-height:1.8; word-break:keep-all; }
.eg .meta{ display:flex; flex-wrap:wrap; gap:9px; margin-top:20px; }
.eg .meta span{
  font-size:13.5px; color:var(--muted); background:var(--cream-dp);
  border:1px solid var(--line); border-radius:100px; padding:7px 16px;
}
.eg .meta strong{ color:var(--olive-dk); font-weight:700; margin-left:4px; }

.eg .content-section{ margin-bottom:clamp(28px,3vw,40px); }
.eg .section-num{
  display:inline-block; font-size:12.5px; font-weight:700; color:var(--olive);
  letter-spacing:.14em; margin-bottom:8px; font-feature-settings:'tnum';
}
.eg .content-section h3{ font-size:20px; margin-bottom:14px; }
.eg .content-section h4{
  font-size:15px; font-weight:700; color:var(--ink); margin:18px 0 8px;
}
.eg ul.list li, .eg ol.steps li{
  position:relative; font-size:15.5px; color:var(--body); line-height:1.8;
  margin-bottom:7px; word-break:keep-all;
}
.eg ul.list li{ padding-left:15px; }
.eg ul.list li::before{
  content:''; position:absolute; left:2px; top:.82em;
  width:4px; height:4px; border-radius:50%; background:var(--olive);
}
.eg ol.steps{ counter-reset:st; }
.eg ol.steps li{ padding-left:32px; counter-increment:st; }
.eg ol.steps li::before{
  content:counter(st); position:absolute; left:0; top:.28em;
  width:21px; height:21px; border-radius:50%; background:var(--olive); color:#fff;
  font-size:11.5px; font-weight:700; display:flex; align-items:center; justify-content:center;
}
.eg strong{ color:var(--ink); font-weight:700; }

.eg .table-wrap{ overflow-x:auto; margin:6px 0 4px; }
.eg table.exam-table{ width:100%; border-collapse:collapse; min-width:440px; }
.eg table.exam-table th{
  background:var(--cream-dp); color:var(--muted); font-size:12.5px; font-weight:700;
  letter-spacing:.06em; text-align:left; padding:11px 14px; border:1px solid var(--line);
}
.eg table.exam-table td{
  padding:12px 14px; border:1px solid var(--line); font-size:15px;
  color:var(--body); line-height:1.65; vertical-align:top; word-break:keep-all;
}
.eg table.exam-table td.col-name{ color:var(--ink); font-weight:600; width:36%; }

.eg .info-box, .eg .notice{
  margin:14px 0; padding:15px 18px; background:var(--cream-dp);
  border-left:2px solid var(--olive); font-size:14.5px; color:var(--body);
  line-height:1.8; word-break:keep-all;
}
.eg .notice{ background:#FBF3EC; border-left-color:#C08A4A; }
.eg .info-label, .eg .notice-label{
  display:inline-block; font-size:11.5px; font-weight:800; color:var(--olive-dk);
  letter-spacing:.1em; margin-right:8px;
}
.eg .notice-label{ color:#8A5A22; }

.eg .faq-item{ border-top:1px solid var(--line); padding:16px 0; }
.eg .faq-item:last-child{ border-bottom:1px solid var(--line); }
.eg .faq-q{
  font-size:16px; font-weight:700; color:var(--ink); margin-bottom:8px;
  padding-left:22px; position:relative; word-break:keep-all;
}
.eg .faq-q::before{
  content:'Q'; position:absolute; left:0; top:0; color:var(--olive); font-weight:800;
}
.eg .faq-a{
  font-size:15px; color:var(--body); line-height:1.8; padding-left:22px;
  position:relative; word-break:keep-all;
}
.eg .faq-a::before{
  content:'A'; position:absolute; left:0; top:0; color:var(--muted); font-weight:800;
}

@media (max-width:960px){
  .eg-wrap{ grid-template-columns:1fr; gap:26px; padding:36px 24px 64px; }
  .eg-nav{
    position:static; display:flex; flex-wrap:wrap; gap:6px;
    padding-bottom:18px; border-bottom:1px solid var(--line);
  }
  .eg-guidelink{ width:100%; margin-bottom:12px; }
  .eg-gl{ width:100%; margin:8px 0 4px; border:none; padding:0; }
  .eg-nav a:not(.eg-guidelink){
    border:1px solid var(--line); border-radius:100px; padding:7px 14px; font-size:13.5px;
  }
  .eg-nav a.on{ background:var(--olive); color:#fff; border-color:var(--olive); }
  .detail-link{ padding:0 24px 60px; }
  .dl-btn{ width:100%; text-align:center; }
}

/* ── 슬로건 히어로 (첫 화면) ────────────────────── */
.hero{
  position:relative; min-height:calc(74svh); display:flex;
  align-items:center; justify-content:center; padding:calc(var(--hd-h) + 40px) 40px 90px;
  border-bottom:1px solid var(--line);
}
.hero-in{ text-align:center; max-width:940px; }
.hero-slogan{
  width:100%; max-width:min(860px, 90vw); height:auto; margin:0 auto;
  animation:heroUp 1.1s var(--ease) both;
}
.hero-sub{
  margin-top:clamp(28px,3.2vw,44px); font-size:15.5px; font-weight:600;
  color:var(--muted); letter-spacing:.14em;
  animation:heroUp 1.1s .18s var(--ease) both;
}
@keyframes heroUp{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:none; } }

/* ── 첫 화면 예약 CTA ─────────────────────────────
   헤더 탭·퀵바가 있어도 **첫 화면에 버튼이 없으면** 예약까지 가지 않는다.
   슬로건 → 소개 → 버튼 순으로 0.3초 늦게 떠올라 시선이 자연스럽게 내려온다. */
.hero-cta{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  margin-top:clamp(26px,3vw,38px); height:62px; padding:0 40px;
  border-radius:100px; background:var(--olive); color:#fff;
  font-size:19px; font-weight:800; letter-spacing:-.02em;
  box-shadow:0 6px 22px rgba(92,127,34,.28);
  transition:background .25s, transform .25s var(--ease), box-shadow .25s;
  animation:heroUp 1.1s .3s var(--ease) both;
}
.hero-cta:hover{
  background:var(--olive-dk); transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(92,127,34,.34);
}
.hc-ico{
  width:21px; height:21px; flex:none;
  fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
}
.hero-cta-note{
  margin-top:13px; font-size:13.5px; color:var(--muted); letter-spacing:.01em;
  animation:heroUp 1.1s .42s var(--ease) both;
}

/* 서브 페이지(건강검진·내과·산부인과 등) 첫 화면 CTA — 사진 위라 채움 버튼으로 */
.sh-cta{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  margin-top:clamp(22px,2.6vw,32px); height:56px; padding:0 34px;
  border-radius:100px; background:var(--olive); color:#fff;
  font-size:17.5px; font-weight:800; letter-spacing:-.02em;
  box-shadow:0 5px 18px rgba(92,127,34,.26);
  transition:background .25s, transform .25s var(--ease), box-shadow .25s;
}
.sh-cta:hover{
  background:var(--olive-dk); transform:translateY(-2px);
  box-shadow:0 9px 24px rgba(92,127,34,.32);
}
.sh-cta .hc-ico{ width:19px; height:19px; }
.sh-cta-note{ margin-top:11px; font-size:13px; color:var(--muted); }

/* 스크롤 유도 */
.hero-scroll{
  position:absolute; left:50%; bottom:34px; transform:translateX(-50%);
  width:34px; height:52px; display:flex; justify-content:center;
  animation:heroUp 1.1s .4s var(--ease) both;
}
.hs-line{ position:relative; width:1px; height:100%; background:var(--line); overflow:hidden; }
.hs-line::after{
  content:''; position:absolute; left:0; top:-100%; width:1px; height:100%;
  background:var(--olive); animation:hsRun 2.1s var(--ease) infinite;
}
@keyframes hsRun{ 0%{ top:-100%; } 60%,100%{ top:100%; } }

@media (prefers-reduced-motion:reduce){
  .hero-slogan,.hero-sub,.hero-scroll,.hero-cta,.hero-cta-note{ animation:none; }
  .hs-line::after{ animation:none; top:0; }
}
@media (max-width:768px){
  .hero{ min-height:auto; padding:calc(var(--hd-h) + 56px) 24px 76px; }
  .hero-slogan{ max-width:min(480px, 92vw); }
  .hero-cta{ height:56px; padding:0 30px; font-size:17px; }
  .hero-cta-note{ font-size:12.5px; }
  .sh-cta{ height:52px; padding:0 26px; font-size:16px; }
  .hero-scroll{ bottom:26px; height:42px; }
}

/* ── 히어로 배경 (검진센터 로비) + 켄번즈 확대 ────
   느린 확대/이동을 무한 왕복시켜 정지 사진을 영상처럼 보이게 한다.
   실제 동영상 대신이라 용량 부담(157KB)이 거의 없다. */
.hero{ overflow:hidden; }
/* 배경 영상 — 정지이미지(.hero-bg) 위에 덮인다. poster 가 로딩·실패 상태를 가려
   깨짐이 없고, 모션축소 사용자는 아래에서 영상을 끄고 정지이미지로 되돌린다.
   opacity 는 이미지와 동일(.62)하게 두어 크림 스크림 가독성을 유지. */
.hero-video{
  position:absolute; inset:0; z-index:0;
  width:100%; height:100%; object-fit:cover;
  opacity:.62; background:var(--cream);
}
@media (prefers-reduced-motion:reduce){
  .hero-video{ display:none; }       /* 모션 민감 사용자는 정지이미지 켄번즈 */
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  display:none;                      /* 영상(.hero-video)이 대체 — 모션축소 시 되살림 */
  background:url(../img/hero-bg.jpg) center/cover no-repeat;
  opacity:.62;                       /* 연하게 깔려 배경처럼 */
  transform:scale(1.20);
  margin-right:clamp(-140px,-6vw,-24px);   /* 오른쪽 화면 끝으로 번짐 */
  animation:kenburns 28s ease-in-out infinite alternate;
  will-change:transform;
}
@keyframes kenburns{
  from{ transform:scale(1.06) translate3d(0,0,0); }
  to  { transform:scale(1.19) translate3d(-1.4%,-1.1%,0); }
}
/* 스크림 — 가운데는 크림으로 덮어 슬로건 가독성 확보, 가장자리는 로비가 비치게 */
.hero::after{
  content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    radial-gradient(ellipse 74% 62% at 50% 44%,
      rgba(250,249,245,.93) 0%,
      rgba(250,249,245,.80) 40%,
      rgba(250,249,245,.52) 72%,
      rgba(250,249,245,.38) 100%),
    linear-gradient(to bottom,
      rgba(250,249,245,.55) 0%,
      rgba(250,249,245,0) 22%,
      rgba(250,249,245,0) 74%,
      var(--cream) 100%);
}
.hero-in, .hero-scroll{ position:relative; z-index:2; }

@media (prefers-reduced-motion:reduce){
  .hero-bg{ display:block; animation:none; transform:scale(1.13); }
}
@media (max-width:768px){
  /* 모바일은 세로가 짧아 확대폭을 줄여 인물·간판이 잘리지 않게 */
  @keyframes kenburns{
    from{ transform:scale(1.04) translate3d(0,0,0); }
    to  { transform:scale(1.13) translate3d(-1%,-.8%,0); }
  }
}



/* 인사말 — 좁은 화면: 글이 사진 위에서 읽히도록 베일을 전체로 균일하게 */
@media (max-width:1080px){
  .greet-in{ grid-template-columns:1fr; }
  .greet{ min-height:auto; padding:clamp(70px,9vw,110px) 24px; }
  .greet::after{
    background:
      linear-gradient(to right,
        rgba(250,249,245,.93) 0%, rgba(250,249,245,.88) 55%, rgba(250,249,245,.72) 100%),
      linear-gradient(to bottom,
        var(--cream) 0%, rgba(250,249,245,0) 14%,
        rgba(250,249,245,0) 86%, var(--cream) 100%);
  }
  .greet-bg{ background-position:62% center; }
}

/* 좁은 화면에서는 로고를 조금 줄여 헤더가 답답하지 않게 */
@media (max-width:768px){
  :root{ --hd-h: 74px; }
  .brand-logo{ height:36px; }
}

/* 인사말 서명 — 편지처럼 '소속 한 줄' 뒤에 붓글씨 서명이 이어진다 */
.greet-sign{
  margin-top:clamp(30px,3.4vw,44px);
  display:flex; align-items:center; flex-wrap:wrap;
  gap:clamp(10px,1.6vw,20px);
}
.greet-sign span{
  font-size:clamp(14.5px,1.15vw,16px); font-weight:600; color:var(--body);
  letter-spacing:-.01em; white-space:nowrap;
}
.sign-img{
  width:clamp(140px,14vw,190px); height:auto; opacity:.92;
  /* 붓글씨 아래쪽 여백 때문에 글줄보다 떠 보여 살짝 내린다 */
  margin-bottom:-6px;
}
@media (max-width:420px){
  .greet-sign span{ white-space:normal; }
}


/* ── 예약 방법 카드 (아코디언 .item 과 분리된 전용 클래스) ── */
.book{ padding:clamp(64px,7vw,100px) 40px clamp(20px,3vw,36px); }
.book-in{ max-width:1240px; margin:0 auto; }
.book-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(20px,2.4vw,32px);
  margin-top:clamp(32px,4vw,48px);
}
.bcard{
  background:var(--cream); border:1px solid var(--line); border-radius:14px;
  padding:clamp(34px,3.6vw,50px) clamp(24px,3vw,40px);
  text-align:center; display:flex; flex-direction:column; align-items:center;
  transition:border-color .25s, transform .3s var(--ease);
}
.bcard:hover{ border-color:var(--bi,#C8D4B8); transform:translateY(-2px); }
.bc-ico{
  width:62px; height:62px; border-radius:50%; background:#EDF2E2;
  display:flex; align-items:center; justify-content:center; margin-bottom:22px;
}
.bc-ico svg{ width:27px; height:27px; color:var(--olive); }
.bcard h3{ font-size:21px; margin-bottom:12px; word-break:keep-all; }
.bc-desc{ font-size:15.5px; color:var(--muted); word-break:keep-all; }
.bc-tel{
  margin-top:22px; font-size:clamp(26px,2.8vw,34px); font-weight:800;
  color:var(--olive-dk); letter-spacing:-.02em; font-feature-settings:'tnum';
}
.bc-hours{ margin-top:18px; }
.bc-hours li{
  font-size:15px; color:var(--muted); line-height:1.85; font-feature-settings:'tnum';
}
.bc-hours li span{ color:var(--body); margin-right:6px; }
.bc-btn{
  margin-top:26px; display:inline-block; font-size:16px; font-weight:700; color:#fff;
  background:var(--olive); padding:15px 32px; border-radius:8px;
  transition:background .25s, transform .25s var(--ease);
}
.bc-btn:hover{ background:var(--olive-dk); transform:translateY(-1px); }
.bc-note{ margin-top:16px; font-size:14px; color:var(--muted); }
@media (max-width:768px){
  .book{ padding:56px 24px 12px; }
  .book-grid{ grid-template-columns:1fr; }
}

/* ── 온라인 예약 임시 잠금 안내 (main.js) ──────────────
   오픈하면 main.js 의 BOOKING_OPEN 만 true 로 바꾸면 되고,
   이 스타일은 그대로 두어도 화면에 나타나지 않는다. */
.soon-back{
  position:fixed; inset:0; z-index:200;
  display:flex; align-items:center; justify-content:center;
  padding:24px; background:rgba(28,28,26,.52);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  animation:soonIn .28s ease both;
}
@keyframes soonIn{ from{opacity:0} to{opacity:1} }
.soon-box{
  width:100%; max-width:460px; text-align:center;
  background:var(--cream,#faf9f5); border:1px solid var(--line,#e6e3da);
  border-radius:18px; padding:clamp(34px,5vw,46px) clamp(26px,4vw,38px);
  box-shadow:0 24px 60px rgba(28,28,26,.22);
  animation:soonUp .34s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes soonUp{ from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none} }
.soon-eyebrow{
  font-size:11.5px; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:var(--olive); margin-bottom:12px;
}
.soon-h{ font-size:clamp(20px,2.4vw,24px); font-weight:700; color:var(--ink,#1c1c1a); }
.soon-p{
  margin-top:14px; font-size:14.5px; line-height:1.75; color:var(--body,#57564f);
}
.soon-tel{
  display:inline-block; margin-top:20px; font-size:22px; font-weight:700;
  letter-spacing:.01em; color:var(--olive);
}
.soon-close{
  display:block; width:100%; margin-top:24px; padding:13px 0;
  font:inherit; font-size:14.5px; font-weight:600; text-align:center;
  color:var(--body,#57564f); background:transparent;
  border:1px solid var(--line,#e6e3da); border-radius:10px; cursor:pointer;
}
.soon-close:hover{ background:rgba(28,28,26,.04); }

/* ── 검사 안내 허브(카드 목록) — checkup/exam-guide.html ─────
   검사별 페이지로 나누면서(2026-07-22) 한 장짜리 목차가 카드로 바뀌었다. */
.egc-wrap{ padding:clamp(40px,5vw,64px) 40px clamp(70px,8vw,110px); }
.egc-in{ max-width:1040px; margin:0 auto; }
.egc-guide{ display:block; margin-bottom:clamp(30px,3.6vw,46px); }
.egc-gl{
  margin:clamp(30px,3.4vw,44px) 0 16px; font-size:12px; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; color:var(--muted);
}
.egc-gl:first-of-type{ margin-top:0; }
.egc-grid{
  display:grid; gap:10px;
  grid-template-columns:repeat(auto-fill, minmax(228px, 1fr));
}
.egc{
  position:relative; display:flex; flex-direction:column; gap:3px;
  padding:16px 40px 16px 20px; background:#fff;
  border:1px solid var(--line); border-radius:12px;
  transition:border-color .2s var(--ease), background .2s var(--ease),
             box-shadow .2s var(--ease);
}
.egc::after{
  content:'→'; position:absolute; right:18px; top:50%; transform:translateY(-50%);
  font-size:15px; color:var(--muted); transition:color .2s, transform .2s var(--ease);
}
.egc:hover{ border-color:var(--olive); box-shadow:0 6px 18px rgba(28,28,26,.06); }
.egc:hover::after{ color:var(--olive-dk); transform:translateY(-50%) translateX(3px); }
.egc-en{
  font-size:10px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--muted);
}
.egc:hover .egc-en{ color:var(--olive); }
.egc-h{ font-size:16.5px; font-weight:700; color:var(--ink); letter-spacing:-.01em; }

/* 대장내시경 준비 일정 요약 */
.eg-prep{
  margin:0 0 clamp(24px,3vw,34px); padding:16px 18px;
  background:var(--cream-dp); border-left:3px solid var(--olive);
  border-radius:0 10px 10px 0; font-size:14.5px; line-height:1.75; color:var(--body);
}
.eg-prep b{ color:var(--ink); margin-right:6px; }

/* 비교표 3열 이상 — 첫 열 36% 고정이 남은 열을 짓눌러 글자가 잘게 접혔다.
   (장정결제 3종 비교표에서 확인, 2026-07-22)
   열 수는 :has() 로 판별한다. 좁은 화면에서는 .table-wrap 이 가로 스크롤을 준다. */
.eg table.exam-table:has(thead th:nth-child(3)){ table-layout:fixed; min-width:640px; }
.eg table.exam-table:has(thead th:nth-child(3)) td.col-name{ width:22%; }
.eg table.exam-table:has(thead th:nth-child(4)){ min-width:760px; }
.eg table.exam-table:has(thead th:nth-child(4)) td.col-name{ width:17%; }
.eg table.exam-table:has(thead th:nth-child(3)) th,
.eg table.exam-table:has(thead th:nth-child(3)) td{
  padding:11px 12px; font-size:14.5px;
}

/* ── 맨 위로 버튼 — 퀵바 맨 아래(내 예약 밑) ─────────────────
   main.js 가 .quick 안에 넣는다. 스크롤을 내렸을 때만 보인다. */
.quick-top{
  opacity:0; visibility:hidden; pointer-events:none;
  transform:translateY(-6px);
  transition:opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.quick-top.on{ opacity:1; visibility:visible; pointer-events:auto; transform:none; }
.quick-top .qi{ font-size:19px; line-height:1; margin-bottom:4px; }
.quick-top{ cursor:pointer; }

@media (max-width:768px){
  /* 모바일 하단바는 예약 2칸이 같은 너비여야 한다(원장 지시) —
     '맨 위로'를 그 줄에 넣으면 3칸이 되므로, 바 위에 뜨는 동그란 버튼으로 뺀다. */
  .quick-top{
    position:fixed; right:14px; bottom:calc(100% + 0px); bottom:76px;
    width:46px; height:46px; padding:0; flex:none;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    border-radius:50%; background:rgba(250,249,245,.97);
    border:1px solid var(--line); box-shadow:0 4px 14px rgba(28,28,26,.14);
    font-size:0;                     /* 글자는 숨기고 화살표만 */
  }
  .quick-top .qi{ font-size:20px; margin:0; }
}

/* ── 검사 페이지 머리말 — 전폭 히어로 대신 본문 칼럼 안으로 (2026-07-22)
   히어로가 첫 화면을 다 차지해 목차·본문이 아래로 밀렸다.
   왼쪽 = 검사 목록, 오른쪽 = 제목부터 설명까지. */
.eg-head{
  padding-bottom:clamp(22px,2.6vw,30px); margin-bottom:clamp(26px,3vw,38px);
  border-bottom:1px solid var(--line);
}
.eg-en{
  font-size:11.5px; font-weight:700; color:var(--olive);
  letter-spacing:.2em; text-transform:uppercase; margin-bottom:11px;
}
.eg-head h1{
  font-size:clamp(26px,3.2vw,38px); font-weight:700; color:var(--ink);
  letter-spacing:-.02em; line-height:1.25;
}
.eg-lead{
  margin-top:14px; font-size:16px; line-height:1.8; color:var(--body);
  word-break:keep-all; max-width:62ch;
}
/* 히어로가 없어졌으므로 고정 헤더에 가리지 않게 위 여백을 준다 */
.eg-wrap{ padding-top:calc(var(--hd-h) + clamp(28px,3.4vw,48px)); }
@media (max-width:960px){
  /* 모바일은 헤더가 낮고 목차가 알약 줄로 바뀐다 — 위 여백을 다시 줄인다 */
  .eg-wrap{ padding-top:calc(var(--hd-h) + 16px); }
}
