/* ============================================
   Section 23: 緊急性（早い人が有利）
   ダイナミックブルーグラデーション
   スピード感・前進感、動きのあるデザイン
   ============================================ */

.urgency {
  position: relative;
  background: linear-gradient(135deg,
    #1A5A8A 0%,
    #2E7AB8 30%,
    #5BA4D9 65%,
    #2E7AB8 100%);
  background-size: 200% 200%;
  padding: 90px 20px 110px;
  overflow: hidden;
  animation: urgencyBgShift 12s ease-in-out infinite;
}

@keyframes urgencyBgShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* 上下のグラデライン区切り */
.urgency::before,
.urgency::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-yellow) 50%, transparent 100%);
  opacity: 0.6;
}
.urgency::before { top: 0; }
.urgency::after { bottom: 0; }

/* sp-only ヘルパー */
.urgency .sp-only { display: inline; }

/* ============================================
   斜めの流線（背景・スピード線）
   ============================================ */
.urgency__streaks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.urgency__streak {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%);
  transform-origin: left center;
  animation: urgencyStreakMove 4s linear infinite;
}

.urgency__streak--1 {
  top: 12%;
  left: -200px;
  width: 280px;
  transform: rotate(-15deg);
  animation-delay: 0s;
}
.urgency__streak--2 {
  top: 28%;
  left: -200px;
  width: 200px;
  transform: rotate(-15deg);
  opacity: 0.6;
  animation-delay: -1.2s;
  height: 1px;
}
.urgency__streak--3 {
  top: 45%;
  left: -200px;
  width: 320px;
  transform: rotate(-15deg);
  animation-delay: -2.4s;
}
.urgency__streak--4 {
  top: 62%;
  left: -200px;
  width: 240px;
  transform: rotate(-15deg);
  opacity: 0.7;
  animation-delay: -0.8s;
  height: 1px;
}
.urgency__streak--5 {
  top: 78%;
  left: -200px;
  width: 300px;
  transform: rotate(-15deg);
  animation-delay: -3s;
}
.urgency__streak--6 {
  top: 90%;
  left: -200px;
  width: 180px;
  transform: rotate(-15deg);
  opacity: 0.5;
  animation-delay: -1.8s;
  height: 1px;
}

@keyframes urgencyStreakMove {
  0% {
    transform: rotate(-15deg) translateX(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: rotate(-15deg) translateX(calc(100vw + 400px));
    opacity: 0;
  }
}

/* ============================================
   流れる粒子
   ============================================ */
.urgency__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.urgency__particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  filter: blur(1px);
  animation: urgencyParticleFly 5s linear infinite;
  opacity: 0;
}

.urgency__particle--1 { top: 15%;  left: -10px; animation-delay: 0s; }
.urgency__particle--2 { top: 35%;  left: -10px; width: 4px; height: 4px; animation-delay: -1.5s; }
.urgency__particle--3 { top: 50%;  left: -10px; width: 8px; height: 8px; animation-delay: -3s; }
.urgency__particle--4 { top: 70%;  left: -10px; animation-delay: -0.7s; }
.urgency__particle--5 { top: 22%;  left: -10px; width: 5px; height: 5px; animation-delay: -2.2s; }
.urgency__particle--6 { top: 85%;  left: -10px; width: 7px; height: 7px; animation-delay: -3.8s; }

@keyframes urgencyParticleFly {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(110vw); opacity: 0; }
}

/* ============================================
   インナー
   ============================================ */
.urgency__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 2;
}

/* ============================================
   メインタイトル
   ============================================ */
.urgency__title-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.urgency__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 199, 0, 0.18);
  border: 1px solid rgba(255, 199, 0, 0.6);
  border-radius: 30px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 24px;
  box-shadow: 0 0 24px rgba(255, 199, 0, 0.25);
  animation: urgencyBadgePulse 2s ease-in-out infinite;
}

@keyframes urgencyBadgePulse {
  0%, 100% { box-shadow: 0 0 24px rgba(255, 199, 0, 0.25); }
  50% { box-shadow: 0 0 32px rgba(255, 199, 0, 0.5); }
}

.urgency__badge-icon {
  font-size: 14px;
  filter: drop-shadow(0 0 6px rgba(255, 199, 0, 0.9));
  animation: urgencyBoltFlash 1.5s ease-in-out infinite;
}

@keyframes urgencyBoltFlash {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(-5deg); }
}

.urgency__badge-text {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--color-yellow-light);
}

.urgency__title {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text-white);
  line-height: 1.5;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.urgency__title-mark {
  position: relative;
  display: inline-block;
  color: var(--color-yellow);
  padding: 0 4px;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(255, 199, 0, 0.6);
}

/* ============================================
   後退（左に流れる）
   ============================================ */
