/* 置いてみるAR — 白木 × グレー × マスタード。北欧のカタログの直線と余白 */
:root {
  --chalk: #f7f5f0;
  --paper: #ffffff;
  --stone: #ebe8e1;
  --stone-2: #dedad1;
  --oak: #d9b98c;
  --oak-d: #9c7444;
  --graphite: #2f3134;
  --slate: #5f6368;
  --mustard: #d9a21b;
  --mustard-ink: #7d5800;
  --rule: rgba(47, 49, 52, .12);
  --r: 6px;
  --r-sheet: 22px;
  --ease: cubic-bezier(.25, .8, .25, 1);
  --spring: cubic-bezier(.3, 1.45, .5, 1);
  --f-lat: 'Instrument Sans', 'IBM Plex Sans JP', sans-serif;
  --f-ja: 'IBM Plex Sans JP', 'Hiragino Sans', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --bar-h: 64px;
  --sb: env(safe-area-inset-bottom, 0px);
  --st: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
html { background: #e4e0d7; }
body { font-family: var(--f-ja); color: var(--graphite); background: linear-gradient(90deg, #e4e0d7 0 50%, #ddd8cd 50%) 0 0 / 28px 28px; line-break: strict; overflow: hidden; font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; flex: none; }
.nowrap { white-space: nowrap; }
.kp { word-break: keep-all; overflow-wrap: normal; }
.mono { font-family: var(--f-mono); font-feature-settings: "zero" 0; letter-spacing: -.01em; }
.nojs { padding: 40px 24px; font-size: 16px; }

.app { position: relative; height: 100dvh; width: 100%; max-width: 430px; margin: 0 auto; background: var(--chalk); overflow: hidden; isolation: isolate; }
@media (min-width: 600px) { .app { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 30px 70px rgba(60, 50, 30, .22); } }
.stage { position: absolute; inset: 0; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--chalk); }
.scr.in-r { animation: inR 300ms var(--ease) both; }
.scr.in-l { animation: inL 300ms var(--ease) both; }
.scr.in-f { animation: inF 220ms ease both; }
.scr.in-up { animation: inUp 380ms var(--ease) both; }
@keyframes inR { from { transform: translateX(36%); opacity: 0; } }
@keyframes inL { from { transform: translateX(-24%); opacity: 0; } }
@keyframes inF { from { opacity: 0; } }
@keyframes inUp { from { transform: scale(.96); opacity: 0; } }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-bottom: calc(var(--bar-h) + var(--sb) + 24px); }

/* ---------- 下のバー ---------- */
.bar { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--bar-h) + var(--sb)); padding: 0 12px var(--sb); display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; background: rgba(255, 255, 255, .97); box-shadow: 0 -1px 0 var(--rule); transition: transform 300ms var(--ease); }
.bar.hide { transform: translateY(110%); }
.bt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 56px; color: var(--slate); font-size: 11px; font-weight: 600; letter-spacing: .02em; transition: color 160ms, transform 120ms; }
.bt:active { transform: scale(.94); }
.bt.on { color: var(--graphite); }
.bt.on svg { color: var(--mustard-ink); }
.bt.ar { margin-top: -26px; gap: 4px; color: var(--graphite); }
.arc { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mustard); color: #1d1a12; box-shadow: 0 0 0 5px var(--chalk), 0 10px 22px -8px rgba(125, 88, 0, .7); transition: transform 200ms var(--spring); }
.arc svg { width: 30px; height: 30px; }
.bt.ar:active .arc { transform: scale(.9); }

