/* 汀 — style.css。トークン・レイアウトは docs/04_意匠企画書(画面レイアウト表)が正。 */
@font-face {
  font-family: 'Yomogi';
  src: url('fonts/Yomogi-sub.woff2') format('woff2'), url('fonts/Yomogi-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Zen Kaku Gothic New';
  src: url('fonts/ZKGN-sub.woff2') format('woff2'), url('fonts/ZenKakuGothicNew-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Zen Kaku Gothic New';
  src: url('fonts/ZKGN-med-sub.woff2') format('woff2'), url('fonts/ZenKakuGothicNew-Medium.ttf') format('truetype');
  font-weight: 500; font-display: swap;
}

:root {
  --water-deep: #1a4a7a; --water-shal: #9ecfe8;
  --haze-grey: #c3ced0; --cloud-white: #f4f7f7;
  --sky-blue: #6ea8d8; --ivy-green: #7a8f5a;
  --accent-red: #c94f3d; --rust: #8a4a3a;
  --paper: #efe6d4; --ink: #3a352e;
  --shadow: 0 2px 4px rgba(10, 20, 26, 0.30);       /* 統一影トークン */
  --tr: 170ms ease;                                  /* 統一トランジション */
  --fs-body: 20px; --fs-op: 22px; --fs-sub: 17px;    /* 本文20+/操作22+(docs/04) */
  --line-thin: 1.5px;
}
* { margin: 0; padding: 0; box-sizing: border-box; touch-action: manipulation; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #202a30; }
body {
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--cloud-white);
  user-select: none; -webkit-user-select: none;
}
canvas#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

/* ============ HUD(プレイ) — 四隅・中央1/3は常に景色 ============ */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud.hidden { display: none; }

/* 右上: ミニマップ(一辺18%h)+タスク。薄暗スクリムで可読担保 */
/* タスクはミニマップ幅の1.6倍(メモ1文が3行以内に収まる幅・docs/04レイアウト表改訂2026-08-30) */
#neCorner {
  position: absolute; top: 3vh; top: 3dvh; right: 3vh; right: 3dvh;
  width: 28.8vh; width: 28.8dvh;
  display: flex; flex-direction: column; gap: 1vh; align-items: flex-end;
}
#mmWrap { position: relative; width: 18vh; width: 18dvh; height: 18vh; height: 18dvh; }
#minimap {
  width: 100%; height: 100%;
  background: rgba(10, 22, 30, 0.28);
}
/* ミニマップは塗り枠でなく四隅ブラケット(参照のカメラ的な構え) */
.mmc { position: absolute; width: 2.2vh; height: 2.2vh; border: 2px solid rgba(244, 247, 247, 0.9); }
.mmc.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.mmc.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.mmc.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.mmc.br { bottom: -2px; right: -2px; border-left: none; border-top: none; }
#task {
  width: 100%;
  background: linear-gradient(90deg, rgba(8, 16, 22, 0) 0%, rgba(8, 16, 22, 0.42) 22%, rgba(8, 16, 22, 0.42) 100%);
  padding: 8px 10px 8px 26px;
  font-size: var(--fs-body); line-height: 1.45;
  text-shadow: 0 1px 3px rgba(6, 14, 18, 0.9);
}
#task .trow { display: flex; gap: 8px; align-items: flex-start; }
#task .chk {
  flex: none; width: 15px; height: 15px; margin-top: 5px;
  border: var(--line-thin) solid var(--cloud-white); opacity: 0.9;
}
#task .chk.done { background: var(--cloud-white); }
#taskOp { margin-top: 4px; font-size: var(--fs-sub); opacity: 0.85; }

