/* 写真がなくても（#nophoto・2026-11-04 Hide・決定 0068）。前と後（#ba）のすぐ後、窓の外（#window）の前。
   サンプル物件 P1（白黒の間取り図だけのマイソク・架空）が、道具の順どおりに仕上がる：
   写真0枚 → 形と設備は間取り図と文字から → 色は選ぶか築年に多い仕上げ → 窓の外は所在地・階・向きから → 4点。
   言うのは道具がしている事だけ（perse/clues.py・perse/ledger.py・perse/interior_standard.json・注文の内装の質問）。
   動くとき（.np-on）は区画を画面に貼り付け（sticky）、スクロールで 1 コマずつ進める（sections/nophoto/a.js）。
   動きを減らす設定と GSAP がないときは、5 コマを並べた絵コンテにする。 */
.nophoto{border-top:1px solid var(--rule)}
.np-stage{padding-block:var(--sec)}
.np-in{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;row-gap:clamp(24px,3.4vh,40px);align-items:center}
.np-copy{grid-column:1/6;display:grid;gap:clamp(20px,3.2vh,36px);align-content:center}
.np-fig{grid-column:6/13;position:relative;aspect-ratio:3/2;width:100%}

.np-steps{display:grid;gap:2px;counter-reset:np}
.np-steps li{position:relative;display:grid;grid-template-columns:2.4em 1fr;align-items:baseline;padding:10px 0 10px 14px;
  font-size:clamp(15px,.5vw + 11px,18px);font-weight:600;letter-spacing:.03em;line-height:1.45;color:var(--ink);font-feature-settings:"palt"}
.np-steps li::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:2px;background:var(--rule)}
.np-steps b{font-family:var(--num);font-weight:400;font-size:.8em;letter-spacing:.02em;color:var(--lead);font-variant-numeric:tabular-nums}

/* 5 つのコマ（重ねて置き、動くときは 1 枚ずつ見せる） */
.np-l{position:absolute;inset:0;border-radius:3px;overflow:hidden;background:var(--white)}
.np-l img{position:absolute;max-width:none}
.np-cover{inset:0;width:100%;height:100%;object-fit:cover}
.np-tag{position:absolute;left:10px;bottom:10px;z-index:2;font-size:12px;line-height:1.4;letter-spacing:.04em;font-weight:500;padding:5px 9px;border-radius:2px;
  background:var(--paper);color:var(--ink);box-shadow:0 1px 0 var(--rule);white-space:nowrap}
.np-tag.r{left:auto;right:10px}
.np-tag.tr{left:auto;right:10px;bottom:auto;top:10px;white-space:normal;text-wrap:balance;max-width:calc(100% - 20px)} /* パースの左下には道具の表記（perse/ledger.py mark_text）が焼き込まれているので、左下はふさがない */

/* 1. 写真0枚のマイソク：紙の上に置き、判子を押す */
.np-l0{background:var(--paper-2)}
.np-l0 .np-mai{left:6%;top:6%;width:88%;height:88%;object-fit:contain;filter:drop-shadow(0 6px 18px rgba(16,15,13,.12))}
.np-stamp{position:absolute;right:7%;top:9%;z-index:2;display:grid;place-items:center;width:clamp(76px,13%,120px);aspect-ratio:1;border-radius:50%;
  border:2px solid var(--accent-ink);color:var(--accent-ink);font-weight:700;font-size:clamp(12px,1.25vw,18px);line-height:1.2;text-align:center;
  letter-spacing:.04em;transform:rotate(-12deg);background:color-mix(in srgb,var(--white) 82%,transparent)}
.np-stamp b{display:block;font-family:var(--num);font-weight:600;font-size:2em;line-height:1}

/* 2. 形と設備：マイソクの間取り図 → 3D */
.np-l1{background:var(--paper-2)}
.np-l1 .np-po{left:5%;top:7%;height:86%;width:auto;background:var(--white);box-shadow:0 0 0 1px var(--rule)}
.np-l1 .np-3d{right:2%;top:5%;width:58%;height:90%;object-fit:contain}
.np-scan{position:absolute;left:5%;top:7%;width:29.4%;height:2px;background:var(--accent);box-shadow:0 0 12px var(--accent);z-index:2;opacity:0}
.np-arrow{position:absolute;left:35.8%;top:50%;width:2.6%;height:2px;background:var(--ink);z-index:2}
.np-arrow::after{content:"";position:absolute;right:-1px;top:-4px;border:5px solid transparent;border-left:7px solid var(--ink);border-right:0}

/* 3. 色：家具なしのパースの上に、床・建具・壁の色の札と「？」 */
.np-sw{position:absolute;left:10px;top:10px;z-index:2;display:flex;flex-wrap:wrap;gap:6px}
.np-sw li{display:flex;align-items:center;gap:7px;padding:5px 10px 5px 5px;border-radius:99px;background:var(--paper);font-size:12px;font-weight:500;letter-spacing:.04em;line-height:1.3;box-shadow:0 1px 0 var(--rule)}
.np-sw i{width:20px;height:20px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(16,15,13,.14)}
.np-sw .q i{display:grid;place-items:center;background:var(--accent);box-shadow:none;color:var(--on-accent);font-style:normal;font-weight:700;font-size:12px}

