﻿/* ── Plan B Home — FV / HUD (ported from globals.css) ── */

.circuit-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.055) 1px,
    transparent 1px
  );
  background-size: 25% 100%;
}

.site-main__content {
  position: relative;
  z-index: 10;
}

.plan-b-home {
  position: relative;
}

/* トップ FV は影を使わない（採用 HUD は theme.css の定義を維持） */
.hero-text-shadow,
.hero-text-shadow-soft {
  text-shadow: none;
}

.plan-b-hero {
  --hud-network-glow: #7dd3fc;
  --hud-network-glow-core: #38bdf8;
  position: relative;
  margin-top: calc(-1 * var(--site-header-height));
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  scroll-margin-top: 0;
  overflow: hidden;
  overflow-anchor: none;
  background: var(--ink);
}

.plan-b-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.plan-b-hero__video picture {
  display: contents;
}

.plan-b-hero__poster,
.plan-b-hero__video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.5s ease;
}

.plan-b-hero__video-el {
  opacity: 0;
}

.plan-b-hero__video.is-playing .plan-b-hero__poster {
  opacity: 0;
}

.plan-b-hero__video.is-playing .plan-b-hero__video-el {
  opacity: 1;
}

.hero-media-video {
  filter: brightness(1.1) contrast(1.04) saturate(1.08);
}

.hero-video-dot-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  isolation: isolate;
  pointer-events: none;
}

.hero-video-dot-mask::before,
.hero-video-dot-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-video-dot-mask::before {
  opacity: 0.78;
  mix-blend-mode: soft-light;
  background-image: url("../media/patterns/hero-bayer-4.svg");
  background-size: 4px 4px;
}

.hero-video-dot-mask::after {
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("../media/patterns/hero-bayer-8.svg");
  background-size: 8px 8px;
  background-position: 1px 1px;
}

.plan-b-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.plan-b-hero__gradient--vertical {
  background: linear-gradient(to bottom, rgba(35, 48, 68, 0.45), rgba(35, 48, 68, 0.15) 50%, rgba(35, 48, 68, 0.55));
}

.plan-b-hero__gradient--horizontal {
  background: linear-gradient(to right, rgba(35, 48, 68, 0.35), transparent 50%, rgba(35, 48, 68, 0.2));
}

.plan-b-hero__stage {
  position: relative;
  z-index: 10;
  height: 100%;
  min-height: 0;
}

.plan-b-hero__copy--desktop,
.plan-b-hero__hud--desktop {
  display: none;
}

.plan-b-hero__copy--mobile,
.plan-b-hero__hud--mobile-stack {
  display: block;
}

.plan-b-hero__copy {
  position: absolute;
  inset: 0;
}

.plan-b-hero__copy--desktop {
  padding-inline: 1.25rem;
}

.plan-b-hero__copy--mobile {
  padding-inline: var(--plan-b-fv-inset-x, 1.25rem);
}

.plan-b-hero__hud {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding-inline: 1.25rem;
  padding-bottom: 1.5rem;
}

.plan-b-hero__hud--mobile-stack {
  padding-inline: var(--plan-b-fv-inset-x, 1.25rem);
}

.plan-b-hero__mobile-stack {
  display: grid;
  width: 100%;
}

.plan-b-hero__mobile-stack > * {
  grid-column: 1;
  grid-row: 1;
}

.plan-b-hero__mobile-layer {
  transition:
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.plan-b-hero__mobile-layer.is-active {
  opacity: 1;
  pointer-events: auto;
}

.plan-b-hero__mobile-layer:not(.is-active) {
  opacity: 0;
  pointer-events: none;
}

/* Next PlanBHeroAreasBento — phase 0 はチャットのみ、phase 1 でガイド＋カード */
.plan-b-hero__hud--mobile-stack[data-mobile-phase="0"] .plan-b-hero-hud-guide--mobile-stack,
.plan-b-hero__hud--mobile-stack[data-mobile-phase="0"] .plan-b-hero-hud-cell {
  display: none;
}

.hero-video-copy--optical {
  --hero-optical-center-y: 43%;
  position: absolute;
  inset-inline: 0;
  top: var(--hero-optical-center-y);
  display: flex;
  justify-content: center;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
}

.hero-video-copy--optical-with-sub {
  --hero-optical-center-y: 48%;
}

.plan-b-hero .hero-video-copy--optical-with-sub {
  --hero-optical-center-y: 41%;
}

.hero-video-copy__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.hero-video-copy__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  /* 1行目↔2行目：キャッチ直下 */
  margin-top: clamp(0.75rem, 0.55rem + 0.45vw, 1.25rem);
  margin-inline: auto;
  /* サブキャッチ↔線↔会社名：同じ間隔 */
  gap: 1rem;
}