/* 左下: 機能アイコン2個の菱形クラスタ(斜め寄せ・縦一列にしない) */
#iconCluster { position: absolute; left: 3vh; left: 3dvh; bottom: 4vh; bottom: 4dvh; width: 15vh; height: 13vh; pointer-events: none; }
.hudIcon {
  position: absolute; width: 6vh; width: 6dvh; height: 6vh; height: 6dvh;
  pointer-events: auto; cursor: pointer;
  background: rgba(8, 16, 22, 0.28);
  border: var(--line-thin) solid rgba(244, 247, 247, 0.85);
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--tr), border-color var(--tr), transform var(--tr);
  box-shadow: var(--shadow);
}
.hudIcon svg { transform: rotate(-45deg); width: 58%; height: 58%; }
.hudIcon:hover { background: rgba(30, 48, 60, 0.5); }
.hudIcon:active { transform: rotate(45deg) scale(0.93); }
.hudIcon:disabled { opacity: 0.35; cursor: default; }
#btnAlbum { left: 0; bottom: 0; }
#btnSettingsHud { left: 7.2vh; bottom: 5.4vh; }

/* 右下: ロゴ小(イタリック細字)+凪ぎメーター(細線) */
#brand {
  position: absolute; right: 3vh; right: 3dvh; bottom: 4vh; bottom: 4dvh;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
#brandLogo {
  font-style: italic; font-weight: 400; letter-spacing: 0.22em;
  font-size: 3vh; color: var(--cloud-white); opacity: 0.9;
  text-shadow: 0 1px 3px rgba(6, 14, 18, 0.7);
}
#calmBar {
  width: 22vw; height: 7px; position: relative;
  border-bottom: var(--line-thin) solid rgba(244, 247, 247, 0.9);
}
#calmFill {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, rgba(158, 207, 232, 0.95), rgba(244, 247, 247, 0.95));
  transform-origin: left; transform: scaleX(0);
}
#calmBar.calmNow #calmFill { background: linear-gradient(90deg, #cfe8dc, #f4f7f7); }

/* JIT(下中央・明滅は常にこの1件のみ docs/03 §6) */
/* JIT: 塗り箱を持たない素の白文字(中央は常に景色 docs/04) */
#jit {
  position: absolute; left: 50%; bottom: 12vh; bottom: 12dvh; transform: translateX(-50%);
  font-size: var(--fs-op); letter-spacing: 0.1em;
  color: var(--cloud-white);
  text-shadow: 0 1px 3px rgba(6, 14, 18, 0.95), 0 0 14px rgba(6, 14, 18, 0.65);
  opacity: 0; transition: opacity var(--tr); white-space: nowrap;
}
#jit.show { opacity: 1; animation: jitPulse 1.6s ease-in-out infinite; }
/* 文脈操作(上がれる時の[E]案内)。JITと同じ棚・同時表示はmain.js側で禁止(誘導の一本化) */
#ctxOp {
  position: absolute; left: 50%; bottom: 12vh; bottom: 12dvh; transform: translateX(-50%);
  pointer-events: none;   /* クリックを食う実害(#finderUIと同じ族 docs/04 §4) */
  font-size: var(--fs-op); letter-spacing: 0.1em;
  color: var(--cloud-white);
  text-shadow: 0 1px 3px rgba(6, 14, 18, 0.95), 0 0 14px rgba(6, 14, 18, 0.65);
  opacity: 0; transition: opacity var(--tr); white-space: nowrap;
}
#ctxOp.show { opacity: 1; }
@keyframes jitPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.58; } }

