/* =========================================================
   Hero Section
========================================================= */
.p-front-mv{
  position:relative; min-height: clamp(600px, 85vh, 960px);
  display:grid; place-items:center;
  padding: clamp(2rem, 4vw, 4rem) 1rem 3rem;
  color:var(--ink);
  /* まずはJPEGで確実に表示し、対応ブラウザではAVIF/WEBPに切り替える */
  background: url('../images/hero/hero-drone.jpg') center / cover no-repeat;
  background-image: -webkit-image-set(
    url('../images/hero/hero-drone.avif') type('image/avif'),
    url('../images/hero/hero-drone.webp') type('image/webp'),
    url('../images/hero/hero-drone.jpg') type('image/jpeg')
  );
  background-image: image-set(
    url('../images/hero/hero-drone.avif') type('image/avif'),
    url('../images/hero/hero-drone.webp') type('image/webp'),
    url('../images/hero/hero-drone.jpg') type('image/jpeg')
  );
  background-position: calc(50% + min(18vw, 220px)) center; /* ドローン右へ */
  overflow:hidden;
}
@supports not (background-image: image-set(url('../images/hero/hero-drone.avif') type('image/avif'))){
  .p-front-mv{ background-image: url('../images/hero/hero-drone.jpg'); }
}

/* 左に白スクリーンを敷いて可読性を担保 */
.p-front-mv::before{
  content:"";
  position:absolute; inset:0; pointer-events:none; z-index:0;
  background: linear-gradient(90deg,
      rgba(255,255,255,1) 0%,
      rgba(255,255,255,0.92) 11%,
      rgba(255,255,255,0.70) 28%,
      rgba(255,255,255,0.35) 50%,
      rgba(255,255,255,0.10) 70%,
      rgba(255,255,255,0) 90%);
}

.p-front-mv__content{
  position:relative; z-index:1;
  justify-self:start;
  padding-left: clamp(1rem, 5vw, 2rem);
  padding-right: clamp(2.2rem, 16vw, 280px); /* 右に機体の余白を確保しつつタイトル幅を拡張 */
  max-width: var(--container);
  width: 100%;
}

.p-front-mv__title{
  display:flex;
  flex-direction:column;
  gap:clamp(.45rem, .6vw, .75rem);
  font-weight:800;
  line-height:1.22;
  letter-spacing:-.015em;
  font-size:clamp(1.9rem, 2.3vw + 1.1rem, 3.4rem);
  color:#0c2540;
  margin-bottom:1.4rem;
  max-width:clamp(22rem, 48vw, 44rem);
}
.p-front-mv__title__eyebrow{
  display:block;
  font-family:var(--font-display);
  font-size:clamp(.78rem, 1.4vw, 1rem);
  font-weight:700;
  letter-spacing:.38em;
  color:var(--eyebrow);
  margin-bottom:.55rem;
}
.p-front-mv__title__line{
  position:relative;
  display:inline-block;
  padding:0 .2em .25em 0;
  margin:0;
  color:inherit;
  white-space:nowrap;
}
.p-front-mv__title__line::after{
  content:"";
  position:absolute;
  inset:auto 0 -.1em;
  height:.48em;
  background:linear-gradient(105deg, rgba(255,214,126,.75) 0%, rgba(255,187,90,.55) 52%, rgba(255,187,90,0) 100%);
  border-radius:.3em;
  z-index:-1;
  transform:skewX(-8deg);
}
.p-front-mv__title__line:nth-of-type(2){
  color:#041c37;
}
.p-front-mv__title__line:nth-of-type(3){
  color:#0c2e4f;
}
.p-front-mv__title__line:nth-of-type(3)::after{
  background:linear-gradient(100deg, rgba(182,230,255,.5) 0%, rgba(116,192,255,.35) 45%, rgba(116,192,255,0) 100%);
}
.p-front-mv__title__line:nth-of-type(4){
  color:#163e6b;
}
.p-front-mv__title__line:nth-of-type(4)::after{
  background:linear-gradient(110deg, rgba(255,200,167,.55) 0%, rgba(255,168,120,.35) 50%, rgba(255,168,120,0) 100%);
}
.p-front-mv__lead{
  margin:1.2rem 0 1.6rem;
  font-size:1.03rem;
  line-height:1.8;
  color:rgba(12,36,64,.78);
  max-width:620px;
}

