/* YL Reservation フロントスタイル */
:root {
  --ylr-color: #1a3a5c;
  --ylr-btn: #ff8c00;
  --ylr-btn-text: #ffffff;
  --ylr-radius: 12px;
  --ylr-gray: #f4f8fc;
  --ylr-border: #e4edf5;
  --ylr-muted: #6a8aaa;
}

.ylr-wrap { font-family: 'Noto Sans JP', sans-serif; max-width: 640px; margin: 0 auto; }

/* ── ステップ ── */
.ylr-step { margin-bottom: 32px; }
.ylr-step--hidden { display: none; }
.ylr-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ylr-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ylr-color); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.ylr-step-title { font-size: 17px; font-weight: 700; color: var(--ylr-color); }
.ylr-back-btn {
  margin-left: auto; font-size: 13px; color: var(--ylr-muted);
  background: none; border: none; cursor: pointer; text-decoration: underline;
}

/* ── カレンダー ── */
.ylr-calendar-wrap { background: #fff; border: 1.5px solid var(--ylr-border); border-radius: var(--ylr-radius); padding: 20px; }
.ylr-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ylr-cal-prev, .ylr-cal-next {
  background: none; border: 1.5px solid var(--ylr-border); border-radius: 8px;
  width: 36px; height: 36px; cursor: pointer; font-size: 20px; color: var(--ylr-color);
  display: flex; align-items: center; justify-content: center;
}
.ylr-cal-month-label { font-size: 20px; font-weight: 700; color: var(--ylr-color); }
.ylr-cal-table { width: 100%; border-collapse: collapse; }
.ylr-cal-table th { text-align: center !important; font-size: 15px; color: var(--ylr-muted); padding: 8px 0; font-weight: 700; }
.ylr-sun { color: var(--ylr-sun-color, #e44); background: var(--ylr-sun-bg, transparent); }
.ylr-sat { color: var(--ylr-sat-color, #3b9eff); background: var(--ylr-sat-bg, transparent); }
.ylr-cal-table th { background: var(--ylr-th-bg, transparent); color: var(--ylr-th-color, var(--ylr-muted)); }
.ylr-cal-table td { text-align: center; padding: 4px; }
.ylr-cal-day {
  width: 44px; height: 44px; border-radius: 8px; border: none;
  font-size: 14px; cursor: pointer; background: none; font-family: inherit;
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  transition: .15s; flex-direction: column; gap: 0; min-width: 0;
}
.ylr-cal-day--available { color: var(--ylr-color); background: var(--ylr-gray); font-weight: 700; }
.ylr-cal-day--available:hover { background: var(--ylr-color); color: #fff; }
.ylr-cal-day--full { color: var(--ylr-muted); background: #fef9ec; }
.ylr-cal-day--closed { color: #ccc; cursor: default; }
.ylr-cal-day--past { color: #ccc; cursor: default; }
.ylr-cal-day--out_of_range { color: #ccc; cursor: default; }
.ylr-cal-day--selected { background: var(--ylr-color) !important; color: #fff !important; }

.ylr-cal-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--ylr-muted); flex-wrap: wrap; }

/* ── 時間枠 ── */
.ylr-slots-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.ylr-slot-btn {
  padding: 12px 8px; border: 1.5px solid var(--ylr-color); border-radius: 8px;
  background: #fff; color: var(--ylr-color); font-size: 14px; font-weight: 700;
  cursor: pointer; text-align: center; transition: .15s; font-family: inherit;
}
.ylr-slot-btn:hover { background: var(--ylr-color); color: #fff; }
.ylr-no-slots { color: var(--ylr-muted); font-size: 14px; text-align: center; padding: 24px 0; }

/* ── フォーム ── */
.ylr-booking-summary { font-size: 14px; font-weight: 700; color: var(--ylr-color); background: var(--ylr-gray); border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; }
.ylr-selected-date-label { font-size: 15px; font-weight: 700; color: var(--ylr-color); margin-bottom: 16px; }
.ylr-field { margin-bottom: 18px; }
.ylr-label { display: block; font-size: 14px; font-weight: 700; color: var(--ylr-color); margin-bottom: 6px; }
.ylr-req { background: #e44; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 50px; margin-left: 6px; font-weight: 700; }
.ylr-opt { background: var(--ylr-border); color: var(--ylr-muted); font-size: 11px; padding: 2px 8px; border-radius: 50px; margin-left: 6px; }
.ylr-input, .ylr-textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--ylr-border); border-radius: 8px;
  font-size: 15px; font-family: inherit; color: #1a3a5c; background: #fff; transition: .2s;
}
.ylr-input:focus, .ylr-textarea:focus { outline: none; border-color: var(--ylr-color); box-shadow: 0 0 0 3px rgba(26,58,92,.1); }
.ylr-textarea { resize: vertical; }
.ylr-field-error { font-size: 12px; color: #e44; margin-top: 4px; display: block; }
.ylr-privacy-note { font-size: 12px; color: var(--ylr-muted); margin-bottom: 16px; }
.ylr-hp { display: none; }

/* ── 送信ボタン ── */
.ylr-submit-wrap { text-align: center; }
.ylr-submit-btn {
  background: var(--ylr-btn); color: var(--ylr-btn-text);
  border: none; border-radius: 50px; padding: 16px 48px;
  font-size: 17px; font-weight: 700; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 0 rgba(0,0,0,.15); transition: .15s;
}
.ylr-submit-btn:hover { transform: translateY(-2px); }
.ylr-submit-btn:disabled { opacity: .7; cursor: default; transform: none; }

/* ── メッセージ ── */
.ylr-message { border-radius: 8px; padding: 14px 18px; font-size: 14px; margin-bottom: 16px; }
.ylr-message.error { background: #fff0f0; border: 1.5px solid #f5a0a0; color: #c0392b; }
.ylr-message.success { background: #f0fff4; border: 1.5px solid #6fcf97; color: #1a7a4a; }

/* ── 完了画面 ── */
.ylr-complete { text-align: center; padding: 48px 24px; }
.ylr-complete-icon { width: 64px; height: 64px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.ylr-complete-title { font-size: 20px; font-weight: 700; color: var(--ylr-color); margin-bottom: 10px; }
.ylr-complete-desc { font-size: 14px; color: var(--ylr-muted); }

/* ── お知らせ ── */
.ylr-notice { border-radius: 8px; padding: 14px 18px; font-size: 14px; margin-bottom: 24px; }
.ylr-notice--success { background: #f0fff4; border: 1.5px solid #6fcf97; color: #1a7a4a; }
.ylr-notice--error   { background: #fff0f0; border: 1.5px solid #f5a0a0; color: #c0392b; }

/* ── SP対応 ── */
@media (max-width: 480px) {
  .ylr-calendar-wrap { padding: 12px 8px; }
  .ylr-cal-table { table-layout: fixed; width: 100%; }
  .ylr-cal-table th { font-size: 11px; padding: 6px 2px; }
  .ylr-cal-table td { padding: 2px; }
  .ylr-cal-day {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    font-size: 11px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
  }
  .ylr-cal-mark { font-size: 10px; }
  .ylr-slots-wrap { grid-template-columns: repeat(3, 1fr); }
  .ylr-cal-month-label { font-size: 16px; }
}

/* ── カレンダー日付内の凡例記号 ── */
.ylr-cal-day { flex-direction: column; gap: 0; }
.ylr-cal-mark { font-size: 12px; line-height: 1; display: block; }
.ylr-cal-mark { color: #22c55e; }
.ylr-cal-mark--full { color: #f0c744; }
.ylr-cal-mark--closed { color: #ccc; }

/* ── 完了画面の見出し左ボーダーを削除（WordPressテーマの上書き） ── */
.ylr-complete-title {
  border-left: none !important;
  padding-left: 0 !important;
}

/* ── 曜日欄カスタムカラー ── */
.ylr-cal-table thead th {
    background: var(--ylr-th-bg, transparent);
    color: var(--ylr-th-color, var(--ylr-muted));
    border-bottom: 2px solid var(--ylr-th-bg, var(--ylr-border));
}

/* ── メニュー選択 ── */
.ylr-menus-wrap { display: grid; gap: 10px; }
.ylr-menu-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border: 1.5px solid var(--ylr-border);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: .15s;
    width: 100%;
}
.ylr-menu-btn:hover { border-color: var(--ylr-color); background: var(--ylr-gray); }
.ylr-menu-btn.selected { border-color: var(--ylr-color); background: #eef6ff; border-width: 2px; }
.ylr-menu-name { font-size: 15px; font-weight: 700; color: var(--ylr-color); flex: 1; }
.ylr-menu-price { font-weight: 700; color: var(--ylr-color); }
.ylr-menu-desc { font-size: 12px; color: var(--ylr-muted); margin-top: 2px; display: block; }
.ylr-menu-duration {
    font-size: 12px;
    font-weight: 700;
    color: var(--ylr-muted);
    background: var(--ylr-gray);
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ylr-menu-btn.selected .ylr-menu-duration { background: #ddeeff; }
