@charset "UTF-8";

header {
  position: absolute;
  z-index: 100;
  width: 100%;
  >.inwrap {
    padding: 0;

    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-items: flex-start;
    .logo_area{
      width: 250px;
      color: var(--color_main);
      display: flex;
      bottom: 0;
      flex-direction: column;
      align-items: center;
      padding-top: 7rem;
      -moz-box-sizing: border-box;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      transition: all 0.4s ease-in-out;
      display: none;
      a{
        display:block;
        img{
          position:absolute;
          left: 50%;
          transform: translate(-50%, 0);
        }
        img.sub{
          display:none;
        }
      }
    }
    

    nav {
      position: relative;
      width: calc(100dvw - 250px);
      margin-left: 250px;
      .lnb {
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        -ms-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;
        transition: all 0.4s ease-in-out;
        display: flex;
        gap: 30px;
        justify-content: center;
        gap: 5rem;
        margin-top: 8rem;
        margin-left: 3rem;
        >li {
          margin: 3rem 0;
          font-size: 2.3rem;
          font-weight: 800;
          -webkit-transition: all 0.3s;
          -moz-transition: all 0.3s;
          -ms-transition: all 0.3s;
          -o-transition: all 0.3s;
          transition: all 0.3s;
          -moz-box-sizing: border-box;
          -webkit-box-sizing: border-box;
          box-sizing: border-box;
          position: relative;
          
          &:first-child{
            display:none;
          }
          &:nth-child(4){
            margin-right: 200px;
          }
          &.tel {
            display:none;
          }
          >a {
            padding: 10px 0;
            color: var(--aaa);
            font-weight: 700;
            font-family: 'GounBatang';
            color: var(--fff);
            
            span:after {
              content: '';
              display: inline-block;
              position: absolute;
              top: -13px;
              height: 8px;
              width: 8px;
              border: 3px solid var(--fff);
              border-radius: 100px;
              right: -12px;
              z-index: 0;
              -webkit-transition: all 0.5s;
              -moz-transition: all 0.5s;
              -ms-transition: all 0.5s;
              -o-transition: all 0.5s;
              transition: all 0.5s;
              transform: scale(0);
            }
          }

          &:hover {
            >a {
              color: var(--fff);

              span {
                &:after {
                  transform: scale(1);
                }
              }

            }
          }
        }
      }
      .menu_wrap{
        position: fixed;
        right: 5rem;
        top: 4rem;
        width: 5rem;
        height: 5rem;
        cursor: pointer;
        opacity: 0;
        transition: all 0.4s ease-in-out;
        margin-top: -8rem;
        
        
        #menu_but{
          &:before,
          &:after,
          span{
            content:'';
            width: 5rem;
            height: 3px;
            display: block;
            background: var(--color_main);
            position: relative;
            -webkit-transition: all 0.3s;
            -moz-transition: all 0.3s;
            -ms-transition: all 0.3s;
            -o-transition: all 0.3s;
            transition: all 0.3s;
            margin-top: 1rem;
            -webkit-transform-origin: center center;
            -ms-transform-origin: center center;
            transform-origin: 
              center center;
          }
          span{
            
          }
        }
        &.active{
          right:3rem;
          #menu_but{
            span{
              opacity:0;
            }
            &:before{
              visibility: inherit;
              transform:  rotate(45deg);
              margin-top: 2.3rem;
            }
            &:after {
              visibility: inherit;
              transform:  rotate(-45deg);
              margin-top: -1.6rem;
              }
          
            
          }
        }
      }
      .sns {
        display:none;
      }
    }
  }
  &.f_nav {
    position:fixed;
    >.inwrap {
      background:var(--fff);
      position: absolute;
      min-width: 380px;
      right: 0;
      top: 0;
      min-height: 100dvh;
      display: flex;
      justify-content: flex-start;
      flex-direction: column;
      margin-right: -380px;
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      .logo_area{
        /* padding-top: 5rem; */
        width: 100%;
        display: block;
        text-align: center;

        img.main{
        position: relative;
        transform: translate(0, 0);
        left: 0;
        }
      }
      nav{
        width: 100%;
        margin: 0;
        
        .lnb{
        margin-top:0;
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 5rem 0 3rem 0;
        li{
          margin: 0 2rem;
          padding: 0;
          border-bottom: 1px solid var(--C6C3C2);
          font-size: 1.8rem;
          
          
          
          
          
          
          
          
          
          
          
          
          a{
        color: var(--000);
        display:flex;
        gap: 10px;
        padding: 2rem 0;
        line-height: 1;
        /* border-bottom: 1px solid var(--aaa); */
        font-family: 'Pretendard';
        font-weight: 400;
        justify-content: center;
        
        
        
        span{
          display:none;
                &:after{
                display:none;
                }
              }
            }
          &.tel {
            display:block;
            text-align: center;
            a{
              /* font-size: 1.2em; */
              font-weight: 600;
              display: flex;
              justify-content: center;
              padding: 2rem;
              font-size: 1.25em;
            }
            }
            
          }
        }
    
      }
      .menu_wrap{
      opacity:1;
      margin-top: 0;
      }
      .sns{
        display:flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;

        li {
          a{
            i{
              background: var(--000);
              color: var(--fff);
              font-size: 3.5rem;
              border-radius: 100%;
              line-height: 5.2rem;
              height: 5.2rem;
              display: inline-block;
              width: 5.2rem;
              text-align: center;
              font-size: 3rem;
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              &:before{
                margin:0;
              }
            }
            span{
              display:none;
            }
          }
        }
      }

    }
  }
  &.open {
     > .inwrap{
       margin-right:0;
       box-shadow: -4px 0 4px 0 rgba(0, 0, 0, 0.15);
     } 
    }
  }




