/* ============================================================
 * SYシフト ランディング（view/index.html）— 「時間が、光になる」
 *   いつも Night（ダーク）。粒子の canvas（three.js）は後ろに固定し、文字はその前に置く。
 *   html のクラス:
 *     lp-js          … JS がある（public/js/sy-landing-boot.js）。ヒーローの文字は登場まで隠す（4 秒で必ず見える保険つき）
 *     lp-intro-seen  … このセッションでプリローダーを見た
 *     lp-motion      … 動きあり（mountLanding が付ける）。動きを減らす設定では is-reduced-motion
 *     is-no-webgl    … WebGL が使えない。CSS の光とロゴに切り替える
 *     lp-static      … JS の途中で失敗した。すべてをそのまま見せる
 *   JS が動かないとき・動きを減らす設定のときは、すべての内容が最初から見える（マークアップは「動き終わった姿」）。
 * ============================================================ */

:root {
  --lp-gutter: clamp(20px, 5.4vw, 88px);
  --lp-max: 1400px;
  --lp-nav-h: 76px;
  --lp-glass: linear-gradient(180deg, rgba(24, 23, 36, 0.86), rgba(13, 13, 21, 0.82));
  --lp-glass-border: rgba(255, 255, 255, 0.1);
}

/* --- Lenis（スムーススクロール）の推奨スタイル --- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ============================================================
 * Base
 * ============================================================ */

.lp-body {
  background: var(--bg);
  color: var(--ink);
}

.lp-body a,
.lp-body a:hover {
  background-image: none;
}

/* 日本語の文章は、文節の切れ目で折り返す（「またい / だ」のような分かれ方をしない） */
.lp-body p,
.lp-body h1,
.lp-body h2,
.lp-body h3 {
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: pretty;
}

.lp-br {
  display: inline;
}

.lp-container {
  width: 100%;
  max-width: var(--lp-max);
  margin-inline: auto;
  padding-inline: var(--lp-gutter);
}

.lp-main {
  position: relative;
  display: block;
  min-height: 0;
  outline: none;
  /* 文字の後ろの淡い影（::before）が横にはみ出して、スマホの画面幅を広げないように */
  overflow-x: clip;
}

.lp-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.4s var(--ease);
}

.lp-skip:focus-visible {
  transform: none;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.lp-eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--grad-aurora);
}

/* 粒子の canvas（index.ts が置く）。画面いっぱいに固定し、内容の後ろへ */
.lp-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}

.lp-canvas.is-ready {
  opacity: 1;
}

/* 動きを減らす設定: ヒーローに 1 枚だけ描き、ページと一緒に流れる */
.lp-canvas.is-static {
  position: absolute;
  height: 100vh;
  height: 100svh;
}

/* ============================================================
 * Preloader
 * ============================================================ */

.lp-preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(60vmax 40vmax at 50% 120%, rgba(123, 97, 255, 0.16), transparent 70%),
    #07070d;
  color: var(--ink);
}

.lp-js .lp-preloader {
  display: flex;
  animation: lp-failsafe-out 0.7s var(--ease) 4s forwards;
}

.lp-js.lp-intro-seen .lp-preloader,
.lp-static .lp-preloader {
  display: none;
}

.lp-preloader.is-playing {
  animation: none;
}

.lp-preloader__inner {
  display: grid;
  justify-items: center;
  gap: 26px;
}

.lp-preloader__mark {
  width: 96px;
  height: 96px;
  overflow: visible;
}

.lp-pre-arc {
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(123, 97, 255, 0.55));
}

.lp-pre-orb {
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255, 138, 91, 0.95));
}

.lp-preloader__word {
  display: flex;
  overflow: hidden;
  padding: 2px 0 2px 0.62em;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.62em;
  color: var(--ink);
}

.lp-preloader__word span {
  display: inline-block;
  opacity: 0;
}

.lp-preloader__gap {
  width: 0.4em;
}

.lp-preloader__edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--grad-aurora);
  box-shadow: 0 0 28px 3px rgba(123, 97, 255, 0.55), 0 0 60px 8px rgba(47, 199, 224, 0.2);
}

@keyframes lp-failsafe-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ============================================================
 * 登場の前は隠す（JS があるときだけ）。4 秒たっても JS が来なければ見せる
 * ============================================================ */

.lp-js [data-lp-intro] {
  opacity: 0;
  animation: lp-failsafe-in 0.9s var(--ease) 4s forwards;
}

.lp-motion [data-lp-intro] {
  animation: none;
}

.lp-static [data-lp-intro],
.is-reduced-motion [data-lp-intro] {
  opacity: 1;
  animation: none;
}

@keyframes lp-failsafe-in {
  to {
    opacity: 1;
  }
}

/* ============================================================
 * Nav
 * ============================================================ */

.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top);
  transition: transform 0.8s var(--ease);
}

.lp-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 13, 0.58);
  border-bottom: 1px solid var(--rule-soft);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.lp-nav.is-scrolled::before {
  opacity: 1;
}

.lp-nav.is-hidden {
  transform: translateY(-110%);
}

.lp-nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--lp-nav-h);
}

.lp-nav .sy-logo {
  font-size: 1.0625rem;
  gap: 0.62rem;
}

.lp-nav .sy-mark,
.lp-footer .sy-mark {
  width: 30px;
  height: 30px;
}

.lp-nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-nav__link {
  position: relative;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
}

.lp-nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 1px;
  background: var(--grad-aurora);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}

.lp-nav__link:hover {
  color: var(--ink);
}

