/* ---- banner05 (最新修正版) ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

/* 300×250のデザイン全体を、幅400pxを上限に同比率で拡大縮小する。 */
html {
  font-size: min(0.3333333333vw, 1.3333333333px);
}

html, body {
  max-width: 400px;
  width: 100%;
  height: 250rem;
  overflow: hidden;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  background-color: #0c0826;
}

/* 改行防止クラス */
.nowrap {
  white-space: nowrap;
  display: inline-block;
}

/* バナー容器 */
.banner-container {
  display: block;
  width: 100%;
  height: 250rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  background: radial-gradient(circle at 75% 25%, #3730a3 0%, #1e1b4b 50%, #0c0826 100%);
  cursor: pointer;
}

/* オーロラ輝き */
.aurora-bg {
  position: absolute;
  top: -40rem;
  right: -30rem;
  width: 220rem;
  height: 220rem;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.45) 0%, rgba(244, 63, 94, 0) 70%);
  border-radius: 50%;
  filter: blur(20rem);
  animation: auroraPulse 6s infinite alternate ease-in-out;
  z-index: 1;
}

/* キラキラ星 */
.star-dot {
  position: absolute;
  background: #fef08a;
  border-radius: 50%;
  opacity: 0;
  z-index: 2;
  animation: starTwinkle 3s infinite ease-in-out;
}

.sd-1 { top: 20rem; left: 25rem; width: 4rem; height: 4rem; animation-delay: 0.2s; }
.sd-2 { top: 65rem; right: 100rem; width: 5rem; height: 5rem; animation-delay: 1.0s; }
.sd-3 { bottom: 50rem; left: 20rem; width: 4rem; height: 4rem; animation-delay: 1.8s; }

/* テキストコンテナ (z-index: 50) */
.content-box {
  position: absolute;
  top: 18rem;
  left: 16rem;
  width: 190rem;
  z-index: 50 !important;
}

/* 画像モック共通 (z-index: 5) */
.screen-img {
  position: absolute;
  z-index: 5;
  filter: drop-shadow(0 15rem 30rem rgba(0,0,0,0.85));
}

/* ===================================================
   SCENE 1 (0s - 2.8s): ハシビロさん左下配置
   =================================================== */
.scene-1 {
  position: absolute;
  inset: 0;
  z-index: 10;
  opacity: 0;
  animation: scene1Anim 3.0s ease-in-out 0s forwards;
}

.scene-1 .badge {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  padding: 3rem 10rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6rem);
  border: 1rem solid rgba(251, 191, 36, 0.5);
  border-radius: 20rem;
  font-size: 10.5rem;
  font-weight: 700;
  color: #fbbf24;
}

.scene-1 .headline {
  margin-top: 10rem;
  font-size: 17rem;
  line-height: 1.35;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2rem 12rem rgba(0, 0, 0, 0.95);
}

.scene-1 .headline span.highlight,
.scene-2 .main-title span.brand-name,
.scene-3 .final-headline span.highlight {
  color: #fbbf24;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  filter: none;
  text-shadow: 0 2rem 10rem rgba(0, 0, 0, 0.95);
}

