/* =====================================================
   main.css — index.html 전용
   - 포함: 메인 비주얼 / 슬라이드 / 심볼 / One-stop 진료 과정(타임라인) / 진료과목 카드 · 롤링 / 메인 전용 반응형 · 키프레임
   - common.css 뒤에 로드합니다. 헤더 / 퀵메뉴 / 푸터 / 변수는 common.css 를 그대로 사용합니다.
   ===================================================== */

/* =====================================================
   메인 비주얼
   ===================================================== */
.hero {
  position: relative;
  min-height: 720px;
  height: 100vh; /* svh 미지원 브라우저 대비 */
  height: 100svh; /* 모바일 주소창이 변해도 흔들리지 않는 화면 높이 */
  overflow: hidden;
  border-radius: 0 0 100px 0;
  background: #77766a;
}
.scene,
.shade,
.video-layer {
  position: absolute;
  inset: 0;
}
.scene {
  background: linear-gradient(90deg, #acb1a4 0%, #e5e0d2 45%, #c6bda3 100%);
}
.scene.poster:before,
.scene.poster:after {
  display: none;
}
.scene:before {
  content: "";
  position: absolute;
  left: 48%;
  top: 10%;
  width: 20%;
  height: 65%;
  background: repeating-linear-gradient(90deg, #9b8c72 0 2px, #c1b196 2px 7px);
  box-shadow:
    -460px 100px 0 -50px #e3e0d5,
    510px 100px 0 -50px #d7d1c2;
}
.scene:after {
  content: "";
  position: absolute;
  left: 16%;
  right: -3%;
  height: 36%;
  bottom: -6%;
  background: linear-gradient(110deg, #eae7df, #c3bca9);
  box-shadow: 0 -12px 25px #8a7b6250;
  transform: skewY(2deg);
}
.video-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-layer iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.shade {
  background: rgba(27, 30, 22, 0.49);
}
/* =====================================================
   슬라이드 / 페이징
   ===================================================== */
.copy-swiper {
  height: 100%;
  position: relative;
  z-index: 2;
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 160px 130px 180px;
}
.copy {
  width: 100%;
}
.eyebrow {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold);
  margin: 0 0 36px;
}
.copy h1,
.copy h2 {
  font-size: clamp(38px, 3.25vw, 66px);
  line-height: 1.4;
  letter-spacing: -2px;
  margin: 0;
  font-weight: 800;
}
.line {
  display: block;
  overflow: hidden;
}
.line span {
  display: block;
  opacity: 0;
  transform: translateY(110%);
  transition:
    transform 1s var(--ease),
    opacity 0.7s;
}
.swiper-slide-active .line span {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 0.13s + 0.12s);
}
.eyebrow,
.description {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s,
    transform 1s var(--ease);
}
.swiper-slide-active .eyebrow,
.swiper-slide-active .description {
  opacity: 1;
  transform: none;
}
.swiper-slide-active .description {
  transition-delay: 0.45s;
}
.description {
  font-size: 20px;
  margin: 38px 0 0;
  line-height: 1.8;
  letter-spacing: 0.02px;
}
.paging {
  position: absolute;
  z-index: 4;
  left: 4.2%;
  right: 4.2%;
  bottom: 8%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.page {
  background: none;
  border: 0;
  text-align: left;
  padding: 14px 0 0;
  color: #ffffff80;
  font-size: 18px;
  position: relative;
  transition: color 0.3s;
  font-weight:500;
}
.page:before,
.progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: #ffffff45;
  content: "";
}
.progress {
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.page.active {
  color: var(--gold);
}
.play-toggle {
  position: absolute;
  right: 0;
  bottom: -36px;
  border: 0;
  background: none;
  font-size: 12px;
  color: white;
  opacity: 0.8;
}
/* =====================================================
   브랜드 소개
   ===================================================== */
.brand-intro {
  /* ---- 조절 가능한 디자인 값 ---- */
  --brand-intro-bg: #f2eee8;
  --brand-intro-ink: #2a2622;
  --brand-intro-sub: #7b6957;
  --brand-intro-symbol-size: min(clamp(280px, 26.8vw, 515px), 46svh); /* 심볼 높이 (PC 원본 515px, 폭은 518/515 비율로 자동). 낮은 화면에서도 리드 문구까지 한 화면에 들어오도록 높이로도 제한 */
  --brand-intro-pad-x: 98px; /* 우측 fixed 퀵메뉴(82px)와 겹치지 않는 안전 여백 */

  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 최소 한 화면 높이 (pin / 추가 스크롤 길이 없음). 내용이 더 크면 자동으로 늘어남. 모션은 진입 후 자동 재생 */
  min-height: 100svh;
  padding: clamp(48px, 6vw, 96px) var(--brand-intro-pad-x);
  background: var(--brand-intro-bg);
  color: var(--brand-intro-ink);
  text-align: center;
  overflow: hidden; /* clip 미지원 브라우저 대비 */
  overflow: clip; /* 이 섹션에서만 좌우 이동 심볼이 만드는 가로 스크롤 차단 */
}
/* JS 측정용: 모바일 주소창 변화에 흔들리지 않는 100svh 높이 */
.brand-intro__probe {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100svh;
  visibility: hidden;
  pointer-events: none;
}
/* 그룹 1: stage(심볼 크기만큼의 영역) 가운데에 심볼과 제목 묶음(core)이 같은 중심으로 겹침 */
.brand-intro__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: var(--brand-intro-symbol-size);
}
/* 심볼: 컨테이너(중앙/크기) > 이동 레이어(GSAP x) > 동일한 전체 심볼 */
.brand-intro__symbol {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  height: var(--brand-intro-symbol-size);
  aspect-ratio: 518 / 515; /* 좌 259×515 + 우 259×515 = 518×515 */
  transform: translate(-50%, -50%); /* 중앙 정렬 전용. GSAP은 건드리지 않음 */
  pointer-events: none;
}
.brand-intro__core {
  position: relative;
  z-index: 1;
  max-width: 100%;
}
/* 좌 / 우 조각은 각각 별도 이미지: 심볼 폭의 절반씩 차지하며 중앙에서 맞닿음 (GSAP 은 이 요소의 x 만 이동) */
.brand-intro__half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
}
.brand-intro__half--left {
  left: 0;
}
.brand-intro__half--right {
  right: 0;
}
.brand-intro__half img {
  display: block;
  width: 100%;
  height: 100%;
}
/* 텍스트 */
.brand-intro__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.brand-intro__title {
  margin: 0;
  font-size: clamp(42px, 5.21vw, 88px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-intro-ink);
}
.brand-intro__sub {
  margin: clamp(18px, 2vw, 30px) 0 0;
  font-size: clamp(17px, 1.45vw, 28px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--brand-intro-sub);
  text-wrap: balance;
}
.brand-intro__lead {
  margin: clamp(24px, 3.4vw, 56px) 0 0;
  font-size: clamp(25px, 3.1vw, 60px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--brand-intro-ink);
}
.brand-intro__row {
  display: block; /* PC에서는 2줄, 좁은 화면에서는 각 줄 안에서 자연 줄바꿈 */
  text-wrap: balance;
}
/* 글자 분리(JS가 생성) - 단어는 줄바꿈 단위, 글자는 모션 단위 */
.brand-intro__visual {
  display: block;
}
.brand-intro__word {
  display: inline-block;
  white-space: nowrap;
}
.brand-intro__char {
  display: inline-block;
}
.brand-intro__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .brand-intro {
    --brand-intro-pad-x: 72px; /* 퀵메뉴 56px + 여유 */
    --brand-intro-symbol-size: min(clamp(280px, 60vw, 480px), 44svh);
  }
}
@media (max-width: 580px) {
  .brand-intro {
    --brand-intro-pad-x: 58px; /* 퀵메뉴 50px + 여유 */
    /* 좁은 화면: 시작 상태(좌우로 벌어진 두 조각)가 퀵메뉴 옆 화면 안에 들어오도록 심볼을 작게 (이동 거리는 JS 가 남는 폭으로 계산) */
    --brand-intro-symbol-size: min(52vw, 280px, 42svh);
    padding-block: 56px;
  }
  .brand-intro__title {
    font-size: 44px;
  }
  .brand-intro__sub {
    font-size: 17px;
  }
  .brand-intro__lead {
    margin-top: 28px;
    font-size: 25px;
  }
}
/* =====================================================
   진료 강점 콘텐츠
   구조: section > stage(스크롤 길이) > viewport(화면에 머무름) > article.item(패널) > content
   - 기본(JS 없음 / reduced-motion): 일반 세로 흐름으로 전체 내용 표시
   - .is-stacked : JS가 부여. viewport가 화면에 sticky로 머무르고 3개 패널이 겹쳐 올라옴
   - .is-flow    : JS가 부여. 화면이 낮아 겹침 구조가 불가능할 때 일반 흐름 + 짧은 겹침 진입
   각 패널(article)은 불투명 배경(--care-feature-bg)을 가져야 이전 패널이 비쳐 보이지 않습니다.
   ===================================================== */