.hero-video-copy__lead {
  display: grid;
  width: max-content;
  max-width: 100%;
  row-gap: 1rem;
  justify-items: start;
}

.hero-video-copy__meta .hero-video-group-subline {
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 1.5;
  text-align: center;
  width: max-content;
  max-width: 100%;
}

.hero-video-copy__rule {
  display: block;
  /* 列幅はサブキャッチ。右は「。」の字面よりほんの少しだけ出す */
  width: calc(100% - 0.2em);
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  justify-self: start;
}

.hero-video-copy__meta .hero-video-group-hierarchy {
  margin-top: 0;
  width: max-content;
  max-width: 100%;
}

.hero-video-group-hierarchy {
  display: flex;
  width: 100%;
  max-width: min(100%, 52rem);
  align-items: center;
  justify-content: center;
  margin-top: clamp(0.875rem, 0.65rem + 0.55vw, 1.5rem);
  margin-inline: auto;
}

.hero-video-group-hierarchy[data-hero-static],
.hero-video-group-hierarchy.opacity-0.is-revealed {
  opacity: 1;
}

.hero-video-group-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding-block: 0;
  white-space: nowrap;
  font-size: clamp(1rem, 0.875rem + 0.55vw, 1.1875rem);
  line-height: 1;
}

.hero-video-group-brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-noto), sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
  margin-right: clamp(0.875rem, 0.65rem + 0.5vw, 1.125rem);
  transform: translateY(0.06em);
}

.hero-video-group-company {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 1em;
  font-family: var(--font-noto), sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
}

.hero-video-group-divider {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  align-self: center;
  justify-content: center;
  margin-inline: clamp(0.4375rem, 0.32rem + 0.35vw, 0.625rem);
  font-family: var(--font-noto), sans-serif;
  font-size: 0.92em;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
  transform: translateY(0.04em);
}

.hero-video-group-subline {
  display: block;
  width: fit-content;
  max-width: min(100%, 52rem);
  margin-top: clamp(0.875rem, 0.65rem + 0.55vw, 1.5rem);
  margin-inline: auto;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-noto), sans-serif;
  font-size: clamp(0.9375rem, 0.8125rem + 0.45vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.hero-video-subcopy {
  display: block;
  width: fit-content;
  max-width: min(100%, 52rem);
  margin-top: clamp(0.875rem, 0.65rem + 0.55vw, 1.5rem);
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-noto), sans-serif;
  font-size: clamp(0.9375rem, 0.8125rem + 0.45vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.95);
}

.plan-b-hero .hero-video-subcopy {
  margin-top: 1.15rem !important;
  line-height: 1.45;
}

.plan-b-hero .hero-video-group-line,
.plan-b-hero .hero-video-group-subline {
  font-size: clamp(1rem, 0.875rem + 0.35vw, 1.1875rem);
  line-height: 1.5;
}

.plan-b-hero .hero-video-group-brand {
  letter-spacing: 0.05em;
  transform: translateY(0.06em);
}

.hero-video-subcopy {
  white-space: nowrap;
  font-size: 15px;
}

.hero-video-tagline {
  margin: 0;
  font-family: var(--font-tagline);
  font-weight: 400;
  font-synthesis: none;
  color: var(--paper-soft);
}

.hero-video-tagline--centered {
  transform: none;
}

.hero-video-tagline--stacked .hero-video-tagline-char-block {
  display: block;
}

.hero-video-tagline-char {
  display: inline-block;
  transform: skewX(-10deg) scaleY(0.95);
}

.hero-video-tagline-kern {
  display: inline-block;
  width: 0.2em;
}

.hero-video-tagline-punct {
  display: inline-block;
  margin-inline: -0.08em -0.05em;
  width: 0.5em;
}

.hero-video-tagline-punct--maru {
  font-size: 0.85em;
  width: 0.425em;
  vertical-align: baseline;
  transform: translateY(0.07em);
}

.hero-video-tagline-punct:last-child {
  margin-inline-end: 0.14em;
}

/* PlanBHeroStage は planBFv なし → HeroVideoCopy のレスポンシブ尺（正本） */
.hero-video-tagline--centered {
  font-size: 2.09rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;
  white-space: nowrap;
  color: var(--paper-soft);
}

