/* 폰트 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@200..900&display=swap");
body {
  font-family:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    Roboto,
    "Helvetica Neue",
    "Segoe UI",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Malgun Gothic",
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    sans-serif;
}
.ptText,
.sec-cate {
  font-family: "Noto Serif KR", serif;
  font-weight: 500;
  letter-spacing: -0.2rem;
}

/* 헤더 및 전체메뉴 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 4%;
  height: 8rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all .6s ease;
}
header .logo {
  height: 100%;
  width: fit-content;
  padding: 2px 0;

  a {
    width: 100%;
    height: 100%;
    display: block;
  }
  a img {
    height: 100% !important;
    width: auto !important;
    object-fit: contain;
  }
}
header.active {
  box-shadow: 0 0 6px var(--shadow);
  background: white;
}

#menu {
  display: flex;
  gap: var(--margin-sm);
  margin-left: auto;
  margin-right: var(--margin-sm);
  height: 100%;
}
#menu > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
#menu > li > a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
#menu > li:hover a {
    color: var(--main);
}
#menu .depth2 {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  width: 200px;
  padding: 1.5rem 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-top: 2px solid var(--main);
  display: none; /* JS로 제어할 예정 */
  z-index: 999;
}
#menu .depth2 li a {
  display: block;
  padding: 0.8rem 1.5rem;
  font-size: var(--subText);
  color: var(--gray100);
  transition: all 0.3s;
}
#menu .depth2 li a:hover {
  color: var(--black100);
}

#menuBtn {
  color: var(--main);
  cursor: pointer;
  font-size: var(--subTit);
  transition: var(--ease);
}
#menuAll {
  display: none;
  position: fixed;
  top: 8rem;
  left: 0;
  width: 100%;
  background: white;
  padding: 0 var(--margin-md);
  border: 1px solid var(--gray50);
  z-index: 100;
}
#menuList {
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: auto;
}
#menuList ul {
  padding: var(--margin-sm);
  border-left: 1px solid var(--gray50);

  li {
    padding: 5px 0;
    color: var(--black50);
    transition: var(--ease);
  }
  li:first-of-type {
    font-size: var(--lead);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--black100);
  }
  li:hover {
    color: var(--main);
  }
}
#menuList ul:last-of-type {
  border-right: 1px solid var(--gray50);
}
#menuList ul:hover li:first-of-type {
  color: var(--main);
}

#mb_menuBtn, #mobileMenu {display: none;}

/* 푸터 및 사이드 퀵메뉴 */
#aside {
  position: fixed;
  bottom: 4%;
  right: 2%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.8s ease;
  pointer-events: none;
}
#aside.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
#aside ul {
  background: white;
  box-shadow: 0 6px 20px var(--shadow);
  padding: 1.6rem;
  text-align: center;
  border-radius: 50px;

  li a {
    display: block;
    padding: 1rem 0;
    font-size: var(--label);
    line-height: 1.2;
    color: var(--gray100);
    transition: var(--ease);
    i {
      font-size: var(--subTit);
      color: var(--main-dark);
    }
  }
  li a:hover {
    i {
      color: var(--main);
    }
  }
}
.to-top {
  background: var(--main-dark);
  color: white;
  font-size: var(--subTit);
  aspect-ratio: 1;
  min-width: 6rem;
  border-radius: 100%;
  transition: var(--ease);
}
.to-top:hover {
  transform: translateY(-10px);
}

footer {
  border-top: 1px solid var(--gray50);
}
#ft_wrap {
  align-items: stretch;
}
#ft_wrap > div {
  flex: 1;
  padding: var(--margin-md) 0;
}
#ft_wrap > div .center {
  align-items: baseline;
}
.ft_menu {
  gap: 2rem;
  font-size: var(--subText);
  font-weight: 700;
  color: var(--black50);
  margin: 2rem 0;
}
#ft_con p {
  font-size: var(--label);
  color: var(--gray100);
  line-height: 1.6;
}
#ft_wrap .ms6_time {
  gap: 0;
  align-items: stretch;
  border-top: 0;
  border-bottom: 0;

  h3 {
    font-size: var(--subText);
    position: relative;
  }
  h3.every::after {
    font-size: var(--label);
    padding: 4px 6px;
  }
  ul {
    font-size: var(--label);
  }
  ul li {
    padding: 5px 0;
  }
}
#ft_wrap .ms6_time > div:last-of-type {
  border-left: 1px solid var(--gray50);
  height: fit-content;
}
#copyright {
  font-size: var(--label);
  color: var(--gray100);
  text-align: center;
  border-top: 1px solid var(--gray50);
  padding: 2rem;
}

/* 메인-메인 스와이퍼 슬라이드 */
section {
  overflow: hidden;
}

#mainSd {
  height: max(calc(100vh - 8rem), 52rem);
  overflow: hidden;
  padding: 0 4% 4% 4%;
  /* 변수 선언: 처음엔 베이지색(#F8F0E8) */
  --bg-color: #f5e5d5;
  background: linear-gradient(to bottom, #ffffff, var(--bg-color));
  margin-top: 8rem;
}
#mainSwiper {
  overflow: hidden;
  height: 100%;
  position: relative;
  transition: all 1.5s ease;
  opacity: 0;

  .swiper-slide a > div {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  .swiper-pagination {
    position: absolute;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.5);
    padding: 0;
  }
  .swiper-pagination-bullet {
    width: calc(100% / 5);
    height: 1px;
    background: none;
    border-radius: 0;
    color: white;
    text-align: left;
    margin: 0;
  }
  .bullet-progress {
    display: block;
    width: 100%;
    height: 1.5px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.1s linear;
  }
  .bullet-title {
    margin-top: 1.6rem;
    display: block;
    text-shadow: 0 0 6px var(--shadow);
    font-size: var(--text);
    text-align: center;
    padding: 0 10px;
  }
  .swiper-pagination-bullet-active .bullet-progress {
    background: white;
  }
}
#mainSwiper.animate {
  border-bottom-left-radius: var(--border-md);
  border-top-right-radius: var(--border-md);
  opacity: 1;
}
.mainSwText {
  background: rgba(0, 0, 0, 0.6);
  background-blend-mode: multiply;
  text-align: center;
  flex-direction: column;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  padding: 0 5%;

  p {
    font-size: var(--lead);
    color: white;
  }
  p.ptText {
    font-size: var(--display);
    line-height: 1.3;
    margin-bottom: 4rem;
  }
}

