/* =========================================================
   PIXEL STUDIO  TOP（FVより下） v2：スクロール連動版
   - クラスはすべて .ps- 接頭辞（既存 common.css と衝突しない）
   - セクションに背景色・境界線を持たせず、
     .ps-ambient（追従する光のレイヤー）の色と位置で場面を切り替える
   - JS が動かない／視差効果を減らす設定の環境では、静的なレイアウトで全文が読める
   ========================================================= */

:root {
  --ps-bg: #0a0a12;
  --ps-bg-2: #0f0f1d;
  --ps-line: #26263a;
  --ps-text: #ffffff;
  --ps-muted: #9a9ab0;
  --ps-accent: #00f0ff;
  --ps-accent-ink: #04161a;

  --ps-font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --ps-font-num: "proxima-nova", "Montserrat", "Noto Sans JP", sans-serif;

  --ps-wrap: 1180px;
  --ps-gutter: clamp(20px, 5vw, 56px);
}

/* 既存の common.css にある section { padding / z-index } などの共通指定を打ち消す */
.ps-fv { padding: 0; z-index: 0; }
.ps-top { z-index: 1; }
.ps-top section { z-index: auto; }
/* common.css が #concept / #usage / #contact などのID指定で付けている背景（緑がかったグラデーション等）を消す。
   背景は .ps-ambient の1枚だけにして、FVからの切り替わりに境目を出さない */
.ps-top section { background: none !important; }
.ps-concept { padding: 0; }
.ps-top a:hover { opacity: 1; text-shadow: none; }

/* Lenis 推奨スタイル */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.ps-top {
  position: relative;
  isolation: isolate;
  background: var(--ps-bg);
  color: var(--ps-text);
  font-family: var(--ps-font-jp);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.ps-top *, .ps-top *::before, .ps-top *::after { box-sizing: border-box; }

/* ---------- 追従する光（ページ全体をつなぐレイヤー） ---------- */
.ps-ambient {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  z-index: -1;
  pointer-events: none;
  --ax: 70%;
  --ay: 40%;
  --ac: rgba(0, 240, 255, 0.0);
  --as: 55vmax;
  background:
    radial-gradient(var(--as) var(--as) at var(--ax) var(--ay), var(--ac), transparent 70%),
    var(--ps-bg);   /* FVと同じ単色。セクション間の境目を出さない */
}

.ps-wrap {
  max-width: var(--ps-wrap);
  margin: 0 auto;
  padding: 0 var(--ps-gutter);
}

/* ---------- 共通：見出し・本文・リンク・ボタン ---------- */
.ps-h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
}
/* 見出しを1行ずつ下から出すためのマスク */
.ps-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.ps-line > span { display: inline-block; will-change: transform; }
/* 見出し：1文字ずつ。ぼかしが行の枠で切れないよう、はみ出しを許可 */
.ps-top .ps-line { overflow: visible; }
.ps-char { display: inline-block; will-change: transform, opacity, filter; }

.ps-lead {
  margin: 24px 0 0;
  max-width: 34em;
  color: var(--ps-muted);
}

.ps-link {
  color: var(--ps-text);
  text-decoration: underline;
  text-decoration-color: var(--ps-muted);
  text-underline-offset: 6px;
  font-size: 15px;
  white-space: nowrap;
  transition: text-decoration-color .2s;
}
.ps-link:hover { text-decoration-color: var(--ps-text); }

