/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  transition: 0.2s;
}

/* 커스텀 */
html {
  font-size: 62.5%;
  overflow-x: hidden;
}
body {
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  line-height: 1.4;
  color: #333;
  word-break: keep-all;
  overflow-x: hidden;
}
:root {
  --maincolor: #19a3a4;
  --subcolor: #0b6d6a;
  --pointcolor: #2fd7d8;
  --base: #f8f8f8;
  --gray: #acb4bc;
  --ggray: #73737d;
  --gray-border: rgba(173, 181, 189, 0.3);
  --shadow: rgba(0, 0, 0, 0.16);
}
p {
  font-size: 1.6rem;
  color: var(--ggray);
}
.d-none {
  display: none;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-i {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.bold {
  font-weight: bold;
}
.t-center {
  text-align: center;
}
.inner {
  width: 132rem;
  margin: 0 auto;
  padding: 16rem 20px;
}
i {
  padding-top: 2px;
}
.sec-cate {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--maincolor);
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.sec-title {
  font-size: 4.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #333;
}
.sec-title-sub {
  font-size: 0.60em;
  font-weight: 600;
  color: #666;
}
.sec-h-wrap {
  margin-bottom: 6rem;
}
.main-btn {
  background: var(--maincolor);
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1.2rem 2.6rem;
  border-radius: 100px;
  color: white;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}
.main-btn:hover,
.sub-btn:hover {
  background: var(--subcolor);
}
.sub-btn {
  background: var(--maincolor);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 100px;
  color: white;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

/* 헤더 */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  width: 100%;
  height: 8rem;
  border-bottom: 1px solid #ffffff50;
  color: #fff;
  position: fixed;
  z-index: 100;
  transition: all 0.3s ease-in-out;

  .logo img {
    filter: brightness(0) invert(1);
    width: 18rem;
  }
}
#header.active {
  background: #fff;
  box-shadow: 0 4px 12px var(--shadow);
  color: inherit;

  .logo img {
    filter: none;
  }
}
#header nav {
  padding: 0 2rem;
  margin-left: 4rem;
}
.hd-nav-list {
  display: flex;
  gap: 2rem;
  font-size: 15px;
}
.hd-nav-list li {
  position: relative;
  transition: all 0.2s ease-in-out;
}
.hd-nav-list li:hover {
  color: var(--maincolor);
}
.hd-sub-menu {
  position: fixed;
  top: 60px;
  background: var(--maincolor);
  padding: 0px 30px 20px 30px;
  color: #ffffffcc;
  border-radius: 10px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s ease-in-out;
  transform: translateY(-10px);

  &.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
  }
}
.hd-sub-menu li {
  padding-top: 20px;
}
.hd-sub-menu li:hover {
  color: #fff;
}

#menu-all-btn {
  margin-left: auto;
}
.toggle-menu {
  background: var(--maincolor);
  border: 0;
  cursor: pointer;
  display: inline-block;
  height: 4.8rem;
  width: 4.8rem;
  border-radius: 100px;
  padding: 0;
  pointer-events: initial;
  position: relative;
  vertical-align: middle;

  span {
    background-color: #fff;
    content: "";
    display: block;
    height: 2px;
    position: absolute;
    left: calc(50% - 10px);
    top: calc(50% - 1px);
    transform-origin: 50% 50%;
    transition: background-color 0.2s ease-in-out, top 0.2s 0.2s ease-out,
      transform 0.2s linear;
    width: 20px;

    &:before,
    &:after {
      background-color: #fff;
      content: "";
      display: block;
      height: 2px;
      position: absolute;
      transform-origin: 50% 50%;
      transition: background-color 0.2s ease-in-out, top 0.2s 0.2s ease-out,
        transform 0.2s linear;
      width: 20px;
    }

    &:before {
      top: 7px;
    }

    &:after {
      top: -7px;
    }
  }

  &.active {
    span {
      background-color: transparent;
      transition: background 0.2s ease-out;

      &:before,
      &:after {
        transition: top 0.2s ease-out, transform 0.2s 0.2s ease-out;
      }

      &:before {
        top: 0;
        transform: rotate3d(0, 0, 1, -45deg);
      }

      &:after {
        top: 0;
        transform: rotate3d(0, 0, 1, 45deg);
      }
    }
  }
}
#menu-all {
  background: #fff;
  box-shadow: -6px 0 12px var(--shadow);
  height: 100vh;
  width: 85%;
  max-width: 480px;
  right: 0;
  opacity: 0;
  overflow: auto;
  position: fixed;
  top: 8rem;
  z-index: 11;
  transition: all 0.3s ease-in-out;
  visibility: hidden;
  padding: 1rem 4rem;
  transform: translateX(40px);

  &.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0px);

    @for $i from 1 through 10 {
      li:nth-child(#{$i}) {
        animation-delay: $i * 0.1s;
      }
    }

    li {
      animation-duration: 1s;
      animation-fill-mode: both;
      animation-name: fadeInUp;
    }
  }

  ul {
    &:hover {
      a {
        opacity: 0.7;
      }
    }

    a {
      transition: opacity 0.3s ease-in-out;
      &:hover {
        opacity: 1;
        color: var(--subcolor);
      }
    }
  }

  #all-nav {
    position: relative;
    top: 50%;
    transform: translateY(-50%);

    ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    a {
      display: block;
      font-size: 2rem;
      font-weight: 600;
      padding: 1rem 1rem;
      text-decoration: none;
      &:first {
        padding-top: 0;
      }
    }
  }
}

