/* ==========================================================
   トップページ ファーストビュー（p-hero）
   ========================================================== */
.p-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: #0a0a0b;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.p-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  animation: heroCanvasIn 1.8s ease-out .1s forwards;
}

/* 文字の後ろをわずかに暗くして可読性を確保 */
.p-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0) 35%, rgba(10, 10, 11, .88) 78%);
  pointer-events: none;
}

.p-hero__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding: 0 24px 96px;
}

.p-hero__mask {
  display: block;
  overflow: hidden;
}

.p-hero__mask > * {
  display: block;
  transform: translateY(110%);
  animation: heroRise .9s cubic-bezier(.2, .8, .2, 1) forwards;
}

.p-hero__display {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 14vw, 76px);
  line-height: 1.02;
  letter-spacing: -.01em;
}

.p-hero__display .p-hero__mask:nth-child(1) > * { animation-delay: .5s; }
.p-hero__display .p-hero__mask:nth-child(2) > * { animation-delay: .62s; }

.p-hero__title {
  margin-top: 20px;
  font-size: clamp(17px, 4.8vw, 22px);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
}
.p-hero__title > * { animation-delay: .82s; }

.p-hero__lead {
  margin-top: 18px;
  font-size: 13px;
  line-height: 2;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .72);
}
.p-hero__lead > * { animation-delay: .96s; }

.p-hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  opacity: 0;
  animation: heroFade .9s ease-out 1.15s forwards;
}

.p-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 19px 34px;
  background: #fff;
  color: #0a0a0b;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1em;
  line-height: 1;
  border-radius: 4px;
  transition: background-color .3s, color .3s, transform .3s;
}

.p-hero__link {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
}
.p-hero__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, .6);
  transform-origin: left;
  transition: transform .4s;
}

.p-hero .p-mv__scroll { z-index: 2; }

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

  .p-hero::after {
    background: linear-gradient(90deg, rgba(10, 10, 11, 0) 40%, rgba(10, 10, 11, .55) 62%);
  }

  .p-hero__copy {
    width: 46%;
    max-width: 640px;
    margin-left: 52%;
    padding: 90px 40px 40px 0;
  }

  .p-hero__display { font-size: clamp(54px, 6.2vw, 96px); }
  .p-hero__title { font-size: clamp(19px, 1.9vw, 27px); margin-top: 24px; }
  .p-hero__lead { font-size: clamp(13px, 1.05vw, 15px); margin-top: 22px; }
  .p-hero__actions { margin-top: 38px; }

  .p-hero__btn:hover {
    opacity: 1;
    background: #ffe94d;
    transform: translateY(-2px);
  }
  .p-hero__link:hover { opacity: 1; }
  .p-hero__link:hover::after { transform: scaleX(.35); }
}

@media screen and (max-width: 1099px) {
  .p-hero__lead br { display: none; }
}

@keyframes heroRise { to { transform: translateY(0); } }
@keyframes heroFade { to { opacity: 1; } }
@keyframes heroCanvasIn {
  from { opacity: 0; transform: scale(1.08); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .p-hero__canvas,
  .p-hero__mask > *,
  .p-hero__actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