@media (max-width: 1220px) {

}

@media (max-width: 768px) {

}

.section_tit{
  text-align: center;
  margin-bottom: 10rem;
  
  
  
  
  
  h2{
    font-family: 'GounBatang';
    font-size: 4rem;
    color: var(--color_main);
    &:before{
      content:'';
      display:inline-block;
    
      width: 2rem;
      height: 2rem;
      border: 10px solid var(--color_main);
      border-radius: 10rem;
    }
    em{
      display: block;
      font-weight: 400;
      font-size: .8em;
      margin-bottom: 1rem;
    }
    span{
      font-weight: 400;
      font-size: 1.5em;
      position: relative;
      line-height: 1;
      transform: translate(0px, -10px);
      display: inline-block;
      
      
      &+span{transform: translate(0px, 8px);}
    }
  }
}
@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.tw-cursor {
  animation: tw-blink 0.75s step-end infinite;
  font-weight: 300;
}
 
.main_title{
  position:absolute;
  width: 250px;
  text-align: center;
  padding-top: 7rem;

  span{
    font-size: 2rem;
    letter-spacing: .5rem;
    transform: rotate(90deg);
    font-weight: 700;
    position: absolute;
    z-index: 10;
    color: var(--color_main);
    left: -110px;
    top: 480px;
    font-family: 'GounBatang';
    display: flex;
    width: 470px;
    
    
    
    &:after{
      content: '';
      position: absolute;
      width: 10rem;
      height: 2px;
      background: var(--color_main);
      bottom: 50%;
      transform: translate(480%, 0px );
    }
  }
}
/* MainVisual */
.MainVisual {
  background: var(--fff);
  /* overflow: hidden; */
  min-height: 100dvh;
  position: relative;
  width: calc(100dvw - 250px);
  margin-left: 250px;
  

  .owl-carousel {
    .item {
      height: 100dvh;

      .img {
        overflow: hidden;
        width: 100%;
        height: 100%;
        position: absolute;
        z-index: 0;

        >div {
          background-size: cover;
          transform: scale(1.2);
          -webkit-transition: all 5s;
          -moz-transition: all 5s;
          -ms-transition: all 5s;
          -o-transition: all 5s;
          transition: all 5s;
          position: absolute;
          left: 0;
          right: 0;
          top: 0;
          bottom: 0;
          background-position: center top;
        }
      }
    }
    .active {
      .img {
        >div {
          transform: scale(1);
          z-index: 10;
        }
      }
    }

  }
}

