.first-view {
    position: relative;
    height: 100svh;
    overflow: hidden;
}

/* 各スライド帯の共通設定 */
.slide {
    position: absolute;
    left: -100%;
    width: 100%;
    opacity: 1;
    animation-fill-mode: forwards;
}

.slide img {
    height: 100%;
    overflow: hidden;
}

.slide>p {
    position: absolute;
    top: 50%;
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
}

/* 各スライド個別設定 */
.slide1 {
    top: 0;
    height: 33.33%;
    animation: slideIn 1s ease-out 0s forwards, fadeOut 1s ease-out 3s forwards;
}

.slide2 {
    top: 33.33%;
    height: 33.33%;
    animation: slideIn 1s ease-out 0.5s forwards, fadeOut 1s ease-out 3s forwards;
}

.slide3 {
    top: 66.66%;
    height: 33.34%;
    animation: slideIn 1s ease-out 1s forwards, fadeOut 1s ease-out 3s forwards;
}

/* ロゴ */
.hero {
    z-index: 1;
    position: absolute;
	width:75%;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}
@media (min-width: 769px) {
    .hero{width:40%;max-width:550px;}
}

.hero-img01,
.hero-img02 {
    display: block;
    margin: 0 auto;
}

.hero-img01 {
    width: 30%;
}

.hero-img02 {
    width: 70%;
    margin: 1rem auto
}

.hero-text {
    color: #fff;
    font-size: 1.25rem;
    padding-top: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}
@media (min-width: 769px) {
    .hero-text {
		font-size:1.5rem;
		line-height:150%;
	}
}

.hero-background {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('assets/images/iwakisan2.webp');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.5s forwards;
}


@media (min-width: 769px) {
    .hero-background {
    background-position: center 80%;
  }
}


@media (min-width: 1100px) {
  .hero-background {
    background-position: center 60%;
  }
}


/* アニメーション定義 */
@keyframes slideIn {
    0% {
        left: -100%;
    }

    100% {
        left: 0;
    }
}
@media (min-width: 769px) {
    @keyframes slideIn {
    0% {
        left: -100%;
    }

    100% {
        left: 50%;
  transform: translateX(-25%);
    }
}
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

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

    100% {
        opacity: 1;
    }
}