/* sub tab */
.sub-first01 {
  position: relative;
  color: var(--BK-Logo);
  background: url(../img/sub1-bg.png) no-repeat center center / cover;
}
.sub_tab_wrap {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.sub_tab_overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.sub_tab_overlay {
  position: absolute;
  inset: 0;
  /* background: url('../img/sub_1-topbg.png') no-repeat center center / cover; */
  z-index: -1;
  animation: blurIn 1.5s ease-out forwards;
}
.sub_tab_overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sub_tab_overlay,
.sub_tab_overlay::before {
  pointer-events: none;
}

@keyframes blurIn {
  0% {
    transform: scale(1.1);
    filter: blur(8px);
  }
  100% {
    transform: scale(1);
    filter: blur(0px);
  }
}

.sub_tab_wrap > *:not(.sub_tab_overlay) {
  position: relative;
  z-index: 2;
}
.sub_tab_wrap h2 {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 159px 0 125px;
}
.sub_tab_wrap .sub_tab_content em i {
  font-size: 46px;
}
.sub_tab_wrap h2 i {
  content: "";
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.07em;
}
.sub_tab {
  border: 1px solid rgba(255, 238, 238, 0.3);
  border-radius: 10px;
  background: rgb(255, 255, 255, 0.1);
}
.sub_tab {
  width: fit-content;
  margin: 0 auto;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: #fff;
  margin-bottom: 40px;
  font-weight: 400;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.sub_tab li {
  width: 240px;
  height: 100%;
  position: relative;
  cursor: pointer;
  z-index: 21;
}
.sub_tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: transform 0.3s ease;
  z-index: 0;
  transform: translateX(calc(100% * var(--active-index)));
}
.sub_tab li a span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.sub_tab li a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sub_tab li a span {
  position: relative;
  display: inline-block;
}

.sub_tab li a.on span::after {
  transform: translateX(-50%) scaleX(1);
}

.sub_tab li:hover a span::after {
  transform: translateX(-50%) scaleX(1);
}

.sub_tab:hover a.on span::after {
  transform: translateX(-50%) scaleX(0);
}

.sub_tab li a.on:hover span::after {
  transform: translateX(-50%) scaleX(1);
}

.sub_tab {
  --active-index: 0;
}

/* 비수술 클리닉 탭 6개: 기본 240px → 180px로 축소 */
.sub_tab.forth li,
.sub_tab.forth::before {
  width: 180px;
}

/* sub-first01 */
.sub-first01-content-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.sub-first01-content-wrap p {
  font-size: 18px;
  line-height: 1.7;
}
.sub-first01 .container,
.sub-first01 .container12 {
  position: relative;
  z-index: 1;
}
.sub-first-txt {
  font-size: 18px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  color: var(--BK-Logo);
}
.sub-first01 .img {
  display: flex;
  justify-content: space-between;
}

.sub-first01::after {
  content: "GOCHEOKTEUNTEUN ORTHOPEDIC CLINIC GOCHEOKTEUNTEUN ORTHOPEDIC CLINIC ";
  position: absolute;
  left: 0;
  top: 8%;
  z-index: 0;
  pointer-events: none;
  display: block;
  width: max-content;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Pretendard Variable", sans-serif;
  font-size: 240px;
  font-style: normal;
  font-weight: 600;
  line-height: 60px;
  animation: marquee var(--sec4-marquee-duration, 55s) linear infinite;
  animation-delay: var(--sec4-marquee-delay, -27.5s);
}

@keyframes marquee {
  0% {
    transform: translate(0, -50%);
  }
  100% {
    transform: translate(-50%, -50%);
  }
}
.br-m40-block {
  display: none;
}

.sub-first02-doc1-wrap {
  position: relative;
  background: rgba(229, 236, 246, 0.7);
}
.sub2-content-wrap .right h3,
.center-card-wrap .txt h3.center-card__title {
  font-size: 32px;
  color: var(--color-logo-deepBlue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.sub2-content-wrap .right h3 .line {
  display: inline-block;
  width: 3px;
  height: 26px;
  background: var(--color-logo-deepBlue);
}
.center-card-wrap .txt h3.center-card__title .line {
  display: inline-block;
  width: 8px;
  height: 33px;
  background: #009de1;
}
.sub2-content-wrap .right h3 b,
.sub2-content-wrap .right h3 i {
  display: inline-block;
}
.sub2-content-wrap .right h3.text-clip {
  display: inline-block;
}
.sub2-content-wrap .right h3.text-clip .sub-doc-heading-clip-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.doc-desc {
  display: block !important;
  font-size: 18px;
  font-weight: 400;
  color: var(--color-dark-grey);
}
.sub1-2-ul {
  font-size: 18px;
  color: var(--color-dark-bk03);
}
.sub1-2-ul .ul-title {
  font-size: 20px;
  color: var(--color-logo-navy);
  font-weight: 600;
}
.sub2-content-wrap {
  position: relative;
  z-index: 1;
  gap: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sub-first02-doc1-wrap::before {
  content: "GOCHEOKTEUNTEUN ORTHOPEDIC CLINIC GOCHEOKTEUNTEUN ORTHOPEDIC CLINIC ";
  position: absolute;
  left: 0;
  bottom: 10%;
  z-index: 0;
  pointer-events: none;
  display: block;
  width: max-content;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Pretendard Variable", sans-serif;
  font-size: 500px;
  font-style: normal;
  font-weight: 700;
  line-height: 60px;
  /* sub-first01과 동일 marquee 키프레임 재사용 (무한 반복) — 약간 더 느리게 */
  animation: marquee var(--sec4-marquee-duration, 140s) linear infinite;
  animation-delay: var(--sec4-marquee-delay, -35s);
}
.sub2-content-bot {
  position: relative;
}
.sub2-content-bot::before {
  content: "";
  background: url(../img/sub2-bot-bglogo.png) no-repeat center center / cover;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 625px;
  height: 580px;
  z-index: 0;
  pointer-events: none;
  display: block;
}
/* sub-first04 */
.sub-first04 {
  position: relative;
  background: url(../img/sub4-bg.png) no-repeat center center / cover;
}
.equ {
  background: #fff;
  position: relative;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.05);
}
.equ-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 100px 25px;
}
.equ-line {
  position: absolute;
  width: 100%;
  z-index: 1;
  top: 0;
  left: 0;
  height: 8px;
  background: var(--color-logo-deepBlue);
}
.equ .text {
  width: 100%;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  gap: 0px;
}
.equ .text h3 {
  font-size: 25px;
  font-weight: 600;
  color: var(--color-desc-black);
}
.equ .text p {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-dark-grey);
}

/* sub-second01 */
.sub-second01 {
  position: relative;
}
.sub2-top-wrap {
  position: relative;
}
.sub2-top-wrap > *:not(.sub2-top-marquee) {
  position: relative;
  z-index: 1;
}
/* 상단 마퀴: 벡터 SVG(4550×163), 배경 투명 — 반복 사이 간격은 --sub2-marquee-gap */
.sub2-top-marquee {
  --sub2-marquee-cell-w: calc(60px * 4550 / 163);
  --sub2-marquee-gap: 20px;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  overflow: hidden;
}
.sub2-top-marquee__track {
  display: flex;
  gap: var(--sub2-marquee-gap);
  width: max-content;
  animation: sub2-top-marquee-x var(--sec4-marquee-duration, 55s) linear
    infinite;
  animation-delay: var(--sec4-marquee-delay, -27.5s);
}
@keyframes sub2-top-marquee-x {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      calc(-1 * (var(--sub2-marquee-cell-w) + var(--sub2-marquee-gap)))
    );
  }
}
.sub2-top-marquee__cell {
  flex-shrink: 0;
  height: 60px;
  width: var(--sub2-marquee-cell-w);
  background: url(../img/sub2-top-marquee.svg) no-repeat center / 100% 100%;
}
.sub-center-img-wrap {
  width: 100%;
  background: url(../img/sub2-center-img-bg.png) no-repeat center center / cover;
  display: flex;
  justify-content: center;
}
.sub-center-img-wrap img {
  width: 100%;
}
.sub2-top-txt {
  color: var(--color-dark-bk01);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}