/* ファインダー(一人称・HUD消灯/凪ぎメーターのみ残す) */
#finderUI { position: absolute; inset: 0; display: none; pointer-events: none; }
#finderUI.show { display: block; }
/* レンズを覗く空気: 4:3枠外の減光・周辺減光・フィルムカウンター */
/* 直線のletterboxでなく光学的な減光(縁に向かって連続的に暗く) */
#fMaskL { position: absolute; top: 0; bottom: 0; left: 0; width: calc(50% - 40vh); background: linear-gradient(90deg, rgba(5, 10, 14, 0.42), rgba(5, 10, 14, 0.0)); }
#fMaskR { position: absolute; top: 0; bottom: 0; right: 0; width: calc(50% - 40vh); background: linear-gradient(270deg, rgba(5, 10, 14, 0.42), rgba(5, 10, 14, 0.0)); }
#fVig { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 42%, rgba(5, 10, 14, 0.16) 68%, rgba(5, 10, 14, 0.5) 100%); }
#fCounter {
  position: absolute; right: calc(50% - 44vh); bottom: 16.5vh;
  font-size: 2vh; letter-spacing: 0.2em; font-style: italic;
  color: rgba(244, 247, 247, 0.75); text-shadow: 0 1px 3px rgba(6, 14, 18, 0.9);
}
/* ブラケット=撮影範囲(4:3・画面高70%)。判定aspect・キャプチャと一致させる */
.bracket { position: absolute; width: 4.5vh; height: 4.5vh; border: 2px solid rgba(244, 247, 247, 0.9); }
#brTL { top: 15vh; left: calc(50% - 46.7vh); border-right: none; border-bottom: none; }
#brTR { top: 15vh; right: calc(50% - 46.7vh); border-left: none; border-bottom: none; }
#brBL { bottom: 15vh; left: calc(50% - 46.7vh); border-right: none; border-top: none; }
#brBR { bottom: 15vh; right: calc(50% - 46.7vh); border-left: none; border-top: none; }
#albumFrame {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46vh; height: 38vh;
  border: 10px solid var(--paper);
  border-bottom-width: 30px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(58, 53, 46, 0.35);
  opacity: 0; transition: opacity var(--tr);
}
#albumFrame.show { opacity: 0.96; }
#finderHint {
  position: absolute; top: calc(50% + 21vh); left: 50%; transform: translateX(-50%);
  font-size: var(--fs-body); color: var(--paper); text-shadow: 0 1px 3px rgba(6, 14, 18, 0.9);
  opacity: 0; transition: opacity var(--tr);
}
#finderHint.show { opacity: 1; }

/* 水中ビネット */
#vignette {
  position: absolute; inset: 0; opacity: 0; transition: opacity 400ms ease;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(16, 46, 84, 0.42) 100%);
}
#vignette.under { opacity: 1; }

/* ============ ポラロイド演出 ============ */
#polaroidLayer { position: fixed; inset: 0; z-index: 20; pointer-events: none; display: none; }
#polaroidLayer.show { display: block; }
#polaroid {
  position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%) rotate(-2deg);
  background: var(--paper); padding: 12px 12px 46px;
  box-shadow: 0 6px 18px rgba(10, 20, 26, 0.45);
}
#polaroid img { display: block; width: 38vh; height: 28.5vh; object-fit: cover; filter: sepia(0.14) saturate(0.92); background: #b8c4c8; }
#polaroid.dev img { animation: develop 1.1s ease forwards; }
@keyframes develop { from { filter: sepia(0.6) saturate(0.2) brightness(1.7) contrast(0.5); } to { filter: sepia(0.14) saturate(0.92) brightness(1); } }

/* ============ 白フェード・シャッター静止 ============ */
#fader { position: fixed; inset: 0; background: var(--cloud-white); opacity: 0; pointer-events: none; z-index: 40; transition: opacity 200ms ease; }
#fader.on { opacity: 1; }
#fader.slow { transition: opacity 900ms ease; }

