/* ==========================================================================
   オプション紹介セクション (透明背景 ✕ 変形段組みUI)
   ========================================================================== */

.wimax-option-section {
  position: relative;
  background: transparent; /* 背景透明で地柄（グリッド）を透過 */
  padding: 40px 0;
}

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

/* 見出し */
.option-section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 32px;
}

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

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

/* --- レイアウト構造（上段2つ ✕ 下段3つ） --- */
.option-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

/* 上段：大きめカード 2列 */
.option-grid-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .option-grid-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* 下段：均等割り 3列 */
.option-grid-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .option-grid-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* --- カード共通スタイル --- */
.option-card {
  position: relative;
  background: rgba(22, 22, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.option-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* タイトル ＆ 料金 */
.option-ttl {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.option-price {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  font-family: 'Arial Black', sans-serif;
  margin-bottom: 8px;
}

.price-unit {
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
  color: #d0d0d0;
}

/* リード文 */
.option-lead {
  font-size: 12px;
  color: #c0c0c0;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* 上段用：大きめカードの特別指定 */
@media (min-width: 768px) {
  .option-card-large {
    padding: 24px 22px;
  }
  .option-card-large .option-ttl {
    font-size: 18px;
  }
  .option-card-large .option-price {
    font-size: 28px;
  }
  .option-card-large .option-lead {
    font-size: 13px;
    margin-bottom: 18px;
  }
}

/* おすすめカード（端末補償プレミアム）の装飾 */
.option-card.is-recommend {
  border: 1.5px solid var(--color-primary);
  background: rgba(30, 24, 20, 0.9);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

.option-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 0 10px 0 10px;
}

/* 「詳細を見る」ボタン */
.option-btn-detail {
  margin-top: auto; /* カード最下部に揃える */
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-btn-detail:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* オレンジ強調ボタン */
.option-btn-orange {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.option-btn-orange:hover {
  background: var(--color-primary);
  color: #ffffff;
}


/* --- オプション用モーダル内コンテンツ装飾 --- */
.wimax-modal-text-content {
  text-align: left;
}

.option-modal-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.option-modal-list li {
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.5;
}

.option-modal-notes {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 12px;
}

.option-modal-notes p {
  font-size: 11px;
  color: var(--color-text-sub);
  margin-bottom: 4px;
  line-height: 1.4;
}
/* ==========================================================================
   SP専用：オプション横スライダー
   PC（768px以上）の既存グリッドには影響させない
   ========================================================================== */
.option-slider-nav {
  display: none;
}

@media (max-width: 767px) {
  .option-slider-shell {
    position: relative;
    margin: 0 -8px;
  }

  .option-grid-wrap {
    display: flex;
    flex-direction: row;
    gap: 14px;
    max-width: none;
    margin: 0;
    padding: 14px 34px 18px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 34px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .option-grid-wrap::-webkit-scrollbar {
    display: none;
  }

  /* SPでは上下段のグループ枠を外し、5カードを1本の横スライダーにする */
  .option-grid-top,
  .option-grid-bottom {
    display: contents;
  }

  .option-grid-wrap .option-card,
  .option-grid-wrap .option-card-large {
    flex: 0 0 calc(100% - 34px);
    min-width: 0;
    min-height: 220px;
    padding: 22px 20px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* タッチ操作時はhoverによる位置ずれを出さない */
  .option-grid-wrap .option-card:hover {
    transform: none;
  }

  .option-slider-nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 149, 0, 0.9);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 149, 0, 0.98) 0%, rgba(255, 92, 0, 0.98) 100%);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 120, 0, 0.38), 0 5px 14px rgba(0, 0, 0, 0.45);
    transform: translateY(-50%);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }

  .option-slider-nav span {
    display: block;
    margin-top: -3px;
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
  }

  .option-slider-prev {
    left: 2px;
  }

  .option-slider-next {
    right: 2px;
  }

  .option-slider-nav:active:not(:disabled) {
    transform: translateY(-50%) scale(0.94);
  }

  .option-slider-nav:disabled {
    opacity: 0.22;
    box-shadow: none;
    cursor: default;
  }
}