/* 4. 窓の外：窓を赤い点線で囲む */
.np-ring{position:absolute;left:32%;top:21%;width:42%;height:52%;border:2px dashed var(--accent);border-radius:6px;z-index:2}

/* 5. 4点 */
.np-l4{background:var(--paper-2);display:grid;grid-template-columns:1fr 1fr .78fr;grid-template-rows:1fr 1fr;gap:8px;padding:8px}
.np-it{position:relative;border-radius:2px;overflow:hidden;background:var(--white);min-width:0;min-height:0}
.np-it img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.np-it.fit img{object-fit:contain;padding:4px}
.np-it.ps{grid-column:1/3}
.np-it.fl{grid-column:3;grid-row:1/3}
.np-it .np-tag{left:6px;bottom:6px;font-size:11px;padding:3px 7px}
.np-play{position:absolute;left:50%;top:50%;width:38px;height:38px;margin:-19px 0 0 -19px;border-radius:50%;background:rgba(16,15,13,.55);z-index:1}
.np-play::after{content:"";position:absolute;left:15px;top:12px;border:7px solid transparent;border-left:11px solid #fff;border-right:0}

/* 動くとき */
.nophoto.np-on .np-track{height:calc(100vh + 180vh);height:calc(280 * var(--bk-vh,1svh))}
.nophoto.np-on .np-stage{position:sticky;top:0;height:100vh;height:calc(100 * var(--bk-vh,1svh));display:flex;align-items:center;
  padding:calc(var(--hd) + clamp(16px,3vh,40px)) 0 clamp(16px,3vh,40px)}
.nophoto.np-on .np-in{width:100%}
.nophoto.np-on .np-steps li{color:var(--lead);transition:color .35s var(--ease)}
.nophoto.np-on .np-steps li::before{transform-origin:50% 0;transition:background-color .35s var(--ease)}
.nophoto.np-on .np-steps li.on{color:var(--ink)}
.nophoto.np-on .np-steps li.on::before{background:var(--accent)}
.nophoto.np-on .np-steps li.on b{color:var(--accent-ink)}
.nophoto.np-on .np-l{opacity:0}
.nophoto.np-on .np-l0{opacity:1}

/* 止まっているとき：5 コマを並べた絵コンテ */
.nophoto:not(.np-on) .np-copy{grid-column:1/-1}
.nophoto:not(.np-on) .np-fig{grid-column:1/-1;aspect-ratio:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.nophoto:not(.np-on) .np-l{position:relative;inset:auto;aspect-ratio:3/2}
.nophoto:not(.np-on) .np-steps{grid-template-columns:repeat(5,minmax(0,1fr));column-gap:12px}
.nophoto:not(.np-on) .np-scan{display:none}
.nophoto:not(.np-on) .np-tag{left:6px;bottom:6px;font-size:10.5px;padding:3px 6px}
.nophoto:not(.np-on) .np-tag.tr{left:auto;right:6px;bottom:auto;top:6px}
.nophoto:not(.np-on) .np-tag.r{left:auto;right:6px}
.nophoto:not(.np-on) .np-it .np-tag{left:4px;bottom:4px;font-size:9.5px;padding:2px 5px}
.nophoto:not(.np-on) .np-sw{left:6px;top:6px;gap:4px}
.nophoto:not(.np-on) .np-sw li{font-size:10.5px;padding:3px 7px 3px 3px;gap:5px}
.nophoto:not(.np-on) .np-sw i{width:14px;height:14px}
.nophoto:not(.np-on) .np-stamp{width:62px;font-size:10px}

@media (max-width:900px){
  .np-copy,.np-fig{grid-column:1/-1}
  .nophoto.np-on .np-in{align-content:center}
  .np-steps li{padding:5px 0 5px 12px;font-size:14px}
  .np-steps li::before{top:5px;bottom:5px}
  .nophoto:not(.np-on) .np-fig{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nophoto:not(.np-on) .np-steps{grid-template-columns:1fr}
}
@media (max-width:760px){
  .np-copy{gap:14px}
  .np-tag{left:6px;bottom:6px;font-size:10.5px;padding:3px 6px}
  .np-tag.tr{left:auto;right:6px;bottom:auto;top:6px}
  .np-tag.r{left:auto;right:6px}
  .np-sw{left:6px;top:6px;gap:4px}
  .np-sw li{font-size:10.5px;padding:3px 7px 3px 3px;gap:5px}
  .np-sw i{width:14px;height:14px}
  .np-sw .q i{font-size:9px}
  .np-stamp{width:62px;font-size:10px}
  .np-l4{gap:5px;padding:5px}
  .np-it .np-tag{font-size:9.5px;padding:2px 5px;left:4px;bottom:4px}
  .np-play{width:28px;height:28px;margin:-14px 0 0 -14px}
  .np-play::after{left:11px;top:8px;border-width:6px;border-left-width:9px}
  .nophoto.np-on .np-stage{padding:calc(var(--hd) + 12px) 0 calc(88px + env(safe-area-inset-bottom,0px))}
}
