/* =========================
   HERO直下：画像 + テキスト（SS風）
========================= */
.heroAfter{
  padding: clamp(22px, 4vw, 46px) 0;
}

.wrap--heroAfter{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2vw;
}

.heroAfter__card{
  background:#fff;
  border-radius: 22px;
  padding: clamp(14px, 2vw, 18px);
  box-shadow: 0 14px 38px rgba(0,0,0,.10);
  overflow: hidden;

  display: grid;
  grid-template-columns: 1fr;      /* 上：画像 / 下：テキスト */
  grid-template-rows: auto auto;
  gap: clamp(12px, 2vw, 18px);
}

.heroAfter__media{
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
}
.heroAfter__media img{
  width: 100%;
  height: auto;
  display: block;
}

/* テキスト */
.heroAfter__kicker{
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: .02em;
}

.heroAfter__title{
  margin: 0 0 12px;
  font-weight: 1000;
  line-height: 1.2;
  font-size: clamp(22px, 2.3vw, 34px);
}

.heroAfter__lead{
  margin: 0 0 14px;
  line-height: 1.7;
  font-weight: 700;
}

.heroAfter__points{
  margin: 0 0 16px;
  padding-left: 1.1em;
  line-height: 1.7;
}

.heroAfter__actions{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

/* =========================
   CTA（下部セクションの余白）
========================= */
.section--cta{
  padding: 22px 0 34px;
}

/* =========================
   CTA Button（共通：上部/下部で同じ見た目＆同じ幅）
========================= */
.heroAfter a.ctaBtn,
.section--cta a.ctaBtn{
  display: flex;
  align-items: center;
  justify-content: center;

  width: min(520px, 92vw);         /* ← 上下で同じ幅 */
  margin-inline: auto;

  padding: 16px 26px;
  border-radius: 999px;

  background: var(--yellow, #E9C85B);
  color: #111;
  font-weight: 1000;
  font-size: clamp(16px, 2.0vw, 20px);
  letter-spacing: .02em;

  text-decoration: none;
  border: 0;
  box-shadow: 0 12px 26px rgba(0,0,0,.14);

  transition: transform .15s ease, filter .15s ease;
}

.heroAfter a.ctaBtn:hover,
.section--cta a.ctaBtn:hover{
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.heroAfter a.ctaBtn:active,
.section--cta a.ctaBtn:active{
  transform: translateY(0px);
}


.afterProblems{
  padding: clamp(26px, 4vw, 44px) 0;
  background: #fff; /* 次のセクションが白なら揃う。不要なら消してOK */
}

.afterProblems__title{
  margin: 0;
  text-align: center;
  font-weight: 1000;
  letter-spacing: .03em;
  font-size: clamp(22px, 3.2vw, 40px);
}

/* =============================================
   HERO 修正 (注釈の白文字化)
============================================= */
.hero__note {
  color: #fff;
  opacity: 0.9;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* =============================================
   HeroAfter Story Styling (ストーリー部分の装飾)
============================================= */

/* ストーリー全体 */
.heroAfter__story {
  margin-bottom: 32px;
}

/* 本文テキスト */
.storyText {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 24px;
  text-align: justify; /* 両端揃えで本の文章っぽく */
}

/* サブ見出し（◆ 最適な旅先を〜） */
.storySubTitle {
  font-size: 16px;
  font-weight: 800;
  margin: 30px 0 12px;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px; /* アイコンがある場合の隙間 */
}
/* アイコン的な装飾（◆）をCSSでつける場合 */
.storySubTitle::before {
  content: "◆";
  color: #ffe600; /* ブランドカラーの黄色 */
  font-size: 14px;
}

/* 強調（太字） */
.storyBold {
  font-weight: 800;
  color: #111;
}

/* ハイライト（国内マーケット・海外マーケット） */
.storyHighlight {
  font-weight: 800;
  background: linear-gradient(transparent 70%, #ffe600 70%); /* 黄色の蛍光ペン風 */
  padding: 0 2px 2px;
}

/* =============================================
   Action Box (シミュレーション誘導エリア)
============================================= */
.heroAfter__actionBox {
  background: #f8fbfe; /* 非常に薄い青グレー（清潔感） */
  border: 2px solid #edf2f7;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ボックス内の誘導文 */
.actionBox__lead {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
  color: #111;
}

/* ボタン周り */
.actionBox__btnWrap {
  width: 100%;
  margin-bottom: 12px;
}

/* 注釈 */
.actionBox__note {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  text-align: left; /* 注釈は左寄せの方が読みやすい場合が多い（お好みでcenterに） */
  width: 100%;
  max-width: 480px; /* 広がりすぎないように */
}

@media (min-width: 640px) {
  .actionBox__note {
    text-align: center; /* PCなど広い画面では中央寄せ */
  }
}

/* =============================================
   Utilities (つなぎ部分など)
============================================= */
.preProblems {
  padding: 40px 0 20px;
}

.centerTitle {
  text-align: center;
  margin: 0 auto;
}

/* スマホ調整 */
@media (max-width: 640px) {
  .heroAfter__title {
    font-size: 24px;
    line-height: 1.3;
  }
  .storyText {
    font-size: 14px;
    line-height: 1.8;
  }
  .actionBox__note {
    font-size: 11px;
  }
}

/* =============================================
   HeroAfter Story Styling (修正版)
   スマホでの文字切れを防ぐ設定を追加
============================================= */

/* コンテンツエリア全体 */
/* Gridアイテム内で幅が突き抜けるのを防ぐ魔法の記述 */
.heroAfter__content {
  min-width: 0; 
  width: 100%;
  word-wrap: break-word; /* 長い単語での折り返し */
  overflow-wrap: break-word; /* モダンブラウザ用 */
}

/* ストーリー全体 */
.heroAfter__story {
  margin-bottom: 32px;
  width: 100%; /* 幅を親に合わせる */
}

/* 本文テキスト */
.storyText {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 24px;
  text-align: justify; /* 両端揃え */
  
  /* ▼ここが重要：強制的に折り返す設定 */
  word-break: break-word; 
  white-space: normal;
}

/* サブ見出し（◆ 最適な旅先を〜） */
.storySubTitle {
  font-size: 16px;
  font-weight: 800;
  margin: 30px 0 12px;
  color: #111;
  
  /* Flexboxでアイコンと並べる場合 */
  display: flex;
  align-items: flex-start; /* 上揃えに変更（複数行になった時に崩れないように） */
  gap: 8px;
  
  /* 折り返し設定 */
  flex-wrap: wrap; 
  line-height: 1.5;
}

/* アイコン装飾 */
.storySubTitle::before {
  content: "◆";
  color: #ffe600;
  font-size: 14px;
  flex-shrink: 0; /* アイコンが潰れないようにする */
  margin-top: 2px; /* 位置微調整 */
}

/* ハイライト（国内マーケット・海外マーケット） */
.storyHighlight {
  font-weight: 800;
  background: linear-gradient(transparent 77%, #ffe600 70%);
  padding: 0 2px 2px;
  display: inline; /* インライン要素であることを明示 */
  box-decoration-break: clone; /* 改行した時も背景色を維持（ベンダープレフィックスが必要な場合あり） */
  -webkit-box-decoration-break: clone;
}

/* =============================================
   スマホ調整 (再確認)
============================================= */
@media (max-width: 640px) {
  /* カードの余白調整：画面が狭い時は少し詰める */
  .heroAfter__card {
    padding: 20px 16px; /* 左右余白を確保 */
  }

  /* タイトルが大きすぎてはみ出さないように */
  .heroAfter__title {
    font-size: 22px; 
    line-height: 1.4;
    word-break: break-word;
  }
  
  .storyText {
    font-size: 14px; /* スマホでは少し文字を小さくしても良い */
    text-align: left; /* スマホでは左揃えの方が読みやすい場合がある（お好みで） */
  }
}

/* =============================================
   ボタンのはみ出し修正
============================================= */

/* 白いボックス内のボタンだけ、幅の計算方法を変える */
.heroAfter .heroAfter__actionBox a.ctaBtn {
  width: 100%;        /* 親要素の幅いっぱいに合わせる */
  max-width: 520px;   /* ただし520px以上にはならないように制限 */
  box-sizing: border-box; /* パディングを含めて幅を計算 */
}

/* ボタンを囲んでいるラッパーの位置調整 */
.actionBox__btnWrap {
  width: 100%;
  display: flex;
  justify-content: center; /* 中央寄せ */
  margin-bottom: 12px;
}