/* ================== 공통스타일 정의 ================== */
body {
  -ms-overflow-style: none;
}

input {
  border: 1px solid var(--color-gary100);
  color: var(--color-black);
  border-radius: 50px;
  height: max(45px, 2.604vw);
  padding: 0 15px;

  @media screen and (min-width: 1921px) {
    height: 50px;
  }
}

input:focus,
textarea:focus {
  border: 2px solid #A7A3C2; 
}

::-webkit-scrollbar {
  display: none;
}

.pagewrap {
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.pagewrap.sub,
.pagewrap.other {
  height: fit-content;
}

.pagewrap.other #main {
  height: 100%;
}

.pagewrap.other #main>.swiper-wrapper {
  flex-direction: column;
  height: 100%;
}

.pagewrap.other #main>.swiper-wrapper .swiper-slide.other {
  height: 100svh;
}

.pagewrap.sub #header {
  padding-top: 0;
  background-color: #fff;
}

@media (max-width: 767px) {
  .pagewrap {
    overflow: visible !important;
  }

  .pagewrap.sub #header {
    position: fixed;
    top: 0;
    left: 0;
  }
}

.pagewrap.sub #header:not(.full-nav) li {
  color: var(--color-black);
}

.pagewrap.sub #header .logo {
  background-image: url('/img/head/logo.png');
}

.pagewrap.sub #header .hamburger svg path {
  fill: var(--color-black);
}

@media (max-width: 1440px) {
  .pagewrap {
    overflow: visible !important;
  }
}

section#subPage.active {
  position: absolute;
  top: 0;
  left: 0;
  animation: showSubpage 0.5s cubic-bezier(0.290, 0.410, 0.290, 0.510) forwards;
}

@keyframes showSubpage {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

#main {
  width: 100%;
  height: 100dvh;
}

#main section {
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  @media screen and (min-width: 1921px) {
    width: 1920px;
    margin: 0 auto;
  }
}

section .section-title {
  color: var(--color-black);
  font-size: max(22px, 2.5vw);

  @media screen and (min-width: 1921px) {
    font-size: 48px;
  }
}

section .swiper-pagination-bullet-active {
  background: var(--color-overlay) !important;
}

@media (max-width: 1440px) {
  #main {
    height: 100% !important;
  }

  #main>.swiper-wrapper {
    flex-direction: column;
    height: 100dvh;
  }
}

