.section {
  width: 100%;
  overflow: hidden;
}

/* ============================================================== */
/* hero */
/* ============================================================== */
.hero {
  width: 100%;
  position: relative;
}

.hero-video-wrap {
  width: 100%;
  max-height: 100vh;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.hero-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  -webkit-object-fit: cover;
  object-position: center;
  -webkit-object-position: center;
  transform: translateZ(0) scale(1.04);
  animation: heroKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-video-wrap--motion::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(29, 29, 79, 0.18) 0%,
    transparent 35%,
    transparent 70%,
    rgba(0, 0, 0, 0.12) 100%
  );
  animation: heroOverlayIn 1.6s ease forwards;
  opacity: 0;
}
@keyframes heroKenBurns {
  from {
    transform: translateZ(0) scale(1.04);
  }
  to {
    transform: translateZ(0) scale(1.1);
  }
}
@keyframes heroOverlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================================== */
/* c-arm */
/* ============================================================== */
.c-arm {
  width: 100%;
  position: relative;
}
.c-arm-content {
  display: flex;
}
.c-arm-content-left {
  flex: 1;
  background: url("/assets/img/main/c-arm-content-left.png") no-repeat center
    center / cover;
}
.c-arm-content-left .left-inner {
  padding: 40px;
  /* 1280px 미만에서 calc가 음수가 되지 않도록 최소 40px 보장 */
  padding-left: max(40px, calc((100vw - 1280px) / 2));
  font-size: 40px;
  color: #001c42;
  font-weight: 700;
}
.c-arm-content-right {
  flex: 1;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  padding: 30px 40px;
  background: linear-gradient(90deg, #001c42 50%, #002b66 100%);
}
.c-arm-counter {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.c-arm-counter-digits {
  display: flex;
  align-items: center;
  gap: 8px;
}
.c-arm-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border: 2px solid var(--color-accent);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  font-variant-numeric: tabular-nums;
}
.c-arm-comma {
  display: inline-flex;
  align-items: flex-end;
  height: 66px;
  padding-bottom: 8px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
}
.c-arm-counter-suffix {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-accent);
  white-space: nowrap;
}

