* { box-sizing: border-box; }
:root { font-family: "Yu Gothic UI", "Hiragino Sans", system-ui, sans-serif; color: #173631; background: #faf8f1; }
body { margin: 0; height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
header, footer { padding: 12px clamp(12px,3vw,32px); }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #c8cabe; }
.tour-heading { min-width: 0; }
h1 { font-size: clamp(16px,2.4vw,25px); line-height: 1.3; letter-spacing: .02em; margin: 0; overflow-wrap: anywhere; }
#sample-note { color: #4c615d; font-size: 11px; font-weight: bold; line-height: 1.6; }
#credit { flex-shrink: 0; font-size: 13px; font-weight: bold; }
#credit .reiwa360-brand { position: static; padding: 0; background: transparent; box-shadow: none; max-width: 36vw; color: inherit; }
main { min-height: 0; position: relative; background: #c8c7ba; }
#pano { position: absolute; inset: 0; overflow: hidden; }
#pano:focus-visible { outline: 3px solid #035c55; outline-offset: -3px; }
#viewer-status, noscript { position: absolute; left: 50%; top: 50%; width: max-content; max-width: 90%; transform: translate(-50%,-50%); padding: 12px 18px; margin: 0; border-radius: 6px; background: #fcfaf3; }
footer { border-top: 1px solid #b8bcb1; padding-bottom: max(12px,env(safe-area-inset-bottom)); }
#guide { margin: 0 0 7px; font-size: 12px; line-height: 1.4; color: #465953; }
#scene-list { display: flex; gap: 6px; overflow-x: auto; }
#scene-list button, #scene-info button { border: 1px solid #adb8ac; background: transparent; color: inherit; cursor: pointer; border-radius: 5px; min-height: 42px; padding: 8px 17px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; }
#scene-list button { white-space: nowrap; }
#scene-list button[aria-current="true"] { background: #254b41; color: white; border-color: #254b41; }
button:focus-visible, a:focus-visible { outline: 3px solid #bc7827; outline-offset: -3px; }
.scene-hotspot { transform: translate(-50%,-50%); border: 2px solid white; border-radius: 8px; padding: 8px 10px; max-width: 160px; min-height: 44px; background: #fffaf1; color: #16362f; box-shadow: 0 2px 8px #0003; font-family: inherit; font-weight: 650; cursor: pointer; }
#scene-info { color: #173631; border: 0; border-radius: 8px; padding: 24px; width: min(90vw,430px); max-height: 85vh; overflow: auto; overflow-wrap: anywhere; }
#scene-info p { white-space: pre-wrap; }
#scene-info::backdrop { background: #142923ba; }
@media(max-width:540px) {
  header, footer { padding-inline: 10px; }
  header { padding-block: 7px; }
  #scene-list button { flex: 1 0 auto; padding: 8px; }
  #guide { font-size: 11px; }
}
@media(max-height:440px) {
  header, footer { padding-block: 3px; }
  #guide, #sample-note { font-size: 10px; }
}