.all-nav-list > li {
  font-size: 2rem;
  font-weight: 600;
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-border);
  position: relative;
  width: 100%;
}
.all-nav-list > li a {
  display: block;
  width: 100%;
}
.all-sub-cm > a {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}
.all-nav-list .sub-menu {
  font-size: 16px;
  font-weight: 400;
  line-height: 200%;
  margin-top: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  transform: translateY(-10px);
  position: absolute;

  &.open {
    opacity: 1;
    transform: translateY(0px);
    visibility: visible;
  }
}
.all-sub-menu-wrap {
  transition: all 0.3s;
}
.all-sub-menu-wrap.active {
  padding-bottom: 74px;
}
.all-sub-menu-btn {
  font-weight: 400;
  color: var(--gray);
  transition: all 0.3s ease-in-out;
  padding: 2px;
}
.all-sub-menu-btn.active {
  transform: rotate(-180deg);
}
.all-nav-footer {
  display: flex;
  gap: 3rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  padding: 2rem 0;
}
#menu-all > nav {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  height: calc(100% - 80px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* 메인-비주얼 */
#main-visual {
  width: 100%;
  height: 100vh;
  min-height: 80rem;
  max-height: 92rem;
  position: relative;
  overflow: hidden;

  .swiper-pagination {
    text-align: unset;
    position: static;
    margin-top: 4rem;
  }
  .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
    transition: all 0.3s ease-in-out;
    border-radius: 50px;
  }
  .swiper-pagination-bullet-active {
    width: 24px;
    background: var(--pointcolor);
    opacity: 1;
  }
}
.mainSwiper {
  height: 100%;
  position: absolute;
  z-index: -1;

  .swiper-wrapper,
  .swiper-slide {
    height: 100%;
  }
  .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
.bg-v-over {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.main-v-text {
  position: absolute;
  top: 50%;
  left: 32rem;
  z-index: 1;
  transform: translateY(-50%);
  padding-right: 2rem;

  > * {
    color: white;
    text-shadow: 0 3px 10px var(--shadow);
  }
  p.sec-cate {
    color: var(--pointcolor);
  }
  .main-v-sg {
    font-size: 5rem;
    line-height: 1.3;
    margin-bottom: 4rem;
  }
  .main-v-dt {
    width: 60%;
    font-size: 2rem;
  }
}

#main-depart {
  background: url(../img/main-clinic-bg.jpg) no-repeat center / cover;
  position: relative;
  border-bottom-left-radius: 28rem;

  .sec-h-wrap {
    position: static;
    text-align: left;
    flex-shrink: 0;
  }
  .sec-h-wrap .sec-cate,
  .sec-h-wrap .sec-title {
    text-align: left;
  }

  #main-v-info {
    position: absolute;
    display: flex;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background: white;
    width: 132rem;
    border-radius: 2rem;
    box-shadow: 0 3px 10px var(--shadow);

    li {
      flex: 1;
      padding: 4rem 5rem;

      > * {
        color: #333;
      }
      h2 {
        color: #333;
      }
      .v-info-li-plus {
        color: var(--ggray);
        font-size: 14px;
      }
      p {
        display: flex;
        margin-bottom: 6px;
      }
      p > span {
        display: block;
        width: 90px;
        font-weight: bold;
      }
      .sub-btn {
        color: white;
        margin-top: 10px;
      }
    }
    li:nth-of-type(1) {
      background: var(--subcolor);
      border-radius: 1rem;
      margin: 0;

      > * {
        color: white;
      }
      h2 {
        color: var(--pointcolor);
      }
    }
    li:nth-of-type(3) {
      border-left: 2px solid var(--base);
      padding: 0 5rem;
      margin: 4rem 0;
    }
  }
}
#main-depart > .inner {
  padding-top: 27rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}
#main-depart .main-v-services {
  margin: 0;
  margin-left: auto;
  flex-shrink: 0;
  width: 70rem;
  max-width: 100%;
}
.main-v-services {
  gap: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.main-v-services li {
  aspect-ratio: 1;
  background: #fff;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 2px 4px 12px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  img {
    max-width: 80%;
    height: auto;
    object-fit: contain;
  }

  p {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
  }
}
.main-v-services li:nth-child(1) {
  grid-row: 1;
  grid-column: 1;
}
.main-v-services li:nth-child(2) {
  grid-row: 1;
  grid-column: 2;
}
.main-v-services li:nth-child(3) {
  grid-row: 1;
  grid-column: 3;
}
.main-v-services li:nth-child(n + 4) {
  grid-row: 2;
}

