:root {
  color-scheme: dark;
  font-family: Arial, "Noto Sans JP", sans-serif;
  color: #fff;
  background: #161a19;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
main:focus-visible {
  outline: 2px solid #d5ff7e;
  outline-offset: 5px;
}
button {
  border: 1px solid #ffffff50;
  background: #18201dd9;
  border-radius: 2px;
  padding: 12px 20px;
}
button:hover {
  background: #d5ff7e;
  color: #171c18;
}
#experience {
  height: 100svh;
  min-height: 480px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
#scene,
#scene canvas,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#scene {
  touch-action: none;
  cursor: grab;
}
#scene:active {
  cursor: grabbing;
}
.shade {
  background: linear-gradient(#07120c55, transparent 30%, transparent 52%, #08120cec);
  pointer-events: none;
}
header {
  position: absolute;
  top: max(26px, env(safe-area-inset-top));
  left: 34px;
  right: 34px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  pointer-events: none;
}
.brand {
  font-size: 20px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-shadow: 0 2px 10px #000;
}
.brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-top: 8px;
  font-weight: 400;
}
.round {
  border-radius: 100%;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 18px;
  pointer-events: auto;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.17em;
  color: #d5ff7e;
  display: block;
  margin-bottom: 16px;
}
#intro {
  position: absolute;
  left: 9%;
  top: 23%;
  pointer-events: none;
  transition:
    opacity 1s,
    transform 1s;
}
h1 {
  font-size: clamp(30px, 3.4vw, 58px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.05em;
  margin: 0;
  text-shadow: 0 2px 24px #0009;
}
#intro p {
  font-size: 14px;
  margin-top: 28px;
  letter-spacing: 0.15em;
}
body.exploring #intro {
  opacity: 0;
  transform: translateY(-15px);
}
#caption {
  position: absolute;
  bottom: 90px;
  left: 6%;
  right: 6%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
  max-width: 750px;
}
body.exploring #caption {
  opacity: 1;
}
h2 {
  font-size: clamp(24px, 2.8vw, 42px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}
#detail {
  font-size: 15px;
  line-height: 1.8;
  color: #e2e5e1;
  margin: 0 0 20px;
}
#actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  pointer-events: auto;
}
#actions button {
  font-size: 14px;
  background: #142119c9;
  backdrop-filter: blur(10px);
}
#actions button.active {
  border-color: #d5ff7e;
  color: #d5ff7e;
}
footer {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 34px;
  right: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #d9ddd8;
  pointer-events: none;
}
#orientation {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 8px;
  pointer-events: auto;
  font-size: 12px;
}
#compass {
  display: inline-block;
  font-size: 22px;
  color: #d5ff7e;
}
#hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: auto;
  box-shadow: 0 4px 40px #0003;
  background: #19251bd9;
  backdrop-filter: blur(8px);
  font-size: 14px;
}
.hotspot.word {
  font-size: clamp(24px, 3.5vw, 45px);
  letter-spacing: 0.12em;
  border: 0;
  background: transparent;
  text-shadow: 0 2px 10px #000;
}
.hotspot.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.14em;
  border: 0;
  background: transparent;
  color: #d5ff7e;
  animation: logo 7s ease-in-out infinite;
}
.hotspot small {
  font-size: 11px;
  display: block;
  letter-spacing: 0.12em;
  margin-top: 5px;
}
@keyframes logo {
  0%,
  70%,
  100% {
    rotate: y 0deg;
  }
  85% {
    rotate: y 180deg;
  }
}
#loading {
  position: absolute;
  inset: 0;
  background: #161a19;
  display: grid;
  place-items: center;
  font-size: 14px;
  letter-spacing: 0.15em;
  transition: opacity 0.5s;
}
#loading.done {
  opacity: 0;
  pointer-events: none;
}
#notice {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #18211eef;
  padding: 12px 20px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  max-width: 90%;
  text-align: center;
}
#notice.show {
  opacity: 1;
}
dialog {
  background: #18201e;
  color: #fff;
  border: 1px solid #5a625b;
  padding: 40px;
  width: min(940px, 92vw);
  max-height: 90svh;
  overflow: auto;
}
dialog::backdrop {
  background: #030a07bc;
  backdrop-filter: blur(8px);
}
#guide {
  max-width: 620px;
}
dialog p {
  font-size: 16px;
  line-height: 1.9;
  color: #cdd5cd;
}
.close {
  position: sticky;
  float: right;
  top: 0;
  border: 0;
  background: #17221f;
  font-size: 28px;
  padding: 0 9px;
  z-index: 3;
}
.directions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 25px 0;
}
.small {
  font-size: 12px !important;
}
.photo {
  max-height: 60svh;
  width: 100%;
  object-fit: contain;
  background: #101714;
}
a {
  color: #d5ff7e;
  text-underline-offset: 5px;
}
.plan-wrap {
  position: relative;
  background: #f6f5f0;
}
.plan-wrap img {
  width: 100%;
  display: block;
}
.plan-point {
  position: absolute;
  border-radius: 50%;
  padding: 0;
  width: 38px;
  height: 38px;
  background: #18221e;
  color: #d5ff7e;
  border: 2px solid #d5ff7e;
}
.plan-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.floor-image {
  width: min(100%, 600px);
  aspect-ratio: 1;
  background-image: url("assets/floors.png");
  background-size: 300% 100%;
  margin: auto;
}
#viewerBody {
  padding-top: 10px;
}
.shred-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.view-caption {
  font-size: 13px;
  color: #b6c1b8;
}
.compare {
  perspective: 1000px;
}
.compare img {
  transition: transform 0.8s;
}
.content-note {
  font-size: 12px;
  color: #b8c3b9;
  line-height: 1.7;
}
.primary {
  background: #d5ff7e;
  color: #162016;
  border-color: #d5ff7e;
}
@media (max-width: 600px) {
  header {
    left: 20px;
    right: 20px;
    top: max(20px, env(safe-area-inset-top));
  }
  .brand {
    font-size: 17px;
  }
  .brand span {
    font-size: 9px;
  }
  #intro {
    left: 8%;
    top: 28%;
  }
  h1 {
    font-size: 22px;
  }
  #caption {
    left: 7%;
    right: 7%;
    bottom: 82px;
  }
  #caption h2 {
    font-size: 24px;
  }
  #detail {
    font-size: 14px;
    margin-bottom: 14px;
  }
  #actions {
    gap: 6px;
  }
  #actions button {
    padding: 10px 13px;
    font-size: 13px;
  }
  footer {
    left: 20px;
    right: 20px;
  }
  #hint {
    font-size: 11px;
    max-width: 230px;
  }
  dialog {
    padding: 23px;
  }
  .eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .hotspot {
    max-width: 85vw;
  }
  .directions button {
    padding: 12px 9px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
:root {
  --accent: #d5ff7e;
}
.credits {
  font-size: 12px;
  line-height: 1.9;
  margin-top: 25px;
}
.credits a {
  color: #ccd8c8;
}
body:not(.exploring) #hotspots {
  opacity: 0;
  pointer-events: none;
}
body:not(.exploring) #hotspots button {
  pointer-events: none;
}
#hotspots {
  transition: opacity 0.8s;
}
.hotspot[hidden] {
  display: none !important;
}
#caption[aria-hidden="true"] {
  visibility: hidden;
}
.process-image {
  position: relative;
}
.process-image img {
  display: block;
}
.process-image img + img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#processRange {
  width: 100%;
  accent-color: #d5ff7e;
  min-height: 44px;
}
.process-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.compare img {
  touch-action: pan-y;
  cursor: grab;
}
.photo {
  height: auto;
}
#processBlend {
  height: 100%;
}
.leasing-sheet-stage {
  display: grid;
  place-items: center;
  min-height: min(67svh, 760px);
  overflow: hidden;
  perspective: 1400px;
}
.leasing-sheet-reveal {
  width: min(100%, 1050px);
  max-height: 76svh;
  filter: drop-shadow(0 28px 50px #0009);
  transform-origin: 50% 52%;
  animation: leasing-sheet-zoom 2.2s cubic-bezier(0.18, 0.72, 0.22, 1) both;
}
.leasing-sheet-details {
  animation: leasing-details-in 0.7s ease 1.65s both;
}
@keyframes leasing-sheet-zoom {
  0% {
    opacity: 0.08;
    transform: translateY(9vh) scale(0.24) rotateX(5deg);
    filter: blur(5px) drop-shadow(0 5px 8px #0003);
  }
  45% {
    opacity: 0.82;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
    filter: blur(0) drop-shadow(0 28px 50px #0009);
  }
}
@keyframes leasing-details-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#viewer:has(.leasing-sheet-reveal) {
  width: min(1180px, 96vw);
}
.plan-sheet-reveal {
  transform-origin: 50% 52%;
  animation: leasing-sheet-zoom 2.2s cubic-bezier(0.18, 0.72, 0.22, 1) both;
}
.plan-sheet-details {
  animation: leasing-details-in 0.7s ease 1.65s both;
}
#viewer:has(.plan-sheet-reveal) {
  width: min(1080px, 96vw);
}
.leasing-sheet-trigger {
  display: block;
  border: 0;
  padding: 0;
  background: transparent !important;
  cursor: zoom-in;
}
.leasing-sheet-trigger:hover {
  filter: brightness(1.08);
}
.bad-photo-stage {
  overflow: hidden;
  background: #101714;
  perspective: 1000px;
  margin: 20px 0;
}
.bad-photo {
  display: block;
  width: 100%;
  max-height: 64svh;
  object-fit: cover;
  transform: perspective(850px) rotateY(9deg) skewY(-7deg) scale(1.13);
  transform-origin: 48% 54%;
  filter: contrast(1.05) saturate(0.78);
  animation: bad-photo-enter 1s ease both;
}
@keyframes bad-photo-enter {
  from {
    opacity: 0;
    transform: perspective(850px) rotateY(18deg) skewY(-12deg) scale(1.28);
  }
  to {
    opacity: 1;
    transform: perspective(850px) rotateY(9deg) skewY(-7deg) scale(1.13);
  }
}
.location-question {
  z-index: 5;
  pointer-events: none;
}
.question-playing #caption h2,
.question-playing #caption #detail,
.question-playing #hotspots {
  opacity: 0;
}
.question-playing #actions {
  position: relative;
  z-index: 6;
}
.question-playing header,
.question-playing footer {
  z-index: 6;
}
.question-playing #caption {
  z-index: 6;
}
.question-playing #chapter {
  opacity: 0.7;
}
#caption h2,
#caption #detail,
#caption #chapter {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
#caption {
  max-width: none;
  bottom: 90px;
}
#actions {
  align-items: center;
}
#caption #actions button {
  box-shadow: 0 4px 22px #0002;
}
@media (max-width: 600px) {
  #caption {
    bottom: 82px;
  }
}
.paper-floor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}
.collector-handle {
  position: absolute;
  z-index: 7;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: transparent !important;
  border-radius: 50%;
  touch-action: none;
  cursor: grab;
  color: transparent;
}
.collector-handle:focus-visible {
  outline: 1px solid #e0f7ff;
  outline-offset: 3px;
}
.collector-handle:hover {
  box-shadow: 0 0 22px #dcfaff12;
}
.collector-handle[hidden],
.paper-floor[hidden] {
  display: none !important;
}
.paper-dragging,
.paper-dragging * {
  cursor: grabbing !important;
}
#actions {
  position: relative;
  z-index: 8;
}
#caption {
  z-index: 8;
}
.question-playing #caption {
  z-index: 8;
}
.has-paper #hint {
  max-width: 48%;
}