/* ============================================================== */
/* medical-staff (의료진 소개 커버플로우) */
/* ============================================================== */
.medical-staff {
  width: 100%;
  background: linear-gradient(180deg, #fff 50%, #e7e6eb 100%);
  overflow: hidden;
}
.medical-staff-content {
  text-align: center;
}
.medical-staff-title {
  /* 크기는 공통 h3(52px) + tab/mobile.css의 h3 반응형 규칙을 그대로 따름 */
  margin: 0 0 80px;
  font-weight: 400;
  color: var(--color-black);
}
.medical-staff-title b {
  font-weight: 700;
  color: var(--color-primary);
}
.medical-staff-slider {
  position: relative;
}
.medical-staff-swiper {
  overflow: visible;
  padding-bottom: 8px;
}
.medical-staff-swiper .swiper-wrapper {
  align-items: flex-end;
}
.medical-staff-swiper .medical-staff-slide {
  width: clamp(260px, 34vw, 520px);
  height: auto;
}
.medical-staff-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #cdd4e2 0%, #aab3c6 100%);
  box-shadow: 0 8px 22px rgba(29, 29, 79, 0.12);
  /* 옆 카드는 하단 기준으로 축소 → 카드 밑선이 일직선 유지 */
  transform: scale(0.82);
  transform-origin: bottom center;
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}
.medical-staff-photo {
  aspect-ratio: 7 / 10;
}
.medical-staff-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.medical-staff-more {
  position: absolute;
  right: 14px;
  bottom: 14px;
  transform: translateY(8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.medical-staff-more span {
  font-size: 15px;
  line-height: 1;
}
.medical-staff-more:hover {
  background: var(--color-primary-dark);
}
/* 카드 아래 의료진 이름 — 하단 정렬로 한 줄 유지 */
.medical-staff-slide-name {
  margin: 24px 0 0;
  font-size: 40px;
  opacity: 0.5;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  transition: font-size 0.3s ease;
}
/* 중앙 카드가 커진 만큼 이웃 카드를 바깥으로 밀어 좌우 간격을 균등하게 유지 */
.medical-staff-swiper .swiper-slide-prev .medical-staff-card {
  transform: translateX(calc(clamp(260px, 34vw, 520px) * -0.045)) scale(0.82);
}
.medical-staff-swiper .swiper-slide-next .medical-staff-card {
  transform: translateX(calc(clamp(260px, 34vw, 520px) * 0.045)) scale(0.82);
}
/* 중앙(활성) 슬라이드만 강조 + 자세히 보기 노출 */
.medical-staff-swiper .swiper-slide-active {
  z-index: 2;
}
.medical-staff-swiper .swiper-slide-active .medical-staff-card {
  transform: scale(1);
  box-shadow: 0 18px 40px rgba(29, 29, 79, 0.28);
}
.medical-staff-swiper .swiper-slide-active .medical-staff-more {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.medical-staff-swiper .swiper-slide-active .medical-staff-slide-name {
  font-size: 40px;
  opacity: 1;
}
/* 네비 화살표 — 중앙 이름 양옆에 배치 */
.medical-staff-nav {
  position: static;
}
.medical-staff-arrow {
  position: absolute;
  /* 이름(40px) 줄의 세로 중앙에 원 중심이 오도록 */
  bottom: 1px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 3px 7px 5px rgba(0, 0, 0, 0.05);
  color: #6d859d;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.medical-staff-arrow-icon {
  width: 33px;
  height: 19px;
}
.medical-staff-prev {
  left: calc(50% - clamp(125px, 16vw, 235px));
}
.medical-staff-next {
  right: calc(50% - clamp(125px, 16vw, 235px));
}
.medical-staff-arrow:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ============================================================== */
/* doctor-feature (정민지 원장 학회 강연·언론 선정) */
/* ============================================================== */
.doctor-feature {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.doctor-feature-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
}
/* 섹션 전체 배경을 좌/우 절반으로 나누는 레이어 (index.php의 $doctor_features bg) */
.doctor-feature-bg {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}
.doctor-feature-bg__half {
  flex: 1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
/* 반반 배경색 — 배경 이미지가 지정되면 이미지가 색 위에 덮임 */
.doctor-feature-bg__half:first-child {
  background: url("/assets/img/main/doctor-feature-bg-left.png") no-repeat
    center center / cover;
}
.doctor-feature-bg__half:last-child {
  background: url("/assets/img/main/doctor-feature-bg-right.png") no-repeat
    center center / cover;
}
.doctor-feature .inner {
  position: relative;
  z-index: 1;
}
.doctor-feature-item {
  min-width: 0;
  text-align: left;
}
/* 슬라이드별 텍스트 — 겹쳐 두고 활성만 페이드 표시 (레이아웃 점프 방지) */
.doctor-feature-texts {
  display: grid;
}
.doctor-feature-text {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}
.doctor-feature-text.is-active {
  opacity: 1;
  visibility: visible;
}
.doctor-feature-title {
  margin: 0 0 24px;
  font-size: clamp(18px, 1.8vw, 34px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-accent);
}
.doctor-feature-desc {
  margin: 40px 0 80px;
  padding-left: 30px;
  border-left: 3px solid #f36500;
  font-size: clamp(13px, 1.15vw, 20px);
  line-height: 1.5;
  color: #fff;
}
.doctor-feature-swiper {
  overflow: hidden;
  padding-bottom: 26px;
}
.doctor-feature-swiper .swiper-slide {
  border-radius: 8px;
  overflow: hidden;
  background: #10102e;
}
.doctor-feature-swiper .swiper-slide img,
.doctor-feature-swiper .swiper-slide video {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3.2;
  object-fit: cover;
}
.doctor-feature-swiper .doctor-feature-pagination.swiper-pagination {
  position: relative;
  width: 100%;
  margin-top: 40px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.doctor-feature-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transition: background 0.25s ease;
}
.doctor-feature-pagination .swiper-pagination-bullet-active {
  background: #fff;
}

/* ============================================================== */
/* activity-news (활동소식 — 언론·방송 엔딩크레딧 스크롤) */
/* ============================================================== */
.activity-news {
  width: 100%;
  position: relative;
  aspect-ratio: 1920 / 928;
  background: url("/assets/img/main/activity-news-bg.png") no-repeat center /
    cover;
}
/* 흰 보드 영역(이미지 픽셀 실측: X 524~1332, Y 142~782)에 콘텐츠 배치 */
.activity-news-board {
  position: absolute;
  top: 18%;
  bottom: 15.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.activity-news-title {
  margin: 0 0 clamp(14px, 1.8vw, 34px);
  /* 1920px에서 100px — 화면 폭에 비례해 축소 (5.2vw = 100/1920) */
  padding-left: clamp(0px, 5.2vw, 100px);
  text-align: left;
  font-size: clamp(19px, 2vw, 52px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-primary);
}
.activity-news-title b {
  font-size: 1.15em;
  font-weight: 800;
}
.activity-news-credits {
  flex: 1;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 12%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 12%,
    #000 86%,
    transparent 100%
  );
}
.activity-news-credits-track {
  animation: activityCredits 60s linear infinite;
}
.activity-news-credits:hover .activity-news-credits-track {
  animation-play-state: paused;
}
/* 목록 2회 렌더링 + -50% 이동으로 끊김 없는 무한 크레딧 */
.activity-news-list {
  margin: 0;
  padding: 0 0 clamp(10px, 1.2vw, 22px);
  list-style: none;
}
.activity-news-list li {
  font-size: clamp(12px, 1vw, 22px);
  line-height: 1.55;
  color: var(--color-primary);
}
.activity-news-list li + li {
  margin-top: clamp(10px, 1.2vw, 12px);
}
@keyframes activityCredits {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .activity-news-credits-track {
    animation: none;
  }
}

/* ============================================================== */
/* hospital (섹션 래퍼만 사용) */
/* ============================================================== */
.hospital {
  width: 100%;
  position: relative;
  background: url("/assets/img/main/hospital-bg.png") no-repeat center center /
    cover;
  background-attachment: fixed;
}
.hospital-content {
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 2px 20px 5px rgba(59, 11, 11, 0.15);
  padding: 80px 0;
  margin-right: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
}
.hospital-content-left {
  flex: 1;
  padding-left: 60px;
}
.hospital-content-right {
  flex: 1;
  border-radius: 20px;
  box-shadow: 2px 2px 15px 3px rgba(38, 28, 26, 0.15);
  overflow: hidden;
  line-height: 0;
  margin-right: -30px;
  z-index: 2;
  position: relative;
}
.hospital-content-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
h3 {
  font-size: 52px;
  line-height: 1.28;
  font-weight: 700;
  margin-bottom: 20px;
}
.hospital-title i {
  color: var(--color-point);
  position: relative;
  &::before {
    content: "";
    position: absolute;
    top: -15%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-point);
    transform: translateX(-50%) translateY(0);
    animation: hospitalTitleDotBounce 1.4s ease-in-out infinite;
    will-change: transform;
  }
}

/* 글자마다 점이 순서대로 튀어 오르는 물결 */
.hospital-title i:nth-of-type(1)::before {
  animation-delay: 0s;
}
.hospital-title i:nth-of-type(2)::before {
  animation-delay: 0.15s;
}
.hospital-title i:nth-of-type(3)::before {
  animation-delay: 0.3s;
}
.hospital-title i:nth-of-type(4)::before {
  animation-delay: 0.45s;
}

@keyframes hospitalTitleDotBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  18% {
    transform: translateX(-50%) translateY(-14px);
  }
  36% {
    transform: translateX(-50%) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hospital-title i::before,
  .pain-area-title .title i::before {
    animation: none;
    transform: translateX(-50%) translateY(0);
  }
}
.hospital-desc {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
/* .animated-text: 화면에 보이면 왼쪽 아래에서 등장 + 블러 + 오버슈트 */
.animated-text {
  opacity: 0;
  transform: translateX(-50px);
  filter: blur(8px);
  display: inline-block;
}
.animated-text.is-visible {
  animation: animTextPop 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes animTextPop {
  0% {
    opacity: 0;
    transform: translateX(-50px);
    filter: blur(8px);
  }
  55% {
    opacity: 1;
    transform: translateX(8px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}
.flow-text-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.flow-text-track {
  display: flex;
  width: max-content;
  animation: flowText 135s linear infinite;
  will-change: transform;
}

.flow-text {
  flex-shrink: 0;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: var(--color-grey);
  color: transparent;
  font-family: Paperlogy, sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 2px;
  white-space: nowrap;
  padding-right: 3rem;
  opacity: 0.2;
}

@keyframes flowText {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-text-track {
    animation: none;
  }
}

/* ============================================================== */
/* hospital-news */
/* ============================================================== */
.hospital-news {
  background: url("/assets/img/main/news-bg.png") no-repeat center center /
    cover;
  color: var(--color-white);
}
.news-inner {
  padding-left: calc((100vw - 1280px) / 2);
}
.news-content {
  display: flex;
  gap: 30px;
}
.news-content-left {
  flex: 1;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-content-right {
  flex: 2;
  min-width: 0;
}
.news-swiper {
  overflow: hidden;
  width: 100%;
}
.news-swiper .swiper-slide {
  height: auto;
}
.news-slide-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.news-pagination {
  width: 100%;
  max-width: 320px;
  margin-top: 28px;
}
.news-pagination-track {
  --news-progress: 0;
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  overflow: visible;
}
.news-pagination-fill {
  height: 100%;
  width: calc(var(--news-progress, 0) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, #f89f9f 0%, #fff 100%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.news-pagination-end-icon {
  position: absolute;
  left: calc(var(--news-progress, 0) * 100%);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 35px;
  height: 35px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(43, 43, 43, 0.23));
}
.news-desc {
  margin-bottom: 40px;
}
.btn-more {
  padding: 8px 20px;
  border-radius: 30px;
  border: 0.75px solid #f89f9f;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 5px 3px rgba(107, 72, 2, 0.12);
}
.news-thumb {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 2px rgba(53, 8, 8, 0.16);
  position: relative;
}
.news-thumb::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  opacity: 0.7;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #00000070 100%);
}
.news-thumb::after {
  content: "";
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 40px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: url("/assets/img/main/news-more.png") no-repeat center center /
    contain;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-list-title {
  border-radius: 50px;
  background: rgba(179, 3, 0, 0.15);
  width: 100%;
  min-width: 0;
  text-align: center;
  padding: 7px 20px;
  font-size: 20px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* ============================================================== */
/* pain-area */
/* ============================================================== */
.pain-area {
  background: url("/assets/img/main/pain-area-bg.png") no-repeat center center /
    cover;
}
.pain-area-content {
  display: flex;
  gap: 30px;
  align-items: center;
}
.pain-area-content-left {
  flex: 1;
  position: relative;
  line-height: 0;
}

.pain-area-content-left .pin {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.45s ease;
  animation: mainPainPinPulse 3.2s ease-in-out infinite;
  z-index: 1;
}
.pain-area-content-left .pin a.pain-pin-link {
  display: block;
  line-height: 0;
}
.pain-area-content.is-pain-highlight .pin {
  animation: none;
}
.pain-area-content.is-pain-highlight .pin:not(.is-active) {
  opacity: 0.38;
  transform: translate(-50%, -50%) scale(0.78);
}
.pain-area-content.is-pain-highlight .pin.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.18);
  z-index: 3;
}
@keyframes mainPainPinPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  12.5% {
    transform: translate(-50%, -50%) scale(0.92);
  }
  25% {
    transform: translate(-50%, -50%) scale(0.88);
  }
  37.5% {
    transform: translate(-50%, -50%) scale(0.94);
  }
  50% {
    transform: translate(-50%, -50%) scale(1);
  }
  62.5% {
    transform: translate(-50%, -50%) scale(1.06);
  }
  75% {
    transform: translate(-50%, -50%) scale(1.1);
  }
  87.5% {
    transform: translate(-50%, -50%) scale(1.04);
  }
}
.pain-area-content-left .pin.neck {
  top: 16%;
  left: 48%;
}
.pain-area-content-left .pin.shoulder {
  top: 20%;
  left: 60%;
}
.pain-area-content-left .pin.waist {
  top: 44%;
  left: 60%;
}
.pain-area-content-left .pin.knee {
  top: 62%;
  left: 38%;
}
.pain-area-content-left .pin.hand {
  top: 24%;
  left: 10%;
}
.pain-area-content-left .pin.foot {
  top: 84%;
  left: 50%;
}
.pain-area-content-left .pin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pain-area-content-right {
  flex: 1;
}
.pain-area-title em {
  font-size: 16px;
  color: var(--color-grey);
  opacity: 0.7;
  display: block;
  margin-bottom: 30px;
}
.pain-area-title .title {
  font-size: 52px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(123, 133, 145, 0.4);
}
.pain-area-title .title i {
  color: var(--color-point);
  font-weight: 700;
  position: relative;
  &::before {
    content: "";
    position: absolute;
    top: -15%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-point);
    transform: translateX(-50%) translateY(0);
    animation: hospitalTitleDotBounce 1.4s ease-in-out infinite;
    will-change: transform;
  }
}
.pain-area-title .title i:nth-of-type(1)::before {
  animation-delay: 0s;
}
.pain-area-title .title i:nth-of-type(2)::before {
  animation-delay: 0.15s;
}
.pain-area-title .pain-title-desc {
  color: var(--color-grey);
}
.pain-area-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 60px;
  font-size: 22px;
  color: var(--color-white);
  max-width: 200px;
}
.pain-area-list li {
  width: 100%;
}
.pain-area-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 50px;
  background: #44484c;
  padding: 8px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    background-color 0.35s ease,
    transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.35s ease;
}
.pain-area-list li a span {
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.pain-area-list li a .pain-area-item-img {
  position: relative;
  flex-shrink: 0;
  width: 1.3em;
  aspect-ratio: 1/1;
  background: none;
}
.pain-area-list li a .pain-area-item-img::before,
.pain-area-list li a .pain-area-item-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.pain-area-list li a .pain-area-item-img::before {
  background-image: url("/assets/img/main/pain-area-item-img.png");
  opacity: 1;
  transform: scale(1);
}
.pain-area-list li a .pain-area-item-img::after {
  background-image: url("/assets/img/main/pain-area-item-arr.png");
  opacity: 0;
  transform: scale(0.75) translateX(-6px);
}
.pain-area-list li.is-active a,
.pain-area-list li a:hover {
  background: var(--color-point);
  transform: translateX(6px);
  box-shadow: 0 6px 18px rgba(145, 14, 14, 0.28);
}
.pain-area-list li.is-active a span,
.pain-area-list li a:hover span {
  transform: translateX(2px);
}
.pain-area-list li.is-active a .pain-area-item-img::before,
.pain-area-list li a:hover .pain-area-item-img::before {
  opacity: 0;
  transform: scale(0.85) translateX(4px);
}
.pain-area-list li.is-active a .pain-area-item-img::after,
.pain-area-list li a:hover .pain-area-item-img::after {
  opacity: 1;
  transform: scale(1) translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .pain-area-content-left .pin {
    animation: none;
  }
  .pain-area-list li a,
  .pain-area-list li a span,
  .pain-area-list li a .pain-area-item-img::before,
  .pain-area-list li a .pain-area-item-img::after {
    transition-duration: 0.01ms;
  }
  .pain-area-list li.is-active a,
  .pain-area-list li a:hover {
    transform: none;
  }
  .pain-area-list li.is-active a span,
  .pain-area-list li a:hover span {
    transform: none;
  }
}
/* ============================================================== */
/* pain-cause */
/* ============================================================== */
.pain-cause {
  position: relative;
  overflow: hidden;
  background: #1d1d4f;
}
.pain-cause-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.pain-cause-video-wrap {
  position: absolute;
  inset: 0;
}
.pain-cause-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  -webkit-object-fit: cover;
  object-position: center;
  -webkit-object-position: center;
  transform: translateZ(0);
  opacity: 0.05;
}
.pain-cause .inner {
  position: relative;
  z-index: 2;
}
.pain-cause-title {
  margin-bottom: 30px;
  text-align: center;
  color: var(--color-white);
  font-weight: 400;
}
.pain-cause-title i {
  color: #00caca;
  font-weight: 700;
}
.pain-cause-title em {
  color: #f39800;
  font-weight: 700;
}
.pain-cause-desc {
  color: #e8f0f8;
  text-align: center;
  margin-bottom: 80px;
}
.pain-cause-list {
  display: flex;
  gap: 20px;
  text-align: center;
}
.pain-cause-list li {
  width: 100%;
}
.pain-cause-list li a {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 20px;
  background: #fff;
  padding: 40px;
  padding-bottom: 60px;
  transition: transform 0.3s ease;
}
.pain-cause-list li a:hover {
  transform: translateY(-10px);
  background: #fbfbfb;
}
.pain-cause-list li a:hover .pain-cause-item-img {
  transform: translate(-50%, 50%) rotate(180deg);
}
.pain-cause-item-img {
  position: absolute;
  line-height: 0;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  transition: transform 0.3s ease;
  max-width: 45px;
  filter: drop-shadow(0 -2px 15px rgba(73, 80, 87, 0.15));
}
.pain-cause-item-img-wrap {
  border-radius: 15px;
  box-shadow:
    0 2px 2px 0 rgba(0, 0, 0, 0.06) inset,
    0 2px 3px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
  line-height: 0;
}
.pain-cause-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-title {
  margin-top: 40px;
  color: var(--color-primary);
  font-size: 34px;
  font-weight: 700;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(42, 46, 51, 0.4);
  margin-bottom: 20px;
}
.item-desc {
  color: #2a2e33;
}
/* ============================================================== */
/* review */
/* ============================================================== */
#review {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.review-text-bg {
  --wave-duration: 2.4s;
  --wave-stagger: 0.2s;
  position: absolute;
  line-height: 0.85;
  font-size: 18vw;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #777;
  font-weight: 800;
  overflow: visible;
  opacity: 0.04;
  white-space: nowrap;
  display: flex;
  gap: 0em;
}
.review-text-bg__char {
  display: inline-block;
  animation: reviewTextBgWave var(--wave-duration) ease-in-out infinite;
  animation-delay: calc(var(--char-index, 0) * var(--wave-stagger));
  transform-origin: center bottom;
}
/* 짧게 튀었다 내려오는 구간이 글자마다 시차를 두어 파도처럼 흐름 */
@keyframes reviewTextBgWave {
  0%,
  100% {
    transform: translateY(0);
  }
  15% {
    transform: translateY(-0.05em);
  }
  30% {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .review-text-bg__char {
    animation: none;
    transform: none;
  }
}
#review::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(90deg, rgba(255, 244, 224, 0.3) 0%, #fff4e0 95%);
}
#review .inner {
  position: relative;
  z-index: 2;
}
.review-title {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.review-title p {
  font-weight: 700;
}
.review-title h3 {
  font-weight: 400;
}
.review-title h3 b {
  color: #f39800;
}

.review-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.review-swiper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.review-swiper .swiper-slide {
  padding: 20px;
}
.review-card {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 50px;
  border: 7px solid rgba(243, 152, 0, 0.5);
  background: #fff;
  box-shadow: -1px 3px 15px 2px rgba(51, 51, 51, 0.25);
  margin-left: 70px;
  padding: 70px 0;
}
.review-card-left {
  flex: 0 0 38%;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -70px;
  line-height: 0;
  box-shadow: -1px 2px 15px 3px rgba(103, 56, 14, 0.25);
}
.review-card-left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
/* 자필 후기 이미지 (단일 이미지, 모션 없음) */
.review-card-left {
  overflow: hidden;
}
.review-gallery {
  display: flex;
  width: 100%;
}
.review-gallery__img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.review-card-right {
  flex: 1;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.review-card-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}
.review-avatar {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5ebe0;
}
.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-card-meta {
  min-width: 0;
}
.review-card-meta--voice {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 16px;
}
.review-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-meta-category {
  font-size: 20px;
  font-weight: 500;
  color: #5c6670;
  letter-spacing: -0.02em;
}
.review-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fae9e9;
  font-size: 15px;
  font-weight: 600;
  color: #b31d1d;
  white-space: nowrap;
}
.review-meta-badge__icon {
  flex-shrink: 0;
  width: clamp(14px, 1.6em, 24px);
  height: clamp(14px, 1.6em, 24px);
}
.review-meta-divider {
  width: 100%;
  height: 1px;
  background: #e5e7eb;
}
.review-date {
  display: inline-block;
  font-size: 24px;
  color: #f39800;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(209, 118, 0, 0.4);
}
.review-date span::after {
  content: " | ";
  display: inline-block;
  padding: 0 10px;
}
.review-name {
  font-size: 36px;
  font-weight: 700;
  color: #2a2e33;
}
.review-card-body {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  line-height: 1.4;
  gap: 1.4em;
  color: #2a2e33;
}
.review-nav {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.review-nav:hover {
  transform: scale(1.05);
  opacity: 0.92;
}
.review-nav-icon {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: contain;
  pointer-events: none;
}
.review-next .review-nav-icon {
  transform: scaleX(-1);
}

/* 인라인 태그(span 등)에 쓸 때 레이아웃 유지 */
span.animated-text,
em.animated-text,
i.animated-text,
b.animated-text,
strong.animated-text {
  display: inline-block;
}

/* 진료시간 및 오시는 길 */
.schedule {
  background: #f4f7fa;
}
.schedule-wrap {
  display: flex;
}
.schedule-left {
  flex: 5;
  padding: 140px 0;
}
.schedule-right {
  flex: 5.5;
  padding: 140px 0;
}
.time-schedule-wrap {
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.7) 0%, #fff 30%);
}
.time-schedule-wrap .schedule-left {
  background: rgba(244, 246, 248, 0.7)
    url("/assets/img/main/schedule-left-bg.png") no-repeat left top / contain;
}
.map-schedule-wrap .schedule-right {
  background: #f4f6f8 url("/assets/img/main/map-schedule-right-bg.png")
    no-repeat right top / contain;
}
.map-schedule-wrap .root_daum_roughmap .wrap_controllers,
.map-schedule-wrap .root_daum_roughmap .cont .section.lst {
  display: none;
}
.map-schedule-wrap .schedule-left {
  padding: 0;
}
.map-schedule-wrap .root_daum_roughmap {
  width: 100%;
  height: 100%;
  min-height: 400px;
}
.map-schedule-wrap .root_daum_roughmap .wrap_map {
  height: 100%;
  min-height: 400px;
}
.schedule-left-inner {
  margin-left: calc((100vw - 1520px) / 2);
  padding-right: 80px;
}
.schedule-right-inner {
  padding-left: 80px;
  margin-right: calc((100vw - 1520px) / 2);
}
.schedule-left-title {
  font-weight: 700 !important;
  margin-bottom: 40px;
}
.time-desc-wrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 28px;
}
.time-desc-wrap b {
  color: rgba(42, 46, 51, 0.85);
}
.time-desc-wrap i {
  color: #b31d1d;
  font-weight: 700;
}
.schedule-title {
  color: #999;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1;
  margin-bottom: 10px;
}
.schedule-tel {
  font-size: 45px;
  font-weight: 700;
  display: block;
  margin-bottom: 30px;
}
.schedule-time-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 28px;
}
.schedule-time-list li {
  display: flex;
  gap: 20px;
}
.schedule-time-list li span {
  display: flex;
  justify-content: space-between;
  width: 104px;
  font-weight: 600;
}
.schedule-time-list li b {
  display: inline-flex;
  align-items: center;
  color: rgba(145, 14, 14, 0.8);
}
.schedule-time-list li b .schedule-time-icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}
.schedule-time-list-note {
  /* color: #2a2e33; */
  font-size: 20px;
  opacity: 0.7;
}

