/* 14 ダーク×ネオン — トップと下層で共通のヘッダー・フッター・ボタン・カードの縁の光、トップの各区画 */

/* ---- 色と寸法の決まり（青緑 1 色を縁と点灯だけに使う） ---- */
:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-raise: #0c0e11;
  --card: #0f1114;
  --card-2: #13161a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --fg: #eef0f3;
  --fg-2: #b7bdc5;
  --muted: #9ea5ae;
  --neon: #5fe3c4;
  --neon-rgb: 95, 227, 196;
  --amber: #f0b44c;
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1160px;
  --gutter: max(5vw, 20px);
  --sans: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --header-h: 64px;
}

/* ---- 土台 ---- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  font-feature-settings: "palt" 0, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
main { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 {
  color: var(--fg);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.01em;
  word-break: keep-all;
  word-break: auto-phrase;
  text-wrap: balance;
}
p { overflow-wrap: anywhere; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(var(--neon-rgb), .28); color: #fff; }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.fine { font-size: 13px; line-height: 1.75; color: var(--muted); }

/* 準備中などの状態を示す小さな点（琥珀色） */
.status { display: inline-flex; align-items: center; gap: 10px; }
.status::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(240, 180, 76, .14);
}

/* ---- ヘッダー ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; }
.brand__mark {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--card-2);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(var(--neon-rgb), .55);
}
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 13.5px; }
.site-nav a { color: var(--fg-2); transition: color .2s; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: rgba(var(--neon-rgb), .8); text-underline-offset: 8px; text-decoration-thickness: 1px; }
.site-nav .site-nav__cta {
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--fg);
  background: rgba(255, 255, 255, .03);
  transition: border-color .2s, background .2s;
}
.site-nav .site-nav__cta:hover { border-color: rgba(var(--neon-rgb), .6); background: rgba(var(--neon-rgb), .06); }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  /* JS が無いときは折り返しの横並びで全部見せる */
  .site-header__inner { flex-wrap: wrap; row-gap: 0; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 4px 18px; padding: 0 0 12px; font-size: 13px; }
  .site-nav .site-nav__cta { padding: 2px 10px; }
  /* JS があるときは開閉式のメニューにする */
  .nav-ready .menu-toggle {
    display: inline-grid;
    place-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    margin-right: -8px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
  }
  .nav-ready .menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--fg); border-radius: 2px; transition: transform .25s; }
  .nav-ready .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-ready .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-ready .site-header__inner { flex-wrap: nowrap; }
  .nav-ready .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 40px -18px rgba(0, 0, 0, .85);
    font-size: 15px;
  }
  .nav-ready .site-nav.is-open { display: flex; }
  .nav-ready .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-ready .site-nav a[aria-current="page"] { text-decoration: none; color: var(--neon); }
  .nav-ready .site-nav .site-nav__cta { margin-top: 14px; padding: 11px 14px; border: 1px solid var(--line-2); text-align: center; }
}

/* ---- ボタン（白い地に黒い文字。副は縁だけ） ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--fg);
  background: var(--fg);
  color: #08090b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, box-shadow .25s, border-color .2s, transform .2s;
}
.button:hover { background: #ffffff; box-shadow: 0 0 0 4px rgba(var(--neon-rgb), .14); }
.button .arrow { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.button:hover .arrow { transform: translateX(3px); }
.button--ghost { background: rgba(255, 255, 255, .02); color: var(--fg); border-color: var(--line-2); }
.button--ghost:hover { background: rgba(var(--neon-rgb), .06); border-color: rgba(var(--neon-rgb), .55); box-shadow: none; }
.button[disabled], .button:disabled { cursor: not-allowed; opacity: 1; background: #2a2e34; border-color: #2a2e34; color: #c9ced5; box-shadow: none; }

/* ---- 光る縁のカード（カーソルの位置を --mx・--my で受け、縁の 1px だけを光らせる） ---- */
.spot,
.page .price-card,
.page .cta-band,
.page .checks > .check {
  position: relative;
  isolation: isolate;
}
.spot::before,
.page .price-card::before,
.page .cta-band::before,
.page .checks > .check::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, -500px) var(--my, -500px), rgba(var(--neon-rgb), .9), rgba(var(--neon-rgb), .2) 40%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .45s ease;
}
.spot::after,
.page .price-card::after,
.page .cta-band::after,
.page .checks > .check::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(440px circle at var(--mx, -500px) var(--my, -500px), rgba(var(--neon-rgb), .035), rgba(255, 255, 255, .015) 40%, transparent 65%);
  opacity: 0;
  transition: opacity .45s ease;
}
.spot-live .spot::before, .spot-live .spot::after,
.spot-live .page .price-card::before, .spot-live .page .price-card::after,
.spot-live .page .cta-band::before, .spot-live .page .cta-band::after,
.spot-live .page .checks > .check::before, .spot-live .page .checks > .check::after { opacity: 1; }