.memory-ending {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.memory-ending[hidden] {
  display: none;
}
.memory-ending p {
  position: absolute;
  top: 43%;
  left: 10%;
  margin: 0;
  width: 80%;
  max-width: 1024px;
  font-size: 38px;
  line-height: 1.85;
  font-weight: 500;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 24px #000;
}
.memory-active #hotspots,
.memory-active #caption,
.memory-active footer,
.memory-active header {
  opacity: 0;
  pointer-events: none;
}
.memory-active button {
  pointer-events: none !important;
}
.memory-active #scene {
  pointer-events: auto;
}
@media (max-width: 600px) {
  .memory-ending p {
    font-size: 24px;
  }
}

.memory-active #caption,
.memory-active #hotspots,
.memory-active header,
.memory-active footer {
  opacity: 0 !important;
}
.memory-return-fade {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: #07120c;
  opacity: 0;
  transition: opacity 0.76s ease;
}
.memory-return-fade[hidden] {
  display: none;
}
.memory-return-fade.show {
  opacity: 1;
}
.memory-ending-link {
  position: absolute;
  top: 63%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: auto;
  white-space: nowrap;
  padding: 11px 16px;
  border: 1px solid #d5ff7e;
  color: #d5ff7e;
  background: #17201eb8;
  font-size: 12px;
  letter-spacing: 0.09em;
  transition: opacity 0.45s;
}
.memory-ending-link:hover {
  background: #d5ff7e;
  color: #17201a;
}
@media (max-width: 600px) {
  .memory-ending-link {
    top: 62%;
    max-width: 90%;
    font-size: 11px;
  }
}
.hotspot.logo {
  width: 154px;
  padding: 0;
  background: transparent;
  animation: none;
  box-shadow: none;
}
.hotspot.logo:hover {
  background: transparent;
}
.pp-logo {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
.hotspot.company-exit {
  padding: 7px 13px;
  font-size: 11px;
  letter-spacing: 0.18em;
  background: #17201ae8;
  color: #fff;
}
.hotspot.company-exit:hover,
.hotspot.company-exit:focus-visible {
  background: #f3f4f1;
  color: #17201a;
  border-color: #fff;
  text-shadow: none;
}

.question-leaving {
  animation: question-fade-out 0.45s ease-out forwards !important;
  pointer-events: none;
}
@keyframes question-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.before-after-transition {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 1;
}
.before-after-transition[hidden] {
  display: none;
}
.before-after-transition.entering {
  animation: before-after-fade-in 1.2s ease both;
}
.before-after-transition.leaving {
  animation: question-fade-out 0.45s ease-out forwards;
}
@keyframes before-after-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.before-after-playing header,
.before-after-playing footer,
.before-after-playing #caption,
.before-after-playing #hotspots {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.9s ease !important;
}
.floor-image {
  position: relative;
  overflow: hidden;
  background-image: none;
}
.floor-layer {
  position: absolute;
  inset: 0;
  background-image: url("assets/floors.png");
  background-size: 300% 100%;
  display: block;
}
.floor-layer.incoming {
  opacity: 0;
  transition: opacity 1.4s ease;
}
.floor-layer.incoming.show {
  opacity: 1;
}
.property-photo-stage {
  display: grid;
  place-items: center;
  min-height: min(62svh, 690px);
  overflow: hidden;
  background: #101714;
  padding: clamp(12px, 3vw, 34px);
}
.property-photo-pair {
  position: relative;
  width: min(100%, 1080px);
  aspect-ratio: 1.5;
  max-height: 68svh;
}
.property-photo-card {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 1.35s ease,
    transform 1.5s cubic-bezier(0.18, 0.72, 0.22, 1);
  cursor: pointer;
  pointer-events: none;
}
.property-photo-card.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.property-photo-card img {
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.property-photo-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 11px;
  background: #17201edb;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.property-photo-card.active figcaption {
  animation: leasing-details-in 0.7s ease both;
}
#viewer:has(.property-photo-stage) {
  width: min(1180px, 96vw);
}

