.hp-booking {
  width: 100%;
  max-width: 760px;
  margin: 48px auto;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #263442;
}

.hp-booking *,
.hp-booking *::before,
.hp-booking *::after {
  box-sizing: border-box;
}

/* =========================
   メインパネル
========================= */

.hp-booking__panel {
  border: 1px solid #dfe7ee;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(18, 48, 77, 0.08);
}

.hp-booking__title {
  padding: 22px 16px;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  border-bottom: 1px solid #e4ebf1;
  color: #162536;
}

/* =========================
   月送り
========================= */

.hp-booking__month-nav {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid #e4ebf1;
  text-align: center;
}

.hp-booking__month-nav strong {
  font-size: 19px;
  font-weight: 800;
  color: #17283a;
  letter-spacing: 0.04em;
}

.hp-booking__nav-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: #0b4a63;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.hp-booking__nav-btn:hover {
  background: transparent;
  color: #1787d4;
  transform: translateY(-1px);
}

.hp-booking__nav-btn:active {
  transform: translateY(0);
  opacity: 0.72;
}

#hpPrevMonth,
#hpNextMonth {
  position: relative;
  top: -1px;
}

/* =========================
   カレンダー
========================= */

.hp-booking__calendar-wrap {
  max-width: 100%;
  overflow-x: visible;
  background: #fff;
}

.hp-calendar {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.hp-calendar th {
  height: 40px;
  padding: 8px 6px;
  border: 1px solid #d8e2ea;
  background: #073f53;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  word-break: keep-all;
  text-align: left;
}

.hp-calendar th.sat {
  color: #68c3ff;
}

.hp-calendar th.sun {
  color: #ff8fa0;
}

.hp-calendar td {
  height: 78px;
  border: 1px solid #dfe7ee;
  text-align: center;
  vertical-align: top;
  background: #fff;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hp-calendar__empty {
  background: #fbfcfd !important;
}

.hp-calendar__day {
  position: relative;
  padding: 9px 6px;
}

.hp-calendar__day.is-clickable {
  cursor: pointer;
}

.hp-calendar__day.is-clickable:hover {
  background: #f3faff;
  box-shadow: inset 0 0 0 2px rgba(23, 135, 212, 0.14);
}

.hp-calendar__day.is-selected {
  background: #0f6c94 !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.hp-calendar__date {
  display: block;
  font-size: 13px;
  line-height: 1;
  color: #405163;
  font-weight: 600;
}

.hp-calendar__status {
  display: block;
  margin-top: 15px;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hp-calendar__day.is-available .hp-calendar__status {
  color: #087ee1;
}

.hp-calendar__day.is-limited .hp-calendar__status {
  color: #f0a236;
}

.hp-calendar__day.is-full .hp-calendar__status,
.hp-calendar__day.is-past .hp-calendar__status,
.hp-calendar__day.is-closed .hp-calendar__status {
  color: #9aa6b2;
}

.hp-calendar__day.is-closed,
.hp-calendar__day.is-past,
.hp-calendar__day.is-full {
  background: #f7f9fb;
}

.hp-calendar__day.is-selected .hp-calendar__date,
.hp-calendar__day.is-selected .hp-calendar__status {
  color: #fff;
}

.hp-calendar__day.is-sat .hp-calendar__date {
  color: #0074cf;
}

.hp-calendar__day.is-sun .hp-calendar__date {
  color: #d6002a;
}

/* =========================
   凡例
========================= */

.hp-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 17px 20px;
  list-style: none;
  background: #fbfcfd;
  border-top: 1px solid #e4ebf1;
  font-size: 13px;
  color: #465768;
}

.hp-calendar-legend span {
  font-weight: 900;
}

.hp-calendar-legend .is-available {
  color: #087ee1;
}

.hp-calendar-legend .is-limited {
  color: #f0a236;
}

.hp-calendar-legend .is-full,
.hp-calendar-legend .is-closed {
  color: #9aa6b2;
}

/* =========================
   時間枠・フォーム共通
========================= */

.hp-booking__slots,
.hp-booking__form {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid #dfe7ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 48, 77, 0.06);
}

.hp-booking__slots h3,
.hp-booking__form h3 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 800;
  color: #17283a;
  letter-spacing: 0.02em;
}

/* =========================
   時間枠
========================= */

