/* common */
.main_tit::before {
  content: "ST.MARY’S 365 ORTHOPEDIC CLINIC";
  display: block;
  text-transform: uppercase;
  color: #000;
  letter-spacing: 0.06em;
  font-size: 1.2rem;
  font-weight: 400;
  font-family: "Paperlogy";
  margin-bottom: 10px;
}
.main_tit {
  font-family: "Paperlogy";
  font-size: 52px;
  letter-spacing: -0.005em;
}
.main_tit b {
  color: rgb(58, 58, 58, 0.1);
}
.main_tit b .copy {
  color: #3a3a3a;
}
.main_tit b i {
  color: rgb(0, 65, 157, 0.1);
}
.main_tit b .copy i {
  color: #00419d;
}

/* 화이트 모드 */
.main_tit.white::before {
  color: #d9e7ed;
}

.main_tit.white {
  color: #fff;
}

.main_tit.white b {
  color: rgb(50, 50, 50, 0.1);
}

.main_tit.white b .copy {
  color: #fff;
}

.main_tit.white b i {
  color: rgb(0, 65, 157, 0.1);
}

.main_tit.white b .copy i {
  color: #00419d;
}

/* h2 ani css */
.copy_e {
  position: relative;
  white-space: nowrap;
  display: inline-block;
  line-height: 1.3em;
}
.copy_e .copy {
  position: absolute;
  display: inline-block;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  font-size: 1em;
  font-weight: inherit;
  line-height: 1.3em;
  /* color: #222; */
  opacity: 0.2;
  overflow: hidden;
  white-space: nowrap;
  transition: width 1s ease-in-out;
}
.copy_e.active .copy {
  width: 100%;
  opacity: 1;
}
.copy_e br {
  display: none;
}
.copy_e .copy br {
  display: none;
}