.sub2-top-txt b {
  font-weight: 600;
}
.sub2-center-wrap {
  background: url(../img/sub2-center-bg.png) no-repeat center center / cover;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.03));
}
.sub2-center-wrap .center-card-wrap .card {
  display: flex;
  position: relative;
  height: 345px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.03));
}
.center-card-wrap .img {
  flex: 1;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}
.center-card-wrap .txt {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0px 40px;
  display: flex;
  align-items: center;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  flex: 1.2;
  height: 100%;
  width: 50%;
}
.center-card-wrap .txt-inner {
  display: flex;
  flex-direction: column;
}

/* 대표질환 카드: 텍스트 ↔ 이미지 좌우 반전 */
.center-card-wrap .card.reverse .img {
  left: auto;
  right: 0;
}
.center-card-wrap .card.reverse .txt {
  left: 0;
  right: auto;
}
.sub2-bottom-wrap {
  position: relative;
  background: url(../img/sub2-bot-bglogo.png) no-repeat top left / contain;
  background-size: 580px;
}

/* 치료방법 카드: 번호(좌상·스카이블루) → 이미지 → 텍스트 */
.sub2-bottom-wrap .bot-card-wrap .swiper-slide.card {
  width: 520px;
  max-width: 100%;
  box-sizing: border-box;
}
.sub2-bottom-wrap .bot-card-wrap .card {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: -3px 0 25px 5px rgba(81, 71, 62, 0.04);
}
.sub2-bottom-wrap .bot-card-wrap .num {
  position: absolute;
  background: var(--color-logo-skyBlue);
  top: 0;
  left: 0;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: 35px;
  pointer-events: none;
  padding: 20px;
  border-radius: 20px 0px 0px 0px;
}
.sub2-bottom-wrap .bot-card-wrap .img {
  position: relative;
  z-index: 0;
  line-height: 0;
  border-radius: 20px;
}