/* 메인-한의과&의과 통합의료기관 */
#mainSec3 {
  position: relative;
  background: url("../img/main_sec3_bg.jpg") no-repeat center / cover;
  background-attachment: fixed;
  border-top-left-radius: var(--border-lg);
  overflow: hidden;

  .oneImg {
    margin-bottom: 6rem;
  }
  * {
    color: white;
  }
}
#ms3Visual {
  width: 50%;
  max-width: 34rem;
  margin: 0 auto;
  margin-bottom: 4rem;
}
#mainSec3_con {
  padding: 0 clamp(2rem, 6vw, 12rem);
  margin-bottom: var(--margin-lg);

  > div {
    flex: 1;
    overflow: hidden;
    position: relative;
  }
}
.mainSec3_con:first-of-type {
  padding-right: var(--margin-md);
  border-top-left-radius: var(--border-md);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}
.mainSec3_con:last-of-type {
  padding-left: var(--margin-md);
  border-bottom-right-radius: var(--border-md);
}
.mainSec3_text {
  position: absolute;
  bottom: 0;
  width: calc(100% - var(--margin-md));
  height: 50%;
  background: linear-gradient(to top, var(--main), transparent);
  padding-bottom: var(--margin-sm);
  font-size: var(--lead);
  font-weight: 500;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  align-items: end;
}

/* 메인-시설 슬라이드 */
#mainSec4 {
  overflow-x: hidden;
}
#mainSec4Swiper {
  position: relative;
  margin-bottom: 4rem;

  .swiper-slide {
    aspect-ratio: 16/10;
  }
}
.ms4s-pagination {
  top: 100% !important;
  height: 2px !important;
  margin-top: 3rem;
  background: var(--gray50) !important;

  span {
    background: var(--black100) !important;
  }
}

/* 메인-의료진 소개 */
#mainSec5 {
  --bg-color-2: #f5e5d5;
  background: linear-gradient(to top, #ffffff 0%, var(--bg-color-2) 100%);
  padding-top: calc(var(--inPd) - var(--margin-sm));
}
#ms5_p_wrap {
  /* background: url(../img/sec5_wrap_bg.jpg) no-repeat top / cover; */
  overflow: hidden;
}
.ms5-img {
  font-size: 0;
  align-self: end;
  width: 56%;

  img {
    filter: drop-shadow(2px 4px 16px rgba(0, 0, 0, 0.1));
  }
}
.ms5-info-wrap {
  width: 44%;
  padding: var(--margin-sm);
  padding-bottom: var(--inPd);

  .sec-text {
    margin-top: 1rem;
    color: var(--gray100);
  }
}
.ms5-info-txt {
  margin-bottom: var(--margin-md);

  .ptText {
    font-size: var(--subTit);
    font-weight: 700;
    line-height: 1.4;
    color: var(--black50);
    margin-bottom: 2rem;
  }
}

/* 메인-이용 안내 */
#mainSec6 .sec {
  text-align: center;
}
#mainSec6_con {
  align-items: stretch;
}
.ms6_mapTit {
  background: var(--main);
  color: white;
  width: 100%;
  padding: 1.2rem 1.6rem;
  font-size: var(--subText);
  font-weight: 500;
  line-height: 1.3;
}
.toast {
  visibility: hidden;
  background-color: var(--black100);
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  border-radius: 8px;
  padding: 12px 18px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  opacity: 0;
  transition: var(--ease);
}
.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}
.ms6_mapWrap {
  width: 100%;
  aspect-ratio: 4/3.5;
  border: 4px solid var(--main);
  border-top: 0;
  border-bottom-right-radius: var(--border-md);
  overflow: hidden;
}
.root_daum_roughmap,
.root_daum_roughmap .wrap_map,
.root_daum_roughmap .map {
  width: 100% !important;
  height: 100% !important;
  overscroll-behavior: contain;
}
.root_daum_roughmap .map > div:nth-of-type(2)[style*="absolute"] {
  left: 5px !important;
  right: auto !important;
}
.mainSec6_con {
  padding: var(--margin-sm);

  .ms6_info {
    font-size: var(--subTit);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2.4rem;
  }
  > p.main-color {
    font-weight: 700;
  }
}
.ms6_time {
  padding: var(--margin-sm) 0;
  gap: var(--margin-sm);
  border-bottom: 1px solid var(--gray50);
  border-top: 1px solid var(--gray50);
  align-items: stretch;

  > div {
    flex: 1;
  }
  h3 {
    font-size: var(--lead);
    font-weight: 700;
    margin-bottom: 1.2rem;
    gap: 6px;
    position: relative;
  }
  h3.every::after {
    content: "365일";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(110%, -50%);
    font-size: var(--text);
    font-weight: 600;
    color: var(--main);
    border: 1px solid var(--main);
    border-radius: 50px;
    padding: 4px 8px;
    background: white;
    width: fit-content;
  }
}
.ms6_time_list li {
  display: flex;
  gap: 1rem;
  padding: 8px 0;
  color: var(--black50);
  flex-wrap: wrap;

  > div {
    width: 8rem;
    font-weight: 700;
  }
  p {
    line-height: 1;
  }
  p span {
    font-size: var(--label);
    color: var(--gray100);
  }
}
.ms6_consult {
  padding-top: calc(var(--margin-sm) + 1rem);
  gap: var(--margin-sm);
  align-items: flex-start;
  flex-wrap: wrap;
}
.ms6_consult_tit {
  width: calc(30% - 2rem);
  min-width: fit-content;
  font-size: var(--lead);
  font-weight: 700;

  i {
    font-weight: 500;
    color: var(--gray100);
    border: 1px solid var(--gray50);
    border-radius: 100%;
    margin-right: 4px;
    padding: 1rem;
  }
}
.ms6_consult_list {
  width: calc(70% - 2rem);
}
.ms6_consult_list li {
  padding: 2rem 0;
  color: var(--black50);

  p.main-color {
    font-size: var(--subTit);
    font-weight: 700;
    margin-top: -3rem;
    margin-bottom: 1rem;
  }
  span {
    font-weight: 700;
    margin-right: 10px;
  }
}
.ms6_consult_list li:not(:last-of-type) {
  border-bottom: 1px solid var(--gray50);
}

/* 메인-진료과목 전체 */
#mainSec7 {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: #000;
  color: white;

  .sec-tit {
    color: white;
  }
}
#mainSec7::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transition: background-image 0.5s ease-in-out;
}
.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  will-change: transform, opacity;
}
#ms7_over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}
#ms7_con {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--margin-sm);
  width: fit-content;
  margin: 0 auto;
}
#ms7_con li {
  font-size: var(--lead);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0);
  transition: var(--ease);

  a {
    width: 100%;
    padding: 2.8rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
  }
  i {
    font-size: var(--subTit);
    font-weight: 400;
  }
}
#ms7_con li.active {
  border: 1px solid white;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.3);
}