/* 메인-클리닉 */
.main-clinic-item {
  display: flex;
  justify-content: space-between;
  gap: 2rem;

  li {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 32rem;
    border-radius: 1rem;
    overflow: hidden;
  }
  li > a > * {
    position: absolute;
    bottom: 0;
  }
  li:nth-of-type(even) {
    margin-top: 6rem;
  }
  li:hover img {
    scale: 120%;
  }
  li:hover .sub-btn {
    background: var(--subcolor);
  }
  .main-clinic-item-img {
    width: 100%;
    height: 100%;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all 0.3s ease-in-out;
    }
  }
  .main-clinic-item-over {
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, black, rgba(0, 0, 0, 0));
  }
  .main-clinic-item-info {
    color: white;
    flex-direction: column;
    inline-size: 100%;
    padding-bottom: 2rem;
    h4 {
      font-size: 2rem;
      font-weight: bold;
      margin-bottom: 6px;
      text-align: center;
    }
  }
}

/* 메인-소개 */
.main-about {
  background: url(../img/main-about-bg.jpg) no-repeat center / cover;
  will-change: transform;
  position: relative;

  .sec-h-wrap {
    > * {
      color: white;
    }
    > .sec-cate {
      color: var(--pointcolor);
    }
    > p {
      width: 45%;
      margin-bottom: 6rem;
      margin-top: 4rem;
    }
  }
  .main-btn {
    background: white;
    color: #333;
  }
  .main-btn:hover {
    background: #333;
    color: white;
  }
  #about-logo {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(10%, -10%);
    mix-blend-mode: overlay;
    opacity: 0.8;
    opacity: 0.5;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}
.main-about::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background: #333;
  opacity: 0.6;
  z-index: -1;
}

/* 메인-시설사진 슬라이드 */
.mySwiper2 {
  border-radius: 2rem;
  aspect-ratio: 16 / 9;
  width: min(100%, 104rem);

  .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .swiper-button-next,
  .swiper-button-prev {
    color: #fff;
    padding: 1rem;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
  }
}
.mySwiper {
  margin-top: 2rem;
  width: min(100%, 104rem);
  /* display: none; */

  .swiper-slide {
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    background: var(--base);

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1.2);
      transition: transform 0.5s ease, opacity 0.5s ease;
    }
  }
}
.mySwiper .swiper-slide:not(.swiper-slide-thumb-active) img {
  transform: scale(1);
  opacity: 0.5;
}

/* 오시는길 */
#directions .flex {
  display: flex;
  justify-content: space-between;
}
#directions .sec-h-wrap > p {
  font-size: 2.4rem;
  margin-top: -1rem;
}
.map-btn {
  display: flex;
  gap: 10px;
  max-height: 52px;
  justify-self: right;
  margin-bottom: 2rem;
  margin-top: -2rem;

  button {
    background: var(--ggray);
  }
  button:hover {
    background: #333;
  }
}
.directions-wrap {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
}
.direction-info {
  width: 50%;
  font-size: 16px;
  .direction-info-ulul {
    display: flex;
    column-gap: 2rem;
    row-gap: 1rem;
    flex-wrap: wrap;
    .direction-info-ulul-li1 span {
      color: white;
      font-size: 14px;
      padding: 2px 6px;
      border-radius: 50px;
      font-weight: 600;
      margin-right: 3px;
    }
    .direction-info-ulul-li2 {
      display: flex;
      gap: 3px;
      span {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        width: 22px;
        height: 22px;
        border: 1px solid #333;
        border-radius: 50px;
        text-align: center;
        line-height: 20px;
      }
    }
  }
}
#directions .direction-map {
  width: 50%;
}
.direction-info > li {
  width: 86%;
  padding: 3rem;
}
#directions .direction-info > li:not(:first-child) {
  border-top: 1px solid var(--gray-border);
}
.direction-info li > h4 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.direction-info li > h4 i {
  color: var(--subcolor);
  font-size: 2.8rem;
  font-weight: 500;
}
.root_daum_roughmap .wrap_controllers,
.root_daum_roughmap .cont .section {
  display: none;
}
.root_daum_roughmap .wrap_btn_zoom {
  z-index: 10 !important;
}
.root_daum_roughmap {
  width: 100% !important;
  border-radius: 1rem;
}
#directions .root_daum_roughmap .wrap_map {
  width: 100% !important;
  aspect-ratio: 1 !important;
}
.wrap_map {
  width: 100%;
  position: relative;
}
.wrap_map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* 푸터 */
#scrollTopBtn {
  position: fixed;
  bottom: 4%;
  right: 3%;
  width: 6rem;
  height: 6rem;
  background: #333;
  border-radius: 100px;
  border: 2px solid var(--base);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  svg {
    color: var(--base);
    transform: rotate(90deg);
  }
}
@keyframes bounceUp {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

#scrollTopBtn:hover {
  animation: bounceUp 0.6s ease-in-out;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

footer {
  background: #333;
  color: #fff;
  font-size: 14px;
}
.ft-wrap {
  max-width: 132rem;
  margin: 0 auto;
  padding: 4rem 20px;
  display: flex;
  justify-content: space-between;
}
.ft-info img {
  filter: brightness(0) invert(1);
  height: 40px;
  margin-bottom: 2rem;
}
.ft-info {
  width: 50%;
}
.ft-info-list li {
  display: inline-block;
  opacity: 0.7;
  margin: 0.6rem 0.6rem 0 0;
}
.ft-menu {
  display: flex;
  gap: 2rem;
  font-weight: 700;
}
.ft-copy-wrap {
  border-top: 1px solid var(--gray);
  padding: 20px 0;
}
footer p {
  max-width: 132rem;
  padding: 0 20px;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  opacity: 0.7;
}

/* 서브 */
#sub-visual {
  min-height: 40rem;
  padding-top: 6rem;
  background-attachment: fixed;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sub-visual-over {
  width: 100%;
  height: 100%;
  background: #333;
  opacity: 0.5;
  position: absolute;
  top: 0;
  left: 0;
  mix-blend-mode: multiply;
}
.page-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 14px;
  margin-bottom: 2rem;
}
.page-nav i {
  font-size: 20px;
  opacity: 0.6;
}
.page-nav i:first-child {
  opacity: 1;
}
#sub-visual * {
  color: #fff;
  text-shadow: 0px 2px 6px var(--shadow);
}
#sub-visual *:not(:first-child) {
  z-index: 10;
}
#sub-visual h2 {
  font-size: 6rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
