/* ==========================================================================
   お支払い方法 セクション (コンパクト1画面納め ✕ 2カラム均等整列)
   ========================================================================== */

.wimax-payment-compact {
  position: relative;
  /* メリハリをつけるダークトーン背景 ＋ オレンジネオン境界線 */
  background: rgba(13, 16, 23, 0.96);
  border-top: 1px solid rgba(255, 107, 0, 0.3);
  border-bottom: 1px solid rgba(255, 107, 0, 0.3);
  padding: 40px 0; /* 縦幅を抑えてPC1画面内に収める */
}

@media (min-width: 768px) {
  .wimax-payment-compact {
    padding: 60px 0;
  }
}

/* 統一フォーマット大見出し（余白を詰めてコンパクト化） */
.payment-section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 28px;
}

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

@media (min-width: 768px) {
  .payment-section-title {
    font-size: 40px;
    margin-bottom: 36px;
  }
}

/* --- 左右2カラムグリッド配置 --- */
.payment-compact-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 850px) {
  .payment-compact-grid {
    display: grid;
    /* 左340px固定 : 右可変（残りの横幅いっぱい） */
    grid-template-columns: 340px 1fr;
    align-items: center;
    gap: 40px;
  }
}

/* --- 左カラム：おすすめバッジ ＆ カード画像ボックス --- */
.payment-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* オレンジネオン吹き出しバッジ */
.payment-speech-badge-v4 {
  position: relative;
  background: linear-gradient(135deg, #ff8c00 0%, var(--color-primary) 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}

/* 吹き出しの三角しっぽ */
.payment-speech-badge-v4::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px 7px 0 7px;
  border-style: solid;
  border-color: var(--color-primary) transparent transparent transparent;
}

/* クレジットカード表示ボックス（ぼかしなし・くっきりサイバー仕様） */
.payment-card-box-v4 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 14px;
  box-sizing: border-box;
}

.payment-card-box-v4 img {
  width: 85px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)); /* ぼかしなし */
}

.card-box-ttl {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* --- 右カラム：見出し ＆ ブランド名羅列 ＆ 均等ロゴ ＆ 注意書き --- */
.payment-right-col {
  width: 100%;
  text-align: center;
}

@media (min-width: 850px) {
  .payment-right-col {
    text-align: left;
  }
}

.payment-right-ttl {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

/* 添付画像通りのブランド名羅列テキスト */
.payment-brand-names {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .payment-right-ttl { font-size: 20px; }
  .payment-brand-names { font-size: 13px; }
}

/* ロゴアイコンの5列均等グリッド（右側カラムの横幅いっぱいに100%ピッタリ配置） */
.payment-brand-grid-v4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* スマホは3列 */
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
}

@media (min-width: 600px) {
  .payment-brand-grid-v4 {
    grid-template-columns: repeat(5, 1fr); /* PC・タブレットは5列均等割で横一列 */
    gap: 10px;
  }
}

/* ロゴカード枠 */
.brand-item-v4 {
  width: 100%;
  height: 46px;
  background: #ffffff;
  border-radius: 6px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 107, 0, 0.3);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.brand-item-v4:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 5px 14px rgba(255, 107, 0, 0.4);
}

.brand-item-v4 img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .brand-item-v4 {
    height: 50px;
  }
}

/* 注意書き（破線ボーダーでロゴ幅と綺麗に一直線同期） */
.payment-notes-v4 {
  font-size: 11px;
  color: var(--color-text-sub);
  line-height: 1.45;
  border-top: 1px dashed rgba(255, 107, 0, 0.3);
  padding-top: 10px;
  width: 100%;
}

@media (min-width: 768px) {
  .payment-notes-v4 {
    font-size: 11.5px;
  }
}