/**
 * Hero Enhanced CSS - B+A Hybrid
 * Left-aligned Japanese headline + trust badges + strong CTA hierarchy
 * Soft gradient background preserved
 */

/* ============================================
   Entrance Animations
   ============================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lensFlare {
  0%   { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
  50%  { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
}

@keyframes curveFloat {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(10px, -15px) rotate(2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes eyebrowShimmer {
  0%   { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 4px 24px rgba(0, 122, 138, 0.3); }
  50%      { box-shadow: 0 4px 32px rgba(0, 122, 138, 0.5), 0 0 48px rgba(0, 179, 201, 0.15); }
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50.1%{ transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

/* ============================================
   Hero Container - Left-aligned layout
   ============================================ */

.p-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
}

/* ============================================
   Soft Gradient Background (unchanged)
   ============================================ */

.p-hero__bg-animated {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(150deg, #dff0f4 0%, #c8e6f0 30%, #b8dce8 50%, #d4eef6 70%, #eaf6fa 100%);
  z-index: 0;
}

.p-hero__bg-animated::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 120%;
  height: 80%;
  border: 1.5px solid rgba(0, 179, 201, 0.12);
  border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
  animation: curveFloat 12s ease-in-out infinite;
  z-index: 1;
}

.p-hero__bg-animated::after {
  content: '';
  position: absolute;
  top: 35%;
  left: 55%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.15) 30%, transparent 65%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: lensFlare 8s ease-in-out infinite;
  z-index: 1;
}

.p-hero__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.3;
}

.p-hero__particles::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -15%;
  width: 80%;
  height: 70%;
  border: 1px solid rgba(0, 179, 201, 0.08);
  border-radius: 40% 60% 40% 60% / 50% 50% 50% 50%;
  animation: curveFloat 15s ease-in-out infinite reverse;
  pointer-events: none;
}

/* ============================================
   Hero Content - Left-aligned with animations
   ============================================ */

.p-hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 clamp(24px, 10vw, 230px);
}

/* Eyebrow label with shimmer accent line */
.p-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary, #007a8a);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease-out 0.1s both;
}

.p-hero__eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-primary, #007a8a);
  background-image: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), transparent);
  background-size: 200px 100%;
  background-repeat: no-repeat;
  background-position: -200px 0;
  animation: eyebrowShimmer 3s ease-in-out infinite 2s;
  flex-shrink: 0;
}

/* Japanese headline */
.p-hero__title {
  font-family: var(--font-ja);
  font-size: clamp(3.6rem, 5.5vw, 5.6rem);
  font-weight: 900;
  color: #0B1220;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.p-hero__title em {
  font-style: normal;
}

