/* sub tab */
.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.second {
  background: url('../img/sub_2-topbg.png') no-repeat center center / cover;
  z-index: -1;
} */
/* .sub_tab_overlay.third {
  background: url('../img/sub_3-topbg.png') no-repeat center center / cover;
  z-index: -1;
}
.sub_tab_overlay.forth {
  background: url('../img/sub_4-topbg.png') no-repeat center center / cover;
  z-index: -1;
} */
.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 h2 i{
  content: '';
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 500;
  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;
}

/* 기본: on만 밑줄 */
.sub_tab li a.on span::after {
  transform: translateX(-50%) scaleX(1);
}

/* hover한 메뉴 밑줄 */
.sub_tab li:hover a span::after {
  transform: translateX(-50%) scaleX(1);
}

/* 다른 li hover 시 on 밑줄 제거 */
.sub_tab:hover a.on span::after {
  transform: translateX(-50%) scaleX(0);
}

/* on 자신 hover 시 다시 유지 */
.sub_tab li a.on:hover span::after {
  transform: translateX(-50%) scaleX(1);
}

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

/* sub-first01 */
.sub-first01{
  position: relative;
  color: var(--BK-Logo);
}
.sub-first01 .container{
  position: relative;
}
.sub-first-txt{
  font-size: 18px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.sub-first01 .img{
  display: flex;
  justify-content: space-between;
}
.sub-first01 .doc1{
  position: absolute;
  top: 114px;
  width: 324px;
  height: 478px;
  left: 0;
  border-radius: 220px;
  background: #fff url(../img/sub_1-doc1.png) no-repeat center / cover;
}
.sub-first01 .doc2{
  position: absolute;
  bottom: 0;
  right: 0;
  width: 324px;
  height: 478px;
  border-radius: 220px;
  background: #fff url(../img/sub_1-doc2.png) no-repeat center / cover;
}
.sub-first01 .doc1::after{
  content: "";
  position: absolute;
  width: 1046px;
  height: 1046px;
  aspect-ratio: 1/1;
  top: -59%;
  left: -156%;
  z-index: -1;
  background: url("../img/sub_1-doc1-after.png") no-repeat center / contain;
}

.sub-first01 .doc2::after{
  content: "";
  position: absolute;
  width: 1046px;
  height: 1046px;
  aspect-ratio: 1/1;
  top: -50%;
  left: -43%;
  z-index: -1;
  background: url("../img/sub_1-doc2-after.png") no-repeat center / contain;
}


.sub-first01::after{
  content: "ST.MARY’S SK PAIN CLINIC  ST.MARY’S SK PAIN CLINIC  ST.MARY’S SK PAIN CLINIC  ST.MARY’S SK PAIN CLINIC";
  position: absolute;
  top: 15%;
  left: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: Paperlogy;
  font-size: 200px;
  font-weight: 700;
  line-height: 60px;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: rgba(113, 158, 230, 0.08);
  animation: marquee 30s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes marquee {
  0% {
    transform: translate(0, -50%);
  }
  100% {
    transform: translate(-50%, -50%);
  }
}
/* sub-first02 */
.sub-first02 {
  position: relative;
  background: url(../img/sub-1-2-bg.png) no-repeat center / cover;
}
.sub-first02::after{
  content: "ST.MARY’S SK PAIN CLINIC  ST.MARY’S SK PAIN CLINIC  ST.MARY’S SK PAIN CLINIC  ST.MARY’S SK PAIN CLINIC";
  position: absolute;
  top: 4%;
  left: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: Paperlogy;
  font-size: 200px;
  font-weight: 700;
  line-height: 60px;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: rgba(113, 158, 230, 0.08);
  animation: marquee 30s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.sub-1-2-top{
  display: flex;
  justify-content: center;
  gap: 80px;
}
.sub-1-2-top .left{
  width: 465px;
  flex: 0.7;
}
.sub-1-2-top .right{
  display: flex;
  flex: 1;
  flex-direction: column;
}
.sub-1-2-top .right h3{
  display: flex;
  gap: 10px;
  align-items: flex-end;
  color: var(--Navy-Logo);
}
.sub-1-2-top .right h3 i{
  color: var(--BK-Logo);
}
.sub-1-2-top .right h4{
  border-radius: 10px;
  border: 1px solid rgba(255, 238, 238, 0.50);
  background: rgba(255, 255, 255, 0.60);
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--Navy-Logo);
  max-width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sub-1-2-top .right h4 img{
  width: 20px;
  height: 20px;
}
.sub1-2-ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 50px;
  font-size: 18px;
  color: var(--Grey-title-dark);
  line-height: 1.6;
}

/* .sub1-2-ul > ul {
  max-height: 230px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
} */



.sub-first02 .ul-title{
  font-size: 20px;
  font-weight: 600;
  line-height: 1.8;
}
.sub-first02 .txt-bot{
  background: rgba(255, 255, 255, 0.40);
  padding: 60px 40px;
  font-size: 18px;
  line-height: 1.6;
}
.sub-first02-txt-inner{
  display: flex;
  flex-direction: column;
  gap: 7px;
}
/* 성모SK 둘러보기 */
.sub-first03{
  background: #fff;
}

/* 성모SK 보유장비 */
.sub13_ul{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 25px;
}
.sub13_ul .ul-wrap{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.sub13_ul .txt{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.sub13_ul .img_wrap{
  
  overflow: hidden;
  line-height: 0;
  border-radius: 25px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.05);
}

.sub13_ul h3{
  color:var(--BK-Logo);
  
}
.sub13_ul p{
  font-size: 20px;
  color: var(--Grey-title-dark);
}

/* 비급여 진료비 */
.site-tab-on {
  width: 100%;
  margin: 0 auto;
  max-width: 1500px;
  font-size: 2rem;
  line-height: 1.7em;
  word-break: keep-all;
  color: #272727;
  height: 100%;
  overflow-y: scroll;
}
.site-tab-on .site_tit{
  font-weight:600;
  margin-bottom: 10px;
}
.site-tab-on h6 {
  /* height: 30px; */
  line-height: 2;
  padding-left: 0px;
  font-size: 2.6rem;
  margin-bottom: 15px;
  color: #222;
  font-weight: normal;
}
.site-tab-on h4::before {
  display: none;
}
/* 비급여 */
.time_wrap table {
  line-height: 1.5;
  text-align: center;
  font-size: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  color: #222;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-left: 0;
}
table,
td {
  border-spacing: 0px;
  padding: 0px;
}
.time_wrap table tr td {
  padding: 10px;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
tr.bg td {
  background: rgba(0, 0, 0, 0.1);
}
tr.bg2 td {
  background: rgba(35, 104, 196, 0.2);
  font-family: 700;
}
.noti_txt {
  background: rgb(83, 180, 244, 0.1);
  padding: 3.5rem 4rem;
  box-sizing: border-box;
}
.noti_txt > li:first-of-type {
  margin-top: 0;
}
.noti_txt > li {
  font-size: 16px;
  font-weight: 500;
  color: #262626;
  letter-spacing: 0;
  line-height: 1.5;
  margin-top: 15px;
  display: block;
  box-sizing: border-box;
  text-align: left;
}
.site_tab .site_tit {
  font-size: 25px;
  font-weight: 600;
  margin: 2rem 0 1rem;
}
.table_sty03 {
  /* margin-top: 50px; */
  line-height: 1.2;
  border-top: 1px solid #343434;
  width: 100%;
  overflow-x: auto; /* 가로 스크롤 활성화 */
  -webkit-overflow-scrolling: touch;
}
.table_sty03 > table {
  width: 100%;
  table-layout: fixed;
  border-left: 1px solid #ddd;
  border-collapse: collapse;
  border-spacing: 0;
}
caption {
  clear: both;
  list-style: none;
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0px;
  line-height: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: polygon(0 0, 0 0, 0 0);
}
.table_sty03 > table thead th {
  background: rgb(83, 180, 244, 0.1);
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #dddddd;
  font-size: 15px;
  font-weight: 600;
  color: #262626;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
  padding: 15px 0;
  min-height: 66px;
  box-sizing: border-box;
  vertical-align: middle;
}
.table_sty03 > table tbody td {
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #dddddd;
  font-size: 14px;
  font-weight: 400;
  color: #262626;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
  padding: 10px 5px;
  box-sizing: border-box;
  min-height: 60px;
  word-break: keep-all;
  vertical-align: middle;
}
.table_sty03 > table thead tr {
  border-top: 0;
}
/* 척추질환 목 */
.sub-second01 .top-img-banner{
  background: #FAFAFA;
  display: flex;
  justify-content: flex-start;
}
.sub-second01 .top-img-banner.end{
  justify-content: flex-end;
}
.sub-second01-content .top-box{
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sub-second01-content .top-txt{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  border-radius: 25px;
  background: #F7F9FE;
  padding: 40px 40px 70px;
  text-align: center;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
}
.sub-second01-content .top-txt h3{
  display: flex;
  align-items: center;
  gap: 10px;
}
.sub-second01-content .top-txt h3 img{
  width: 25px;
  height: 25px;
  aspect-ratio: 1/1;
}
.sub-second01-content .main-box .content{
  display: flex;
  gap: 40px;
  border-radius: 25px;
}
.sub-second01-content .main-box .content img{
  border-radius: 25px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.05);
  flex: 1;
}
.sub-second01-content .main-box .content img,
.sub-second01-content .main-box .txt{
  flex: 1 1 0;
  min-width: 0;
}
.sub-second01-content .main-box .txt{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  width: 100%;
}
.sub-second01-content .main-box .txt::before{
  content: '';
  width: 1046px;
  height: 1046px;
  aspect-ratio: 1/1;
  background: url(../img/visual_dots01.png)no-repeat center / contain;
  position: absolute;
  top: -70%;
  left: -50%;
}
.sub-second01-content .main-box .txt.visual-dots02::before{
  content: '';
  width: 1046px;
  height: 1046px;
  aspect-ratio: 1/1;
  background: url(../img/visual_dots02.png)no-repeat center / contain;
  position: absolute;
  top: -70%;
  right: -50%;
}
.sub-second01-content .main-box .content.reverse{
  flex-direction: row-reverse;
  justify-content: space-between;
}
/* 치료방법 */
.theraphy-wrapper{
  background: url(../img/theraphy-bg.png) no-repeat center / cover;
}
.timeline {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.timeline-line {
  position: relative;
  height: 2px;
  background: transparent;
  margin-bottom: 0;
  overflow: hidden;
}

.timeline-progress {
  position: absolute;
  inset: 0;
  background: rgba(230, 230, 230, 0.80);
  transform: scaleX(0);
  transform-origin: left;
  animation: drawLine 2.2s ease forwards;
  animation-play-state: paused;
}

.timeline-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  margin-top: -9px;
}

.timeline-items .dot {
  width: 16px;
  height: 16px;
  background: #D9D9D9;
  border-radius: 50%;
  margin: 0 auto 14px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.timeline-items p {
  color: var(--Grey-title-dark);
}
.theraphy-content-wrap .content-img{
  cursor: pointer;
}
/* 이미지 n번째 hover → 타임라인 n번째 dot 활성화 */
.theraphy-content-wrap:has(.content-img > div:nth-child(1):hover)
.timeline-items li:nth-child(1) .dot,
.theraphy-content-wrap:has(.content-img > div:nth-child(2):hover)
.timeline-items li:nth-child(2) .dot,
.theraphy-content-wrap:has(.content-img > div:nth-child(3):hover)
.timeline-items li:nth-child(3) .dot,
.theraphy-content-wrap:has(.content-img > div:nth-child(4):hover)
.timeline-items li:nth-child(4) .dot {
  background: var(--Navy-Logo);
}

.timeline.is-anim .timeline-progress {
  animation-play-state: running;
}

@keyframes drawLine {
  to {
    transform: scaleX(1);
  }
}
.theraphy-content-wrap .content-img{
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
}
/* 주사치료 */
.top-img-contents{
  background: url(../img/menu4-1-benner.png)no-repeat center / cover;
  padding: 148px 0px;
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.004em;
}
.top-img-contents.second{
  background: url(../img/menu4-2-benner.png)no-repeat center / cover;
}
.top-img-contents.third{
  background: url(../img/menu4-3-benner.png)no-repeat center / cover;
}
.top-img-contents.forth{
  background: url(../img/menu4-4-benner.png)no-repeat center / cover;
}
.top-img-contents.fifth{
  background: url(../img/menu4-5-benner.png)no-repeat center / cover;
}
.sub-forth-main-content .content{
  display: flex;
  justify-content: center;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
}
.sub-forth-main-content .content.check-icon{
  border-radius: 25px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.05);
}
.sub-forth-main-content .content .txt{
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  border-radius: 25px;
  background: #F3F9FD;
  width: 50%;
  padding: 60px 0px 60px;
  padding-left: 140px;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
}

.sub-forth-main-content .content .txt::before{
  content: '';
  width: 74px;
  height: 74px;
  aspect-ratio: 1/1;
  background: url(../img/round_logo_s.png)no-repeat center / contain;
  position: absolute;
  top: -35px;
  right: -35px;
  animation: spin 8s ease-in-out infinite alternate;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.sub-forth-main-content .content.reverse .txt::before{
  content: '';
  width: 74px;
  height: 74px;
  aspect-ratio: 1/1;
  background: url(../img/round_logo_s.png)no-repeat center / contain;
  position: absolute;
  top: -35px;
  left: -35px;
  animation: spin 8s ease-in-out infinite alternate;
}

.sub-forth-main-content .content .description{
  display: flex;
  flex-direction: column;
}
.sub-forth-main-content .content .txt .icon{
  width: 25px;
  height: 25px;
  aspect-ratio: 1/1;
  margin-top: 4px;
}

.sub-forth-main-content .content.reverse{
  flex-direction: row-reverse;
}
.sub-forth-main-content .content.reverse .txt{
  right: auto;
  left: 0;
  padding: 60px 0px 60px 40px;
}
.sub-forth-bot-content{
  background: url(../img/menu4_content-bot-bg.png)no-repeat center / cover;
}
.sub-forth-bot-content .bg-img {
  border-radius: 25px;
  background:
  linear-gradient(
  180deg,
  rgba(0, 0, 0, 0.30) 0%,
  rgba(0, 0, 0, 0.42) 35%,
  rgba(0, 0, 0, 0.59) 65%,
  rgba(0, 0, 0, 0.60) 100%
  ),
  url(../img/menu4-bg-img01.png) no-repeat center / cover;
  padding: 270px 110px 40px;
}
.sub-forth-bot-content.second .bg-img{
  background:
  linear-gradient(
  180deg,
  rgba(0, 0, 0, 0.30) 0%,
  rgba(0, 0, 0, 0.42) 35%,
  rgba(0, 0, 0, 0.59) 65%,
  rgba(0, 0, 0, 0.60) 100%
  ),
  url(../img/menu4-bg-img02.png) no-repeat center / cover;
}

.sub-forth-bot-content.third .bg-img{
  background:
  linear-gradient(
  180deg,
  rgba(0, 0, 0, 0.30) 0%,
  rgba(0, 0, 0, 0.42) 35%,
  rgba(0, 0, 0, 0.59) 65%,
  rgba(0, 0, 0, 0.60) 100%
  ),
  url(../img/menu4-bg-img03.png) no-repeat center / cover;
}

.sub-forth-bot-content.forth .bg-img{
  background:
  linear-gradient(
  180deg,
  rgba(0, 0, 0, 0.30) 0%,
  rgba(0, 0, 0, 0.42) 35%,
  rgba(0, 0, 0, 0.59) 65%,
  rgba(0, 0, 0, 0.60) 100%
  ),
  url(../img/menu4-bg-img04.png) no-repeat center / cover;
}

.sub-forth-bot-content.fifth .bg-img{
  background:
  linear-gradient(
  180deg,
  rgba(0, 0, 0, 0.30) 0%,
  rgba(0, 0, 0, 0.42) 35%,
  rgba(0, 0, 0, 0.59) 65%,
  rgba(0, 0, 0, 0.60) 100%
  ),
  url(../img/menu4-bg-img05.png) no-repeat center / cover;
}

.sub-forth-bot-content .contents-img{
  display: flex;
  gap: 20px;
  justify-content: center;
  
}
.sub-forth-bot-content .contents-img .contents{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 15px;
}
.sub-forth-bot-content .contents-img .contents span{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}
.sub-forth-bot-content .contents-img .contents span img{
  width: 20px;
  height: 20px;
  aspect-ratio: 1/1;
}
/* 오시는 길 */
.sub-location{
  position: relative;
  background: #F3F6FE;
}
.sub-location::before{
  content:'';
  width: 839px;
  height: 629px;
  position: absolute;
  top: 0;
  right: 0;
  background: url(../img/location-bg-logo.png) no-repeat right / contain;
}
.sub-location .map_flex.reverse{
  flex-direction: row-reverse;
}
.sub-location-bot {
  display: flex;
  gap: 25px;
  align-items: stretch;
}

.sub-location-bot .right {
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.sub-location-bot .left img{
  object-fit: cover;
  height: 100%;
  border-radius: 25px;
}

.sub-location-bot .left em{
  color: var(--Grey-title-dark);
}
.sub-location-bot .left em:nth-of-type(2){
  color: #2258AE;
}
.sub-location-bot .left em:nth-of-type(3){
  font-weight: 700;
}
.sub-location-bot .left .second em:first-child{
  color: var(--Grey-title-dark);
}
.sub-location-bot .location-small .third{
  font-weight: 700;
  color: #4B4B4B;
}
.map_txt_inner,
.map_tit_inner{
  padding: 40px 0px 40px 40px;
}
.sub-location-bot .left,
.sub-location-bot .right{
  width: 100%;
}
.br-m,
.br-m1{
  display: none;
}
.night-time{
  color: #C62828;
}