/* section01 */
.sec1 {
  position: relative;
  background: rgb(29, 80, 154, 0.05);
}
.sec1 .sub-tit {
  font-size: 2rem;
  line-height: 1.8;
}
.sub-tit {
  color: #393939;
  opacity: 0.6;
  text-align: center;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.2;
}
.sec1-round-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.sec1-round-wrap .round {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 460px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  color: #fff;
  font-size: 4rem;
  font-weight: 700;
  box-shadow: 4px 4px 20px 4px rgba(0, 0, 0, 0.2);
}
.sec1-round-wrap .round h3 {
  line-height: 1.3;
}
.sec1-round-wrap .round p {
  line-height: 1.8;
}
.sec1-round-wrap .round:first-child {
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(../img/sec1-img01.png) no-repeat center / cover;
}
.sec1-round-wrap .round p {
  font-size: 2rem;
  line-height: 1.8;
  font-weight: 300;
  color: #f8f8f8;
}
.sec1-round-wrap .round:nth-of-type(2) {
  background: linear-gradient(137deg, #2e70e1 0.41%, #041a24 89.44%);
}
.sec1-round-wrap .round:last-child {
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(../img/sec1-img02.png?ver=250822) no-repeat center -10px / cover;
}

.sec1-round-wrap .round:not(:first-child) {
  margin-left: -45px;
}
.sec1-round-wrap .round:nth-child(1) {
  z-index: 3;
}
.sec1-round-wrap .round:nth-child(2) {
  z-index: 2;
}
.sec1-round-wrap .round:nth-child(3) {
  z-index: 1;
}
.txt_bg {
  font-family: "Paperlogy";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  font-size: 42rem;
  font-weight: 700;
  color: rgb(29, 80, 154, 0.08);
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
  overflow: hidden;
  letter-spacing: -0.0042em;
}
.flowing-text {
  display: inline-block;
  animation: text-to-right 250s linear infinite;
}
@keyframes text-to-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* sec2 */
.sec2 {
  position: relative;
  background: url(../img/doc-back-behind.png) no-repeat center/cover;
}
.sec2 .main_tit {
  display: flex;
  align-items: center;
  gap: 34px;
}
.sec2 .main_tit::before {
  display: none;
}
.doc-name {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  font-size: 3rem;
  color: #000;
  font-weight: 700;
}
.doc-name h3 {
  line-height: 1;
}
.doc-name .box {
  display: flex;
  font-size: 1.6rem;
  align-items: center;
  font-weight: 400;
  color: #323232;
  gap: 10px;
}
.m-block {
  display: none;
}
.doc-line {
  display: block;
  width: 2px;
  height: 15px;
  background: #323232;
}
.content-box-bl-wrap {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(
    0deg,
    rgba(0, 65, 157, 0.8) 0%,
    rgba(0, 65, 157, 0.8) 100%
  );
}
.sec2 .content-box-bl {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 50px;
  color: #fff;
  padding-top: 20px;
}
.sec2 .doc-ul {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 24px;
}
.sec2 .doc-ul .first {
  font-size: 2rem;
  font-weight: 600;
  line-height: 36px;
}
.content-box-doc {
  position: absolute;
  bottom: 0;
  right: 0;
}
.sec2 .ul_wrap {
  width: 100%;
  display: flex;
  gap: 50px;
}
/* sec3 */
.sec3 {
  background: linear-gradient(180deg, #fff 0%, #f4f4f4 100%);
}
.sec3-flex {
  width: 100%;
  display: flex;
  justify-content: center;
}
.sec3-clinic-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}
.sec3-clinic-wrap .tab {
  display: flex;
  justify-content: center;
}
.sec3-flex .tab ul {
  width: fit-content;
  display: flex;
  border-radius: 56px;
  gap: 56px;
  background: #ededed;
  font-size: 2rem;
  padding: 7px 26px;
  align-items: center;
}
.sec3-flex .tab ul li {
  position: relative;
  cursor: pointer;
}
.sec3-flex .tab ul li.on {
  background: #393939;
  border-radius: 50px;
  padding: 3px 17px;
  color: #fff;
}
.sec3-flex .tab ul:has(li:first-child.on) {
  padding-left: 8px;
}
.sec3-flex .tab ul:has(li:last-child.on) {
  padding-right: 8px;
}
.sec3 .small-sub-txt {
  text-align: center;
  font-size: 2rem;
  color: rgba(57, 57, 57, 0.8);
  line-height: 1.8;
}
.sec3 .small-sub-txt b {
  color: #393939;
}
.sec3 .card-wrap {
  display: flex;
  gap: 16px;
  max-width: 1280px;
  width: 100%;
}
.sec3-clinic-wrap .swiper-slide {
  width: 100%;
  max-width: 1280px;
}
.sec3 .card-wrap .card {
  padding: 60px;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  flex: 1;
}
.sec3 .card-wrap .card h4 {
  font-size: 3rem;
  color: #3bbbca;
  font-weight: 700;
}
.sec3 .card-wrap > div:first-child {
  background: #fff url(../img/clinic-card-back-logo01.png?ver=250822) no-repeat
    top right/contain;
  background-size: 227px auto;
}
.sec3 .card-wrap > div:nth-of-type(2) {
  background: #fff url(../img/clinic-card-back-logo02.png?ver=250822) no-repeat
    top right/contain;
  background-size: 227px auto;
}
.main-img-group .main-img img {
  border-radius: 40px;
}
.sec3-flex .main-img.on,
.clinic-contents .clinic-item.on {
  display: block;
}

/* fade data */
/* 공통: 겹쳐 놓기 */
.main-img-group,
.clinic-contents {
  position: relative;
}

.main-img,
.clinic-item {
  display: none;
}

/* 활성 상태 */
.main-img.on,
.clinic-item.on {
  display: block;
}

.main-img-group {
  cursor: grab;
}

.main-img-group:active {
  cursor: grabbing;
}

.main-img img {
  user-select: none;
  -webkit-user-drag: none;
}

/* sec4 */
.sec4 {
  min-height: 100vh;
  background: linear-gradient(
    to bottom,
    #fff 0%,
    #fff 70%,
    #f4f4f4 100%,
    #f4f4f4 100%
  );
}

.sec4Swiper {
  display: flex;
}
.sec4-tab {
  display: flex;
  gap: 0;
}

.sec4-tab > div {
  flex: 1;
  text-align: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.sec4-tab > div h3 {
  position: absolute;
  left: 40px;
  bottom: 40px;
  font-size: 3rem;
  font-weight: 700;

  color: rgba(255, 255, 255, 1);

  /* 그라데이션 준비 (안 보이게 접어둠) */
  background: linear-gradient(
    90deg,
    #00f2fe 0%,
    #03effe 2.08%,
    #24d2fe 29.31%,
    #3cbdfe 55.38%,
    #4ab0fe 79.56%,
    #4facfe 100%
  );
  background-size: 0% 100%;
  background-repeat: no-repeat;

  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: currentColor;

  transition:
    background-size 0.6s ease,
    color 0.3s ease;
}
.sec4-tab > div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease; /* 자연스럽게 */
}

/* hover 시 이미지 확대 */
.sec4-tab > div:hover img {
  transform: scale(1.08);
}
/* hover 시 */
.sec4-tab > div:hover h3 {
  color: transparent;
  background-size: 100% 100%;
  -webkit-text-fill-color: transparent;
}

/* on 시 */
.sec4-tab > div h3.on {
  color: transparent;
  background-size: 100% 100%;
  -webkit-text-fill-color: transparent;
}

/* 위로 올라오는 그룹 (1, 3) */
.sec4-tab > div:nth-child(1),
.sec4-tab > div:nth-child(3) {
  transform: translateY(-30px);
}

/* 아래로 내려가는 그룹 (2, 4) */
.sec4-tab > div:nth-child(2),
.sec4-tab > div:nth-child(4) {
  transform: translateY(30px);
}
.sec4-card-container-wrap {
  background: #f7f7f7;
  border-radius: 50px;
  padding: 80px;
}
.sec4-card {
  display: flex;
  gap: 40px;
  color: #323232;
}
.sec4-card h3 {
  font-size: 4rem;
  font-weight: 700;
}
.sec4-card .line {
  height: 0.5px;
  background: #323232;
  opacity: 0.4;
}
.sec4-card h4 {
  color: #1d509a;
  font-weight: 700;
  font-size: 2rem;
}
.sec4-card p {
  font-size: 2rem;
  font-weight: 400;
  line-height: 36px;
}

.sec4-card .img {
  flex: 0.8;
}
.sec4-card .img img {
  border-radius: 30px;
  height: 100%;
  object-fit: cover;
}
.sec4-card .txt {
  flex: 1;
}
.sec4-card .tab-box {
  width: fit-content;
  display: flex;
  gap: 5px;
  background: #1d509a;
  border-radius: 56px;
  padding: 7px 7px;
  font-size: 2rem;
  font-weight: 300;
  color: #fff;
  align-items: center;
}

.sec4-card .tab-box span {
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  line-height: 1;
}

.sec4-card .tab-box .on {
  background: #fff;
  color: #1d509a;
  font-weight: 700;
}
.sec4-card-ul {
  display: flex;
  font-size: 2rem;
  gap: 80px;
  animation: fadeUp 0.35s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sec4-card-ul.nogap {
  gap: 40px;
}
.sec4-card-ul li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.sec4-card-ul li img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.sec4-card-container-wrap.reverse {
  background: transparent;
}
.sec4-card-container-wrap.reverse:last-child {
  padding-bottom: 0;
}
.sec4-card.reverse {
  flex-direction: row-reverse;
}
.sec4-ul-wrap {
  position: relative;
}

.sec4-ul-wrap .sec4-card-ul {
  display: none;
}

.sec4-ul-wrap .sec4-card-ul:first-child {
  display: flex;
}
.sec4 .li-br br {
  display: none;
}
.sec4 .li-br span {
  display: flex;
}
.sec4 .li-br span:first-child {
  margin-right: 5px;
}
/* sec5 보유장비 */
.c6_swiper_wrap {
  overflow: initial;
  position: relative;
  width: 100%;
}

.c6_swiper_wrap .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.c6_swiper_wrap .swiper-wrapper .swiper-slide {
  max-width: 350px;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  /* box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15); */
  text-align: center;
  border-radius: 30px;
  background: #f6f6f6;
}
/* .c6_swiper_wrap .swiper-slide {
  width: calc(100% / 5.5);
} */
.item_img_wrap {
  border-radius: 20px;
  line-height: 0;
  overflow: hidden;
  background: #fff;
}

.item_name {
  color: #3bbbca;
  font-size: 26px;
  font-weight: 700;
  margin: 20px 0 5px;
}

.item_name + i {
  font-size: 16px;
  letter-spacing: -0.06em;
  text-align: center;
  color: #595757;
  opacity: 0.6;
  padding-bottom: 10px;
}

.item_pagination.swiper-pagination-progressbar {
  position: relative;
  margin-top: 70px;
  border-radius: 6px;
  overflow: hidden;
  background: #eaeaea;
}

.item_pagination.swiper-pagination-progressbar
  .swiper-pagination-progressbar-fill {
  background: #3bbbca;
}

/* sec6 */
.sec6_bg {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  border-radius: 50px;
  background: rgb(46, 168, 225, 0.05);
}

.tour_grid {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

/* 정보 */
.tour_info {
  grid-column: 1;
  grid-row: 1;
  position: relative;
}

.tour_info h2 {
  margin-bottom: 40px;
}

.tour_info p {
  color: #323232;
}

.controls {
  position: absolute;
  bottom: -25px;
  left: 0;
  transform: translateY(180%);
  display: flex;
  gap: 10px;
}

.controls button {
  border: 0;
  background: transparent;
  max-width: 50px;
  cursor: pointer;
}

/* 메인 슬라이드: 1~2행 차지 */
.tour_main {
  grid-column: 2;
  width: 100%;
  grid-row: 1 / 3;
  overflow: hidden;
}

.tour_main img {
  width: 100%;
  height: auto;
  display: block;
}

/* 썸네일 */
.tour-thumbs {
  overflow: hidden;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: flex-end;
}

.tour_thumbs .swiper-slide {
  width: 100%;
  height: 100px;
  opacity: 0.5;
  cursor: pointer;
}

.tour_thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.sec6 .main_tit::before {
  display: none;
}
.sec6-introduce {
  font-size: 2rem;
  color: #323232;
}
.sec6 .main_tit {
  font-size: 4rem;
}
.sec6 .main_tit .logo {
  width: 68px;
  height: 50px;
}

/* sec7/오시는길 */
.sec7 {
  position: relative;
}

.map_wrap .root_daum_roughmap .cont {
  display: none;
}

.map_wrap .root_daum_roughmap .wrap_controllers {
  display: none;
}

.map_wrap .root_daum_roughmap .wrap_map {
  width: 100%;
  height: 100%;
}

.map_wrap .root_daum_roughmap {
  width: 100%;
  height: 100%;
}

.map_flex {
  display: flex;
  gap: 20px;
}

.map_flex > * {
  width: 100%;
  border-radius: 30px;
}

.map_txt {
  position: relative;
  flex: 1;
  background: #fcfcfc;

  letter-spacing: -0.06em;
}

.map_txt::after {
  content: "";
  position: absolute;
  inset: auto;
  top: -45%;
  right: -35%;
  width: 370px;
  height: 297px;
  background: url(../img/way-logo.png?ver=250822) no-repeat center/cover;
  z-index: 0;
}

.map_txt_inner {
  position: relative;
  background: #fcfcfc;
  z-index: 1;
  padding: 40px 0px 40px 40px;
  border-radius: 30px;
}
.map_wrap {
  flex: 1.5;
  border-radius: 30px;
  overflow: hidden;
}

.map_txt address {
  font-size: 20px;
  font-weight: 400;
  color: #323232;
}

.map_tit {
  font-size: 30px;
  color: #000;
  font-weight: 700;
  margin-bottom: 10px;
}

.map_tit:not(:first-child) {
  margin-top: 30px;
}

.time_last {
  color: rgb(50, 50, 50, 0.6);
  font-size: 16px;
}

.map_txt ul li {
  display: flex;
  gap: 40px;
  align-items: start;
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: 400;
  padding: 0 10px;
  color: #323232;
}
.map_txt ul li:last-child {
  margin-bottom: 2rem;
}
.map_txt ul li.night_li {
  color: #fff;
  position: relative;
}

.map_txt ul li.night_li::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  background: linear-gradient(90deg, #1d509a 0%, #0a1b34 100%);
  display: block;
  width: 96%;
  height: 100%;
  z-index: 0;
  border-radius: 30px;
}
.night_li > * {
  position: relative;
}
.night_li i {
  display: flex;
  gap: 20px;
}
.night_li em {
  color: #fbd307;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.night_li em img {
  width: 1em;
  aspect-ratio: 1/1;
}

.map_txt ul li span {
  flex-shrink: 0;
  width: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.empty-set {
  height: 12vw;
}