.urgency__back {
  position: relative;
  background: rgba(15, 26, 48, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px 22px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

.urgency__back-lead {
  margin: 0 0 22px;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.urgency__hellip {
  letter-spacing: 0.1em;
  color: var(--color-yellow-light);
}

.urgency__back-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto 24px;
}

.urgency__back-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(232, 131, 92, 0.12);
  border: 1px solid rgba(232, 131, 92, 0.45);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

/* 左に流れるアニメーション（後退感の演出） */
.urgency__back-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(232, 131, 92, 0.25) 0%,
    transparent 50%);
  animation: urgencyBackSlide 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes urgencyBackSlide {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(-15px); opacity: 1; }
}

.urgency__back-arrow {
  position: relative;
  font-size: 22px;
  font-weight: 900;
  color: var(--color-coral-light);
  text-shadow: 0 0 12px rgba(232, 131, 92, 0.8);
  flex-shrink: 0;
  animation: urgencyBackArrow 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes urgencyBackArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

.urgency__back-text {
  position: relative;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-white);
  z-index: 1;
}

.urgency__back-warning {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-white);
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.urgency__warning-highlight {
  display: inline-block;
  color: var(--color-coral-light);
  font-weight: 800;
  background: linear-gradient(transparent 65%, rgba(232, 131, 92, 0.3) 65%);
  padding: 0 4px;
}

/* ============================================
   区切り（光のライン + 雷）
   ============================================ */
.urgency__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px auto;
  max-width: 320px;
}

.urgency__divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-yellow) 50%,
    transparent 100%);
  box-shadow: 0 0 8px rgba(255, 199, 0, 0.6);
}

.urgency__divider-bolt {
  font-size: 24px;
  color: var(--color-yellow);
  text-shadow: 0 0 16px rgba(255, 199, 0, 0.9);
  animation: urgencyBoltFlash 1.5s ease-in-out infinite;
}

/* ============================================
   前進（右に向かう）
   ============================================ */
.urgency__forward {
  text-align: center;
}

.urgency__forward-lead {
  margin: 0 0 30px;
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-yellow-light);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 225, 56, 0.6);
}

.urgency__forward-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* ============================================
   ダッシュ人物画像
   ============================================ */
.urgency__char-wrap {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}

/* 後ろのスピード線 */
.urgency__speed-lines {
  position: absolute;
  inset: -10px;
  pointer-events: none;
}

.urgency__speed-line {
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 199, 0, 0.9) 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 199, 0, 0.6);
  animation: urgencySpeedLine 1.5s ease-out infinite;
}

.urgency__speed-line--1 {
  top: 18%;
  left: -40px;
  width: 60px;
  animation-delay: 0s;
}
.urgency__speed-line--2 {
  top: 38%;
  left: -50px;
  width: 70px;
  animation-delay: 0.3s;
  height: 2px;
}
.urgency__speed-line--3 {
  top: 58%;
  left: -45px;
  width: 65px;
  animation-delay: 0.6s;
}
.urgency__speed-line--4 {
  top: 78%;
  left: -38px;
  width: 55px;
  animation-delay: 0.9s;
  height: 2px;
}

@keyframes urgencySpeedLine {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(40px); opacity: 0; }
}

/* カードフレーム */
.urgency__char-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 26, 48, 0.4);
  border: 2px solid var(--color-yellow);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 40px rgba(255, 199, 0, 0.4);
  z-index: 1;
  animation: urgencyCharBounce 1.8s ease-in-out infinite;
}

@keyframes urgencyCharBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-1deg); }
  75% { transform: translateY(-2px) rotate(1deg); }
}

.urgency__char-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.2) brightness(1.05) contrast(1.05);
}

/* 四隅のコーナー装飾 */
.urgency__char-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--color-yellow);
  border-style: solid;
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(255, 199, 0, 0.9));
}
.urgency__char-corner--tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.urgency__char-corner--tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.urgency__char-corner--bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.urgency__char-corner--br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

/* キャラ周りのキラキラ */
.urgency__char-sparkle {
  position: absolute;
  color: var(--color-yellow);
  font-size: 22px;
  pointer-events: none;
  text-shadow: 0 0 14px rgba(255, 199, 0, 0.9);
  animation: urgencySparkle 2s ease-in-out infinite;
  z-index: 3;
}
.urgency__char-sparkle--1 {
  top: -8px; right: -8px;
  animation-delay: 0s;
}
.urgency__char-sparkle--2 {
  bottom: -4px; right: 12%;
  animation-delay: 1s;
  font-size: 18px;
}

@keyframes urgencySparkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(180deg); }
}

/* ============================================
   前進メッセージ
   ============================================ */
.urgency__forward-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.urgency__forward-text {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text-white);
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.urgency__forward-em {
  display: inline-block;
  color: var(--color-yellow);
  font-weight: 800;
  font-size: 1.1em;
  text-shadow: 0 0 16px rgba(255, 199, 0, 0.7);
}

/* 大きな右向き矢印 */
.urgency__forward-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}

