/* =========================================================
   Hero (V7, 2026-10-19) — 深い紺黒 × 発光する4層のLPオブジェクト
   「構成 → 文章 → フォーム → 完成」が1枚のLPに積み上がる主役ビジュアル。
   css/renewal.css の後に読み込む。renewal.css の .hero-* 規則と衝突しないよう
   Hero内の部品は nh-* / lpo-* を使い、計測用の .hero-cta だけは名前を維持する。
   ========================================================= */
.hero {
  --h-bg: #090B10;
  --h-bg-2: #0B0F17;
  --h-fg: #F2F5F9;
  --h-fg-strong: #F8FAFC;
  --h-fg-2: #B9C2D0;
  --h-mute: #7D8797;
  --h-mute-2: #9AA3B2;
  --h-cyan: #8CD3FF;
  --h-cyan-soft: #D4EEFF;
  --h-line: rgba(185, 194, 208, 0.25);

  position: relative;
  background: var(--h-bg);
  color: var(--h-fg);
  font-family: var(--display);
  overflow: clip;
  text-wrap: pretty;
}

/* 背景: 12カラムの極細ガイドと右上のハロー */
.nh-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}
.nh-halo {
  position: absolute;
  right: -10%;
  top: -30%;
  width: 70%;
  height: 140%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(34, 78, 132, 0.42), rgba(34, 78, 132, 0));
}
.nh-scrim { display: none; }

