/* 最初のビューポート全体を覆う */

.first.view {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* 背景画像 */

.first.view .image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* テキストボックス中央寄せ */

.box {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: inline-block;
  font-family: 'Chonburi', cursive;
  text-shadow: 0 0 6px #999;
  letter-spacing: 0.5em;
}

.box h1 {
  font-size: 6em;
  margin-bottom: 10px;
  line-height: 120%;
  color:#fff;
}

.box p {
  font-size: 2em;
  color:#fff;
}

.box div {
  height: 0.5vw;
  background-color: #fff;
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.scroll-indicator p {
  font-size: 20px;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 10px;
  animation: fadeText 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 25px solid white;
  animation: bounceArrow 1.2s infinite ease-in-out;
  opacity: 0.9;
}

/* アニメーション */
@keyframes bounceArrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes fadeText {
  0%, 100% {opacity: 0.7;}
  50% {opacity: 1;}
}

/* レスポンシブ対応 */

@media screen and (max-width: 767px) {
  .box h1 {
    font-size: 2.2em;
  }

  .box p {
    font-size: 1.3em;
  }
}

@media screen and (min-width: 768px) {
  .scroll-indicator span {
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 30px solid white;
  }
}