.ps-btn {
  display: inline-block;
  padding: 18px 36px;
  background: var(--ps-accent);
  color: var(--ps-accent-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color .2s;
}
.ps-btn:hover { background: #7ff7ff; }

.ps-top a:focus-visible {
  outline: 2px solid var(--ps-accent);
  outline-offset: 4px;
}

.is-placeholder { border-bottom: 1px dashed var(--ps-muted); }

/* =========================================================
   0. FV：動画＋浮遊ロゴ。スクロールで文字→動画の順にじんわり消える
   ========================================================= */
.ps-fv {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ps-bg);
  color: #fff;
}
.ps-fv__video,
.ps-fv__overlay,
.ps-fv__text { position: absolute; inset: 0; }
.ps-fv__video { will-change: opacity, transform; }
.ps-fv__video video { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; display: block; }   /* 0.6 → 0.8：少し明るく */
.ps-fv__overlay {
  background: radial-gradient(circle, rgba(10,10,18,0.3) 0%, rgba(10,10,18,0.72) 100%);   /* 中央0.45→0.3、端0.85→0.72：少し明るく */
}
.ps-fv__text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  will-change: opacity, transform;
}
.ps-fv__logo img {
  max-width: 180px;
  width: 100%;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  animation: psLogoFloat 6s ease-in-out infinite;
}
.ps-fv__title {
  margin: 0;
  font-family: "proxima-nova", "Montserrat", sans-serif;
  font-size: clamp(3rem, 9.5vw, 9.5rem);      /* 大きく：PCでは画面幅の約1割 */
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
  animation: psTitleGlow 6s ease-in-out 2.4s infinite;   /* 点灯後は、ロゴの浮遊に合わせてゆっくり呼吸する */
  text-shadow: 0 0 20px rgba(0,240,255,0.5), 0 0 48px rgba(0,240,255,0.18), 0 4px 12px rgba(3,3,10,0.8);
}
/* 1文字ずつ、ランダムな順にちらつきながら点灯する（LEDの画素が点いていくイメージ） */
.ps-fv__tchar {
  display: inline-block;
  opacity: 0;
  animation: psTitleChar 0.9s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(0.35s + var(--d, 0) * 0.07s);
}
.ps-fv__tchar.is-space { width: 0.32em; }
@keyframes psTitleChar {
  0%   { opacity: 0;   filter: blur(14px); transform: translateY(0.18em) scale(1.08); text-shadow: 0 0 0 rgba(0,240,255,0); }
  35%  { opacity: 1;   filter: blur(3px);  transform: translateY(0) scale(1);        text-shadow: 0 0 36px rgba(0,240,255,1), 0 0 80px rgba(0,240,255,0.6); }
  48%  { opacity: 0.25; }
  60%  { opacity: 1;   filter: blur(0); }
  100% { opacity: 1;   filter: blur(0);    transform: none; }
}
@keyframes psTitleGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(0,240,255,0.5), 0 0 48px rgba(0,240,255,0.18), 0 4px 12px rgba(3,3,10,0.8); }
  50%      { text-shadow: 0 0 28px rgba(0,240,255,0.8), 0 0 72px rgba(0,240,255,0.35), 0 4px 12px rgba(3,3,10,0.8); }
}
/* 見学のリンク：枠をなくし、文字と下線だけにする（下線はホバーで伸びる） */
.ps-fv__btn {
  position: relative;
  display: inline-block;
  margin-top: clamp(32px, 4.5vw, 56px);
  padding: 6px 2px;
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  color: var(--ps-accent);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  animation: psFadeUp 0.8s ease-out 1.6s forwards;   /* 文字の点灯が終わるころに現れる */
}
.ps-fv__btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ps-accent);
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform .35s ease;
}
.ps-fv__btn:hover::after { transform: scaleX(1); }
.ps-fv__btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@keyframes psFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-fv__title { animation: none; }
  .ps-fv__tchar, .ps-fv__btn { animation: none; opacity: 1; }
}

.ps-top.is-after-fv {
  /* FVの固定が終わる瞬間に、コンセプトが同じ位置へ来るよう重ねる。
     重なっている間は透明なので、FVの演出はそのまま見える */
  margin-top: -100vh;
  background: transparent;
}