/* ---- ヘッダー: Hero上では透過で重ね、スクロール後は濃紺の半透明バー ---- */
.site-header--dark {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition: background 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header--dark.is-scrolled {
  background: rgba(11, 15, 23, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.site-header--dark .brand { color: #F6F8FB; }
.site-header--dark .brand__mark {
  background: linear-gradient(135deg, #8CD3FF, #E4F4FF);
  color: #0B0D12;
  box-shadow: 0 0 14px rgba(140, 211, 255, 0.55);
}
.site-header--dark .site-nav a { color: #B9C2D0; transition: color 0.2s ease; }
.site-header--dark .site-nav a:hover { color: #FFFFFF; }
.site-header--dark .header-cta-desktop {
  background: #F4F7FB;
  color: #0B0D12;
  box-shadow: none;
}
.site-header--dark .header-cta-desktop:hover { background: #FFFFFF; }
.site-header--dark .nav-toggle { border-color: rgba(255, 255, 255, 0.22); }
.site-header--dark .nav-toggle span { background: #F2F5F9; }
@media (max-width: 980px) {
  .site-header--dark .site-nav {
    background: #0B0F17;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.35);
  }
  .site-header--dark .site-nav a { color: #E6EBF2; }
}

/* ---- レイアウト(固定ヘッダーの分だけ上を空ける: PC 80px / SP 66px) ---- */
.hero .nh-inner {
  position: relative;
  padding: 128px 0 64px;
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
}
.nh-copy {
  grid-column: 1 / 8;
  grid-row: 1;
  position: relative;
  z-index: 2;
  min-width: 0;
}
.nh-visual {
  grid-column: 7 / 13;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-self: center;
  transform: translateY(calc(var(--sy, 0px) * -1));
  will-change: transform;
}
.nh-visual__scale {
  zoom: var(--nh-zoom, 1);
  margin: -40px -70px -40px 0;
}

/* ---- コピー ---- */
.nh-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--h-cyan);
}
.nh-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.hero .nh-title {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(40px, 4.6vw, 66px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.015em;
  white-space: nowrap;
  color: var(--h-fg-strong);
  text-shadow: 0 2px 40px rgba(9, 11, 16, 0.9);
}
.nh-br-sp { display: none; }
.nh-lead {
  margin: 26px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.95;
  line-break: strict;
  color: var(--h-fg-2);
}
.nh-sp-only { display: none; }

/* 訴求の出し分け(ライト / 集客導線)。既定はライト */
.nh-variant { display: none; }
.hero[data-angle="light"] .nh-variant[data-angle-variant="light"],
.hero[data-angle="measurement"] .nh-variant[data-angle-variant="measurement"] { display: block; }

/* SP専用の工程ピル(PCではビジュアル横のラベルが担う) */
.nh-steps {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--h-cyan-soft);
}
.nh-steps li {
  position: relative;
  padding: 3px 9px;
  border: 1px solid rgba(140, 211, 255, 0.35);
  border-radius: 999px;
  background: rgba(9, 11, 16, 0.6);
}
.nh-steps li + li::before {
  content: "→";
  position: absolute;
  left: -17px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  color: var(--h-cyan);
}
.nh-steps li.is-goal {
  border-color: rgba(140, 211, 255, 0.6);
  background: rgba(140, 211, 255, 0.14);
}

/* ---- 価格 ---- */
.nh-price { margin-top: 40px; }
.nh-price__row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.nh-price__plan {
  align-self: center;
  padding: 4px 8px;
  border: 1px solid rgba(154, 163, 178, 0.4);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--h-mute-2);
}
.nh-price__value {
  font-family: "Manrope", var(--display);
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--h-fg-strong);
}
.nh-price__unit {
  font-size: 24px;
  font-weight: 700;
  color: var(--h-fg-strong);
}
.nh-price__tax {
  font-size: 14px;
  font-weight: 500;
  color: var(--h-mute-2);
}
.nh-price__meta {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 13px;
  color: var(--h-mute);
}
.nh-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(140, 211, 255, 0.1);
  border: 1px solid rgba(140, 211, 255, 0.35);
  color: var(--h-cyan-soft);
  font-weight: 500;
}
.nh-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--h-cyan);
}
.nh-price__link {
  color: var(--h-mute-2);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.nh-price__link:hover { color: #FFFFFF; }

/* ---- CTA(.hero-cta は計測セレクタのため名前を維持) ---- */
.hero .hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.nh-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 0 26px 0 30px;
  border-radius: 8px;
  background: #F6F8FB;
  color: #0B0D12;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 12px 32px -12px rgba(140, 211, 255, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.nh-cta-main:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  color: #0B0D12;
  box-shadow: 0 18px 40px -12px rgba(140, 211, 255, 0.8);
}
.nh-cta-main:active { transform: scale(0.985); }
.nh-cta-arrow { font-size: 18px; line-height: 1; }
.nh-cta-sub {
  display: inline-flex;
  align-items: center;
  min-height: 60px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid rgba(185, 194, 208, 0.4);
  color: #E6EBF2;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nh-cta-sub:hover {
  border-color: rgba(140, 211, 255, 0.9);
  background: rgba(140, 211, 255, 0.08);
  color: #FFFFFF;
}
.nh-note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--h-mute);
}

/* 安心材料: 細い区切り線で並べる */
.nh-trust {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
}
.nh-trust li {
  padding: 0 14px;
  border-left: 1px solid var(--h-line);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--h-mute-2);
}
.nh-trust li:first-child { padding-left: 0; border-left: 0; }

/* ---- 主役ビジュアル: LPオブジェクト(構成 / 文章 / フォーム / 完成の4層) ----
   各層の transform は最終位置を静的に持ち、アニメーションはそこへ向けて動く。
   renewal.css の reduced-motion(animation:none)でも積層が崩れない。 */
.lpo {
  position: relative;
  width: 620px;
  height: 680px;
  pointer-events: none;
}
.lpo__glow {
  position: absolute;
  left: 120px;
  top: 250px;
  width: 420px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 140, 215, 0.4), rgba(70, 140, 215, 0));
  filter: blur(26px);
  animation: lpGlow 7s ease-in-out infinite alternate;
}
.lpo__scene {
  position: absolute;
  inset: 0;
  perspective: 2400px;
  perspective-origin: 50% 45%;
}
.lpo__rig {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--px, 0deg)) rotateY(var(--py, 0deg)) rotateX(56deg) rotateZ(-24deg);
}
.lpo__shadow {
  position: absolute;
  left: 170px;
  top: 110px;
  width: 320px;
  height: 440px;
  border-radius: 40px;
  background: rgba(0, 0, 0, 0.6);
  filter: blur(28px);
  transform: translateZ(-40px);
}
.lpo__layer {
  position: absolute;
  left: 170px;
  top: 110px;
  width: 320px;
  height: 440px;
  transform-style: preserve-3d;
  animation: 1.6s cubic-bezier(0.16, 0.84, 0.24, 1) both;
}
.lpo__layer--1 { transform: translateZ(0); animation-name: lpP1; animation-delay: 0.1s; }
.lpo__layer--2 { transform: translateZ(62px); animation-name: lpP2; animation-delay: 0.18s; }
.lpo__layer--3 { transform: translateZ(124px); animation-name: lpP3; animation-delay: 0.26s; }
.lpo__layer--4 { transform: translateZ(186px); animation-name: lpP4; animation-delay: 0.34s; }
.lpo__float {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: lpFloat 8s ease-in-out infinite alternate;
}
.lpo__layer--1 .lpo__float { animation-delay: -1s; }
.lpo__layer--2 .lpo__float { animation-delay: -3s; }
.lpo__layer--3 .lpo__float { animation-delay: -5s; }
.lpo__layer--4 .lpo__float { animation-delay: -6.5s; }
.lpo__panel {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 40px 70px -30px rgba(0, 0, 0, 0.85);
}
.lpo__panel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.lpo__panel--wire {
  background:
    linear-gradient(rgba(140, 200, 245, 0.07) 1px, transparent 1px) -1px -1px / 20px 20px,
    linear-gradient(90deg, rgba(140, 200, 245, 0.07) 1px, transparent 1px) -1px -1px / 20px 20px,
    linear-gradient(160deg, rgba(22, 32, 52, 0.9), rgba(9, 13, 22, 0.96));
  border: 1px solid rgba(160, 196, 232, 0.28);
}
.lpo__panel--text {
  background: linear-gradient(160deg, rgba(26, 36, 58, 0.76), rgba(10, 14, 24, 0.86));
  border: 1px solid rgba(160, 196, 232, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 40px 70px -30px rgba(0, 0, 0, 0.85);
}
.lpo__panel--form {
  background: linear-gradient(160deg, rgba(28, 40, 62, 0.62), rgba(10, 14, 24, 0.76));
  border: 1px solid rgba(170, 206, 240, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 40px 70px -30px rgba(0, 0, 0, 0.85);
}
.lpo__panel--final {
  background: linear-gradient(165deg, #15223C 0%, #0C1424 55%, #0A0F1A 100%);
  border: 1px solid rgba(205, 228, 250, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 50px 80px -30px rgba(0, 0, 0, 0.9), 0 0 70px -14px rgba(140, 211, 255, 0.4);
  animation: lpEdge 2.6s ease-out 0.5s both;
}
.lpo__sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(190, 228, 255, 0.16) 50%, transparent 65%);
  background-size: 300% 100%;
  animation: lpSweep 11s linear infinite;
}
.lpo__layer--1 .lpo__sweep { animation-delay: 0.2s; }
.lpo__layer--2 .lpo__sweep { animation-delay: 0.35s; }
.lpo__layer--3 .lpo__sweep { animation-delay: 0.5s; }
.lpo__layer--4 .lpo__sweep {
  animation-delay: 0.65s;
  background-image: linear-gradient(115deg, transparent 35%, rgba(220, 240, 255, 0.22) 50%, transparent 65%);
}

/* 工程ラベル(PC): 右端の発光ドットが各層を指す */
.lpo-labels {
  position: absolute;
  left: 0;
  top: 0;
}
.lpo-labels span {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #B9D3E8;
  white-space: nowrap;
}
.lpo-labels span:nth-child(1) { top: 262px; color: #F2F7FC; }
.lpo-labels span:nth-child(2) { top: 318px; }
.lpo-labels span:nth-child(3) { top: 374px; }
.lpo-labels span:nth-child(4) { top: 430px; }
.lpo-labels b {
  display: inline-block;
  width: 70px;
  text-align: right;
  font-weight: inherit;
}
.lpo-labels i {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(140, 211, 255, 0.15), rgba(140, 211, 255, 0.95));
}
.lpo-labels i::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  margin: -2px 0 0 57px;
  border-radius: 50%;
  background: var(--h-cyan);
  box-shadow: 0 0 10px var(--h-cyan);
}

/* ---- 次セクションへの接続: 落ちる光線と水平の光 ---- */
.nh-foot {
  position: relative;
  height: 110px;
  background: linear-gradient(var(--h-bg), var(--h-bg-2));
}
.nh-beam {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 80px;
  transform-origin: top;
  background: linear-gradient(rgba(140, 211, 255, 0.9), rgba(140, 211, 255, 0));
  animation: heroLine 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 1.4s both;
}
.nh-foot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 211, 255, 0.35), transparent);
}