/* カードの共通の面 */
.card-face, .scene-card, .qc, .approval, .filelist, .pp, .flow__card, .contact-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .008)) , var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

/* ---- 背景の細い格子と、線の上を走る光 ---- */
.grid-field {
  --cell: 64px;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}
.beam-lane { position: absolute; top: 0; bottom: 0; left: calc(50% + 72px); right: 0; overflow: hidden; }
.beam { position: absolute; display: block; opacity: 0; will-change: transform; }
.beam--h { left: 0; top: calc(var(--r) * var(--cell)); width: 160px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--neon-rgb), .7), transparent); }
.beam--v { top: 0; left: calc(var(--c) * var(--cell)); width: 1px; height: 160px; background: linear-gradient(180deg, transparent, rgba(var(--neon-rgb), .7), transparent); }
.motion .beam, .pg-motion .beam { opacity: 1; }
.motion .beam--h, .pg-motion .beam--h { animation: beam-x var(--t, 10s) linear var(--d, 0s) infinite; }
.motion .beam--v, .pg-motion .beam--v { animation: beam-y var(--t, 10s) linear var(--d, 0s) infinite; }
@keyframes beam-x { from { transform: translateX(-160px); } to { transform: translateX(110vw); } }
@keyframes beam-y { from { transform: translateY(-100%); } to { transform: translateY(700%); } }

/* ---- モニターの枠（写真は暗く小さく、この中だけに置く） ---- */
.monitor {
  position: relative;
  padding: 8px 8px 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #17191d, #0e1013);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.monitor__screen { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 7px; background: #050607; }
.monitor__screen img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.62) contrast(1.08); }
.monitor__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .07), transparent 38%),
    radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0, 0, 0, .5));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  border-radius: inherit;
}
/* イラストは反転して暗い画面の絵にする */
.monitor--sm .monitor__screen img { filter: invert(1) hue-rotate(180deg) brightness(.92) saturate(.75) contrast(.95); }
.monitor--sm.monitor--edit .monitor__screen img { filter: brightness(.5) saturate(.62) contrast(1.08); }
.monitor--sm { padding: 6px 6px 9px; border-radius: 11px; }
.monitor--sm .monitor__screen { border-radius: 6px; }

