@charset "utf-8";
#header {
  position: relative;
  width: 100%;
  height: 520px;
}

#header .nav-wrap {
  position: relative;
  width: 100%;
  background-color: rgba(0,0,0,0.2);
  z-index: 888;
}

.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  width: 1100px;
  margin: 0 auto;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.nav-menu .toogleBtn {
  display: none;
  position: relative;
  width: 20px;
  height: 20px;
}

.nav-menu .toogleBtn .top {
  position: absolute;
  left: 0;
  top: 1px;
  width: 100%;
  height: 2px;
  background-color: #fafaf6;
}
.nav-menu .toogleBtn .middle {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background-color: #fafaf6;
}
.nav-menu .toogleBtn .bottom {
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 2px;
  background-color:#fafaf6;
}  

.nav-menu .logo {
  margin-right: 400px;
}

.nav-menu .logo a {
  /* a tag는 부모 클래스로부터 color 속성을 상속받지 않는다 */
  color: inherit;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
}

.ul-menu {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.ul-menu > li > a {
  padding: 30px 40px;
  color: inherit;
}

/* li에 hover상태면 서브메뉴를 보이게 한다 */
.ul-menu > li:hover > ul.submenu {
  visibility: visible;
  z-index: 888;
}

.ul-menu ul.submenu {
  position: absolute;
  top: 100%;
  width: 140px;
  text-align: center;
  background: #fff;
  visibility: hidden;
  border-left: 1px solid #8a6756;
  border-right: 1px solid #8a6756;
  border-bottom: 1px solid #8a6756;
}

.ul-menu ul.submenu > li {
  padding: 10px 0px;
  font-weight: lighter;
  color: #424242;
}

#banner_wrap {
  position: absolute;
  width: 100%;
  bottom: 0;
  z-index:999;
}

.swiper-container {
  position: relative;
  width: 800px;
  height: 185px;
  margin: 0 auto;
  text-align: center;
}

.navi-arrow {
  position:absolute;
  top:50%;
  width:50px;
  height:60px;
  line-height:60px;  /* 컨텐츠(<,>)수직정렬 */
  text-align:center; /* 컨텐츠(<,>)수평정렬 */
  transform: translateY(-50%);  /* 요소 수직정렬 */
  cursor:pointer; 
  background:rgba(0,0,0,0.1);
  z-index:999;
}

.prev{left:-50px; border-radius:0px 10px 10px 0px;}
.next{right:-50px; border-radius:10px 0px 0px 10px;}

#banner_wrap.active .prev {left: 0;}
#banner_wrap.active .next {right: 0;}

#headerBg_wrap .headerBg_wrap_ul .bg {
  position: absolute;
  top:0; left:0; right:0; bottom:0;
}

#headerBg_wrap .headerBg_wrap_ul .bg.bg1 {
  /* background: linear-gradient(135deg, #3a60c2, #66beac); */
  background: linear-gradient(135deg, #f3dc43, #4acf72);
}

#headerBg_wrap .headerBg_wrap_ul .bg.bg2 {
  /* background: linear-gradient(135deg, #66beac, #3a60c2); */
  background: linear-gradient(135deg, #66beac, #3a60c2);
}

.main_text {
  width: 1100px;
  margin: 0 auto;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  line-height: 23px;
  padding-top: 50px;
}

.mtxt01 {
  position: relative;
  font-size: 24px;
  font-weight: bold;
}

.mtxt01::after {
  position: absolute;
  content: "";
  bottom: -5px;
  left: 0;
  width: 235px;
  height: 13px;
  background:rgba(209, 245, 6, 0.2);
}

.mtxt02 {
  text-align: center;
  padding-top: 50px;
  font-size: 24px;
  line-height: 100%;
}

.mtxt03 {
  text-align: center;
  font-weight: bold;
  font-size: 44px;
  line-height: 100%;
  padding-top: 10px;
  color: rgba(255,255,255,0.8);
}

.mtxt04 {
  text-align: center;
  font-size: 20px;
  line-height: 100%;
  padding-top: 45px;
  color: rgba(255,255,255,0.8);
}

#main-content {
  width: 1100px;
  margin: 0 auto;;
}

.ul_service {
  display: flex;
  justify-content: space-between;
  margin: 35px auto;
}

.ul_service li {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 300px;
  height: 250px;
  border: 1px solid #ddd;
  text-align: center;
  box-sizing: border-box;
}

.ul_service li img {
  width: 80px;
  height: 80px;
}

.ul_service li p {
  padding-top: 10px;
}

.ul_service li:hover {
  font-size: 17px;
  font-weight: bold;
}

.ul_service li span {position: absolute; background: #7ab929; transition: all 0.2s; }

/* 위쪽 좌 -> 우 선그리기 */        
.ul_service li span:nth-child(1) {left: -1px; top: -1px; width: 0; height: 2px; }
.ul_service li:hover span:nth-child(1) {width: 100%;}
/* 오른쪽 위 -> 아래 선그리기 */            
.ul_service li span:nth-child(2) {right: -1px; top: 0; width: 2px; height: 0;}
.ul_service li:hover span:nth-child(2) {height: 100%;}
/* 아래쪽 우 -> 좌 선그리기 */        
.ul_service li span:nth-child(3) {right: 0; bottom: -1px; width: 0; height: 2px;}
.ul_service li:hover span:nth-child(3) {width: 100%;}
/* 왼쪽 아래 -> 위 선그리기 */    
.ul_service li span:nth-child(4) {left: -1px; bottom: 0; width: 2px; height: 0;}
.ul_service li:hover span:nth-child(4) {height: 100%;}

.mobile_ver {
  display: none;
}

/*================ 반응형 처리 ============= */
@media ( max-width: 768px ) { 
  
  #header {
    height: 250px;
  }

  #main-content,
  .main_text {
    width: 100%;
  }

  .swiper-container {
    width: auto;
    height: 50px;
  }

  .mtxt01 {
    display: none;
  }

  .mtxt02 {
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 0;
    font-size: 1rem;
  }
  .mtxt03 {
    padding-left: 10px;
    font-size: 1.2rem;
  }

  .mtxt04 {
    font-size: 15px;
    padding: 30px 10px;
  }

  .ul_service {
    flex-wrap: wrap;
    margin: 0;
  }

  .ul_service li {
    width: 100%;
    height: 150px;
    margin: 10px 20px;
  }
  
  .nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 5px 0;
  }

  .nav-menu .logo {
    margin: 0;
  }

  .ul-menu {
    display: none;
    position: relative;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .ul-menu > li {
    width: 100%;
    padding: 5px 0;
    text-align: center;
    color: #fff;
  }

  .ul-menu > li:hover {
    background-color: #afb42b;
  }
  
  .ul-menu > li > a {
    padding: 0;
    color: #fff;
  }

  .submenu {
    display: none;
  }

  .nav-menu .toogleBtn {
    position: absolute;
    display: block;
    top: 6px;
    right: 20px;
  }

  .mobile_ver.active {
    display: flex;
    /* background: linear-gradient(135deg, #f3dc43, #4acf72); */
    background: linear-gradient(135deg, #66beac, #3a60c2);
  }
}