.schedule-location-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}
.schedule-location-list li {
  display: flex;
  align-items: flex-start;
}
.schedule-location-list li::before {
  content: "•";
  margin-right: 10px;
}

.schedule-location-list li span {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 1.4em;
}
.schedule-location-list li span img {
  max-height: 1.4em;
  object-fit: contain;
}
.schedule-title.t40 {
  margin-top: 40px;
}
.schedule-location-list li i {
  display: inline-block;
  margin-left: 4em;
  font-weight: 400;
}

/* ============================================================== */
/* gift (환자분들이 보내주신 선물) */
/* ============================================================== */
.gift {
  width: 100%;
  position: relative;
  background: url("/assets/img/main/gift-bg.png") no-repeat center center /
    cover;
  overflow: hidden;
}
.gift::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12%;
  height: 55%;
  background:
    radial-gradient(
      circle at 12% 80%,
      rgba(243, 152, 0, 0.14) 0%,
      rgba(243, 152, 0, 0) 26%
    ),
    radial-gradient(
      circle at 38% 95%,
      rgba(243, 152, 0, 0.1) 0%,
      rgba(243, 152, 0, 0) 22%
    ),
    radial-gradient(
      circle at 66% 85%,
      rgba(243, 152, 0, 0.12) 0%,
      rgba(243, 152, 0, 0) 24%
    ),
    radial-gradient(
      circle at 90% 92%,
      rgba(243, 152, 0, 0.14) 0%,
      rgba(243, 152, 0, 0) 26%
    );
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}
.gift-inner {
  position: relative;
  z-index: 1;
}
.gift-head {
  margin-bottom: 56px;
  text-align: center;
}
.gift-subtitle {
  margin: 0 0 14px;
  font-size: clamp(13px, 1.2vw, 20px);
  font-weight: 500;
  color: var(--color-grey-dark);
}
.gift-title {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 52px);
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-black);
}
.gift-title b {
  font-weight: 700;
  color: #f36500;
}
.gift-strip {
  position: relative;
}
.gift-swiper {
  --gift-offset: 70px;
  overflow: hidden;
  /* 아래로 내려간 카드(오프셋+그림자)가 잘리지 않도록 하단 여백 확보 */
  padding: 16px 0 140px;
}
.gift-swiper.swiper {
  overflow: visible;
}
.gift-swiper .swiper-wrapper {
  align-items: flex-start;
}
.gift-swiper .gift-item {
  width: clamp(190px, 17vw, 300px);
  height: auto;
  border: 6px solid #fff;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(90, 62, 18, 0.14);
  will-change: transform;
}
/* 위아래 교차 배치 — 평상시 세로 위치는 JS(zigzagTick)가 가로 위치에 연동해 계산.
   아래 규칙은 JS 미동작·동작 줄이기 설정에서의 고정 지그재그 폴백 */