.p-front-mv__stats{ margin-top:.8rem; }
.p-front-mv__stats__inner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:1rem;
}
.badge{
  --badge-size:8.75rem;
  position:relative;
  width:var(--badge-size);
  height:var(--badge-size);
  border-radius:50%;
  background-image:radial-gradient(circle at 30% 20%, #fff7cf 0%, #f5d984 38%, #d5a62c 72%, #a56b12 100%);
  box-shadow:
    inset 0 8px 18px rgba(255,255,255,.55),
    inset 0 -10px 18px rgba(120,60,0,.35),
    0 14px 26px rgba(36,18,0,.26);
  border:1px solid rgba(255, 236, 185, .8);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:1rem .85rem;
  color:#fff9df;
  text-shadow:0 2px 4px rgba(60,24,3,.45);
  isolation:isolate;
}
.badge::before{
  content:"";
  position:absolute;
  inset:.28rem;
  border-radius:50%;
  background:radial-gradient(circle at 28% 26%, rgba(255,255,255,.58), rgba(255,223,149,.18) 60%, rgba(226,167,60,.32) 100%);
  border:1px solid rgba(255,238,205,.6);
  box-shadow:inset 0 4px 10px rgba(255,255,255,.4), inset 0 -6px 14px rgba(148,76,0,.3);
  z-index:-1;
}
.badge__note{
  font-size:.74rem;
  letter-spacing:.08em;
  font-weight:700;
  color:rgba(18,22,28,.9);
  text-shadow:none;
}
.badge__num{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.15rem;
  margin-top:.3rem;
  line-height:1.25;
  color:rgba(12,18,26,.96);
  text-shadow:none;
}
.badge__em{
  display:block;
  font-size:1.46rem;
  font-weight:900;
  letter-spacing:.06em;
  color:#0a1e2f;
}
.badge__main{
  font-size:1.08rem;
  font-weight:800;
  letter-spacing:.02em;
  color:#132033;
}
.badge__main + .badge__em{ margin-top:-.1rem; }
.badge__tagline{
  font-size:.66rem;
  margin-top:.35rem;
  letter-spacing:.1em;
  line-height:1.35;
  color:#fbe7ac;
}

.p-front-mv__stats__note{ color:var(--muted); font-size:.85rem; margin-top:.25rem; }

@media (max-width:959px){
  .badge{ --badge-size:7.6rem; padding:.85rem .75rem; }
  .badge__em{ font-size:1.3rem; }
  .badge__main{ font-size:.98rem; }
  .badge__tagline{ font-size:.6rem; }
}
@media (max-width:599px){
  .p-front-mv__stats__inner{ justify-content:center; gap:.8rem; }
  .badge{
    --badge-size:6.4rem;
    padding:.75rem .6rem;
  }
  .badge__note{ font-size:.64rem; }
  .badge__main{ font-size:.9rem; }
  .badge__em{ font-size:1.12rem; }
  .badge__tagline{ font-size:.56rem; letter-spacing:.08em; }
  .p-front-mv__title__line{ white-space:normal; }

  .p-front-mv__stats__note{
    color:rgba(12,36,64,.78);
    text-shadow:
      0 1px 0 rgba(255,255,255,.6),
      0 8px 18px rgba(6,20,34,.18);
    background:rgba(255,255,255,.6);
    border:1px solid rgba(255,255,255,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius:8px;
    padding:.4rem .55rem;
    display:inline-block;
  }
}
@media (max-width:360px){
  .p-front-mv__stats__inner{ gap:.65rem; }
  .badge{
    --badge-size:5.9rem;
    padding:.68rem .55rem;
  }
}

.p-front-mv__cta{ margin-top:1.1rem; }
.p-front-mv__cta-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:1.25rem 3rem;
  border-radius:999px;
  font-weight:800;
  font-size:1.18rem;
  letter-spacing:.04em;
  min-width:clamp(13.5rem, 22vw, 18rem);
  color:#fff;
  background:linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-blue-deep) 100%);
  text-decoration:none;
  box-shadow:0 8px 20px rgba(15,78,231,.18), 0 24px 48px rgba(15,78,231,.16);
  transition:transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, filter .25s ease;
}
.p-front-mv__cta-button:hover{
  filter:brightness(1.06);
  transform:translateY(-3px) scale(1.03);
  box-shadow:0 12px 28px rgba(15,78,231,.22), 0 28px 56px rgba(15,78,231,.2);
  text-decoration:none;
}
.p-front-mv__cta-button:focus-visible{
  outline:3px solid rgba(31,200,216,.45);
  outline-offset:3px;
}

