/* 白樫台テラスレジデンス（架空）: 炭色の地に温かい白、強調は真鍮色 1 色。大きな明朝と細いゴシック。動きはゆっくり止まる */
:root {
  --bg: #121110;
  --bg-2: #1a1917;
  --ink: #efe9df;
  --sub: rgba(239, 233, 223, .64);
  --faint: rgba(239, 233, 223, .38);
  --line: rgba(239, 233, 223, .16);
  --brass: #b99a64;
  --brass-hi: #d4b985;
  --red: #e0483a;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ease: cubic-bezier(.22, .61, .21, 1);
  --slow: cubic-bezier(.65, 0, .35, 1);
  --gut: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { font-family: var(--gothic); font-weight: 300; letter-spacing: .04em; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 1px solid var(--brass-hi); outline-offset: 3px; }
a { color: var(--brass-hi); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.eyebrow { margin: 0; font-size: 11px; letter-spacing: .32em; color: var(--brass); font-weight: 400; }
.fine { font-size: 12px; color: var(--faint); }

/* ---------------------------------------------------------------- 読み込み画面 */
.loader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--bg); transition: opacity 1.1s var(--slow), visibility 1.1s; }
body:not([data-screen="loader"]) .loader { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; width: min(360px, 80vw); }
.loader-mark { width: 120px; height: 80px; margin: 0 auto 28px; display: block; }
.loader-mark path { fill: none; stroke: var(--brass); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--slow) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader-name { margin: 0; font-family: var(--mincho); font-size: 22px; letter-spacing: .22em; opacity: 0; animation: rise 1.4s var(--ease) .9s forwards; }
.loader-en { margin: 6px 0 0; font-size: 10px; letter-spacing: .4em; color: var(--sub); opacity: 0; animation: rise 1.4s var(--ease) 1.2s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.loader-bar { margin: 30px auto 0; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease); }

/* ---------------------------------------------------------------- ヘッダー */
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 20px; padding: 18px var(--gut); pointer-events: none; }
.top > * { pointer-events: auto; }
.mark { display: flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.mark b { font-family: var(--mincho); font-weight: 600; font-size: 19px; letter-spacing: .18em; }
.mark span { font-size: 9px; letter-spacing: .36em; color: var(--sub); }
.top-note { margin: 0 0 0 auto; font-size: 11px; color: var(--sub); letter-spacing: .12em; }
.top-link { white-space: nowrap; font-size: 12px; letter-spacing: .2em; padding: 6px 0; border-bottom: 1px solid var(--line); transition: border-color .4s; }
.top-link:hover { border-color: var(--brass); }

/* ---------------------------------------------------------------- 画面の切り替え */
.screen { position: fixed; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--slow), visibility 1.2s; }
body[data-screen="hero"] #hero, body[data-screen="loader"] #hero, body[data-screen="select"] #select, body[data-screen="tour"] #tour { opacity: 1; visibility: visible; }
body[data-screen="loader"] #hero { opacity: 0; }

