/* 共通 */
.hero{
  background-image: url("../assets/index_hero.webp");
  background-repeat: no-repeat;
  background-position: left bottom; /* 左を優先表示 */
  background-size: cover;           /* PCはしっかり敷き詰め */
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1920/840;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translateY(-50%);
}

/* 画像サイズレスポンシブ */
.hero-text img {
  width: 23.6vw;
}

.hero-text .sub {
  font-size:clamp(16px, 1.04vw, 20px);
  color: #3f8db6;
  font-feature-settings: "palt";
}

/* タブレット対応 */
@media (max-width: 1080px) {
  .hero-text {
    left: 10%;
  }

  .hero-text .sub{
    font-size: 1.48vw;
  }
}

@media (max-width: 768px) {
  .hero {
    background-image: url("../assets/sp_index_hero.webp");
    background-size: cover;         /* 画面幅いっぱいに拡大縮小 */
    background-repeat: no-repeat;   /* 繰り返しなし */
    width: 100%;                    /* 横幅いっぱい */                  /* 高さは画面の半分 */
    aspect-ratio: 750/700;
  }
  .hero-text {
    top: 16%;
    left: 50%;
    transform: translateX(-50%);
   width: 100%;
  }
  .hero-text img {
    width: 61vw;
  }

  .hero-text .sub {
    font-size: clamp(14px, 2.6vw, 20px);
    width: 90%;
    text-align: center;
  }
}