.p-front-mv__drone-note{
  position:absolute;
  right:clamp(1rem, 7vw, 4.5rem);
  bottom:clamp(.4rem, 3vw, 3.4rem);
  display:flex;
  flex-direction:column;
  gap:.3rem;
  align-items:flex-start;
  z-index:2;
  pointer-events:none;
  color:#0a1f35;
  text-shadow:
    0 10px 22px rgba(6,20,34,.22),
    0 3px 10px rgba(6,20,34,.16),
    0 0 10px rgba(255,255,255,.26);
}
.p-front-mv__drone-note-line{
  display:inline-flex;
  align-items:center;
  padding:.35rem .5rem;
  font-weight:800;
  letter-spacing:.015em;
  line-height:1.25;
  font-size:clamp(1.9rem, 2.3vw + 1.1rem, 3.4rem);
  background:none;
  border-radius:0;
  box-shadow:none;
  position:relative;
  z-index:0;
  isolation:isolate;
}
.p-front-mv__drone-note-line::before{
  content:"";
  position:absolute;
  left:-.35rem;
  right:-.35rem;
  top:50%;
  height:1.2em;
  transform:translateY(-50%) skewX(-6deg);
  border-radius:.28em;
  background:linear-gradient(115deg,
    rgba(255,255,255,.30) 0%,
    rgba(255,255,255,.12) 62%,
    rgba(255,255,255,0) 100%);
  box-shadow:
    0 14px 30px rgba(6,20,34,.12),
    0 6px 14px rgba(6,20,34,.10);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  z-index:-2;
}
.p-front-mv__drone-note-line::after{
  content:"";
  position:absolute;
  left:0;
  right:-.3rem;
  bottom:-.25rem;
  height:.22em;
  background:linear-gradient(115deg, rgba(31,200,216,.22) 0%, rgba(15,78,210,.18) 55%, rgba(12,31,53,.22) 100%);
  border-radius:6px;
  transform:skewX(-8deg);
  z-index:-1;
}

/* モバイルの可読性 */
@media (max-width:959px){
  .p-front-mv{
    background-position:center;
    /* 画面下の固定CTA（.c-fixed-cv）とコンテンツが被らないように下余白を確保 */
    padding-bottom:calc(3rem + 6.4rem + env(safe-area-inset-bottom, 0px));
  }
  .p-front-mv::before{
    background: linear-gradient(180deg,
        rgba(255,255,255,0.92) 0%,
        rgba(255,255,255,0.65) 36%,
        rgba(255,255,255,0.28) 72%,
        rgba(255,255,255,0) 100%);
  }
  .p-front-mv__content{ padding-right:1rem; }
  .p-front-mv__cta-button{
    padding:1.1rem 2.2rem;
    font-size:1.08rem;
    min-width:unset;
  }
  .p-front-mv__drone-note{
    right:50%;
    transform:translateX(50%);
    /* 画面下の固定CTA（.c-fixed-cv）と干渉しないように上げる */
    bottom:calc(.8rem + 9.2rem + env(safe-area-inset-bottom, 0px));
  }
  .p-front-mv__drone-note-line{
    font-size:clamp(1.4rem, 1.8vw + 1rem, 2.4rem);
    text-align:center;
  }
}