/* ---------------------------------------------------------------- 1. スライドショー */
.slides { position: absolute; inset: 0; overflow: hidden; background: #000; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 2.2s var(--slow); }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.slide.on { opacity: 1; }
.slide.on img, .slide.was img { animation: drift 9s linear forwards; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.13) translate(-1%, -.6%); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 9, 8, .74) 0%, rgba(10, 9, 8, .38) 42%, rgba(10, 9, 8, 0) 70%), linear-gradient(0deg, rgba(10, 9, 8, .6) 0%, rgba(10, 9, 8, 0) 40%), linear-gradient(180deg, rgba(10, 9, 8, .45) 0%, rgba(10, 9, 8, 0) 18%); }
.hero-copy { position: absolute; left: var(--gut); bottom: clamp(48px, 11vh, 120px); max-width: 640px; }
.hero-copy > * { opacity: 0; transform: translateY(14px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
body[data-screen="hero"] .hero-copy > * { opacity: 1; transform: none; }
.hero-copy > :nth-child(2) { transition-delay: .15s; } .hero-copy > :nth-child(3) { transition-delay: .3s; } .hero-copy > :nth-child(4) { transition-delay: .45s; }
body.leaving .hero-copy > *, body.leaving .hero-index { opacity: 0; transform: translateY(-10px); transition-delay: 0s; transition-duration: .7s; }
.hero-title { margin: 14px 0 18px; font-family: var(--mincho); font-weight: 500; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.18; letter-spacing: .08em; }
.hero-title span { display: block; }
.hero-title span:last-child { font-size: .62em; letter-spacing: .14em; }
.hero-lead { margin: 0 0 34px; font-size: clamp(13px, 1.25vw, 15px); color: var(--sub); line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn-brass { position: relative; display: inline-flex; align-items: center; gap: 18px; padding: 16px 30px 16px 34px; border: 1px solid var(--brass); color: var(--ink); font-size: 14px; letter-spacing: .3em; overflow: hidden; transition: color .6s var(--ease); }
.btn-brass::before { content: ""; position: absolute; inset: 0; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); z-index: -1; }
.btn-brass:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-brass:hover { color: #15120d; }
.btn-brass { isolation: isolate; }
.btn-brass i { width: 34px; height: 1px; background: currentColor; position: relative; }
.btn-brass i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.load-chip { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--sub); letter-spacing: .14em; }
.load-chip i { width: 46px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.load-chip i::after { content: ""; position: absolute; inset: 0; background: var(--brass); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease); }
.load-chip.done i::after { background: var(--brass-hi); }
.hero-index { position: absolute; right: var(--gut); bottom: clamp(48px, 11vh, 120px); text-align: right; transition: opacity .7s; }
.hero-cap { margin: 0 0 14px; display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; font-size: 13px; }
.hero-cap b { font-family: var(--mincho); font-weight: 500; font-size: 22px; color: var(--brass-hi); }
.hero-cap small { font-size: 9px; letter-spacing: .32em; color: var(--sub); }
.ticks { display: flex; gap: 8px; justify-content: flex-end; }
.ticks i { width: 28px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.ticks i.on::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; animation: tick 7s linear forwards; }
@keyframes tick { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------------------------------------------------------------- 2. エントランスへ */
.passage { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; opacity: 0; background: #000; }
.passage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform-origin: 50% 58%; }
.passage-word { position: absolute; left: 0; right: 0; top: 50%; margin: 0; text-align: center; font-family: var(--mincho); font-size: clamp(14px, 1.6vw, 18px); letter-spacing: .6em; color: var(--ink); opacity: 0; transform: translateY(-50%); }
.passage.run { opacity: 1; }
.passage.run #pass-a { animation: passA 2.6s var(--slow) forwards; }
.passage.run #pass-b { animation: passB 3.2s var(--slow) 1.9s forwards; }
.passage.run .passage-word { animation: word 2.4s var(--ease) 2.6s forwards; }
@keyframes passA { 0% { opacity: 1; transform: scale(1.0); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(1.9); filter: blur(2px); } }
@keyframes passB { 0% { opacity: 0; transform: scale(1.12); } 30% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes word { 0% { opacity: 0; letter-spacing: .9em; } 40% { opacity: 1; } 100% { opacity: 0; letter-spacing: .6em; } }
.passage.out { transition: opacity 1s; opacity: 0; }

/* ---------------------------------------------------------------- 3. 間取りを選ぶ */
.select { display: grid; place-items: center; overflow-y: auto; background: radial-gradient(ellipse at 50% 30%, #1d1b18 0%, var(--bg) 70%); }
.select-inner { width: min(1120px, 100%); padding: 96px var(--gut) 48px; text-align: center; }
.section-title { margin: 10px 0 40px; font-family: var(--mincho); font-weight: 500; font-size: clamp(26px, 3vw, 38px); letter-spacing: .2em; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px); }
.plan-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 26px 26px; border: 1px solid var(--line); background: rgba(255, 255, 255, .015); text-align: center; transition: border-color .6s var(--ease), background .6s var(--ease), transform .8s var(--ease); }
.select .plan-card { opacity: 0; transform: translateY(18px); }
body[data-screen="select"] .plan-card { opacity: 1; transform: none; transition: opacity 1.2s var(--ease) .3s, transform 1.2s var(--ease) .3s, border-color .6s, background .6s; }
body[data-screen="select"] .plan-card.is-soon { transition-delay: .5s; }
button.plan-card:hover { border-color: var(--brass); background: rgba(185, 154, 100, .05); }
.plan-type { font-size: 10px; letter-spacing: .4em; color: var(--brass); }
.plan-figure { width: 100%; max-width: 440px; aspect-ratio: 660 / 550; display: block; }
.plan-figure img { width: 100%; height: 100%; }
.soon-figure { color: rgba(239, 233, 223, .2); }
.soon-figure svg { width: 100%; height: 100%; }
.plan-name { font-family: var(--mincho); font-size: 34px; letter-spacing: .12em; line-height: 1.2; margin-top: 6px; }
.plan-meta { font-size: 12px; color: var(--sub); }
.plan-go { margin-top: 10px; display: inline-flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .24em; color: var(--brass-hi); }
.plan-go i { width: 26px; height: 1px; background: currentColor; transition: width .6s var(--ease); }
button.plan-card:hover .plan-go i { width: 44px; }
.is-soon { cursor: not-allowed; }
.is-soon .plan-name, .is-soon .plan-meta { opacity: .45; }
.plan-soon { margin-top: 10px; font-size: 12px; letter-spacing: .4em; padding: 4px 14px; border: 1px solid var(--line); color: var(--sub); }

/* ---------------------------------------------------------------- 4〜7. 内見 */
.tour { background: var(--bg); }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.tour-veil { position: absolute; inset: 0; background: var(--bg); pointer-events: none; transition: opacity 1.4s var(--slow); }
.tour-veil.off { opacity: 0; }
.tour .ui { transition: opacity .9s var(--ease), transform .9s var(--ease); }
body:not(.guided) .tour-caption, body:not(.guided) .rail, body:not(.guided) .tour-hint, body:not(.guided) .tour-actions { opacity: 0; pointer-events: none; }
body:not(.guided):not(.free) .minimap { opacity: 0; }
.tour-caption { position: absolute; left: var(--gut); bottom: clamp(28px, 7vh, 72px); max-width: min(760px, 62vw); pointer-events: none; text-shadow: 0 1px 18px rgba(0, 0, 0, .45); transition: opacity .9s var(--ease); }
.tc-no { margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--sub); }
.tc-no b { font-family: var(--mincho); font-weight: 500; font-size: 18px; color: var(--brass-hi); }
.tc-no small { margin-left: 10px; font-size: 9px; letter-spacing: .34em; }
.tc-name { margin: 0; font-family: var(--mincho); font-weight: 500; font-size: clamp(26px, 4vw, 50px); white-space: nowrap; letter-spacing: .1em; line-height: 1.25; }
.tc-size { margin: 6px 0 0; font-size: 14px; letter-spacing: .16em; color: var(--brass-hi); min-height: 1em; }
.tc-size:empty { display: none; }
.tc-note { margin: 10px 0 0; font-size: 14px; color: var(--ink); opacity: .86; line-height: 1.9; }
.minimap { position: absolute; top: 72px; right: var(--gut); width: clamp(150px, 20vw, 280px); margin: 0; padding: 10px; background: rgba(12, 11, 10, .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); transition: opacity .9s var(--ease), width .8s var(--ease); }
.minimap img, .minimap svg { width: 100%; height: auto; display: block; }
.minimap svg { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); overflow: visible; }
.mm-dot { fill: var(--red); stroke: #fff; stroke-width: 2.5; }
.mm-cone { fill: rgba(224, 72, 58, .32); stroke: rgba(224, 72, 58, .8); stroke-width: 1.2; }
body.free.dims .minimap { width: clamp(260px, 34vw, 460px); }
.dims-layer { opacity: 0; transition: opacity .6s; }
body.dims .dims-layer { opacity: 1; }
.dims-layer rect { fill: rgba(185, 154, 100, .08); stroke: var(--brass-hi); stroke-width: 1.2; stroke-dasharray: 4 3; }
.dims-layer text { fill: var(--brass-hi); font-family: var(--gothic); font-size: 24px; font-weight: 500; text-anchor: middle; paint-order: stroke; stroke: rgba(12, 11, 10, .85); stroke-width: 4px; }
.rail { position: absolute; right: var(--gut); top: 50%; transform: translateY(-20%); margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; transition: opacity .9s; }
.rail li { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 11px; color: var(--sub); }
.rail button { display: flex; align-items: center; gap: 10px; color: inherit; }
.rail span { opacity: 0; transform: translateX(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); white-space: nowrap; }
.rail:hover span, .rail li.on span { opacity: 1; transform: none; }
.rail i { width: 14px; height: 1px; background: var(--faint); transition: width .6s var(--ease), background .6s; }
.rail li.on i { width: 34px; background: var(--brass-hi); }
.rail li.on { color: var(--ink); }
.tour-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .24em; color: var(--sub); transition: opacity .9s; pointer-events: none; }
.mouse { width: 18px; height: 28px; border: 1px solid var(--faint); border-radius: 10px; position: relative; }
.mouse i { position: absolute; left: 50%; top: 6px; width: 2px; height: 5px; margin-left: -1px; background: var(--brass-hi); animation: wheel 2.2s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
.tour-actions { position: absolute; right: var(--gut); bottom: clamp(28px, 7vh, 72px); display: flex; gap: 12px; transition: opacity .9s; }
.btn-ghost { padding: 10px 18px; border: 1px solid var(--line); background: rgba(12, 11, 10, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; letter-spacing: .18em; transition: border-color .5s, background .5s; display: inline-flex; align-items: baseline; gap: 8px; }
.btn-ghost:hover { border-color: var(--brass); }
.btn-ghost small { font-size: 9px; color: var(--brass-hi); letter-spacing: .1em; border: 1px solid rgba(185, 154, 100, .5); padding: 0 5px; }
.btn-ghost[aria-pressed="true"] { border-color: var(--brass); background: rgba(185, 154, 100, .16); }
.tour-end { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; padding: 40px 48px; background: rgba(12, 11, 10, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); animation: fade 1.2s var(--ease); width: min(560px, calc(100% - 32px)); }
.te-title { margin: 10px 0 26px; font-family: var(--mincho); font-size: clamp(24px, 3vw, 34px); letter-spacing: .14em; }
.te-actions { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.free-ui { position: absolute; inset: 0; pointer-events: none; }
.free-ui > * { pointer-events: auto; }
.free-help { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); margin: 0; font-size: 12px; letter-spacing: .14em; color: var(--sub); white-space: nowrap; pointer-events: none; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.free-help .touch { display: none; }
.free-tools { position: absolute; left: var(--gut); bottom: clamp(28px, 7vh, 72px); display: flex; gap: 12px; flex-wrap: wrap; }
.dims-card { position: absolute; left: var(--gut); top: 76px; width: min(320px, calc(100% - 2 * var(--gut))); padding: 18px 20px; background: rgba(12, 11, 10, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.dims-card .eyebrow small { font-size: 9px; border: 1px solid rgba(185, 154, 100, .5); padding: 0 5px; margin-left: 6px; letter-spacing: .1em; }
.dc-name { margin: 8px 0 0; font-family: var(--mincho); font-size: 22px; letter-spacing: .1em; }
.dc-val { margin: 2px 0 8px; font-size: 15px; color: var(--brass-hi); letter-spacing: .08em; }
.dc-note { margin: 0; font-size: 11px; color: var(--sub); line-height: 1.8; }
.toast { position: absolute; left: 50%; top: 84px; transform: translate(-50%, -6px); margin: 0; padding: 8px 16px; font-size: 12px; background: rgba(12, 11, 10, .7); border: 1px solid var(--line); opacity: 0; transition: opacity .4s, transform .4s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.tour-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: min(320px, 80vw); font-size: 13px; color: var(--sub); }
.tour-loading b { color: var(--ink); font-weight: 400; }

/* ---------------------------------------------------------------- 8. 物件概要 */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(8, 7, 6, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; justify-content: flex-end; animation: fade .6s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.sheet-body { position: relative; width: min(620px, 100%); height: 100%; overflow-y: auto; background: var(--bg-2); padding: 64px clamp(20px, 4vw, 52px) 48px; border-left: 1px solid var(--line); animation: slide .8s var(--ease); font-size: 13px; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.sheet-close { position: absolute; top: 18px; right: 20px; width: 40px; height: 40px; font-size: 22px; color: var(--sub); }
.sheet .section-title { text-align: left; margin-bottom: 26px; }
.outline { margin: 0 0 34px; border-top: 1px solid var(--line); }
.outline div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.outline dt { color: var(--sub); }
.outline dd { margin: 0; }
.sub-title { margin: 30px 0 10px; font-family: var(--mincho); font-weight: 500; font-size: 17px; letter-spacing: .14em; }
.sheet p { color: rgba(239, 233, 223, .82); }
.credits { margin: 0; padding-left: 1.2em; font-size: 12px; color: var(--sub); line-height: 1.9; }
.copy { margin-top: 30px; font-size: 11px; color: var(--faint) !important; }

/* ---------------------------------------------------------------- 狭い画面 */
@media (max-width: 760px) {
  .top { padding: 14px 16px; gap: 12px; }
  .mark span { display: none; }
  .top-note { font-size: 10px; letter-spacing: .02em; line-height: 1.4; text-align: right; }
  .hero-shade { background: linear-gradient(0deg, rgba(10, 9, 8, .86) 0%, rgba(10, 9, 8, .5) 46%, rgba(10, 9, 8, .1) 75%), linear-gradient(180deg, rgba(10, 9, 8, .5) 0%, rgba(10, 9, 8, 0) 20%); }
  .hero-copy { left: 16px; right: 16px; bottom: 92px; }
  .hero-index { left: 16px; right: 16px; bottom: 28px; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .hero-cap { margin: 0; }
  .ticks i { width: 16px; }
  .eyebrow { font-size: 10px; letter-spacing: .2em; }
  .btn-brass { padding: 14px 22px 14px 26px; }
  .plans { grid-template-columns: 1fr; }
  .plan-card { padding: 20px 16px; }
  .plan-figure { max-width: 300px; }
  .soon-figure { max-width: 180px; }
  .select-inner { padding-top: 76px; }
  .minimap { top: 60px; right: 12px; width: 132px; padding: 6px; }
  .minimap svg { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
  body.free.dims .minimap { width: min(300px, calc(100% - 24px)); }
  .rail { display: none; }
  .tour-caption { left: 16px; right: 16px; max-width: none; bottom: 84px; }
  .tc-note { font-size: 13px; }
  .tc-name { font-size: min(30px, 7.4vw); }
  .tour-actions { left: 16px; right: 16px; bottom: 22px; justify-content: space-between; }
  .tour-hint { bottom: 70px; display: none; }
  .free-help { bottom: 76px; white-space: normal; width: calc(100% - 32px); text-align: center; }
  .free-help .desk { display: none; } .free-help .touch { display: inline; }
  .free-tools { left: 16px; right: 16px; bottom: 22px; justify-content: space-between; }
  .dims-card { top: auto; bottom: 120px; left: 16px; }
  body.free.dims .dims-card { bottom: 118px; }
  .outline div { grid-template-columns: 7em 1fr; }
}
@media (hover: none) { .free-help .desk { display: none; } .free-help .touch { display: inline; } }
@media (prefers-reduced-motion: reduce) {
  .slide.on img, .slide.was img { animation: none; }
  .loader-mark path { animation-duration: .01s; }
}
/* 内見の画面: 文字が読めるよう上下を少し暗く */
.tour > :not(#stage) { z-index: 2; }
.tour > .tour-veil { z-index: 3; }
.tour::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(10, 9, 8, .62) 0%, rgba(10, 9, 8, 0) 36%), linear-gradient(180deg, rgba(10, 9, 8, .42) 0%, rgba(10, 9, 8, 0) 15%); transition: opacity .9s; }
body:not(.guided):not(.free) .tour::after { opacity: 0; }

.top-note .sp { display: none; }
@media (max-width: 760px) { .top-note .sp { display: inline; } .top-note .sep { display: none; } }

@media (max-width: 760px) { .te-title { font-size: 22px; white-space: nowrap; letter-spacing: .1em; } .tour-end { padding: 28px 20px; } }

/* 案内中の見回しと、前・次のボタン */
#stage { cursor: grab; }
#stage.grabbing { cursor: grabbing; }
body.free #stage { cursor: crosshair; }
.tour-hint .touch { display: none; }
@media (hover: none) { .tour-hint .desk { display: none; } .tour-hint .touch { display: inline; } }
.stepper { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); display: flex; gap: 10px; transition: opacity .9s; }
.stepper button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: rgba(12, 11, 10, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; transition: border-color .4s, opacity .4s; }
.stepper button:hover:not(:disabled) { border-color: var(--brass); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.look-reset { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); }
body:not(.guided) .stepper, body:not(.guided) .look-reset { opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  .tour-hint { display: flex; bottom: auto; top: 56%; font-size: 10px; letter-spacing: .1em; white-space: nowrap; }
  .tour-hint .mouse { display: none; }
  .stepper { left: auto; right: 12px; bottom: auto; top: 46%; transform: none; flex-direction: column; }
  .look-reset { top: 64px; left: 16px; transform: none; }
}

body.free #stage.over-door { cursor: pointer; }
@media (max-width: 760px) { .free-tools .btn-ghost { padding: 9px 12px; font-size: 11px; letter-spacing: .1em; } }
@media (max-width: 760px) {
  .free-tools { flex-wrap: nowrap; gap: 6px; bottom: 18px; }
  .free-tools .btn-ghost { padding: 8px 9px; font-size: 10.5px; letter-spacing: .04em; white-space: nowrap; }
  .free-tools .btn-ghost small { display: none; }
  .free-help { bottom: 66px; font-size: 11px; line-height: 1.6; }
}

/* ---------------------------------------------------------------- 2026-11-28 日野「インジケーターをもう少し目立たせたい」「ガラスのような少し透明な枠の中に文字を」 */
:root { --glass: rgba(18, 17, 15, .38); --glass-edge: rgba(255, 255, 255, .16); --glass-hi: rgba(255, 255, 255, .08); }
.glass, .tour-caption, .rail {
  background: linear-gradient(140deg, var(--glass-hi), rgba(255, 255, 255, .02) 55%), var(--glass);
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--glass-edge); border-radius: 6px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .10);
}
/* 部屋名と説明の板 */
.tour-caption { width: fit-content; max-width: min(640px, 58vw); padding: 22px 30px 24px 28px; text-shadow: none; }
.tour-caption::before { content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 2px; background: var(--brass); border-radius: 2px; }
.tc-no { color: rgba(239, 233, 223, .78); }
.tc-no small { color: rgba(239, 233, 223, .7); }
.tc-name { font-size: clamp(26px, 3.4vw, 44px); }
.tc-size { color: var(--brass-hi); font-size: 15px; }
.tc-note { font-size: 15.5px; font-weight: 400; opacity: 1; color: #f6f1e8; letter-spacing: .06em; line-height: 1.85; margin-top: 12px; }
/* 場所の一覧 (右) */
.rail { top: calc(72px + clamp(150px, 20vw, 280px) * .833 + 40px); transform: none; padding: 14px 16px 14px 18px; gap: 4px; }
.rail li { font-size: 12.5px; color: rgba(239, 233, 223, .62); letter-spacing: .08em; }
.rail li.done { color: rgba(239, 233, 223, .82); }
.rail button { padding: 3px 0; gap: 12px; }
.rail span { opacity: 1; transform: none; }
.rail em { font-style: normal; font-family: var(--mincho); font-size: 11px; color: rgba(239, 233, 223, .45); width: 1.6em; text-align: right; order: -1; }
.rail i { width: 16px; height: 2px; border-radius: 1px; background: rgba(239, 233, 223, .32); }
.rail li.done i { background: rgba(185, 154, 100, .7); }
.rail li.on { color: #fff; }
.rail li.on span { font-weight: 500; }
.rail li.on em { color: var(--brass-hi); }
.rail li.on i { width: 30px; background: var(--brass-hi); box-shadow: 0 0 10px rgba(212, 185, 133, .7); }
.rail button:hover { color: #fff; }
@media (max-height: 820px) { .rail { gap: 0; padding: 10px 14px; } .rail button { padding: 1px 0; } .rail li { font-size: 11.5px; } }
@media (max-height: 680px) { .rail { display: none; } }
@media (max-width: 760px) {
  .tour-caption { left: 12px; right: 64px; max-width: none; width: auto; bottom: 74px; padding: 16px 18px 18px 18px; }
  .tour-caption::before { top: 16px; bottom: 16px; }
  .tc-note { font-size: 13.5px; line-height: 1.75; }
}
.rail li { justify-content: stretch; }
.rail button { display: grid; grid-template-columns: 1.9em auto 30px; align-items: center; width: 100%; text-align: left; }
.rail i { justify-self: end; }
.rail { gap: 0; }
.rail button { padding: 0; line-height: 1.6; }
@media (max-height: 820px) { .rail { padding: 10px 14px; top: calc(64px + clamp(150px, 20vw, 280px) * .833 + 30px); } .rail button { line-height: 1.35; } .rail li { font-size: 11px; } }
@media (max-width: 760px) { .tc-name { font-size: min(24px, 5.6vw); letter-spacing: .06em; } }
.rail li.on button { background: linear-gradient(90deg, rgba(185, 154, 100, .22), rgba(185, 154, 100, .04)); margin: 0 -8px; padding: 0 8px; width: calc(100% + 16px); border-radius: 3px; }

/* ---------------------------------------------------------------- 2026-11-28 日野「移動中は消して。着いたら金色の線からガラスの四角が左から右にニョキっと生える。消す時は線に収納されて消える」 */
.tour-caption { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; border-radius: 0; width: fit-content; max-width: min(640px, 58vw); }
.tour-caption::before { content: none; }
.tc-card {
  position: relative; padding: 22px 30px 24px 30px;
  background: linear-gradient(140deg, var(--glass-hi), rgba(255, 255, 255, .02) 55%), var(--glass);
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--glass-edge); border-left: 0; border-radius: 0 6px 6px 0;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .10);
  clip-path: inset(-40px 100% -40px 0);
  /* しまうとき: 文字が先に消え、板が線へ縮む */
  transition: clip-path .5s cubic-bezier(.55, 0, .75, .2) .14s;
}
.tc-card > * { opacity: 0; transform: translateX(-14px); transition: opacity .18s ease, transform .18s ease; }
.tc-line {
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px; z-index: 2; border-radius: 2px;
  background: linear-gradient(180deg, rgba(212, 185, 133, 0), var(--brass-hi) 12%, var(--brass-hi) 88%, rgba(212, 185, 133, 0));
  box-shadow: 0 0 12px rgba(212, 185, 133, .55);
  transform: scaleY(0); transform-origin: 50% 50%;
  transition: transform .3s cubic-bezier(.55, 0, .75, .2) .6s;           /* 板が収まってから線が消える */
}
/* 出るとき: 線が伸びる → 板が線から右へ伸びる → 文字が順に出る */
.tour-caption.is-in .tc-line { transform: scaleY(1); transition: transform .38s cubic-bezier(.22, .61, .21, 1) 0s; }
.tour-caption.is-in .tc-card { clip-path: inset(-40px -40px -40px 0); transition: clip-path .7s cubic-bezier(.22, .61, .21, 1) .3s; }
.tour-caption.is-in .tc-card > * { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.tour-caption.is-in .tc-card > :nth-child(1) { transition-delay: .55s; }
.tour-caption.is-in .tc-card > :nth-child(2) { transition-delay: .62s; }
.tour-caption.is-in .tc-card > :nth-child(3) { transition-delay: .69s; }
.tour-caption.is-in .tc-card > :nth-child(4) { transition-delay: .76s; }
@media (max-width: 760px) {
  .tour-caption { left: 12px; right: 64px; max-width: none; width: auto; bottom: 74px; padding: 0; }
  .tc-card { padding: 16px 18px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-card, .tc-line, .tc-card > * { transition-duration: .01s !important; transition-delay: 0s !important; }
}