/* ---------- 共通 ---------- */
.top { position: relative; z-index: 4; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: calc(56px + var(--st)); padding: var(--st) 8px 0 16px; background: var(--chalk); transition: box-shadow 200ms; }
.top.line { box-shadow: 0 1px 0 var(--rule); }
.mark { display: flex; align-items: baseline; gap: 6px; font-family: var(--f-ja); font-weight: 600; font-size: 18px; letter-spacing: .04em; }
.mark i { font-style: normal; font-family: var(--f-lat); font-weight: 700; font-size: 12px; letter-spacing: .08em; padding: 1px 6px; border-radius: 3px; background: var(--graphite); color: #fff; }
.ibtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); color: var(--graphite); transition: background 120ms, transform 120ms; }
.ibtn:active { background: var(--stone); transform: scale(.94); }
.ibtn.txt { width: auto; padding: 0 10px 0 4px; gap: 4px; font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: var(--r); font-weight: 600; font-size: 15px; letter-spacing: .02em; transition: transform 120ms var(--ease), filter 120ms; }
.btn:active { transform: scale(.97); filter: brightness(.95); }
.btn.mus { background: var(--mustard); color: #1d1a12; }
.btn.ink { background: var(--graphite); color: #fff; }
.btn.line { background: var(--paper); color: var(--graphite); box-shadow: inset 0 0 0 1px var(--stone-2); }
.btn.warn { background: #f6e5e0; color: #8f2f1d; }
.btn.wide { width: 100%; }
.h-xl { margin: 6px 16px 0; font-family: var(--f-ja); font-weight: 600; font-size: 26px; line-height: 1.4; letter-spacing: .02em; font-feature-settings: "palt"; }
.lead { margin: 6px 16px 0; font-size: 14px; color: var(--slate); word-break: normal; }
.label { font-family: var(--f-lat); font-weight: 600; font-size: 12px; letter-spacing: .14em; color: var(--mustard-ink); text-transform: uppercase; }
.sec { margin: 28px 16px 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-h h2 { margin: 0; font-size: 18px; font-weight: 600; font-feature-settings: "palt"; }

/* ---------- カタログ ---------- */
.cats { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 14px 12px 0; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 3; background: var(--chalk); }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--slate); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color 160ms, border-color 160ms; }
.cats button.on { color: var(--graphite); border-color: var(--mustard); font-weight: 600; }
.feature { position: relative; margin: 16px 16px 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2.1; background: var(--stone) url(/app-development/apps/a088/img/hero.webp) center / cover no-repeat; }
.feature .cap { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 14px; background: var(--paper); border-radius: var(--r); box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .35); }
.feature .cap b { display: block; font-size: 17px; font-weight: 600; }
.feature .cap .mono { font-size: 13px; color: var(--slate); }
.feature .cap .ct { min-width: 0; display: flex; flex-direction: column; }
.feature .cap .pr { color: var(--graphite); font-weight: 500; font-size: 15px; }
.feature .cap .btn { min-height: 44px; padding: 0 14px; font-size: 14px; white-space: nowrap; flex: none; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; margin: 22px 16px 0; }
.tile { position: relative; display: block; }
.tile .ph { position: relative; aspect-ratio: 1; border-radius: var(--r); background: linear-gradient(#efece6, #e3dfd6); overflow: hidden; transition: transform 160ms var(--ease); }
.tile:active .ph { transform: scale(.97); }
.tile .ph img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.tile .ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(transparent, rgba(150, 130, 100, .08)); }
.tile .ph .ld { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #a29d93; }
.tile .ph .ld svg { width: 36px; height: 36px; animation: spinY 1.4s linear infinite; }
@keyframes spinY { to { transform: rotateY(360deg); } }
.tile .go-ar { position: absolute; z-index: 2; right: 6px; top: 6px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--paper); color: var(--graphite); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.tile .go-ar:active { transform: scale(.92); }
.tile .nm { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.tile .nm b { font-size: 16px; font-weight: 600; white-space: nowrap; }
.tile .nm span { font-size: 12px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .dim { font-family: var(--f-mono); font-size: 12px; color: var(--slate); white-space: nowrap; }
.tile .pr { font-family: var(--f-mono); font-size: 15px; font-weight: 500; margin-top: 2px; }
.tile.big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: end; }
.tile.big .nm { margin-top: 0; flex-direction: column; gap: 0; }
.tile.big .nm b { font-size: 22px; }
.tile.big .note { font-size: 13px; color: var(--slate); margin: 6px 0 0; word-break: normal; }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 30px 16px 0; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.howto div { background: var(--chalk); padding: 14px 10px 12px; }
.howto svg { width: 26px; height: 26px; color: var(--mustard-ink); }
.howto b { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.howto span { display: block; font-size: 12px; color: var(--slate); line-height: 1.55; margin-top: 2px; }

/* ---------- 置いてみる ---------- */
.place { background: #000; }
.place .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place .bg.vid { transform: none; }
.place canvas.three { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.place .labels { position: absolute; inset: 0; pointer-events: none; }
.dimlab { position: absolute; left: 0; top: 0; padding: 3px 7px; border-radius: 4px; background: #fff; color: var(--graphite); font-family: var(--f-mono); font-size: 12px; font-weight: 500; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transform: translate(-50%, -50%); }
.dimlab.h { background: var(--graphite); color: #fff; }
.p-top { position: absolute; z-index: 5; top: calc(10px + var(--st)); left: 10px; right: 10px; display: flex; align-items: center; gap: 8px; }
.chipbtn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 22px; background: #fff; color: var(--graphite); font-weight: 600; font-size: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); white-space: nowrap; transition: transform 120ms; }
.chipbtn.round { width: 44px; padding: 0; justify-content: center; }
.chipbtn:active { transform: scale(.94); }
.chipbtn.on { background: var(--graphite); color: #fff; }
.chipbtn svg { width: 20px; height: 20px; }
.p-top .sp { flex: 1; }
.p-sum { position: absolute; z-index: 4; top: calc(62px + var(--st)); left: 10px; display: inline-flex; gap: 10px; align-items: center; padding: 6px 12px; border-radius: 6px; background: #fff; font-size: 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); }
.p-sum b { font-family: var(--f-mono); font-weight: 500; }
.p-hint { position: absolute; z-index: 4; left: 50%; top: calc(104px + var(--st)); transform: translateX(-50%); width: max-content; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 8px; background: var(--graphite); color: #fff; font-size: 14px; line-height: 1.5; pointer-events: none; transition: opacity 400ms; max-width: calc(100% - 20px); font-size: 13px; }
.p-hint svg { width: 30px; height: 30px; color: var(--mustard); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(8px) rotate(8deg); } }
.p-hint.gone { opacity: 0; }
.p-bottom { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 0 10px calc(10px + var(--sb)); display: flex; flex-direction: column; gap: 8px; }
.selcard { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 10px; background: #fff; box-shadow: 0 8px 26px -8px rgba(0, 0, 0, .35); animation: inUp 260ms var(--spring) both; }
.selcard .t { flex: 1; min-width: 0; }
.selcard .t b { display: flex; align-items: baseline; gap: 6px; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.selcard .t b small { font-size: 12px; font-weight: 500; color: var(--slate); overflow: hidden; text-overflow: ellipsis; }
.selcard .t .mono { font-size: 12px; color: var(--slate); white-space: nowrap; }
.selcard .acts { display: flex; gap: 2px; }
.selcard .acts button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--graphite); }
.selcard .acts button:active { background: var(--stone); }
.selcard .acts .del { color: #8f2f1d; }
.selcard .deg { font-family: var(--f-mono); font-size: 12px; color: var(--mustard-ink); margin-left: 8px; white-space: nowrap; }
.p-row { display: flex; gap: 8px; }
.p-row .btn { flex: 1; min-height: 52px; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .5); }
.p-row .btn.line { box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .5); }
.overlap { display: inline-flex; align-items: center; gap: 6px; align-self: center; padding: 6px 12px; border-radius: 6px; background: #8f2f1d; color: #fff; font-size: 13px; font-weight: 600; }
.calib { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .4); }
.calib input { flex: 1; accent-color: var(--mustard-ink); height: 30px; }
.nogl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 30px; text-align: center; background: rgba(247, 245, 240, .97); }
.nogl b { font-size: 18px; }
.nogl p { margin: 0; font-size: 14px; color: var(--slate); word-break: normal; }

/* トレイ（家具を追加） */
.tray { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; scroll-snap-type: x mandatory; }
.tray::-webkit-scrollbar { display: none; }
.tray button { flex: none; width: 96px; scroll-snap-align: start; text-align: left; }
.tray .th { width: 96px; height: 96px; border-radius: 8px; background: var(--stone); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform 140ms; }
.tray .th img { width: 86%; height: 86%; object-fit: contain; }
.tray button:active .th { transform: scale(.94); }
.tray b { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; }
.tray .mono { display: block; font-size: 11px; color: var(--slate); }

/* ---------- 家具詳細 ---------- */
.viewer { position: relative; margin: 0 16px; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: radial-gradient(80% 60% at 50% 70%, #f4f1eb, #e4e0d8); touch-action: pan-y; }
.viewer canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; }
.viewer img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 260ms; pointer-events: none; }
.viewer.show-photo img.photo { opacity: 1; }
.viewer .seg { position: absolute; z-index: 2; left: 10px; top: 10px; display: inline-grid; grid-auto-flow: column; padding: 3px; border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.viewer .seg button { min-height: 38px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--slate); display: inline-flex; align-items: center; gap: 4px; }
.viewer .seg button svg { width: 18px; height: 18px; }
.viewer .seg button.on { background: var(--graphite); color: #fff; }
.viewer .spin { position: absolute; z-index: 2; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 600; color: var(--slate); white-space: nowrap; transition: opacity 200ms; }
.viewer.show-photo .spin { opacity: 0; }
.viewer .spin svg { width: 16px; height: 16px; }
.viewer .credit { position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 4px; background: #fff; font-size: 11px; font-weight: 600; color: var(--slate); opacity: 0; transition: opacity 200ms; }
.viewer.show-photo .credit { opacity: 1; }
.d-head { margin: 18px 16px 0; }
.d-head .en { font-family: var(--f-lat); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--mustard-ink); }
.d-head h1 { margin: 2px 0 0; font-size: 24px; font-weight: 600; line-height: 1.35; font-feature-settings: "palt"; }
.d-head .row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; }
.d-head .price { font-family: var(--f-mono); font-size: 22px; font-weight: 500; }
.d-head .price small { font-family: var(--f-ja); font-size: 12px; color: var(--slate); margin-left: 4px; }
.d-head .dim { font-family: var(--f-mono); font-size: 13px; color: var(--slate); white-space: nowrap; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--stone-2); font-size: 14px; font-weight: 500; transition: box-shadow 160ms; }
.sw i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sw.on { box-shadow: inset 0 0 0 2px var(--graphite); }
.elev { padding: 14px 10px 6px; border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.elev svg { display: block; width: 100%; height: auto; }
.desc { margin: 0; font-size: 15px; line-height: 1.85; word-break: normal; }
.mats { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.mats li { padding: 12px 2px; border-bottom: 1px solid var(--rule); font-size: 14px; word-break: normal; }
.space { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r); background: #fbf3dc; font-size: 14px; line-height: 1.7; word-break: normal; }
.space svg { width: 28px; height: 28px; color: var(--mustard-ink); }
.dock { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 10px 16px calc(10px + var(--sb)); background: rgba(255, 255, 255, .98); box-shadow: 0 -1px 0 var(--rule); }
.dock .btn { flex: 1; min-height: 52px; }
.dock .pr { font-family: var(--f-mono); font-size: 16px; font-weight: 500; white-space: nowrap; }

/* ---------- 保存した配置 ---------- */
.saves { display: grid; gap: 14px; margin: 18px 16px 0; }
.save { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 10px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); transition: transform 140ms; }
.save:active { transform: scale(.985); }
.save .thumb { width: 112px; height: 168px; border-radius: 6px; background: var(--stone) center / cover no-repeat; position: relative; overflow: hidden; }
.save .thumb .ld { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #a29d93; }
.save .info { display: flex; flex-direction: column; min-width: 0; padding: 2px 0; }
.save .room { font-size: 12px; font-weight: 600; color: var(--mustard-ink); letter-spacing: .06em; }
.save h3 { margin: 2px 0 0; font-size: 17px; font-weight: 600; line-height: 1.4; word-break: normal; word-break: auto-phrase; }
.save .date { font-family: var(--f-mono); font-size: 12px; color: var(--slate); }
.save .items { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0; }
.save .items span { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--stone); white-space: nowrap; }
.save .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 8px; }
.save .foot b { font-family: var(--f-mono); font-size: 16px; font-weight: 500; }
.save .foot button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: #8f2f1d; }
.save .foot button:active { background: #f6e5e0; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 26px 0; }
.empty .art { width: 200px; height: 260px; border-radius: 8px; background: var(--stone) url(/app-development/apps/a088/img/room-washitsu.webp) center / cover; position: relative; }
.empty .art::after { content: ""; position: absolute; left: 50%; top: 66%; width: 110px; height: 34px; transform: translate(-50%, -50%); border: 2px dashed #fff; border-radius: 50%; }
.empty h3 { margin: 18px 0 4px; font-size: 18px; font-weight: 600; }
.empty p { margin: 0 0 16px; font-size: 14px; color: var(--slate); word-break: normal; }

/* ---------- アプリについて ---------- */
.read { margin: 0 16px; }
.read h2 { margin: 26px 0 8px; font-size: 18px; font-weight: 600; }
.read p { margin: 0 0 10px; font-size: 15px; line-height: 1.85; word-break: normal; }
.note { padding: 14px 16px; border-radius: var(--r); background: #fbf3dc; color: #3d2c00; font-size: 14px; line-height: 1.8; word-break: normal; }
.techs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.techs li { padding: 5px 10px; border-radius: 4px; background: var(--stone); font-size: 13px; font-weight: 500; }
.about-art { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }

/* ---------- シート・トースト ---------- */
.sheet-root { position: absolute; inset: 0; z-index: 40; }
.scrim { position: absolute; inset: 0; background: rgba(29, 31, 33, .42); animation: inF 200ms ease both; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; overflow-y: auto; padding: 8px 18px calc(18px + var(--sb)); border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: var(--chalk); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); animation: sheetUp 340ms var(--ease) both; }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: #c9c4b8; margin: 0 auto 14px; }
.sheet h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.sheet p { margin: 0 0 14px; font-size: 14px; color: var(--slate); word-break: normal; }
.sheet .btns { display: grid; gap: 10px; margin-top: 14px; }
.sheet .rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet .rooms button { text-align: left; }
.sheet .rooms .rimg { display: block; aspect-ratio: 2 / 3; border-radius: 6px; background: var(--stone) center / cover; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 160ms; }
.sheet .rooms button.on .rimg { box-shadow: 0 0 0 3px var(--mustard); }
.sheet .rooms b { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; }
.sheet .field { display: block; margin: 4px 0 0; }
.sheet .field span { display: block; font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.sheet .field input { width: 100%; height: 50px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--stone-2); background: #fff; font-size: 16px; outline: none; }
.sheet .field input:focus { border-color: var(--graphite); }
.sheet .err { color: #8f2f1d; font-size: 13px; font-weight: 600; margin-top: 6px; min-height: 1em; }
.sheet .camwhy { display: grid; gap: 10px; margin: 10px 0 4px; padding: 0; list-style: none; }
.sheet .camwhy li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; word-break: normal; }
.sheet .camwhy svg { width: 20px; height: 20px; color: var(--mustard-ink); margin-top: 2px; }
.sheet-root.out .scrim { animation: outF 200ms ease both; }
.sheet-root.out .sheet { animation: sheetDown 220ms ease both; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes outF { to { opacity: 0; } }
.toast { position: absolute; z-index: 60; left: 50%; bottom: calc(var(--bar-h) + var(--sb) + 18px); transform: translate(-50%, 30px); opacity: 0; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 8px; background: var(--graphite); color: #fff; font-size: 14px; line-height: 1.55; pointer-events: none; transition: transform 260ms var(--spring), opacity 200ms; word-break: normal; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.high { bottom: auto; top: calc(116px + var(--st)); }
.splash { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--chalk); transition: opacity 300ms; }
.splash img { width: 108px; height: 108px; border-radius: 24px; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .4); }
.splash b { font-size: 20px; font-weight: 600; letter-spacing: .1em; }
.splash.out { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}
