/* v4：予約・お問い合わせフォーム */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(6, 12, 9, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s; }
.modal-panel {
  position: relative; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto;
  background: linear-gradient(160deg, #1b3127 0%, #12211a 100%); border: 1px solid var(--line); border-radius: 18px;
  padding: 40px 40px 36px; box-shadow: 0 50px 120px rgba(0,0,0,.55);
  transform: translateY(30px) scale(.98); opacity: 0; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s;
  overscroll-behavior: contain;
}
.modal.is-open .modal-bg { opacity: 1; }
.modal.is-open .modal-panel { transform: none; opacity: 1; }
.modal-x { position: absolute; right: 16px; top: 12px; width: 40px; height: 40px; border: 0; background: none; color: var(--ivory-dim); font-size: 26px; cursor: pointer; border-radius: 50%; }
.modal-x:hover { color: var(--ivory); background: rgba(255,255,255,.06); }
.modal-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 26px; padding: 0; font-size: 12px; letter-spacing: .16em; color: var(--ivory-dim); }
.modal-steps li { display: flex; align-items: center; gap: 8px; }
.modal-steps li + li::before { content: ""; width: 24px; height: 1px; background: var(--line); }
.modal-steps li.on { color: var(--brass-light); }
.modal h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 400; margin-bottom: 26px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 18px; }
.f-grid label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: .14em; color: var(--ivory-dim); }
.f-grid .full { grid-column: 1 / -1; }
.f-grid input, .f-grid select, .f-grid textarea {
  font: inherit; font-size: 15px; letter-spacing: .04em; color: var(--ivory);
  background: rgba(12, 23, 18, .6); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  color-scheme: dark; transition: border-color .3s, background .3s;
}
.f-grid input:focus, .f-grid select:focus, .f-grid textarea:focus { outline: none; border-color: var(--brass); background: rgba(12, 23, 18, .85); }
.f-grid .invalid { border-color: #d98c7a; }
.f-error { min-height: 22px; font-size: 13px; color: #f0b3a3; margin-bottom: 10px; }
.confirm-list { margin: 0 0 28px; border-top: 1px solid var(--line); }
.confirm-list div { display: grid; grid-template-columns: 9em 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.confirm-list dt { color: var(--ivory-dim); letter-spacing: .12em; font-size: 12px; padding-top: 2px; }
.confirm-list dd { margin: 0; white-space: pre-wrap; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; width: auto; }
.step-done { text-align: center; padding: 20px 0 6px; }
.step-done .lead { margin-bottom: 28px; }
.step-done .btn { width: auto; min-width: 220px; }
html.modal-lock, html.modal-lock body { overflow: hidden; }

@media (max-width: 600px) {
  .modal { place-items: end center; }
  .modal-panel { width: 100vw; max-height: 92vh; border-radius: 18px 18px 0 0; padding: 30px 20px 28px; transform: translateY(40px); }
  .f-grid { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column-reverse; }
}

/* 部屋の中を見せて回す */
.hero { height: 1300vh; }
.copy-inside { opacity: 0; z-index: 6; }
.copy-inside .plan-title { position: absolute; left: 0; right: 0; top: 15vh; text-align: center; font-size: clamp(24px, 3vw, 44px); font-weight: 400; }
.hero-copy.copy-inside .eyebrow { left: 0; right: 0; top: calc(15vh - 40px); text-align: center; }
.inside-list { position: absolute; left: var(--gutter); bottom: 9vh; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inside-list li { font-size: 13px; color: var(--ivory-dim); letter-spacing: .08em; }
.inside-list b { display: inline-block; min-width: 6.5em; font-family: var(--f-display); font-weight: 500; font-size: 15px; color: var(--brass-light); letter-spacing: .16em; }
.drag-hint { position: absolute; right: var(--gutter); bottom: 9vh; font-size: 13px; letter-spacing: .16em; color: var(--brass-light); display: flex; align-items: center; gap: 10px; }
.drag-hint span { font-size: 20px; animation: hint 2.4s ease-in-out infinite; display: inline-block; }
@keyframes hint { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-180deg); } }
.villa-3d { cursor: grab; }
.villa-3d.is-drag { cursor: grabbing; }
.scene-plan { pointer-events: none; }
.scene-plan .villa-3d { pointer-events: auto; }
@media (max-width: 900px) {
  .hero { height: 1100vh; }
  .inside-list { gap: 6px; bottom: 16vh; }
  .inside-list li { font-size: 12px; }
  .drag-hint { left: var(--gutter); right: auto; bottom: 8vh; }
}