[data-hero-fade].opacity-0:not(.is-revealed) {
  opacity: 0;
}

[data-hero-fade].is-revealed,
[data-hero-fade].opacity-0.is-revealed {
  opacity: 1 !important;
}

.plan-b-hero-hud-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.plan-b-hero-hud-guide {
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  margin: 0;
  padding-right: 0.75rem;
  font-family: var(--font-noto), sans-serif;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.625;
  letter-spacing: 0.025em;
  color: #fff;
}

.plan-b-hero-hud-chat-slot {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  align-self: center;
  min-height: 0;
  margin: 0;
}

.plan-b-hero-hud-mobile-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.75rem;
  grid-column: 1 / -1;
}

.plan-b-hero__hud--mobile-stack[data-mobile-phase="1"] .plan-b-hero-hud-mobile-head {
  justify-content: space-between;
}

.plan-b-hero-hud-chat-slot--mobile-head {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 0;
  margin: 0;
}

.plan-b-hero-hud-cell {
  position: relative;
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  box-shadow: 0 8px 28px -18px rgba(0, 0, 0, 0.45);
  color: inherit;
  text-decoration: none;
  transition:
    background-color 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

.plan-b-hero-hud-cell h3 {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-inline: 1.75rem;
  font-family: var(--font-noto), sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.025em;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

.plan-b-hero-hud-index {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  z-index: 1;
  transform: translateY(-50%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.plan-b-hero-hud-corner {
  position: absolute;
  z-index: 2;
  width: 0.625rem;
  height: 0.625rem;
  pointer-events: none;
  transition: border-color 0.32s ease;
}

.plan-b-hero-hud-corner--tl {
  top: 0.375rem;
  left: 0.375rem;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-left: 1px solid rgba(255, 255, 255, 0.55);
}

.plan-b-hero-hud-corner--br {
  right: 0.375rem;
  bottom: 0.375rem;
  border-right: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.plan-b-hero-hud-arrow {
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  z-index: 10;
  font-size: var(--text-sm);
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

@media (min-width: 768px) {
  .plan-b-hero-hud-arrow {
    right: 0.75rem;
    bottom: 0.625rem;
  }
}

/* Next: relative block h-[1em] w-[1em] overflow-hidden — 待機矢印をクリップ */
.plan-b-hero-hud-arrow__clip {
  position: relative;
  display: block;
  width: 1em;
  height: 1em;
  overflow: hidden;
}

.plan-b-hero-hud-arrow__out,
.plan-b-hero-hud-arrow__in {
  display: block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.plan-b-hero-hud-arrow__in {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}

.plan-b-hero-hud-cell:hover,
.plan-b-hero-hud-cell:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(125, 211, 252, 0.72);
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.35),
    0 0 12px rgba(56, 189, 248, 0.22),
    0 8px 28px -16px rgba(0, 0, 0, 0.45);
}

.plan-b-hero-hud-cell:hover .plan-b-hero-hud-corner--tl,
.plan-b-hero-hud-cell:hover .plan-b-hero-hud-corner--br,
.plan-b-hero-hud-cell:focus-visible .plan-b-hero-hud-corner--tl,
.plan-b-hero-hud-cell:focus-visible .plan-b-hero-hud-corner--br {
  border-color: rgba(125, 211, 252, 0.85);
}

.plan-b-hero-hud-cell:hover .plan-b-hero-hud-arrow__out,
.plan-b-hero-hud-cell:focus-visible .plan-b-hero-hud-arrow__out {
  transform: translate(100%, -100%);
}

.plan-b-hero-hud-cell:hover .plan-b-hero-hud-arrow__in,
.plan-b-hero-hud-cell:focus-visible .plan-b-hero-hud-arrow__in {
  transform: translateY(0);
}

.plan-b-hero-hud-cell:hover .plan-b-hero-hud-arrow,
.plan-b-hero-hud-cell:focus-visible .plan-b-hero-hud-arrow {
  color: rgba(186, 230, 253, 0.95);
}

.plan-b-hero-hud-cell[data-hud-index="0"] { grid-row: 2; grid-column: 1; }
.plan-b-hero-hud-cell[data-hud-index="1"] { grid-row: 2; grid-column: 2; }
.plan-b-hero-hud-cell[data-hud-index="2"] { grid-row: 3; grid-column: 1; }
.plan-b-hero-hud-cell[data-hud-index="3"] { grid-row: 3; grid-column: 2; }
.plan-b-hero-hud-cell[data-hud-index="4"] { grid-row: 4; grid-column: 1; }
.plan-b-hero-hud-cell[data-hud-index="5"] { grid-row: 4; grid-column: 2; }

.plan-b-hero__hud--mobile-stack .plan-b-hero-hud-layout {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.plan-b-hero__hud--mobile-stack .plan-b-hero-hud-mobile-head {
  order: 1;
  margin-top: 1.5rem;
  margin-bottom: 0.125rem;
}

.plan-b-hero__hud--mobile-stack .plan-b-hero-hud-guide--mobile-stack {
  padding-inline: 0;
  margin-inline: 0;
}

.plan-b-hero__hud--mobile-stack .plan-b-hero-hud-cell[data-hud-index] {
  order: 2;
  grid-column: 1;
  grid-row: auto;
  min-height: 2.75rem;
  padding-block: 0.5rem;
}

@media (min-width: 640px) {
  .plan-b-hero-hud-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .plan-b-hero-hud-guide {
    grid-column: 1 / 3;
    padding-right: 1rem;
    font-size: var(--text-base);
  }

  .plan-b-hero-hud-chat-slot {
    grid-column: 3;
  }

  .plan-b-hero-hud-cell {
    min-height: 4.5rem;
    padding: 0.75rem 0.875rem;
  }

  .plan-b-hero-hud-cell h3 {
    font-size: 1.0625rem;
    padding-inline: 2rem;
  }

  .plan-b-hero-hud-index {
    left: 0.875rem;
    font-size: var(--text-sm);
  }

  .plan-b-hero-hud-cell[data-hud-index="0"] { grid-row: 2; grid-column: 1; }
  .plan-b-hero-hud-cell[data-hud-index="1"] { grid-row: 2; grid-column: 2; }
  .plan-b-hero-hud-cell[data-hud-index="2"] { grid-row: 2; grid-column: 3; }
  .plan-b-hero-hud-cell[data-hud-index="3"] { grid-row: 3; grid-column: 1; }
  .plan-b-hero-hud-cell[data-hud-index="4"] { grid-row: 3; grid-column: 2; }
  .plan-b-hero-hud-cell[data-hud-index="5"] { grid-row: 3; grid-column: 3; }
}

@media (min-width: 640px) {
  .hero-video-tagline--centered {
    font-size: 3.08rem;
  }
}

@media (min-width: 768px) {
  .plan-b-hero__copy--desktop,
  .plan-b-hero__hud--desktop {
    display: block;
  }

  .plan-b-hero__copy--mobile,
  .plan-b-hero__hud--mobile-stack {
    display: none !important;
  }

  .plan-b-hero__copy--desktop {
    padding-inline: 2.5rem;
  }

  .plan-b-hero__hud--desktop {
    padding-inline: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-video-tagline--centered {
    font-size: 3.85rem;
  }

  .hero-video-subcopy {
    font-size: 16px;
  }

  .plan-b-hero .hero-video-copy--optical-with-sub {
    --hero-optical-center-y: 41%;
  }

  .plan-b-hero-hud-cell {
    min-height: 4.75rem;
    padding: 0.625rem 1rem;
  }

  .plan-b-hero-hud-cell h3 {
    font-size: 1.125rem;
    padding-inline: 2.25rem;
  }

  .plan-b-hero-hud-guide {
    font-size: 1rem;
    /* 01–03 行へ少し下げる（AI相談スロットは align-self: center のまま） */
    align-self: end;
    position: relative;
    top: 0.75rem;
  }
}

/* 縦の低いノートPC — HUD ボタンを詰めてキャッチとの重なりを防ぐ */
@media (min-width: 768px) and (max-height: 900px) {
  .plan-b-hero .hero-video-copy--optical-with-sub {
    --hero-optical-center-y: 38%;
  }

  .plan-b-hero__hud--desktop {
    padding-bottom: 1.5rem;
  }

  .plan-b-hero-hud-layout {
    gap: 0.75rem;
  }

  .plan-b-hero-hud-guide {
    font-size: var(--text-sm);
    top: 0.375rem;
  }

  .plan-b-hero-hud-cell {
    min-height: 3.5rem;
    padding: 0.5rem 0.75rem;
  }

  .plan-b-hero-hud-cell h3 {
    font-size: var(--text-base);
    padding-inline: 1.75rem;
    line-height: 1.2;
  }

  .plan-b-hero-hud-index {
    left: 0.625rem;
    font-size: var(--text-sm);
  }

  .plan-b-hero-hud-corner {
    width: 0.5rem;
    height: 0.5rem;
  }

  .plan-b-hero-hud-arrow {
    font-size: var(--text-sm);
    right: 0.625rem;
    bottom: 0.4375rem;
  }
}

@media (min-width: 768px) and (max-height: 780px) {
  .plan-b-hero .hero-video-copy--optical-with-sub {
    --hero-optical-center-y: 36%;
  }

  .plan-b-hero__hud--desktop {
    padding-bottom: 1rem;
  }

  .plan-b-hero-hud-layout {
    gap: 0.5rem;
  }

  .plan-b-hero-hud-guide {
    font-size: var(--text-sm);
    top: 0.125rem;
  }

  .plan-b-hero-hud-cell {
    min-height: 2.75rem;
    padding: 0.375rem 0.625rem;
  }

  .plan-b-hero-hud-cell h3 {
    font-size: var(--text-sm);
    padding-inline: 1.5rem;
  }

  .plan-b-hero-hud-index {
    left: 0.5rem;
    font-size: var(--text-min);
  }
}

@media (min-width: 1024px) {
  .hero-video-tagline--centered {
    font-size: 4.4rem;
  }
}

@media (min-width: 1280px) {
  .hero-video-tagline--centered {
    font-size: 4.95rem;
  }

  .hero-video-subcopy {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  html:has(.plan-b-hero) {
    --plan-b-fv-inset-x: 1.25rem;
  }

  @media (min-width: 640px) {
    html:has(.plan-b-hero) {
      --plan-b-fv-inset-x: 2rem;
    }
  }

  /* Next PlanBHeroStage — optical の基準を padding 内側に固定（HUD と左端を揃える） */
  .plan-b-hero .plan-b-hero__copy--mobile .plan-b-hero__mobile-stack {
    position: relative;
    height: 100%;
  }

  .plan-b-hero .plan-b-hero__copy--mobile .plan-b-hero__mobile-layer {
    position: relative;
    height: 100%;
  }

  .plan-b-hero .plan-b-hero-hud-layout,
  .plan-b-hero .plan-b-hero-hud-mobile-head {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .plan-b-hero .hero-video-copy--mobile-cycle {
    --hero-optical-center-y: 36%;
  }

  .plan-b-hero .hero-video-copy--mobile-screen1.hero-video-copy--optical {
    --hero-optical-center-y: 50%;
    justify-content: center;
    text-align: left;
  }

  .plan-b-hero .hero-video-copy--mobile-screen1 .hero-video-copy__stack {
    align-items: flex-start;
    gap: 2.25rem;
  }

  .plan-b-hero .hero-video-copy--mobile-screen1 .hero-video-tagline--stacked {
    font-size: clamp(2.75rem, 2.35rem + 3.2vw, 3.15rem);
    line-height: 1.02;
    white-space: normal;
  }

  .plan-b-hero .hero-video-copy--mobile-screen1 .hero-video-tagline--stacked .hero-video-tagline-char-block + .hero-video-tagline-char-block {
    margin-top: -0.14em;
  }

  .plan-b-hero .hero-video-copy--mobile-screen1 .hero-video-copy__stack > p[data-hero-fade],
  .plan-b-hero .hero-video-copy--mobile-screen1 .hero-video-subcopy {
    max-width: min(100%, 20rem);
    margin-top: 0;
    margin-inline: 0;
    white-space: normal;
    text-align: left;
  }

  /* 第二画面 — ヘッダー下に固定し HUD ガイドとの間を確保 */
  .plan-b-hero .hero-video-copy--mobile-cycle:not(.hero-video-copy--mobile-screen1) {
    top: calc(var(--site-header-height) + 3rem);
    transform: none;
    justify-content: flex-start;
    text-align: left;
    inset-inline: 0;
    width: 100%;
    max-width: 100%;
  }

  .plan-b-hero__hud--mobile-stack[data-mobile-phase="1"] .plan-b-hero-hud-mobile-head {
    margin-top: clamp(2rem, 6.5svh, 3rem);
  }

  .plan-b-hero .hero-video-copy--mobile-cycle:not(.hero-video-copy--mobile-screen1) .hero-video-copy__stack {
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
  }

  .plan-b-hero .hero-video-copy--mobile-cycle .hero-video-group-hierarchy {
    justify-content: flex-start;
    margin-inline: 0;
    margin-top: 0;
    max-width: 100%;
    transform: none;
  }

  .plan-b-hero .hero-video-copy--mobile-cycle .hero-video-group-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    white-space: normal;
    width: 100%;
    font-size: inherit;
    line-height: 1.4;
  }

  .plan-b-hero .hero-video-copy--mobile-cycle .hero-video-group-divider {
    display: none;
  }

  .plan-b-hero .hero-video-copy--mobile-cycle .hero-video-group-brand {
    display: none;
  }

  .plan-b-hero .hero-video-copy--mobile-cycle .hero-video-group-company {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    font-family: var(--font-noto), sans-serif;
    font-size: clamp(1.125rem, 1rem + 2.2vw, 1.4375rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.4;
  }

  @media (max-width: 375px) {
    .plan-b-hero .hero-video-copy--mobile-cycle .hero-video-group-line {
      gap: 0.4375rem;
    }

    .plan-b-hero .hero-video-copy--mobile-cycle .hero-video-group-company {
      font-size: clamp(0.9375rem, 0.875rem + 1vw, 1.0625rem);
      letter-spacing: 0.04em;
    }

    .plan-b-hero .hero-video-copy--mobile-cycle:not(.hero-video-copy--mobile-screen1) {
      top: calc(var(--site-header-height) + 2.5rem);
    }
  }

  @media (max-height: 700px) {
    .plan-b-hero__hud--mobile-stack[data-mobile-phase="1"] .plan-b-hero-hud-cell[data-hud-index] {
      min-height: 2.5rem;
      padding-block: 0.4375rem;
    }

    .plan-b-hero__hud--mobile-stack[data-mobile-phase="1"] {
      padding-bottom: 1rem;
    }
  }
}

@media (min-width: 1600px) and (max-width: 1919px) {
  .hero-video-copy--optical-with-sub {
    --hero-optical-center-y: 46%;
  }

  .plan-b-hero .hero-video-copy--optical-with-sub {
    --hero-optical-center-y: 39.5%;
  }
}

@media (min-width: 1800px) and (min-height: 900px) and (max-height: 1099px) {
  .plan-b-hero h1.hero-video-tagline--centered {
    line-height: 1.1;
  }
}

@media (min-width: 1920px) and (max-width: 1999px) {
  .plan-b-hero h1.hero-video-tagline--centered {
    line-height: 1.12 !important;
  }
}

/* 1920〜iMac — キャッチ一式の比率を 2560 で決めた尺に揃え、html --ui-scale で追従させる */
@media (min-width: 1920px) {
  .plan-b-hero h1.hero-video-tagline--centered {
    font-size: 5.7rem;
  }

  .plan-b-hero .hero-video-group-line,
  .plan-b-hero .hero-video-group-subline {
    font-size: 1.36rem;
  }

  .plan-b-hero .plan-b-hero-hud-guide {
    font-size: 1.08rem;
  }
}

@media (min-width: 1800px) and (min-height: 1100px),
  (min-width: 1800px) and (min-height: 1080px) and (max-height: 1099px) and (min-resolution: 2dppx) {
  .plan-b-hero h1.hero-video-tagline--centered {
    line-height: 1.08 !important;
  }

  .plan-b-hero .plan-b-hero__copy--desktop .hero-video-copy__stack {
    transform: translateY(clamp(0.5rem, 1vh, 1rem));
  }
}

@media (min-width: 1800px) and (min-height: 1080px) and (max-height: 1099px) and (min-resolution: 2dppx) {
  html:has([data-plan-b]) {
    font-size: calc(112.5% * var(--ui-scale));
  }
}

@media (max-width: 639px) {
  .plan-b-hero__copy--desktop .hero-video-group-line,
  .hero-video-group-subline {
    font-size: clamp(var(--text-sm), 0.55rem + 2.6vw, 0.9375rem);
  }

  .hero-video-group-divider {
    margin-inline: clamp(0.3125rem, 0.22rem + 0.45vw, 0.4375rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-tagline-char {
    transform: none;
  }

  .plan-b-hero__mobile-layer {
    transition: none;
  }

  .plan-b-hero-hud-cell {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(15, 23, 42, 0.55);
  }

  .plan-b-hero-hud-arrow__out,
  .plan-b-hero-hud-arrow__in,
  .plan-b-hero__mobile-layer {
    transition: none;
  }
}