.lp-nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lp-nav__cta {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.lp-nav__cta:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(140, 123, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 24px -6px rgba(123, 97, 255, 0.6);
}

.lp-nav__link:focus-visible,
.lp-nav__cta:focus-visible,
.lp-link:focus-visible,
.lp-footer a:focus-visible,
.lp-body .sy-logo:focus-visible {
  outline: 2px solid var(--iris);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

/* ============================================================
 * 1. Hero
 * ============================================================ */

.lp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--lp-nav-h) + 40px) 0 128px;
  overflow: clip;
}

/* リングの後ろの、ごく淡い光だまり（粒子の光に奥行きを足す） */
.lp-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 72%;
  width: min(70vw, 1000px);
  aspect-ratio: 1;
  translate: -50% -50%;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(123, 97, 255, 0.13), rgba(47, 199, 224, 0.05) 55%, transparent 72%);
}

.is-no-webgl .lp-hero::before {
  display: none;
}

.lp-hero__inner {
  position: relative;
  z-index: 1;
}

.lp-hero__eyebrow {
  margin-bottom: 34px;
  min-height: 1.2em;
  white-space: nowrap;
}

.lp-hero__title {
  margin: 0 0 34px;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(1.75rem, 0.56rem + 4.9vw, 4.7rem);
  line-height: 1.34;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-shadow: 0 2px 40px rgba(7, 7, 13, 0.6);
}

.lp-hero__line {
  display: block;
  white-space: nowrap;
}

.lp-hero__light,
.lp-hero__light .lp-char {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.lp-hero__light:has(.lp-char) {
  background: none;
}

.lp-hero__lead {
  max-width: 33em;
  margin-bottom: 48px;
  font-size: clamp(0.9375rem, 0.86rem + 0.3vw, 1.0625rem);
  line-height: 2.05;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-shadow: 0 1px 24px rgba(7, 7, 13, 0.9);
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 34px;
}

/* 主ボタン（common.css の .btn-primary に、大きさと矢印を足す） */
.lp-cta.btn {
  gap: 14px;
  padding: 19px 30px 19px 36px;
  font-size: 0.9375rem;
  letter-spacing: 0.16em;
}

.lp-cta__label,
.lp-cta__icon {
  position: relative;
  display: inline-block;
}

.lp-cta__icon {
  transition: transform 0.6s var(--ease);
}

.lp-cta:hover .lp-cta__icon {
  transform: translateX(4px);
}

.lp-ghost.btn {
  padding: 19px 32px;
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}

.lp-ghost.btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(140, 123, 255, 0.55);
  box-shadow: var(--highlight), 0 0 30px -8px rgba(123, 97, 255, 0.55);
}

.lp-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.lp-link::before,
.lp-link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 6px;
  height: 1px;
}

.lp-link::after {
  background: rgba(243, 241, 255, 0.22);
}

.lp-link::before {
  z-index: 1;
  background: var(--grad-aurora);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s var(--ease);
}

.lp-link:hover {
  color: var(--ink);
}

.lp-link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.lp-link svg {
  transition: transform 0.6s var(--ease);
}

.lp-link:hover svg {
  transform: translateY(3px);
}

.lp-hero__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.lp-scrollcue {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--ink-mute);
}

.lp-scrollcue i {
  position: relative;
  display: block;
  width: 1px;
  height: 58px;
  margin-left: 2px;
  background: rgba(243, 241, 255, 0.14);
  overflow: hidden;
}

.lp-scrollcue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -45%;
  width: 1px;
  height: 45%;
  background: linear-gradient(to bottom, transparent, #f3f1ff 70%, #8c7bff);
  animation: lp-scrollcue 2.4s var(--ease-in-out) infinite;
}

@keyframes lp-scrollcue {
  0% {
    transform: translateY(0);
  }

  70%,
  100% {
    transform: translateY(330%);
  }
}

.lp-hero__coords {
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}

.lp-hero__coords span + span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 18px;
  vertical-align: middle;
  background: rgba(243, 241, 255, 0.2);
}

/* --- WebGL が使えないとき（と JS がないとき）の光: オーロラの重なりと、大きなロゴの印 --- */
.lp-hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.lp-js:not(.is-no-webgl):not(.lp-static) .lp-hero__fallback,
.lp-js:not(.is-no-webgl):not(.lp-static) .lp-finale__fallback {
  display: none;
}

.lp-aurora {
  position: absolute;
  inset: -10%;
  filter: blur(46px) saturate(125%);
}

.lp-aurora i {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.lp-aurora i:nth-child(1) {
  left: 44%;
  top: 6%;
  width: 56vmax;
  height: 42vmax;
  background: radial-gradient(closest-side, rgba(123, 97, 255, 0.5), transparent);
  animation: lp-drift-a 19s ease-in-out infinite alternate;
}

.lp-aurora i:nth-child(2) {
  left: 60%;
  top: 30%;
  width: 44vmax;
  height: 34vmax;
  background: radial-gradient(closest-side, rgba(47, 199, 224, 0.34), transparent);
  animation: lp-drift-b 23s ease-in-out infinite alternate;
}

.lp-aurora i:nth-child(3) {
  left: 66%;
  top: 56%;
  width: 34vmax;
  height: 28vmax;
  background: radial-gradient(closest-side, rgba(255, 138, 91, 0.3), transparent);
  animation: lp-drift-c 27s ease-in-out infinite alternate;
}

@keyframes lp-drift-a {
  to {
    transform: translate(-6vmax, 4vmax) scale(1.08);
  }
}

@keyframes lp-drift-b {
  to {
    transform: translate(5vmax, -5vmax) scale(0.92);
  }
}

@keyframes lp-drift-c {
  to {
    transform: translate(-4vmax, -3vmax) scale(1.12);
  }
}

.lp-hero__mark {
  position: absolute;
  top: 50%;
  right: max(4vw, calc((100vw - var(--lp-max)) / 2));
  width: min(44vw, 640px);
  height: auto;
  overflow: visible;
  transform: translateY(-46%) rotate(-10deg);
}

.lp-hero__arc-glow {
  opacity: 0.85;
  filter: blur(2.4px);
}

.lp-hero__orb {
  filter: drop-shadow(0 0 2px #ff8a5b) drop-shadow(0 0 7px rgba(255, 138, 91, 0.9));
}

/* ============================================================
 * 2. Manifesto
 * ============================================================ */

.lp-manifesto {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--lp-nav-h) + 24px) 0 64px;
  text-align: center;
  outline: none;
}

