/**
 * Hero Enhanced CSS
 * Heroセクション強化スタイル
 */

/* ============================================
   Hero Container
   ============================================ */

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

/* ============================================
   Static Premium Background
   ============================================ */

.p-hero__bg-animated {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink-3) 100%);
  z-index: 0;
}

.p-hero__bg-animated::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(0, 179, 201, 0.08) 0%, transparent 60%);
  z-index: 1;
}

/* Particles Canvas */
.p-hero__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* ============================================
   Hero Content
   ============================================ */

.p-hero__content {
  position: relative;
  z-index: 3;
  padding: 0 20px;
  transform: translateZ(0); /* パララックス用3D空間 */
}

.p-hero__title {
  font-family: var(--font-en);
  font-size: clamp(3.6rem, 8vw, 7rem);
  font-weight: 800;
  color: var(--color-text-white);
  letter-spacing: 0.12em;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

/* Gradient Text Effect */
.p-hero__title--gradient {
  background: linear-gradient(135deg, #ffffff, #b2ebf2, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s infinite linear;
}

.p-hero__subtitle {
  font-family: var(--font-ja);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* CTA Button Premium */
.p-hero__link .c-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--hairline-light);
  color: var(--color-text-white);
  padding: 18px 48px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 50px;
  box-shadow: var(--shadow-2);
  transition: all var(--transition-base);
  overflow: hidden;
}

.p-hero__link .c-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: inherit;
}

.p-hero__link .c-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(0, 179, 201, 0.4);
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
}

.p-hero__link .c-btn:hover::before {
  opacity: 1;
}

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

.p-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.p-hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.2),
    transparent
  );
  margin: 12px auto 0;
  animation: scrollLine 2s ease-in-out infinite;
}

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

@media screen and (max-width: 768px) {
  .p-hero {
    min-height: 500px;
  }

  .p-hero__title {
    margin-bottom: 16px;
  }

  .p-hero__subtitle {
    margin-bottom: 32px;
  }

  .p-hero__link .c-btn {
    padding: 14px 36px;
    font-size: 1.4rem;
  }

  .p-hero__scroll {
    bottom: 30px;
    font-size: 1rem;
  }

  .p-hero__scroll::after {
    height: 40px;
  }

}

@media screen and (max-width: 480px) {
  .p-hero {
    min-height: 450px;
  }

  .p-hero__link .c-btn {
    padding: 12px 32px;
    font-size: 1.3rem;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .p-hero__scroll::after {
    animation: none;
  }

  .p-hero__link .c-btn {
    transition: opacity 0.2s;
  }

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .p-hero__title,
  .p-hero__subtitle {
    text-shadow: none;
  }

  .p-hero__link .c-btn {
    border-width: 3px;
  }
}