.experience-note {
  margin: 30px 0 24px;
  padding: 22px 24px;
  border-left: 1px solid #d5ff7e;
  background: #10171499;
}
.experience-note .eyebrow {
  margin-bottom: 8px;
}
.experience-note p {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.85;
  color: #e1e7e1;
}
.experience-note p:last-child {
  color: #bec9be;
}

.about-button {
  pointer-events: auto;
  padding: 10px 14px;
  border-radius: 2px;
  background: #17201ec9;
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.about-button:hover {
  background: #d5ff7e;
  color: #17201a;
}
@media (max-width: 600px) {
  .about-button {
    padding: 9px 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}
#aboutShift {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  padding: 0;
  background: #0c1714ee;
  overflow: auto;
}
#aboutShift::backdrop {
  background: #07100ccc;
  backdrop-filter: blur(9px);
}
#aboutShift canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.about-shift-close {
  position: fixed;
  right: 24px;
  top: 20px;
  font-size: 28px;
  padding: 3px 13px;
  z-index: 3;
}
.about-shift-skip {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  z-index: 3;
}
.about-shift-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  padding-bottom: 40px;
  transition: opacity 0.8s ease;
}
.about-shift-copy h2 {
  position: absolute;
  bottom: 100%;
  font-size: 12px;
  letter-spacing: 0.18em;
  margin: 0 0 22px;
  color: #bdc8bd;
}
.about-shift-text {
  font-family: Arial, sans-serif;
  color: #f3f1e7;
  letter-spacing: 0;
}
.about-shift-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  opacity: 0;
  transition: opacity 0.6s;
}
.about-shift-actions button {
  font-size: 13px;
}
.revealing .about-shift-copy,
.readable .about-shift-copy {
  opacity: 1;
}
.readable .about-shift-copy {
  pointer-events: auto;
}
.readable .about-shift-actions {
  opacity: 1;
}

