/* ===================================================
   section-01-hero.css
   Section 1: ファーストビュー専用
   このファイルは .hero で始まるクラスだけを扱う
   =================================================== */

/* --- 全体 --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* --- 背景グラデーション --- */
.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    #EBF5FF 0%,
    #B8D8F2 25%,
    #5BA4D9 55%,
    #2E7AB8 80%,
    #1A5A8A 100%
  );
}

/* --- 動画レイヤー --- */
.hero__video-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero__video-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

/* --- 粒子Canvas --- */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* --- コンテンツ全体（スマホ: 縦3分割） --- */
.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 64px;
}

/* --- テキスト上部（バッジ・キャッチ） --- */
.hero__text-top {
  padding: 24px 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- 人物エリア --- */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-top: -25px;
}

.hero__person {
  position: relative;
  width: 85%;
  max-width: 260px;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero__person img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- CTAエリア下部 --- */
.hero__text-bottom {
  padding: 10px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

/* --- バッジ --- */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.65));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-blue-5);
  margin-bottom: 16px;
  margin-top: -25px;
  animation: fadeInDown 0.8s ease 0.3s both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 6px rgba(227, 184, 90, 0.6);
}

/* --- キャッチ --- */
.hero__catch {
  font-weight: 900;
  font-size: clamp(26px, 7vw, 32px);
  line-height: 1.5;
  color: var(--color-text-white);
  text-shadow: 0 2px 20px rgba(15, 26, 48, 0.15);
  margin-bottom: 15px;
  animation: fadeInUp 0.8s ease 0.5s both;
}

/* ===================================================
   スマホ・PC対応バッジ（情報訴求のみ）
   =================================================== */
.hero__trust-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 16px;
  color: #FFFFFF;
  font-weight: 700;
  text-shadow:
    0 2px 8px rgba(15, 26, 48, 0.8),
    0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  margin-bottom: 4px;
  animation: fadeInUp 0.8s ease 1.0s both;
}

.hero__trust-text svg {
  color: #FFE138;
  filter: drop-shadow(0 2px 4px rgba(15, 26, 48, 0.5));
}

.hero__trust-text span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===================================================
   プレゼント告知ブロック（横長コンパクト・白基調）
   =================================================== */
.hero__present {
  position: relative;
  margin: 8px 0 0;
  padding: 14px 18px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  width: 100%;
  max-width: 480px;
  animation: fadeInUp 0.8s ease 1.2s both;
}

.hero__present-ribbon {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  background: linear-gradient(135deg, #FFE138 0%, #FFC700 50%, #E3B85A 100%);
  border-radius: 16px;
  box-shadow:
    0 4px 12px rgba(255, 199, 0, 0.55),
    0 0 0 2px #FFFFFF;
  white-space: nowrap;
}

.hero__present-ribbon-icon {
  font-size: 12px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.hero__present-ribbon-text {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 900;
  color: #1A2744;
  letter-spacing: 0.15em;
}

.hero__present-text {
  margin: 4px 0 0;
  font-family: var(--font-jp);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.6;
  text-align: center;
}

.hero__present-highlight {
  display: inline-block;
  font-size: 1.18em;
  font-weight: 900;
  color: var(--color-blue-5);
  background: linear-gradient(transparent 65%, rgba(255, 199, 0, 0.4) 65%);
  padding: 0 4px;
  letter-spacing: 0.02em;
}

/* ===================================================
   CTAボタン（PRESENT黄色グラデ + ポップアニメ）
   =================================================== */
.hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 800;
  color: #1A2744;
  padding: 14px 32px;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-top: -20px;
  letter-spacing: 0.05em;

  /* PRESENTリボンと同じ黄色グラデ */
  background: linear-gradient(135deg, #FFE138 0%, #FFC700 50%, #E3B85A 100%);

  /* 立体的な影 */
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.7),
    inset 0 -3px 6px rgba(180, 130, 0, 0.4),
    0 6px 0 #B8860B,
    0 12px 24px rgba(255, 199, 0, 0.5),
    0 0 30px rgba(255, 199, 0, 0.55);

  transform-origin: center;
  transition: all 0.15s ease-out;

  /* ポップなバウンドアニメ + フェードイン */
  animation:
    heroCtaPopBounce 1.6s ease-in-out 1.5s infinite,
    fadeInUp 0.8s ease 1.4s both;
}

/* ポップなバウンド：上下にぴょん + 左右に少し揺れる */
@keyframes heroCtaPopBounce {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  15% {
    transform: translateY(-6px) scale(1.04) rotate(-1deg);
  }
  30% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  45% {
    transform: translateY(-3px) scale(1.02) rotate(1deg);
  }
  60% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

/* 光沢のキラキラ */
.hero__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  border-radius: 9999px;
  pointer-events: none;
  animation: heroCtaShine 3s ease 2s infinite;
}

@keyframes heroCtaShine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* ホバー：浮き上がる */
.hero__cta:hover {
  transform: translateY(-4px) scale(1.05);
  animation-play-state: paused;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -3px 6px rgba(180, 130, 0, 0.4),
    0 10px 0 #B8860B,
    0 16px 32px rgba(255, 199, 0, 0.6),
    0 0 50px rgba(255, 199, 0, 0.85);
}

/* クリック：押し込まれる */
.hero__cta:active {
  transform: translateY(3px) scale(0.98);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -3px 6px rgba(180, 130, 0, 0.4),
    0 2px 0 #B8860B,
    0 4px 10px rgba(255, 199, 0, 0.4),
    0 0 30px rgba(255, 199, 0, 0.55);
}

.hero__cta-text {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero__cta-arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4));
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(8px);
}

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

  /* PCは横並び */
  .hero__content {
    flex-direction: row;
    align-items: center;
    padding-top: 0;
  }

  /* 左側：テキスト上部 */
  .hero__text-top {
    flex: 0 0 45%;
    padding: 0 0 0 80px;
    text-align: left;
    align-items: flex-start;
    max-width: 600px;
  }

  .hero__catch {
    font-size: clamp(36px, 3.5vw, 52px);
  }

  /* CTA下部：左下に固定 */
  .hero__text-bottom {
    position: absolute;
    bottom: 30px;
    left: 80px;
    padding: 0;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
  }

  /* スマホ・PC対応バッジ PC */
  .hero__trust-text {
    font-size: 17px;
  }

  /* プレゼント PC調整 */
  .hero__present {
    max-width: 540px;
    padding: 16px 24px 14px;
  }

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

  /* プレゼントリボン PC時は左寄せ */
  .hero__present-ribbon {
    left: 24px;
    transform: translateX(0);
    padding: 5px 18px;
  }

  .hero__present-ribbon-text {
    font-size: 11px;
  }

  /* CTAボタン PC */
  .hero__cta {
    font-size: 20px;
    padding: 20px 52px;
    margin-top: 6px;
  }

  /* 右側：人物 */
  .hero__visual {
    flex: 0 0 55%;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
    padding-top: 70px;
    padding-right: 40px;
    min-height: 100vh;
    min-height: 100dvh;
    margin-top: 0;
  }

  .hero__person {
    width: 85%;
    max-width: 530px;
  }
}

/* --- タブレット --- */
@media (min-width: 576px) and (max-width: 767px) {
  .hero__text-top {
    padding: 40px 40px 16px;
  }

  .hero__catch {
    font-size: 32px;
  }

  .hero__person {
    max-width: 280px;
  }
}