/* 1画面目左下のハシビロさん (z-index: 60) */
.hashibiro-scene1 {
  position: absolute;
  bottom: 12rem;
  left: 16rem;
  width: 62rem;
  height: auto;
  z-index: 60;
  filter: drop-shadow(0 8rem 16rem rgba(0,0,0,0.7));
  opacity: 0;
  transform: translateY(20rem) scale(0.8);
  animation: charPopScene1 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

.scene-1 .screen-06 {
  bottom: -105rem;
  right: -35rem;
  width: 175rem;
  transform: translateY(40rem) rotate(-4deg);
  animation: screen06Rise 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

/* ===================================================
   SCENE 2 (2.6s - 5.8s)
   =================================================== */
.scene-2 {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0;
  animation: scene2Anim 3.2s ease-in-out 2.6s forwards;
}

/* Scene 2 テキスト (黒ずみ完全撤去) */
.scene-2 .main-title {
  font-size: 18rem;
  line-height: 1.3;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2rem 12rem rgba(0, 0, 0, 0.95);
}

.scene-2 .main-title span.brand-name {
  display: block;
  font-size: 21rem;
  font-weight: 800;
  color: #fbbf24;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  filter: none;
  text-shadow: 0 2rem 12rem rgba(0, 0, 0, 0.95);
  margin-top: 2rem;
}

/* 機能チップ */
.feature-chips {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  margin-top: 8rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5rem;
  padding: 4rem 10rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8rem);
  border-radius: 12rem;
  font-size: 10.5rem;
  font-weight: 800;
  color: #ffffff;
  border: 1rem solid #fbbf24;
  width: fit-content;
  opacity: 0;
  transform: translateX(-15rem);
  box-shadow: 0 4rem 12rem rgba(0,0,0,0.6);
  animation: chipIn 0.5s ease-out forwards;
}

.chip:nth-child(1) { animation-delay: 3.0s; }
.chip:nth-child(2) { animation-delay: 3.3s; }
.chip:nth-child(3) { animation-delay: 3.6s; }

.scene-2 .screen-02 {
  bottom: -115rem;
  right: -32rem;
  width: 175rem;
  transform: translateY(50rem) rotate(-3deg);
  animation: screen02Rise 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 2.8s forwards;
}

/* ===================================================
   SCENE 3 (5.6s〜継続): 最終画面 (ハシビロさんなし、モックちょい上)
   =================================================== */
.scene-3 {
  position: absolute;
  inset: 0;
  z-index: 30;
  opacity: 0;
  animation: scene3Anim 0.8s ease-out 5.6s forwards;
}

.scene-3 .brand-header {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  padding: 3rem 9rem;
  background: rgba(245, 158, 11, 0.25);
  border: 1rem solid rgba(251, 191, 36, 0.6);
  border-radius: 20rem;
  font-size: 10.5rem;
  font-weight: 700;
  color: #fef08a;
}

/* Scene 3 テキスト (黒ずみ完全撤去) */
.scene-3 .final-headline {
  margin-top: 8rem;
  font-size: 18rem;
  line-height: 1.3;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2rem 12rem rgba(0,0,0,0.95);
}

.scene-3 .final-headline span.highlight {
  color: #fbbf24;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  filter: none;
  text-shadow: 0 2rem 12rem rgba(0,0,0,0.95);
}

.scene-3 .subline {
  margin-top: 6rem;
  font-size: 11.5rem;
  color: #f1f5f9;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 2rem 8rem rgba(0,0,0,0.95);
}

/* ★ 最終シーンモック: 停止位置を「ちょい下（bottom: -102rem）」へ調整 */
.scene-3 .screen-final {
  bottom: -102rem;
  right: -32rem;
  width: 175rem;
  transform: rotate(-3deg);
}

/* ★ Scene 3: ボタンの上にさらに小さく配置するハシビロさん org (z-index: 80) */
.scene-3 .hashibiro-scene3-btn {
  position: absolute;
  bottom: 53rem;
  left: 32rem;
  width: 34rem;
  height: auto;
  z-index: 80;
  filter: drop-shadow(0 4rem 10rem rgba(0,0,0,0.7));
  opacity: 0;
  transform: scale(0.5) translateY(12rem);
  animation: charPopBtn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 5.9s forwards;
}

/* CTAボタン (z-index: 70 最前面) */
.cta-button {
  position: absolute;
  bottom: 20rem;
  left: 16rem;
  z-index: 70 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  padding: 10rem 18rem;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #ffffff;
  font-size: 13rem;
  font-weight: 800;
  border-radius: 30rem;
  box-shadow: 0 6rem 20rem rgba(239, 68, 68, 0.5), 0 0 0 2rem rgba(255, 255, 255, 0.25);
  opacity: 0;
  transform: scale(0.85);
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 6.2s forwards, ctaPulse 2.6s infinite 6.8s ease-in-out;
  transition: all 0.25s ease;
}

.cta-arrow {
  font-family: 'Outfit', sans-serif;
  font-size: 14rem;
  transition: transform 0.2s ease;
}

/* ===================================================
   KEYFRAMES
   =================================================== */
@keyframes auroraPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0.95; }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.4); }
}

@keyframes scene1Anim {
  0% { opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes charPopScene1 {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes screen06Rise {
  to {
    transform: translateY(0) rotate(-4deg);
  }
}

@keyframes scene2Anim {
  0% { opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes chipIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes screen02Rise {
  to {
    transform: translateY(0) rotate(-3deg);
  }
}

@keyframes scene3Anim {
  to {
    opacity: 1;
  }
}

@keyframes charPopBtn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 6rem 20rem rgba(239, 68, 68, 0.5), 0 0 0 0 rgba(245, 158, 11, 0.6);
  }
  50% {
    box-shadow: 0 8rem 26rem rgba(239, 68, 68, 0.8), 0 0 0 8rem rgba(245, 158, 11, 0);
  }
}

/* ホバー */
.banner-container:hover .cta-button {
  transform: scale(1.05);
  background: linear-gradient(135deg, #fbbf24 0%, #dc2626 100%);
}

.banner-container:hover .cta-arrow {
  transform: translateX(3rem);
}