.gift-swiper .gift-item--low {
  transform: translateY(var(--gift-offset));
}
.gift-item img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #f2ede4;
}

/* ============================================================== */
/* trust (전문 치료사 신뢰 + 예약 버튼 + 야간진료 마퀴) */
/* ============================================================== */
.trust {
  width: 100%;
  position: relative;
  background: #f2f3f7 url("/assets/img/main/trust-bg.png") no-repeat center
    top / cover;
  overflow: hidden;
}
.trust-head {
  padding-bottom: clamp(48px, 5vw, 90px);
  text-align: center;
}
.trust-label {
  margin: 0 0 18px;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #9aa1ad;
}
.trust-label b {
  font-weight: 800;
  color: #6d7787;
}
.trust-title {
  margin: 0 0 clamp(36px, 3.6vw, 64px);
  /* 크기는 공통 h3(52px) + tab/mobile.css의 h3 반응형 규칙을 그대로 따름 */
  font-weight: 400;
  color: var(--color-black);
}
.trust-title b {
  font-weight: 800;
}
.trust-certs {
  margin: 0 0 clamp(40px, 4vw, 72px);
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.trust-certs img {
  display: block;
  width: clamp(120px, 13.3vw, 255px);
  height: auto;
}
.trust-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 30px);
}
.trust-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(13px, 1.2vw, 17px) clamp(26px, 2.6vw, 46px);
  border-radius: 999px;
  font-size: clamp(14px, 1.05vw, 30px);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.trust-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}
