﻿/* --------------------------------
  Hero
-------------------------------- */

/* ------ slide image ------- */
.hero-slide__img {
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-name: slideAnime;
  animation-timing-function: ease;
  display: block;
  min-height: 345px;
  object-fit: cover;
  opacity: 0;
  width: 100%;
}

.hero-slide__item:nth-of-type(1) .hero-slide__img {
  animation-delay: 0s;
}

.hero-slide__item:nth-of-type(2) .hero-slide__img {
  animation-delay: 2s;
}

.hero-slide__item:nth-of-type(3) .hero-slide__img {
  animation-delay: 3s;
}

@keyframes slideAnime {
  0% {
    opacity: 0;
  }

  16% {
    opacity: 1;
  }

  33% {
    opacity: 1;
  }

  49% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
}

/* ------ hero erea ------- */
.hero {
  height: 345px;
  overflow: hidden;
  position: relative;
background-color: white;
}

.hero__inner {
  margin: 0 auto;
  width: 1000px;
}

/* ------ hero title ------- */
.hero__title {
  font-size: 50px;
  font-weight: bold;
  left: 0;
  position: absolute;
  right: 0;
  text-align: right;
  top: 45%;
  transform: translateY(-50%);
  width: 100%;
}

.hero-slide__item {
  bottom: 0;
  height: 100%;
  position: absolute;
  right: -10%;
  width: 110%;
}