/* ============================================
   Section 25: 締めのメッセージ（v3 FV色味継承版）
   Section 1 と同じグラデーション + タイポ勝負
   ============================================ */

.closing {
  position: relative;
  overflow: hidden;
  padding: 140px 24px 160px;
  min-height: 80vh;
  min-height: 80dvh;
}

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

/* ============================================
   背景グラデ（Section 1 と同じ色味）
   ============================================ */
.closing__gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    #EBF5FF 0%,
    #B8D8F2 25%,
    #5BA4D9 55%,
    #2E7AB8 80%,
    #1A5A8A 100%
  );
}

/* ============================================
   朝の光線
   ============================================ */
.closing__rays {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.closing__ray {
  position: absolute;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0) 100%);
  transform-origin: top center;
  animation: closingRayPulse 8s ease-in-out infinite;
}

.closing__ray--1 {
  top: -20%;
  left: 15%;
  width: 160px;
  height: 140%;
  transform: rotate(-12deg);
  animation-delay: 0s;
}

.closing__ray--2 {
  top: -20%;
  right: 20%;
  width: 120px;
  height: 130%;
  transform: rotate(10deg);
  animation-delay: -3s;
  opacity: 0.7;
}

.closing__ray--3 {
  top: -20%;
  right: 45%;
  width: 100px;
  height: 130%;
  transform: rotate(-5deg);
  animation-delay: -5s;
  opacity: 0.5;
}

@keyframes closingRayPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ============================================
   光の粒子（ふわふわ浮遊）
   ============================================ */
.closing__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.closing__particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  filter: blur(0.5px);
  animation: closingParticleFloat 12s linear infinite;
  opacity: 0;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.closing__particle--1 { left: 8%;  bottom: -10px; animation-delay: 0s; }
.closing__particle--2 { left: 18%; bottom: -10px; width: 4px; height: 4px; animation-delay: -2s; }
.closing__particle--3 { left: 30%; bottom: -10px; width: 8px; height: 8px; animation-delay: -4s; }
.closing__particle--4 { left: 42%; bottom: -10px; animation-delay: -6s; }
.closing__particle--5 { left: 52%; bottom: -10px; width: 5px; height: 5px; animation-delay: -8s; }
.closing__particle--6 { left: 64%; bottom: -10px; width: 7px; height: 7px; animation-delay: -10s; }
.closing__particle--7 { left: 76%; bottom: -10px; width: 5px; height: 5px; animation-delay: -1s; }
.closing__particle--8 { left: 88%; bottom: -10px; animation-delay: -7s; }
.closing__particle--9 { left: 22%; bottom: -10px; width: 7px; height: 7px; animation-delay: -5s; }
.closing__particle--10 { left: 70%; bottom: -10px; width: 4px; height: 4px; animation-delay: -9s; }

@keyframes closingParticleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-110vh) translateX(20px);
    opacity: 0;
  }
}

/* ============================================
   キラキラ星
   ============================================ */
.closing__stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.closing__star {
  position: absolute;
  color: #FFE138;
  font-size: 18px;
  opacity: 0;
  animation: closingStarTwinkle 3s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(255, 225, 56, 0.8);
}

.closing__star--1 { top: 12%; left: 18%; animation-delay: 0s; }
.closing__star--2 { top: 25%; right: 22%; animation-delay: 0.6s; font-size: 14px; }
.closing__star--3 { top: 45%; left: 8%;  animation-delay: 1.2s; font-size: 22px; }
.closing__star--4 { top: 55%; right: 10%; animation-delay: 1.8s; }
.closing__star--5 { bottom: 25%; left: 22%; animation-delay: 2.4s; font-size: 16px; }
.closing__star--6 { bottom: 18%; right: 26%; animation-delay: 0.3s; font-size: 20px; }
.closing__star--7 { top: 72%; left: 45%; animation-delay: 1.5s; font-size: 12px; }

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

/* ============================================
   インナー
   ============================================ */
.closing__inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  z-index: 10;
  text-align: center;
}

/* ============================================
   上部装飾ライン
   ============================================ */
.closing__topline {
  display: flex;
  justify-content: center;
  margin-bottom: 70px;
}

.closing__topline-bar {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 225, 56, 0.8) 50%, transparent 100%);
}

/* ============================================
   メッセージ
   ============================================ */
