/* ==========================================================================
   選ばれる理由セクション (スマホ1列：左画像・右テキストレイアウト)
   ========================================================================== */

.wimax-reason-section {
  position: relative;
  padding: 20px 0;
}

@media (min-width: 768px) {
  .wimax-reason-section {
    padding: 20px 0 80px;
  }
}

/* 見出し */
.reason-title {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.reason-title-sub {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .reason-title {
    font-size: 40px;
    margin-bottom: 40px;
  }
  .reason-title-sub {
    font-size: 14px;
  }
}

/* --- カードグリッド構造 --- */
.reason-grid {
  display: flex;
  flex-direction: column; /* スマホ：縦1列に並べる */
  gap: 12px;
}

@media (min-width: 768px) {
  .reason-grid {
    /* PC：4列横並びグリッド */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

/* --- 個別カード --- */
.reason-card {
  position: relative;
  background: rgba(22, 22, 28, 0.9);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 12px;
  padding: 16px 14px 14px 14px;
  /* スマホ：横並び（左画像 / 右テキスト） */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.reason-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
}

@media (min-width: 768px) {
  .reason-card {
    /* PC：縦方向の配置に戻す */
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 14px 20px;
  }
  .reason-card:hover {
    transform: translateY(-4px);
  }
}

/* --- ナンバリング（01〜04） --- */
.reason-num {
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 13px;
  font-weight: 900;
  color: var(--color-primary);
  font-family: 'Arial Black', sans-serif;
  z-index: 2;
}

@media (min-width: 768px) {
  .reason-num {
    top: 10px;
    left: 14px;
    font-size: 18px;
  }
}

/* --- 左側：イラスト枠 --- */
.reason-img-wrap {
  width: 90px;  /* スマホ版の画像幅固定 */
  height: 90px;
  flex-shrink: 0; /* 画像が潰れないように設定 */
  margin-top: 10px; /* ナンバリングとの被り防止 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.reason-img-wrap img {
  border-radius: 8px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (min-width: 768px) {
  .reason-img-wrap {
    width: 100%;
    max-width: 350px;
    height: 160px;
    margin: 10px 0 10px;
  }
}

/* --- 右側：テキストまとめエリア --- */
.reason-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left; /* スマホ：左揃えで見やすく */
}

@media (min-width: 768px) {
  .reason-card-body {
    width: 100%;
    align-items: center;
    text-align: center; /* PC：中央揃え */
    height: 100%;
  }
}

/* カード見出し */
.reason-card-ttl {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .reason-card-ttl {
    font-size: 18px;
    margin-bottom: 12px;
    min-height: 2.7em;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* 本文テキスト */
.reason-card-txt {
  font-size: 12px;
  color: #d0d0d0;
  line-height: 1.4;
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .reason-card-txt {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
  }
}

/* 補足注釈（小文字） */
.reason-card-note {
  font-size: 10px;
  color: var(--color-text-sub);
  line-height: 1.35;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  width: 100%;
}

@media (min-width: 768px) {
  .reason-card-note {
    font-size: 10px;
    margin-top: auto;
    padding-top: 6px;
  }
}