/* 서브-공통 */
.subNav {
    display: flex;
    align-items: center;
    width: fit-content;
    margin: var(--margin-sm) auto 0;
    position: relative;
    z-index: 1;

    > div {
    padding: 0 1.6rem;
    font-size: var(--subText);
    }
    > div:not(.subNavH) {
    border-left: 1px solid var(--gray50);
    }
    i {
    display: inline-block;
    width: 18px;
    height: 18px;
    }
}
.subNavH {
  font-weight: 600;
  color: var(--main);
  text-transform: uppercase;

  a {
    display: block;
    padding: 6px 22px;
    background: #e5732c2c;
    border-radius: 5rem;
  }
}
.subNav1,
.subNav2 {
  position: relative;
  cursor: pointer;
  white-space: nowrap;

  i {
    display: inline-block;
    transition: var(--ease);
    color: var(--gray100);
  }
  i.rotate {
    transform: rotate(180deg);
  }
}
.subAll1,
.subAll2 {
  display: none;
  position: absolute;
  top: 120%;
  background: white;
  box-shadow: 0 0 6px var(--shadow);
  border-radius: 6px;
  padding: 1.4rem 2rem;
  z-index: 100;

  li {
    padding: 8px 0;
    font-size: var(--subText);
    white-space: nowrap;
  }
  li:hover {
    color: var(--main);
  }
}

.bg-grayGd {
  background: linear-gradient(to top, white, var(--base));
}
.bg-grayRv {
  background: linear-gradient(to bottom, white, var(--base));
}

#subCate {
  padding-top: calc(var(--inPd) + var(--margin-sm));
  padding-left: 20px;
  padding-right: 20px;
}

#subDisplay {
  margin-top: var(--inPd);
  border-top-left-radius: min(20rem, 20vw);
  overflow: hidden;
  color: white;
  text-shadow: 0 0 6px var(--shadow);
  position: relative;

  .subDisplayBg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    will-change: transform;
  }
  .sec-tit {
    position: relative;
    z-index: 1;
    color: white;
  }
}
#subDisplay::before {
  content: "";
  background: rgba(0, 0, 0, 0.6);
  mix-blend-mode: multiply;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
}

.inPd1 {
  padding-bottom: var(--inPd);
}

.lineTabList {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--margin-sm);

  li {
    flex: 1 1 18rem;
    max-width: 18rem;
    font-weight: 600;
    color: var(--gray100);
    border-bottom: 1px solid var(--gray50);
    padding: 1.2rem;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
  }
  li.on {
    color: var(--black100);
    border-bottom: 1px solid var(--black100);
  }
}

/* 서브-인사말 */
#sub2-gt {
  background: url(../img/sub-gt-bg1.jpg) no-repeat right / cover;
  margin-bottom: var(--margin-md);
}
.sub2-gt {
  width: min(70%, 72rem);
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  padding: var(--margin-lg) 0 var(--margin-lg) 10rem;

  .sec-tit {
    color: white;
    margin-bottom: 4rem;
    text-shadow: 0 0 6px var(--shadow);
  }
  p {
    font-size: var(--lead);
    font-weight: 600;
  }
}
#sub2-gt-txt {
  align-items: baseline;

  > div {
    padding-right: var(--margin-sm);
  }
  p {
    margin-top: 2.4rem;
  }
}

#value {
  background: linear-gradient(to bottom, white, var(--main-light));
}
.reveal-wrap {
  margin-bottom: var(--inPd);
}
.reveal-text {
  font-size: var(--display);
  font-weight: 700;
  text-align: center;
  background: linear-gradient(to right, #000 50%, #e0e0e0 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.valueBoxWrap {
  padding: 3rem 0;
}
#valueBox {
  border: 3px solid transparent;
  border-radius: 200px;
  background-image:
    linear-gradient(to bottom, #ffffff, var(--main-light)),
    linear-gradient(to bottom, var(--main-dark), var(--main));
  background-origin: border-box;
  background-clip: content-box, border-box;
}
.value-t,
.value-b {
  font-size: var(--subTit);
  font-weight: 600;
  color: white;
  padding: 1.4rem 3rem;
  width: fit-content;
  margin: 0 auto;
  border-radius: 10rem;
}
.value-t {
  background: var(--main-dark);
  transform: translateY(-50%);
}
.value-b {
  background: var(--main);
  transform: translateY(50%);
}
.valueList {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 2%;

  li {
    width: calc(100% / 5);
    border: 1px dashed var(--main);
    background: #ffffff94;
    margin-right: -2%;
    aspect-ratio: 1;
    border-radius: 100%;
    transform: translateX(-4%);
    flex-direction: column;
  }
  li div {
    margin-bottom: 1rem;
    color: var(--main);
    letter-spacing: normal;
  }
  li p {
    font-size: var(--subTit);
    font-weight: 700;
    color: var(--black100);
  }
}

#sub2-gt-cta {
  background: url(../img/sub-gt-bg2.jpg) no-repeat left / cover;
  position: relative;
  height: clamp(32rem, 30vw, 50rem);

  .center {
    height: 100%;
    justify-content: right;
  }
}
.sub2-gt-cta-con {
  padding-right: var(--margin-md);
  text-shadow: 0 0 8px var(--shadow);
}
.sub2-gt-cta-con p {
  color: white;
  font-size: var(--tit);
  margin-bottom: var(--margin-sm);
}

/* 서브-브랜드스토리 */
#bsVideo {
  position: relative;
  margin-top: var(--inPd);
  border-bottom-left-radius: var(--border-lg);
  overflow: hidden;
}
.bsVideoWrap {
  width: 100%;
  aspect-ratio: 16/7.5;
  min-height: 46rem;
  overflow: hidden;
}
.bsVideoTxt {
  position: absolute;
  top: 0%;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  text-shadow: 0 0 6px var(--shadow);
  text-align: center;
  flex-direction: column;

  .apo {
    font-size: clamp(6rem, 10vw, 10rem);
    color: var(--main);
    margin-top: -4rem;
  }
  .ptText {
    font-size: var(--display);
    line-height: 1.3;
    color: white;
    opacity: 0.8;
  }
}