.hp-time-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hp-time-slot {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #d8e2ea;
  border-radius: 12px;
  background: #fff;
  color: #253647;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-time-slot.is-available:hover {
  border-color: #1787d4;
  background: #f3faff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 135, 212, 0.10);
}

.hp-time-slot.is-selected {
  border-color: #0f6c94;
  background: linear-gradient(135deg, #0f6c94 0%, #1787d4 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 135, 212, 0.20);
}

.hp-time-slot.is-booked {
  background: #f6f8fa;
  color: #9aa6b2;
  cursor: not-allowed;
  box-shadow: none;
}

.hp-time-slot__time {
  font-size: 15px;
  font-weight: 800;
}

.hp-time-slot__label {
  font-size: 21px;
  line-height: 1;
  font-weight: 900;
}

.hp-time-slot.is-available .hp-time-slot__label {
  color: #087ee1;
}

.hp-time-slot.is-selected .hp-time-slot__label {
  color: #fff;
}

/* =========================
   フォーム
========================= */

.hp-form-row {
  margin-bottom: 17px;
}

.hp-form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: #253647;
}

.hp-form-row label span {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e84258;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.hp-form-row input,
.hp-form-row select,
.hp-form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfd9e2;
  border-radius: 10px;
  background: #fff;
  color: #263442;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-form-row input:focus,
.hp-form-row select:focus,
.hp-form-row textarea:focus {
  outline: none;
  border-color: #1787d4;
  box-shadow: 0 0 0 4px rgba(23, 135, 212, 0.12);
}

.hp-form-selected {
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f3faff;
  border: 1px solid #cfe8fb;
}

.hp-form-selected p {
  margin: 0 0 5px;
  font-size: 13px;
  color: #5f7182;
}

.hp-form-selected strong {
  font-size: 17px;
  color: #0f6c94;
  font-weight: 900;
}

.hp-submit-btn {
  appearance: none;
  width: 100%;
  padding: 16px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f6c94 0%, #1787d4 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(23, 135, 212, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.hp-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(23, 135, 212, 0.28);
}

.hp-submit-btn:disabled {
  background: #aeb8c2;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* =========================
   メッセージ
========================= */

.hp-booking__message {
  margin-top: 17px;
  padding: 14px 16px;
  border-radius: 10px;
  display: none;
  font-weight: 700;
  line-height: 1.7;
}

.hp-booking__message.is-success,
.hp-booking__message.is-error {
  display: block;
}

.hp-booking__message.is-success {
  position: relative;
  padding: 18px 20px 18px 56px;
  background: #f0fff6;
  border: 1px solid #9ed8b1;
  color: #147a37;
  box-shadow: 0 10px 24px rgba(20, 122, 55, 0.12);
  font-size: 16px;
}

.hp-booking__message.is-success::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1b8c46;
  color: #fff;
  font-size: 17px;
  line-height: 26px;
  text-align: center;
  transform: translateY(-50%);
}

.hp-booking__message.is-error,
.hp-error {
  background: #fff4f4;
  border: 1px solid #efb5b5;
  color: #b00020;
}

.hp-loading,
.hp-error {
  padding: 18px;
  text-align: center;
}

/* =========================
   レスポンシブ
========================= */

@media (max-width: 640px) {
  .hp-booking {
    margin: 24px auto;
  }

  .hp-booking__panel {
    border-radius: 14px;
  }

  .hp-booking__title {
    padding: 18px 14px;
    font-size: 16px;
  }

  .hp-booking__month-nav {
    grid-template-columns: 42px 1fr 42px;
    padding: 14px;
  }

  .hp-booking__month-nav strong {
    font-size: 17px;
  }

  .hp-booking__nav-btn {
    width: 38px;
    height: 38px;
    font-size: 29px;
  }

  .hp-booking__slots,
  .hp-booking__form {
    padding: 20px;
    border-radius: 14px;
  }

  .hp-time-slots {
    grid-template-columns: 1fr;
  }

  .hp-calendar th {
    height: 34px;
    padding: 6px 2px;
    font-size: 12px;
    text-align: center;
  }

  .hp-calendar td {
    height: 58px;
  }

  .hp-calendar__day {
    padding: 7px 2px;
  }

  .hp-calendar__date {
    font-size: 12px;
  }

  .hp-calendar__status {
    margin-top: 9px;
    font-size: 18px;
    letter-spacing: 0;
  }

  .hp-calendar-legend {
    padding: 14px 16px;
    gap: 8px 14px;
  }
}