/* FV後半に浮かぶコピー（JSが動かない環境では表示しない） */
.ps-fv__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 0 0.5em;
  margin: 0;
  padding: 0 20px;
  font-family: var(--ps-font-num);
  font-size: clamp(24px, 5.4vw, 84px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.18em;
  text-align: center;
  color: #fff;
  pointer-events: none;
  visibility: hidden;
}
/* 単語の途中で折り返さない */
.ps-fv__word { display: inline-block; white-space: nowrap; }
.ps-fv__br { flex-basis: 100%; height: 0; }
/* 1文字ずつ。LEDの画素が点くように、ランダムな順で点灯する */
.ps-fv__char { display: inline-block; will-change: opacity, filter; }
.is-fv-motion .ps-fv__copy { visibility: visible; }

/* スクロールを促す表示：コピーが点灯しているあいだだけ、画面下に出る（表示のタイミングはJS） */
.ps-fv__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vh, 48px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.is-fv-motion .ps-fv__scroll { visibility: visible; }
.ps-fv__scroll span {
  font-family: var(--ps-font-num);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding-left: 0.32em;        /* 字間の分だけ右にずれるのを打ち消す */
}
/* 細い線の中を、光が上から下へ流れ続ける */
.ps-fv__scroll i {
  position: relative;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}
.ps-fv__scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--ps-accent));
  animation: psScrollLine 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes psScrollLine {
  0%   { top: -40%; }
  100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-fv__scroll i::after { animation: none; top: 60%; }
}
@media (max-width: 767px) {
  .ps-fv__title { font-size: 10vw; letter-spacing: 0.04em; }   /* 画面の幅いっぱいに近い大きさ */
  .ps-fv__btn { letter-spacing: 0.18em; }
  .ps-fv__logo img { max-width: 140px; }
}  /* FVが暗転しきったところへ重ねて、切れ目をなくす */

@keyframes psLogoFloat {
  0%, 100% { transform: translateY(0); opacity: 0.3; filter: drop-shadow(0 0 4px rgba(0,240,255,0.2)); }
  50% { transform: translateY(-15px); opacity: 1; filter: drop-shadow(0 0 15px rgba(0,240,255,0.8)) drop-shadow(0 0 35px rgba(0,240,255,0.5)); }
}
@media (prefers-reduced-motion: reduce) {
  .ps-fv__logo img { animation: none; opacity: 1; }
}

/* =========================================================
   1. コンセプト：展開図が組み上がって「部屋」になる
   ========================================================= */
.ps-concept { position: relative; }
.ps-concept__pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(96px, 12vw, 140px) 0;
}
.ps-concept__grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.ps-concept .ps-h2 { font-size: clamp(26px, 3.1vw, 42px); }
.ps-specs {
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 8px clamp(20px, 2.2vw, 32px);
}
.ps-specs div { display: flex; flex-direction: column-reverse; }
.ps-specs dt { color: var(--ps-muted); font-size: 13px; letter-spacing: 0.08em; }
.ps-specs dd {
  margin: 0;
  display: flex;
  align-items: baseline;
  width: fit-content;
  padding-bottom: 6px;                          /* 数字と点線の間隔 */
  border-bottom: 1px dashed var(--ps-muted);
  font-family: var(--ps-font-num);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;                          /* 数字と単位を途中で折り返さない */
  font-feature-settings: "tnum" 1;
}
.ps-specs dt { margin-top: 6px; line-height: 1.4; }   /* 点線とラベルの間隔 */
.ps-specs dd small { font-size: 0.42em; margin-left: 4px; color: var(--ps-muted); }
.ps-concept__more { margin-top: 40px; }

/* 5面の箱：床・天井・左面・右面・背面（カメラ側の前面は開いている）
   --fold（0=展開図, 1=箱）と --turn（0=真正面, 1=斜めから部屋の中をのぞく）を JS が操作 */