#bsStrength {
  position: relative;
  overflow: hidden;

  .flex {
    align-items: stretch;
  }
}
#bsStrength .sec {
  padding-right: var(--margin-lg);
}
.bsStrengthCon {
  padding: 0 var(--margin-lg) 0 var(--margin-sm);
}
.bsStrengthList li {
  margin-bottom: var(--margin-lg);

  .strengthIcon {
    margin-bottom: var(--margin-sm);
    width: clamp(5rem, 7vw, 7rem);
  }
  h4 {
    font-size: var(--subTit);
    font-weight: 700;
    margin-bottom: 1.2rem;
  }
}
.bsStrengthCon button {
  margin-top: 2rem;
}
.bsStrengthDeco {
  position: absolute;
  bottom: 0;
  transform: translate(-18%, 24%);
  z-index: -1;
  width: 58vw;
}

#bsFacility {
  position: relative;
}
:root {
  --fa-width: min(80rem, 60vw);
  --fa-gap: min(8rem, 3vw);
}
#bsFacilitySwiper {
  position: relative;
}
.bsFacilityPrev,
.bsFacilityNext {
  position: absolute;
  top: 50%;
  z-index: 1;
}
.bsFacilityPrev {
  left: calc(50% - (var(--fa-width) / 2) - var(--fa-gap));
  transform: translate(-50%, 70%);
}

.bsFacilityNext {
  right: calc(50% - (var(--fa-width) / 2) - var(--fa-gap));
  transform: translate(50%, 70%);
}
#bsFacilitySwiper .swiper-slide {
  width: var(--fa-width);
  aspect-ratio: 16/9;
  margin: 0 var(--fa-gap);
  border-radius: 50rem;
  overflow: hidden;
  transition: all 1s ease;
}
#bsFacilitySwiper .swiper-slide-active {
  border-radius: 0;
}

#bsCta .sec-tit {
  font-weight: 600;
  margin-bottom: 6rem;
  line-height: 1.1;

  span {
    font-size: var(--display);
  }
}
.bsCtaCon {
  width: 100%;
  overflow: hidden;
  padding: var(--margin-md) var(--margin-sm);

  a {
    width: 100%;
    height: 100%;
    gap: 1rem;
    transition: var(--ease);
  }
  .bsCtaTxt h3 {
    font-size: var(--subTit);
    font-weight: 600;
    color: white;
  }
  .bsCtaTxt p {
    color: white;
    font-size: var(--text);
    margin-top: 1rem;
  }
  .bsCtaBtn {
    width: 5rem;
    height: 5rem;
    background: white;
    border-radius: 100%;
    font-size: var(--lead);
    transition: var(--ease);
  }
}
.bsCtaCon:first-of-type {
  background: url(../img/sub-st-bg1.jpg) no-repeat center / cover;
  background-size: 100%;
  transition: background-size 1s ease;
}
.bsCtaCon:last-of-type {
  background: url(../img/sub-st-bg2.jpg) no-repeat center / cover;
  background-size: 100%;
  transition: background-size 1s ease;
}
.bsCtaCon:first-of-type:hover,
.bsCtaCon:last-of-type:hover {
  background-size: 120%;

  .bsCtaBtn {
    background: var(--main);
    color: white;
  }
}

/* 서브-진료안내 */
#gdTime > .flex {
  align-items: stretch;
}
#gdTime .ms6_time {
  border-bottom: 0;
  border-top: 0;
  padding: 0;
}
.gdTimeCon {
  background: var(--base);
  padding: 2.8rem;
  border-radius: 2rem;

  h3 {
    font-size: var(--subTit);
    gap: 1rem;
    margin-bottom: 2rem;
    width: fit-content;
  }
  h3.every::after {
    right: 0;
    left: auto;
  }
  p.sec-text {
    font-size: var(--lead);
  }
}
.gdTimeIcon {
  font-size: var(--lead);
  background: var(--main);
  color: white;
  font-weight: normal;
  display: inline-block;
  width: 3.6rem;
  aspect-ratio: 1;
  line-height: 3.6rem;
  text-align: center;
  border-radius: 100%;
}
.gdTimeCon .ms6_time_list li {
  padding: 6px 0;

  > div {
    width: 10rem;
  }
  > div.sec-tit {
    width: fit-content;
  }
}

#subMap {
  position: relative;
}
.subMap_map {
  position: relative;
  width: 100%;
}
.subMap_mapWrap {
  width: 100%;
}
.subMap_mapWrap .root_daum_roughmap .wrap_map {
  width: 100%;
  aspect-ratio: 16/7;
  border: 4px solid var(--main);
}
.root_daum_roughmap .wrap_controllers {
  display: none;
}
.subMap_mapWrap .cont .title {
  font-size: var(--text) !important;
  font-weight: 600;
  margin-bottom: 16px !important;
}
.subMapBtn {
  margin-top: 4rem;
  gap: 2rem;
  justify-content: center;

  button {
    border: 1px solid var(--gray50);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    gap: 1rem;
    transition: var(--ease);
  }
}
.subMapBtn button:hover {
  background: var(--black100);
  color: white;
}

/* 서브-비급여항목 */
#nciTab {
  width: 100%;
  display: flex;
  row-gap: 2rem;
  column-gap: 1rem;
  flex-wrap: wrap;

  li {
    flex: 1 1 auto;
    max-width: 46rem;
    border: 1px solid var(--gray50);
    border-radius: 10rem;
    padding: 1.6rem;
    transition: var(--ease);
    text-align: center;
    font-weight: 700;
    cursor: pointer;
  }
  li.on {
    border: 1px solid var(--main-dark);
    background: var(--main-dark);
    color: white;
  }
}
.nciTable {
  display: none;
  overflow-x: auto;
  margin-top: var(--margin-sm);

  table {
    width: 100%;
    border-top: 2px solid var(--black100);
    border-bottom: 2px solid var(--black100);
    border-collapse: collapse;
    font-size: var(--subText);
    text-align: center;
    min-width: 860px;
  }
  thead {
    background: var(--base);
    font-weight: 600;
  }
  th,
  td {
    vertical-align: middle;
    border: 1px solid var(--gray50);
    padding: 2rem 0;
  }
  td:first-child,
  th:first-child,
  td:last-child {
    border-left: none;
    border-right: none;
  }
  th:last-child {
    border-right: none;
  }
  tbody {
    color: var(--black50);
  }
}
.nciTable.on {
  display: block;
}
#nciDate {
  text-align: right;
  font-size: var(--subText);
  color: var(--gray100);
  padding: 10px 0;
}