#sub-visual p {
  font-size: 1.8rem;
  font-weight: 500;
}

/* 서브-의원소개 */
.about-visual {
  background: url("../img/sub1-hero.jpg") no-repeat bottom / cover;
}
.main-about ul {
    font-size: 16px;
    line-height: 2.4;
    color: white;
    list-style: disc inside;
}
.sub-about-content-wrap {
    position: relative;
    p {width: 45%;}
    .sub-about-hero {
        width: 45%;
        aspect-ratio: 3/4;
        border-radius: 2rem;
        overflow: hidden;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 1;
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}
.main-about-text {
    font-size: 11rem;
    line-height: 1;
    font-weight: 600;
    color: white;
    mix-blend-mode: overlay;
    text-transform: uppercase;
    position: absolute;
    transform: translateY(18%) !important;
    width: 100%;
    padding-top: 4rem;
    white-space: nowrap;
}

/* 서브-일반진료 */
.general-visual {
  background: url("../img/sub2-hero.jpg") no-repeat bottom / cover;
}
.sub-depart-list {
  display: flex;
  gap: 4rem;
}
.sub-depart-list.sdl-re {
  flex-direction: row-reverse;
}
.sub-depart-list:not(:last-child) {
  margin-bottom: 8rem;
}
.sub-depart-list > * {
  width: 50%;
  min-height: 38rem;
  max-height: 42rem;
}
.sub-depart-list-img {
  border-radius: 20px;
  overflow: hidden;
}
.sub-depart-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sub-depart-list-text {
  padding: 0 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sub-depart-cate {
  font-size: 1.6rem;
  color: var(--gray);
  margin-bottom: 2rem;
}
.sub-depart-cate span {
  color: var(--subcolor);
}
.sub-depart-list-text .sub-depart-bullet {
  margin-top: 1.5rem;
  padding-left: 2rem;
  font-size: 1.6rem;
  line-height: 1.8;
}
.sub-depart-list-text .sub-depart-bullet li {
  margin-bottom: 0.8rem;
}
.sub-depart-list-text .sub-depart-bullet li:last-child {
  margin-bottom: 0;
}

/* 서브-중점진료 */
.special-visual {
  background: url("../img/sub3-hero.jpg") no-repeat bottom / cover;
}
.sub-depart-list-plus {
  margin-top: 2rem;
  font-size: 1.6rem;

  h4 {
    font-weight: bold;
    margin-bottom: 2px;
    & span {
      color: var(--subcolor);
    }
  }
  button {
    font-size: 14px;
    border-bottom: 1px solid;
    padding-bottom: 2px;
    font-weight: 600;
    margin-top: 1rem;
  }
}
.sdlp1 {
  padding: 2rem;
  background: var(--base);
  border-radius: 1rem;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  z-index: 101;
  width: 85%;
  max-width: 132rem;
  /* max-height: 720px; */
  overflow: hidden;
  border-radius: 3rem;
  box-shadow: 2px 4px 20px var(--shadow);
  background: #fff;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;

  .popup-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-border);
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem 2rem;
    flex-shrink: 0;

    .popup-close {
      font-size: 2.4rem;
      color: var(--gray);
      padding: 1rem;
    }
  }

  .popup-wrap {
    flex: 1;
    overflow: auto;
    padding: 2rem;
    width: 100%;
    aspect-ratio: 16/9;

    img {
      width: 100%;
      height: auto;
    }
    iframe {
      width: 100%;
      height: 99%;
    }
  }
}
.popup.on {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%);
}
body.no-scroll {
  overflow: hidden;
}

