/* トップページ ヒーロー（3D・机の上の仕事場）
   oz-v3.css の後に読み込み、.home-hero--3d のときだけ既存ヒーローを上書きする */
.home-hero--3d {
  min-height: 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--sky-soft) 58%, var(--sky) 100%);
}
.home-hero--3d .home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 24px;
  min-height: 0;
  padding-block: 56px 84px;
}
.home-hero--3d .home-hero__copy { max-width: 600px; min-width: 0; }
.home-hero--3d h1 { font-size: clamp(48px, 4.9vw, 74px); letter-spacing: -.01em; line-height: 1.26; }

.hero3d { position: relative; min-width: 0; }
.hero3d__view { position: relative; max-width: 100%; aspect-ratio: 1 / .9; }
.hero3d__poster,
.hero3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero3d__poster { object-fit: contain; transition: opacity .4s ease; }
.hero3d__canvas { display: block; opacity: 0; transition: opacity .4s ease; }
.hero3d.is-live .hero3d__canvas { opacity: 1; }
.hero3d.is-live .hero3d__poster { opacity: 0; }

.hero3d__pin,
.hero3d__bubble { position: absolute; left: 0; top: 0; opacity: 0; transform: translate(-50%, -100%); pointer-events: none; white-space: nowrap; }
.hero3d:not(.is-live) .hero3d__pin,
.hero3d:not(.is-live) .hero3d__bubble { display: none; }
.hero3d__pin {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 5px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 6px 16px rgba(8, 34, 74, .12);
  font-size: 12px; font-weight: 700; line-height: 1.4;
}
.hero3d__pin i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--blue); color: #fff; font: 700 10px/1 var(--sans); font-style: normal; }
.hero3d__pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); transform: translateX(-50%) rotate(45deg); }
.hero3d__pin.is-on { border-color: var(--blue); background: var(--blue); color: #fff; transform: translate(-50%, -100%) scale(1.08); }
.hero3d__pin.is-on i { background: #fff; color: var(--blue); }
.hero3d__pin.is-on::after { border-color: var(--blue); background: var(--blue); }
.hero3d__bubble {
  padding: 8px 14px; border-radius: 12px;
  background: var(--red); color: #fff;
  box-shadow: 0 8px 18px rgba(223, 45, 50, .25);
  font-size: 14px; font-weight: 800; line-height: 1.4;
}
.hero3d__bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--red); transform: translateX(-50%) rotate(45deg); }


@media (max-width: 899px) {
  .home-hero--3d .home-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 40px 72px; }
  .hero3d__view { aspect-ratio: 1 / .92; }
  .hero3d__pin { padding: 3px 8px 3px 4px; font-size: 10.5px; }
  .hero3d__pin i { width: 18px; height: 18px; font-size: 9px; }
  .hero3d__bubble { padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 599px) {
  .home-hero--3d h1 { font-size: clamp(40px, 10.9vw, 50px); }
  .home-hero--3d .home-hero__inner { padding-top: 40px; }
}
@media (max-width: 375px) {
  .home-hero--3d h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero3d__poster, .hero3d__canvas { transition: none; }
}

/* 法人携帯ページ（business-mobile-nagoya）：既存の写真ヒーローを3Dに置き換えるときの上書き */
.mobile-lp-hero--3d { min-height: 0; }
.mobile-lp-hero--3d .hero3d { min-width: 0; padding: 24px max(16px, calc(var(--gutter) / 2)) 24px 8px; }
@media (max-width: 767px) {
  .mobile-lp-hero--3d { min-height: 0; }
  .mobile-lp-hero--3d .mobile-lp-hero__copy { padding-bottom: 8px; }
  .mobile-lp-hero--3d .hero3d { padding: 0 max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); }
}

/* 場面切り替え型のステップ表示（法人携帯ページ） */
.hero3d__steps { position: absolute; z-index: 2; top: 2%; left: 50%; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; transform: translateX(-50%); }
.hero3d:not(.is-live) .hero3d__steps { display: none; }
.hero3d__step {
  position: relative; display: flex; align-items: center; gap: 6px; overflow: hidden;
  padding: 5px 12px 7px 6px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.hero3d__step i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--line); color: var(--ink); font: 700 9px/1 var(--sans); font-style: normal; }
.hero3d__step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--blue); }
.hero3d__step.is-done { color: var(--ink); }
.hero3d__step.is-done i { background: var(--sky); color: var(--blue); }
.hero3d__step.is-on { border-color: var(--blue); background: var(--blue); color: #fff; }
.hero3d__step.is-on i { background: #fff; color: var(--blue); }
.hero3d__step.is-on::after { background: rgba(255, 255, 255, .7); }
@media (max-width: 767px) {
  .hero3d__steps { top: 0; gap: 4px; }
  .hero3d__step { gap: 4px; padding: 4px 8px 6px 4px; font-size: 10px; }
  .hero3d__step i { width: 16px; height: 16px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { .hero3d__step { transition: none; } }