@media (min-width: 691px) and (max-width: 767px) {
  section .section-title {
    font-size: 32px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  section .section-title {
    font-size: 38px;
  }
}

/* ================ 인트로~메인베너 섹션 ================*/
section.mainBanner {
  justify-content: normal !important;
  align-items: normal !important;
}

section.mainBanner .swiper {
  display: flex;
  justify-content: center;
  align-items: center;
}

section.mainBanner .swiper-wrapper {
  transition: all 0.4s;
}

section.mainBanner .swiper-slide {
  width: 100% !important;
}

section.mainBanner .swiper-slide[data-slide-idx='1'] > div {
  position: absolute;
  left:12.396vw;
  bottom: 7.448vw;
  z-index: 2;
  
  @media screen and (min-width: 1921px) {
    left:238px;
    bottom: 143px;
  }
}

section.mainBanner .swiper-slide[data-slide-idx='1'] h1, h2 {
  color: #fff;
}

section.mainBanner .swiper-slide[data-slide-idx='1'] h1 {
  font-family: 'Bebas neue pro-bd';
  font-size: max(10.417vw, 68px);
  
  @media screen and (min-width: 1921px) {
    font-size: 200px;
  }
}

section.mainBanner .swiper-slide[data-slide-idx='1'] h2 {
  font-family: 'pretendard-bold';
  font-size: max(34px, 4.427vw);
  letter-spacing: -1px;

  @media screen and (min-width: 1921px) {
    font-size: 85px;
  }
}

section.mainBanner .intro {
  width: 100%;
  height: 100%;
  position: relative;

  transition: clip-path 0.4s;
  clip-path: inset(0px 0px 0px 0px round 0px 0px 0px 0px);
}

section.mainBanner .intro.active {
  clip-path: inset(15px 15px 15px 15px round 65px 65px 65px 65px);
}

section.mainBanner .intro img {
  height: 100%;
}

section.mainBanner .swiper-bottom-el {
  position: absolute;
  bottom: 30px;
  z-index: 9;
  width: 100%;
  gap: 20px;
}

section.mainBanner .main-swiper-pagination .swiper-pagination-bullet {
  --swiper-pagination-bullet-width: 10px;
  --swiper-pagination-bullet-height: 18px;
  --swiper-pagination-bullet-inactive-color: #fff;
  --swiper-pagination-bullet-horizontal-gap: 10px;
  border-radius: 28px;
  opacity: 0.3;
}

section.mainBanner .main-swiper-pagination .swiper-pagination-bullet-active {
  opacity: 1 !important;
  background-color: #fff !important;
  outline: none !important;
}

section.mainBanner .scrollIcon {
  z-index: 2;
  width: 100%;
  animation: scroll-animation 0.75s ease-in-out 0.25s infinite alternate;
}

@keyframes scroll-animation {
  from {
    transform: translateY(20%);
  }

  to {
    transform: translateY(0%);
  }
}

@media (max-width: 690px) {
  section.mainBanner {
    height: 100svh;
    overflow: hidden;
  }

  section.mainBanner .swiper-slide img {
    object-position: 80%;
  }

  section.mainBanner .swiper-slide[data-slide-idx='1']>div h1 {
    font-size: 26.417vw;
    line-height: 24vw;
  }

  section.mainBanner .swiper-slide[data-slide-idx='1']>div h2 {
    padding-top: 1vw;
    padding-left: 6px;
    font-size: 7.3vw;
  }
}

@media (min-width: 691px) and (max-width: 768px) {
  section.mainBanner .swiper-slide[data-slide-idx='1']>div {
    left: 50px;
  }
}

@media (min-width: 691px) and (max-width: 1440px) {
  section.mainBanner {
    height: 49.204vw !important;
  }

  section.mainBanner .intro.active .swiper-wrapper {
    width: calc(100% - 4vw);
    height: calc(100% - 4vw);
  }
}

@media (min-width: 768px) {
  section.mainBanner .intro.active .swiper-wrapper {
    width: calc(100% - 30px);
    height: calc(100% - 30px);
  }
}

@media (max-width: 1024px) {
  section.mainBanner .swiper-slide[data-slide-idx='1']>div {
    bottom: unset;
    top: 50%;
    transform: translateY(-50%);
  }
  
  section.mainBanner .intro.active {
    clip-path: inset(2vw 2vw 2vw 2vw round 9vw) !important;
  }

  section.mainBanner .swiper-bottom-el {
    gap: 10px;
  }

  section.mainBanner .main-swiper-pagination .swiper-pagination-bullet {
    --swiper-pagination-bullet-width: 8px;
    --swiper-pagination-bullet-height: 13px;
    --swiper-pagination-bullet-horizontal-gap: 5px;
    border-radius: 6px;
  }

  section.mainBanner .scrollIcon svg {
    width: 22px;
  }
}

/* ================ END 인트로~메인베너 섹션 ================*/

/* ================ 주요클리닉 섹션 ================*/
section.clinic {
  margin-top: max(90px, 14.271vw);
  margin-bottom: max(90px, 15.729vw);
  
  @media screen and (min-width: 1921px) {
    margin-top: 274px !important;
    margin-bottom: 301px !important;
  }
}

section.clinic .section-title {
  margin-bottom: max(30px, 4.115vw);
  
  @media screen and (min-width: 1921px) {
    margin-bottom:79px;
  }
}

.clinic-list .clinic-item a {
  display: block;
}

.clinic-list .clinic-item a::after {
  z-index: 0;
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgb(0, 0, 0);
  background: linear-gradient(360deg, rgba(0, 0, 0, 0.67) 0%, rgba(255, 255, 255, 0) 100%);
}

.clinic-list .clinic-item .subject {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

.clinic-list .clinic-item .headline {
  width: 100%;
}

.clinic-list .clinic-item .headline h1 {
  color: #fff;
  font-family: 'pretendard-bold';
  line-height: 1.5;
}

.clinic-list .clinic-item .headline p {
  color: #CCCCCC;
  font-family: 'pretendard-regular';
  font-size: max(14px, 0.938vw);
  line-height: 1.5;
  
}

.clinic-list .clinic-item.cg .headline p {
  white-space: pre-line;
  line-height: 23px;
}

.clinic-list .clinic-item .goBtnArrw img {
  width: max(18px, 0.938vw);
}

@media screen and (max-width: 359px) {
  .clinic-list .clinic-item:nth-of-type(2) .headline p {
    width: 120px;
  }
}

@media screen and (max-width: 690px) {
  section.clinic {
    margin-bottom: 37vw;
  }
}

@media screen and (min-width: 691px) {
  .clinic-list {
    width: max(560px, 75vw);
    max-width: 1440px;
  }
  
  .clinic-list .clinic-item {
    width: calc(100% / 3);
    overflow: hidden;
  }
  
  .clinic-list .clinic-item img {
    transition: all 0.4s;
  }
  
  .clinic-list .clinic-item:hover img {
    transform: scale(1.2);
  }

  .clinic-list .clinic-item .subject {
    padding: 0 2.495vw 2.448vw 1.771vw;
  }

  .clinic-list .clinic-item .headline h1 {
    font-size: max(22px, 1.719vw);
  }
}

@media screen and (max-width: 768px) {
  .clinic-list {
    flex-direction: column;
  }

  .clinic-list .clinic-item {
    width: 80%;
  }

  .clinic-list .clinic-item .subject {
    padding: 0 max(20px, 2.495vw) max(22px, 2.448vw) max(22px, 1.771vw);
  }
    
  .clinic-list .clinic-item .headline h1 {
    font-size: 24px;
  }
    
  .clinic-list .clinic-item .headline h1,
  .clinic-list .clinic-item .headline p {
    line-height: 1.4;
  }
}

@media screen and (min-width: 1921px) {
  .clinic-list {
    width: 1440px;
  }

  .clinic-list .clinic-item .subject {
    padding: 0 48px 47px 34px;
  }

  .clinic-list .clinic-item .headline h1 {
    font-size: 33px;
  }
  
  .clinic-list .clinic-item .headline p {
    font-size: 18px;
  }

  .clinic-list .clinic-item .goBtnArrw img {
    width: 18px;
  }
}
/* ================ END 주요클리닉 섹션 ================*/

/* ================ 인포그라피 섹션 ================*/
section.infographic .ig-list {
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
}

section.infographic .ig-item {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity ease-in-out 0.5s;
}

section.infographic .ig-item.clicked,
section.infographic .ig-item.hover {
  z-index: 1;
  opacity: 1;
}

section.infographic .ig-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section.infographic .content {
  z-index: 1;
}

section.infographic .content::before,
section.infographic .content::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
}

section.infographic .content::before {
  content: url('/img/icon-quotes-f.svg');
  top: -3.4vw;
}

section.infographic .content::after {
  content: url('/img/icon-quotes-s.svg');
  bottom: -3.604vw;
}

section.infographic .content p {
  text-align: center;
  font-family: 'pretendard-regular';
  font-size: max(1.563vw, 14px);
  color: #fff;
  line-height: 1.7;
}

section.infographic .ig-list-nav li {
  background-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px 0px;
  font-size: max(1.563vw, 14px);
  font-family: 'pretendard-sbd';
  color: var(--color-black);
  cursor: pointer;
}

section.infographic .ig-list-nav li.clicked,
section.infographic .ig-list-nav li.hover {
  background-color: #363946;
  color: #fff;
}

@media screen and (max-width: 690px) {
  section.infographic {
    margin-bottom: 50vw;
  }

   section.infographic .ig-list {
    height: 62vw;
  }

  section.infographic .slick-list,
  section.infographic .slick-track,
  section.infographic .ig-item {
    width: 100%;
    height: 100%;
  }

  section.infographic .ig-item {
    display: flex !important;
  } 

  section.infographic .content::after,
  section.infographic .content::before {
    transform: translateX(-80%);
    scale: 0.5;
  }
 
  section.infographic .content::before {
    top: -8.646vw;
  }

  section.infographic .content::after {
    bottom: -9.604vw;
  }

  section.infographic .ig-list-nav {
    position: absolute;
    bottom: -15.933vw;
    width: 100%;
    height: 24vw;
    z-index: 2;
  }

  section.infographic .ig-list-nav li {
    width: 128px !important;
    height: 81px;
    margin-right: 30px;
    border-radius: 21px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.4s;
  } 
}

@media screen and (min-width: 691px) {
  section.infographic {
    margin-bottom: max(160px, 17.708vw);
  }
  
  section.infographic .ig-list {
    height: max(330px, 35.052vw);
    background-position: center;
  }

  section.infographic .ig-list-nav {
    gap: 10px;
    width: 59.271vw;
    position: absolute;
    bottom: -5.677vw;
    z-index: 1;
  }
  
  section.infographic .ig-list-nav li {
    width: 14.427vw;
    height: 9.115vw;
    border-radius: 2.083vw;
  }
}

@media screen and (min-width: 1921px) {
  section.infographic {
    margin-bottom: 340px !important;
  }
  
  section.infographic .ig-list {
    height: 673px;
  }
  
  section.infographic .ig-list-nav {
    width: 1138px;
    bottom: -109px;
  }
  
  section.infographic .ig-list-nav li {
    width: 277px;
    height: 175px;
    border-radius: 40px;
  }

  section.infographic .content::before {
    top: -65px;
  }

  section.infographic .content::after {
    bottom: -69px;
  }

  section.infographic .content p,
  section.infographic .ig-list-nav li {
    font-size: 30px;
  }
}
/* ================ END 인포그라피 섹션 ================*/

/* ================ 베스트 시술 섹션 ================*/
section.best {
  margin-bottom: max(110px,15.573vw); 
  background-image: url('/img/best-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  height: max(53vw, 100svh);
  position: relative;
}

section.best .section-title {
  color: #fff;
  margin-bottom: max(30px, 3.5vw);
  z-index: 1;
}

section.best .swiper-container {
  width: 100%;
}

section.best .best-swiper {
  width: 100%;
}
section.best .best-swiper .slick-track {
  gap: 3.125vw;
  display: flex;
}

@media screen and (max-width: 690px) {
  section.best .swiper-container {
    width: 100%;
    padding: 0 6vw;
  }

  section.best .best-swiper {
    width: 100%;
    height: fit-content;
    position: relative;
  }

  section.best .swiper-wrapper { 
    flex-direction: column;
    height: fit-content;
  }

  section.best .best-swiper-slide {
    height: fit-content;
    transition: all 0.4s;
  }

  section.best .best-swiper-slide a {
    width: 100%;
    height: 0;
    display: flex;
    opacity: 0;
    transition: all 0.4s;
  }

  section.best .best-swiper-slide.clicked a {
    height: 49.445vw;
    opacity: 1;
  }

  section.best .best-swiper-navigator {
    display: none;
  }

  section.best .mobile-navigation {
    display: flex;
    width: 100%;
    height: 56px;
    background-color: #fff;
    font-size: 16px;
    font-family: 'pretendard-medium';
    color: var(--color-gray500);
  }

  section.best .best-swiper-slide .mobile-navigation:not(.best-swiper-slide[data-best-swiper-idx='3'] .mobile-navigation) {
    border-bottom: 1px solid var(--color-gary100);
  }

  section.best .mobile-navigation.clicked {
    background-color: #7e85b5;
    color: #fff;
    font-family: 'pretendard-bold';
  }
}

@media screen and (min-width: 691px) {
  section.best .best-swiper-slide {
    width: 45.417vw;
    height: 25.521vw;
    border-radius: max(12px,1.302vw);
    overflow: hidden;
  }

  section.best .best-swiper-navigator {
    display: flex;
    margin-top: max(20px, 2.234vw);
  }

  section.best .swiper-pagination {
    width: fit-content;
    margin-top: 3px;
  }

  section.best .swiper-pagination-bullet {
    --swiper-pagination-bullet-width: 10px;
    --swiper-pagination-bullet-height: 10px;
    --swiper-pagination-bullet-horizontal-gap: 7.5px;
    --swiper-pagination-bullet-inactive-opacity: 1;
    --swiper-pagination-bullet-inactive-color: #fff;
    background: transparent;
    border: 1px solid #fff;
  }

  section.best .swiper-pagination-bullet-active {
    background: #fff !important;
  }

  section.best .swiper-pagination,
  section.best .swiper-button-next,
  section.best .swiper-button-prev {
    position: static;
  }

  section.best .swiper-button-next,
  section.best .swiper-button-prev {
    --swiper-navigation-size: fit-content;
    --swiper-navigation-color: #fff;
  }

  section.best .swiper-button-next:after,
  section.best .swiper-button-prev:after {
    display: none;
  }

  section.best .swiper-button-next.swiper-button-disabled,
  section.best .swiper-button-prev.swiper-button-disabled {
    opacity: 1;
  }

  section.best .mobile-navigation {
    display: none;
  }
}

@media screen and (min-width: 691px) and (max-width: 768px) {
  section.best .best-swiper-slide {
    width: 63.417vw;
    height: 35.521vw;
  }

  section.best .best-swiper-slide img {
    width: auto;
    height: 100%;
  }
}

@media screen and (min-width: 1921px) {
  section.best {
    margin-bottom: 299px !important;
    height: 1017px;
  }

  section.best .section-title {
    margin-bottom: 67px;
  }

  section.best .best-swiper .slick-track {
    gap:60px;
  }

  section.best .best-swiper-slide {
    width: 872px;
    height: 490px;
    border-radius:25px;
  }

  section.best .best-swiper-navigator {
    margin-top: 43px;
  }
}
/* ================ END 베스트 시술 섹션 ================*/

/* ================ 의료진 섹션 ================*/
section.doctors {
  margin-bottom: max(110px, 15.719vw);
}

section.doctors .section-title {
  margin-bottom: max(30px,4.583vw);
}

section.doctors .doctor-list {
  width: 48.49vw;
  height: 32.865vw;
  gap: 4.74vw;
}

section.doctors .doctor-item {
  width: 21.875vw;
  max-width: 420px;
  height: 100%;
  position: relative;
}

section.doctors .doctor-item .info {
  z-index: 1;
  position: relative;
}

section.doctors .doctor-item .info .showBtn {
  width: 4.635vw;
  height: 4.635vw;
  min-width: 55px;
  min-height: 55px;
  background-color: var(--color-black);
  border-radius: max(28px, 2.604vw) 0;
  margin-right: 1.823vw;
  
  @media screen and (min-width: 1921px) {
    width: 89px;
    height: 89px;
    border-radius: 50px 0;
    margin-right: 35px;
  }
}

section.doctors .doctor-item .info .showBtn svg {
  width: 1.891vw;
  min-width: 18px;
}

section.doctors .doctor-item .info .doc-name {
  font-size: max(1.458vw, 16px);
  color: #000C3D;
  margin-top: 0.5vw;
}

section.doctors .doctor-item .info .doc-name span {
  font-family: 'pretendard-regular';
  font-size: max(1.25vw, 14px);
  margin-right: 0.573vw;
}

section.doctors .doctor-item .img-container {
  width: 100%;
  height: 29.853vw;
  max-height: 573.18px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgb(16, 23, 123);
  background: linear-gradient(320deg, rgba(16, 23, 123, 1) 0%, rgba(193, 185, 210, 1) 76%);
  border-radius: 0 max(65px, 5vw);
  overflow: hidden;
}

section.doctors .doctor-item .img-container img {
  width: auto;
  height: 92%;
}

section.doctors .doctor-item .history {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(-100%);
  width: 100%;
  height: 100%;
  justify-content: center;
  transition: all 0.4s;
  font-size: max(14px, 0.9vw);
  color: #fff;
  padding-left: 2vw;
}

section.doctors .doctor-item .history[data-doc-history='lch'] {
  justify-content: flex-start;
  padding: 3.6vw 2vw;
}

section.doctors .doctor-item.show .history {
  opacity: 1;
  transform: translateY(0);
}

section.doctors .doctor-item .history::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(52, 52, 52, 0.85);
}

section.doctors .doctor-item .history li {
  z-index: 1;
  line-height: 1.8;
}

@media screen and (max-width: 690px) {
  section.doctors .doctor-list { 
    width: 70%;
    height: 106vw;
    gap: 10vw;
    flex-direction: column;
  }

  section.doctors .doctor-item {
    width: 100%;
  }

  section.doctors .doctor-item .info .showBtn { 
    margin-right: 4.823vw;
  }

  section.doctors .doctor-item .info .doc-name { 
    margin-top: 0.7vw;
  }

  section.doctors .doctor-item .info .doc-name span {
    margin-right: 2vw;
  }

  section.doctors .doctor-item .img-container { 
    height: 97.4vw;
    max-height: unset;
  }

  section.doctors .doctor-item .history {
    padding-left: 4vw;
  }

  section.doctors .doctor-item .history li {
    line-height: 6.5vw;
  }
}

@media screen and (min-width: 691px) and (max-width: 768px) {
  section.doctors .doctor-list {
    width: 70%;
    height: 52.865vw;
  }

  section.doctors .doctor-item {
    width: 50%;
  }

  section.doctors .doctor-item .info .doc-name {
    font-size: 18px;
  }

  section.doctors .doctor-item .info .doc-name span {
    font-size: 14px;
    margin-right: 10px;
  }

  section.doctors .doctor-item .img-container {
    height: 47.853vw;
  }

}

@media screen and (min-width: 1921px) {
  section.doctors {
    margin-bottom: 301px !important;
  }

  section.doctors .section-title {
    margin-bottom:88px
  }

  section.doctors .doctor-list {
    width: 931px;
    height: 631px;
    gap: 91px
  }

  section.doctors .doctor-item {
    width: 420px;
  }

  section.doctors .doctor-item .info .showBtn svg {
    width: 36px;
  }

  section.doctors .doctor-item .info .doc-name {
    font-size: 28px;
  }

  section.doctors .doctor-item .info .doc-name span {
    font-size: 24px;
    margin-right: 11px;
  }

  section.doctors .doctor-item .img-container {
    height:573px;
    border-radius: 0 96px
  }

  section.doctors .doctor-item .history {
    font-size: 17px;
    padding-left: 2vw;

  }

  section.doctors .doctor-item .history[data-doc-history='lch'] {
    padding: 69px 38px;
  }
}

/* ================ END 의료진 섹션 ================*/

section.map {
  height: 100svh;

  .section-title {
    color: #fff;
  }
}