/* 서브-클리닉 */
.sub-c-visual {
  background: url("../img/subC-hero.jpg") no-repeat bottom / cover;
}

#ob-hero {
  width: calc(100% - 16rem);
  margin: 8rem auto;
  border-radius: 4rem;
  transition: all 0.3s ease-in-out;

  & .sec-title span {
    color: var(--maincolor);
  }
  .clinic-hero-sg {
    color: var(--maincolor);
    font-size: 2.4rem;
    font-weight: 600;
  }
  & .inner > p {
    width: 45%;
    margin-top: -2rem;
  }
}
#ob-hero.ob-hero1 {
  background: url("../img/sub4-sec-bg.jpg") no-repeat center / cover;
}
#ob-hero.ob-hero2 {
  background: url("../img/sub5-sec-bg.jpg") no-repeat center / cover;
}
#ob-hero.ob-hero3 {
  background: url("../img/sub6-sec-bg.jpg") no-repeat center / cover;
}
#ob-hero.ob-hero4 {
  background: url("../img/sub7-sec-bg.jpg") no-repeat center / cover;
}
#ob-hero.ob-hero5 {
  background: url("../img/sub8-sec-bg.jpg") no-repeat center / cover;
}
#ob-hero.active {
  width: 100%;
  margin: 0 auto;
  border-radius: 0;
}
.ob-hero-point {
  margin-top: 12rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;

  & li {
    background: #ffffffd8;
    padding: 3rem;
    box-shadow: 2px 4px 10px var(--shadow);
    border-radius: 10px;

    .ob-hero-p-icon {
      background: rgba(157, 206, 41, 0.2);
      width: 50px;
      height: 50px;
      border-radius: 50px;
      margin-bottom: 2rem;
    }
    & p:nth-of-type(1) {
      font-size: 2rem;
      font-weight: bold;
      margin-bottom: 8px;
      color: #333;
    }
  }
}
.ob-pc-ac {
  margin-bottom: 16rem;
  &:last-child {
    margin-bottom: 0;
  }

  & .sec-h-wrap {
    text-align: center;
  }
  & .sub-depart-list-text {
    h3 {
      font-size: 2.4rem;
      font-weight: bold;
      margin-bottom: 2rem;

      & span {
        font-size: 1.6rem;
        padding: 4px 10px;
        background: var(--subcolor);
        color: #fff;
        border-radius: 100px;
        display: inline-block;
        vertical-align: middle;
        margin-right: 1rem;
      }
    }
    .sub-clinic-info-circle {
      margin-top: 2rem;
      display: flex;
      font-size: 1.6rem;
      font-weight: 700;

      li {
        border: 2px solid var(--subcolor);
        border-radius: 100px;
        width: 12rem;
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        text-align: center;
        justify-content: center;
        position: relative;
      }
      li:not(:last-child)::after {
        content: "⨉";
        position: absolute;
        right: 0;
        z-index: 1;
        transform: translateX(50%) rotate(45deg);
        background: var(--maincolor);
        width: 26px;
        height: 26px;
        font-size: 18px;
        border-radius: 20px;
        color: #fff;
      }
    }
    .sub-clinic-info-list {
      li {
        font-size: 1.6rem;
        line-height: 220%;
        position: relative;
        padding-left: 30px;
      }
      li::before {
        content: "";
        width: 20px;
        height: 20px;
        background: url("../img/list-style.png") no-repeat center / cover;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
      }
    }
  }
}
.ob-pc-step3-detail {
  background: var(--base);
  border-radius: 3rem;
  padding: 4rem;
  text-align: center;

  & h4 {
    font-size: 2.4rem;
    font-weight: bold;
  }
  & ul {
    margin-top: 4rem;
    display: flex;
    gap: 4rem;

    & li {
      width: 50%;
      text-align: left;
      & img {
        width: 100%;
        border-radius: 1rem;
        margin-bottom: 2rem;
        box-shadow: 2px 4px 10px var(--shadow);
      }
      & p {
        padding: 0 2rem;
      }
      & p:nth-of-type(1) {
        font-size: 2.4rem;
        font-weight: bold;
        color: #333;
        margin-bottom: 1rem;
      }
    }
  }
}
.ob-pc3-list {
  display: flex;
  gap: 4rem;
  justify-content: space-between;

  & li {
    width: 33.333%;
    & > img {
      width: 100%;
      aspect-ratio: 16/9;
      border-radius: 1rem;
    }
    & > div {
      padding: 2rem;
      & > h4 {
        font-size: 2.4rem;
        font-weight: bold;
        margin-bottom: 1rem;
      }
    }
  }
}
.ob-pc3-detail {
  margin-top: 6rem;
  background: var(--base);
  padding: 4rem;
  border-radius: 1rem;
  & p {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #333;
  }
  & ul li {
    font-size: 1.6rem;
    line-height: 200%;
  }
}
#sub-clinic-faq {
  background: linear-gradient(to bottom, var(--base), white);

  .inner {
    display: flex;
    > * {
      flex: 1;
    }
  }
  ul {
    border-top: 2px solid var(--ggray);
    border-bottom: 2px solid var(--ggray);

    li {
      border-bottom: 1px solid var(--gray);
    }
    li > div {
      display: flex;
      align-items: center;
      gap: 1.6rem;
      padding: 2.4rem;
    }
    .faq-head {
      font-size: 3rem;
      font-weight: bold;
      color: var(--maincolor);
    }
    .faq-q {
      cursor: pointer;
      p {
        font-weight: 600;
      }
    }
    .faq-q:hover {
      background: var(--base);
    }
    .faq-a {
      height: 0;
      padding: 0 2.4rem;
      opacity: 0;
      transition: all 0.2s ease-in-out;
      .faq-head {
        color: #333;
      }
    }
    .faq-a.active {
      height: fit-content;
      padding: 2.4rem;
      opacity: 1;
      border-top: 1px dotted var(--gray);
    }
    .faq-more {
      font-size: 24px;
      margin-left: auto;
      transform: rotate(180deg);
      transition: all 0.3s ease-in-out;
    }
    .faq-more.active {
      transform: rotate(0);
    }
  }
}