/* ---- トップ: ヒーロー ---- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.grid-field--hero {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.grid-field--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 78% 40%, rgba(var(--neon-rgb), .07), transparent 70%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 64px;
  align-items: center;
}
.hero__title { font-size: clamp(34px, calc(4vw + 10px), 60px); line-height: 1.24; letter-spacing: -.02em; }
.hero__line { display: block; }
.hero__line--dim { color: var(--fg-2); }
.hero__lead { margin-top: 28px; max-width: 31em; font-size: 16px; line-height: 1.9; color: var(--fg-2); word-break: auto-phrase; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { margin-top: 22px; font-size: 13px; color: var(--muted); }
.hero__device { position: relative; margin: 0; }
.monitor__subs { position: absolute; left: 0; right: 0; bottom: 9%; display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.monitor__subs i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .5); }
.monitor__subs i:first-child { width: 52%; }
.monitor__subs i:last-child { width: 34%; }
.monitor__bar { display: flex; align-items: center; gap: 12px; padding: 10px 6px 0; }
.monitor__track { position: relative; flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.monitor__progress { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--neon-rgb), .35), var(--neon)); transform: scaleX(.38); transform-origin: left; }
.monitor__led { width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px rgba(var(--neon-rgb), .7); }
.hero__caption {
  position: relative;
  display: table;
  margin: 14px 0 0 auto;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 4px;
}
.motion .monitor__progress { animation: play 14s linear infinite; }
.motion .monitor__subs i:first-child { animation: subs-a 7s steps(1) infinite; }
.motion .monitor__subs i:last-child { animation: subs-b 7s steps(1) infinite; }
@keyframes play { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes subs-a { 0% { width: 52%; } 33% { width: 44%; } 66% { width: 58%; } }
@keyframes subs-b { 0% { width: 34%; } 33% { width: 40%; } 66% { width: 22%; } }

/* ---- 区画の共通 ---- */
.section { position: relative; padding: clamp(72px, 8.5vw, 112px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-head__title { font-size: clamp(28px, 3.1vw, 42px); letter-spacing: -.018em; }

/* ---- 作るもの ---- */
.places { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.places__label { margin-right: 6px; }
.key {
  display: inline-block;
  padding: 3px 10px 2px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--card-2);
  color: var(--fg);
  font-size: 13px;
  line-height: 1.7;
  white-space: nowrap;
}
.scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.scene-card { padding: 12px 12px 24px; }
.scene-card__body { padding: 20px 10px 0; }
.scene-card h3 { font-size: 17px; }
.scene-card p { margin-top: 10px; font-size: 14.5px; line-height: 1.85; }
.scenes__note { margin-top: 24px; }

/* ---- 確認の仕組み ---- */
.qc-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.qc-rail { position: absolute; top: 35px; left: 0; right: 0; height: 1px; background: var(--line-2); z-index: 0; }
.qc-rail i { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--neon-rgb), .25), var(--neon)); transform: scaleX(var(--q, 1)); transform-origin: left; }
.qc { z-index: 1; padding: 26px 26px 28px; }
.qc__led {
  position: absolute;
  top: 31px;
  right: 26px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 3px rgba(var(--neon-rgb), .12), 0 0 12px rgba(var(--neon-rgb), .55);
  transition: background .4s, box-shadow .4s;
}
.motion .qc:not(.is-lit) .qc__led { background: #2b3036; box-shadow: 0 0 0 3px rgba(255, 255, 255, .04); }
.qc__title { padding-right: 28px; font-size: 18px; }
.qc__role { display: block; margin-top: 4px; margin-left: -.5em; font-size: 13px; font-weight: 500; color: var(--fg-2); letter-spacing: 0; }
.qc p { margin-top: 16px; font-size: 14.5px; line-height: 1.85; }
.approval { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 18px 26px; }
.approval p { color: var(--fg); font-size: 15.5px; }
.approval__mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(var(--neon-rgb), .55); background: rgba(var(--neon-rgb), .08); }
.approval__mark svg { width: 14px; height: 14px; fill: none; stroke: var(--neon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.delivery { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(64px, 8vw, 104px); }
.delivery__title { font-size: clamp(21px, 2vw, 26px); }
.delivery__text p { margin-top: 14px; }
.delivery__text .fine { margin-top: 22px; }
.filelist { margin: 0; padding: 6px; list-style: none; }
.filelist li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 9px;
  color: var(--fg);
  font-size: 15px;
  transition: background .2s;
}
.filelist li + li { margin-top: 2px; }
.filelist li:first-child, .filelist li:hover { background: rgba(255, 255, 255, .045); }
.filelist li:first-child { box-shadow: inset 0 0 0 1px var(--line); }
.filelist__icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 20px;
  border: 1.5px solid var(--fg-2);
  border-radius: 3px 6px 3px 3px;
}
.filelist__icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 1.5px; background: var(--fg-2); box-shadow: 0 4px 0 var(--fg-2); }
.filelist__icon--video { width: 20px; height: 16px; border-radius: 4px; border-color: var(--neon); }
.filelist__icon--video::after { left: 6px; top: 3.5px; right: auto; width: 0; height: 0; background: none; box-shadow: none; border-left: 6px solid var(--neon); border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }
.filelist__icon--tag { width: 18px; height: 14px; border-radius: 3px 8px 8px 3px; }
.filelist__icon--tag::after { left: auto; right: 4px; top: 4px; width: 3px; height: 3px; border-radius: 50%; box-shadow: none; }

