/* reservation-inquiry.css - 予約確認・変更画面用（2024/07/11・安定・モバイル対応・ステップ制御追加＋カレンダーUI・ボタン拡張） */

/* --- 全体ラップ --- */
.ckr-reservation-wrap {
  font-family: 'Segoe UI', 'Yu Gothic', 'Meiryo', sans-serif;
  background: #fff;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 10px;
  border-radius: 16px;
  box-shadow: 0 4px 24px #bbb6, 0px 4px 12px #c9e7ce44;
  box-sizing: border-box;
}

/* --- ステップバー（見た目だけ） --- */
.ckr-step-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 20px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
#ckrStepProgress {
  height: 100%;
  background: #63a85e;
  border-radius: 4px;
  width: 100%;
  transition: width 0.3s;
}

/* --- タイトル・テキスト --- */
.ckr-step h2 {
  font-size: 20px;
  color: #444;
  margin-bottom: 12px;
  font-weight: bold;
}
.ckr-step h3 {
  font-size: 16px;
  color: #444;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}
.ckr-step p {
  font-size: 14px;
  margin-bottom: 12px;
  color: #444;
}

/* --- フォーム要素 --- */
.ckr-form-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
.ckr-form-row label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.ckr-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid #c2c2c2;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
  background: #fafcf8;
}
.ckr-input:focus {
  border-color: #63a85e;
  outline: none;
  background: #f3fff3;
}

/* --- ボタン群 --- */
.ckr-button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  margin-bottom: 10px;
}
.ckr-btn {
  flex: 1;
  padding: 10px 0;
  background-color: #63a85e;
  color: #fff;
  font-size: 15px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  transition: background 0.18s, opacity 0.16s;
  min-width: 110px;
  max-width: 100%;
}
.ckr-btn:not(:last-child) {
  margin-right: 0;
}
.ckr-btn-sub {
  background-color: #aaa;
}
.ckr-btn-warn {
  background-color: #c94848;
}
.ckr-btn:hover, .ckr-btn:focus {
  opacity: 0.9;
  background: #549c50;
}

/* --- メッセージ --- */
.ckr-message {
  color: #d33;
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 8px;
  line-height: 1.6;
}

/* --- 詳細表示ボックス --- */
.ckr-detail-box {
  background: #f8faf7;
  border: 1px solid #c6d4c6;
  padding: 14px 13px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  word-break: break-all;
}
.ckr-detail-box p {
  margin: 7px 0;
}

/* --- レスポンシブ調整 --- */
@media (max-width: 540px) {
  .ckr-reservation-wrap {
    padding: 10px 2vw;
    max-width: 98vw;
    border-radius: 10px;
  }
  .ckr-step h2 {
    font-size: 17px;
  }
  .ckr-step h3 {
    font-size: 15px;
  }
  .ckr-input, .ckr-btn {
    font-size: 14px;
  }
  .ckr-btn {
    padding: 9px 0;
    min-width: 85px;
  }
  .ckr-detail-box {
    font-size: 14px;
    padding: 10px 6px;
  }
}

/* --- ステップ表示制御（必須！） --- */
.ckr-step { display: none; }
.ckr-step.active { display: block; }
.ckr-step.active {
  display: block !important;
}

/* ==================== ▼ここからグリッドカレンダー・カテゴリ/メニュー拡張部分追加 ==================== */

/* --- カテゴリ・メニュー・オプションボタン群 --- */
.ckr-category-buttons, .ckr-menu-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  margin-top: 7px;
}
.ckr-category-btn, .ckr-menu-btn {
  background: #f4f7f6;
  color: #333;
  border: 1.5px solid #6ba967;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 18px;
  cursor: pointer;
  transition: .18s;
  font-size: 1.01rem;
}
.ckr-category-btn.active, .ckr-menu-btn.active {
  background: #63a85e;
  color: #fff;
  border: 1.5px solid #63a85e;
}
.ckr-option-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.ckr-option-label {
  font-size: 1.01rem;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* --- カレンダーグリッド --- */
.ckr-calendar-grid {
  margin-top: 9px;
  overflow-x: auto;
}
.ckr-calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.ckr-calendar-table th, .ckr-calendar-table td {
  border: 1px solid #e6e6e6;
  text-align: center;
  min-width: 56px;
  font-size: 1.00rem;
  height: 38px;
  padding: 2px 0;
}
.ckr-calendar-table th {
  background: #f2f8f2;
  color: #3c5c39;
  font-weight: 600;
}
.ckr-calendar-time-btn {
  background: #e6fae6;
  border: none;
  color: #227733;
  font-weight: 600;
  padding: 4px 0;
  width: 95%;
  border-radius: 8px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: .17s;
}
.ckr-calendar-time-btn.active {
  background: #63a85e;
  color: #fff;
}
.ckr-calendar-disabled {
  background: #f5f5f5 !important;
}
@media (max-width: 599px) {
  .ckr-calendar-table th, .ckr-calendar-table td {
    min-width: 36px;
    font-size: .94rem;
    height: 32px;
  }
}