@media (max-width: 768px) {
  .main_title{
    background:none;
    width: 100%;
    padding: 0;
    top: 0;
    height: 100dvh;
    span{
      transform: rotate(0deg);
      left: 0;
      right: 0;
      width: 100%;
      text-align: center;
      display: block;
      font-size: 4rem;
      line-height: 1.2;
      color: var(--fff);
      top: 65%;
      letter-spacing: 0;
      
      &:before{
        display:none;
      }
    }
  }
  .MainVisual {
    width:100dvw;
    margin-left:0;
  }
}

@keyframes scrollUp {
  0% {
    transform: translateY(100%);
  }

  50%,
  100% {
    transform: translateY(-100%);
  }
}

/* main_doctor */
.main_doctor{
  /* padding:10rem 0; */
  position: relative;
  /* height: 100dvh; */
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
    .inwrap{
    max-width: 1400px;
    margin: 15rem auto;
    /* padding: 0 1rem; */
    display: flex;
    text-align: center;
    align-items: center;
    /* height: 100dvh; */
    overflow: hidden;
    padding: 0 5rem;
    
      > div {
        flex:1;
        &.doctor_img{
          position: relative;

          a{
            position: absolute;
            bottom: 3rem;
            right: 3rem;
            display: inline-block;
            width: 9rem;
            height: 9rem;
            background: var(--color_main);
            color: var(--fff);
            font-size: 1.8rem;
            border-radius: 50%;
            font-weight: 500;
            display: flex;
            justify-content: center;
            align-items: center;
          }
        }
        &.doctor_txt{
          font-family: 'GounBatang';
          
          h5{
            font-size: 4rem;
            font-weight: 400;
          }
          h2{
            color: var(--color_main);
            font-size: 9rem;
            font-weight: 400;
            line-height: 1.2;
          }
          h6{
            color: #848484;
            font-family: NanumMyeongjo;
            font-size: 3rem;
            font-weight: 600;
          }
          div.dot{
            margin:4rem 0; 
            span{
              display: inline-block;
              width: 1.5rem;
              height: 1.5rem;
              background: var(--color_main);
              border-radius: 50%;
              margin: 0 1rem;
            }
          }
          p{
            font-size: 3.6rem;
            font-weight: 400;
            margin: 0;
            
            &:after{
              content: '';
              display: block;
              width: 1.5rem;
              height: 1.5rem;
              border-radius: 50%;
              border:5px solid var(--color_main);
              margin: 5rem auto;
            }
          }
          h4{
            font-size: 4rem;
            font-weight: 400;
            b{
              font-weight: 700;
            }
          }
        }
      }
  }
  &::before{
    content: '';
    position: absolute;
    width: 44rem;
    height: 44rem;
    border-radius: 50%;
    border:3rem solid var(--color_main);
    opacity: .05;
    right: 0;
    top: 0;
    transform: translate(50%, -10%);
  }
  &::after{
    content: '';
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    border: 1.5rem solid var(--color_main);
    opacity: .05;
    right: 0;
    top: 0;
    transform: translate(50%, 140%);
  }
}

@media (max-width: 1200px) {

}

@media (max-width: 768px) {
  .main_doctor {
      .inwrap{
        display: flex;
        flex-direction: column;
        gap: 6rem;
        padding: 0 3rem;
        margin: 10rem 0;
        > div{
          &.doctor_txt{
            p{
             &:after{
               margin: 3rem auto;
             } 
            }
            h4{
              font-size: 3.6rem;
            }
          }
        }
      }
    }
 
}


