/* One physical card: viewport close-up, pull-back, flip, then its HTML anchor. */
[data-recruit-hero] { position: relative; isolation: isolate; }
.recruit-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: #090b0a; opacity: 0; pointer-events: none;
}
.hero-card-canvas {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; opacity: 0;
}
.hero3d-ready .hero-card-canvas { opacity: 1; }
.recruit-hero__object { position: relative; }
.recruit-hero__object-caption, .recruit-hero__bottom { z-index: 2; }

/* No scroll lock or full-screen input overlay. Only the decorative reveal changes. */
.recruit-intro-active .recruit-hero::before { opacity: var(--intro-shade, 1); }
.recruit-intro-active .recruit-hero__copy > *,
.recruit-intro-active .recruit-hero__object-caption,
.recruit-intro-active .recruit-hero__bottom > p {
  opacity: 0; visibility: hidden;
}
.recruit-intro-active .hero3d-revealing .recruit-hero__copy > *,
.recruit-intro-active .hero3d-revealing .recruit-hero__object-caption {
  opacity: 1; visibility: visible; transition: opacity .5s ease;
}

/* Keep the real navigation/application controls available throughout the opening. */
.recruit-intro-active .recruit-home .hdr {
  background: #090b0a; border-color: rgb(255 255 255 / 12%); color: #fff;
}
.recruit-intro-active .recruit-home .hdr__logo-copy,
.recruit-intro-active .recruit-home .gnav__link { color: #fff; }
.recruit-intro-active .recruit-home .hdr__casual { color: #fff; background: transparent; border-color: #777; }
.recruit-intro-active .recruit-home .hdr__entry { color: #ffda0b; background: transparent; border-color: #ffda0b; }
.recruit-intro-active .recruit-home .hdr__burger { border-color: #777; color: #fff; }
.recruit-intro-active .recruit-home .hdr__burger span { background: #fff; }
.recruit-intro-active .recruit-home .spcta { background: #090b0a; border-color: #333; }
.recruit-intro-active .recruit-home .spcta__btn { border: 1px solid #777; color: #fff; background: transparent; }
.recruit-intro-active .recruit-home .spcta__btn--main { border-color: #ffda0b; color: #ffda0b; }

.hero-intro-skip {
  position: absolute; z-index: 3; color: #fff; background: #171918;
  visibility: hidden; opacity: 0; pointer-events: none;
}
.hero-intro-skip {
  top: calc(var(--recruit-header-height) + 20px); right: var(--home-gutter);
  min-height: 44px; padding: 12px 16px; border: 1px solid rgb(255 255 255 / 36%);
  font: 500 12px/1.4 var(--jp); letter-spacing: .04em;
}
.hero-intro-skip span[aria-hidden] { margin-left: 12px; }
/* スマホは「スキップ ↗」だけにして右に寄せ、見出しの上の英字（SHINSOKU RECRUITMENT）と重ねない */
@media (max-width: 767px) {
  .hero-intro-skip { top: calc(var(--recruit-header-height) + 12px); right: var(--home-gutter); padding-inline: 14px; }
  .hero-intro-skip__lead { display: none; }
  .hero-intro-skip span[aria-hidden] { margin-left: 8px; }
}
.recruit-hero__bottom .hero-scroll-hint { display: none; }
.recruit-hero__bottom .hero-scroll-label { font-size: inherit; }
.recruit-intro-active .recruit-hero__bottom { border-color: transparent; }
.recruit-intro-active .hero-scroll-link {
  position: absolute; z-index: 3; color: #fff; background: #171918;
  bottom: 12px; left: 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: 1fr auto; gap: 5px 24px;
  width: max-content; max-width: calc(100% - 40px); min-height: 54px;
  padding: 10px 16px; font-size: 12px; line-height: 1.5;
}
.recruit-intro-active .hero-scroll-link .hero-scroll-hint { display: block; grid-column: 1; font: 500 12px/1.5 var(--en); letter-spacing: .16em; color: #ffda0b; }
.recruit-intro-active .hero-scroll-link > span:last-child { grid-column: 2; grid-row: 1/3; align-self: center; font-size: 24px; }
.recruit-intro-active .hero-intro-skip { visibility: visible; opacity: 1; pointer-events: auto; }
.hero-intro-skip:focus-visible, .hero-scroll-link:focus-visible { outline: 3px solid #ffda0b; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .recruit-intro-active .hero3d-revealing .recruit-hero__copy > *,
  .recruit-intro-active .hero3d-revealing .recruit-hero__object-caption { transition: none; }
}
/* Touch: horizontal drag on the card area tilts the card; vertical scroll still works. */
.recruit-hero__object { touch-action: pan-y; }
