.main-page {
  container-type: inline-size;
}

.container {
  container-type: inline-size;
  max-width: 1920px;
  margin-inline: auto;
}

.main-banner {
  position: relative;
  height: 54.688cqw;

  &::before {
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
  }

  iframe {
    width: 136%;
    height: 54.688cqw;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  .inner {
    position: relative;
    width: 100%;
    padding-top: 23.438cqw;
    z-index: 2;
  }

  b {
    color: #fff;
    font-size: 3.385cqw;
    font-weight: 600;
    line-height: 1.25;
    span {
      color: #77ceff;
    }
  }

  .main-banner__scroll {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 50%;
    transform: translateX(-46.875cqw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.042cqw;
    p {
      color: #fff;
      writing-mode: vertical-rl;
      position: relative;
      transform: rotate(180deg);
    }

    div {
      height: 6.25cqw;
      width: 0.052cqw;
      background-color: rgba(255, 255, 255, 0.2);
      position: relative;
      span {
        position: absolute;
        top: 0;
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        background-color: #fff;
        width: 100%;
        -webkit-animation: scrollDown 2.5s linear infinite;
        animation: scrollDown 2.5s linear infinite;
      }
    }
  }

  @container (max-width: 1024px) {
    height: 150vmin;

    iframe {
      width: 370%;
      height: 100%;
    }

    .inner {
      padding-top: 75vmin;
    }

    b {
      font-size: 6.5cqw;
    }

    .main-banner__scroll {
      transform: translateX(-46.875cqw);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2.042cqw;

      p {
        font-size: 2.5cqw;
        height: 20cqw;
      }

      div {
        height: 10cqw;
      }
    }
  }
}

.main-tit__area {
  text-align: center;
  font-size: 3.333cqw;
  line-height: 1.3;
  font-weight: 700;
  strong {
    line-height: 1.3;
    font-weight: 700;
    color: #00599d;
  }

  p {
    margin-top: 1.042cqw;
    font-size: 1.25cqw;
    line-height: 1.5;

    span {
      font-size: 0.833cqw;
      color: #666;
    }

    em {
      color: #42a2ec;
    }
  }

  @container (max-width: 1024px) {
    font-size: 5.75cqw;

    p {
      margin-top: 2.042cqw;
      font-size: 3cqw;

      span {
        font-size: 2.5cqw;
      }
    }
  }
}

.box-carousel {
  margin-top: 4.167cqw;
  width: 100%;

  .carousel-items {
    width: 100%;
  }

  .carousel-item {
    position: relative;
    margin: 0 1.042cqw;
    border-radius: 0.833cqw;
    overflow: hidden;
    box-shadow: 0 0 0.521cqw 0 rgba(0, 0, 0, 0.1);
    width: 30.677cqw;

    p {
      position: absolute;
      height: 3.75cqw;
      background-color: rgba(0, 0, 0, 0.3);
      width: 100%;
      bottom: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.042cqw;
      font-weight: 600;
      color: #fff;
    }
  }

  @container (max-width: 1024px) {
    margin-top: 8cqw;

    .carousel-item {
      margin: 0 2cqw;
      border-radius: 1.6cqw;
      box-shadow: 0 0 1cqw 0 rgba(0, 0, 0, 0.1);
      width: 60cqw;

      p {
        height: 10cqw;
        font-size: 3.2cqw;
      }
    }
  }
}

.main-section-a {
  background-image: url('/assets/images/main/main_bg.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  > div {
    padding-block: 8.333cqw 10cqw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

.main-section-b {
  margin-top: 1.458cqw;
}

.main-section-c {
  margin-top: 11.406cqw;
  padding-bottom: 11.458cqw;
}

.main-section-d {
  > div {
    padding-block: 7.292cqw;
    display: flex;
    justify-content: center;
    > div {
      width: 16.875cqw;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;

      b {
        margin-top: 1.667cqw;
        font-size: 1.667cqw;
      }
      p {
        margin-top: 0.625cqw;
        font-size: 1.042cqw;
      }
    }
  }

  @container (max-width: 1024px) {
    > div {
      padding-block: 7.292cqw;
      flex-wrap: wrap;
      > div {
        width: 50%;
        height: 30cqw;

        img {
          width: 13cqw;
          height: 13cqw;
          object-fit: contain;
        }

        b {
          font-size: 3.75cqw;
          margin-top: 3cqw;
        }
        p {
          margin-top: 0.5cqw;
          font-size: 2.25cqw;
        }
      }
    }
  }
}

.main-health {
  position: relative;
  min-height: 100vh;
  background-image: url('/assets/images/main/bg_health.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding-top: 13.177cqw;
  overflow: hidden;
}
.main-health > h3 {
  text-align: center;
  color: #fff;
  font-size: 3.75cqw;
  font-weight: 600;
}
.main-health .hover-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 33, 0.9);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.main-health .hover-layer > div {
  width: 50%;
  position: relative;
}
.main-health .hover-layer > div h3 {
  position: absolute;
  top: 50%;
  width: 100%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  color: #fff;
  text-align: center;
  font-size: 2.5cqw;
  font-weight: 600;
}
.main-health .hover-layer__contents {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.main-health .hover-layer__contents-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 100%;
}
.main-health .hover-layer__contents--left .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.96;
  background: linear-gradient(254deg, #218bce 7.08%, #213dce 94.39%);
}
.main-health .hover-layer__contents--left .list {
  position: relative;
  z-index: 2;
  width: 24.375cqw;
  margin-inline: auto;
}
.main-health .hover-layer__contents--left .list > li {
  color: #fff;
  font-size: 1.458cqw;
  font-weight: 600;
  height: 3.542cqw;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 2em;
  -webkit-transition: all ease 0.3s;
  transition: all ease 0.3s;
}
.main-health .hover-layer__contents--left .list > li.active {
  color: #000;
  background-color: #fff;
}
.main-health .hover-layer__contents--left .ending {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/main/bg_hover-layer-left-ending.gif');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.main-health .hover-layer__contents--left .ending h4 {
  color: #fff;
  font-size: 2.917cqw;
  font-weight: 700;
  text-align: center;
}
.main-health .hover-layer__contents--right .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.96;
  background: linear-gradient(105deg, #218bce 6.73%, #10b8c2 94.31%);
}
.main-health .hover-layer__contents--right .cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.521cqw;
}
.main-health .hover-layer__contents--right .cards::before {
  content: 'VENTIWELL 역량';
  font-size: 1.771cqw;
  color: #fff;
  font-weight: 600;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -3.906cqw;
}
.main-health .hover-layer__contents--right .cards > li {
  border-radius: 1.667cqw;
  width: 12.5cqw;
  height: 12.5cqw;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}
.main-health .hover-layer__contents--right .cards > li h5 {
  position: relative;
  margin-bottom: 1.354cqw;
  font-size: 1.25cqw;
  color: #fff;
  transition: all ease 0.3s;
}
.main-health .hover-layer__contents--right .cards > li h5::before {
  content: '';
  width: 1.042cqw;
  height: 0.104cqw;
  opacity: 0.2;
  background: #fff;
  position: absolute;
  bottom: -0.625cqw;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}
.main-health .hover-layer__contents--right .cards > li p {
  color: #fff;
  text-align: center;
  font-size: 0.938cqw;
  transition: all;
  transition: all ease 0.3s;
}
.main-health .hover-layer__contents--right .cards > li:nth-of-type(1) {
  background: linear-gradient(105deg, #00b2cb 6.73%, #1dcfa4 94.31%);
  background-size: 500% 500%;
}
.main-health .hover-layer__contents--right .cards > li:nth-of-type(2) {
  background: linear-gradient(135deg, #2bd870 0%, #0dbaa5 100%);
  background-size: 500% 500%;
}
.main-health .hover-layer__contents--right .cards > li:nth-of-type(3) {
  background: linear-gradient(135deg, #dd7d0d 0%, #e0d93e 100%);
  background-size: 500% 500%;
}
.main-health .hover-layer__contents--right .cards > li:nth-of-type(4) {
  background: linear-gradient(105deg, #5921ce 6.73%, #106dc2 94.31%);
  background-size: 500% 500%;
}
.main-health .hover-layer__contents--right .cards > li:nth-of-type(5) {
  background: linear-gradient(105deg, #b7a500 6.73%, #a2d0b1 94.31%);
  background-size: 500% 500%;
}
.main-health .hover-layer__contents--right .cards > li:nth-of-type(6) {
  background: linear-gradient(105deg, #9dd148 6.73%, #d0d350 94.31%);
  background-size: 500% 500%;
}
.main-health .hover-layer__contents--right .cards > li:hover {
  animation: colorChange 3s ease infinite;
} /* .main-health
.hover-layer__contents--right .cards > li:hover h5, .main-health
.hover-layer__contents--right .cards > li:hover p { color: #000 !important; }
.main-health .hover-layer__contents--right .cards > li:hover h5::before {
background: #000; } */

@keyframes colorChange {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.main-section-e {
  width: 100%;
  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.main-section-f {
  display: flex;
  > div {
    flex-basis: 50%;
  }

  > div:first-child {
    padding-block: 6.25cqw;

    .wrapper {
      width: 31.667cqw;
      margin-inline: auto;
    }

    h3 {
      font-size: 3.333cqw;
      font-weight: 700;
    }

    .buttons {
      margin-top: 2.083cqw;
      display: flex;
      gap: 0.625cqw;
      button {
        width: 5cqw;
        height: 2.031cqw;
        border: 0.052cqw solid #ccc;
        border-radius: 2em;
        font-size: 1.042cqw;
        color: #666;

        &.active {
          background-color: #42a2ec;
          border-color: #42a2ec;
          color: #fff;
        }
      }
    }

    .address {
      margin-block: 2.083cqw;
      padding-bottom: 2.083cqw;
      border-bottom: 0.052cqw solid #aaa;
      h4 {
        font-size: 0.938cqw;
        font-weight: 700;
        color: #444;
        display: flex;
        align-items: center;
        gap: 0.417cqw;
      }
      p {
        margin-top: 0.833cqw;
        font-size: 1.25cqw;
      }
    }
    .contact {
      display: flex;
      gap: 2.083cqw;

      h4 {
        font-size: 0.938cqw;
        font-weight: 600;
        color: #444;
      }

      p {
        margin-top: 0.833cqw;
        font-size: 1.042cqw;
        color: #444;
      }
    }
  }
  > div:last-child {
    position: relative;
    > div {
      height: 100%;
    }
    .root_daum_roughmap {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;

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

      &.active {
        z-index: 2;
      }
    }
  }

  @container (max-width: 1024px) {
    flex-direction: column;
    > div {
      flex-basis: 100%;
    }

    > div:first-child {
      padding: 5.3333vw;
      .wrapper {
        width: 100%;
      }

      h3 {
        font-size: 7.2cqw;
      }

      .buttons {
        margin-top: 2.083cqw;
        gap: 1.2625cqw;
        button {
          width: 14cqw;
          height: 7cqw;
          font-size: 3.5cqw;
        }
      }

      .address {
        margin-block: 4.083cqw;
        padding-bottom: 4.083cqw;
        border-bottom: 0.052cqw solid #aaa;
        h4 {
          font-size: 4cqw;
          color: #444;
          gap: 0.817cqw;
          img {
            width: 3cqw;
          }
        }
        p {
          margin-top: 1.5cqw;
          font-size: 3.5cqw;
        }
      }
      .contact {
        gap: 4.083cqw;

        > li {
          flex: 1;
        }

        h4 {
          font-size: 3cqw;
        }

        p {
          margin-top: 1cqw;
          font-size: 3cqw;
        }
      }
    }
    > div:last-child {
      position: relative;
      height: 60cqw;
      > div {
        height: 60cqw;
      }
      .root_daum_roughmap {
        height: 60cqw;
      }
    }
  }
}

@-webkit-keyframes scrollDown {
  0% {
    height: 0%;
  }
  50% {
    height: 100%;
  }
  100% {
    top: auto;
    height: 0%;
    bottom: 0;
  }
}
@keyframes scrollDown {
  0% {
    height: 0%;
  }
  50% {
    height: 100%;
  }
  100% {
    top: auto;
    height: 0%;
    bottom: 0;
  }
}