/* main_keyword */
.main_keyword{
  padding: 15rem 5rem;
  background: var(--bg);
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  /* min-height: 100dvh; */
  display: flex;
  justify-content: center;
  align-items: center;
  position:relative;
  
  > h5{
    position:absolute;
    z-index:1; 
    top:5rem;
    right:5rem;
    font-size: 3rem;
    font-weight: 600;
    
  }
    .inwrap{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    text-align: center;
    align-items: center;
    
      ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
        max-width: 1500px;
        margin: 0 auto;
        li {
          animation: floatComplex 4s ease-in-out infinite, shadowFloat 4s ease-in-out infinite;
          font-size: 3rem;
          background: var(--fff);
          border-radius: 10rem;
          line-height: 1em;
          border: 1px solid var(--aaa);
          font-weight: 600;
          transition: all 0.4s ease-in-out;

          a {
            color: var(--5C5C5C);
            display: block;
            padding: 3rem 4rem;
            font-weight: 400;
          }

          &:hover {
            background-color: var(--color_main);
            color: var(--fff);
            border-color: transparent;
            a {
              color: var(--fff);
            }
          }

          /* 각 태그마다 다른 애니메이션 지연시간과 속도 */
          &:nth-child(1) {
            animation-duration: 3s;
            animation-delay: 0s;
          }

          &:nth-child(2) {
            animation-duration: 3.5s;
            animation-delay: 0.5s;
          }

          &:nth-child(3) {
            animation-duration: 2.8s;
            animation-delay: 1s;
          }

          &:nth-child(4) {
            animation-duration: 3.2s;
            animation-delay: 1.5s;
          }

          &:nth-child(5) {
            animation-duration: 3.7s;
            animation-delay: 0.2s;
          }

          &:nth-child(6) {
            animation-duration: 2.9s;
            animation-delay: 0.8s;
          }

          &:nth-child(7) {
            animation-duration: 3.4s;
            animation-delay: 1.2s;
          }

          &:nth-child(8) {
            animation-duration: 3.1s;
            animation-delay: 1.8s;
          }

          &:nth-child(9) {
            animation-duration: 3.6s;
            animation-delay: 0.3s;
          }

          &:nth-child(10) {
            animation-duration: 2.7s;
            animation-delay: 0.9s;
          }

          &:nth-child(11) {
            animation-duration: 3.3s;
            animation-delay: 1.4s;
          }

          &:nth-child(12) {
            animation-duration: 3.8s;
            animation-delay: 0.6s;
          }

          &:nth-child(13) {
            animation-duration: 2.6s;
            animation-delay: 1.1s;
          }

          &:nth-child(14) {
            animation-duration: 3.9s;
            animation-delay: 0.4s;
          }

          &:nth-child(15) {
            animation-duration: 3.0s;
            animation-delay: 1.6s;
          }

          &:nth-child(16) {
            animation-duration: 3.5s;
            animation-delay: 0.7s;
          }

          &:nth-child(17) {
            animation-duration: 2.8s;
            animation-delay: 1.3s;
          }

          &:nth-child(18) {
            animation-duration: 3.2s;
            animation-delay: 0.1s;
          }

          &:nth-child(19) {
            animation-duration: 3.7s;
            animation-delay: 1.7s;
          }

          &:nth-child(20) {
            animation-duration: 2.9s;
            animation-delay: 0.5s;
          }
        }
      }
    
  }
} 

/* 더 복잡한 둥실둥실 애니메이션 */
@keyframes floatComplex {
  0% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }

  20% {
    transform: translateY(-8px) translateX(3px) rotate(1deg);
  }

  40% {
    transform: translateY(-3px) translateX(-2px) rotate(-0.5deg);
  }

  60% {
    transform: translateY(-12px) translateX(1px) rotate(0.8deg);
  }

  80% {
    transform: translateY(-6px) translateX(-1px) rotate(-0.3deg);
  }

  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
}