.board-tools {
  position: absolute;
  right: 28px;
  bottom: 92px;
  z-index: 8;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 360px;
  padding: 7px;
  background: #121816ba;
  border: 1px solid #ffffff25;
  backdrop-filter: blur(8px);
}
.board-tools[hidden] {
  display: none;
}
.board-tools button {
  padding: 9px 11px;
  font-size: 12px;
  background: #ffffff0d;
  color: #fff;
  border: 1px solid #ffffff25;
}
.board-tools button[aria-pressed="true"] {
  background: #e4e9e4;
  color: #17201a;
}
.board-tools button:hover {
  background: #a5b2a6;
  color: #121816;
}
.board-dragging #scene canvas {
  cursor: grabbing;
}
@media (max-width: 650px) {
  .board-tools {
    right: 12px;
    bottom: 145px;
    max-width: 270px;
  }
  .board-tools button {
    padding: 8px;
    font-size: 11px;
  }
}

.before-after-playing .board-tools {
  opacity: 0;
  pointer-events: none;
}

button:hover,
button:focus-visible,
#actions button:hover,
.hotspot:hover,
.hotspot.company-exit:hover,
.hotspot.company-exit:focus-visible,
.board-tools button:hover,
.board-tools button:focus-visible,
.about-button:hover {
  color: #ff9dcc !important;
  background: #29202e !important;
  border-color: #ff9dcc !important;
  text-shadow: none;
}
/* 天井・床の自動表示も、急に切り替えずに開く。 */
#viewer[open] {
  animation: viewer-image-reveal 0.9s ease both;
}
@keyframes viewer-image-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* スマホ：柱のそばに表示する「柱が邪魔？」の文字サイズ */
@media (max-width: 600px) {
  #hotspots .hotspot.word {
    font-size: 14px;
  }
}