/* 서브-탭메뉴 */
#child-tab {
  position: absolute;
  bottom: 0;
  background: #fff;
  display: flex;
  transform: translateY(50%);
  padding: 1.4rem 2.4rem;
  box-shadow: 2px 4px 10px var(--shadow);
  border-radius: 1rem;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;

  & li {
    padding: 1rem 0;
    text-shadow: none;
  }
  & li a {
    color: var(--ggray);
    font-size: 2rem;
    font-weight: 700;
    padding: 0 3rem;
    transition: all 0.2s ease-in-out;
    text-shadow: none;
  }
  & li:not(:first-child) {
    border-left: 1px solid var(--gray-border);
  }
  & li.active a {
    color: var(--maincolor);
  }
  & li:hover a {
    color: var(--maincolor);
  }
}

/* 서브-오시는길 */
.direct-visual {
  background: url("../img/sub9-hero.jpg") no-repeat bottom / cover;
}
.sub-dr-title-wrap {
  margin-top: 4rem;

  & .sub-dr-title > p {
    font-size: 2.4rem;
    color: var(--ggray);
    font-weight: 500;
    margin-top: -1.6rem;
  }
}
#sub-direct-detail {
  .direction-info {
    margin-top: 4rem;
    width: 100%;

    > li {
      width: 100%;
      padding: 3rem 0;
      border-top: 1px solid var(--gray-border);
      display: flex;

      h4 {
        flex: 1;
      }
      ul {
        flex: 3;
      }
    }
  }
  .map-btn {
    margin-top: 2rem;
  }
}

/* 서브-비급여안내 */
.nci-visual {
  background: url("../img/sub10-hero.jpg") no-repeat bottom / cover;
}
#nci-table {
  text-align: center;

  table {
    width: 100%;
  }
  thead {
    background: var(--subcolor);
    color: white;
    font-size: 2rem;
    font-weight: 700;
  }
  thead th {
    padding: 2rem 0;
  }
  tbody .td_title {
    background: var(--base);
    color: var(--subcolor);
    font-size: 2rem;
    font-weight: bold;
    vertical-align: middle;
  }
  tbody {
    border-bottom: 3px solid var(--gray-border);
  }
  td {
    padding: 1.4rem 0;
    border-left: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
    vertical-align: middle;
    font-size: 1.6rem;
  }
}
#nci-table td.td_title {
  border-left: 0;
}

/* 커뮤니티 게시판 */
.board-visual {
  background: url("../img/sub11-hero.jpg") no-repeat bottom / cover;
}

/* 개인정보처리방침+이용약관 */
#use {
  padding-top: 8rem;
}
.use-tab {
  display: flex;
  gap: 2rem;
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 6rem;

  li.active {
    color: var(--maincolor);
  }
}
.use-detail {
  font-size: 1.6rem;

  h2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
  }
  h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  hr {
    margin: 3rem 0;
    opacity: 0.3;
  }
  ul {
    list-style: disc inside;
    padding-left: 1rem;
    line-height: 180%;
  }
}