/* ---- キーフレーム ---- */
@keyframes heroLine { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes lpP1 { from { transform: translateZ(0); } to { transform: translateZ(0); } }
@keyframes lpP2 { from { transform: translateZ(26px); } to { transform: translateZ(62px); } }
@keyframes lpP3 { from { transform: translateZ(52px); } to { transform: translateZ(124px); } }
@keyframes lpP4 { from { transform: translateZ(78px); } to { transform: translateZ(186px); } }
@keyframes lpFloat { from { transform: translateZ(0); } to { transform: translateZ(9px); } }
@keyframes lpSweep {
  0% { background-position: 220% 0; }
  14% { background-position: -120% 0; }
  100% { background-position: -120% 0; }
}
@keyframes lpGlow {
  from { opacity: 0.55; transform: scale(0.97); }
  to { opacity: 0.95; transform: scale(1.03); }
}
@keyframes lpEdge {
  0% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 50px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 0 rgba(140, 211, 255, 0); }
  40% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 50px 80px -30px rgba(0, 0, 0, 0.9), 0 0 90px -6px rgba(140, 211, 255, 0.75); }
  100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 50px 80px -30px rgba(0, 0, 0, 0.9), 0 0 70px -14px rgba(140, 211, 255, 0.4); }
}

/* reduced-motion: 追従も止めて最終状態で静止(登場・浮遊・掃引は renewal.css の全体設定で停止) */
@media (prefers-reduced-motion: reduce) {
  .nh-visual { transform: none !important; }
  .lpo__rig { transform: rotateX(56deg) rotateZ(-24deg) !important; }
}

