/* ========================================
   sub.css - 下層ページ共通スタイル
======================================== */

/* ----------------------------------------
   SUB HERO（下層ページ用HEROエリア）
---------------------------------------- */
.sub-hero {
  position: relative;
  overflow: hidden;
}
.sub-hero picture {
  display: block;
  width: 100%;
  line-height: 0;
}
.sub-hero .hero-img {
  width: 100%;
  height: auto;
  display: block;
}
/* HEROテキストオーバーレイ */
.sub-hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1100px;
  padding: 0 40px;
  color: #fff;
  pointer-events: none;
}
.sub-hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.sub-hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}
.sub-hero-title span {
  color: #ffa000;
}
.sub-hero-desc {
  font-size: 14px;
  line-height: 1.8;
}

/* ----------------------------------------
   HEROエリア下部ボタン
   2カラム × 2段グリッド
---------------------------------------- */
.sub-hero-buttons {
  background: #fff;
  padding: 24px 0;
}
/* 2カラム2段グリッドコンテナ */
.sub-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  max-width: 700px;       /* ボタン画像幅に合わせて調整 */
  margin: 0 auto;
}
.sub-btn-img {
  display: block;
  transition: opacity 0.2s;
}
.sub-btn-img:hover {
  opacity: 0.8;
}
.sub-btn-img img {
  width: 100%;            /* グリッドセルいっぱいに伸縮 */
  height: auto;
  display: block;
}

/* ----------------------------------------
   グループ見出し（TOP「防災に関するお知らせ」見出しと同一体裁）
---------------------------------------- */
.sub-group-heading-block {
  background: #fff;
  padding: 64px 0 0;
  text-align: center;
}
.sub-group-heading {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid #cccccc;
  margin-bottom: 0;
  line-height: 1.4;
  color: #333;
}
/* グループ見出し直後のセクションは上余白を詰める */
.sub-group-heading-block + .sub-section,
.sub-group-heading-block + .sub-section.sub-section--gray {
  padding-top: 32px;
}

/* ----------------------------------------
   セクション区切り線
---------------------------------------- */
.sub-separator-block {
  background: #fff;
  padding: 48px 0 0;
}
.sub-separator-block + .sub-group-heading-block {
  padding-top: 0;
}
.sub-separator {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0;
}

/* ----------------------------------------
   SUB SECTION（縦積みレイアウト）
---------------------------------------- */
.sub-section {
  padding: 30px 0;
  background: #fff;
}
.sub-section--gray {
  background: #f7f7f7;
}

/* アイラベル（eyebrow） */
.sub-eyebrow {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.sub-eyebrow--orange { color: #ffa000; }
.sub-eyebrow--pink   { color: #ef46b5; }
.sub-eyebrow--teal   { color: #00bab2; }

/* セクションタイトル */
.sub-section-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #333;
}

/* セクション本文 */
.sub-section-body {
  font-size: 18px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 24px;
}

/* セクション画像（フル幅・縦積み） */
.sub-section-img {
  width: 100%;
  margin-bottom: 32px;
}
.sub-section-img img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}
/* 最後の画像は下マージン不要 */
.sub-section-img:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------
   ハイライトボックス（注目）
   デザインカンプに合わせて黄色背景・太字テキスト
---------------------------------------- */
.sub-highlight {
  background: #fff9c4;
  border: 2px solid #ffd600;
  border-radius: 6px;
  padding: 16px 24px;
  margin-bottom: 32px;
  text-align: center;
}
.sub-highlight-label {
  font-size: 13px;
  font-weight: 900;
  color: #333;
  background: #ffd600;
  display: inline-block;
  padding: 2px 12px;
  border-radius: 2px;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}
.sub-highlight-text {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  font-weight: 700;
}


/* ========================================
   SP（スマートフォン）レスポンシブ
======================================== */
@media (max-width: 768px) {

  /* SUB HERO */
  .sub-hero-text {
    padding: 0 16px;
  }
  .sub-hero-eyebrow {
    font-size: 11px;
  }
  .sub-hero-title {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .sub-hero-desc {
    display: none; /* SP時は非表示 */
  }

  /* ボタンエリア（SP：2カラム2段そのまま維持） */
  .sub-hero-buttons {
    padding: 16px 0;
  }
  .sub-btn-grid {
    max-width: 100%;
    gap: 8px;
  }

  /* グループ見出し */
  .sub-group-heading-block {
    padding: 36px 0 0;
  }
  .sub-group-heading {
    font-size: 24px;
  }

  /* セパレーター */
  .sub-separator-block {
    padding: 36px 0 0;
  }

  /* セクション */
  .sub-section {
    padding: 36px 0;
  }
  .sub-section-title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .sub-section-body {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .sub-section-img {
    margin-bottom: 20px;
  }
  .sub-highlight {
    margin-bottom: 24px;
    padding: 14px 16px;
  }
  .sub-highlight-text {
    font-size: 13px;
  }
}
.sub-waku-section {
  position: relative;
  padding: 60px 20px;
  background: #fff;
  border: 2px solid #bbb;
  outline: 2px solid #bbb;
  outline-offset: 8px;
  margin: 40px auto;
  max-width: 1000px;
}
/* オーバーレイ不要のため削除（空にする） */
.sub-waku-section::before {
  content: none;
}
/* 訓練実施の枠組み：グレー2重ボーダー枠 */
.sub-waku-section {
  padding: 40px 40px;
  background: #fff;
  border: 2px solid #bbb;
  outline: 2px solid #bbb;
  outline-offset: 8px;
  margin: 12px auto;
  max-width: 1000px;
}
.sub-waku-section::before {
  content: none;
}

/* 本文テキスト（白→ダーク） */
.sub-waku-body {
  color: #444;
  margin:10px 0;
  font-size: 18px;  
}

/* 写真：中央配置 */
.sub-waku-img {
  display: flex;
  justify-content: center;
}
.sub-waku-img img {
  width: auto;
  max-width: 80%;
}

/* テキスト見出しサブタイトル（白→ダーク） */
.sub-waku-subtitle {
  color: #333;
  font-weight:bold;
  font-size: 20px;
  max-width: 10px 0;
}

/* 区切り線（白→グレー） */
.sub-waku-divider {
  border-top: 1px solid #ddd;
}
.sub-waku-heading-img {
  margin: auto;
}
