/* =========================================================
   離れの宿 月白 — 物語に入る動き・押せる配置図・案内係「月乃」
   ========================================================= */

/* ---------- ファーストビュー：丸窓が広がって、夜の露天風呂の中へ ---------- */
.hero__reveal { display: none; }
.hero-stage.is-cinematic .hero {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  min-height: 0;
  overflow: hidden;
}
.hero-stage.is-cinematic .hero__reveal {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: circle(var(--r, 0px) at var(--cx, 50%) var(--cy, 50%));
}
.hero__reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 60%;
  transform: scale(var(--zoom, 1.08));
}
.hero__reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 18, 15, 0) 40%, rgba(21, 18, 15, .55) 100%);
  opacity: var(--after, 0);
}
.hero__after {
  position: absolute;
  left: 50%;
  bottom: 14%;
  z-index: 1;
  width: max-content;
  max-width: 90%;
  margin: 0;
  transform: translate(-50%, calc((1 - var(--after, 0)) * 16px));
  font-family: var(--font-mincho);
  font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1.8;
  letter-spacing: .16em;
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .6);
  opacity: var(--after, 0);
}
.hero-stage.is-cinematic .hero__window,
.hero-stage.is-cinematic .hero__copy { position: relative; z-index: 1; }
.hero-stage.is-cinematic .hero__window img { opacity: var(--winimg, 1); }
.hero-stage.is-cinematic .hero__ring { opacity: var(--copy, 1); }
.hero-stage.is-cinematic .hero__copy {
  opacity: var(--copy, 1);
  transform: translateY(calc((1 - var(--copy, 1)) * -24px));
}

/* ---------- 湯本の一日：画面を止めたまま、スクロールで時間が進む ---------- */
.day__scroll, .day__bar { display: none; }
.day-stage.is-cinematic { height: 300vh; }
.day-stage.is-cinematic .day {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  min-height: 0;
  display: flex;
  align-items: center;
  padding-block: 0;
}
.day-stage.is-cinematic .day__scroll {
  display: block;
  margin: 20px 0 0;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--kinari);
  opacity: .75;
}
.day-stage.is-cinematic .day__bar {
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(242, 236, 225, .15);
}
.day__bar span {
  display: block;
  height: 100%;
  width: calc(var(--day-p, 0) * 100%);
  background: var(--biwa);
}