.ps-cube-scene {
  --u: clamp(170px, 20vw, 280px);  /* 背面の幅（実寸 4.8m） */
  --h: calc(var(--u) * 0.5);       /* 天井高（実寸 2.4m ＝ 幅の0.5倍） */
  --d: calc(var(--u) * 0.5);       /* 奥行き（実寸 2.4m ＝ 幅の0.5倍） */
  position: relative;
  height: calc(var(--h) + var(--d) * 2 + 80px);
  perspective: 1000px;
  display: grid;
  place-items: center;
}
.ps-cube {
  --fold: 1;
  --turn: 1;
  position: relative;
  width: var(--u);
  height: var(--h);
  transform-style: preserve-3d;
  transform:
    translateZ(calc(var(--turn) * var(--d) * -0.6))
    rotateX(calc(var(--turn) * -10deg))
    rotateY(calc(var(--turn) * 30deg))
    scale(calc(1 + var(--turn) * 0.22));
}
.ps-face {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ps-accent);
  background: rgba(0, 240, 255, 0.05);
  color: var(--ps-text);
  font-size: 14px;
  letter-spacing: 0.12em;
  backface-visibility: visible;
}
.ps-face span { opacity: calc(1 - var(--fold) * 0.65); }

/* 点灯：LEDの映像がうっすら映る（--lit 0→1） */
.ps-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ps-face-img, none) center / cover;
  opacity: calc(var(--lit, 0) * 0.55);
  mix-blend-mode: screen;
}

/* 展開図の中心＝背面 */
/* 十字展開の動画を映す面（JSが canvas を入れる）。点灯（--lit）に合わせて明るくなる */
.ps-face__screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: var(--lit, 0);
  pointer-events: none;
}
.ps-face span { position: relative; z-index: 1; }
.ps-cube.has-video .ps-face::after { display: none; }
/* 面ごとの画像（front-page.php の $ps_cube_faces）：動画と同じく、点灯に合わせてはっきり映す */
/*   --ps-face-alpha：画像の濃さ（1＝透過なし、0.8＝少し透ける）。好みで数字だけ変える */
.ps-cube.has-faces { --ps-face-alpha: 0.8; }
.ps-cube.has-faces .ps-face::after { opacity: calc(var(--lit, 0) * var(--ps-face-alpha)); mix-blend-mode: normal; }

.ps-face--back { inset: 0; background-color: rgba(0, 240, 255, 0.10); }
.ps-face--ceiling {
  left: 0; bottom: 100%;
  width: var(--u); height: var(--d);
  transform-origin: 50% 100%;
  transform: rotateX(calc(var(--fold) * -90deg));
}
.ps-face--floor {
  left: 0; top: 100%;
  width: var(--u); height: var(--d);
  transform-origin: 50% 0%;
  transform: rotateX(calc(var(--fold) * 90deg));
}
.ps-face--left {
  top: 0; right: 100%;
  width: var(--d); height: var(--h);
  transform-origin: 100% 50%;
  transform: rotateY(calc(var(--fold) * 90deg));
}
.ps-face--right {
  top: 0; left: 100%;
  width: var(--d); height: var(--h);
  transform-origin: 0% 50%;
  transform: rotateY(calc(var(--fold) * -90deg));
}

.ps-cube-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  text-align: center;
  color: var(--ps-muted);
  font-size: 13px;
  margin: 0;
}

/* =========================================================
   2. 撮影事例：左のテキストは固定、右の作品が縦に流れる
   ========================================================= */
.ps-case { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.ps-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ps-case__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.ps-case__side {
  position: sticky;
  top: 120px;           /* 固定ヘッダー（80px）の下 */
}
.ps-case__side .ps-lead { max-width: 20em; }
.ps-case__count {
  margin: 40px 0 0;
  font-family: var(--ps-font-num);
  font-weight: 300;
  font-size: 15px;
  color: var(--ps-muted);
  font-feature-settings: "tnum" 1;
}
.ps-case__count b { font-weight: 300; font-size: 40px; color: var(--ps-text); margin-right: 6px; }
.ps-case__side .ps-link { display: inline-block; margin-top: 32px; }

.ps-case__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
}
.ps-case__col { display: grid; gap: clamp(40px, 4.5vw, 72px); will-change: transform; }
.ps-case__col--b { padding-top: clamp(64px, 9vw, 140px); }   /* 右の列を少し下げて、左右を互い違いに見せる */