/* ---- 中間幅: 見出しとビジュアルの干渉を避ける ---- */
@media (max-width: 1100px) {
  .nh-visual__scale { margin-right: -40px; }
  .nh-price__tax { flex-basis: 100%; margin-top: 4px; }
  .nh-price__cond { display: none; }
  .nh-trust li { font-size: 12px; padding: 0 12px; }
}

/* ---- SP(〜819px): ビジュアルを見出し右下に沈め、コピーを前面に ---- */
@media (max-width: 819px) {
  .hero .nh-inner {
    display: block;
    padding: 70px 0 36px;
    min-height: 100svh;
  }
  .nh-scrim {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 330px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(var(--h-bg) 40%, rgba(9, 11, 16, 0) 100%);
  }
  .nh-copy { z-index: 2; }
  .nh-visual {
    position: absolute;
    right: -70px;
    top: 285px;
    width: 620px;
    height: 680px;
    z-index: 0;
    display: block;
    zoom: var(--nh-zoom, 0.47);
    transform: translateY(calc(var(--sy, 0px) * -0.5));
  }
  .nh-visual__scale { zoom: 1; margin: 0; }
  .lpo__glow { filter: blur(18px); }
  .lpo__shadow { filter: blur(20px); }
  .lpo-labels { display: none; }

  .nh-eyebrow { font-size: 12px; letter-spacing: 0.16em; gap: 10px; }
  .nh-eyebrow::before { width: 22px; }
  .hero .nh-title {
    margin-top: 14px;
    font-size: clamp(34px, 9.6vw, 44px);
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: normal;
    text-shadow: 0 2px 30px rgba(9, 11, 16, 0.9);
  }
  .nh-br-sp { display: inline; }
  .nh-sp-only { display: inline; }
  .nh-pc-only { display: none; }
  .nh-lead {
    margin-top: 16px;
    max-width: 15em;
    font-size: 14px;
    line-height: 1.8;
    color: #C6CEDA;
    text-shadow: 0 1px 16px rgba(9, 11, 16, 0.9);
  }
  .nh-steps { display: flex; margin-top: 96px; position: relative; z-index: 1; }

  .nh-price { margin-top: 18px; }
  .nh-price__row { gap: 10px; }
  .nh-price__plan { font-size: 12px; padding: 3px 7px; }
  .nh-price__value { font-size: 48px; }
  .nh-price__unit { font-size: 20px; }
  .nh-price__tax { font-size: 12px; }
  .nh-price__meta { margin-top: 10px; font-size: 12px; }
  .nh-chip { padding: 4px 10px; gap: 6px; }
  .nh-chip i { width: 4px; height: 4px; }
  .nh-price__cond { display: none; }

  .hero .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 20px; }
  .nh-cta-main { justify-content: center; min-height: 58px; padding: 0 20px; gap: 12px; box-shadow: 0 12px 32px -12px rgba(140, 211, 255, 0.6); }
  .nh-cta-sub {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    align-self: flex-start;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgba(140, 211, 255, 0.6);
  }
  .nh-cta-sub:hover { background: transparent; }
  .nh-note { margin-top: 4px; }
  .nh-trust { margin-top: 18px; gap: 6px 14px; }
  .nh-trust li { font-size: 11.5px; padding: 0; border-left: 0; }
  .nh-trust li::before { content: "✓"; margin-right: 5px; font-weight: 700; color: var(--h-cyan); }

  .nh-foot { height: 90px; }
  .nh-beam { height: 64px; }
}

@media (max-width: 819px) and (max-height: 700px) {
  .nh-steps { margin-top: 72px; }
}
