/* ==========================================================================
   ご利用開始までの流れ セクション (サイバーブラケット ✕ ネオン発光案)
   ========================================================================== */

.wimax-flow-section {
  position: relative;
  background: transparent; /* 地の背景（グリッド模様）を透過 */
  padding: 40px 0;
}

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

/* 統一フォーマット大見出し */
.flow-section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 36px;
}

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

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

/* --- フローコンテナ配置 --- */
.flow-steps-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 850px) {
  .flow-steps-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 12px;
  }
}

/* --- 個別ステップカード（サイバーフレーム仕様） --- */
.flow-step-card {
  position: relative;
  background: rgba(18, 21, 28, 0.9);
  border: 1px solid rgba(0, 198, 255, 0.25); /* 基本はシアン系のうっすら光る枠 */
  border-radius: 12px;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(0, 198, 255, 0.05);
  backdrop-filter: blur(8px);
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.flow-step-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 107, 0, 0.25);
  transform: translateY(-3px);
}

/* 上部のネオングラデーションライン */
.flow-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  box-shadow: 0 0 8px var(--color-primary);
}

/* --- 四隅のサイバーL字ピン（コーナーパーツ） --- */
.corner-pt {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--color-primary);
  border-style: solid;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.flow-step-card:hover .corner-pt {
  opacity: 1;
}

.corner-pt.top-left {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 12px;
}

.corner-pt.top-right {
  top: -1px;
  right: -1px;
  border-width: 2px 2px 0 0;
  border-top-right-radius: 12px;
}

.corner-pt.bottom-left {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 12px;
}

.corner-pt.bottom-right {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 12px;
}

/* ヘッダー（STEPバッジ ＋ タイトル） */
.flow-step-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
}

.step-badge {
  background: linear-gradient(135deg, #ff8c00 0%, var(--color-primary) 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 14px;
  border-radius: 20px;
  font-family: 'Arial Black', sans-serif;
  letter-spacing: 1px;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.4);
}

.step-ttl {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.3;
}

/* 画像エリア */
.flow-img-wrap {
  position: relative;
  width: 100%;
  max-width: 180px;
  height: 130px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-glow-spot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.2) 0%, transparent 70%);
  filter: blur(15px);
  z-index: 1;
}

.flow-img-wrap img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.8));
}

/* 本文テキスト：サイバー情報パネル風 */
.flow-txt {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  font-size: 15px;
  color: #e7edf5;
  line-height: 1.65;
  margin: 0;
  padding: 14px 16px 14px 18px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(0, 174, 255, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, rgba(16, 24, 36, 0.92) 0%, rgba(9, 14, 24, 0.96) 100%);
  border: 1px solid rgba(76, 198, 255, 0.26);
  border-left: 2px solid rgba(255, 112, 0, 0.82);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 0 18px rgba(0, 167, 255, 0.035),
    0 5px 14px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

/* 上辺に短いデータラインを置き、情報パネルらしさを追加 */
.flow-txt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  width: 74px;
  height: 1px;
  background: linear-gradient(90deg, #ff7900 0%, #55d8ff 68%, transparent 100%);
  box-shadow: 0 0 8px rgba(72, 200, 255, 0.38);
}

/* 右下にHUD風の小さなセグメントを追加 */
.flow-txt::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 7px;
  width: 34px;
  height: 2px;
  opacity: 0.55;
  background: repeating-linear-gradient(
    90deg,
    rgba(80, 208, 255, 0.85) 0 5px,
    transparent 5px 8px
  );
}

/* ステップ間の矢印アロー */
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.6);
  padding: 8px 0;
}

.arrow-pc {
  display: none;
  font-size: 20px;
}

.arrow-sp {
  display: block;
  font-size: 18px;
  animation: bounceDown 1.5s infinite;
}

@media (min-width: 850px) {
  .arrow-pc {
    display: block;
    animation: bounceRight 1.5s infinite;
  }
  .arrow-sp {
    display: none;
  }
  .flow-arrow {
    padding: 0 4px;
  }
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes bounceRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}