/* =========================================
   ヒーローセクション全体（パララックス＆フルスクリーン）
========================================= */
.hero {
  background-image: url('https://asahi-iandr.co.jp/lp/img/30006558_m.jpg'); /*https://thumb.photo-ac.com/f9/f9661dd011de58c30154079ae948eefc_t.jpeg*/
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  box-sizing: border-box;
  padding: 40px 20px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgb(19 19 19 / 35%) 0%, rgb(34 34 34 / 28%) 100%);
  z-index: 1;
}

/* =========================================
   メインコンテンツ枠
========================================= */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  text-align: center;
  color: #ffffff;
}

/* =========================================
   バッジ
========================================= */
.hero-badge {
  display: inline-block;
  background: #ef4444;
  color: #ffffff;
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
  letter-spacing: 0.1em;
  border: 2px solid #fca5a5;
  animation: flash 3s infinite;
}

/* =========================================
   メインコピー（h1）※修正箇所
========================================= */
.hero h1 {
  /* スマホ〜PCで最適なサイズにしつつ、少し抑えめに */
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  line-height: 1.5;
  margin: 0 0 30px;
  font-weight: 900;
  text-shadow: 0 4px 10px rgb(0 0 0 / 28%);
  /* 変な位置での改行を防止 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero h1 em {
    font-style: normal;
    display: inline-block;
    background: #ffffff;
    color: #060709;
    padding: 4px 20px;
    margin: 8px 0;
    transform: skewX(-10deg);
    box-shadow: 6px 6px 0px #f7764c;
}

/* =========================================
   サブコピー
========================================= */
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  line-height: 1.8;
  margin-bottom: 40px;
  color: #e2e8f0;
  font-weight: bold;
}

.hero-sub strong {
  color: #fbbf24;
  font-size: 130%;
  border-bottom: 2px solid #fbbf24;
  padding-bottom: 2px;
}

/* =========================================
   特徴リスト
========================================= */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
}

.hero-features span {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* =========================================
   CTAボタンエリア
========================================= */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 600px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}

.hero-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: 900;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.btn-primary {
  background: #ea580c;
  color: #ffffff;
  box-shadow: 0 8px 0 #9a3412, 0 15px 20px rgba(0,0,0,0.4);
}

.btn-primary:hover, .btn-primary:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 #9a3412, 0 5px 10px rgba(0,0,0,0.4);
  background: #f97316;
}

.btn-secondary {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 8px 0 #166534, 0 15px 20px rgba(0,0,0,0.4);
}

.btn-secondary:hover, .btn-secondary:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 #166534, 0 5px 10px rgba(0,0,0,0.4);
  background: #4ade80;
}

.hero-note {
  font-size: 0.9rem;
  color: #ffffff;
  margin: 0;
  font-weight: bold;
}

/* =========================================
   アニメーション（修復済み）
========================================= */
@keyframes flash {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0.5; }
}

/* =========================================
   スマホ用微調整・改行コントロール
========================================= */
/* PC表示では改行しない */
.sp-br {
  display: none;
}

@media (max-width: 599px) {
  .hero-features span {
    width: 100%;
    text-align: left;
    display: block;
  }
  
  /* スマホ表示の時だけ改行を有効にする */
  .sp-br {
    display: block;
  }
}