
.atagoyama-scene {
  position: fixed;
  inset: 0;
  z-index: 220;
  min-height: 100dvh;
  background: #071a32;
  overflow: hidden;
  color: #3B271F;
}

.atagoyama-scene[hidden] { display: none; }

.atagoyama-scene__blur {
  position: absolute;
  inset: -24px;
  background:
    linear-gradient(rgba(4,18,38,.32), rgba(4,18,38,.56)),
    url("../assets/backgrounds/atagoyama-nightview-scene.jpg") center / cover no-repeat;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: .8;
}

.atagoyama-scene__main {
  position: relative;
  z-index: 1;
  height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding:
    calc(14px + env(safe-area-inset-top))
    14px
    calc(16px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.atagoyama-scene__view {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.atagoyama-scene__image {
  width: 100%;
  max-height: 62dvh;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.32);
  transition: transform .28s ease, opacity .28s ease;
}

.atagoyama-scene__kenty {
  position: absolute;
  left: 6px;
  bottom: 4px;
  width: min(30vw, 140px);
  max-height: 31dvh;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.25));
  transition: opacity .28s ease, transform .28s ease;
}

.atagoyama-scene__panel {
  position: relative;
  margin-top: 12px;
  padding: 14px 14px 12px;
  border-radius: 22px;
  background: rgba(255,253,248,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  transition: opacity .25s ease, transform .25s ease;
}

.atagoyama-scene__speaker {
  font-size: 12px;
  font-weight: 800;
  color: #8B7A70;
}

.atagoyama-scene__text {
  margin-top: 4px;
  min-height: 2.9em;
  font-size: clamp(20px, 5.2vw, 24px);
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: .01em;
}

.atagoyama-scene__next {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(#F45A43, #C93B2B);
  color: white;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 5px 0 #9f2f24;
}

.atagoyama-scene__next:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #9f2f24;
}

.atagoyama-scene.is-viewing .atagoyama-scene__panel,
.atagoyama-scene.is-viewing .atagoyama-scene__kenty {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.atagoyama-scene.is-viewing .atagoyama-scene__image {
  transform: scale(1.012);
}

.atagoyama-scene.is-calm .atagoyama-scene__image {
  filter: saturate(.95) brightness(.96);
}

@media (max-height: 700px) {
  .atagoyama-scene__image { max-height: 54dvh; }
  .atagoyama-scene__kenty { width: min(26vw, 120px); }
  .atagoyama-scene__text { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .atagoyama-scene *,
  .atagoyama-scene *::before,
  .atagoyama-scene *::after {
    transition: none !important;
    animation: none !important;
  }
}
