/* =========================================================
   空室検索：カレンダー・結果・予約モーダル
   （style.css の色・フォント変数を使用）
   ========================================================= */
.reserve__error { min-height: 1.6em; margin-top: 18px; font-size: 13px; color: #f0b3a6; }
.reserve__tel { margin-top: 14px; }

.vacancy {
  max-width: 1200px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 32px;
  text-align: left;
  color: var(--text);
}

/* ---------- カレンダー ---------- */
.cal {
  background: var(--kinari);
  padding: 28px 24px 22px;
  align-self: start;
}
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal__title { font-family: var(--f-head); font-size: 18px; letter-spacing: .2em; font-weight: 700; }
.cal__nav {
  font: inherit; font-size: 12px; letter-spacing: .1em;
  background: transparent; border: 1px solid rgba(42, 38, 34, .3);
  padding: 2px 10px; cursor: pointer; color: var(--text);
}
.cal__nav:hover:not(:disabled) { border-color: var(--shu); color: var(--shu); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__wd { text-align: center; font-size: 12px; padding-bottom: 4px; border-bottom: 1px solid rgba(42, 38, 34, .15); }
.cal__wd.is-sun, .cal__day.is-sun .cal__num { color: var(--shu); }
.cal__wd.is-sat, .cal__day.is-sat .cal__num { color: #3f5f80; }
.cal__day {
  font: inherit;
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 0 2px;
  line-height: 1.4;
  background: #fff;
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.cal__num { font-size: 13px; letter-spacing: 0; }
.cal__mk { font-size: 14px; font-weight: 700; }
.st-ok .cal__mk { color: var(--koke); }
.st-few .cal__mk { color: var(--kincha); }
.st-full .cal__mk { color: #9a948b; }
.st-full { background: #ece6da; cursor: default; }
.st-na { background: transparent; cursor: default; }
.st-na .cal__num { color: #b5ada2 !important; }
.st-na .cal__mk { color: #cfc8bd; }
.cal__day:hover:not(:disabled) { border-color: var(--shu); }
.cal__day.is-selected { background: var(--shu); border-color: var(--shu); }
.cal__day.is-selected .cal__num, .cal__day.is-selected .cal__mk { color: #fff !important; }
.cal__legend { margin-top: 14px; font-size: 11px; line-height: 1.9; color: var(--text-sub); letter-spacing: .04em; }
.mk { font-weight: 700; }
.mk--ok { color: var(--koke); }
.mk--few { color: var(--kincha); }
.mk--full { color: #9a948b; }
.mk--na { color: #b5ada2; }

/* ---------- 検索結果 ---------- */
.results { background: var(--kinari); padding: 28px; scroll-margin-top: 24px; min-height: 200px; }
.results__empty { color: var(--text-sub); font-size: 14px; }
.results__cond {
  font-family: var(--f-head); font-weight: 700; font-size: 16px; letter-spacing: .08em;
  padding-bottom: 14px; border-bottom: 1px solid rgba(42, 38, 34, .18);
}
.results__cond span { margin-left: 16px; font-size: 13px; color: var(--kincha); }
.results__list { display: grid; gap: 16px; margin-top: 18px; }
.results__none { margin-top: 18px; font-size: 13px; color: var(--shu); }
.results__note { margin-top: 18px; font-size: 11px; color: var(--text-sub); line-height: 1.9; }

.room-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  background: #fff;
  padding: 14px;
  transition: box-shadow .3s;
}
.room-card:hover { box-shadow: 0 8px 24px rgba(30, 27, 23, .08); }
.room-card.is-disabled { opacity: .55; }
.room-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room-card__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.room-card__cap { font-size: 11px; color: var(--text-sub); }
.room-card h4 { font-family: var(--f-head); font-size: 17px; letter-spacing: .12em; margin: 6px 0 2px; }
.room-card__desc { font-size: 12px; color: var(--text-sub); line-height: 1.8; margin: 0; }
.room-card__price { margin: 6px 0 0; font-size: 12px; }
.room-card__price strong { font-size: 22px; font-weight: 500; margin: 0 2px; }
.room-card__price small { display: block; font-size: 11px; color: var(--text-sub); line-height: 1.6; }
.room-card__btn {
  font: inherit; font-family: var(--f-head); font-size: 14px; letter-spacing: .2em;
  color: #fff; background: var(--shu); border: 1px solid var(--shu);
  padding: 12px 22px; cursor: pointer; white-space: nowrap;
  transition: background .3s, color .3s;
}
.room-card__btn:hover:not(:disabled) { background: #fff; color: var(--shu); }
.room-card__btn:disabled { background: #b5ada2; border-color: #b5ada2; cursor: default; }

.badge { font-size: 11px; letter-spacing: .1em; padding: 0 10px; line-height: 2; color: #fff; }
.badge--ok { background: var(--koke); }
.badge--few { background: var(--kincha); }
.badge--full { background: #8a847b; }
.badge--na { background: transparent; color: var(--text-sub); border: 1px solid rgba(42, 38, 34, .25); }

/* ---------- 予約モーダル ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(20, 18, 15, .75); }
.modal__box {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--kinari);
  padding: 44px 44px 36px;
  border-top: 4px solid var(--shu);
  transform: translateY(16px);
  transition: transform .4s;
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute; top: 10px; right: 14px;
  font-size: 26px; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--text-sub);
}
.modal__close:hover { color: var(--shu); }
.modal__title { font-family: var(--f-head); font-size: 22px; letter-spacing: .2em; margin: 4px 0 20px; }
.modal__summary {
  display: grid; grid-template-columns: 6em minmax(0, 1fr);
  font-size: 13px; line-height: 1.8;
  background: #fff; padding: 14px 18px; margin: 0 0 24px;
}
.modal__summary dt { color: var(--kincha); font-family: var(--f-head); }
.modal__summary dt, .modal__summary dd { padding: 3px 0; }

.book-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.book-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; letter-spacing: .1em; }
.book-form label.full, .book-form__error, .book-form__submit, .book-form__note { grid-column: 1 / -1; }
.req {
  display: inline-block; margin-left: 8px; font-size: 10px; color: #fff;
  background: var(--shu); padding: 0 6px; line-height: 1.7; vertical-align: middle;
}
/* ラベル文字と「必須」を横並びにする */
.book-form label:has(.req) { display: grid; grid-template-columns: auto 1fr; align-items: center; row-gap: 4px; }
.book-form label:has(.req) .req { justify-self: start; }
.book-form label:has(.req) input { grid-column: 1 / -1; }
.book-form input, .book-form select, .book-form textarea {
  font: inherit; font-size: 15px; letter-spacing: .04em;
  padding: 9px 10px; border: 1px solid rgba(42, 38, 34, .25); background: #fff; color: var(--text);
}
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: 2px solid var(--kincha); outline-offset: -1px; }
.book-form__error { min-height: 1.4em; font-size: 13px; color: var(--shu); margin: 0; }
.book-form__submit {
  font: inherit; font-family: var(--f-head); font-size: 16px; letter-spacing: .3em;
  color: #fff; background: var(--shu); border: 1px solid var(--shu); padding: 14px; cursor: pointer;
  transition: background .3s, color .3s;
  width: 100%;
}
.book-form__submit:hover { background: #fff; color: var(--shu); }
.book-form__note { font-size: 11px; color: var(--text-sub); text-align: center; margin: 0; }
.done__num { font-size: 14px; margin-bottom: 16px; }
.done__num strong { font-size: 20px; letter-spacing: .12em; color: var(--shu); margin-left: 6px; }
.done__msg { font-size: 14px; margin-bottom: 24px; line-height: 2.2; }

@media (max-width: 960px) {
  .vacancy { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .room-card { grid-template-columns: 110px minmax(0, 1fr); }
  .room-card__action { grid-column: 1 / -1; }
  .room-card__btn { width: 100%; }
}
@media (max-width: 480px) {
  .cal, .results { padding: 20px 14px; }
  .modal__box { padding: 36px 20px 28px; }
  .book-form { grid-template-columns: 1fr; }
  .results__cond span { display: block; margin-left: 0; }
}