.sub2-bottom-wrap .bot-card-wrap .img img {
  border-radius: 20px 20px 0px 0px;
}
.sub2-bottom-wrap .bot-card-wrap .txt {
  position: relative;
  z-index: 1;
  padding: 40px 25px;
  height: 190px;
}
.sub2-bottom-wrap .bot-card-wrap .txt-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sub2-bottom-wrap .bot-card-wrap .txt h3.center-card__title {
  font-size: 35px;
  color: var(--color-logo-deepBlue);
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
}
.sub2-bottom-wrap .bot-card-wrap .txt h3.center-card__title > span:first-child {
  flex-shrink: 0;
  line-height: 0;
  width: 35px;
  height: 35px;
  aspect-ratio: 1/1;
}
.sub2-bottom-wrap .bot-card-wrap .txt h3.center-card__title span img {
  width: 48px;
  height: auto;
  display: block;
}
.sub2-bottom-wrap .bot-card-wrap .txt p:first-child {
  color: #1d509a;
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
}
.sub2-bottom-wrap .bot-card-wrap .txt p:last-child {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--color-logo-navy);
}
.content-top {
  position: relative;
}
.content-top::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: #f1f7fe;
}
.sub-forth .main-img {
  position: relative;
  padding: 140px 40px;
  text-align: center;
}
.sub-forth .main-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  z-index: -1;
}
.sub-forth .main-img h3 {
  font-size: 22px;
  color: #fff;
  line-height: 1.7;
  font-weight: 300;
}
.sub-forth .main-img h3 b {
  font-weight: 500;
}
.sub-forth .content-slide {
  position: relative;
  background: #fff;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  border-radius: 20px;
  display: flex;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.06);
}
.sub-forth .content-slide .right {
  background: #fff;
  padding: 70px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
}
.sub-forth .content-slide .right span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sub-forth .content-slide .right span .line {
  display: inline-block;
  width: 8px;
  height: 33px;
  background: #009de1;
}
.sub-forth .content-slide .right span .txt {
  font-size: 35px;
  font-weight: 700;
  color: var(--color-logo-deepBlue);
}
.sub-forth .content-slide .right p {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-desc-black);
}
.sub-forth .content-center {
  background: linear-gradient(312deg, #e2e8f7 2.26%, #fff 97.74%);
}
.sub-forth .content-slide .left img {
  border-radius: 20px;
  height: 250px;
}
.sub-forth-bottom-content {
  display: flex;
  flex-direction: row-reverse;
}
.sub-forth-bottom-content .img-wrap {
  flex: 1;
  background: #fff;
  line-height: 0;
  position: relative;
  overflow: hidden;
}
.sub-forth-bottom-content .img-wrap > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.sub-forth-bottom-content .text-wrap {
  flex: 1;
  padding-top: 120px;
  padding-bottom: 120px;
  border-radius: 0 50px 50px 0;
  background: #1d509a;
  margin-right: -50px;
  position: relative;
  overflow: hidden;
}
.sub-forth-bottom-content .text-wrap::before {
  content: "GOCHEOKTEUNTEUN ORTHOPEDIC CLINIC GOCHEOKTEUNTEUN ORTHOPEDIC CLINIC ";
  position: absolute;
  left: 0;
  top: 12%;
  z-index: 0;
  pointer-events: none;
  display: block;
  width: max-content;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.05);
  font-family: "Pretendard Variable", sans-serif;
  font-size: 150px;
  font-style: normal;
  font-weight: 600;
  line-height: 60px;
  animation: marquee var(--sec4-marquee-duration, 55s) linear infinite;
  animation-delay: var(--sec4-marquee-delay, -27.5s);
}
@keyframes marquee {
  0% {
    transform: translate(0, -50%);
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

.sub-forth-bottom-content .text-wrap .inner-wrap {
  padding-right: 60px;
  padding-left: calc((100vw - 1280px) / 2);
}
.forth-bottom-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}
.forth-bottom-title .title-inner img {
  width: 1.2em;
  aspect-ratio: 1/1;
  object-fit: contain;
}
.forth-bottom-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.forth-bottom-list li {
  font-size: 20px;
  display: flex;
  gap: 10px;
  border-radius: 50px;
  background: #fff;
  padding: 10px 20px;
  letter-spacing: -0.02em;
}
.forth-bottom-list li::before {
  content: "";
  width: 1.5em;
  aspect-ratio: 1/1;
  background: url("/img/sub4-check-icon.png") no-repeat center center / contain;
  flex-shrink: 0;
}

/* 이문센트럴 치료방법 */
/* .page { overflow: hidden } 이 조상이면 sticky(.m13-left, .m13-timeline-dot) 가 뷰포트 기준으로 붙지 않음 */
.sub-forth.page:has(.m13-wrap),
.sub-forth.page.page--m13 {
  overflow: visible;
}

.m13-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* 왼쪽 이미지: 스크롤 시 화면에 고정 (sticky). stretch 제거·overflow 해제와 함께 동작 */
.m13-left {
  flex: 0 0 45%;
  top: 120px;
  padding: 0px 40px 40px 0;
  padding-right: 100px;
  z-index: 1;
}

.m13-left-title {
  width: 100%;
  font-size: 40px;
  font-weight: 700;
  color: #877666;
  margin-bottom: 60px;
}
.m13-left-title b {
  color: var(--color-primary-dark);
  font-weight: 800;
}
.m13-img-wrap {
  border-radius: 40px;
  line-height: 0;
  overflow: hidden;
}
.m13-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m13-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.m13-nav a {
  display: block;
  font-size: 20px;
  color: #969696;
  padding: 10px 0;
  transition: all 0.3s ease;
  text-decoration: none;
}

.m13-nav a:hover {
  color: #51473e;
}

.m13-nav li.active a {
  font-size: 24px;
  color: #51473e;
  font-weight: 700;
}

/* 오른쪽 영역: 일반 플로우 → 페이지 스크롤됨 */
.m13-right {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-width: 0;
  padding-left: 0;
}

/* 타임라인: 시작점부터 .m13-timeline-dot까지 이어지는 세로 라인 + 그라데이션 라인 하나 더 */
.m13-timeline {
  flex: 0 0 48px;
  position: relative;
  align-self: stretch;
}

/* 그라데이션 라인 (흰색 → #51473E), 높이 동적: dot 위치까지 */
.m13-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: var(--m13-line-height, 0);
  transform: translateX(calc(-50%));
  background: linear-gradient(135deg, #fff 0%, #1d509a 100%);
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
  /* transition: height 0.1s ease-out; */
}

.m13-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: #d4d4d4;
  border-radius: 3px;
  pointer-events: none;
}