.ps-case__item { margin: 0; }
.ps-case__item a { color: inherit; text-decoration: none; display: block; }
.ps-case__img { position: relative; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }   /* 横長。撮影事例ページ（pages.css の #caseGrid）と同じ比率 */
.ps-case__img img {
  position: absolute;
  left: 0; top: -7.5%;
  width: 100%; height: 115%;
  display: block;
  object-fit: cover;
  will-change: transform;
  transition: scale .6s cubic-bezier(.2,.7,.2,1);
}
.ps-case__item a[href]:hover .ps-case__img img { scale: 1.04; }   /* リンクがあるときだけ、マウスを重ねると拡大 */
.ps-case__item figcaption {
  display: flex;
  flex-direction: column;   /* 1行目：タイトル／2行目：撮影の区分 */
  gap: 2px;
  padding-top: 16px;
  font-size: 15px;
  line-height: 1.7;
}
.ps-case__type { color: var(--ps-muted); font-size: 13px; white-space: nowrap; }

/* =========================================================
   3. ご利用案内
   ========================================================= */
.ps-usage { padding: clamp(80px, 10vw, 140px) 0; }
.ps-usage__list {
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
}
.ps-usage__list > div { padding: 28px 0; position: relative; }
.ps-usage__list > div::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--ps-line);
  transform-origin: 0 50%;
  transform: scaleX(var(--line, 1));
}
.ps-usage__list dt { color: var(--ps-muted); font-size: 13px; letter-spacing: 0.08em; }
.ps-usage__list dd { margin: 10px 0 0; }
.ps-usage__num {
  display: block;
  font-family: var(--ps-font-num);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.25;
  font-feature-settings: "tnum" 1;
}
.ps-usage__note { display: block; color: var(--ps-muted); font-size: 14px; }
/* 営業時間の欄：数字の下に「定休日」と、小さな注記を重ねる */
.ps-usage__sub { display: block; margin-top: 14px; font-size: 15px; }
.ps-usage__note--small { margin-top: 4px; font-size: 12px; line-height: 1.7; }
/* 数字の下の補足に点線の下線（見た目は .is-placeholder と同じ。こちらは確定した文言用） */
.ps-usage__line { border-bottom: 1px dashed var(--ps-muted); }
.ps-usage__actions {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* =========================================================
   4. メディア：一覧形式＋ホバーで画像が追従
   ========================================================= */
.ps-media { padding: clamp(60px, 8vw, 120px) 0; position: relative; }
.ps-media__list { list-style: none; margin: 40px 0 0; padding: 0; }
.ps-media__list li { position: relative; }
.ps-media__list li::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ps-line);
  transform-origin: 0 50%;
  transform: scaleX(var(--line, 1));
}
.ps-media__list a {
  display: grid;
  grid-template-columns: 120px 140px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  color: var(--ps-text);
  text-decoration: none;
}
.ps-media__date {
  font-family: var(--ps-font-num);
  color: var(--ps-muted);
  font-size: 14px;
  font-feature-settings: "tnum" 1;
}
.ps-media__cat { color: var(--ps-muted); font-size: 13px; }
.ps-media__title { font-size: 17px; line-height: 1.7; transition: transform .35s ease; }
.ps-media__list a:hover .ps-media__title { transform: translateX(8px); }
.ps-media__meta { display: contents; }

/* 追従プレビュー（PC・マウス操作時のみ JS が表示） */
.ps-media__preview {
  position: fixed;
  left: 0; top: 0;
  width: 280px;
  aspect-ratio: 3 / 2;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.9);
  transition: opacity .25s ease, transform .25s ease;
  overflow: hidden;
}
.ps-media__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ps-media__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-media__thumb { display: none; }