/* ============ 写真帖(全画面UI・表示中はHUD消灯) ============ */
.screen { position: fixed; inset: 0; z-index: 30; display: none; }
.screen.show { display: flex; }
#album { background: rgba(24, 32, 36, 0.88); align-items: center; justify-content: center; flex-direction: column; }
#albumTabs { display: flex; gap: 10px; margin-bottom: 1vh; }
/* タブ=見開きの縁から覗く紙のツメ */
.alTab {
  font-size: var(--fs-body); padding: 8px 24px 14px; cursor: pointer;
  color: rgba(58, 53, 46, 0.6); background: #e4dac6;
  border: 1px solid rgba(58, 53, 46, 0.22); border-bottom: none;
  border-radius: 7px 7px 0 0;
  margin-bottom: -8px; transform: translateY(4px);
  box-shadow: 0 -2px 5px rgba(8, 14, 18, 0.12);
  transition: transform var(--tr), color var(--tr);
}
.alTab:hover { transform: translateY(1px); }
.alTab:active { transform: translateY(3px); }
.alTab.on { background: var(--paper); color: var(--ink); transform: translateY(0); z-index: 1; }
#albumBook {
  width: 130vh; height: 84vh; display: flex; position: relative;
  background:
    var(--paper-noise, none),
    linear-gradient(90deg, rgba(58, 53, 46, 0.10), transparent 4%, transparent 47.6%, rgba(58, 53, 46, 0.30) 50%, transparent 52.4%, transparent 96%, rgba(58, 53, 46, 0.10)),
    radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(120, 96, 60, 0.16) 100%),
    var(--paper);
  box-shadow: 0 10px 34px rgba(8, 14, 18, 0.55);
  color: var(--ink);
}
/* 栞(主人公の差し色は帖の栞にも docs/04) */
#albumBook::after {
  content: ''; position: absolute; right: 1.4vh; top: -0.5vh;   /* 本文の右余白内(本文に被る位置は不可・18巡目指摘4) */
  width: 2.2vh; height: 11vh; background: #a05248; opacity: 0.92;   /* 栞は退色した赤(帖全体の褪せた紙色と馴染ませる・19巡目指摘4) */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 87%, 0 100%);
  box-shadow: var(--shadow);
}
.alPage { flex: 1; padding: 4.4vh 4.2vh; position: relative; overflow: hidden; }
/* 右ページ=祖父の帖の便箋罫(空白を「書き込める紙」に見せる) */
.alPage.memo {
  background-image: repeating-linear-gradient(
    to bottom, transparent 0, transparent calc(3.6vh - 1px), rgba(58, 53, 46, 0.13) calc(3.6vh - 1px), rgba(58, 53, 46, 0.13) 3.6vh);
  background-position: 0 4.2vh;
}
#albumClose { margin-top: 1.6vh; font-size: var(--fs-op); color: var(--cloud-white); opacity: 0.9; }
.photoSlot {
  width: 34vh; height: 25.5vh; margin: 0 auto;
  background: rgba(58, 53, 46, 0.08);
  border: 1px dashed rgba(58, 53, 46, 0.4);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.photoSlot img { width: 100%; height: 100%; object-fit: cover; }
/* 貼られた写真=白フチ+わずかな傾き+落ち影+角留め(帖に「貼った」物理・19巡目指摘4) */
.photoSlot.filled {
  border-style: solid; padding: 6px 6px 22px; background: #fbf7ee;
  box-shadow: 2px 4px 10px rgba(58, 53, 46, 0.35);
  transform: rotate(-1.2deg);
}
.photoSlot.filled::before, .photoSlot.filled::after {
  content: ''; position: absolute; width: 3.4vh; height: 1.6vh;
  background: rgba(214, 202, 170, 0.85); box-shadow: 0 1px 2px rgba(58, 53, 46, 0.25);
}
.photoSlot.filled::before { left: -1vh; top: -0.6vh; transform: rotate(-45deg); }
.photoSlot.filled::after { right: -1vh; bottom: -0.6vh; transform: rotate(-45deg); }
.photoCaption {
  font-family: 'Yomogi', cursive; font-size: 2.3vh; color: rgba(58, 53, 46, 0.75);
  text-align: center; margin-top: 1.8vh; letter-spacing: 0.12em;
}
.slotEmpty { font-size: var(--fs-sub); color: rgba(58, 53, 46, 0.55); }
.memoClue {
  font-family: 'Yomogi', cursive; font-size: 3.0vh; line-height: 1.8;
  color: var(--ink); margin-top: 1vh; white-space: pre-wrap;
}
.memoAfter {
  font-family: 'Yomogi', cursive; font-size: 2.7vh; line-height: 1.8;
  color: rgba(58, 53, 46, 0); margin-top: 2.4vh; white-space: pre-wrap;
  transition: color 2000ms ease;      /* インクが浮かぶ(COEF.shutter.inkReveal) */
}
.memoAfter.ink { color: rgba(58, 53, 46, 0.92); }
.pageName { font-family: 'Yomogi', cursive; font-size: 2.6vh; letter-spacing: 0.1em; margin-bottom: 1.2vh; }
.pageNav {
  position: absolute; bottom: 2vh; font-size: var(--fs-op); cursor: pointer;
  color: rgba(58, 53, 46, 0.75); padding: 4px 14px; border: 1px solid transparent;
  transition: color var(--tr), border-color var(--tr);
}
.pageNav:hover { color: var(--ink); border-color: rgba(58, 53, 46, 0.4); }
.pageNav:active { transform: translateY(1px); }
.pageNav.dis { opacity: 0.25; pointer-events: none; }
#pgPrev { left: 3vh; } #pgNext { right: 3vh; }
#trackBtn {
  position: absolute; right: 4.2vh; bottom: 9vh; font-size: var(--fs-sub);
  padding: 6px 14px; cursor: pointer; color: var(--ink);
  border: 1px solid rgba(58, 53, 46, 0.55); background: transparent;
  transition: background var(--tr);
}
#trackBtn:hover { background: rgba(58, 53, 46, 0.1); }
#trackBtn.on { background: var(--ink); color: var(--paper); }
#mapCanvas { width: 100%; height: 100%; }
#snapGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vh; width: 100%; }
.snapCell { aspect-ratio: 4/3; background: rgba(58, 53, 46, 0.07); border: 1px dashed rgba(58, 53, 46, 0.3); overflow: hidden; }
.snapCell img { width: 100%; height: 100%; object-fit: cover; padding: 3px 3px 8px; background: #fbf7ee; }
#scrapNote {
  position: absolute; right: 5vh; bottom: 5vh; width: 15vh; height: 11vh;
  background: linear-gradient(160deg, #e8f0f2, #cfe0e6); transform: rotate(4deg);
  box-shadow: var(--shadow); border: 1px solid rgba(58, 53, 46, 0.2);
}

/* ============ タイトル ============ */
#titleScreen { background: transparent; z-index: 25; }
#titleUI { position: absolute; left: 12%; top: 28%; display: flex; flex-direction: column; }
#titleLogo {
  font-family: 'Yomogi', cursive; font-size: 12.5vh; line-height: 1.6;
  color: var(--cloud-white); text-shadow: 0 0 1px rgba(110, 168, 216, 0.8), 0 2px 10px rgba(20, 40, 60, 0.35);
}
#titleLogoSub { font-family: 'Yomogi', cursive; font-size: 3.4vh; letter-spacing: 0.6em; color: var(--cloud-white); margin-top: 0.6vh; }
#titleRule { width: 30vh; height: 2px; background: var(--cloud-white); opacity: 0.9; margin: 2.2vh 0 3.4vh; box-shadow: 0 0 1px rgba(110, 168, 216, 0.8); }
.tBtn {
  font-size: 3.2vh; padding: 0.65vh 0; margin-bottom: 2vh; text-align: left;
  color: var(--cloud-white); cursor: pointer; background: none; border: none;
  font-family: inherit; letter-spacing: 0.18em;
  text-shadow: 0 1px 6px rgba(20, 40, 60, 0.55);
  transition: letter-spacing var(--tr), opacity var(--tr); opacity: 0.92;
}
.tBtn:hover { letter-spacing: 0.3em; opacity: 1; }
.tBtn:active { opacity: 0.7; }
.tBtn:disabled { opacity: 0.35; cursor: default; letter-spacing: 0.18em; }
#langBtn {
  position: absolute; right: 4%; bottom: 4%;
  font-size: 2.2vh; line-height: 1.5; color: var(--cloud-white); background: none;
  border: var(--line-thin) solid rgba(244, 247, 247, 0.7); padding: 0.45vh 1.4vh;
  cursor: pointer; font-family: inherit; transition: background var(--tr);
}
#langBtn:hover { background: rgba(244, 247, 247, 0.15); }
#langBtn:active { transform: translateY(1px); }