/* 서브-협진 */
#stickySideSec {
  position: relative;
  width: 100%;
  overflow: visible;
}
.sticky-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.sticky-img-box {
  flex: 1;
  position: sticky;
  top: 15%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.img-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.img-item.active {
  opacity: 1;
}
.sticky-text-wrap {
  flex: 1;
}
.text-content {
  width: 100%;
  aspect-ratio: 16/12;
  padding-left: var(--margin-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.3;
  transition: opacity 1s ease;

  ul.mb-flex {
    gap: 1rem;
    margin-bottom: var(--margin-sm);
  }
  ul.mb-flex li {
    background: var(--gray50);
    padding: 8px 16px;
    font-size: var(--subText);
    color: white;
    font-weight: 600;
    border-radius: 5rem;
    text-transform: uppercase;
    transition: var(--ease);
    transform: scale(0.9);
    min-width: 4rem;
  }
  ul.mb-flex li.active {
    background: var(--main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: scale(1);
  }
  h4 {
    font-size: var(--subTit);
    font-weight: 700;
    margin-bottom: 1.2rem;
  }
  ul.text-flex {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
  }
}
.text-content.active {
  opacity: 1;
}

#imWhy {
  background: url("../img/sub-im-bg.jpg") no-repeat top / cover;
  background-attachment: fixed;

  .ptText {
    color: var(--main);
    font-size: 10rem;
    margin-bottom: 4rem;
  }
  .gd-lineBar {
    width: 2px;
    height: 10rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white);
    margin: 5rem auto;
  }
  .sec-tit:not(.bold) {
    font-weight: normal;
  }
}
.graphLine {
  width: 2px;
  height: 8rem;
  margin: 0 auto;
  background: white;
  position: relative;
}
.graphLine::after {
  content: "";
  width: 12px;
  height: 12px;
  background: white;
  position: absolute;
  bottom: 0;
  transform: translateX(-45%);
  border-radius: 100%;
}
.graphTxt {
  background: var(--main-dark);
  color: white;
  font-weight: 600;
  padding: 2rem 0;
  text-align: center;
  border-radius: 10rem;
  margin-top: 2rem;
}

#imDotList {
  background: linear-gradient(to bottom, white, var(--base));
}
.imDotWrap {
  position: relative;
}
.imDotWrap .line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--main);
  transform: translateY(-50%);
}
.imDotWrap .dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--main);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: moveAlong 12s linear infinite;
}
@keyframes moveAlong {
  0% {
    left: 0;
  }
  100% {
    left: calc(100% - 12px);
  }
}
.imDotWrap .dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: var(--main);
  opacity: 0.3;
  pointer-events: none;
  border-radius: 100%;
}
#imDotList .dot-list {
  padding: 0 6%;
  align-items: stretch;
}
#imDotList .dot-list li {
  opacity: 0.5;
  animation: fadeCycle 12s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--margin-sm);
  padding-top: var(--margin-md);

  .imDotIcon {
    height: 7rem;
    aspect-ratio: 1;
  }
  .imDotTit {
    font-size: var(--subTit);
    font-weight: 700;
    margin-bottom: 1.2rem;
  }
  .imDotTit span {
    background: var(--black100);
    color: white;
    font-size: var(--text);
    height: 3rem;
    aspect-ratio: 1;
    line-height: 3rem;
    border-radius: 100%;
    display: inline-block;
    margin-right: 1rem;
  }
}
@keyframes fadeCycle {
  0% {
    opacity: 1;
    filter: grayscale(0%);
  }
  25% {
    opacity: 1;
    filter: grayscale(0%);
  }
  26% {
    opacity: 0.4;
    filter: grayscale(100%);
  }
  100% {
    opacity: 0.4;
    filter: grayscale(100%);
  }
}

#imDotList .dot-list li:nth-child(1) {
  animation-delay: 0s;
}
#imDotList .dot-list li:nth-child(2) {
  animation-delay: 3s;
}
#imDotList .dot-list li:nth-child(3) {
  animation-delay: 6s;
}
#imDotList .dot-list li:nth-child(4) {
  animation-delay: 9s;
}

/* 서브-진료과목 */
.subDepartTxt {
  margin-bottom: 6rem;
}
#spPoint {
  align-items: inherit;
}
#spPoint li {
  position: relative;
  border: 1px solid var(--gray50);
  flex-direction: column;
  gap: 3rem;
  font-size: var(--lead);
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
  padding: 3rem 4%;
}
.spPointNum {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--black100);
  color: white;
  height: 5rem;
  line-height: 5rem;
  aspect-ratio: 1;
}

#subDepartCta {
  background: url(../img/sub-dp-cta-bg.jpg) no-repeat center / cover;

  .flex {
    align-items: stretch;
  }
  .sec > * {
    color: white;
  }
}
.departCtaList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.departCtaList li {
  background: white;
  aspect-ratio: 1;
  font-size: var(--lead);
  font-weight: 600;
  text-align: center;
  border-bottom-right-radius: 2rem;
  transition: var(--ease);

  a {
    width: 100%;
    height: 100%;
    flex-direction: column;
  }
  .icon {
    height: 7rem;
    margin: 0 auto;
    margin-bottom: 3rem;
  }
  .icon img {
    height: 100% !important;
    width: auto !important;
    object-fit: contain;
  }
  h4 span {
    display: block;
    font-size: var(--subText);
    color: var(--black50);
    font-weight: 400;
    margin-top: 3px;
  }
}
.departCtaList li:hover {
  border-bottom-right-radius: var(--border-sm);
}

/* 서브-재활 */
.rehabPg {
  display: flex;
  margin-top: 6rem;
}
.rehabPg:first-of-type {
  margin-top: 0;
}
.rehabPgL {
  width: 30%;
  font-size: var(--subTit);
  font-weight: 700;
  padding-top: var(--margin-sm);
  border-top: 1px solid var(--black100);
}
.rehabPgR {
  width: 70%;
  border-top: 1px solid var(--gray50);
}
.regabPgCon {
  padding: var(--margin-sm) 0;

  .leadTxt {
    font-size: var(--lead);
    font-weight: 600;
    margin-bottom: 1.6rem;
  }
  p {
    margin-bottom: 1rem;
  }
  ul {
    column-gap: 2.4rem;
    row-gap: 0.8rem;
    color: var(--black50);
    margin-top: 4px;
    flex-wrap: wrap;
  }
  ul li {
    line-height: 1.3;
  }
  ul li span {
    background: var(--black100);
    color: white;
    font-size: var(--label);
    font-weight: 600;
    line-height: 22px;
    width: 22px;
    aspect-ratio: 1;
    text-align: center;
    border-radius: 100%;
    margin-right: 6px;
  }
}
.regabPgCon:not(:last-of-type) {
  border-bottom: 1px dotted var(--gray50);
}
.rehabImg {
  margin-top: 2.4rem;

  > div {
    flex: 1 1 calc((100% - (1.2rem * 3)) / 4);
    max-width: calc((100% - (1.2rem * 3)) / 4);
  }
  p {
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
  }
}