.lp-manifesto::before {
  content: "";
  position: absolute;
  inset: 8% 0;
  pointer-events: none;
  background: radial-gradient(56% 50% at 50% 50%, rgba(7, 7, 13, 0.86), rgba(7, 7, 13, 0.42) 58%, transparent 80%);
}

.lp-manifesto__inner {
  position: relative;
}

.lp-manifesto__eyebrow {
  margin-bottom: clamp(28px, 6vh, 56px);
}

.lp-manifesto__text {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(1.5rem, 0.66rem + 3.75vw, 4.4rem);
  line-height: 1.64;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.lp-manifesto__line {
  display: block;
}

.lp-w {
  display: inline-block;
}

/* ============================================================
 * 3. Features
 *   既定（スマホ・動きを減らす設定・JS なし）は縦に並べる。デスクトップで JS が .is-horizontal を付けると横に送る
 * ============================================================ */

.lp-features {
  position: relative;
  padding: clamp(96px, 16vh, 180px) 0 clamp(48px, 8vh, 110px);
}

.lp-features__intro {
  position: relative;
  z-index: 1;
  max-width: var(--lp-max);
  margin: 0 auto clamp(24px, 6vh, 72px);
  padding-inline: var(--lp-gutter);
}

.lp-features__intro::before {
  content: "";
  position: absolute;
  inset: 4% -10% 0 -16%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 7, 13, 0.8), rgba(7, 7, 13, 0.45) 60%, transparent);
}

.lp-features__title {
  margin: 24px 0 26px;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(2rem, 1.1rem + 2.9vw, 4rem);
  line-height: 1.42;
  letter-spacing: 0.04em;
}

.lp-features__title span {
  display: block;
}

.lp-features__lead {
  max-width: 30em;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 2.05;
  color: var(--ink-soft);
}

.lp-chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: clamp(56px, 10vh, 120px) var(--lp-gutter);
}

.lp-chapter__text {
  position: relative;
  z-index: 1;
}

.lp-chapter__text::before {
  content: "";
  position: absolute;
  inset: -18% -22% -22% -30%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 7, 13, 0.82), rgba(7, 7, 13, 0.5) 55%, transparent);
}

.lp-chapter__index {
  position: relative;
  display: inline-block;
  margin-bottom: clamp(18px, 3.4vh, 36px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 2.6rem + 6.4vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 241, 255, 0.24);
  user-select: none;
}

/* 番号は、章に入ると下から光で満ちる */
.lp-chapter__index::after {
  content: attr(data-index);
  position: absolute;
  inset: 0;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.8s var(--ease) 0.15s;
}

.lp-motion .lp-chapter:not(.is-active) .lp-chapter__index::after {
  clip-path: inset(100% 0 0 0);
}

.lp-chapter__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--ink-mute);
}

.lp-chapter__label::before {
  content: "";
  flex: none;
  width: 26px;
  height: 1px;
  background: var(--grad-aurora);
}

.lp-chapter__title {
  margin: 16px 0 24px;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.4rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.lp-chapter__body {
  max-width: 24em;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 2.05;
  color: var(--ink-soft);
}

.lp-chapter__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lp-chapter__visual::before {
  content: "";
  position: absolute;
  inset: 6% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(123, 97, 255, 0.2), rgba(47, 199, 224, 0.06) 60%, transparent);
  filter: blur(30px);
}

.lp-features__progress {
  display: none;
}

/* --- デスクトップ: 固定して横に送る --- */
.lp-features.is-horizontal {
  height: 100vh;
  padding: 0;
  overflow: hidden;
}

.lp-features.is-horizontal .lp-features__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.lp-features.is-horizontal .lp-features__intro {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(44vw, 700px);
  height: 100%;
  margin: 0;
  padding: 0 3vw 0 max(var(--lp-gutter), calc((100vw - var(--lp-max)) / 2 + var(--lp-gutter)));
}

.lp-features.is-horizontal .lp-chapter {
  flex: none;
  width: min(88vw, 1440px);
  height: 100%;
  max-width: none;
  margin: 0;
  padding: calc(var(--lp-nav-h) + 8px) 4.5vw 96px;
}

.lp-features.is-horizontal .lp-features__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: var(--lp-max);
  margin-inline: auto;
  padding-inline: var(--lp-gutter);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ink-mute);
}