/* ============ 操作一覧・ポーズ・設定・確認・リザルト ============ */
/* ポーズ・設定・操作: タイトルと同じ「面を持たない」左寄せリスト(docs/04 仕上げ層・細線HUD) */
.panelWrap { background: linear-gradient(90deg, rgba(12, 20, 26, 0.88) 0%, rgba(12, 20, 26, 0.55) 46%, rgba(12, 20, 26, 0.12) 100%); align-items: center; justify-content: flex-start; }
.panel {
  min-width: 0; max-width: 70vh; padding: 0; margin-left: 12%;
  background: none; border: none; box-shadow: none;
}
.panelTitle {
  font-size: 3.4vh; letter-spacing: 0.34em; margin-bottom: 3.6vh; font-weight: 400;
  border-bottom: 2px solid rgba(244, 247, 247, 0.85); padding-bottom: 1.4vh; width: 32vh;
  text-shadow: 0 1px 6px rgba(6, 14, 18, 0.6);
}
.ctlRow { display: flex; font-size: var(--fs-body); line-height: 2.1; text-shadow: 0 1px 4px rgba(6, 14, 18, 0.7); }
.ctlKey { width: 17vh; color: var(--water-shal); font-weight: 500; }
.pBtn {
  display: block; width: auto; min-width: 34vh; text-align: left;
  font-size: 3vh; font-family: inherit;
  color: var(--cloud-white); background: none;
  border: none; border-left: 3px solid transparent;
  padding: 0.9vh 0 0.9vh 1.8vh; margin-top: 1.1vh; cursor: pointer; letter-spacing: 0.16em;
  text-shadow: 0 1px 6px rgba(6, 14, 18, 0.6);
  transition: border-color var(--tr), letter-spacing var(--tr), opacity var(--tr);
  opacity: 0.85;
}
.pBtn:hover { border-left-color: var(--cloud-white); letter-spacing: 0.24em; opacity: 1; }
.pBtn:active { opacity: 0.65; }
.pBtn:disabled { opacity: 0.3; cursor: default; letter-spacing: 0.16em; border-left-color: transparent; }
.pBtn.primary { opacity: 1; border-left-color: rgba(158, 207, 232, 0.65); }
.pBtn.primary:hover { border-left-color: var(--water-shal); }
#volRow { display: flex; align-items: center; gap: 2vh; margin-top: 1.6vh; font-size: var(--fs-body); }
#volRange { flex: 1; accent-color: var(--water-shal); height: 4px; }
#confirmDialog .panel { text-align: center; }
#confirmMsg { font-size: var(--fs-op); margin-bottom: 1vh; }