.care-feature {
  /* ---- 조절 가능한 디자인 값 ---- */
  --care-feature-bg: #f2eee8;
  --care-feature-ink: #171512;
  --care-feature-text: #4a443d;
  --care-feature-accent: #d9bb8c; /* 큰 영문: 밝은 샌드 골드 */
  --care-feature-btn: #a3958a; /* 버튼: 토프 브라운 */
  --care-feature-btn-hover: #8d7f74;
  --care-feature-width: min(calc(100% - 48px), 1644px); /* PC 원본 사진 1644×500 */
  --care-feature-ratio: 1644 / 500;
  --care-feature-radius: clamp(56px, 5.4vw, 100px); /* 사진 우측 하단 모서리만 */
  --care-feature-gap: clamp(110px, 9vw, 172px); /* 콘텐츠 사이 간격 */
  --care-feature-en-size: clamp(46px, 6.8vw, 140px);
  --care-feature-body-pad: 0px; /* 퀵메뉴와 본문이 겹치지 않도록 반응형에서 조정 */
  --care-feature-pad-y: clamp(20px, 4svh, 56px); /* 겹침 패널의 상하 여백 */
  --care-feature-photo-min: 96px; /* 겹침 패널에서 사진이 줄어들 수 있는 최소 높이 */
  --care-feature-flow-overlap: clamp(36px, 4vw, 64px); /* .is-flow 에서 이전 패널을 덮는 높이 */
  --care-feature-edge: 0 -14px 36px rgba(23, 21, 18, 0.07); /* 패널 윗선: 이전 패널과의 경계 */

  position: relative;
  z-index: 1; /* 브랜드 소개(아래)보다 위, 진료 과정(z-index 2)보다 아래 */
  /* 섹션 배경은 투명: stage가 앞선 브랜드 소개 하단과 겹쳐 있어도 소개가 비쳐 보여야 합니다.
     (배경은 main과 같은 색이며, 불투명 배경은 각 패널 article이 가집니다) */
  background: transparent;
  color: var(--care-feature-ink);
  text-align: center;
}
.care-feature__item {
  --care-img-pos: 50% 50%; /* 사진별 object-position (반응형에서 개별 지정) */

  position: relative;
  padding-block: calc(var(--care-feature-gap) / 2);
  background: var(--care-feature-bg); /* 불투명: 겹침 시 이전 패널이 비치지 않음 */
}
.care-feature__item:first-child {
  padding-top: 40px;
}
.care-feature__item:last-child {
  padding-bottom: clamp(120px, 12vw, 200px);
}
.care-feature__content {
  width: var(--care-feature-width);
  margin-inline: auto;
}
/* 사진: 최종 크기를 먼저 확보하고, 안쪽 reveal 래퍼의 clip-path만 GSAP로 제어 */
.care-feature__media {
  position: relative;
  margin: 0;
  aspect-ratio: var(--care-feature-ratio);
  border-radius: 0 0 var(--care-feature-radius) 0;
  overflow: hidden; /* 최종 둥근 모서리 유지 (영문은 형제 요소라 잘리지 않음) */
}
.care-feature__reveal {
  position: absolute;
  inset: 0;
  background: #e6dfd3; /* 이미지 로딩 전 자리 표시 (reveal과 함께 열림) */
}
.care-feature__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--care-img-pos);
  transform-origin: 50% 50%;
}
.care-feature__item--surgery {
  --care-img-pos: 50% 50%;
}
.care-feature__item--cases {
  --care-img-pos: 50% 50%;
}
.care-feature__item--team {
  --care-img-pos: 50% 50%;
}
/* 큰 영문: 음수 margin(레이아웃)과 글자별 translateY(GSAP)는 서로 다른 요소에 적용 */
.care-feature__en {
  position: relative;
  z-index: 2;
  margin: -0.42em 0 0;
  font-family: "Manrope","Inter", "Noto Sans KR", sans-serif;
  font-size: var(--care-feature-en-size);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--care-feature-accent);
  text-shadow: 0 2px 18px rgba(23, 21, 18, 0.08);
  pointer-events: none;
}
/* 글자 분리(JS가 생성) */
.care-feature__visual {
  display: block;
}
.care-feature__word {
  display: inline-block;
  white-space: nowrap;
}
.care-feature__char {
  display: inline-block;
}
.care-feature__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* 본문 */
.care-feature__body {
  position: relative;
  z-index: 1;
  padding-inline: var(--care-feature-body-pad);
  margin-top: clamp(6px, 0.9vw, 16px);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.care-feature__title {
  margin: 0;
  font-size: clamp(22px, 2vw, 45px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: var(--care-feature-ink);
  text-wrap: balance;
}
.care-feature__desc {
  margin: clamp(14px, 1.4vw, 26px) 0 0;
  font-size: clamp(14px, 0.95vw, 18px);
  line-height: 1.8;
  letter-spacing: -0.02em;
  color: var(--care-feature-text);
}
.care-feature__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(28px, 2.4vw, 44px);
  padding: 0.95em 2.4em;
  border: 0;
  border-radius: 10px;
  background: var(--care-feature-btn);
  color: #fff;
  font-size: clamp(14px, 0.85vw, 16px);
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: 0 0 20px rgba(0,0,0, 0.33);
  transition:
    background-color 0.25s,
    transform 0.25s;
}
.care-feature__btn:hover {
  background: var(--care-feature-btn-hover);
  transform: translateY(-2px);
}
.care-feature__btn:focus-visible {
  outline-color: #5d5046;
}
/* 모바일 주소창에 흔들리지 않는 화면 높이(100svh) 측정용 (JS가 생성, 화면에 보이지 않음) */
.care-feature__probe {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 100svh;
  visibility: hidden;
  pointer-events: none;
}
/* 모션 모드에서는 버튼 transform을 GSAP(scrub)이 제어하므로 CSS transform transition을 끔 */
.care-feature.is-stacked .care-feature__btn,
.care-feature.is-flow .care-feature__btn {
  transition: background-color 0.25s;
}
/* ---- .is-flow: 일반 흐름 + 짧은 겹침 진입 (패널 transform은 JS가 scrub으로 제어) ---- */
.care-feature.is-flow .care-feature__item {
  z-index: 1;
  margin-top: calc(var(--care-feature-flow-overlap) * -1);
  box-shadow: var(--care-feature-edge);
}
.care-feature.is-flow .care-feature__item:first-child {
  padding-top: calc(40px + var(--care-feature-flow-overlap));
}
.care-feature.is-flow .care-feature__item:nth-child(2) {
  z-index: 2;
}
.care-feature.is-flow .care-feature__item:nth-child(3) {
  z-index: 3;
}
/* ---- Team+ Approach → 네이비 진료 과정 전환 (겹침 모드 전용) ----
   네이비 섹션을 정확히 한 화면 높이(100svh)만큼 앞 섹션 위로 당깁니다.
   - sticky viewport(Team+ Approach)가 화면에 정지해 있는 동안 네이비는 스크롤 1:1 로 아래→위로 올라와 덮음
   - stage 하단이 화면 하단에 닿아 sticky 가 풀리는 순간 네이비 상단이 화면 상단에 도착 → 같은 문서 흐름으로 이어짐 (점프·transform 없음)
   값은 반드시 100svh 여야 합니다 (JS 가 이 margin 을 읽어 stage 의 tail 로 사용).
   일반 흐름(.is-flow) / reduced-motion / JS 미사용 에서는 기본 --care-process-overlap 겹침만 사용합니다. */
.care-feature.is-stacked + .care-process {
  margin-top: -100svh;
}
/* ---- .is-stacked: stage(스크롤 길이) 안에서 viewport가 sticky로 머무르고 패널이 겹쳐 올라옴 ----
   --care-feature-head / --care-feature-scroll / --care-feature-tail 은 JS가 측정해서 stage에 지정합니다.
   head   : 앞선 브랜드 소개 하단과 겹치는 높이 (첫 패널이 소개 하단을 덮으며 올라오기 위함)
   scroll : 3개 패널의 총 스크롤 길이
   tail   : 다음 섹션(진료 과정) 겹침 높이만큼의 여분 (마지막 읽기 구간이 가려지지 않게) */
.care-feature.is-stacked .care-feature__stage {
  position: relative;
  height: calc(100svh + var(--care-feature-scroll, 0px) + var(--care-feature-tail, 0px));
  margin-top: calc(var(--care-feature-head, 0px) * -1);
  pointer-events: none; /* 투명한 stage가 앞선 영역의 클릭을 막지 않도록 */
}
.care-feature.is-stacked {
  pointer-events: none; /* 클릭은 현재 패널(article)만 받음 */
}
.care-feature.is-stacked .care-feature__viewport {
  position: sticky; /* 조상에 overflow / 지속 transform 없음 */
  top: 0;
  height: 100svh;
  overflow: hidden; /* 내용이 들어오는 경우에만 사용: JS가 맞지 않으면 .is-flow로 전환 */
  pointer-events: none;
}
.care-feature.is-stacked .care-feature__item,
.care-feature.is-stacked .care-feature__item:first-child,
.care-feature.is-stacked .care-feature__item:last-child {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--care-feature-pad-y) 0;
  box-shadow: var(--care-feature-edge);
  pointer-events: auto;
}
.care-feature.is-stacked .care-feature__item:nth-child(2) {
  z-index: 2;
}
.care-feature.is-stacked .care-feature__item:nth-child(3) {
  z-index: 3;
}
.care-feature.is-stacked .care-feature__content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
}
/* 화면 높이가 부족하면 사진만 줄어듭니다 (영문/제목/설명/버튼 크기는 유지) */
.care-feature.is-stacked .care-feature__media {
  flex: 0 1 auto;
  width: 100%;
  min-height: var(--care-feature-photo-min);
}
.care-feature.is-stacked .care-feature__en,
.care-feature.is-stacked .care-feature__body {
  flex: none;
}
/* 화면 높이(svh)에 맞춰 영문·간격·글자를 함께 줄임 */
.care-feature.is-stacked {
  --care-feature-en-size: clamp(32px, min(6.8vw, 12svh), 140px);
}
.care-feature.is-stacked .care-feature__body {
  margin-top: clamp(4px, min(0.9vw, 1.6svh), 16px);
}
.care-feature.is-stacked .care-feature__title {
  font-size: clamp(18px, min(2vw, 3.8svh), 40px);
}
.care-feature.is-stacked .care-feature__desc {
  margin-top: clamp(8px, min(1.4vw, 2.6svh), 26px);
}
.care-feature.is-stacked .care-feature__btn {
  margin-top: clamp(14px, min(2.4vw, 4.4svh), 44px);
}
@media (max-width: 1000px) {
  .care-feature {
    --care-feature-width: calc(100% - 48px);
    --care-feature-ratio: 2.6 / 1;
    --care-feature-radius: clamp(44px, 7vw, 70px);
    --care-feature-gap: 110px;
    --care-feature-en-size: clamp(44px, 9vw, 84px);
    --care-feature-body-pad: 48px; /* 퀵메뉴 56px 점유 폭 고려 (좌우 24px + 48px = 72px) */
  }
  .care-feature.is-stacked {
    --care-feature-en-size: clamp(30px, min(9vw, 9svh), 84px);
  }
  .care-feature__br {
    display: none;
  }
  .care-feature__item--surgery {
    --care-img-pos: 47% 50%;
  }
  .care-feature__item--cases {
    --care-img-pos: 72% 50%;
  }
  .care-feature__item--team {
    --care-img-pos: 50% 50%;
  }
}
@media (max-width: 580px) {
  .care-feature {
    --care-feature-ratio: 1.8 / 1;
    --care-feature-radius: 40px;
    --care-feature-gap: 90px;
    --care-feature-en-size: clamp(30px, 8.6vw, 56px); /* 'Team+ Approach'가 본문 폭(좌우 58px 여백) 안에 들어오는 크기 */
    --care-feature-body-pad: 34px; /* 퀵메뉴 50px 점유 폭 고려 (좌우 24px + 34px = 58px) */
  }
  .care-feature.is-stacked {
    --care-feature-en-size: clamp(26px, min(8.6vw, 9svh), 56px);
  }
  .care-feature__item:last-child {
    padding-bottom: 100px;
  }
  .care-feature__title,
  .care-feature.is-stacked .care-feature__title {
    font-size: 24px;
  }
  .care-feature__desc,
  .care-feature.is-stacked .care-feature__desc {
    font-size: 14.5px;
    line-height: 1.85;
  }
}
/* =====================================================
   진료 과정 (care-process)
   구조: 외부 래퍼(.care-process: 겹침/스크롤 길이)
         > 네이비 패널(__panel: 배경+콘텐츠, 진입 transform은 여기에만)
           > 사진 sticky(__aside) + 단계 목록(__list: 일반 문서 흐름)
   ===================================================== */
