/*
 * Fuchidori 紹介ページ「夜のギャラリー」
 *
 * 炭色の壁に、照明の当たったプリントが掛かる写真展。文字は美術館の作品ラベルのように小さく組み、
 * 比率（Room 03）と使い方だけは壁を一段明るい「昼の展示室」の灰色にする（黒い額が壁に溶けないように）。
 *
 * 決まり
 *   色   … 壁 #1f1e1c ／ 文字 #ece7de ／ 弱め #aca69b ／ 罫 文字色の 14% ／ 照明 rgb(255 238 212)
 *          昼の壁 #cdc8be ／ 文字 #1f1d1a ／ 弱め #57534c
 *   書体 … 見出しは明朝、本文はゴシック。欧文の飾りに Playfair Display（番号・数字）と Jost（ラベル）
 *   動き … html.m のときだけ（boot.js が描画の前に付ける。JS があり、動きを減らす設定でないとき）。
 *          動かすのは transform・opacity・clip-path。JS が無い・動きを減らす設定では、
 *          下の「基本の並び」がそのまま最終の姿になる
 * CSP で style 属性が使えないので、ページ側に style="…" は書かない。
 * 作例ごとの縦横比と、展示室の高さの計算は build-pages.mjs が下の「書き出し」の区間に書く（手で直さない）
 */