#swiperPgWrap {
  padding-top: 4rem;
}
#swiperPg .swiper-container {
  cursor: grab;
}
#swiperPg ul li div {
  aspect-ratio: 16/10;
  margin-bottom: 10px;
}
#swiperPg ul li p {
  font-size: var(--subText);
}
#swiperPg .swiper-slide .rehabPgImg {
  aspect-ratio: 16/10;
}
.rehabPgTxt {
  padding: 0 var(--margin-sm);
  opacity: 0;
  transform: translateX(-5rem);
  transition: all 1s ease-out;

  h4 {
    font-size: var(--tit);
    font-weight: 700;
    margin-bottom: 2rem;
  }
}
.swiper-slide-active .rehabPgTxt {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}
.rehabPgTxt h4,
.rehabPgTxt p,
.rehabPgTg {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease-out;
}
.swiper-slide-active .rehabPgTxt h4,
.swiper-slide-active .rehabPgTxt p,
.swiper-slide-active .rehabPgTg {
  opacity: 1;
  transform: translateX(0);
}
.swiper-slide-active .rehabPgTxt h4 {
  transition-delay: 0.3s;
}
.swiper-slide-active .rehabPgTxt p {
  transition-delay: 0.4s;
}
.swiper-slide-active .rehabPgTg {
  transition-delay: 0.5s;
}
.rehabPgTg {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;

  .tag {
    font-size: var(--subText);
    font-weight: 500;
    color: var(--main);
    background: var(--main-light);
    height: fit-content;
    padding: 4px 10px;
    border-radius: 4px;
  }
  .tg li:not(:last-of-type) {
    padding-bottom: 1.6rem;
  }
}

#swiperSp {
  margin-top: var(--margin-sm);
}
#swiperSp .swiper-slide {
  font-size: 0;
}
#swiperSp .swiper-slide .wrap {
  position: relative;
}
#swiperSp .swiper-slide .swiperSpOver {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, black, rgba(0, 0, 0, 0));
}
#swiperSp .swiper-slide .primaryBtn {
  transform: translateY(-50%);
  width: fit-content;
  margin: 0 auto;
  padding: 1.2rem 2.4rem;
}
#swiperSp .swiper-slide .primaryBtn:hover {
  padding: 1.2rem 2.4rem;
}
#swiperSp .ms4s-pagination {
  margin-top: 0;
}

.sp-rehabImg {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(3, 1fr);
  font-size: var(--subText);
}
.sp-rehabImg > div img {
  aspect-ratio: 16/9;
}

/* 서브-교통사고 */
#accidentAf {
  position: relative;
}
.accidentAfCon {
  background: url(../img/sub-aa-img1.jpg) no-repeat center / cover;
  width: 100%;
  height: 100%;
  padding: 8%;
  display: flex;
  flex-direction: column;
  gap: 1%;
  justify-content: space-between;
}
.accidentAfList {
  background: white;
  border: 1px solid var(--main);
  border-radius: 1rem;
  width: min(33rem, 45%);

  h4 {
    width: 100%;
    background: var(--main);
    color: white;
    font-weight: 700;
    border-top-left-radius: 0.8rem;
    border-top-right-radius: 0.8rem;
  }
  h4,
  p {
    padding: 1.2rem 2rem;
  }
}
.accidentAfList:nth-child(odd) {
  margin-left: auto;
}
.accidentAfList:nth-child(even) {
  margin-right: auto;
}

#goal {
  background: var(--base);
}
.goalCon {
  display: flex;
  align-items: center;
  width: 100%;
}
.goalBox {
  width: 70%;
  position: relative;
}
.be-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, white, var(--main));
  position: relative;
}
.be-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0%;
  transform: translate(50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--main);
  z-index: 3;
}
.goal-list {
  display: flex;
}
.goal-list li {
  aspect-ratio: 1;
  width: calc(100% / 4);
  border: 1px dashed var(--main);
  border-radius: 100%;
  margin-right: -2%;
  flex-direction: column;
  gap: 1rem;
  padding: var(--margin-sm);
  text-align: center;

  .num {
    background: var(--black100);
    color: white;
    font-weight: 600;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: 100%;
  }
  p {
    font-weight: 700;
  }
}
#goal .right-box {
  width: 18%;
  aspect-ratio: 1;
  border-radius: 100%;
  background: var(--main);
  position: relative;
}
#goal .right-box > div {
  background: var(--main);
  color: white;
  width: 100%;
  height: 100%;
  border-radius: 100%;
  box-shadow: 0 0 8px rgba(128, 0, 0, 0.555);
  text-align: center;
  z-index: 2;
  position: relative;
  font-weight: 700;
  padding: var(--margin-sm);
  line-height: 1.4;
}
#goal .right-box::before,
#goal .right-box::after {
  content: "";
  position: absolute;
  width: 30%;
  height: 30%;
  border-radius: 50%;

  background: var(--main);

  animation: ripple-effect 2s infinite ease-out;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  z-index: 1;
}
#goal .right-box::before {
  animation-delay: 0s;
}
#goal .right-box::after {
  animation-delay: 0.5s;
}
@keyframes ripple-effect {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(5);
    opacity: 0;
  }
}

/* 비수술치료 */
#teraphy-tg {
  align-items: stretch;
}
.tgList li {
  gap: 1rem;
  padding: calc(var(--margin-sm) - 1rem) var(--margin-sm);
  background: var(--base);
  color: var(--black100);
  border-radius: 10rem;
  line-height: 1.35;

  i {
    color: var(--main);
  }
}
.tgList li:not(:first-of-type) {
  margin-top: 2rem;
}

.chunaImg {
  aspect-ratio: 16/5;
}
#table-st {
  margin-top: 6rem;
}
#table-st > div.mb-flex {
  gap: 6px;
  font-size: var(--subTit);
  font-weight: 700;
  margin-bottom: 2rem;

  i {
    font-weight: normal;
    color: var(--main);
  }
}
#table-st table {
  width: 100%;
  table-layout: fixed;
  text-align: center;

  thead {
    background: var(--main);
    color: white;
    font-size: var(--lead);
    font-weight: 700;
  }
  th,
  td {
    padding: 2.4rem 8px;
  }
  th:not(:last-of-type) {
    border-right: 1px solid white;
  }
  td {
    border-bottom: 1px solid var(--gray50);
    line-height: 1.4;
  }
  td:not(:last-of-type) {
    border-right: 1px solid var(--gray50);
  }
}