/* ---------- 写真がゆっくり動く ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-parallax] { transform: scale(1.12); will-change: transform; }
}

/* ---------- 押せる配置図 ---------- */
.map-frame { position: relative; }
.map-pins { position: absolute; inset: 0; }
.map-pin {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 52px;
  min-height: 52px;
  padding: 6px 0 0;
  transform: translate(-50%, -32%);
  background: none;
  border: 0;
  color: var(--kinari);
  cursor: pointer;
}
.map-pin i {
  position: relative;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--biwa);
  box-shadow: 0 0 12px 3px rgba(214, 164, 108, .65);
}
.map-pin i::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(214, 164, 108, .7);
  animation: pin 2.4s ease-out infinite;
}
.map-pin.is-full i { background: #8a8178; box-shadow: none; }
.map-pin.is-full i::after { display: none; }
.map-pin span {
  font-family: var(--font-mincho);
  font-size: 12px;
  letter-spacing: .08em;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
.map-pin[aria-pressed="true"] i { transform: scale(1.35); outline: 2px solid var(--kinari); outline-offset: 4px; }
.map-pin[aria-pressed="true"] span { color: var(--biwa); }
@keyframes pin { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.spec__map figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  text-align: left;
}
.map-legend { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--biwa); }
.map-legend i.is-full { background: #8a8178; margin-left: 4px; }

.room-card {
  margin-top: 18px;
  min-height: 150px;
  padding: 22px 26px;
  background: var(--sumi-3);
  border: 1px solid rgba(242, 236, 225, .08);
  border-radius: var(--radius);
}
.room-card__hint { margin: 0; font-size: 13px; color: var(--muted); }
.room-card__name { margin: 0 0 6px; font-family: var(--font-mincho); font-size: 22px; letter-spacing: .14em; }
.room-card__name small { margin-left: 12px; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.room-card__note { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.room-card__info { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 28px; margin-bottom: 14px; }
.room-card__info dt { font-size: 11px; color: var(--biwa); }
.room-card__info dd { font-size: 14px; }
.room-card__status { display: inline-block; margin: 0; padding: 2px 12px; font-size: 12px; border-radius: 999px; }
.room-card__status.is-open { background: var(--biwa); color: var(--sumi); }
.room-card__status.is-full { background: #4a433c; color: var(--kinari); }

/* ---------- 案内係「女将の月乃」 ---------- */
.concierge { position: fixed; right: 24px; bottom: 24px; z-index: 70; }
.concierge[hidden] { display: none; }
.concierge { transition: opacity .4s, transform .4s, visibility .4s; }
.concierge.is-waiting { opacity: 0; transform: translateY(12px); visibility: hidden; }
.concierge__launcher {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  color: var(--kinari);
  background: rgba(21, 18, 15, .92);
  border: 1px solid rgba(214, 164, 108, .5);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  cursor: pointer;
  transition: border-color .3s;
}
.concierge__launcher:hover { border-color: var(--biwa); }
.concierge__launcher img, .concierge__face {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--biwa);
  background: #fff;
  object-fit: cover;
}
.concierge__hint { font-family: var(--font-mincho); font-size: 13px; line-height: 1.5; letter-spacing: .08em; text-align: left; }
.concierge.is-open .concierge__hint { display: none; }
.concierge.is-open .concierge__launcher { padding-right: 6px; }

.concierge__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  width: 380px;
  height: min(600px, calc(100svh - var(--header-h) - 120px));
  background: var(--sumi-2);
  border: 1px solid rgba(242, 236, 225, .12);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.concierge__panel[hidden] { display: none; }
.concierge__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-bottom: 1px solid var(--line);
}
.concierge__face { width: 48px; height: 48px; flex: none; }
.concierge__who { flex: 1; min-width: 0; }
.concierge__title { margin: 0; font-family: var(--font-mincho); font-size: 16px; line-height: 1.5; letter-spacing: .1em; white-space: nowrap; }
.concierge__title small { margin-left: 8px; font-size: 11px; color: var(--muted); }
.concierge__sub { margin: 0; font-size: 11px; line-height: 1.5; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.concierge__voice {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.concierge__voice[aria-pressed="true"] { color: var(--sumi); background: var(--biwa); border-color: var(--biwa); }
.concierge__close {
  width: 36px; height: 36px;
  font-size: 20px;
  line-height: 1;
  color: var(--kinari);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.concierge__log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.concierge__msg {
  max-width: 88%;
  margin: 0;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
  border-radius: 12px;
}
.concierge__msg--okami { align-self: flex-start; background: var(--sumi-3); border-top-left-radius: 2px; }
.concierge__msg--guest { align-self: flex-end; background: var(--biwa); color: var(--sumi); border-top-right-radius: 2px; }
.concierge__msg.is-typing { letter-spacing: .3em; animation: typing 1s ease-in-out infinite; }
@keyframes typing { 50% { opacity: .35; } }
/* 質問ボタンは横に1列で並べ、横にすべらせて選ぶ（会話の欄を広く使うため） */
.concierge__chips {
  display: flex;
  gap: 6px;
  padding: 2px 16px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.concierge__chip { flex: none; white-space: nowrap; }
.concierge__chip {
  min-height: 36px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--kinari);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.concierge__chip:hover { border-color: var(--biwa); color: var(--biwa); }
.concierge__form { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.concierge__form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 16px;
  color: var(--kinari);
  background: var(--sumi);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.concierge__form input:focus { border-color: var(--biwa); outline: none; }
.concierge__form .btn { min-height: 44px; padding: 0 18px; }
.concierge__foot { margin: 0; padding: 0 16px 12px; font-size: 11px; line-height: 1.7; color: var(--muted); }
.concierge__hide, .concierge-restore {
  padding: 0;
  font-size: 11px;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}
.concierge__hide { margin-left: 6px; }
.concierge-restore[hidden] { display: none; }

/* 月乃がゆっくり呼吸する／答えるときに少し首をかしげる */
@media (prefers-reduced-motion: no-preference) {
  .concierge__launcher img { animation: breathe 4.5s ease-in-out infinite; }
  .concierge.is-talking .concierge__face { animation: nod .9s ease-in-out; }
}
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-1px) scale(1.03); } }
@keyframes nod { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-6deg); } 70% { transform: rotate(2deg); } }