.care-process {
  /* ---- 조절 가능한 디자인 값 ---- */
  --care-process-bg: #1d3c53;
  --care-process-gold: #dfbd8e;
  --care-process-gold-strong: #ecc78b; /* 진행선/이동 원/도달 지점 */
  --care-process-overlap: clamp(64px, 8vw, 160px); /* 이전 섹션(Team+ Approach) 하단을 덮는 높이 */
  --care-process-pad-l: clamp(24px, 4.2vw, 80px);
  --care-process-pad-r: max(var(--care-process-pad-l), 100px); /* 우측 fixed 퀵메뉴(82px) 점유 폭 */
  --care-process-sticky-top: clamp(72px, 12svh, 120px);
  --care-process-photo-ratio: 560 / 674;
  --care-process-photo-radius: clamp(48px, 5.21vw, 100px); /* 우측 하단 모서리만 (PC 100px) */
  --care-process-track-w: clamp(28px, 2.6vw, 44px);
  --care-process-num: clamp(32px, 3.3vw, 70px);
  --care-process-step-title: clamp(20px, 1.9vw, 35px);
  --care-process-step-pad: clamp(28px, 3.2vw, 56px);
  --care-process-step-min: clamp(220px, 30svh, 340px);
  --care-process-dot-y: calc(var(--care-process-step-pad) + var(--care-process-num) / 2);
  --care-process-pad-b: clamp(90px, 9vw, 150px); /* 패널 하단 여백 */
  /* 읽기 기준선(JS CARE_PROCESS.progress.readingLine)에서 화면 아래쪽까지의 높이.
     마지막 기준점이 기준선까지 올라올 수 있도록 하단 여백을 보충하는 데 사용 (PC 50% / 모바일 38%) */
  --care-process-read-rest: 50svh;
  /* PC: 04 기준점 아래 연장선 길이 = (03→04 기준점 거리) × 이 값. 0.6~0.8 권장. JS 가 px 로 환산해 --care-process-tail 로 설정 */
  --care-process-tail-ratio: 0.7;

  position: relative;
  z-index: 2;
  margin-top: calc(var(--care-process-overlap) * -1);
}
.care-process__panel {
  padding: clamp(90px, 9vw, 150px) var(--care-process-pad-r) var(--care-process-pad-b)
    var(--care-process-pad-l);
  background: var(--care-process-bg);
  color: #fff;
}
/* 상단 타이틀 */
.care-process__head {
  margin-bottom: clamp(48px, 6vw, 96px);
}
.care-process__eyebrow {
  margin: 0 0 clamp(10px, 1vw, 16px);
  font-family: "Manrope", "Inter", "Noto Sans KR", sans-serif;
  font-size: clamp(13px, 0.95vw, 20px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--care-process-gold);
}
.care-process__title {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 60px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #fff;
}
.care-process__desc {
  margin: clamp(14px, 1.3vw, 22px) 0 0;
  font-size: clamp(14px, 0.95vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  word-break: keep-all;
  font-family:var(--font-notosans);
}
/* 글자 분리(JS가 생성) */
.care-process__visual {
  display: block;
}
.care-process__word {
  display: inline-block;
  white-space: nowrap;
}
.care-process__char {
  display: inline-block;
}
.care-process__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* 본문: 사진(좌) / 과정 목록(우) */
.care-process__body {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  column-gap: clamp(32px, 5vw, 96px);
  /* 마지막 단계 아래 보충 여백: 기준점이 읽기 기준선에 닿은 뒤에도 화면 하단까지 스크롤 가능 */
  padding-bottom: max(
    0px,
    calc(
      var(--care-process-read-rest) - var(--care-process-step-min) + var(--care-process-dot-y) -
        var(--care-process-pad-b) + 24px
    )
  );
}
.care-process__sticky {
  position: sticky; /* 조상에 overflow:hidden / 지속 transform 없음 */
  top: var(--care-process-sticky-top);
}
.care-process__photos {
  position: relative;
  /* 원본 560×674 를 최대 크기로, 칸이 좁거나 뷰포트 높이를 넘으면 같은 비율로 축소 */
  width: min(100%, 560px, calc((100svh - var(--care-process-sticky-top) - 48px) * 560 / 674));
  aspect-ratio: var(--care-process-photo-ratio);
  border-radius: 0 0 var(--care-process-photo-radius) 0;
  overflow: hidden;
  background: #14304a;
}
.care-process__photo {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
}
.care-process__photo:first-child {
  opacity: 1; /* 기본 상태(JS 없음): 첫 사진 표시 */
}
.care-process__photo img,
.care-process__step-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--care-process-pos, 50% 50%);
}
/* 단계 목록 */
.care-process__list {
  position: relative;
  margin: -70px 0 0;
  padding: 0;
  list-style: none;
}
.care-process__step {
  position: relative;
  display: grid;
  grid-template-columns: var(--care-process-track-w) clamp(64px, 6vw, 112px) minmax(0, 1fr);
  align-items: start;
  min-height: var(--care-process-step-min);
  padding-block: var(--care-process-step-pad);
}
.care-process__step:not(:first-child)::after {
  /* 단계 사이 가로 구분선 (트랙 영역 제외) */
  content: "";
  position: absolute;
  top: 0;
  left: var(--care-process-track-w);
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  background:#757575;
  margin-left:55px;
}
.care-process__step:not(.care-process__step--last)::before {
  /* 기본 트랙: 이 단계 기준점 중심 → 다음 단계 기준점 중심 (CSS만으로 항상 정확) */
  content: "";
  position: absolute;
  left: calc(var(--care-process-track-w) / 2 - 0.5px);
  top: var(--care-process-dot-y);
  width: 1px;
  height: 100%;
  background: rgba(223, 189, 142, 0.28);
}
/* PC(JS 가 .has-tail 부여): 04 기준점 아래 연장선 + 사진 sticky 의 부모(목록 행) 높이.
   목록 하단 여백(--care-process-tail-pad)은 JS 가 "연장선 끝 도달 시점 = 사진 고정 종료"가 되도록 계산 → 기존 body 보충 여백은 불필요 */