/* =========================================================
   5. 締め：LEDが点灯する
   ========================================================= */
.ps-contact { padding: clamp(100px, 14vw, 200px) 0 clamp(96px, 12vw, 160px); }
.ps-closing {
  margin: 0;
  font-size: clamp(30px, 5.6vw, 76px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
}
.ps-nb { display: inline-block; }
.ps-contact__grid {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
}
.ps-contact__block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--ps-line);
}
.ps-contact__block h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 0.06em; }
.ps-contact__block p { margin: 0; color: var(--ps-muted); }
.ps-contact__block .ps-btn { align-self: flex-start; margin-top: auto; }
.ps-contact__tel {
  font-family: var(--ps-font-num);
  font-size: 24px;
  color: var(--ps-text);
  text-decoration: none;
}

/* =========================================================
   JSなし／モーション軽減時の静的表示
   ========================================================= */
.ps-top:not(.is-motion) .ps-case__img img { top: 0; height: 100%; }
.ps-top:not(.is-motion) .ps-cube { --lit: 1; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 900px) {
  .ps-concept__grid { grid-template-columns: 1fr; }
  .ps-concept__fig { order: -1; }
  .ps-cube-scene { --u: clamp(140px, 40vw, 210px); }
}

@media (max-width: 767px) {
  .ps-concept__pin { padding: 112px 0 64px; }   /* 固定ヘッダーの下に見出しが来るよう、上の余白を広めに */
  /* スマホ：見出し → リード → 展開図 → 数字 → リンク の順に並べ替える
     （テキストの箱を解いて、中身を1つずつ並べる） */
  .ps-concept__grid { row-gap: 0; }
  .ps-concept__text { display: contents; }
  .ps-concept .ps-h2      { order: 1; }
  .ps-concept .ps-lead    { order: 2; }
  .ps-concept__fig        { order: 3; margin-top: 40px !important; }
  .ps-concept .ps-specs   { order: 4; }
  .ps-concept__more       { order: 5; }
  /* スマホ：4つの数字を横1列に、幅いっぱいで均等に並べる（右側が空かないように） */
  .ps-specs { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.45fr); gap: 0 12px; margin-top: 36px; }   /* 桁の多いピクセルピッチだけ広く */
  .ps-specs dd { width: 100%; font-size: clamp(20px, 6vw, 28px); }
  .ps-specs dd small { font-size: 0.48em; margin-left: 2px; }
  .ps-specs dt { font-size: 11px; letter-spacing: 0.02em; white-space: nowrap; }
  .ps-case__layout { grid-template-columns: 1fr; }
  .ps-case__side { position: static; }
  .ps-case__cols { grid-template-columns: 1fr; }
  .ps-case__col { gap: 40px; }
  .ps-case__col + .ps-case__col { margin-top: 40px; }
  .ps-case__col--b { padding-top: 0; }
  .ps-case__img { aspect-ratio: 16 / 9; }
  .ps-case__img img { top: 0; height: 100%; }
  .ps-case__item figcaption { flex-direction: column; gap: 2px; }
  .ps-usage__list { grid-template-columns: 1fr; }
  .ps-usage__list > div { padding: 22px 0; }
  .ps-media__list a {
    grid-template-columns: minmax(0, 1fr) 80px;
    grid-template-areas: "meta thumb" "title thumb";
    gap: 4px 16px;
    padding: 20px 0;
  }
  .ps-media__meta { grid-area: meta; display: flex; gap: 12px; }
  .ps-media__title { grid-area: title; font-size: 16px; }
  .ps-media__thumb { grid-area: thumb; display: block; }
  .ps-media__thumb img { width: 80px; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
  .ps-contact__grid { grid-template-columns: 1fr; }
  .ps-btn { width: 100%; text-align: center; }
}
@media (max-width: 359px) {
  /* 幅の狭いスマホでは、4つを横に並べると窮屈なので2×2にする（幅いっぱいで均等に） */
  .ps-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
}