@font-face {
  font-family: 'Playfair Display';
  src: url(/fuchidori/fonts/PlayfairDisplay-regular.woff2) format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url(/fuchidori/fonts/Jost-regular.woff2) format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --wall: #1f1e1c;
  --wall-deep: #171614;
  --ink: #ece7de;
  --ink-2: #aca69b;
  --ink-3: #7f796f;
  --rule: rgb(236 231 222 / 0.14);
  --line: rgb(236 231 222 / 0.4);
  --hover: rgb(236 231 222 / 0.08);
  --btn-bg: #ece7de;
  --btn-ink: #1b1a18;
  --lamp: 255 238 212;
  --mincho: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif;
  --gothic: 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif;
  --display: 'Playfair Display', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif;
  --latin: 'Jost', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif;
  --g: 20px;
  --sec: 104px;
  --print-shadow: 0 1px 2px rgb(0 0 0 / 0.45), 0 28px 56px -24px rgb(0 0 0 / 0.85);
  --rim: 0 0 0 1px rgb(255 248 236 / 0.2);
  --svh: 1vh;
  --gap: 20vw;
  --hold: calc(26 * var(--svh));
  /* 展示室の舞台で、作品の上下に空けておく高さ（上の余白 + 下のラベル・メーター）。背の低い画面では作品をこの分だけ縮める */
  --walk-top: 24px;
  --walk-room: 212px;
  color-scheme: dark;
}
@supports (height: 1svh) {
  :root {
    --svh: 1svh;
  }
}
@media (min-width: 760px) {
  :root {
    --g: 48px;
    --sec: 168px;
    --gap: 8vw;
  }
}
/* 昼の展示室（明るい灰色の壁） */
.day {
  --wall: #cdc8be;
  --ink: #1f1d1a;
  --ink-2: #57534c;
  --ink-3: #8a857b;
  --rule: rgb(31 29 26 / 0.16);
  --line: rgb(31 29 26 / 0.4);
  --hover: rgb(31 29 26 / 0.06);
  --btn-bg: #1f1d1a;
  --btn-ink: #f4f1ea;
  --print-shadow: 0 1px 2px rgb(40 34 26 / 0.3), 0 26px 44px -22px rgb(40 34 26 / 0.55);
  background: var(--wall);
  color: var(--ink);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--wall);
}
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
figure,
dl,
dd,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
.ib {
  display: inline-block;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* 動かないときは、照明のにじみが画面の横へはみ出さないよう切る（動くときは舞台が切る） */
html:not(.m) main {
  overflow: hidden;
}
.wrap {
  width: 100%;
  max-width: calc(1180px + var(--g) * 2);
  margin: 0 auto;
  padding: 0 var(--g);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  z-index: 60;
  left: 8px;
  top: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--wall);
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
.note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* 見出しの上の小さな肩書き（展示室の番号札のように） */
.kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: var(--latin);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kicker__sep {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.kicker__ja {
  font-family: var(--gothic);
  letter-spacing: 0.14em;
}
h2 {
  margin-top: 16px;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(26px, 4.2vw, 46px);
  line-height: 1.45;
  letter-spacing: 0.04em;
}
.lead {
  margin-top: 18px;
  max-width: 30em;
  color: var(--ink-2);
}

/* ボタン。押せる所は明るい面、ほかは線 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: 600 14px/1.2 var(--gothic);
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn--line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--line:hover {
  background: var(--hover);
  filter: none;
}
.btn[hidden] {
  display: none;
}
.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* 文の中の小さな「人に教える」 */
.tell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}
.tell::after {
  content: '';
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.tell:hover::after {
  opacity: 1;
}

/* 地色の色見本（ラベルの頭に付ける。暗い壁の上でも地色が文字で分かるように） */
.sw {
  display: inline-block;
  flex: none;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.6em;
  border-radius: 50%;
  vertical-align: -0.1em;
  background: var(--mat, transparent);
  box-shadow: inset 0 0 0 1px rgb(150 146 138 / 0.6);
}
.sw--none {
  background: linear-gradient(135deg, transparent 45%, rgb(150 146 138 / 0.9) 45% 55%, transparent 55%);
}

/* 作品ラベル（美術館の壁の小さな札） */
.label {
  display: block;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
}
.label > span {
  display: block;
}
.label__no {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.label__title {
  font-family: var(--mincho);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.label__meta {
  font-family: var(--latin);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}
.label__spec {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.label__spec::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  margin: 8px 0 6px;
  background: var(--ink-3);
}

/* 照明のにじみ。プリントの後ろに置くので、写真の上にはかからない */
.glow {
  position: absolute;
  z-index: 0;
  inset: -30% -42%;
  background: radial-gradient(closest-side, rgb(var(--lamp) / 0.17), rgb(var(--lamp) / 0.07) 46%, rgb(var(--lamp) / 0) 100%);
  pointer-events: none;
}

/* 地色（アプリの書き出しの額の色） */
.g-white { --mat: #fff; }
.g-warm { --mat: #f6f4f1; }
.g-ivory { --mat: #f0eadc; }
.g-silver { --mat: #c4c9c7; }
.g-gunmetal { --mat: #2d3436; }
.g-onyx { --mat: #181818; }
.g-black { --mat: #000; }
.g-sakura { --mat: #f4d5da; }
.g-sunny { --mat: #f5e08a; }
.g-night { --mat: #1d2030; }

/* ── 天 ── */
.top {
  position: absolute;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: max(6px, env(safe-area-inset-top)) calc(var(--g) - 8px) 6px var(--g);
  color: #fff;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.top__nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.top__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.top__nav .top__go {
  margin-left: 4px;
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.2);
}
.top__nav .top__lang {
  display: none;
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.12em;
}
@media (min-width: 760px) {
  .top__nav .top__lang {
    display: inline-flex;
  }
}
@media (max-width: 359px) {
  .brand {
    font-size: 19px;
  }
  .top__nav a {
    padding: 0 7px;
    letter-spacing: 0.04em;
  }
  .top__nav .top__go {
    padding: 0 12px;
  }
  .btn {
    padding: 0 14px;
    letter-spacing: 0.04em;
  }
  .hero__lead {
    font-size: 13px;
  }
}
.top__nav a,
.btn {
  white-space: nowrap;
}
.top--doc {
  position: relative;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.top--doc .top__go {
  border-color: rgb(236 231 222 / 0.4);
}

/* ── 1–2. 冒頭（基本の並び: 画面いっぱいの撮って出し → 壁に掛かった額） ── */
.hero__view {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #0c0c12;
}
/* 撮って出しの写真。箱の縦横比は写真の部分。画面を覆う大きさ（位置と幅は下の「書き出し」の区間） */
.hero__photo {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  overflow: hidden;
  transform-origin: 0 0;
  background: #0c0c12;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  max-width: none;
}
.hero__scrim {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(8 8 12 / 0.66) 0%, rgb(8 8 12 / 0.34) 38%, rgb(8 8 12 / 0) 60%),
    linear-gradient(to top, rgb(8 8 12 / 0.55), rgb(8 8 12 / 0) 22%);
}
/* 文字は空の側に置き、鳥居と湖面は見せる */
.hero__intro {
  position: absolute;
  z-index: 6;
  top: calc(76px + env(safe-area-inset-top));
  left: var(--g);
  right: var(--g);
  max-width: 660px;
  color: #fff;
}
.hero__intro .kicker {
  color: rgb(255 255 255 / 0.8);
}
.hero h1 {
  margin-top: 14px;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(28px, 9vw, 74px);
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 30px rgb(0 0 0 / 0.35);
}
/* 英語の見出しは語が長いので、縦持ちのスマホでは1行目（Frame your photo,）が折れない大きさに */
@media (max-width: 759px) and (orientation: portrait) {
  .hero h1:lang(en) {
    font-size: clamp(26px, 8.2vw, 40px);
    letter-spacing: 0.01em;
  }
}
.hero__lead {
  margin: 16px 0 24px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.85;
  color: rgb(255 255 255 / 0.86);
}
.hero .btn--line {
  color: #fff;
  border-color: rgb(255 255 255 / 0.55);
  background: rgb(0 0 0 / 0.18);
}
/* 撮って出しの札（額に入れる前の写真だと分かるように） */
.hero__tag {
  position: absolute;
  z-index: 6;
  left: var(--g);
  bottom: calc(66px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--latin);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.66);
}
.hero__tag b {
  font-family: var(--gothic);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #fff;
}
.hero__cue {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.72);
}
.hero__cue-jp {
  font-family: var(--gothic);
  letter-spacing: 0.14em;
  text-transform: none;
}
.hero__cue-line {
  position: relative;
  width: 36px;
  height: 1px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.3);
}
.hero__cue-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-100%);
}
@media (min-width: 760px) {
  .hero__scrim {
    background:
      linear-gradient(to right, rgb(8 8 12 / 0.6) 0%, rgb(8 8 12 / 0.28) 36%, rgb(8 8 12 / 0) 58%),
      linear-gradient(to bottom, rgb(8 8 12 / 0.4), rgb(8 8 12 / 0) 24%),
      linear-gradient(to top, rgb(8 8 12 / 0.5), rgb(8 8 12 / 0) 20%);
  }
  .hero__intro {
    top: 19vh;
    left: 6vw;
    right: auto;
    max-width: 760px;
  }
  .hero h1 {
    font-size: clamp(40px, 5.2vw, 70px);
  }
  .hero__lead {
    font-size: 15px;
  }
  .hero__tag {
    left: 6vw;
    bottom: 6vh;
  }
}

/* 着地: 壁に掛かった額と、撮影情報の大きな数字、作品ラベル */
.hero__final {
  display: flex;
  justify-content: center;
  padding: 88px var(--g) 8px;
}
.hero__work {
  position: relative;
  width: min(100%, 420px);
}
.hero__frame {
  position: relative;
}
.hero__frame .mat {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: #fff;
  box-shadow: var(--print-shadow);
  transform-origin: 0 0;
}
.hero__print {
  position: relative;
  z-index: 4;
  width: 100%;
}
/* 壁の大きな展示解説（この一枚の F値・シャッター速度・ISO） */
.hero__nums {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.hero__nums div {
  display: flex;
  flex-direction: column-reverse;
}
.hero__nums dt {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.hero__nums dd {
  font-family: var(--display);
  font-size: clamp(24px, 7.4vw, 30px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hero__label {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  column-gap: 16px;
  margin-top: 12px;
}
.hero__label .label__meta,
.hero__label .label__spec,
.hero__label .label__size {
  white-space: nowrap;
}
/* スマホ: 額は画面の高さに合わせて小さくなるので、数字とラベルは額より広く取って中央にそろえる */
.hero__nums,
.hero__label {
  --lw: min(calc(100vw - 2 * var(--g)), 340px);
  width: var(--lw);
  margin-left: calc((100% - var(--lw)) / 2);
}
.label__meta .sep {
  display: block;
  height: 0;
  overflow: hidden;
}
.hero__label > * {
  grid-column: 1 / -1;
}
.hero__label .label__say {
  margin-bottom: 8px;
  font-family: var(--mincho);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.hero__label .label__say small {
  display: block;
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__label .label__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 2px;
}
.hero__label .label__col {
  grid-column: auto;
  min-width: 0;
}
.hero__label .label__col > span {
  display: block;
}
.hero__label .label__spec::before {
  margin-top: 2px;
}
.label__size {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.hero__label .tell {
  justify-self: start;
  margin-top: 2px;
}
@media (min-width: 1100px) {
  .hero__work {
    width: 440px;
  }
  .hero__nums {
    position: absolute;
    left: calc(100% + 56px);
    bottom: 0;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .hero__nums dt {
    font-size: 11px;
  }
  .hero__nums dd {
    font-size: clamp(48px, 5.2vw, 80px);
    line-height: 1;
  }
  .hero__label {
    position: absolute;
    right: calc(100% + 56px);
    bottom: 0;
    width: 260px;
    display: block;
    margin: 0;
    text-align: right;
  }
  .hero__nums {
    width: auto;
  }
  .hero__label .label__col > span {
    display: block;
  }
  .hero__label .label__col + .label__col {
    margin-top: 2px;
  }
  .label__meta .sep {
    display: inline;
    height: auto;
  }
  .hero__label .label__spec::before {
    margin-left: auto;
  }
  .hero__label .label__head {
    justify-content: flex-end;
  }
  .hero__label .tell {
    margin-top: 12px;
    flex-direction: row-reverse;
  }
}

/* ── 3. Room 01 の入口と出品目録 ── */
.r1 {
  padding: var(--sec) 0 calc(var(--sec) * 0.5);
}
.r1__grid {
  display: grid;
  gap: 48px;
}
.list__hd {
  margin-bottom: 14px;
}
.list {
  border-top: 1px solid var(--rule);
}
.list a {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  align-items: baseline;
  min-height: 56px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.list__no {
  grid-row: 1 / 3;
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink-2);
}
.list__t {
  font-family: var(--mincho);
  font-size: 15px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.list__s {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.list a:hover .list__t {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
@media (min-width: 960px) {
  .r1__grid {
    grid-template-columns: 5fr 6fr;
    column-gap: 7vw;
    align-items: end;
  }
  .list a {
    grid-template-columns: 44px 1fr auto;
  }
  .list__no {
    grid-row: auto;
  }
  .list__s {
    text-align: right;
  }
}

/* ── 3. 展示室（基本の並び: 壁一面に掛けた作品） ── */
.walk__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 72px 6vw;
  max-width: calc(1280px + var(--g) * 2);
  margin: 0 auto;
  padding: 24px var(--g) 0;
}
.walk__meter {
  display: none;
}
.work {
  position: relative;
  flex: none;
  width: min(84vw, calc(var(--hb, 400px) * var(--r)));
}
.work__frame {
  position: relative;
}
.work__frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--mat, #2a2926);
  box-shadow: var(--print-shadow);
}
.work.is-dark .work__frame img,
.pr.is-dark img {
  box-shadow: var(--rim), var(--print-shadow);
}
.work .glow {
  opacity: 0.75;
}
.work .label {
  margin-top: 18px;
}
/* 番号と題は1行に（冒頭の作品ラベルと同じ組み。背の低い画面でもメーターに当たらないように） */
.work .label__no,
.work .label__title {
  display: inline;
}
.work .label__no {
  margin-right: 12px;
}

/* ── 3'. 出口: 同じ一枚を七通りに刷る（プリントが1枚ずつ机に落ちて束になる） ── */
.stack {
  padding: var(--sec) 0 0;
}
.stack__text {
  max-width: 30em;
}
.pile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 18px;
  align-items: center;
  margin-top: 48px;
}
.pr {
  --x: 0px;
  --y: 0px;
  --rot: 0deg;
  min-width: 0;
}
.pr img {
  width: 100%;
  background: var(--mat, #2a2926);
  box-shadow: var(--print-shadow);
  transform: rotate(var(--rot));
}
.pr__cap {
  margin-top: 12px;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--ink-2);
}
.pr__cap b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 14px;
  color: var(--ink);
}
.pr:nth-child(1) { --x: -8px; --y: 6px; --rot: -3deg; }
.pr:nth-child(2) { --x: 14px; --y: -10px; --rot: 3.5deg; }
.pr:nth-child(3) { --x: -16px; --y: 4px; --rot: -5deg; }
.pr:nth-child(4) { --x: 10px; --y: 12px; --rot: 2deg; }
.pr:nth-child(5) { --x: -6px; --y: -14px; --rot: -2.5deg; }
.pr:nth-child(6) { --x: 16px; --y: 0px; --rot: 5deg; }
.pr:nth-child(7) { --x: -10px; --y: 10px; --rot: -1.5deg; }
.now {
  display: none;
}
.stack__exif {
  margin-top: 40px;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
@media (min-width: 900px) {
  .pile {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 56px 40px;
  }
}

/* 出口のあとの一言と、次の行動 */
.exit {
  padding: var(--sec) 0;
  text-align: center;
}
.exit .kicker {
  justify-content: center;
}
.exit__title {
  margin: 14px 0 28px;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.exit .acts {
  justify-content: center;
}

/* ── 4. Room 02 撮影情報 ── */
.r2 {
  padding: var(--sec) 0;
  overflow: hidden;
  overflow: clip;
}
/* 壁面の大きな数字（撮影情報が淡く流れる帯） */
.band {
  margin-bottom: 64px;
  padding: 18px 0 22px;
  border-block: 1px solid var(--rule);
  overflow: hidden;
  overflow: clip;
}
.band__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  padding-inline: var(--g);
}
.band__row div {
  display: flex;
  flex-direction: column-reverse;
}
.band__row dd {
  font-family: var(--display);
  font-size: clamp(34px, 9.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: rgb(236 231 222 / 0.3);
}
.band__row dt {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.r2__grid {
  display: grid;
  gap: 48px;
}
/* ルーペ: プリントの上で、身をかがめてキャプションを読む */
.loupe {
  position: relative;
  max-width: 560px;
  aspect-ratio: 1 / 0.92;
}
.loupe__print {
  position: absolute;
  left: 0;
  top: 0;
  width: 56%;
  box-shadow: var(--print-shadow);
}
.loupe__lead {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.loupe__lens {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 64%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overflow: clip; /* hidden だとスクロールの容器になり、中の打ち出し（view()）が動かない */
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px #2a2622, 0 0 0 7px #6a6158, 0 0 0 10px rgb(0 0 0 / 0.25), 0 36px 50px -18px rgb(0 0 0 / 0.8);
}
.loupe__cap {
  position: relative;
  flex: none;
  width: 128%;
}
.loupe__cap img {
  width: 100%;
  max-width: none;
}
/* 文字を1行ずつ打ち出すための白い覆い（動くときだけ出す） */
.loupe__cover {
  display: none;
  position: absolute;
  background: #fff;
  transform-origin: 100% 50%;
}
.loupe__cover--1 { top: 29%; height: 12.5%; left: 38%; right: 38%; }
.loupe__cover--2 { top: 43.5%; height: 13%; left: 31%; right: 31%; }
.loupe__cover--3 { top: 57.5%; height: 13%; left: 11.5%; right: 11.5%; }
.loupe figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
}
/* 3行の中身と、写真のファイルの中の記録（EXIF）の名前 */
.lines {
  counter-reset: none;
}
.lines li {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.lines li:last-child {
  border-bottom: 1px solid var(--rule);
}
.lines__n {
  grid-row: 1 / 4;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  font: 11px/22px var(--latin);
  text-align: center;
  color: var(--ink);
}
.lines__t {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}
.lines__t small {
  margin-right: 8px;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-2);
}
.lines__v {
  font-family: var(--latin);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.lines__f {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 6px;
}
.lines__f code {
  padding: 1px 7px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font: 11px/1.7 var(--latin);
  letter-spacing: 0.03em;
  color: var(--ink-2);
}
.r2__more p {
  font-size: 14px;
  color: var(--ink-2);
}
.r2__more p + p {
  margin-top: 14px;
}
.r2__ui {
  width: 46%;
  max-width: 220px;
}
.r2__ui .label {
  margin-top: 12px;
}
.phone {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 18px;
  background: #111;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.9);
}
@media (min-width: 960px) {
  .band {
    margin-bottom: 96px;
  }
  .r2__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 32px;
    row-gap: 56px;
    align-items: start;
  }
  .r2__head {
    grid-column: 1 / 7;
  }
  .loupe {
    grid-column: 1 / 7;
    grid-row: 2 / 4;
  }
  .lines {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
    align-self: end;
  }
  .r2__more {
    grid-column: 8 / 11;
    grid-row: 3;
  }
  .r2__ui {
    grid-column: 11 / 13;
    grid-row: 3;
    width: 100%;
  }
}

/* ── 5. Room 03 比率（昼の展示室。基本の並び: 4枚を同じ高さで並べる） ── */
.ratio {
  padding: var(--sec) 0;
}
.ratio__stage {
  max-width: calc(1180px + var(--g) * 2);
  margin: 0 auto;
  padding: 0 var(--g);
}
.ratio__more {
  margin-top: 16px;
  max-width: 30em;
  font-size: 13px;
  color: var(--ink-2);
}
.ratio__list,
.ratio__mat,
.ratio__photo,
.ratio__glow {
  display: none;
}
.ratio__box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 20px;
  align-items: end;
  margin-top: 56px;
}
.ratio__item img {
  width: 100%;
  background: var(--mat);
  box-shadow: var(--print-shadow);
}
.ratio__item figcaption {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}
.ratio__item figcaption b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  color: var(--ink);
}
@media (min-width: 900px) {
  .ratio__box {
    grid-template-columns: 0.8fr 0.5625fr 1fr 1.7778fr;
    gap: 32px;
  }
}

/* ── 6. 写真は端末の外に出ない ── */
.priv {
  position: relative;
  padding: var(--sec) 0;
  background: radial-gradient(ellipse 50% 60% at 18% 30%, rgb(var(--lamp) / 0.05), rgb(var(--lamp) / 0) 70%);
}
.priv__text {
  margin-top: 20px;
  max-width: 34em;
  color: var(--ink-2);
}
.priv__facts {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}
/* スマホは「大きな数字 ｜ 項目と説明」の横組み、広い画面は3列 */
.priv__facts > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 16px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.priv__facts dt {
  grid-column: 2;
  grid-row: 1;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.priv__facts dd {
  display: contents;
}
.priv__big {
  grid-column: 1;
  grid-row: 1 / 3;
  font-family: var(--mincho); /* Playfair の数字はオールドスタイルで 0 が o に見えるため、明朝の数字 */
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.priv__d {
  grid-column: 2;
  grid-row: 2;
  max-width: 20em;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}
.priv__link {
  margin-top: 20px;
  font-size: 13px;
}
.priv__link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
}
@media (min-width: 760px) {
  .priv__facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .priv__facts > div {
    display: block;
  }
  .priv__big {
    display: block;
    margin: 4px 0 6px;
    font-size: clamp(64px, 7vw, 88px);
  }
  .priv__d {
    display: block;
  }
}

/* ── 7. 使い方3手（昼の展示室） ── */
.how {
  padding: var(--sec) 0;
  overflow: hidden;
  overflow: clip;
}
.how__steps {
  display: grid;
  gap: 36px;
  margin-top: 48px;
}
.how__step {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 20px;
  align-items: center;
}
.how__shot {
  position: relative;
}
.how .phone {
  border-color: rgb(0 0 0 / 0.2);
  box-shadow: 0 24px 44px -24px rgb(40 34 26 / 0.7);
}
/* ベタ焼きに引くダーマトの赤い丸（写真を選ぶ枠を囲む） */
.grease {
  position: absolute;
  left: 18%;
  top: 29.5%;
  width: 64%;
  height: 31%;
  overflow: visible;
  pointer-events: none;
}
.how__no {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  color: var(--ink-2);
}
.how h3 {
  margin: 10px 0 8px;
  font-family: var(--mincho);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.how__txt p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}
.how__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 56px;
}
.how__act .note {
  max-width: 30em;
}
@media (min-width: 760px) {
  .how__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
  .how__step {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .how__shot {
    max-width: 240px;
  }
}

/* ── 8. 人に教える（いちばんしてほしいこと） ── */
.share {
  padding: var(--sec) 0;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgb(var(--lamp) / 0.08), rgb(var(--lamp) / 0) 70%), var(--wall-deep);
}
.share__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
.share h2 {
  font-size: clamp(28px, 5vw, 52px);
}
.share__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.share__btns .btn {
  flex: 1 1 calc(50% - 6px);
  min-height: 54px;
  padding: 0 16px;
}
/* 端末の共有シートが無いときは、X を主役の見た目にする */
.share__btns [hidden] + .btn--line {
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-color: var(--btn-bg);
}
.share__done {
  min-height: 1.8em;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-2);
  word-break: break-all;
}
.share__next {
  margin-top: 8px;
}
/* 送った相手に届く見た目（見本） */
.card {
  max-width: 380px;
}
.card__bubble {
  padding: 8px;
  border-radius: 20px 20px 20px 6px;
  background: #f4f1ea;
  color: #1f1d1a;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.95);
}
.card__msg {
  padding: 6px 8px 10px;
  font-size: 14px;
  line-height: 1.6;
}
.card__link {
  overflow: hidden;
  border: 1px solid #e0dbd1;
  border-radius: 14px;
  background: #fff;
}
.card__link p {
  padding: 9px 12px 11px;
  font-size: 12px;
  line-height: 1.5;
}
.card__link b {
  display: block;
  font-weight: 600;
}
.card__link span {
  font-size: 11px;
  color: #6f6a61;
}
.card figcaption {
  margin-top: 12px;
}
@media (min-width: 960px) {
  .share__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
  }
  .share__btns .btn {
    flex: 0 1 auto;
    padding: 0 26px;
  }
  .card {
    margin-left: auto;
  }
}

/* ── 9. 図録（動作環境と書き出し） ── */
.spec {
  padding: calc(var(--sec) * 0.7) 0 calc(var(--sec) * 0.6);
}
.spec h2 {
  font-size: clamp(24px, 2.8vw, 32px);
}
.spec__t {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.8;
  border-top: 1px solid var(--rule);
}
.spec__t > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.spec__t dt {
  font-size: 12px;
  color: var(--ink-2);
}
.spec__t dd {
  color: var(--ink);
}
@media (min-width: 760px) {
  .spec__in {
    display: grid;
    grid-template-columns: 30% 1fr;
    column-gap: 40px;
    align-items: start;
  }
  .spec__t {
    margin-top: 0;
    font-size: 14px;
  }
  .spec__t > div {
    display: grid;
    grid-template-columns: 8.5em 1fr;
    column-gap: 16px;
  }
  .spec__t dt {
    font-size: 13px;
  }
}

/* ── 10. 地 ── */
.foot {
  padding: 48px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 20px;
}
.brand--foot {
  font-size: 20px;
  color: var(--ink);
}
.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.foot__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.foot__fonts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
}
.foot__fonts a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  text-underline-offset: 3px;
}
.foot__c {
  margin-top: 8px;
}

/* ── 文書（プライバシーポリシー・見つからないページ） ── */
.doc {
  max-width: calc(720px + var(--g) * 2);
  margin: 0 auto;
  padding: 72px var(--g) 96px;
}
.doc h1 {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.doc > .note {
  margin-top: 10px;
}
.doc h2 {
  margin-top: 48px;
  font-size: 19px;
  letter-spacing: 0.04em;
}
.doc p {
  margin-top: 14px;
  color: var(--ink-2);
}
.doc p a {
  padding-block: 14px; /* 文中のリンクも押せる高さを 44px に（行の送りは変わらない） */
  color: var(--ink);
  text-underline-offset: 4px;
}
.doc .acts {
  margin-top: 32px;
}

/* ── 書き出し: build-pages.mjs が frames.json から書く（手で直さない） ── */
/* @generated:start */
/* 冒頭の撮って出し: 写真の部分（1.502:1）が画面を覆う大きさ。まん中に置く */
.hero__photo {
  width: max(100%, calc(150.2 * var(--svh)));
  aspect-ratio: 1.502;
  margin-left: calc(max(100%, calc(150.2 * var(--svh))) / -2);
  margin-top: calc(max(100%, calc(150.2 * var(--svh))) / -3.004);
}
.f-after { --r: 0.80005; --h: 53.66; --hb: 402px; }
.f-t-black { --r: 1; --h: 48; --hb: 360px; }
.f-s-bleed { --r: 0.6665; --h: 58.79; --hb: 441px; }
.f-t-ivory { --r: 1.77778; --h: 36; --hb: 270px; }
.f-tr-black { --r: 0.5625; --h: 64; --hb: 480px; }
.f-s-ivory { --r: 0.64966; --h: 59.55; --hb: 447px; }
.f-t-bleed { --r: 1.49982; --h: 39.19; --hb: 294px; }
.f-tr-white { --r: 0.64063; --h: 59.97; --hb: 450px; }
.f-v-bleed { --r: 1.50037; --k: 1.22489; }
.f-v-white { --r: 0.80005; --k: 0.89445; }
.f-v-black { --r: 1; --k: 1; }
.f-v-sakura { --r: 1.3782; --k: 1.17397; }
.f-b-silver { --r: 0.75; --k: 0.86603; }
.f-v-tall { --r: 0.5625; --k: 0.75; }
.f-v-wide { --r: 1.77778; --k: 1.33333; }
.f-r-45 { --r: 0.80005; }
.f-r-916 { --r: 0.5625; }
.f-r-11 { --r: 1; }
.f-r-169 { --r: 1.77778; }
/* 展示室: 8 点。止まる長さ 26svh・横 1px に縦 0.9px（fuchidori.js も同じ値を data-* から読む） */
.m .walk {
  --u: min(var(--svh), calc((100 * var(--svh) - var(--walk-room)) / 64));
  height: calc(100 * var(--svh) + 8 * 26 * var(--svh) + 0.9 * (min(78vw, calc(42.93 * var(--u))) / 2 + min(78vw, calc(38.42 * var(--u))) / 2 + min(78vw, calc(48 * var(--u))) + min(78vw, calc(39.18 * var(--u))) + min(78vw, calc(64 * var(--u))) + min(78vw, calc(36 * var(--u))) + min(78vw, calc(38.69 * var(--u))) + min(78vw, calc(58.78 * var(--u))) + 7 * var(--gap)));
}
.m .walk__track {
  padding-left: calc(50% - min(78vw, calc(42.93 * var(--u))) / 2);
  padding-right: calc(50% - min(78vw, calc(38.42 * var(--u))) / 2);
}
/* @generated:end */

/* ================================================================
 * 動き（html.m）。JS があり、動きを減らす設定でないときだけ
 * ================================================================ */

/* 読み込んだときの一枚目: 写真がわずかに寄ってから落ち着き、文字が立ち上がる */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo img {
    animation: settle 2.2s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  }
  .hero__intro > * {
    animation: rise 1.1s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  }
  .hero__intro > :nth-child(2) { animation-delay: 0.15s; }
  .hero__intro > :nth-child(3) { animation-delay: 0.3s; }
  .hero__intro > :nth-child(4) { animation-delay: 0.45s; }
  .hero__cue-line::after {
    animation: cue 2.4s cubic-bezier(0.6, 0, 0.2, 1) infinite;
  }
}
@keyframes settle {
  from { transform: scale(1.07); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}
@keyframes cue {
  60%, 100% { transform: translateX(100%); }
}

/* 天: 下へ読む間は引っ込め、少しでも戻ると出す */
.m .top {
  position: fixed;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.3s;
}
.m .top.is-solid {
  background: rgb(27 26 24 / 0.94);
  box-shadow: 0 1px 0 var(--rule);
}
.m .top.is-away {
  transform: translateY(-100%);
}
.m .top:focus-within {
  transform: none;
}

/* 1–2. 画面に留めて、撮って出し → 額 → キャプションの順に進める（数値は fuchidori.js が入れる） */
.m .hero {
  height: 270vh;
  height: 270svh;
  overflow-anchor: none;
}
.m .hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  overflow: clip;
}
.m .hero__view {
  position: absolute;
  inset: 0;
  height: auto;
  background: none;
}
.m .hero.is-live .hero__photo {
  will-change: transform;
}
.m .hero__final {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(40px + env(safe-area-inset-top)) 0 calc(12px + env(safe-area-inset-bottom));
}
.m .hero__work {
  /* 背の低い画面（iPhone SE の Safari など）では、下の数字とラベル（約 330px）まで舞台に収まる幅に */
  width: min(calc(100% - 64px), calc(40 * var(--svh)), calc((100 * var(--svh) - 330px) * 0.8));
}
.m .hero__frame .glow {
  opacity: 0;
  will-change: opacity;
}
.m .hero__print,
.m .hero__nums,
.m .hero__label {
  opacity: 0;
}
.m .hero__nums,
.m .hero__label {
  visibility: hidden; /* 見えていない間は押せないように（fuchidori.js が出す） */
}
@media (min-width: 1100px) {
  .m .hero__final {
    padding: 0;
  }
  .m .hero__work {
    width: calc(76 * var(--svh) * 0.8);
  }
}

/* 3. 展示室を歩く: 縦のスクロールで横へ進む。作品が中央に来たところで少し止まる */
.m .walk {
  padding: 0;
  overflow-anchor: none;
}
.m .walk__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  overflow: clip; /* フォーカスで舞台が横にずれないように */
  display: flex;
  align-items: center;
}
/* 照明は舞台の中央に固定（止まっている絵なので描き直しは起きない）。中央に来た作品ほど明るく見える */
.m .walk__stage::before,
.m .walk__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.m .walk__stage::before {
  background: radial-gradient(ellipse 48% 50% at 50% 42%, rgb(var(--lamp) / 0.15), rgb(var(--lamp) / 0.05) 55%, rgb(var(--lamp) / 0) 82%);
}
.m .walk__stage::after {
  z-index: 2;
  background: linear-gradient(to right, rgb(23 22 20 / 0.78), rgb(23 22 20 / 0) 26%, rgb(23 22 20 / 0) 74%, rgb(23 22 20 / 0.78));
}
.m .walk__track {
  position: relative;
  z-index: 1;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: max-content;
  max-width: none;
  margin: 0;
  /* 作品の中心を、下のラベルとメーターの分だけ上へ */
  padding-top: var(--walk-top);
  padding-bottom: calc(var(--walk-room) - var(--walk-top));
}
.m .walk.is-live .walk__track {
  will-change: transform;
}
.m .work {
  width: min(78vw, calc(var(--h) * var(--u) * var(--r)));
  margin-right: var(--gap);
}
.m .work:last-child {
  margin-right: 0;
}
.m .work .glow {
  display: none;
}
.m .work .label {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  width: max(100%, 230px);
  margin: 0;
}
.m .walk__meter {
  position: absolute;
  z-index: 3;
  left: var(--g);
  right: var(--g);
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-2);
}
.walk__count b {
  font-weight: 400;
  color: var(--ink);
}
.walk__bar {
  position: relative;
  flex: 1;
  max-width: 220px;
  height: 1px;
  overflow: hidden;
  background: var(--rule);
}
.walk__bar i {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: 0 0;
  transform: scaleX(0);
}

/* 3'. 出口: プリントが1枚ずつ落ちて束になる（何枚目までが乗るかは fuchidori.js、落ちる動きは transition） */
.m .stack {
  height: 230vh;
  height: 230svh;
  padding: 0;
  overflow-anchor: none;
}
.m .stack__stage {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  max-width: none;
  padding: calc(64px + env(safe-area-inset-top)) var(--g) calc(20px + env(safe-area-inset-bottom));
  overflow: hidden;
  overflow: clip;
}
.m .stack h2 {
  margin-top: 10px;
  font-size: clamp(24px, 3.6vw, 42px);
}
.m .stack__text .lead {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.8;
}
.m .pile {
  /* 背の低い画面では、上の文と下のラベル（約 360px）を除いた高さに、いちばん縦長のプリント（9:16）が収まる大きさ */
  --s: min(240px, 60vw, calc(30 * var(--svh)), calc((100 * var(--svh) - 360px) / 1.4));
  position: relative;
  display: block;
  flex: 1;
  min-height: 0;
  margin: 0;
}
.m .pr {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--s) * var(--k));
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--rot));
  transition: transform 0.66s cubic-bezier(0.17, 0.84, 0.3, 1), opacity 0.1s linear;
}
.m .stack.is-live .pr {
  will-change: transform;
}
.m .pr img {
  transform: none;
}
.m .pr:not(.is-in) {
  opacity: 0;
  transform: translate(-50%, -50%) translate(calc(var(--x) + 30vw), calc(var(--y) - 105vh)) rotate(calc(var(--rot) + 22deg)) scale(1.12);
}
.m .pr__cap {
  display: none;
}
.m .now {
  position: relative;
  display: block;
  height: 44px;
}
.now__i {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s;
}
.now__i.is-top {
  opacity: 1;
  transform: none;
}
.now__no {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}
.now__no small {
  margin-left: 2px;
  font-size: 13px;
  color: var(--ink-3);
}
.now__s {
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.now__s span {
  display: block;
  font-family: var(--gothic);
  font-size: 11px;
  color: var(--ink-2);
}
.m .stack__exif {
  margin-top: 6px;
}
/* タブレットの縦持ち: 舞台が高いので、束を大きく */
@media (min-width: 760px) {
  .m .pile {
    --s: min(360px, 44vw, calc(30 * var(--svh)), calc((100 * var(--svh) - 360px) / 1.4));
  }
}
@media (min-width: 960px) {
  .m .stack__stage {
    display: grid;
    grid-template-columns: minmax(280px, 30%) 1fr;
    grid-template-rows: 1fr auto auto;
    column-gap: 5vw;
    padding: 96px 6vw 48px;
  }
  .m .stack__text {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
  .m .pile {
    --s: min(380px, 30vw, calc(40 * var(--svh)));
    grid-column: 2;
    grid-row: 1 / 4;
  }
  .m .now {
    grid-column: 1;
    grid-row: 2;
  }
  .m .stack__exif {
    grid-column: 1;
    grid-row: 3;
  }
}

/* 4. 壁面の数字の帯: 縦のスクロールに合わせて横へ流れる（位置は fuchidori.js） */
.m .band__row {
  flex-wrap: nowrap;
  width: max-content;
  column-gap: 11vw;
}
.m .r2.is-live .band__row {
  will-change: transform;
}
.m .band__row dd {
  font-size: clamp(64px, 17vw, 168px);
}

/* 5. 比率: 写真はそのままで、額の形と色が変わる（位置は fuchidori.js が入れる） */
.m .ratio {
  height: 360vh;
  height: 360svh;
  padding: 0;
  overflow-anchor: none;
}
.m .ratio__stage {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 22px;
  height: 100vh;
  height: 100svh;
  max-width: none;
  padding: calc(56px + env(safe-area-inset-top)) var(--g) 20px;
  overflow: hidden;
  overflow: clip;
}
.m .ratio h2 {
  margin-top: 10px;
  font-size: clamp(24px, 3.4vw, 40px);
}
.m .ratio__more {
  margin-top: 8px;
  font-size: 12px;
}
.m .ratio__box {
  /* 背の低い画面では、見出しと比率の一覧（約 370px）を除いた高さ */
  --bh: max(160px, min(calc(44 * var(--svh)), calc(100 * var(--svh) - 370px)));
  position: relative;
  display: grid;
  place-items: center;
  grid-template-columns: 100%;
  gap: 0;
  height: var(--bh);
  margin: 0;
}
.m .ratio__item {
  grid-area: 1 / 1;
  width: min(100%, calc(var(--bh) * var(--r)));
}
.m .ratio__item img {
  position: relative;
  z-index: 3;
  opacity: 0;
  box-shadow: none;
}
.m .ratio__item figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.m .ratio__glow,
.m .ratio__mat,
.m .ratio__photo {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  pointer-events: none;
}
.m .ratio__glow {
  z-index: 0;
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.4), rgb(255 255 255 / 0.12) 50%, rgb(255 255 255 / 0) 100%);
}
.m .ratio__mat {
  z-index: 1;
  background: var(--mat);
  box-shadow: var(--print-shadow);
  opacity: 0;
}
.m .ratio__photo {
  z-index: 2;
  width: 50%;
  max-width: none;
  opacity: 0;
}
.m .ratio.is-laid .ratio__photo {
  opacity: 1;
}
.m .ratio.is-live .ratio__photo,
.m .ratio.is-live .ratio__mat,
.m .ratio.is-live .ratio__glow {
  will-change: transform;
}
.m .ratio__list {
  display: flex;
  gap: 8px;
}
.ratio__list li {
  position: relative;
  flex: 1;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  opacity: 0.4;
  transition: opacity 0.4s;
}
.ratio__list li::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.ratio__list li.is-on {
  opacity: 1;
}
.ratio__list li.is-on::before {
  transform: none;
}
.ratio__list b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 7.4vw, 30px);
  line-height: 1.1;
  white-space: nowrap;
}
.ratio__list span {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
@media (min-width: 960px) {
  .m .ratio__stage {
    grid-template-columns: minmax(320px, 32%) 1fr;
    grid-template-rows: 1fr auto;
    align-content: stretch;
    column-gap: 5vw;
    row-gap: 32px;
    padding: 80px 6vw 56px;
  }
  .m .ratio__head {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }
  .m .ratio__list {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    gap: 0;
  }
  .ratio__list li {
    display: flex;
    align-items: baseline;
    gap: 22px;
    padding: 10px 0 12px;
  }
  .ratio__list b {
    flex: none;
    width: 2.7em;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1;
  }
  .ratio__list span {
    margin: 0;
    font-size: 12px;
  }
  .m .ratio__box {
    --bh: calc(74 * var(--svh));
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }
}

/* 見えてきたら立ち上がる。CSS のスクロール連動が使えるならそれで、無ければ fuchidori.js が .is-in を付ける */
@media (prefers-reduced-motion: no-preference) {
  .sda .rv {
    animation: rv-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 26%;
  }
  .m:not(.sda) .rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
  }
  .m:not(.sda) .rv.is-in {
    opacity: 1;
    transform: none;
  }

  /* 4. ルーペの中で、キャプションを1行ずつ打ち出す */
  .m .loupe__cover {
    display: block;
  }
  .sda .loupe__cover {
    animation: uncover linear both;
    animation-timeline: view();
  }
  .sda .loupe__cover--1 { animation-range: entry 90% cover 26%; }
  .sda .loupe__cover--2 { animation-range: cover 26% cover 35%; }
  .sda .loupe__cover--3 { animation-range: cover 35% cover 47%; }
  .sda .loupe__lens {
    animation: lens-in linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 30%;
  }
  .m:not(.sda) .loupe__cover {
    transition: transform 0.8s cubic-bezier(0.5, 0, 0.3, 1) 0.5s;
  }
  .m:not(.sda) .loupe.is-in .loupe__cover {
    transform: scaleX(0);
  }
  .m:not(.sda) .loupe.is-in .loupe__cover--2 { transition-delay: 1.1s; }
  .m:not(.sda) .loupe.is-in .loupe__cover--3 { transition-delay: 1.7s; transition-duration: 1.1s; }
  .m:not(.sda) .loupe__lens {
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s;
  }
  .m:not(.sda) .loupe:not(.is-in) .loupe__lens {
    opacity: 0;
    transform: translateY(36px) scale(0.88);
  }

  /* 7. ダーマトの丸を一筆で引く */
  .sda .grease {
    animation: draw linear both;
    animation-timeline: view();
    animation-range: entry 70% cover 45%;
  }
  .m:not(.sda) .grease {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s cubic-bezier(0.6, 0, 0.3, 1) 0.5s;
  }
  .m:not(.sda) .is-in .grease {
    clip-path: inset(-12% -12% -12% -12%);
  }
}
@keyframes rv-in {
  from { opacity: 0; transform: translateY(28px); }
}
@keyframes uncover {
  to { transform: scaleX(0); }
}
@keyframes lens-in {
  from { opacity: 0; transform: translateY(36px) scale(0.88); }
}
@keyframes draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(-12% -12% -12% -12%); }
}

/* 横向きのスマホ（背の低い画面）: 冒頭の文字を詰め、額とラベルは横に並べる */
@media (orientation: landscape) and (max-height: 540px) {
  :root {
    --walk-top: 12px;
    --walk-room: 150px; /* メーターは出さない */
    --gap: 140px; /* 作品が小さくなるので、ラベル（幅 230px）が隣の作品のラベルに届かない間隔 */
  }
  .hero__intro {
    top: 56px;
    max-width: 58%;
  }
  .hero h1 {
    margin-top: 8px;
    font-size: clamp(24px, 8vh, 38px);
  }
  .hero__lead {
    margin: 8px 0 12px;
    font-size: 12px;
    line-height: 1.7;
  }
  .hero .btn {
    min-height: 44px;
  }
  .hero__tag {
    display: none;
  }
  .m .hero__final {
    padding: 0;
  }
  .m .hero__work {
    left: -140px; /* 額と右のラベルをひとかたまりで中央に */
    width: calc(76 * var(--svh) * 0.8);
  }
  .m .hero__nums {
    position: absolute;
    left: calc(100% + 28px);
    top: 0;
    width: 280px;
    margin: 0;
  }
  .m .hero__nums dt {
    white-space: nowrap;
  }
  .m .hero__label {
    position: absolute;
    left: calc(100% + 28px);
    bottom: 0;
    width: 280px;
    margin: 0;
  }
  .m .hero__label .label__say {
    font-size: 14px;
  }
  .m .stack__stage {
    display: grid;
    grid-template-columns: 40% 1fr;
    grid-template-rows: 1fr auto;
    column-gap: 24px;
    padding: 20px var(--g);
  }
  .m .stack__text {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
  .m .stack__text .lead,
  .m .stack__exif {
    display: none;
  }
  .m .pile {
    --s: min(200px, calc(50 * var(--svh)));
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .m .now {
    grid-column: 1;
    grid-row: 2;
  }
  .m .ratio__stage {
    grid-template-columns: minmax(240px, 36%) 1fr;
    grid-template-rows: 1fr auto;
    align-content: stretch;
    column-gap: 32px;
    row-gap: 16px;
    padding: 20px var(--g);
  }
  .m .ratio__head {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }
  .m .ratio__list {
    grid-column: 1;
    grid-row: 2;
  }
  .m .ratio__box {
    --bh: calc(84 * var(--svh));
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }
  .m .ratio__more,
  .m .walk__meter {
    display: none;
  }
}