/* 가운데 원: sticky로 스크롤 시 뷰포트 세로 중앙에 고정 → 스크롤 따라 내려오는 효과 */
.m13-timeline-dot {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  width: 65px;
  height: 65px;
  margin-left: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 52, 119, 0.35);
  pointer-events: none;
  z-index: 3;
}

.m13-timeline-dot img {
  width: 65px;
  height: 65px;
}

.m13-sections {
  flex: 1;
  padding-left: 100px;
}

.m13-section:not(:last-of-type) {
  margin-bottom: 120px;
}

/* 비활성 섹션: 흑백, 활성 섹션: 컬러 */
.m13-section {
  /* filter: grayscale(1); */
  opacity: 0.4;
  transition:
    filter 0.4s ease,
    opacity 0.4s ease;
}

.m13-section.active {
  filter: grayscale(0);
  opacity: 1;
}
.m13-section-img {
  aspect-ratio: 1/1;
  line-height: 0;
  max-width: 60px;
  margin-bottom: 40px;
}

.m13-section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m13-section-title {
  color: var(--color-logo-deepBlue);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}

.m13-section-desc {
  color: var(--color-logo-navy);
}
.sub-forth-scroll-content {
  position: relative;
  background: url(../img/sub4-2-bot-bg-logo.png) no-repeat bottom left;
  background-size: 580px;
}
.sub4-4-img-wrap {
  display: flex;
  justify-content: center;
  gap: 25px;
}
.sub4-4-img-wrap .left,
.sub4-4-img-wrap .right {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 80px 60px;
}
.sub4-4-img-wrap h4 {
  color: var(--color-logo-navy);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}
.sub4-4-img-wrap .txt {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* 진료안내 */
.sub-fifth {
  background: url(../img/sub5-bg.png) no-repeat center center / cover;
}
.sub4-4-img-wrap .left img,
.sub4-4-img-wrap .right img {
  width: 250px;
}