/* 예약 및 상담 */
#consult {
  padding: 8rem;
}
.consult-bg {
  background: url("../img/consult-bg.jpg") no-repeat center / cover;
  position: relative;
  border-radius: 2rem;

  .inner {
    padding: 10rem 4%;
  }
  > div {
    position: relative;
    p {
      font-size: 2rem;
    }

    #consult-nb {
      font-size: 6rem;
      font-weight: bold;
      color: #333;
      margin-bottom: 2rem;
      i {
        background: var(--maincolor);
        color: white;
        font-weight: 400;
        font-size: 4rem;
        padding: 1rem;
        border-radius: 100px;
      }
    }
    .consult-hero {
      position: absolute;
      bottom: 0;
      right: 0;
      img {
        display: block;
        width: 90%;
      }
    }
  }
}
.consult-bg::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background: var(--maincolor);
  opacity: 0.5;
  mix-blend-mode: overlay;
  border-radius: 2rem;
}

/* 페이지준비중 */
#paging {
  height: 100vh;
  .sec-h-wrap {
    text-align: center;
    margin-bottom: 0;
  }
  h2 {
    margin-top: 4rem;
  }
}

/* 팝업 */
#hd_pop {
    position: absolute;
    top: 50%;
    left: 80%;
    transform: translate(-80%, -50%);
    z-index: 111;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);

    h2 {display: none;}
    .hd_pops_con p {
        font-size: 0;
    }
    .hd_pops_con a {
        width: 100%;
        height: 100%;
        display: block;
    }
    .hd_pops_con img {
        width: 100%;
    }
    .hd_pops_footer {
        background: white;
        display: flex;
        justify-content: space-between;
        padding: 10px;
    }
    .hd_pops_close i{
        font-weight: bold;
    }
    .sound_only {
        display: none;
    }
}

/* 반응형 */
@media (max-width: 1440px) {
  .inner {
    width: 100%;
    padding: 16rem 4%;
  }
  #main-depart #main-v-info {
    width: calc(100% - 8%);
  }
  #consult {
    padding: 6rem 4%;
  }
  .ft-wrap {
    width: 100%;
    padding: 4rem 4%;
  }
  footer p {
    padding: 0 4%;
  }

  #ob-hero {
    width: calc(100% - 12rem);
  }
}

@media (max-width: 1280px) {
  .main-v-text {
    left: 4% !important;
  }
  .main-v-services li {
    padding: 2rem;
    p {
      font-size: 16px;
    }
  }
  #about-logo {
    width: 50%;
  }
  #about p {
    width: 80%;
  }
}

@media (max-width: 1024px) {
  html {
    font-size: 58%;
  }
  .main-v-logo img {
    width: 70%;
  }
  #main-depart {
    #main-v-info {
      li p {
        display: block;
      }
    }
  }
  #directions .flex {
    flex-direction: column;
  }
  .directions-wrap {
    flex-direction: column-reverse;

    > * {
      width: 100% !important;
    }
    #directions .direction-map {
      width: 100% !important;
    }
  }
  #directions .root_daum_roughmap .wrap_map,
  .wrap_map {
    height: inherit !important;
    aspect-ratio: 16 / 9 !important;
  }
  .consult-hero {
    display: none;
  }
  .consult-bg .inner {
    padding: 6rem 8%;
    p {
      font-size: 1.6rem;
    }
    #consult-nb {
      font-size: 4rem;
      i {
        font-size: 3rem;
      }
    }
  }

  .sub-dr-title-wrap {
    flex-direction: column;
    gap: 3rem;
  }
  .main-about-text {font-size: 8rem;}
}