.care-process.has-tail .care-process__step--last::before {
  content: "";
  position: absolute;
  left: calc(var(--care-process-track-w) / 2 - 0.5px);
  top: var(--care-process-dot-y);
  width: 1px;
  height: var(--care-process-tail, 0px);
  background: rgba(223, 189, 142, 0.28);
}
.care-process.has-tail .care-process__list {
  padding-bottom: var(--care-process-tail-pad, 0px);
}
.care-process.has-tail .care-process__body {
  padding-bottom: 0;
}
.care-process__dot {
  position: absolute;
  left: calc(var(--care-process-track-w) / 2);
  top: var(--care-process-dot-y);
  z-index: 1;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  box-sizing: border-box;
  border: 1.5px solid rgba(223, 189, 142, 0.5);
  border-radius: 50%;
  background: var(--care-process-bg);
  transition:
    background-color 0.3s,
    border-color 0.3s;
}
.care-process__num {
  grid-column: 2;
  font-family: "Manrope", "Inter", "Noto Sans KR", sans-serif;
  font-size: var(--care-process-num);
  font-weight: 700;
  line-height: 1;
  color: var(--care-process-gold);
  opacity: 0.6;
  transition: opacity 0.3s;
  padding:0 0 0 55px;
}
.care-process__text {
  grid-column: 3;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding:0 0 0 75px;
  margin-top:-10px;
}
.care-process__step-title {
  margin: 0;
  padding-top: calc((var(--care-process-num) - var(--care-process-step-title) * 1.2) / 2);
  font-size: var(--care-process-step-title);
  font-family: var(--font-notosans);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.3s;
}
.care-process__step-desc {
  margin: clamp(12px, 1.1vw, 20px) 0 0;
  font-size: clamp(13px, 0.9vw, 18px);
  line-height: 1.8;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.3s;
  font-family: var(--font-notosans);
}
.care-process__step.is-active .care-process__num {
  opacity: 1;
}
.care-process__step.is-active .care-process__step-title {
  color: #fff;
}
.care-process__step.is-active .care-process__step-desc {
  color: rgba(255, 255, 255, 0.88);
}
.care-process__step-photo {
  display: none; /* PC 는 왼쪽 공통(sticky) 사진 사용. 모바일(1000px 이하)에서만 단계별로 표시 */
}
/* 진행선 / 이동 원 (JS가 실제 기준점 좌표로 top/height 설정) */
.care-process__rail {
  position: absolute;
  left: calc(var(--care-process-track-w) / 2);
  top: 0;
  z-index: 2;
  display: none;
  width: 0;
  height: 0;
  pointer-events: none;
}
.care-process.is-ready .care-process__rail {
  display: block;
}
.care-process__fill {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--care-process-gold-strong);
  transform-origin: 50% 0;
  transform: scaleY(0);
}
.care-process__runner {
  position: absolute;
  left: -9px;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--care-process-gold-strong);
  box-shadow:
    0 0 0 5px rgba(236, 199, 139, 0.18),
    0 0 14px rgba(236, 199, 139, 0.5);
  will-change: transform;
}
@media (max-width: 1000px) {
  .care-process {
    --care-process-overlap: clamp(64px, 8vw, 80px);
    --care-process-pad-l: 24px;
    --care-process-pad-r: 24px; /* 좌우 24px 동일 (fixed 퀵메뉴는 overlay) */
    --care-process-track-w: 30px;
    --care-process-num: 40px;
    --care-process-step-title: 24px;
    --care-process-step-pad: 32px;
    --care-process-step-min: 0px; /* 단계 높이는 내용(설명 + 사진)에 따라 자연스럽게 */
    --care-process-pad-b: 90px;
    --care-process-read-rest: 0px; /* 마지막 단계(사진 포함)가 충분히 높아 하단 보충 여백 불필요 (JS 가 도달 가능 범위도 제한) */
    --care-process-step-photo-radius: 40px; /* 우측 하단 모서리만 */
  }
  .care-process__panel {
    padding-block: 90px;
  }
  /* 모바일: 공통(sticky) 사진 영역은 숨기고(display:none → 접근성 트리에서도 제외), 단계마다 자기 사진을 설명 아래에 일반 흐름으로 배치 */
  .care-process__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .care-process__aside {
    display: none;
  }
  .care-process__step-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 560 / 674; /* 로딩 전에도 공간 확보 (원본 비율) */
    max-width: 560px;
    margin-top: 22px; /* 설명과 사진 사이 */
    object-fit: cover;
    object-position: var(--care-process-pos, 50% 50%);
    border-radius: 0 0 var(--care-process-step-photo-radius) 0;
  }
  .care-process__br {
    display: none;
  }
	.care-process__list {
	  margin: 0 0;
	}
	.care-process__step-title { 
		padding-top:10px;
	}
   .care-process__num { padding-left: 10px; }

  .care-process__step {
    grid-template-columns:
      var(--care-process-track-w) minmax(0, 1fr);
    row-gap: 16px;
  }

  .care-process__text {
    grid-column: 2 / -1; /* 타임라인 오른쪽 영역 */
    grid-row: 2;        /* 번호 아래로 이동 */
    min-width: 0;
    padding: 0;
    margin-top: 0;
	padding-left:10px;
  }

	.care-process__step:not(:first-child)::after {
	  margin-left:10px;
	}


}
@media (max-width: 580px) {
  .care-process {
    --care-process-overlap: 64px;
    --care-process-step-photo-radius: 32px;
    --care-process-track-w: 26px;
    --care-process-num: 34px;
    --care-process-step-title: 22px;
    --care-process-step-pad: 28px;
    --care-process-pad-b: 80px;
  }
  .care-process__panel {
    padding-block: 80px;
  }
  .care-process__step {
    grid-template-columns: var(--care-process-track-w) 52px minmax(0, 1fr);
  }
  .care-process__title {
    font-size: 30px;
  }
  .care-process__step-desc {
    font-size: 14px;
  }
}
/* =====================================================
   맞춤형 특화진료 (specialty-care)
   구조: section > header + list > article.card(사진 / 딤드 / 내용)
   - 기본(JS 없음 / 900px 이하): 카드 3개를 세로로 쌓고 설명·버튼을 항상 표시 (딤드 70%)
   - 901px 이상 + JS(.is-enhanced): 카드 가로 배치. 활성 카드(.is-active)만 가로로 확장되고 상세가 나타남
   - 활성 상태는 JS가 클래스 하나(.is-active)로만 관리하고, 모든 전환은 CSS transition이 담당합니다
     (같은 속성을 JS/GSAP가 동시에 제어하지 않으며, 빠르게 오가면 transition이 현재 값에서 자연스럽게 이어짐)
   - 900/901px 기준은 main.js 의 SPECIALTY_CARE.desktopQuery 와 같아야 합니다
   ===================================================== */