.trust-btn b {
  font-weight: 800;
}
.trust-btn__svg {
  display: block;
  width: 1.2em;
  height: auto;
}
.trust-btn__svg--kakao {
  width: 1.45em;
}
.trust-btn--naver {
  background: #03c75a;
  color: #fff;
}
.trust-btn--kakao {
  background: #fae100;
  color: #191919;
}
/* 치료 현장 사진 그리드 */
.trust-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trust-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
/* 야간진료 마퀴 띠 */
.trust-marquee {
  overflow: hidden;
  background: linear-gradient(180deg, #0a2680 0%, #06164a 100%);
  padding: clamp(14px, 1.3vw, 22px) 0;
}
.trust-marquee-track {
  display: flex;
  width: max-content;
  animation: trustMarquee 66s linear infinite;
}
.trust-marquee-group {
  display: flex;
  flex: 0 0 auto;
}
.trust-marquee-item {
  flex: 0 0 auto;
  padding: 0 clamp(18px, 2vw, 21px);
  font-size: clamp(16px, 1.5vw, 42px);
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
}
.trust-marquee-item em {
  font-style: normal;
  font-weight: 800;
  color: #fff9b5;
}
.trust-marquee-item b {
  font-weight: 800;
  color: #ffe14d;
}
.trust-marquee-moon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.15em;
}
@keyframes trustMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .trust-marquee-track {
    animation: none;
  }
}