.lp-features__count b {
  margin-right: 8px;
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.lp-features__bar {
  position: relative;
  flex: 1;
  height: 1px;
  background: rgba(243, 241, 255, 0.12);
}

.lp-features__bar i {
  position: absolute;
  inset: 0;
  background: var(--grad-aurora);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 12px rgba(123, 97, 255, 0.6);
}

/* ============================================================
 * 小さな画面（mini UI）の共通
 * ============================================================ */

.lp-ui {
  position: relative;
  width: 100%;
  max-width: 540px;
  container-type: inline-size;
  padding: 20px 22px 22px;
  border-radius: var(--radius-3);
  background: var(--lp-glass);
  border: 1px solid var(--lp-glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 50px 100px -48px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.lp-ui::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 123, 255, 0.85), rgba(61, 232, 216, 0.7), transparent);
}

.lp-ui__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
}

.lp-ui__name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.lp-ui__name span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-mute);
}

.lp-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 4px 10px 4px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--lagoon);
  background: rgba(61, 232, 216, 0.08);
  border: 1px solid rgba(61, 232, 216, 0.24);
}

.lp-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lagoon);
  box-shadow: 0 0 10px var(--lagoon);
  animation: lp-live 1.8s ease-in-out infinite;
}

@keyframes lp-live {
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

.lp-ui__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
}

.lp-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.71875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lp-chip--ok {
  color: var(--ok);
  background: var(--ok-soft);
  box-shadow: inset 0 0 0 1px rgba(52, 224, 161, 0.26);
}

.lp-chip--warn {
  color: var(--warn);
  background: var(--warn-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 193, 94, 0.3), 0 0 22px -6px rgba(255, 193, 94, 0.6);
}

/* --- 01 モデルシフト --- */
.lp-model {
  display: grid;
  grid-template-columns: 30px repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.lp-model__band {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  line-height: 1.3;
}

.lp-model__band small {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-mute);
}

.lp-model__day {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ink-mute);
}

.lp-model__day.is-weekend {
  color: var(--ember);
}

.lp-model__cell {
  --heat: 1;
  --tone: 123, 97, 255;
  --a: 0.14;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(var(--tone), calc(var(--a) * var(--heat)));
  box-shadow: inset 0 0 0 1px rgba(var(--tone), calc(var(--a) * 1.4 * var(--heat)));
}

.lp-model__cell[data-v="3"] {
  --a: 0.22;
}

.lp-model__cell[data-v="4"] {
  --tone: 86, 150, 240;
  --a: 0.28;
}

.lp-model__cell[data-v="5"] {
  --tone: 47, 199, 224;
  --a: 0.3;
}

.lp-model__cell[data-v="6"] {
  --tone: 47, 199, 224;
  --a: 0.42;
}

.lp-model__cell[data-v="7"] {
  --tone: 255, 138, 91;
  --a: 0.42;
}

.lp-model__auto {
  flex: none;
  white-space: nowrap;
  transition: box-shadow 0.5s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--grad-button);
  box-shadow: 0 8px 22px -10px rgba(123, 97, 255, 0.9);
}

/* 押したあと（自動算出を当てた） */
.lp-model__auto.is-on {
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.28), 0 0 26px -2px rgba(123, 97, 255, 0.75);
}

.lp-model__skills {
  display: flex;
  gap: 6px;
  margin-right: auto;
}

.lp-model__skills span {
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.6875rem;
  color: var(--ink-mute);
  background: rgba(255, 255, 255, 0.05);
}

.lp-ratio {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 0.75rem;
  color: var(--ink-mute);
  white-space: nowrap;
}

.lp-ratio b {
  margin-left: 8px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}

/* 小さな画面が狭いとき（タブレットなど）は、スキルの札を省く */
@container (max-width: 470px) {
  .lp-model__skills {
    display: none;
  }
}