.specialty-care {
  /* ---- 조절 가능한 값 ---- */
  --specialty-care-grow: 1; /* 기본 카드 비율 */
  --specialty-care-grow-active: 2.04; /* 활성 카드 비율 (나머지 두 카드는 1). PC 원본: 기본 528 / 활성 800 / 줄어든 카드 392 (= 800 : 392) */
  --specialty-care-dim: 0.1; /* 기본 딤드 (검정 overlay). 새 사진(main-img30N.png)에 이미 어두운 톤이 들어 있어 겹침을 줄임 */
  --specialty-care-dim-active: 0.35; /* 활성 / 모바일 딤드 (활성 사진 -w 는 더 어둡게 제작됨) */
  --specialty-care-dur-grow: 0.68s; /* 가로 확장 + 제목 이동 */
  --specialty-care-dur-dim: 0.45s; /* 딤드 전환 */
  --specialty-care-dur-detail: 0.45s; /* 설명·버튼 등장 */
  --specialty-care-detail-delay: 0.15s; /* 확장이 시작된 뒤 설명이 나타나기까지 */
  --specialty-care-btn-delay: 0.08s; /* 버튼이 설명보다 늦게 나타나는 시간 */
  --specialty-care-zoom: 1.035; /* 활성 카드 사진 확대 */
  --specialty-care-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --specialty-care-width: calc(100% - 48px); /* 카드 그룹 폭 (gap 포함, padding 제외) */
  --specialty-care-max-width: 1644px; /* 카드 그룹 최대 폭 */
  --specialty-care-gap: clamp(12px, 1.8vw, 30px); /* PC 30px (3 × 528 + 2 × 30 = 1644) */
  --specialty-care-height: clamp(320px, 31.4vw, 603px); /* PC 원본 높이 603px (1920px 기준 31.4vw), 좁아지면 비례 축소 */
  --specialty-care-radius: clamp(64px, 5.21vw, 100px); /* 카드 우측 하단 모서리만 (PC 100px) */
  --specialty-care-pad-x: clamp(20px, 2.2vw, 32px); /* 카드 안쪽 좌우 여백 */
  --specialty-care-detail-gap: clamp(14px, 1.3vw, 20px); /* 제목과 설명 사이 */
  --specialty-care-btn: rgb(163 149 138 / 0.9);
  --specialty-care-btn: rgb(123 105 87 / 0.6);
  --specialty-care-btn-hover: rgb(141 127 116 / 0.95);

  position: relative;
  padding: clamp(72px, 8vw, 130px) 0 clamp(88px, 9vw, 150px);
  background: #fff;
  color: var(--navy);
  text-align: center;
}
.specialty-care__head {
  margin-bottom: clamp(36px, 4.4vw, 72px);
  padding-inline: 24px;
}
.specialty-care__eyebrow {
  margin: 0 0 clamp(8px, 0.8vw, 14px);
  font-family: "Manrope", "Inter", "Noto Sans KR", sans-serif;
  font-size: clamp(12px, 0.9vw, 20px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--gold);
}
.specialty-care__title {
  margin: 0;
  font-size: clamp(26px, 2.5vw, 50px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--navy);
}
/* ---- 카드 (기본 = 세로 배치, 상세 항상 표시) ---- */
.specialty-care__list {
  display: grid;
  gap: 16px;
  width: calc(100% - 48px);
  margin-inline: auto;
}
.specialty-care__card {
  --specialty-care-shade: var(--specialty-care-dim-active);

  position: relative;
  display: flex;
  min-width: 0;
  min-height: 300px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0 0 var(--specialty-care-radius) 0;
  background: #3a4651; /* 사진 로딩 전 배경 */
  color: #fff;
}
.specialty-care__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--specialty-care-pos, 50% 50%);
  transform: scale(1);
  transform-origin: 50% 50%;
}
/* 활성(와이드) 사진: 기본 사진 위에 겹쳐 두고 opacity 만 전환 (crossfade). PC 호버 확장 구간에서만 사용 → 모바일은 기본 사진 한 장 */
.specialty-care__img--hover {
  display: none;
  opacity: 0;
}
/* 딤드: 검정 overlay만 투명도를 가짐 (카드 전체 opacity / filter 사용 안 함) */
.specialty-care__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgb(0 0 0 / var(--specialty-care-shade));
  transition: background-color var(--specialty-care-dur-dim) ease;
  pointer-events: none;
}
.specialty-care__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 52px 56px;
  text-align: center;
}
.specialty-care__name {
  margin: 0;
  font-size: clamp(21px, 6.4vw, 40px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.specialty-care__toggle {
  display: block;
  margin: 0;
  padding: 0.15em 0.3em;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: clamp(21px, 6.4vw, 40px);
  letter-spacing: inherit;
  text-wrap: balance;
  word-break: keep-all;
}
.specialty-care__toggle:disabled {
  cursor: default;
}
.specialty-care__detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--specialty-care-detail-gap);
}
.specialty-care__desc {
  margin: 0 0 0.7em;
  max-width: 36em;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgb(255 255 255 / 0.94);
  text-wrap: balance;
  word-break: keep-all;
}
.specialty-care__br {
  display: none;
}
.specialty-care__btn {
  margin-top: clamp(16px, 1.6vw, 24px);
  padding: 0.85em 2em;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 12px;
  background: var(--specialty-care-btn);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: background-color 0.25s;
}
.specialty-care__btn:hover {
  background: var(--specialty-care-btn-hover);
}
/* ---- 901px 이상 + JS: 가로 확장 카드 ---- */
@media (min-width: 901px) {
  .specialty-care.is-enhanced .specialty-care__list {
    --specialty-care-content-w: min(100%, 440px); /* container query 미지원 시 대체 폭 */

    display: flex;
    gap: var(--specialty-care-gap);
    width: var(--specialty-care-width);
    max-width: var(--specialty-care-max-width);
    margin-inline: auto;
    container-type: inline-size;
  }
  /* 상세 내용 폭 = 활성 카드의 안쪽 폭으로 고정:
     카드 폭이 변하는 동안 설명이 다시 줄바꿈되며 튀지 않음 (카드 overflow:hidden 이 가장자리를 가림) */
  @supports (width: 1cqw) {
    .specialty-care.is-enhanced .specialty-care__list {
      --specialty-care-content-w: calc(
        (100cqw - 2 * var(--specialty-care-gap)) * var(--specialty-care-grow-active) /
          (var(--specialty-care-grow-active) + 2 * var(--specialty-care-grow)) - 2 *
          var(--specialty-care-pad-x)
      );
    }
  }
  .specialty-care.is-enhanced .specialty-care__card {
    --specialty-care-shade: var(--specialty-care-dim);

    flex: var(--specialty-care-grow) 1 0%;
    height: var(--specialty-care-height);
    min-height: 0;
    transition: flex-grow var(--specialty-care-dur-grow) var(--specialty-care-ease);
  }
  .specialty-care.is-enhanced .specialty-care__card.is-active {
    --specialty-care-shade: var(--specialty-care-dim-active);

    flex-grow: var(--specialty-care-grow-active);
  }
  .specialty-care.is-enhanced .specialty-care__img {
    transition: transform 0.8s var(--specialty-care-ease);
  }
  /* 기본 사진은 그대로 두고 위의 활성 사진만 나타났다 사라짐 → 중간에 배경이 비치지 않음 */
  .specialty-care.is-enhanced .specialty-care__img--hover {
    display: block;
    transition:
      transform 0.8s var(--specialty-care-ease),
      opacity var(--specialty-care-dur-grow) ease;
  }
  .specialty-care.is-enhanced .specialty-care__card.is-active .specialty-care__img--hover {
    opacity: 1;
  }
  .specialty-care.is-enhanced .specialty-care__card.is-active .specialty-care__img {
    transform: scale(var(--specialty-care-zoom));
  }

  /* 내용 그룹은 항상 카드 중앙 (justify-content 는 바뀌지 않음) */
  .specialty-care.is-enhanced .specialty-care__content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(--specialty-care-content-w);
    padding: 0;
    transform: translateX(-50%);
  }
  .specialty-care.is-enhanced .specialty-care__name {
    font-size: clamp(19px, 1.65vw, 26px);
    /* 기본: 숨겨진 상세의 절반 높이만큼 내려가 제목이 카드 중앙에 놓임 (--specialty-care-shift 는 JS가 측정) */
    transform: translateY(var(--specialty-care-shift, 0px));
    transition: transform var(--specialty-care-dur-grow) var(--specialty-care-ease);
  }
  .specialty-care.is-enhanced .specialty-care__card.is-active .specialty-care__name {
    transform: translateY(0);
  }
  .specialty-care.is-enhanced .specialty-care__toggle {
    cursor: pointer;
  }
  .specialty-care.is-enhanced .specialty-care__desc {
    font-size: clamp(12.5px, 0.98vw, 15px);
    max-width: none;
  }
  .specialty-care.is-enhanced .specialty-care__br {
    display: inline;
  }
  .specialty-care.is-enhanced .specialty-care__btn {
    font-size: clamp(12px, 0.9vw, 14px);
  }

  /* 상세(설명 → 버튼): 숨김 상태는 visibility 로 Tab 포커스 / 스크린리더에서도 제외 */
  .specialty-care.is-enhanced .specialty-care__desc,
  .specialty-care.is-enhanced .specialty-care__btn {
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0s linear 0.22s,
      background-color 0.25s;
  }
  .specialty-care.is-enhanced .specialty-care__card.is-active .specialty-care__desc,
  .specialty-care.is-enhanced .specialty-care__card.is-active .specialty-care__btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      opacity var(--specialty-care-dur-detail) ease var(--specialty-care-detail-delay),
      transform var(--specialty-care-dur-detail) var(--specialty-care-ease)
        var(--specialty-care-detail-delay),
      visibility 0s linear var(--specialty-care-detail-delay),
      background-color 0.25s;
  }
  .specialty-care.is-enhanced .specialty-care__card.is-active .specialty-care__btn {
    transition-delay:
      calc(var(--specialty-care-detail-delay) + var(--specialty-care-btn-delay)),
      calc(var(--specialty-care-detail-delay) + var(--specialty-care-btn-delay)),
      calc(var(--specialty-care-detail-delay) + var(--specialty-care-btn-delay)), 0s;
  }
}
@media (max-width: 580px) {
  .specialty-care__list {
    width: calc(100% - 32px);
  }
  .specialty-care__card {
    min-height: 280px;
  }
  .specialty-care__content {
    padding: 48px 48px;
  }
  .specialty-care__desc {
    font-size: 14px;
  }
}
/* =====================================================
   의료진 소개 유도 섹션 (commitment)
   - 일반 문서 흐름. 기본 HTML/CSS 만으로 본문·버튼·롤링 문구가 모두 보이는 상태입니다.
   - 등장 모션은 JS(GSAP)가 초기화에 성공했을 때만 숨김 상태를 만들고, 롤링은 JS 가 복제·이동합니다.
   - 높이: 데스크톱은 min-height(비율) 로 고정, 모바일은 내용 + 롤링 높이만큼 (글자·버튼이 잘리지 않음)
   ===================================================== */