@media (max-width: 768px) {
  #header nav {
    display: none;
  }
  .inner {
    padding: 10rem 4%;
  }
  .sec-h-wrap {
    margin-bottom: 4rem;
  }
  #main-visual .bg-v-over {
    background: black;
    opacity: 0.4;
  }
  .main-v-text p.sec-cate {
    font-size: 2.0rem;
  }
  .main-v-text .main-v-sg {
    font-size: 3.8rem;
    line-height: 1.4;
  }
  .main-v-dt {
    width: 80% !important;
    font-size: 1.8rem;
  }
  #main-depart {
    border-bottom-left-radius: 10rem;
  }
  #main-depart > .inner {
    padding-top: 10rem;
    display: block;
  }
  #main-depart #main-v-info {
    flex-direction: column;
    width: calc(100% - 8%);
    margin: 10rem auto;
    position: static;
    transform: none;
    li p {
      display: flex;
    }
    li {
      padding: 3rem 4rem;
    }
    li:nth-of-type(3) {
      border-left: 0;
      border-top: 2px solid var(--base);
      padding: 3rem 0;
      margin: 0 4rem;
    }
  }
  #main-depart .sec-h-wrap {
    position: static;
  }
  .main-v-services {
    grid-template-columns: 1fr;
    gap: 1rem;
    li {
      grid-row: unset !important;
      grid-column: unset !important;
      padding: 1.4rem;
      aspect-ratio: auto;
      img {
        max-width: 60%;
      }
    }
  }
  #main-clinic .main-clinic-item {
    display: flex;
    flex-direction: column !important;
    gap: 2rem;
  }
  #main-clinic .main-clinic-item > li {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    margin-top: 0 !important;
  }
  .about-flex {
    display: block;
    > * {
      width: 100%;
    }
  }
  .main-img-wrap1 {
    display: none;
  }
  .main-img-wrap2 {
    margin-bottom: 14rem;
    width: 100%;
    border-radius: 0;
    height: inherit;
    aspect-ratio: 16 / 9;
  }
  .sec-cate {
    font-size: 2.2rem;
  }
  .sec-title {
    font-size: 3.6rem;
  }
  #clinic-info {
    border-radius: 0;
  }
  .info-item-wrap {
    grid-template-columns: 1fr;
  }
  .info-item {
    min-height: auto;
  }
  .info-item-img {
    display: none;
  }
  .info-item-img img {
    width: 100px;
  }
  .ft-wrap {
    flex-direction: column;
    gap: 3rem;

    .ft-info {
      width: 100%;
    }
  }

  #sub-visual {
    min-height: 32rem;
    h2 {
      font-size: 4rem;
    }
    p {
      font-size: 1.6rem;
    }
    background-attachment: scroll;
    background-position: center;
    .page-nav {
      margin-bottom: 0rem;
    }
  }
  .sub-depart-list {
    flex-direction: column !important;

    > * {
      width: 100%;
      min-height: auto;
    }
    .sub-depart-list-img {
      border-radius: 2rem;
      aspect-ratio: 16/9;
    }
    .sub-depart-list-text {
      padding: 0;
    }
  }

  #sub-clinic-info > .inner {
    flex-direction: column;
    gap: 2rem;

    > * {
      width: 100%;
      padding-right: 0;
    }
    .sub-clinic-info-img {
      aspect-ratio: 16/9;
    }
  }
  .sub-clinic-pc-list {
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;

    li {
      padding: 3rem;
    }
  }
  #ob-hero {
    width: calc(100% - 8rem);
    border-radius: 3rem;
	margin: 12rem auto;

    & .inner > p {
      width: 95%;
    }
    .ob-hero-point {
      grid-template-columns: repeat(2, 1fr);
      margin-top: 6rem;
    }
  }
  .ob-pc-step3-detail {
    padding: 2.8rem;
    ul {
      flex-direction: column;

      li {
        width: 100%;
      }
    }
  }
  .ob-pc3-list {
    flex-direction: column;
    li {
      width: 100%;
    }
  }
  #child-tab {
    padding: 1rem 2rem;
    border-radius: 0;
	transform: translateY(100%);
  }
  #sub-direct-detail .direction-info {
    flex-direction: column;
    > li {
      flex-direction: column;
    }
  }
  #sub-direct-detail .sub-dr-title-wrap {
    .sub-dr-title::before {
      width: 2.8rem;
      height: 3.4rem;
    }
    .sub-dr-title {
      h4 {
        font-size: 3.2rem;
      }
      p {
        font-size: 2rem;
      }
    }
  }
  #sub-clinic-faq .inner {
    flex-direction: column;
  }
  .sub-about-hero {
    display: none;
  }
  .sub-about-content-wrap {
    p {width: 100%;}
    text-align: center;
  }
  .main-about-text {
    font-size: 6rem;
    transform: translateY(10%) !important;
  }

  /* 팝업반응형 */
  #hd_pop {
    width: 90%;
    aspect-ratio: 1;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .hd_pops_con {
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 55%;
  }
  .main-v-text p.sec-cate {
    font-size: 1.8rem;
  }
  .main-v-text .main-v-sg {
    font-size: 3.0rem;
    line-height: 1.35;
  }
  .main-v-dt {
    font-size: 1.4rem;
  }
  p {
    font-size: 15px;
  }
  .sec-title {
    font-size: 3.2rem;
  }
  .main-v-services {
    grid-template-columns: 1fr;
    gap: 1rem;
    li {
      padding: 1.4rem;
    }
    li img {
      max-width: 60%;
    }
  }
  .main-v-p {
    font-size: 16px;
  }

  #sub-visual {
    min-height: 28rem;
    h2 {
      font-size: 3.6rem;
      margin-bottom: 0.6rem;
    }
  }

  #child-tab {
    li a {
      font-size: 1.8rem;
    }
  }
  #ob-hero {
    width: calc(100% - 6rem);
    .ob-hero-point {
      grid-template-columns: repeat(1, 1fr);
    }
  }
}
