/* 予約画面モック（/reserve/）専用。色・書体は lower.css の変数だけを使う（新しい色は足さない） */

.r-head { padding: 0 0 28px; }
.r-head h1 { margin: 22px 0 0; font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.3; letter-spacing: 0.02em; }
.r-head .l-lead { margin-top: 12px; }
.r-head .l-lead + .l-lead { margin-top: 2px; }

.r-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-bottom: 88px; }
.r-steps { display: grid; gap: 52px; min-width: 0; }
.r-step { min-width: 0; scroll-margin-top: 104px; }
.r-step-title { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 1.4rem; line-height: 1.4; }
.r-num { display: inline-grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--white); background: var(--ink); font-family: var(--latin); font-size: 1rem; }
.r-hint { margin: 0; color: var(--sub); }

/* ①棟 */
.r-houses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.r-house { position: relative; display: flex; overflow: hidden; flex-direction: column; padding: 0; border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--white); text-align: left; cursor: pointer; transition: border-color 180ms ease, box-shadow 180ms ease; }
.r-house--villa { --accent: var(--villa); }
.r-house--resort { --accent: var(--resort); }
.r-house--kids { --accent: var(--kids); }
.r-house:hover { border-color: var(--accent); }
.r-house[aria-checked="true"] { border-color: var(--accent); box-shadow: var(--shadow); }
.r-house img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.r-house-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.r-house-place { color: var(--accent); font-size: 0.86rem; font-weight: 700; }
.r-house-name { margin-top: 2px; font-family: var(--latin); font-size: 1.08rem; line-height: 1.35; }
.r-house-catch { margin-top: 8px; color: var(--sub); font-size: 0.9rem; line-height: 1.7; }
.r-house-cap { margin-top: auto; padding-top: 10px; font-size: 0.88rem; font-weight: 700; }
.r-house-check { position: absolute; top: 12px; left: 12px; display: none; min-height: 30px; align-items: center; padding: 2px 12px; border-radius: 999px; color: var(--white); background: var(--accent); font-size: 0.82rem; font-weight: 700; }
.r-house[aria-checked="true"] .r-house-check { display: inline-flex; }

/* ②カレンダー */
.r-cal { max-width: 560px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.r-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.r-cal-month { margin: 0; font-size: 1.15rem; font-weight: 700; }
.r-cal-nav { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--white); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.r-cal-nav:disabled { opacity: 0.35; cursor: default; }
.r-cal-week, .r-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.r-cal-week { margin-top: 14px; color: var(--sub); font-size: 0.8rem; font-weight: 700; text-align: center; }
.r-cal-grid { row-gap: 4px; margin-top: 6px; }
.r-day { display: flex; min-width: 0; min-height: 58px; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 0; border: 0; border-radius: 10px; color: var(--ink); background: transparent; font-family: var(--font); cursor: pointer; }
.r-day:disabled { cursor: default; }
.r-day-n { font-size: 0.98rem; font-weight: 700; line-height: 1.2; }
.r-day-p { font-size: 0.66rem; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; color: var(--sub); }
.r-day--off { color: var(--line); }
.r-day--off .r-day-p { color: var(--line); }
.r-day--full .r-day-n { color: var(--sub); opacity: 0.45; }
.r-day--full .r-day-p { color: var(--sub); opacity: 0.6; font-size: 0.8rem; }
.r-day--out-ok .r-day-n { opacity: 1; color: var(--ink); }
.r-day:not(:disabled):hover { background: var(--sand); }
.r-day--range { border-radius: 0; background: var(--sand); }
.r-day--start, .r-day--end { color: var(--white); background: var(--brand); }
.r-day--start .r-day-p, .r-day--end .r-day-p { color: var(--white); }
.r-day--start { border-radius: 10px 0 0 10px; }
.r-day--end { border-radius: 0 10px 10px 0; }
.r-day--start.r-day--single { border-radius: 10px; }
.r-day--start:hover, .r-day--end:hover { background: var(--brand) !important; }
.r-day--loading .r-day-p { visibility: hidden; }
.r-cal-status { min-height: 1.6em; margin: 10px 0 0; color: var(--sub); font-size: 0.9rem; }
.r-cal-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; padding: 0; color: var(--sub); font-size: 0.84rem; list-style: none; }
.r-cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.r-lg { display: inline-flex; min-width: 40px; justify-content: center; padding: 0 4px; border: 1px solid var(--line); border-radius: 6px; font-size: 0.72rem; }
.r-lg--full { opacity: 0.6; }

/* ③人数 */
.r-stepper { display: inline-flex; align-items: center; gap: 18px; padding: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.r-stepper-btn { display: grid; width: 52px; height: 52px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.r-stepper-btn:disabled { opacity: 0.35; cursor: default; }
.r-stepper-val { min-width: 64px; margin: 0; font-size: 1.15rem; font-weight: 700; text-align: center; }
.r-stepper-val output { font-family: var(--latin); font-size: 1.6rem; }

/* ④内容の確認（PC は右に固定） */
.r-summary { position: sticky; top: 112px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.r-sum-list { margin: 0; }
.r-sum-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.r-sum-list dt { flex: 0 0 auto; color: var(--sub); font-size: 0.9rem; font-weight: 700; }
.r-sum-list dd { margin: 0; font-weight: 700; text-align: right; }
.r-sum-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; }
.r-sum-label { margin: 0; font-weight: 700; }
.r-sum-price { margin: 0; font-family: var(--latin); font-size: 1.8rem; line-height: 1.3; }
.r-sum-msg { min-height: 1.6em; margin: 6px 0 0; color: var(--sub); font-size: 0.9rem; }
.r-go { width: 100%; margin-top: 12px; }
.r-go[aria-disabled="true"] { border-color: var(--line); color: var(--sub); background: var(--line); box-shadow: none; pointer-events: none; }

/* スマホの追従バー（PC では出さない） */
.r-bar { display: none; }

@media (max-width: 1023px) {
  .r-layout { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .r-summary { position: static; box-shadow: none; }
}

@media (max-width: 767px) {
  body.page-reserve { padding-bottom: 84px; }
  .r-head { padding-bottom: 12px; }
  .r-head h1 { margin-top: 14px; }
  .r-head .l-lead { font-size: 0.92rem; }
  .r-layout { padding-bottom: 64px; }
  .r-steps { gap: 44px; }
  .r-step { scroll-margin-top: 84px; }
  .r-step-title { font-size: 1.25rem; margin-bottom: 16px; }
  .r-houses { grid-template-columns: 1fr; gap: 14px; }
  .r-house img { aspect-ratio: 16 / 9; }
  .r-house-body { padding: 14px 16px 16px; }
  .r-cal { margin-inline: -8px; padding: 14px 8px 16px; }
  .r-cal-head { padding: 0 6px; }
  .r-cal-legend, .r-cal-status, .r-cal .note { padding: 0 6px; }
  .r-day { min-height: 56px; }
  .r-day-p { font-size: 0.68rem; }
  .r-summary { padding: 20px; }
  .r-bar {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 -8px 24px rgba(27, 43, 63, 0.11);
  }
  .r-bar-info { min-width: 0; flex: 1; }
  .r-bar-dates { margin: 0; overflow: hidden; font-size: 0.82rem; font-weight: 700; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
  .r-bar-price { margin: 0; font-family: var(--latin); font-size: 1.15rem; line-height: 1.35; }
  .r-bar .r-go { width: auto; flex: 0 0 auto; margin: 0; padding-inline: 20px; min-height: 52px; }
}