.commitment {
  /* ---- 조절 가능한 값 ---- */
  /* 배경 로고 교체: 원본 투명 PNG/SVG 를 assets/images/commitment-logo.svg 로 넣고 아래 줄을 활성화하세요.
     (원본이 없으면 파일 요청 404 를 피하려고 none 으로 둡니다. 현재는 로고 자리만 비어 있음) */
  --commitment-logo: none; /* 예: url("../images/commitment-logo.svg") */
  --commitment-logo-opacity: 0.35; /* 배경 로고 최종 불투명도 */
  --commitment-logo-filter: brightness(0) invert(1); /* 로고를 흰색 실루엣으로. 원본 색을 그대로 쓰려면 none */
  --commitment-roll-opacity: 0.5; /* 하단 롤링 최종 불투명도 */
  --commitment-roll-size: clamp(120px, 8.1vw, 152px); /* 롤링 글자 크기 (모바일은 아래 media 에서 60~85px) */
  --commitment-pad-top: clamp(48px, 6.4vw, 130px);
  --commitment-btn: #8f7f70;
  --commitment-btn: rgb(123 105 87 / 0.6);
  --commitment-btn-hover: #7a6b5e;

  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  isolation: isolate; /* 심볼(z-index 0)이 섹션 뒤로 숨지 않도록 자체 stacking context */
  height: 800px; /* PC 전체 높이 (본문 여백 + 하단 롤링 포함). 모바일은 아래 media 에서 auto */
  min-height: 0;
  /* 배경 사진 (1920×800): 섹션 전체를 채움. 사진 로딩 전에는 비슷한 밝기의 단색(오버레이 아님, 사진 뒤에 깔림) */
  background: #dcdcdc url("../images/main/snu-bg.jpg") center / 100% 100% no-repeat;
  color: var(--navy);
  text-align: center;
}
.commitment__body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--commitment-pad-top) 24px 0;
}
/* 서울대 심볼 (장식 레이어). 원본 SVG(흰색 30%)를 그대로 사용하고 opacity 변경 없음.
   PC: 섹션(position: relative, border·padding 없음) 상단에서 심볼 상단까지 94px, 가로 중앙은 left 50% + translateX(-50%).
   래퍼는 섹션 전체를 덮는 투명 레이어일 뿐 세로 보정(top 50%, translateY, margin-top)은 없음 */
.commitment__symbol-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.commitment__symbol {
  position: absolute;
  top: 94px;
  left: 50%;
  display: block;
  width: 483px;
  height: 502px;
  max-width: none;
  object-fit: contain;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}
/* 배경 로고: 위치(중앙 정렬 transform)는 바깥 래퍼, 등장(opacity/scale)은 안쪽 요소 */
.commitment__logo {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--commitment-pad-top) / 2 - 12px);
  z-index: -1;
  width: clamp(220px, 25vw, 520px);
  aspect-ratio: 1 / 1.04;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.commitment__logo-img {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--commitment-logo) center / contain no-repeat;
  filter: var(--commitment-logo-filter);
  opacity: var(--commitment-logo-opacity);
}
.commitment__eyebrow {
  margin: 0;
  font-family: "Manrope", "Inter", "Noto Sans KR", sans-serif;
  font-size: clamp(13px, 0.9vw, 20px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--brown);
}
.commitment__title {
  margin: clamp(10px, 1.6vw, 44px) 0 0;
  font-size: clamp(28px, 2.14vw, 55px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--navy);
  word-break: keep-all;
  text-wrap: balance;
}
.commitment__line {
  display: block;
}
.commitment__btn {
  margin-top: clamp(32px, 4.4vw, 88px);
  min-height: 44px;
  padding: 13px clamp(24px, 2vw, 40px);
  border: 0;
  border-radius: 8px;
  background: var(--commitment-btn);
  border:1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: clamp(14px, 0.95vw, 18px);
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgb(70 55 40 / 0.18);
  transition: background-color 0.25s;
}
.commitment__btn:hover {
  background: var(--commitment-btn-hover);
}
.commitment__btn:focus-visible,
.commitment__roll-toggle:focus-visible {
  outline-color: var(--navy);
}
/* 하단 영문 롤링: 가로 넘침은 이 래퍼에서만 잘라냄 */
.commitment__roll {
  position: relative;
  z-index: 0;
  flex: none;
  display: flex;
  justify-content: center; /* JS 없음 / reduced-motion: 가운데 정렬, 좌우가 잘림 */
  height: calc(var(--commitment-roll-size) * 1.2);
  overflow: hidden;
  opacity: var(--commitment-roll-opacity);
  pointer-events: none;
  user-select: none;
}
.commitment__roll.is-marquee {
  justify-content: flex-start;
}
.commitment__roll-track {
  display: flex;
  flex: none;
  width: max-content;
  will-change: transform;
}
.commitment__roll.is-static .commitment__roll-track {
  will-change: auto;
}
.commitment__roll-set {
  display: flex;
  flex: none;
}
.commitment__roll-group {
  flex: none;
  font-family: "Manrope", "Inter", "Noto Sans KR", sans-serif;
  font-size: var(--commitment-roll-size);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.5);
}
/* 롤링 일시정지 / 재생 (작게, 롤링 영역 위 왼쪽) */
.commitment__roll-toggle {
  position: absolute;
  left: 24px;
  bottom: calc(var(--commitment-roll-size) * 1.2 + 14px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgb(21 62 86 / 0.3);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.45);
  color: var(--navy);
  transition:
    background-color 0.25s,
    border-color 0.25s;
}
.commitment__roll-toggle[hidden] {
  display: none;
}
.commitment__roll-toggle:hover {
  background: rgb(255 255 255 / 0.8);
  border-color: rgb(21 62 86 / 0.55);
}
.commitment__roll-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.commitment__icon-play {
  display: none;
  fill: currentColor;
  stroke: none;
}
.commitment__roll-toggle.is-paused .commitment__icon-pause {
  display: none;
}
.commitment__roll-toggle.is-paused .commitment__icon-play {
  display: block;
}
@media (max-width: 900px) {
  .commitment {
    --commitment-roll-size: clamp(60px, 15vw, 85px);
    --commitment-pad-top: 72px;

    height: auto;
    min-height: 0;
  }
  /* 모바일(PC 의 94px 는 적용하지 않음): 심볼은 화면 너비에 비례 축소, 본문(상단 여백 제외·롤링 위) 영역 중앙에 flex 로 배치
     (본문 하단 여백 56px 도 같이 반영해 본문 묶음과 같은 중심 유지) */
  .commitment__symbol-wrap {
    inset: 0 0 calc(var(--commitment-roll-size) * 1.2) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: var(--commitment-pad-top) 0 56px;
  }
  .commitment__symbol {
    position: static;
    flex: none;
    width: min(483px, 72vw);
    height: auto;
    aspect-ratio: 483 / 502;
    transform: none;
  }
  /* 좌우 24px 동일 (fixed 퀵메뉴는 overlay 로 두고 본문 영역을 줄이지 않음) */
  .commitment__body {
    padding: var(--commitment-pad-top) 24px 56px;
  }
  .commitment__logo {
    width: clamp(200px, 62vw, 340px);
  }
  .commitment__title {
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.45;
  }
  .commitment__btn {
    margin-top: 36px;
  }
  .commitment__roll-toggle {
    left: 20px;
  }
}
@media (max-width: 580px) {
  .commitment__body {
    padding-inline: 20px;
  }
}
@media (pointer: coarse) {
  .commitment__roll-toggle {
    width: 44px;
    height: 44px;
  }
}
/* =====================================================
   분야별 특화수술 (surgery)
   - 4열 카드 (호버 시 크기 변화 없음, 사진 위 딤드 overlay 만 20% → 50%)
   - 기본 HTML/CSS 만으로 모든 콘텐츠가 보이는 상태. 등장 모션은 JS(GSAP) 초기화 성공 시에만 숨김을 적용
   - 진입 모션은 transform·opacity, 호버는 .surgery__shade 의 background-color 로 역할을 분리
   ===================================================== */
.surgery {
  /* ---- 조절 가능한 값 ---- */
  --surgery-max-width: 1644px; /* 카드 그룹 최대 폭 (gap 포함) */
  --surgery-gap: 30px; /* PC 카드 간격 */
  --surgery-height: 603px; /* PC 카드 높이 (좁은 PC 에서는 비율로 줄어듦) */
  --surgery-dim: 0.2; /* 기본 딤드 */
  --surgery-dim-hover: 0.5; /* 호버 / 키보드 focus-within 딤드 */
  --surgery-dim-dur: 0.45s; /* 딤드 전환 시간 */
  --surgery-radius: 19px;
  position: relative;
  padding: clamp(72px, 8vw, 130px) 0 clamp(88px, 9vw, 150px);
  background: #eeeae4;
  color: var(--navy);
  text-align: center;
}
/* 사진별 object-position (정형외과 / 종양 / 치과·구강 / 고난도 외과) */
.surgery__card:nth-child(1) {
  --surgery-pos: 50% 50%;
}
.surgery__card:nth-child(2) {
  --surgery-pos: 50% 50%;
}
.surgery__card:nth-child(3) {
  --surgery-pos: 50% 50%;
}
.surgery__card:nth-child(4) {
  --surgery-pos: 50% 50%;
}
.surgery__head {
  margin-bottom: clamp(36px, 4.4vw, 72px);
  padding-inline: 24px;
}
.surgery__eyebrow {
  margin: 0 0 clamp(8px, 0.8vw, 12px);
  font-family: "Manrope", "Inter", "Noto Sans KR", sans-serif;
  font-size: clamp(12px, 0.9vw, 20px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--gold);
}
.surgery__title {
  margin: 0;
  font-size: clamp(26px, 2.5vw, 50px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.surgery__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--surgery-gap);
  width: calc(100% - 48px);
  max-width: var(--surgery-max-width);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}
