.hero {
  position: relative;
  text-align: center;
  color: #fff;
}

.hero .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  text-align: center;
}

.hero {
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden; /* 念のためはみ出し防止 */
}

.hero .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  text-align: center;
  word-wrap: break-word; /* 長い単語があっても折り返す */
}

.hero-title {
  font-size: 5vw;
  font-weight: bold;
  margin-bottom: 15px;
}

.hero p {
  font-size: 4vw;
  margin-bottom: 20px;
}

.hero a {
  display: inline-block;
  padding: 3vw 6vw;
  background: #28a745;
  color: #fff;
  font-size: 4vw;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap; /* ボタン内の文字が折り返されないように */
}

/* PC以上では固定サイズ */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 20px;
  }
  .hero a {
    font-size: 18px;
    padding: 15px 30px;
  }
}