.p-hero__subtitle {
  font-family: var(--font-ja);
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  font-weight: 400;
  color: #2D3E50;
  line-height: 2;
  margin-bottom: 36px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* PC-only line break utility */
.u-pc-only { display: inline; }

/* ============================================
   Trust Badges
   ============================================ */

.p-hero__badges {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.p-hero__badge {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 179, 201, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.p-hero__badge:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(0, 179, 201, 0.3);
}

.p-hero__badge-num {
  font-family: var(--font-en);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-primary, #007a8a);
  line-height: 1;
}

.p-hero__badge-unit {
  font-size: 1.2rem;
  color: #4a6a7a;
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================
   CTA Buttons - Primary / Secondary hierarchy
   ============================================ */

.p-hero__link {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.p-hero__link .c-btn--primary {
  background: var(--color-primary, #007a8a);
  border: none;
  color: #fff;
  padding: 18px 44px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 60px;
  box-shadow: 0 4px 24px rgba(0, 122, 138, 0.3);
  transition: all 0.3s ease;
  text-transform: none;
  animation: ctaGlow 3s ease-in-out infinite 2s;
}

.p-hero__link .c-btn--primary:hover {
  background: #006070;
  box-shadow: 0 8px 32px rgba(0, 122, 138, 0.4);
  transform: translateY(-3px);
}

.p-hero__link .c-btn--secondary {
  background: #fff;
  border: 1.5px solid rgba(11, 18, 32, 0.12);
  color: #0B1220;
  padding: 18px 44px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 60px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-transform: none;
}

.p-hero__link .c-btn--secondary:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* ============================================
   Scroll Indicator
   ============================================ */

.p-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: clamp(24px, 10vw, 230px);
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(11, 18, 32, 0.3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 3;
  animation: fadeIn 1s ease-out 1.2s both;
}

.p-hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 50px;
  background: rgba(0, 179, 201, 0.25);
  margin: 12px auto 0;
  animation: scrollLine 2s ease-in-out infinite 1.5s;
}

/* ============================================
   Responsive
   ============================================ */

@media screen and (max-width: 768px) {
  .p-hero {
    align-items: center;
  }

  .p-hero__bg-animated::after {
    width: 300px;
    height: 300px;
    top: 30%;
    left: 60%;
  }

  .p-hero {
    justify-content: center;
  }

  .p-hero__content {
    padding: 0 24px;
    max-width: 100%;
    text-align: center;
  }

  .p-hero__eyebrow {
    margin-bottom: 16px;
    justify-content: center;
  }

  .p-hero__eyebrow::before {
    display: none;
  }

  .p-hero__badge {
    padding: 12px 16px;
  }

  .p-hero__title {
    font-size: clamp(2.6rem, 8vw, 3.4rem);
    margin-bottom: 20px;
  }

  .p-hero__subtitle {
    font-size: 1.4rem;
    margin-bottom: 24px;
  }

  .u-pc-only { display: none; }

  .p-hero__badges {
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
  }

  .p-hero__badge-num {
    font-size: 2.2rem;
  }

  .p-hero__link {
    justify-content: center;
  }

  .p-hero__link .c-btn--primary,
  .p-hero__link .c-btn--secondary {
    padding: 16px 36px;
    font-size: 1.3rem;
  }

  .p-hero__scroll {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    font-size: 0.85rem;
  }

  .p-hero__scroll::after {
    height: 24px;
    margin-top: 6px;
  }
}

@media screen and (max-width: 480px) {
  .p-hero__title {
    font-size: clamp(2.4rem, 8vw, 2.8rem);
  }

  .p-hero__subtitle {
    font-size: 1.2rem;
  }

  .p-hero__link .c-btn--primary,
  .p-hero__link .c-btn--secondary {
    padding: 14px 32px;
    font-size: 1.2rem;
  }
}

/* ============================================
   Accessibility
   ============================================ */

.hero-no-anim .p-hero__eyebrow,
.hero-no-anim .p-hero__title,
.hero-no-anim .p-hero__subtitle,
.hero-no-anim .p-hero__badges,
.hero-no-anim .p-hero__link,
.hero-no-anim .p-hero__scroll {
  animation: none;
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .p-hero__eyebrow,
  .p-hero__title,
  .p-hero__subtitle,
  .p-hero__badges,
  .p-hero__link,
  .p-hero__scroll {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .p-hero__bg-animated::before,
  .p-hero__bg-animated::after {
    animation: none !important;
  }

  .p-hero__scroll::after {
    animation: none;
  }

  .p-hero__eyebrow::before {
    animation: none !important;
  }

  .p-hero__link .c-btn--primary,
  .p-hero__link .c-btn--secondary {
    animation: none !important;
    transition: opacity 0.2s;
  }

  .p-hero__link .c-btn--primary:hover,
  .p-hero__link .c-btn--secondary:hover {
    transform: none;
  }
}

@media (prefers-contrast: high) {
  .p-hero__title {
    color: #000;
  }

  .p-hero__link .c-btn--primary {
    border: 2px solid #007a8a;
  }

  .p-hero__link .c-btn--secondary {
    border: 2px solid #0B1220;
  }
}