.surgery__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  /* 4열 폭에 비례해 줄어들다가 충분히 넓으면 603px (카드 폭 ≈ (100vw - 138px) / 4, 높이 ≈ 폭 × 1.55) */
  height: clamp(420px, calc((100vw - 138px) * 0.3875), var(--surgery-height));
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--surgery-radius);
  background: #0b1a2b; /* 사진 로딩 전 배경 */
  color: #fff;
}
.surgery__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--surgery-pos, 50% 50%);
}
/* 카드별 독립 딤드 overlay: 사진 → 딤드 → 제목·태그 (카드 opacity / brightness 는 건드리지 않음) */
.surgery__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgb(0 0 0 / var(--surgery-dim));
  transition: background-color var(--surgery-dim-dur) ease;
  pointer-events: none;
}
.surgery__card:focus-within .surgery__shade {
  background-color: rgb(0 0 0 / var(--surgery-dim-hover));
}
@media (hover: hover) {
  .surgery__card:hover .surgery__shade {
    background-color: rgb(0 0 0 / var(--surgery-dim-hover));
  }
}
.surgery__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 2.4vw, 46px) clamp(24px, 1.8vw, 34px);
}
.surgery__content_empty_bottom { padding-bottom:83px; padding-bottom:clamp(20px, 4.8vw, 83px) }
.surgery__name {
  margin: 0 0 clamp(14px, 1.1vw, 22px);
  font-size: clamp(20px, 1.7vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--gold);
  word-break: keep-all;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.3);
}
.surgery__tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 0.75vw, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.surgery__tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: clamp(28px, 1.8vw, 34px);
  padding: 0.3em 1em;
  border: 1px solid rgb(255 255 255 / 0.6);
  border: 1px solid rgb(255 255 255 / 1);
  border-radius: 999px;
  font-size: clamp(12.5px, 0.85vw, 18px);
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  word-break: keep-all;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.3);
}
/* 태블릿: 2열 (좌우 24px 동일, 퀵메뉴는 overlay) */
@media (max-width: 1100px) {
  .surgery {
    padding-inline: 24px;
  }
  .surgery__head {
    padding-inline: 0;
  }
  .surgery__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 24px);
    width: 100%;
    max-width: none;
  }
  .surgery__card {
    height: clamp(380px, 56vw, 520px);
  }
  .surgery__name {
    font-size: clamp(22px, 3vw, 28px);
  }
  .surgery__tag {
    font-size: clamp(13px, 1.7vw, 15px);
  }

  .surgery__content_empty_bottom { padding-bottom:auto; }

}
/* 모바일: 1열 */
@media (max-width: 680px) {
  .surgery__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .surgery__card {
    height: clamp(460px, 100vw, 540px);
  }
  .surgery__name {
    font-size: clamp(22px, 6vw, 26px);
  }
  .surgery__tag {
    font-size: 14px;
  }
}
@media (max-width: 580px) {
  .surgery {
    padding-inline: 20px;
  }
}
/* =====================================================
   만수무강 재활치료센터 (rehab-center)
   - 브라우저 전체 너비 사용 (1644px 제한 없음). 일반 문서 흐름, pin 없음
   - 기본 HTML/CSS 만으로 사진 · 문구 · 삼각형 원 배치 · 버튼이 모두 보이는 상태 (정적 상태)
   - 등장 / 원 순환 / 사진 전환은 JS(GSAP)가 초기화에 성공했을 때만 동작
   - 원 위치: 바깥 .rehab-center__venn(등장) → .rehab-center__stage(자리) → .rehab-center__circle(순환 이동)
   ===================================================== */