/* --- 02 希望シフト（スマホの枠） --- */
.lp-phone {
  position: relative;
  width: 276px;
  height: 548px;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(155deg, #252436, #0d0d16 55%, #1a1928);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 60px 110px -50px rgba(0, 0, 0, 0.95),
    0 0 90px -30px rgba(123, 97, 255, 0.5);
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.lp-phone__screen {
  position: relative;
  height: 100%;
  padding: 0 14px 16px;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(123, 97, 255, 0.22), transparent 60%),
    #0b0b13;
}

.lp-phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 10px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

.lp-phone__island {
  width: 84px;
  height: 24px;
  border-radius: 20px;
  background: #000;
}

.lp-phone__sig {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.lp-phone__sig b {
  width: 3px;
  border-radius: 1px;
  background: var(--ink);
}

.lp-phone__sig b:nth-child(1) {
  height: 4px;
}

.lp-phone__sig b:nth-child(2) {
  height: 7px;
}

.lp-phone__sig b:nth-child(3) {
  height: 10px;
}

.lp-phone__notice {
  position: absolute;
  top: 50px;
  left: 9px;
  right: 9px;
  z-index: 2;
  display: flex;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 18px;
  background: rgba(38, 37, 54, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.lp-phone__app {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: #06c755;
}

.lp-phone__msg {
  font-size: 0.6875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.lp-phone__msg b {
  display: flex;
  justify-content: space-between;
  font-size: 0.71875rem;
  color: var(--ink);
}

.lp-phone__msg small {
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--ink-mute);
}

.lp-phone__title {
  margin: 30px 4px 2px;
  font-family: var(--font-mincho);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.lp-phone__range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 4px 14px;
  font-size: 0.6875rem;
  color: var(--ink-mute);
}

.lp-phone__range span {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: var(--warn);
  background: var(--warn-soft);
}

.lp-req {
  display: grid;
  gap: 7px;
}

.lp-req__row {
  --i: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
  padding: 8px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-req__row[data-choice="1"] {
  --i: 1;
}

.lp-req__row[data-choice="2"] {
  --i: 2;
}

.lp-req__date {
  display: grid;
  justify-items: center;
  font-size: 0.5625rem;
  line-height: 1.2;
  color: var(--ink-mute);
}

.lp-req__date b {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}

.lp-req__date.is-weekend,
.lp-req__date.is-weekend b {
  color: var(--ember);
}

.lp-seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.lp-seg__pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: calc(3px + (100% - 6px) / 3 * var(--i));
  width: calc((100% - 6px) / 3);
  border-radius: 8px;
  background: #8c7bff;
  box-shadow: 0 4px 14px -4px rgba(140, 123, 255, 0.9);
}

.lp-req__row[data-choice="1"] .lp-seg__pill {
  background: var(--lagoon);
  box-shadow: 0 4px 14px -4px rgba(61, 232, 216, 0.8);
}

.lp-req__row[data-choice="2"] .lp-seg__pill {
  background: #4a4760;
  box-shadow: none;
}

.lp-seg__opt {
  position: relative;
  padding: 5px 0;
  font-size: 0.625rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  color: var(--ink-mute);
  transition: color 0.3s var(--ease);
}

.lp-seg__opt.is-on {
  font-weight: 700;
  color: #0b0a12;
}

.lp-req__row[data-choice="2"] .lp-seg__opt.is-on {
  color: var(--ink);
}

.lp-req__time {
  grid-column: 2;
  padding-left: 2px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: #b3a8ff;
}

.lp-phone__submit {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--grad-button);
  box-shadow: 0 10px 26px -12px rgba(123, 97, 255, 0.9);
}

/* --- 03 シフト作成 --- */
.lp-create {
  display: grid;
  gap: 7px;
}

.lp-create__axis {
  display: flex;
  justify-content: space-between;
  margin-left: 54px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--ink-mute);
}

.lp-create__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: 28px;
}

.lp-create__name {
  font-size: 0.75rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.lp-create__lane {
  position: relative;
  height: 100%;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px calc(100% / 12)),
    rgba(255, 255, 255, 0.025);
}

.lp-create__bar {
  --s: 0;
  --w: 0.3;
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: calc(var(--s) * 100%);
  width: calc(var(--w) * 100%);
  border-radius: 6px;
  background: linear-gradient(90deg, #7b61ff, #a293ff);
  box-shadow: 0 0 18px -4px rgba(123, 97, 255, 0.85);
}

.lp-create__bar[data-tone="lagoon"] {
  background: linear-gradient(90deg, #22b6d0, #5eeede);
  box-shadow: 0 0 18px -4px rgba(47, 199, 224, 0.8);
}

.lp-create__bar[data-tone="ember"] {
  background: linear-gradient(90deg, #ff7a4a, #ffb08e);
  box-shadow: 0 0 18px -4px rgba(255, 138, 91, 0.8);
}

/* 塗っている途中の筆先 */
.lp-create__bar::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.75), 0 0 26px 6px rgba(140, 123, 255, 0.6);
  transform: translateY(-50%) scale(0);
  transition: transform 0.25s var(--ease);
}

.lp-create__bar.is-painting::after {
  transform: translateY(-50%) scale(1);
}

.lp-create__need {
  margin-top: 4px;
  height: 24px;
}

.lp-create__cells {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
  height: 100%;
}

.lp-create__cells i {
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-style: normal;
  color: var(--ok);
  background: rgba(52, 224, 161, 0.1);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.lp-create__cells i.is-short {
  color: var(--danger);
  background: rgba(255, 92, 131, 0.16);
}

.lp-create__meter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}

.lp-gauge {
  flex: none;
  width: 124px;
  height: auto;
  overflow: visible;
}

.lp-gauge__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 9;
  stroke-linecap: round;
}

.lp-gauge__value {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(47, 199, 224, 0.55));
}

.lp-gauge__target {
  stroke: var(--ember);
  stroke-width: 2;
  stroke-linecap: round;
}

.lp-gauge__needle {
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.lp-gauge__hub {
  fill: var(--ink);
}

.lp-gauge__value-text {
  display: grid;
  gap: 2px;
  font-size: 0.75rem;
  color: var(--ink-mute);
}

.lp-gauge__num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ok);
  transition: color 0.4s var(--ease);
}

.lp-gauge__num b {
  font-size: 1.875rem;
  letter-spacing: -0.02em;
}

.lp-create__meter.is-over .lp-gauge__num {
  color: var(--ember);
}

.lp-gauge__goal {
  font-size: 0.6875rem;
  color: var(--ink-mute);
}

/* --- 04 照合とアドバイス --- */
.lp-check {
  display: grid;
  gap: 8px;
}

.lp-check li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 40px 104px;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule-soft);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.lp-check li .lp-chip {
  justify-self: end;
}

.lp-check__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

.lp-check__meter {
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.lp-check__meter i {
  --p: 1;
  display: block;
  width: calc(var(--p) * 100%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lagoon), var(--ok));
}

.lp-check__val {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}

.lp-check__focus.is-short {
  border-color: rgba(255, 193, 94, 0.36);
  box-shadow: 0 0 34px -12px rgba(255, 193, 94, 0.5);
}

.lp-check__focus.is-short .lp-check__meter i {
  background: linear-gradient(90deg, #ffc15e, #ff9166);
}

.lp-check__focus.is-resolved {
  border-color: rgba(52, 224, 161, 0.34);
  box-shadow: 0 0 34px -12px rgba(52, 224, 161, 0.5);
}

.lp-advice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px 12px;
  margin-top: 14px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.16), rgba(47, 199, 224, 0.07));
  border: 1px solid rgba(140, 123, 255, 0.26);
}

