.hero {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.hero-box {
  position: absolute;
  width: 50%;
  height: 70%;
  background-color: #ffffff; /* 흰색 배경 */
  border-radius: 15px; /* 둥근 테두리 */
  border-color: black;
}
.hero-content {
  display: flex;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2vw;
}
.hero-title {
  font-size: 3vw;
  margin: 0;
  font-weight: bold;
}
.hero-subtitle {
  font-size: 1.3vw;
  margin: 2vw 0;
}
.hero-detail {
  margin-top: 5%;
  font-size: 1.2vw;
  font-weight: bold;
}

.hero-background-image {
  opacity: 0.3; /* 불투명도 0 ~ 1.0*/
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 5px;
}
.background-image-group {
  display: flex;
  width: calc((40vw + 10px) * 10);
  height: 50%;
}
.background-image-group:first-child {
  animation: scrollLeft 50s linear infinite; /* 왼쪽으로 스크롤 */
}
.background-image-group:last-child {
  animation: scrollRight 50s linear infinite; /* 오른쪽으로 스크롤 */
}
@keyframes scrollLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(calc(-1 * (20vw + 10px) * 5));
  }
}
@keyframes scrollRight {
  0% {
    transform: translateX(calc(-1 * (20vw + 10px) * 5));
  }
  100% {
    transform: translateX(0%);
  }
}

.bg-image {
  flex: 0 0 auto;
  width: 20vw;
  margin: 5px;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  position: relative;
}

.bg-image img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 시작하기 버튼 */
.start-button {
  padding: 3% 5%;
  background-color: #20c997;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 2.5vw;
  font-weight: bold;
  cursor: pointer;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.start-button:hover {
  background-color: #17a589;
  transform: translateY(-2px);
  color: black;
}

/* ㅡㅡㅡㅡㅡㅡ모바일ㅡㅡㅡㅡㅡㅡ */
@media screen and (max-width: 767px) {
  .hero-box {
    width: 80vw;
    height: 50vh;
  }
  .hero-title {
    font-size: 8vw;
    margin: 5%;
  }
  .hero-subtitle {
    font-size: 4.5vw;
    margin: 5%;
  }
  .hero-detail {
    font-size: 3vw;
    margin: 5%;
  }
  .start-button {
    font-size: 4vw;
    scale: 1.2;
    margin: 5%;
  }
  .hero-background-image {
    opacity: 0.3; /* 불투명도 0 ~ 1.0*/
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 5px;
  }
  .background-image-group {
    display: flex;
    width: calc((40vw + 10px) * 10);
    height: 50%;
  }
  .background-image-group:first-child {
    animation: scrollLeft 25s linear infinite; /* 왼쪽으로 스크롤 */
  }
  .background-image-group:last-child {
    animation: scrollRight 25s linear infinite; /* 오른쪽으로 스크롤 */
  }
  @keyframes scrollLeft {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(calc(-1 * (40vw + 10px) * 5));
    }
  }
  @keyframes scrollRight {
    0% {
      transform: translateX(calc(-1 * (40vw + 10px) * 5));
    }
    100% {
      transform: translateX(0%);
    }
  }
  .bg-image {
    flex: 0 0 auto;
    width: 40vw;
    margin: 5px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* ㅡㅡㅡㅡㅡㅡ태블릿ㅡㅡㅡㅡㅡㅡ */
@media screen and (min-width: 768px) and (max-width: 959px) {
  .hero-box {
    width: 70vw;
    height: 50vh;
  }
  .hero-title {
    font-size: 7vw;
    margin: 0;
  }
  .hero-subtitle {
    font-size: 4vw;
  }
  .hero-detail {
    font-size: 3vw;
  }
  .start-button {
    font-size: 3vw;
    scale: 1.4;
    margin: 4%;
  }
  .background-image-group {
    display: flex;
    width: calc((30vw + 10px) * 10);
    height: 50%;
  }
  .background-image-group:first-child {
    animation: scrollLeft 30s linear infinite; /* 왼쪽으로 스크롤 */
  }
  .background-image-group:last-child {
    animation: scrollRight 30s linear infinite; /* 오른쪽으로 스크롤 */
  }
  @keyframes scrollLeft {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(calc(-1 * (30vw + 10px) * 5));
    }
  }
  @keyframes scrollRight {
    0% {
      transform: translateX(calc(-1 * (30vw + 10px) * 5));
    }
    100% {
      transform: translateX(0%);
    }
  }
  .bg-image {
    flex: 0 0 auto;
    width: 30vw;
    margin: 5px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 959px) {
  .bg-image img {
    height: 100%;
  }
}