#resultScreen { background: rgba(24, 32, 36, 0.9); align-items: center; justify-content: center; flex-direction: column; }
/* 紙(paper)上のボタンは ink 系で(白文字はコントラスト不足=監査14) */
#resultBook .pBtn { color: var(--ink); border-color: rgba(58, 53, 46, 0.6); background: rgba(58, 53, 46, 0.06); }
#resultBook .pBtn:hover { background: rgba(58, 53, 46, 0.14); }
#resultBook {
  width: 100vh; padding: 5vh 6vh; background:
    var(--paper-noise, none),
    radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(120, 96, 60, 0.16) 100%),
    var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 34px rgba(8, 14, 18, 0.55); text-align: center;
}
#rsTitle { font-family: 'Yomogi', cursive; font-size: 4.6vh; margin-bottom: 3.5vh; }
/* 数値は余白への手書き添え書き(事務表にしない) */
.rsRow { display: flex; justify-content: space-between; font-size: var(--fs-op); padding: 0.8vh 8vh; font-family: 'Yomogi', cursive; }
.rsVal { font-weight: 400; }
#rsPhotos { display: flex; justify-content: center; gap: 1.4vh; margin: 3vh 0; flex-wrap: wrap; }
#rsPhotos img { width: 12vh; height: 9vh; object-fit: cover; background: #fbf7ee; padding: 3px 3px 10px; box-shadow: var(--shadow); }
#rsBack { margin-top: 2vh; width: 40vh; margin-left: auto; margin-right: auto; }

/* エフェクト用 */
@keyframes scrapFall {
  0% { transform: translate(-50%, -80vh) rotate(-8deg); }
  100% { transform: translate(-50%, -50%) rotate(6deg); }
}