.lp-advice__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  background: var(--grad-button);
  box-shadow: 0 0 18px -4px rgba(123, 97, 255, 0.9);
}

.lp-advice__text {
  min-height: 3.4em;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--ink);
}

.lp-advice__btn {
  grid-column: 2;
  justify-self: end;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0b0a12;
  background: var(--lagoon);
  box-shadow: 0 8px 20px -10px rgba(61, 232, 216, 0.9);
}

/* --- 05 全店横断ビュー --- */
.lp-heat {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px 10px;
}

.lp-heat__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  font-size: 0.6875rem;
  text-align: center;
  color: var(--ink-mute);
}

.lp-heat__days .is-weekend {
  color: var(--ember);
}

.lp-heat__stores {
  display: grid;
  grid-template-rows: repeat(8, 22px);
  gap: 5px;
  font-size: 0.71875rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.lp-heat__stores span {
  display: flex;
  align-items: center;
}

.lp-heat__cells {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(8, 22px);
  gap: 5px;
}

.lp-heat i,
.lp-heat__legend i {
  border-radius: 6px;
  background: rgba(47, 199, 224, 0.2);
  box-shadow: inset 0 0 0 1px rgba(47, 199, 224, 0.12);
  transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.lp-heat i[data-l="1"],
.lp-heat__legend i[data-l="1"] {
  background: rgba(123, 97, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(140, 123, 255, 0.3);
}

.lp-heat i[data-l="2"],
.lp-heat__legend i[data-l="2"] {
  background: rgba(123, 97, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(170, 155, 255, 0.6), 0 0 16px -2px rgba(123, 97, 255, 0.8);
}

.lp-heat i[data-l="-1"],
.lp-heat__legend i[data-l="-1"] {
  background: rgba(255, 145, 102, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 145, 102, 0.3);
}

.lp-heat i[data-l="-2"],
.lp-heat__legend i[data-l="-2"] {
  background: rgba(255, 92, 131, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 130, 160, 0.6), 0 0 16px -2px rgba(255, 92, 131, 0.8);
}

.lp-heat i.is-pulse {
  animation: lp-cell-pulse 1.4s var(--ease) 1;
}

@keyframes lp-cell-pulse {
  30% {
    box-shadow: inset 0 0 0 1px rgba(61, 232, 216, 0.9), 0 0 0 4px rgba(61, 232, 216, 0.25), 0 0 26px 4px rgba(61, 232, 216, 0.6);
  }
}

.lp-heat__flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.lp-heat__trail,
.lp-heat__beam {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.lp-heat__trail {
  stroke: rgba(243, 241, 255, 0.4);
  stroke-width: 1.4;
  stroke-dasharray: 3 4;
}

.lp-heat__beam {
  stroke: #eafcff;
  stroke-width: 3;
  opacity: 0;
  filter: drop-shadow(0 0 3px #3de8d8) drop-shadow(0 0 8px rgba(61, 232, 216, 0.9));
}

.lp-heat__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}

.lp-heat__legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.625rem;
  color: var(--ink-mute);
}

.lp-heat__legend i {
  width: 14px;
  height: 10px;
  border-radius: 3px;
}

.lp-heat__legend span:first-child {
  margin-right: 4px;
}

.lp-heat__legend span:last-child {
  margin-left: 4px;
}

.lp-heat__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lagoon);
}

.lp-heat__note b {
  font-weight: 500;
  color: var(--ink-soft);
}

/* ============================================================
 * 4. Numbers
 * ============================================================ */

.lp-numbers {
  position: relative;
  padding: clamp(110px, 18vh, 210px) 0 clamp(90px, 14vh, 170px);
}

.lp-numbers__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 120px);
}

.lp-numbers__gauge {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.lp-numbers__gauge::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(7, 7, 13, 0.85), rgba(7, 7, 13, 0.4) 70%, transparent);
}

.lp-ring {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lp-ring__track {
  fill: none;
  stroke: rgba(243, 241, 255, 0.075);
  stroke-width: 10;
}

.lp-ring__tick {
  stroke: rgba(243, 241, 255, 0.26);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.lp-ring__tick.is-major {
  stroke: rgba(243, 241, 255, 0.62);
  stroke-width: 2.2;
}

.lp-ring__arc,
.lp-ring__arc-glow {
  fill: none;
  stroke-linecap: round;
}

.lp-ring__arc {
  stroke-width: 10;
}

.lp-ring__arc-glow {
  stroke-width: 24;
  opacity: 0.4;
  filter: blur(12px);
}

.lp-numbers__big {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.lp-numbers__value {
  display: flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.lp-numbers__num,
.lp-numbers__unit {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-numbers__num {
  display: inline-block;
  min-width: 1.15em;
  font-size: clamp(4.6rem, 2.4rem + 6.6vw, 8.6rem);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.lp-numbers__unit {
  margin: 0.32em 0 0 0.04em;
  font-size: clamp(1.8rem, 1rem + 2.4vw, 3.2rem);
}

.lp-numbers__caption {
  margin-top: 18px;
  font-family: var(--font-mincho);
  font-size: clamp(0.9375rem, 0.88rem + 0.3vw, 1.125rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.lp-numbers__text {
  position: relative;
  z-index: 1;
}

.lp-numbers__text::before {
  content: "";
  position: absolute;
  inset: -12% -14% -12% -18%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 7, 13, 0.8), rgba(7, 7, 13, 0.45) 60%, transparent);
}

.lp-numbers__title {
  margin: 22px 0 26px;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 2.5vw, 3.6rem);
  line-height: 1.42;
  letter-spacing: 0.04em;
}

.lp-numbers__lead {
  max-width: 27em;
  margin-bottom: clamp(36px, 6vh, 56px);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 2.05;
  color: var(--ink-soft);
}

.lp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-soft);
}

.lp-stat {
  padding: 26px 18px 0 0;
}

.lp-stat + .lp-stat {
  padding-left: 22px;
  border-left: 1px solid var(--rule-soft);
}

.lp-stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.9rem + 2.2vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.lp-stat__num::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 18px;
  background: var(--grad-aurora);
}

.lp-stat__label {
  margin-top: 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-soft);
}

.lp-stat__label small {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--ink-mute);
}

