/*
* {
  box-sizing: border-box;
}
*/

#business {
  display: flex;
  flex-direction: column;
  width: 100%;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

#business .content_wrap:hover {
  flex: 2;
}
#business .content_wrap:hover:after {
  opacity: 0; /* 오버시 배경 투명도 */
}
#business .content_wrap:hover #business .content_wrap .content {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
  transition:
    opacity 0.5s 0.5s,
    -webkit-transform 0.5s 0.5s;
  transition:
    opacity 0.5s 0.5s,
    transform 0.5s 0.5s;
  transition:
    opacity 0.5s 0.5s,
    transform 0.5s 0.5s,
    -webkit-transform 0.5s 0.5s;
}

#business .content_wrap {
  flex: 1;
  position: relative;
  min-height: 35vh; /* 모바일 높이 */
  border-bottom: 1px solid #c9c9c9;
  overflow: hidden;
  z-index: 1;
  transition:
    flex-grow 0.5s,
    opacity 0.5s;
}

#business .content_wrap:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  transition:
    width 0.5s,
    -webkit-transform 0.5s;
  transition:
    transform 0.5s,
    width 0.5s;
  transition:
    transform 0.5s,
    width 0.5s,
    -webkit-transform 0.5s;
}
#business .content_wrap:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0;
  transition: opacity 0.5s;
}

#business .content_wrap:nth-child(1):before {
  background-color: #000;
  background-image: url(../images/main_business_02.jpg);
  background-position: center;
  background-size: cover;
}
.hide-images #business .content_wrap:nth-child(1):before {
  background-image: none;
}

#business .content_wrap:nth-child(2):before {
  background-color: #000;
  background-image: url(../images/main_business_03.jpg);
  background-position: center;
  background-size: cover;
}
.hide-images #business .content_wrap:nth-child(2):before {
  background-image: none;
}

#business .content_wrap:nth-child(3):before {
  background-color: #000;
  background-image: url(../images/main_business_05.png);
  background-position: left;
  background-size: cover;
}
.hide-images #business .content_wrap:nth-child(3):before {
  background-image: none;
}

#business .content_wrap:nth-child(4):before {
  background-color: #000;
  background-image: url(../images/main_business_04.jpg);
  background-position: center;
  background-size: cover;
}
.hide-images #business .content_wrap:nth-child(4):before {
  background-image: none;
}

#business .content_wrap:nth-child(5):before {
  background-color: #000;
  background-image: url(../images/main_product_05.jpg);
  background-position: center;
  background-size: cover;
}
.hide-images #business .content_wrap:nth-child(5):before {
  background-image: none;
}

#business .content_wrap:before {
  background-color: #000;
}
#business .content_wrap:after {
  opacity: 0.5; /* 배경 기본 투명도 */
}
#business .content_wrap:#business .content_wrap .content {
  display: none;
}

/* button {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  font-size: 10px;
  text-transform: uppercase;
  color: white;
  background-color: black;
  border: none;
  outline: none;
  cursor: pointer;
}*/

@media (min-width: 630px) {
  #business {
    flex-direction: row;
    width: 100%;
    margin-left: 0;
  }

  #business .content_wrap:hover #business .content_wrap .content {
    -webkit-transform: translateY(0) skewX(0);
    transform: translateY(0) skewX(0);
  }

  #business .content_wrap {
    width: 33%;
    border-right: 1px solid #c9c9c9;
    height: 100vh; /* pc 높이 */
    margin-right:;
    -webkit-transform: skewX(0) translateZ(0);
    transform: skewX(0) translateZ(0);
  }
  #business .content_wrap:before {
    left:;
    width: 100%;
    -webkit-transform: skewX(0);
    transform: skewX(0);
  }
  #business .content_wrap .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 10%; /* pc 텍스트 박스 위치 */
    right: 0;
    left: 0;
    margin: auto;
    width: 100%;
    height:;
    text-align: left;
    color: #;
    z-index: 1;
    opacity: 1;
    -webkit-transform: translateY(0) skewX(0);
    transform: translateY(0) skewX(0);
    transition:
      opacity 0.5s,
      -webkit-transform 0.5s;
    transition:
      opacity 0.5s,
      transform 0.5s;
    transition:
      opacity 0.5s,
      transform 0.5s,
      -webkit-transform 0.5s;
  }

  #business .content_wrap a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 2;
  }

  /* 텍스트 */
  #business .content_wrap .content h2 {
    display: block;
    margin: 10px 0 15px;
    font-size: 1.6vw;
    color: #fff;
  }
  #business .content_wrap .content h3 {
    font-size: 1em;
    font-weight: 500;
    color: #2ab3f4;
  }
  #business .content_wrap .content p {
    font-size: 1em;
    color: #fff;
    text-align: center;
  }
  /* #business .content_wrap .content p:after {content :""; display:block; background:#fff; margin:10px auto 15px; width:22px; height:2px; } */
  #business .content_wrap .content span {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    margin-top: 25px;
    padding: 3px 15px;
    font-size: 0.9em;
    color: #fff;
    text-align: center;
  }
}

@media (max-width: 767px) {
  #business .content_wrap .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 8%; /* 모바일 텍스트 박스 위치 */
    right: 0;
    left: 0;
    margin: auto;
    width: 100%;
    height:;
    text-align: center;
    color: white;
    z-index: 3;
    opacity: 1;
    -webkit-transform: translateY(0) skewX(0);
    transform: translateY(0) skewX(0);
    transition:
      opacity 0.5s,
      -webkit-transform 0.5s;
    transition:
      opacity 0.5s,
      transform 0.5s;
    transition:
      opacity 0.5s,
      transform 0.5s,
      -webkit-transform 0.5s;
  }

  #business .content_wrap a {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  /* 텍스트 */
  #business .content_wrap .content h2 {
    display: block;
    margin: 10px 0;
    font-size: 1.5em;
    color: #fff;
  }
  #business .content_wrap .content h3 {
    font-size: 1em;
    font-weight: 500;
    color: #2ab3f4;
  }
  #business .content_wrap .content p {
    font-size: 1em;
    color: #fff;
    text-align: center;
  }
  /* #business .content_wrap .content p:after {content :""; display:block; background:#fff; margin:10px auto 15px; width:22px; height:2px; } */
  #business .content_wrap .content span {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    margin-top: 15px;
    padding: 3px 12px;
    font-size: 0.9em;
    color: #fff;
    text-align: center;
  }
}