/* 부드러운 그림자 애니메이션 */
@keyframes shadowFloat {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  50% {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 768px) {
  .main_keyword{
    padding: 20rem 3rem 10rem 3rem;
    h5{
      top: 10rem;
      left: 0;
      right: 0;
      text-align: center;
    }
    .inwrap{
      ul{
        li{
          font-size: 2.5rem;
          a{
            padding: 2rem;
          }
        }
      }
    }
  }
}


/* main_subject */
.main_subject{
  display:flex;
  align-items: center;
  /* min-height: 100dvh; */
  padding: 15rem 5rem;
  

  > .inwrap{
    width: calc(100dvw - 10rem);
    
    > ul {
      display:flex;
      justify-content: space-between;
      width: 100%;
      gap: 2rem;
      

      > li{
        position: relative;
        flex: 1;
        transition: all 0.4s ease-in-out;
        a{
          .txt{
            position: absolute;
            left: 50%;
            bottom: 3rem;
            z-index: 1;
            /* right: 3rem; */
            text-align: center;
            transition: all 0.4s ease-in-out;
            transform: translate(-50%, 00);
            width: 100%;
            
            h4{
              font-size: 4rem;
              line-height: 1;
              color: var(--fff);
              span{
                font-family: 'GounBatang';
                display: block;
                font-size: .7em;
                font-weight: 400;
                opacity: 0;
                transition: all 0.4s ease-in-out;
                margin-bottom: 10px;
              }
            }
          }
          .img{
            height: 74rem;
            overflow: hidden;
            width: 100%;
            position: relative;
            img{
              height: 75rem;
              max-width: 1000rem;
              position: absolute;
              left: 50%;
              top: 50%;
              transform: translate(-50%, -50%);
              filter: grayscale(100%) brightness(0.8);
              -webkit-filter: grayscale(100%) brightness(.8);
              transition: all 0.4s ease-in-out;
              display: block;
            }
          }
        }
        &:hover, &.active{
          flex: 470px;
          
          a{
            .txt{
              text-align:left;
              left: 3rem;
              transform: translate(0, 0);
              
              h4{
                span{
                  opacity:1;
                }
              }
            }
            .img{
              img{
                filter: grayscale(0%) brightness(1);
                -webkit-filter: grayscale(0%) brightness(1);
              }
            }
        }
      }
        &:first-child{
          a{
            .img{
              img{
                transform: translate(-65%, -50%);
              }
            }
          }
          &:hover, &.active{
            a{
              .img{
                img{
                  transform: translate(-50%, -50%) ;
                }
              }
            }
          }
        }
    }
  }
}
}

@media (max-width: 768px) {
  .main_subject{
    padding: 10rem 3rem;
    > .inwrap{
      width:calc(100dvw - 6rem);
      ul{
        display:flex;
        flex-wrap: wrap;
        gap: 1rem;
        li{
          flex: calc(50dvw - 3.5rem);
          
          a{
            .img{
              height:50dvw;
              img{
                height:50dvw;
              }
            }
          }
          &:hover, &.active{
            flex: auto;
            width: calc(50dvw - 3.5rem);
          }
        }
      }
    }
  }
}

/* main_interior */
.main_interior{
  display:flex;
  align-items: center;
  padding: 0rem 5rem 15rem 5rem;
  
  
  .inwrap{
    margin: 0 auto;
    max-width: 1808px;
    
    ul{
      display: flex;
      justify-content: space-between;
      gap: 2rem;
      flex-wrap: wrap;
      
      li{
        overflow:hidden;
        width: calc( 50% - 1rem);
        
      &:last-child{
        width: 100%;
        }
        img{
          display:block;
        }
      
      }
    }
  }
}

@media (max-width: 768px) {
  .main_interior{
    padding:0 3rem 10rem 3rem;
    .inwrap{
      ul{
        gap:1rem;
        li{
          width: 100%;
        }
      }
      }
    }
  }