.urgency__forward-arrow-line {
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg,
    rgba(255, 199, 0, 0.3) 0%,
    var(--color-yellow) 100%);
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(255, 199, 0, 0.7);
  animation: urgencyArrowGlow 2s ease-in-out infinite;
}

@keyframes urgencyArrowGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(255, 199, 0, 0.7); }
  50% { box-shadow: 0 0 28px rgba(255, 199, 0, 1); }
}

.urgency__forward-arrow-head {
  font-size: 28px;
  color: var(--color-yellow);
  text-shadow: 0 0 16px rgba(255, 199, 0, 0.9);
  margin-left: -2px;
  animation: urgencyArrowPush 1.5s ease-in-out infinite;
}

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

.urgency__forward-result {
  margin: 0;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-light) 100%);
  border-radius: 30px;
  box-shadow:
    0 8px 24px rgba(255, 199, 0, 0.5),
    0 0 40px rgba(255, 199, 0, 0.4);
  animation: urgencyResultPulse 2s ease-in-out infinite;
}

@keyframes urgencyResultPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(255, 199, 0, 0.5), 0 0 40px rgba(255, 199, 0, 0.4); }
  50% { transform: scale(1.03); box-shadow: 0 12px 32px rgba(255, 199, 0, 0.7), 0 0 50px rgba(255, 199, 0, 0.6); }
}

.urgency__forward-result-text {
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 900;
  color: var(--color-navy-2);
  letter-spacing: 0.03em;
}

/* ============================================
   PC（768px以上）
   ============================================ */
@media (min-width: 768px) {

  .urgency {
    padding: 130px 40px 150px;
  }

  .urgency .sp-only { display: none; }

  /* 流線を太く長く */
  .urgency__streak--1 { width: 420px; height: 3px; }
  .urgency__streak--2 { width: 320px; }
  .urgency__streak--3 { width: 480px; height: 3px; }
  .urgency__streak--4 { width: 380px; }
  .urgency__streak--5 { width: 440px; height: 3px; }
  .urgency__streak--6 { width: 280px; }

  /* タイトル */
  .urgency__title-wrap {
    margin-bottom: 70px;
  }

  .urgency__badge {
    padding: 10px 22px;
    margin-bottom: 30px;
  }

  .urgency__badge-text {
    font-size: 13px;
  }

  .urgency__badge-icon {
    font-size: 16px;
  }

  .urgency__title {
    font-size: 42px;
  }

  /* 後退ブロック */
  .urgency__back {
    padding: 36px 40px;
    margin-bottom: 50px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .urgency__back-lead {
    font-size: 20px;
    margin-bottom: 28px;
  }

  /* 後退アイテムを横並びに */
  .urgency__back-items {
    flex-direction: row;
    max-width: 100%;
    gap: 20px;
    margin-bottom: 30px;
  }

  .urgency__back-item {
    flex: 1;
    padding: 18px 22px;
    justify-content: center;
  }

  .urgency__back-arrow {
    font-size: 28px;
  }

  .urgency__back-text {
    font-size: 17px;
  }

  .urgency__back-warning {
    font-size: 19px;
  }

  /* 区切り */
  .urgency__divider {
    margin: 60px auto;
    max-width: 480px;
  }
  .urgency__divider-bolt {
    font-size: 32px;
  }

  /* 前進部分 */
  .urgency__forward-lead {
    font-size: 24px;
    margin-bottom: 50px;
  }

  /* 前進メイン：横並び */
  .urgency__forward-main {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 60px;
  }

  /* キャラ大きく */
  .urgency__char-wrap {
    width: 300px;
  }

  .urgency__char-corner {
    width: 22px;
    height: 22px;
  }
  .urgency__char-corner--tl { top: 12px; left: 12px; }
  .urgency__char-corner--tr { top: 12px; right: 12px; }
  .urgency__char-corner--bl { bottom: 12px; left: 12px; }
  .urgency__char-corner--br { bottom: 12px; right: 12px; }

  .urgency__char-sparkle--1 { font-size: 28px; }
  .urgency__char-sparkle--2 { font-size: 24px; }

  .urgency__speed-line--1 { width: 80px; left: -55px; }
  .urgency__speed-line--2 { width: 90px; left: -65px; }
  .urgency__speed-line--3 { width: 85px; left: -60px; }
  .urgency__speed-line--4 { width: 75px; left: -50px; }

  /* メッセージ */
  .urgency__forward-msg {
    align-items: flex-start;
    text-align: left;
    gap: 20px;
  }

  .urgency__forward-text {
    font-size: 26px;
  }

  .urgency__forward-arrow-line {
    width: 120px;
    height: 5px;
  }

  .urgency__forward-arrow-head {
    font-size: 36px;
  }

  .urgency__forward-result {
    padding: 18px 36px;
  }

  .urgency__forward-result-text {
    font-size: 28px;
  }
}