@media (max-width:599px){
  /* 固定CTA（.c-fixed-cv）があるため、ヒーロー内CTAは重なり防止で非表示 */
  .p-front-mv__cta{ display:none; }

  /* スマホではフローティング表示をやめて重なりを回避 */
  .p-front-mv__drone-note{
    position:static;
    right:auto;
    bottom:auto;
    transform:none;
    margin-top:1.05rem;
    margin-bottom:.25rem;
    align-items:center;
    width:100%;
    text-align:center;
  }

  /* PCの 85vh min-height を解放し、コンテンツ高で決定。固定CTA分の下余白だけ確保 */
  .p-front-mv{
    min-height:auto;
    padding-top:clamp(1.6rem, 4vw, 2.4rem);
    padding-bottom:calc(1.6rem + 5.6rem + env(safe-area-inset-bottom, 0px));
  }
  .p-front-mv__content{
    padding-left:clamp(.8rem, 4vw, 1.4rem);
    padding-right:clamp(.8rem, 4vw, 1.4rem);
  }

  /* タイトル下マージンを詰め、リード行間と外側余白を圧縮 */
  .p-front-mv__title{ margin-bottom:.9rem; }
  .p-front-mv__lead{
    margin:.6rem 0 1rem;
    font-size:.96rem;
    line-height:1.7;
    max-width:none;
  }

  /* badge と note を横並びで詰める（既存の justify-content:center を維持） */
  .p-front-mv__stats{ margin-top:.4rem; }
  .p-front-mv__stats__inner{
    flex-wrap:wrap;
    justify-content:center;
    gap:.7rem;
  }
  .badge{
    --badge-size:5.4rem;
    padding:.55rem .45rem;
  }
  .badge__note{ font-size:.56rem; letter-spacing:.06em; }
  .badge__em{ font-size:.96rem; }
  .badge__main{ font-size:.78rem; }
  .badge__tagline{ font-size:.5rem; margin-top:.2rem; }

  /* drone-note 文言サイズを SP用に縮小 */
  .p-front-mv__drone-note-line{
    font-size:clamp(1.05rem, 1.2vw + .9rem, 1.5rem);
  }
}

/* Hero staggered reveal */
@keyframes hero-reveal{
  from{ opacity:0; transform:translateY(18px); }
  to{ opacity:1; transform:translateY(0); }
}
.p-front-mv__title__eyebrow,
.p-front-mv__title__line,
.p-front-mv__lead,
.p-front-mv__stats,
.p-front-mv__cta,
.p-front-mv__drone-note{
  opacity:0;
  animation:hero-reveal .7s ease forwards;
}
.p-front-mv__title__eyebrow{ animation-delay:.1s; }
.p-front-mv__title__line:nth-of-type(1){ animation-delay:.25s; }
.p-front-mv__title__line:nth-of-type(2){ animation-delay:.4s; }
.p-front-mv__title__line:nth-of-type(3){ animation-delay:.55s; }
.p-front-mv__title__line:nth-of-type(4){ animation-delay:.7s; }
.p-front-mv__lead{ animation-delay:.75s; }
.p-front-mv__stats{ animation-delay:.9s; }
.p-front-mv__cta{ animation-delay:1s; }
.p-front-mv__drone-note{ animation-delay:1.1s; }

.no-js .p-front-mv__title__eyebrow,
.no-js .p-front-mv__title__line,
.no-js .p-front-mv__lead,
.no-js .p-front-mv__stats,
.no-js .p-front-mv__cta,
.no-js .p-front-mv__drone-note{
  opacity:1;
  animation:none;
}

@media (prefers-reduced-motion: reduce){
  .p-front-mv__title__eyebrow,
  .p-front-mv__title__line,
  .p-front-mv__lead,
  .p-front-mv__stats,
  .p-front-mv__cta,
  .p-front-mv__drone-note{
    opacity:1;
    animation:none;
  }
}

/* =========================================================