/* ============================================================== */
/* scroll reveal (main + sub pages) */
/* ============================================================== */
.main-reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  filter: blur(5px);
  will-change: transform, opacity, filter;
}
.main-reveal--from-left {
  transform: translate3d(-36px, 28px, 0);
}
.main-reveal--from-right {
  transform: translate3d(36px, 28px, 0);
}
.main-reveal--scale {
  transform: translate3d(0, 20px, 0) scale(0.94);
}
.main-reveal.is-visible {
  animation: mainRevealIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}
.main-reveal--slide.is-visible {
  animation: mainPainListIn 0.7s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}
.main-reveal--card.is-visible {
  animation: mainCauseCardIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}
@keyframes mainRevealIn {
  0% {
    opacity: 0;
    filter: blur(5px);
  }
  55% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}
@keyframes mainCauseCardIn {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}
@keyframes mainPainListIn {
  from {
    opacity: 0;
    transform: translate3d(-16px, 0, 0);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}
.main-page .news-thumb img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.main-page .news-slide-link:hover .news-thumb img {
  transform: scale(1.06);
}
.main-page .btn-more {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}
.main-page .btn-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(107, 72, 2, 0.18);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap video {
    animation: none;
    transform: translateZ(0) scale(1);
  }
  .hero-video-wrap--motion::after {
    animation: none;
    opacity: 1;
  }
  .main-reveal,
  .main-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}