.rehab-center {
  /* ---- 조절 가능한 값 ---- */
  --rehab-d: clamp(140px, 13.5vw, 270px); /* 원 지름 (도형 전체 너비 = 지름 × 1.75, PC 약 440~470px) */
  /* 삼각형 자리 (원 지름 단위, 도형 중심 기준). 위 / 왼쪽 아래 / 오른쪽 아래 — JS 순환이 이 값을 읽어 사용 */
  --rehab-slot0-x: 0;
  --rehab-slot0-y: -0.383;
  --rehab-slot1-x: -0.375;
  --rehab-slot1-y: 0.192;
  --rehab-slot2-x: 0.375;
  --rehab-slot2-y: 0.192;
  --rehab-gold: #D6B992; /* 샌드 골드 (영문 · 원 테두리 · 원 글자) */
  position: relative;
  display: grid;
  grid-template-columns: 59fr 41fr;
  min-height: clamp(560px, 52vw, 1000px);
  overflow-x: clip;
  background: #4b3e37;
  color: #fff;
}
/* 사진별 object-position (운동 / 수중 / 한방) */
.rehab-center__img[data-rehab-photo="exercise"] {
  --rehab-pos: 50% 50%;
}
.rehab-center__img[data-rehab-photo="aqua"] {
  --rehab-pos: 50% 50%;
}
.rehab-center__img[data-rehab-photo="oriental"] {
  --rehab-pos: 50% 50%;
}
/* 좌측 사진: 크기 고정 컨테이너 안에 3장을 겹쳐 둠 (우측 하단만 둥글게) */
.rehab-center__media {
  position: relative;
  margin: 0 0 clamp(32px, 5.3vw, 100px);
  overflow: hidden;
  border-radius: 0 0 clamp(40px, 5.21vw, 100px) 0; /* PC 100px */
  background: #3a2f2a; /* 전환 중 / 로딩 중에도 흰 화면이 보이지 않게 */
}
.rehab-center__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--rehab-pos, 50% 50%);
  opacity: 0;
}
.rehab-center__img.is-active {
  opacity: 1;
  z-index: 1;
}
/* 우측 콘텐츠 */
.rehab-center__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(40px, 5vw, 96px) clamp(24px, 3vw, 64px) clamp(40px, 5vw, 96px)
    clamp(24px, 4.2vw, 88px);
}
.rehab-center__eyebrow {
  margin: 0;
  font-family: "Manrope", "Inter", "Noto Sans KR", sans-serif;
  font-size: clamp(13px, 0.95vw, 20px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--rehab-gold);
}
.rehab-center__title {
  margin: clamp(10px, 1.6vw, 32px) 0 0;
  font-size: clamp(28px, 2.8vw, 60px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #fff;
  word-break: keep-all;
}
.rehab-center__desc {
  margin: clamp(14px, 2.2vw, 42px) 0 0;
  font-size: clamp(13px, 0.85vw, 18px);
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #bbb;
  font-family:var(--font-notosans);
  word-break: keep-all;
}
/* 원 도형 + 버튼 열: 폭 = 도형 폭, 버튼은 도형 아래 가운데 */
.rehab-center__col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(var(--rehab-d) * 1.75);
  max-width: 100%;
  margin-top: clamp(24px, 3vw, 58px);
}
.rehab-center__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  list-style: none;
}
.rehab-center__venn {
  width: 100%;
}
.rehab-center__stage {
  position: relative;
  width: calc(var(--rehab-d) * 1.75);
  height: calc(var(--rehab-d) * 1.575);
  max-width: 100%;
}
.rehab-center__circle {
  --rehab-sx: 0;
  --rehab-sy: 0;

  position: absolute;
  left: calc(var(--rehab-d) * 0.375);
  top: calc(var(--rehab-d) * 0.383);
  display: grid;
  place-items: center;
  width: var(--rehab-d);
  height: var(--rehab-d);
  border: 1px solid rgb(227 197 152 / 0.65);
  border: 1.19px solid #D6B992;
  border-radius: 50%;
  background: rgb(214 178 130 / 0.1);
  background: rgba(123, 105, 87, 0.32);
  color: var(--rehab-gold);
  font-size: clamp(13px, 1.15vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  /* 정적 기본 자리 (JS 순환이 시작되면 같은 값을 px 로 이어받아 인라인 transform 으로 이동) */
  transform: translate(calc(var(--rehab-d) * var(--rehab-sx)), calc(var(--rehab-d) * var(--rehab-sy)));
  will-change: transform;
  user-select: none;
}
.rehab-center__circle:nth-child(1) {
  --rehab-sx: var(--rehab-slot0-x);
  --rehab-sy: var(--rehab-slot0-y);
}
.rehab-center__circle:nth-child(2) {
  --rehab-sx: var(--rehab-slot1-x);
  --rehab-sy: var(--rehab-slot1-y);
}
.rehab-center__circle:nth-child(3) {
  --rehab-sx: var(--rehab-slot2-x);
  --rehab-sy: var(--rehab-slot2-y);
}
.rehab-center__btn {
  margin-top: clamp(22px, 2.8vw, 54px);
  min-height: 40px;
  padding: 8px clamp(22px, 2vw, 40px);
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 12px;
  background: #6b5b4f;
  background: rgba(123, 105, 87, 0.6);
  color: #fff;
  font-size: clamp(13px, 0.9vw, 18px);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: background-color 0.25s;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
}
.rehab-center__btn:hover {
  background: #7d6c5f;
}
/* 재생 / 일시정지 (도형 오른쪽 위에 작게) */
.rehab-center__toggle {
  position: absolute;
  left: calc(100% + 12px);
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgb(227 197 152 / 0.5);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.06);
  color: var(--rehab-gold);
  transition:
    background-color 0.25s,
    border-color 0.25s;
}
.rehab-center__toggle[hidden] {
  display: none;
}
.rehab-center__toggle:hover {
  background: rgb(255 255 255 / 0.16);
  border-color: rgb(227 197 152 / 0.85);
}
.rehab-center__toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rehab-center__icon-play {
  display: none;
  fill: currentColor;
  stroke: none;
}
.rehab-center__toggle.is-paused .rehab-center__icon-pause {
  display: none;
}
.rehab-center__toggle.is-paused .rehab-center__icon-play {
  display: block;
}
/* 태블릿 / 모바일: 사진 위, 콘텐츠 아래 */
@media (max-width: 900px) {
  .rehab-center {
    --rehab-d: clamp(120px, 30vw, 210px);

    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .rehab-center__media {
    aspect-ratio: 4 / 3;
    max-height: 70svh;
    margin: 0; /* 전체 너비 사진 (퀵메뉴는 overlay) */
    border-radius: 0 0 clamp(32px, 8vw, 64px) 0;
  }
  .rehab-center__content {
    align-items: center;
    padding: 44px 24px 72px;
    text-align: center;
  }
  .rehab-center__title {
    font-size: clamp(26px, 7vw, 44px);
  }
  .rehab-center__desc {
    max-width: 30em;
  }
}
@media (max-width: 580px) {
  .rehab-center__content {
    padding-inline: 20px;
  }
}
/* =====================================================
   진단·치료장비 / 진료 환경 (overview-links)
   - 카드 2개. 호버에서는 사진 레이어(.overview-links__img)만 확대 (overlay · 글자 · 버튼 · 카드는 그대로)
   - 기본 HTML/CSS 만으로 모든 콘텐츠가 보임. 진입 모션은 JS(GSAP) 초기화 성공 시에만 숨김을 적용
   - 진입은 카드 / 글자(transform · opacity), 호버 확대는 사진 레이어(transform) → 서로 다른 요소
   ===================================================== */
.overview-links {
  /* ---- 조절 가능한 값 ---- */
  --overview-links-max-width: 1760px; /* 카드 그룹 최대 폭 (gap 포함). 원본 사진 865px × 2 + gap 30px 에 맞춘 이 섹션 전용 폭 */
  --overview-links-gap: 30px;
  --overview-links-height: 540px; /* PC 카드 높이 (좁은 PC 에서는 폭에 비례해 줄어듦) */
  --overview-links-zoom: 1.045; /* 호버 사진 확대 비율 */
  --overview-links-zoom-dur: 0.8s;
  --overview-links-radius: 20px;
  position: relative;
  padding: clamp(56px, 6.4vw, 124px) 0;
  background: #eeeae4;
  color: #fff;
  text-align: center;
}
.overview-links__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--overview-links-gap);
  width: calc(100% - 48px);
  max-width: var(--overview-links-max-width);
  margin-inline: auto;
}
.overview-links__card {
  /* 고정 색상 overlay (호버에서도 동일) */
  --overview-links-tint: rgb(30 58 108 / 0.5);

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  /* 카드 폭 ≈ (100vw - 78px) / 2, 높이 ≈ 폭 × 0.624 (865:540) → 충분히 넓으면 540px */
  height: clamp(260px, calc((100vw - 78px) * 0.3122), var(--overview-links-height));
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--overview-links-radius);
  background: #5d6f8a; /* 사진 로딩 전 배경 */
}
.overview-links__card--facilities {
  --overview-links-tint: rgb(128 104 72 / 0.5);

  background: #8a7a62;
}
/* 사진 레이어: 호버 확대는 여기에만 적용 */
.overview-links__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--overview-links-pos, 50% 50%);
  transform: scale(1);
  transform-origin: center;
  transition: transform var(--overview-links-zoom-dur) cubic-bezier(0.22, 1, 0.36, 1);
}
.overview-links__card--equipment {
  --overview-links-pos: 50% 50%;
}
.overview-links__card--facilities {
  --overview-links-pos: 50% 50%;
}
/* 색상 overlay: 기본 / 호버 / 포커스 모두 동일 (상태별 규칙 없음) */
.overview-links__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--overview-links-tint);
  pointer-events: none;
}
/* 마우스 환경에서만 확대 (터치에서 호버가 고착되지 않게). 키보드 포커스는 :focus-visible 만 (클릭 후 고착 방지) */
@media (hover: hover) and (pointer: fine) {
  .overview-links__card:hover .overview-links__img {
    transform: scale(var(--overview-links-zoom));
  }
}
.overview-links__card:has(:focus-visible) .overview-links__img {
  transform: scale(var(--overview-links-zoom));
}
@supports not selector(:has(*)) {
  .overview-links__card:focus-within .overview-links__img {
    transform: scale(var(--overview-links-zoom));
  }
}
.overview-links__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}
.overview-links__eyebrow {
  margin: 0;
  font-family: "Manrope", "Inter", "Noto Sans KR", sans-serif;
  font-size: clamp(12px, 1.05vw, 20px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--gold);
}
.overview-links__sub {
  margin: clamp(18px, 2.7vw, 52px) 0 0;
  font-size: clamp(12px, 0.95vw, 18px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}
.overview-links__title {
  margin: clamp(6px, 1vw, 19px) 0 0;
  font-size: clamp(26px, 2.15vw, 50px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #fff;
  word-break: keep-all;
}
.overview-links__btn {
  margin-top: clamp(18px, 2.55vw, 49px);
  min-height: clamp(36px, 2.7vw, 52px);
  padding: 0 clamp(18px, 1.9vw, 36px);
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 8px;
  background: rgb(140 118 98 / 0.55);
  background: rgb(123 105 87 / 0.6);
  color: #fff;
  font-size: clamp(12px, 0.85vw, 18px);
  font-weight: 500;
  letter-spacing: -0.02em;
  /* 호버 시 버튼 자체는 바뀌지 않음 (사진만 확대) */
}
/* 태블릿: 2열 유지, 높이·글자 크기는 폭에 맞춰 조절 (좌우 24px 동일, 퀵메뉴는 overlay) */
@media (max-width: 1100px) {
  .overview-links {
    padding-inline: 24px;
  }
  .overview-links__list {
    width: 100%;
    max-width: none;
    gap: clamp(16px, 2.4vw, 24px);
  }
  .overview-links__card {
    height: clamp(300px, 50vw, 420px);
  }
  .overview-links__eyebrow {
    font-size: 13px;
  }
  .overview-links__sub {
    margin-top: 20px;
    font-size: 13px;
  }
  .overview-links__title {
    margin-top: 8px;
    font-size: clamp(24px, 3.2vw, 32px);
  }
  .overview-links__btn {
    margin-top: 22px;
    font-size: 13px;
  }
}
/* 모바일: 1열 */
@media (max-width: 680px) {
  .overview-links__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .overview-links__card {
    height: auto;
    min-height: clamp(360px, 100vw, 420px);
  }
  .overview-links__title {
    font-size: clamp(26px, 7vw, 32px);
  }
  .overview-links__btn {
    min-height: 44px;
    font-size: 14px;
  }
}
@media (max-width: 580px) {
  .overview-links {
    padding-inline: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .overview-links__card:hover .overview-links__img,
  .overview-links__card:focus-within .overview-links__img {
    transform: none;
  }
  .overview-links__card:has(:focus-visible) .overview-links__img {
    transform: none;
  }
}
@media (max-width: 1000px) {
  .hero {
    min-height: 680px;
    border-radius: 0 0 55px 0;
  }
  .swiper-slide {
    padding: 140px 30px 170px;
  }
  .eyebrow {
    font-size: 23px;
    margin-bottom: 24px;
  }
  .copy h1,
  .copy h2 {
    font-size: 43px;
  }
  .description {
    font-size: 15px;
    max-width: 480px;
    margin: 26px auto 0;
  }
  .paging {
    left: 26px;
    right: 26px;
    bottom: 9%;
    gap: 16px;
  }
  .page {
    font-size: 12px;
    line-height: 1.6;
  }
}
@media (max-width: 580px) {
  .copy h1,
  .copy h2 {
    font-size: 32px;
    letter-spacing: -1.4px;
  }
  .eyebrow {
    font-size: 20px;
  }
  .description {
    font-size: 13px;
  }
  .page {
    font-size: 11px;
  }
  .paging {
    gap: 10px;
  }
  .swiper-slide {
    padding-inline: 20px;
  }
}