/* ============================================================
 * 5. Finale
 * ============================================================ */

.lp-finale {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 0 clamp(56px, 9vh, 110px);
  text-align: center;
}

.lp-finale__inner {
  position: relative;
  z-index: 1;
}

.lp-finale__eyebrow {
  margin-bottom: 24px;
}

.lp-finale__title {
  margin-bottom: clamp(32px, 5vh, 48px);
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: clamp(1.75rem, 0.95rem + 2.6vw, 3.4rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 40px rgba(7, 7, 13, 0.8);
}

.lp-finale__line {
  display: block;
  white-space: nowrap;
}

.lp-finale__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
}

.lp-finale__note {
  margin-top: 26px;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

/* WebGL がないとき（と動きを減らす設定のとき）の「SY」。見出しのすぐ上に置く */
.lp-finale__fallback {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(20px, 5vh, 56px);
  pointer-events: none;
  user-select: none;
}

.lp-finale__fallback span {
  font-family: var(--font-display);
  font-size: clamp(6rem, 3rem + 12vw, 14rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.04em;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(123, 97, 255, 0.45));
  opacity: 0.92;
}

/* ============================================================
 * Footer
 * ============================================================ */

.lp-footer {
  position: relative;
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule-soft);
  background: rgba(7, 7, 13, 0.6);
  text-align: left;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.lp-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

.lp-footer .sy-logo {
  font-size: 1rem;
  margin: 0;
}

.lp-footer__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.lp-footer__links a {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  transition: color 0.3s var(--ease);
}

.lp-footer__links a:hover {
  color: var(--ink);
}

.lp-footer__copy {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

/* ============================================================
 * カーソル（細かく指せるポインターのときだけ）
 * ============================================================ */

.has-lp-cursor body,
.has-lp-cursor a,
.has-lp-cursor button,
.has-lp-cursor [role="button"] {
  cursor: none;
}

.has-lp-cursor input,
.has-lp-cursor textarea,
.has-lp-cursor select,
.has-lp-cursor [contenteditable="true"] {
  cursor: auto;
}

.lp-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lp-cursor.is-hidden,
.lp-cursor.is-text {
  opacity: 0;
}

.lp-cursor__ring,
.lp-cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
}

.lp-cursor__ring span {
  display: block;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 1px solid rgba(243, 241, 255, 0.55);
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.lp-cursor__dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.lp-cursor.is-hover .lp-cursor__ring span {
  transform: scale(1.8);
  background: rgba(140, 123, 255, 0.12);
  border-color: rgba(140, 123, 255, 0.7);
}

.lp-cursor.is-down .lp-cursor__ring span {
  transform: scale(0.8);
}

.lp-cursor.is-hover.is-down .lp-cursor__ring span {
  transform: scale(1.5);
}

/* ============================================================
 * Responsive
 * ============================================================ */

/* 背の低いデスクトップ: 小さな画面を少し縮める */
@media (min-width: 768px) and (max-height: 780px) {
  .lp-features.is-horizontal .lp-chapter__visual > * {
    transform: scale(0.84);
  }

  .lp-features.is-horizontal .lp-chapter__index {
    font-size: clamp(4rem, 2rem + 5vw, 8rem);
  }
}

@media (max-width: 1100px) and (min-width: 768px) {
  .lp-hero__mark {
    width: 52vw;
    right: -6vw;
  }

  .lp-check li {
    grid-template-columns: 52px minmax(0, 1fr) 36px 96px;
    gap: 10px;
  }
}

/* 縦長のタブレット: ヒーローはスマホと同じく、リングを上に、文字を下に。数字の節は 1 列に */
@media (min-width: 768px) and (max-aspect-ratio: 1/1) {
  .lp-hero {
    justify-content: flex-end;
    padding: calc(var(--lp-nav-h) + 36vh) 0 168px;
  }

  .lp-chapter {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    max-width: 640px;
  }

  .lp-chapter__visual {
    justify-content: flex-start;
  }

  .lp-hero::before {
    top: calc(var(--lp-nav-h) + 18vh);
    left: 50%;
    width: 110vw;
  }

  .lp-hero__mark {
    top: calc(var(--lp-nav-h) + 3vh);
    right: 50%;
    width: min(58vw, 520px);
    transform: translateX(50%) rotate(-10deg);
  }

  .lp-numbers__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-numbers__gauge {
    width: min(100%, 480px);
  }
}

/* 縦に積む画面（スマホ・縦長のタブレット）: 星座の粒子が本文のすぐ後ろを通るので、
   文字の後ろを縁のやわらかい影で少し深くして、粒子の上でも読めるようにする */
@media (max-width: 767.98px), (max-aspect-ratio: 1/1) {
  .lp-chapter__text::before {
    inset: 0;
    border-radius: 36px;
    background: rgba(7, 7, 13, 0.8);
    box-shadow: 0 0 64px 40px rgba(7, 7, 13, 0.8);
  }

  .lp-chapter__title,
  .lp-chapter__body {
    text-shadow: 0 1px 14px rgba(7, 7, 13, 0.9);
  }
}

@media (max-width: 767.98px) {
  :root {
    --lp-nav-h: 64px;
  }

  .lp-br {
    display: none;
  }

  .lp-nav .sy-logo {
    font-size: 0.9375rem;
  }

  .lp-nav .sy-mark {
    width: 26px;
    height: 26px;
  }

  .lp-nav__link {
    padding: 8px 10px;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
  }

  .lp-nav__link::after {
    left: 10px;
    right: 10px;
  }

  .lp-nav__cta {
    padding: 8px 14px;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
  }

  .lp-hero {
    justify-content: flex-end;
    padding: calc(var(--lp-nav-h) + 38vh) 0 104px;
  }

  .lp-hero::before {
    top: calc(var(--lp-nav-h) + 17vh);
    left: 50%;
    width: 120vw;
  }

  .lp-hero__eyebrow {
    gap: 10px;
    margin-bottom: 22px;
    font-size: 0.625rem;
    letter-spacing: 0.16em;
  }

  .lp-hero__eyebrow::before {
    width: 20px;
  }

  .lp-hero__title {
    margin-bottom: 22px;
    font-size: clamp(1.625rem, 0.4rem + 7.2vw, 2.6rem);
  }

  .lp-hero__lead {
    margin-bottom: 32px;
    line-height: 1.95;
  }

  .lp-hero__actions {
    gap: 8px 24px;
  }

  .lp-cta.btn {
    padding: 17px 26px 17px 30px;
  }

  .lp-hero__meta {
    bottom: 22px;
  }

  .lp-scrollcue {
    flex-direction: row;
    align-items: center;
  }

  .lp-scrollcue i {
    width: 40px;
    height: 1px;
    margin: 0;
  }

  .lp-scrollcue i::after {
    top: 0;
    left: -45%;
    width: 45%;
    height: 1px;
    background: linear-gradient(to right, transparent, #f3f1ff 70%, #8c7bff);
    animation-name: lp-scrollcue-x;
  }

  .lp-hero__coords {
    display: none;
  }

  .lp-hero__mark {
    top: calc(var(--lp-nav-h) + 4vh);
    right: 50%;
    width: min(76vw, 360px);
    transform: translateX(50%) rotate(-10deg);
  }

  .lp-aurora i:nth-child(1) {
    left: 4%;
    top: 0;
  }

  .lp-aurora i:nth-child(2) {
    left: 34%;
    top: 12%;
  }

  .lp-aurora i:nth-child(3) {
    left: 30%;
    top: 30%;
  }

  .lp-manifesto__text {
    line-height: 1.8;
  }

  .lp-features {
    padding-top: 96px;
  }

  .lp-chapter {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 64px var(--lp-gutter);
  }

  .lp-chapter__index {
    font-size: 4.75rem;
    margin-bottom: 18px;
  }

  .lp-chapter__title {
    margin: 12px 0 16px;
  }

  .lp-ui {
    padding: 16px 14px 16px;
    font-size: 0.75rem;
  }

  .lp-ui__name span {
    display: none;
  }

  .lp-model {
    grid-template-columns: 24px repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .lp-model__cell {
    height: 28px;
  }

  .lp-model__skills {
    display: none;
  }

  .lp-check li {
    grid-template-columns: 50px minmax(0, 1fr) 34px 92px;
    gap: 8px;
    padding: 10px;
  }

  .lp-heat {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
  }

  .lp-heat__stores,
  .lp-heat__cells {
    grid-template-rows: repeat(8, 20px);
    gap: 4px;
  }

  .lp-heat__days,
  .lp-heat__cells {
    gap: 4px;
  }

  .lp-numbers__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .lp-numbers__gauge {
    width: min(100%, 360px);
  }

  .lp-stat {
    padding-right: 10px;
  }

  .lp-stat + .lp-stat {
    padding-left: 14px;
  }

  .lp-stat__label {
    font-size: 0.8125rem;
  }

  .lp-finale__title {
    margin-bottom: 30px;
  }

  .lp-finale__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin-inline: auto;
  }

  .lp-finale__actions .btn {
    justify-content: center;
  }

  .lp-footer__inner {
    justify-content: flex-start;
  }

  .lp-footer__links {
    margin-left: 0;
  }

  .lp-footer__copy {
    width: 100%;
  }
}

@keyframes lp-scrollcue-x {
  0% {
    transform: translateX(0);
  }

  70%,
  100% {
    transform: translateX(330%);
  }
}

/* ============================================================
 * 動きを減らす設定: 文字はすぐ全部見せ、ループの動きも止める
 * ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .lp-preloader {
    display: none !important;
  }

  .lp-js [data-lp-intro] {
    opacity: 1 !important;
    animation: none !important;
  }

  .lp-scrollcue i::after,
  .lp-live i,
  .lp-aurora i,
  .lp-heat i.is-pulse {
    animation: none !important;
  }

  .lp-chapter__index::after {
    transition: none;
  }

  /* 粒子はヒーローに 1 枚だけなので、フィナーレには CSS の「SY」を置く */
  .lp-finale__fallback {
    display: flex !important;
  }
}

@media print {
  .lp-canvas,
  .lp-preloader,
  .lp-cursor,
  .lp-nav,
  .lp-hero__fallback,
  .lp-finale__fallback {
    display: none !important;
  }
}