/* 입원집중치료 */
.inpatient-bg {
  background: url(../img/sub-ic-bg1.jpg) no-repeat left / cover;

  .flex {
    align-items: stretch;
  }

  .sec > * {
    color: white;
    text-shadow: 0 0 6px var(--shadow);
  }
}

#targetLine {
  position: relative;
}
.drawLine {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 2px;
  z-index: inherit;
}
.section-scroll-line {
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--main));
  position: relative;
}
.line-pointer {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--main);
  border-radius: 50%;
  z-index: 10;
}
.line-pointer span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--main);
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  animation: ripple-double 2s infinite ease-out;
}
.line-pointer span:nth-child(2) {
  animation-delay: 1s;
}
@keyframes ripple-double {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.targetConWrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--inPd);
}
.targetCon:nth-child(even) {
  margin-top: var(--inPd);
}
.targetConImg {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.targetCon img {
  transition: transform 0.5s ease;
  will-change: transform;
}
.targetConTit {
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 1rem;

  .num {
    background: var(--gray50);
    color: var(--gray100);
    font-size: var(--lead);
    width: 4rem;
    height: 4rem;
    line-height: 4rem;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--ease);
  }
  .subTit {
    font-size: var(--subTit);
    font-weight: 700;
  }
}
.targetCon.active .num {
  background: var(--main);
  color: white;
}

/* 산업재해보상치료 */
.indust-bg {
  background: url(../img/sub-ic-bg2.jpg) no-repeat center / cover;
}
.tgidList li {
  border-radius: 1.6rem;
  padding: 4rem;

  h4 {
    font-size: var(--lead);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--main);
  }
  p {
    margin-top: 1rem;
  }
}
.add-ex {
  gap: 6px;
  background: var(--main-light);
  color: var(--main);
  padding: 1rem;
  margin-top: 2rem;
  border-radius: 6px;
  width: fit-content;
  font-size: var(--subText);
  line-height: 1.2;

  i {
    font-size: 2.4rem;
  }
}

/* 개인정보 및 약관 */
#use {
  padding-top: 8rem;
}
.use-tab {
  display: flex;
  gap: 2rem;
  font-size: var(--tit);
  font-weight: 700;
  color: var(--gray50);
  margin-bottom: 6rem;

  li.active {
    color: var(--main);
  }
}
.use-detail {
  h2 {
    font-size: var(--subTit);
    font-weight: 700;
    margin-bottom: 2rem;
  }
  h3 {
    font-size: var(--lead);
    font-weight: 600;
    margin-bottom: 1rem;
  }
  hr {
    margin: 3rem 0;
    opacity: 0.3;
  }
  ul {
    list-style: disc inside;
    padding-left: 1rem;
    line-height: 180%;
  }
}

/* 반응형 */
@media screen and (max-width: 1024px) {
  .departCtaList {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 모바일 전용 메뉴 */
  #menu, #menuBtn, #menuAll {
    display: none;
  }
  #mb_menuBtn {
    display: block;
    font-size: var(--tit);
  }
  #mobileMenu {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 9999;
    pointer-events: none;
  }
  #mobileMenu.active {
    right: 0;
    opacity: 1;
    pointer-events: auto;
  }
  .m-menu-modal {
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    transition: opacity 0.3s ease;
  }
  .m-menu-modal.active {
    display: block;
    opacity: 1;
  }
  .m-menu-wrap {
    background: var(--main);
    color: white;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    box-shadow: -5px 0 15px var(--shadow);
    overflow-y: auto;
  }
  .mobileMenuHead {
    height: 7rem;
    display: flex;
    justify-content: right;
    align-items: center;
    padding: 1rem 4%;
    margin-bottom: 2rem;
  }
  #m_menuClose {
    font-size: var(--subTit);
    color: white;
  }
  .m-gnb {
    padding: 0 10%;

    > li {
      border-bottom: 1px solid #ffffff5e;
    }
  }
  .m-depth1 {
    font-size: var(--lead);
    font-weight: 600;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .m-depth2 {
    display: none;
    padding: 0 1.6rem 1.6rem;
  }
  .m-depth2 li a {
    padding: 8px 4px;
    display: block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    color: rgba(255, 255, 255, 0.8);
  }
  .m-arrow {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
  }
  .m-depth1.active .m-arrow {
    transform: rotate(180deg);
  }
  /* 모바일 전용 메뉴 끝 */
}