.closing__message {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.closing__line {
  margin: 0 0 14px;
  font-family: var(--font-jp);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-shadow:
    0 2px 16px rgba(15, 26, 48, 0.5),
    0 0 24px rgba(15, 26, 48, 0.3);
  opacity: 0;
  animation: closingFadeIn 1.5s ease-out forwards;
}

.closing__line--01 {
  font-size: 18px;
  animation-delay: 0.3s;
}

.closing__line--02 {
  font-size: 18px;
  animation-delay: 0.7s;
}

.closing__line--04 {
  font-size: 19px;
  margin-top: 30px;
  margin-bottom: 0;
  animation-delay: 2.2s;
}

@keyframes closingFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   区切り装飾
   ============================================ */
.closing__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px auto;
  max-width: 300px;
  opacity: 0;
  animation: closingFadeIn 1.5s ease-out 1.1s forwards;
}

.closing__divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 225, 56, 0.7) 50%, transparent 100%);
}

.closing__divider-diamond {
  color: #FFE138;
  font-size: 14px;
  text-shadow: 0 0 12px rgba(255, 225, 56, 0.9);
  animation: closingDiamondSpin 6s linear infinite;
}

@keyframes closingDiamondSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================
   主役の一文
   ============================================ */
.closing__hero {
  margin: 0 0 10px;
  opacity: 0;
  animation: closingFadeIn 1.5s ease-out 1.5s forwards;
}

.closing__hero-text {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 26px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-shadow:
    0 2px 20px rgba(15, 26, 48, 0.7),
    0 0 32px rgba(15, 26, 48, 0.5),
    0 0 50px rgba(255, 225, 56, 0.3);
}

.closing__hero-quote {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9em;
  color: #FFE138;
  font-weight: 700;
  vertical-align: -0.05em;
  text-shadow: 0 0 16px rgba(255, 225, 56, 0.8);
}

/* ブランド名 */
.closing__brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12em;
  background: linear-gradient(135deg, #FFE138 0%, #FFC700 50%, #E3B85A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
  padding: 0 2px;
  filter: drop-shadow(0 2px 10px rgba(255, 199, 0, 0.5));
}

/* ============================================
   下部装飾ライン
   ============================================ */
.closing__bottomline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 90px auto 0;
  max-width: 260px;
  opacity: 0;
  animation: closingFadeIn 1.5s ease-out 2.8s forwards;
}

.closing__bottomline-bar {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 225, 56, 0.6) 50%, transparent 100%);
}

.closing__bottomline-star {
  color: #FFE138;
  font-size: 14px;
  text-shadow: 0 0 12px rgba(255, 225, 56, 0.8);
  animation: closingStarGlow 3s ease-in-out infinite;
}

@keyframes closingStarGlow {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

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

  .closing {
    padding: 180px 40px 200px;
    min-height: 80vh;
    min-height: 80dvh;
  }

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

  .closing__inner {
    max-width: 900px;
  }

  /* 光線を大きく */
  .closing__ray--1 { width: 260px; }
  .closing__ray--2 { width: 200px; }
  .closing__ray--3 { width: 160px; }

  /* 上部装飾 */
  .closing__topline {
    margin-bottom: 90px;
  }

  .closing__topline-bar {
    width: 80px;
  }

  /* メッセージ */
  .closing__line--01 {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .closing__line--02 {
    font-size: 26px;
    margin-bottom: 0;
  }

  .closing__line--04 {
    font-size: 28px;
    margin-top: 40px;
  }

  /* 区切り装飾 */
  .closing__divider {
    margin: 60px auto;
    max-width: 400px;
  }

  .closing__divider-diamond {
    font-size: 18px;
  }

  /* 主役の一文 */
  .closing__hero-text {
    font-size: 48px;
  }

  /* 下部装飾 */
  .closing__bottomline {
    margin-top: 120px;
    max-width: 340px;
  }

  .closing__bottomline-star {
    font-size: 18px;
  }
}

/* ============================================
   モーション削減対応
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .closing__line,
  .closing__hero,
  .closing__divider,
  .closing__bottomline {
    animation: none;
    opacity: 1;
  }
  .closing__particle,
  .closing__ray,
  .closing__star,
  .closing__bottomline-star,
  .closing__divider-diamond {
    animation: none;
  }
}