/* ---- 料金 ---- */
.pp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.pp__main { padding: clamp(28px, 4vw, 48px); }
.pp__side { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: clamp(28px, 4vw, 48px); border-left: 1px solid var(--line); }
.pp__name { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-size: 15px; font-weight: 500; }
.pp__name::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px rgba(var(--neon-rgb), .6); }
.pp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 18px; line-height: 1; }
.pp__unit { font-size: 15px; color: var(--fg-2); }
.pp__num { display: inline-block; color: var(--fg); font-family: "Inter", sans-serif; font-weight: 600; font-size: clamp(52px, 7.2vw, 92px); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.pp__num .count { display: inline-block; text-align: right; }
.pp__yen { color: var(--fg); font-size: 20px; font-weight: 500; }
.pp__tax { margin-top: 14px; color: var(--fg-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.pp__tax .count { display: inline-block; text-align: right; }
.pp__spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; }
.pp__spec li { position: relative; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--fg); font-size: 14px; line-height: 1.6; }
.pp__spec li::before { content: ""; position: absolute; top: -1px; left: 0; width: 18px; height: 1px; background: var(--neon); }
.pp__lite { color: var(--fg-2); font-size: 15px; }
.pp__slots { display: grid; gap: 10px; }
.pp__slots p { color: var(--fg); font-size: 14.5px; }
.slots { display: flex; gap: 6px; }
.slots i { width: 26px; height: 6px; border-radius: 2px; border: 1px solid rgba(var(--neon-rgb), .5); background: rgba(var(--neon-rgb), .55); transition: background .35s; }
.motion .slots:not(.is-lit) i { background: transparent; }
.slots i:nth-child(2) { transition-delay: .08s; }
.slots i:nth-child(3) { transition-delay: .16s; }
.slots i:nth-child(4) { transition-delay: .24s; }
.slots i:nth-child(5) { transition-delay: .32s; }
.pp__side .button { margin-top: auto; }

/* ---- 進め方 ---- */
.flow { --p: 1; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.flow::before, .flow::after { content: ""; position: absolute; top: 16px; left: 16px; right: 0; height: 1px; }
.flow::before { background: var(--line-2); }
.flow::after { background: linear-gradient(90deg, rgba(var(--neon-rgb), .25), var(--neon)); transform: scaleX(var(--p)); transform-origin: left; }
.flow__step { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; }
.flow__no {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid rgba(var(--neon-rgb), .7);
  background: var(--bg);
  color: var(--neon);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: border-color .4s, color .4s, box-shadow .4s;
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(var(--neon-rgb), .25);
}
.motion .flow__step:not(.is-lit) .flow__no { border-color: var(--line-2); color: var(--fg-2); box-shadow: 0 0 0 4px var(--bg); }
.flow__card { flex: 1; margin-top: 22px; padding: 22px 22px 24px; }
.flow__card h3 { font-size: 17px; }
.flow__card p { margin-top: 10px; font-size: 14.5px; line-height: 1.85; }
.process__foot { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px 40px; align-items: center; margin-top: 40px; }
.process__note p { max-width: 30em; }
.process__note .button { margin-top: 20px; }

/* ---- 相談 ---- */
.contact { border-bottom: 0; }
.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px clamp(32px, 5vw, 72px);
  align-items: end;
  padding: 104px clamp(28px, 5vw, 64px) clamp(36px, 5vw, 64px);
}
.grid-field--panel { --cell: 48px; border-radius: inherit; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); mask-image: linear-gradient(to bottom, #000, transparent 75%); }
.contact-panel > :not(.grid-field) { position: relative; z-index: 1; }
.contact-panel__title { font-size: clamp(27px, 3vw, 40px); letter-spacing: -.018em; }
.contact-panel__body .button { margin-top: 24px; }

/* ---- フッター ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer__inner { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding: 56px var(--gutter) 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.site-footer__place { font-size: 13.5px; color: var(--fg-2); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; font-size: 13.5px; }
.site-footer__nav a { color: var(--fg-2); transition: color .2s; }
.site-footer__nav a:hover, .site-footer__nav a[aria-current="page"] { color: var(--fg); }
.footer-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---- 中くらいの画面 ---- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero__device { max-width: 560px; }
  .hero .beam { display: none; }
  .scene-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .scene-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 8px; align-items: center; padding: 12px; }
  .scene-card__body { padding: 8px 12px; }
  .qc-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .qc-rail { display: none; }
  .delivery { grid-template-columns: minmax(0, 1fr); }
  .pp { grid-template-columns: minmax(0, 1fr); }
  .pp__side { border-left: 0; border-top: 1px solid var(--line); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .flow::before, .flow::after { top: 16px; bottom: 16px; left: 16px; right: auto; width: 1px; height: auto; }
  .flow::after { background: linear-gradient(180deg, rgba(var(--neon-rgb), .25), var(--neon)); transform: scaleY(var(--p)); transform-origin: top; }
  .flow__step { display: grid; grid-template-columns: 33px minmax(0, 1fr); gap: 16px; align-items: start; }
  .flow__card { margin-top: 0; }
  .process__foot { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
  .contact-panel { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* ---- 狭い画面 ---- */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero__lead { font-size: 15px; }
  .hero__actions .button { flex: 1 1 auto; }
  .scene-card { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 10px 10px 20px; }
  .scene-card__body { padding: 18px 8px 0; }
  .qc { padding: 22px 20px 24px; }
  .qc__led { right: 20px; top: 28px; }
  .approval { padding: 16px 18px; align-items: flex-start; }
  .pp__spec { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 28px; }
  .pp__spec li { padding: 10px 0; }
  .pp__spec li::before { top: -1px; }
  .process__foot { grid-template-columns: minmax(0, 1fr); }
  .process__foot .monitor { max-width: 300px; }
  .contact-panel { padding-top: 88px; }
  .site-footer__nav { gap: 8px 20px; }
}

/* ---- 動きを減らす設定 ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .beam { display: none; }
}