/* 시작-주요 반응형 */
@media screen and (max-width: 768px) {
  header {
    height: 7rem;
  }

  #ft_wrap .ms6_time {
    background: var(--base);
    border-radius: 12px;
    padding: var(--margin-sm) 0;
    margin-bottom: var(--margin-sm);
  }

  #mainSd {
    margin-top: 7rem;
    height: max(46vh, 40rem);
    padding: 0 4%;
  }
  #mainSwiper .swiper-pagination {
    display: flex !important;
    justify-content: center;
    bottom: 3rem !important;
    gap: 8px;
    background: transparent;
  }
  #mainSwiper .swiper-pagination-bullet .bullet-progress,
  #mainSwiper .swiper-pagination-bullet .bullet-title {
    display: none !important;
  }
  #mainSwiper .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    transition: var(--ease);
  }
  #mainSwiper .swiper-pagination-bullet-active {
    background: #fff !important;
    width: 25px !important;
    border-radius: 5px !important;
  }
  .mainSwText p:not(.ptText) {
    font-size: var(--text) !important;
  }

  #latest_wr {
    flex-direction: column;
    gap: 3rem;
  }
  .latest_tit {
    width: 100% !important;
  }
  .latest_tit .btnWrap {
    position: static !important;
  }

  #mainSec4Swiper {
    margin-top: var(--margin-md);
  }

  #ms5_p_wrap {
    flex-direction: column-reverse;
  }
  .ms5-img {
    width: 90%;
    align-self: center;
    transform: translateX(-6%);
  }
  .ms5-info-wrap {
    width: 100%;
    padding-bottom: var(--margin-lg);

    button {
      margin-left: auto;
    }
  }

  .ms6_mapWrap {
    aspect-ratio: 16/10;
    border: 2px solid var(--main);
  }

  #ms7_over {
    background: url(../img/sub-dp-cta-bg.jpg) no-repeat center / cover;
    background-attachment: fixed;
  }
  #ms7_con {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  #ms7_con li {
    border: 1px solid white;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.3);
  }

  #subCate {
    padding-top: var(--inPd);
    margin-top: var(--margin-md);
  }

  #sub2-gt {
    width: 100%;
    aspect-ratio: 16/7;
  }
  #valueBox {
    border-radius: var(--border-md);
    .mbOnly {
      padding: 0 4%;
    }
  }
  #sub2-gt-cta .center {
    justify-content: center;
  }
  .sub2-gt-cta-con {
    padding-right: 0;
    text-align: center;
  }

  #bsStrength .sec,
  .bsStrengthCon {
    padding: 0;
  }
  .bsStrengthCon {
    padding-left: var(--margin-md);
  }
  .bsFacilityPrev,
  .bsFacilityNext {
    top: auto !important;
    bottom: 0;
  }
  .bsFacilityPrev {
    left: 50% !important;
    transform: translate(-110%, 0%) !important;
  }
  .bsFacilityNext {
    right: 50% !important;
    transform: translate(110%, 0%) !important;
  }

  .subMap_mapWrap .root_daum_roughmap .wrap_map {
    border: 2px solid var(--main);
    border-top: 0;
    aspect-ratio: 4/2.5;
  }

  .text-content {
    aspect-ratio: auto;
    padding-left: 0;
    margin-top: calc(var(--margin-lg) * 2);
  }
  .text-content:first-of-type {
    margin-top: 0;
  }
  .mb-img-item {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: 100%;
    margin-top: var(--margin-sm);
  }

  #imDotList .dot-list li {
    opacity: 1;
    animation: none;
    flex-direction: row;
    background: white;
    padding: 3rem;
    border-radius: 10px;
  }
  #imDotList {
    background: var(--base);
  }

  .rehabImg {
    flex-wrap: wrap;
    > div {
      flex: 1 1 calc((100% - 1.2rem) / 2);
      max-width: calc((100% - 1.2rem) / 2);
    }
  }

  .departCtaList {
    grid-template-columns: repeat(3, 1fr);
  }
  .departCtaList li {
    border-radius: 16px;
  }
  .departCtaList li:hover {
    border-bottom-right-radius: unset;
  }

  .lineTabList {
    gap: 1rem;

    li {
      border: 1px solid var(--gray50);
    }
    li.on {
      border-bottom: 0;
      background: var(--black100);
      color: white;
      border: 1px solid var(--black100);
    }
  }

  #swiperPg ul.flex-col4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .accidentAfCon {
    background: url(../img/m-aa-img1.jpg) no-repeat left / cover;
    gap: var(--margin-md);
  }
  .accidentAfList {
    margin-right: 0 !important;
    margin-left: auto;
    width: 60%;
  }

  .goalCon {
    flex-direction: column;
    gap: 4rem;
  }
  .goalBox {
    width: 100%;
  }
  .goal-list {
    flex-direction: column;
    gap: 2rem;
  }
  .goal-list li {
    width: 100%;
    aspect-ratio: unset;
    border-radius: 100px;
    border: 0;
    background: white;
    flex-direction: row;
    justify-content: left;
  }
  .be-line {
    display: none;
  }
  #goal .right-box {
    width: 100%;
    aspect-ratio: unset;

    > div {
      border-radius: 100px;
      box-shadow: none;
    }
  }
  #goal .right-box::before,
  #goal .right-box::after {
    content: none;
  }
  .be-arrows {
    width: 60px;
    height: 72px;
    transform: translateY(25%);
  }
  .be-arrows path {
    stroke: var(--gray50);
    fill: transparent;
    stroke-width: 2px;
    animation: arrow 2s infinite;
    -webkit-animation: arrow 2s infinite;
  }
  @keyframes arrow {
    0% {
      opacity: 0;
    }
    40% {
      opacity: 1;
    }
    80% {
      opacity: 0;
    }
    100% {
      opacity: 0;
    }
  }
  @-webkit-keyframes arrow {
    0% {
      opacity: 0;
    }
    40% {
      opacity: 1;
    }
    80% {
      opacity: 0;
    }
    100% {
      opacity: 0;
    }
  }
  .be-arrows path.a1 {
    animation-delay: -1s;
    -webkit-animation-delay: -1s;
  }
  .be-arrows path.a2 {
    animation-delay: -0.5s;
    -webkit-animation-delay: -0.5s;
  }
  .be-arrows path.a3 {
    animation-delay: 0s;
    -webkit-animation-delay: 0s;
  }

  .tgList li {
    padding: var(--margin-sm);
  }
}
/* 끝-주요 반응형 Rmx */

@media screen and (max-width: 580px) {
  #ft_wrap .ms6_time {
    flex-direction: column;
    padding: 0;
  }
  #ft_wrap .center {
    justify-content: stretch;
    padding: 3rem;
  }
  #ft_wrap .ms6_time > div:last-of-type {
    border-left: 0;
    border-top: 1px solid var(--gray50);
  }

  #mainSec3_con {
    flex-direction: column;
    gap: var(--margin-md);
  }
  #mainSec3_con > div {
    padding: 0 !important;
    border: 0 !important;
  }
  .mainSec3_text {
    width: 100%;
  }

  .mainSec6_con .ms6_time,
  .ms6_consult {
    flex-direction: column;
  }
  .mainSec6_con .ms6_time > div {
    padding-top: var(--margin-sm);
  }
  .mainSec6_con .ms6_consult_tit {
    width: 100%;
    margin-bottom: var(--margin-sm);
  }

  #ms7_con {
    grid-template-columns: repeat(1, 1fr);
  }

  .subNav > div:not(.subNavH) {
    font-size: var(--label);
  }

  .subMapBtn {
    flex-direction: column;
  }

  .departCtaList {
    grid-template-columns: repeat(1, 1fr);

    li {
      aspect-ratio: unset;
    }
    li a {
      display: flex;
      flex-direction: row;
      justify-content: unset;
      gap: 2rem;
      padding: 2rem var(--margin-md);
    }
    li .icon {
      margin: 0;
    }
    li h4 {
      text-align: left;
    }
  }

  .rehabPg {
    flex-direction: column;
  }
  .rehabPgL {
    width: 100%;
    padding: var(--margin-sm) 0;
    color: var(--main);
  }
  .rehabPgR {
    width: 100%;
  }

  .drawLine {
    left: 0%;
  }
  .targetConWrap {
    grid-template-columns: 1fr;
    padding-left: 10%;
  }
  .targetCon:not(:first-of-type) {
    margin-top: var(--margin-lg) !important;
  }
}
