/* florasKIN — 予約モーダル（方法選択→分岐 / 既存カラー・ぷっくりボタン） */

.rsv-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rsv-modal--open { display: flex; }
.rsv-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 34, 51, 0.55);
  backdrop-filter: blur(2px);
}
.rsv-modal__container {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rsv-modal__header {
  position: relative;
  padding: 16px 52px 16px 22px;
  border-bottom: 1px solid #f0ece2;
}
.rsv-modal__title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0d2233;
  letter-spacing: 0.06em;
}
.rsv-modal__close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #6b7a89;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.rsv-modal__close:hover { background: #f4f1ea; color: #0d2233; }

.rsv-progress { display: none !important; }

.rsv-content {
  overflow-y: auto;
  padding: 18px 20px 18px;
}

/* ── 進行バー（①②③④・番号付き） ─────────── */
.rsv-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 4px 0 16px;
}
.rsv-step {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b3a888;
  background: #f3eede;
  border: 1px solid #e6ddca;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.rsv-step--done {
  color: #ffffff;
  background: #cdb98f;
  border-color: #cdb98f;
}
.rsv-step--now {
  color: #ffffff;
  background: #B8966A;
  border-color: #B8966A;
  box-shadow: 0 3px 10px rgba(184, 150, 106, 0.4);
}
.rsv-steps__line {
  flex: 1 1 auto;
  max-width: 46px;
  height: 2px;
  background: #e6ddca;
  transition: background 0.2s;
}
.rsv-steps__line--done { background: #cdb98f; }

/* ── イントロ見出し ─────────── */
.rsv-intro { text-align: center; margin-bottom: 16px; }
.rsv-intro__title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0d2233;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.rsv-intro__note {
  font-size: 0.8rem;
  color: #6b7a89;
  margin: 0;
  line-height: 1.65;
}

/* ── STEP1: 方法選択カード ───────────
   店舗カード（.rsv-shop-btn）と同じデザイン言語を使用。
   .rsv-method-card はJSのフック用クラス（見た目は .rsv-shop-btn 側で統一） */
.rsv-method-card .rsv-shop-btn__meta { margin-top: 6px; }

/* ── STEP1: 「店舗から探す」区切り見出し ─────────── */
.rsv-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 6px;
}
.rsv-section-head::before,
.rsv-section-head::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: #e6ddca;
}
.rsv-section-head span {
  flex: 0 0 auto;
  font-family: 'Shippori Mincho', serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #0d2233;
  letter-spacing: 0.04em;
}
.rsv-section-sub {
  margin: 0 0 14px;
  text-align: center;
  font-size: 0.78rem;
  color: #6b7a89;
  line-height: 1.6;
}

/* ── 戻る ─────────── */
.rsv-back {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: #6b7a89;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  margin-bottom: 6px;
  transition: color 0.15s;
}
.rsv-back:hover { color: #b07f2e; }
.rsv-back span { font-size: 1.1rem; line-height: 1; }

/* ── 選択チップ ─────────── */
.rsv-field { margin-bottom: 16px; }
.rsv-field__label {
  display: block;
  font-family: 'Shippori Mincho', serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0d2233;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.rsv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rsv-chip {
  flex: 0 1 auto;
  padding: 10px 15px;
  background: #ffffff;
  border: 1px solid #e6ddca;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7a89;
  cursor: pointer;
  box-shadow: 0 2px 0 #efe7d5;
  transition: border-color 0.16s, background 0.16s, color 0.16s, box-shadow 0.12s, transform 0.08s;
}
.rsv-chip:hover { border-color: #B8966A; color: #0d2233; }
.rsv-chip:active { transform: translateY(2px); box-shadow: 0 0 0 #efe7d5; }
.rsv-chip--on {
  background: #B8966A;
  border-color: #B8966A;
  color: #ffffff;
  box-shadow: 0 3px 0 #8f6f42, 0 6px 14px rgba(184, 150, 106, 0.3);
}

/* ── プライマリ「ぷっくり」ボタン ─────────── */
.rsv-primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 20px;
  padding: 16px 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Shippori Mincho', serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: linear-gradient(180deg, #ccae80 0%, #B8966A 58%, #a9854f 100%);
  box-shadow: 0 6px 0 #8c6c40, 0 12px 22px rgba(184, 150, 106, 0.38), inset 0 1.5px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.09s ease, box-shadow 0.14s ease, filter 0.14s ease;
}
.rsv-primary-btn:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 7px 0 #8c6c40, 0 16px 28px rgba(184, 150, 106, 0.44), inset 0 1.5px 0 rgba(255, 255, 255, 0.55); }
.rsv-primary-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 #8c6c40, 0 3px 10px rgba(184, 150, 106, 0.3), inset 0 1.5px 0 rgba(255, 255, 255, 0.5); }

/* ── 店舗カード（既存本番・ぷっくり強化） ─────────── */
.rsv-shops { display: flex; flex-direction: column; gap: 12px; }
.rsv-shop-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 15px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf6 100%);
  border: 1px solid #e6ddca;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-shadow: 0 4px 0 #eee5d2, 0 9px 20px rgba(184, 150, 106, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.16s, transform 0.09s ease, box-shadow 0.14s ease;
}
.rsv-shop-btn:hover {
  border-color: #B8966A;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #e6dcc4, 0 14px 26px rgba(184, 150, 106, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.rsv-shop-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #eee5d2, 0 3px 10px rgba(184, 150, 106, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7); }

.rsv-shop-btn__body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.rsv-shop-btn__label {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9a7b46;
  background: #f5edd9;
  border: 1px solid #e8dab9;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  margin-bottom: 7px;
}
.rsv-shop-btn__name {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.14rem;
  font-weight: 700;
  color: #0d2233;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.rsv-shop-btn__meta { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; }
.rsv-shop-btn__area { font-size: 0.78rem; color: #6b7a89; line-height: 1.5; }
.rsv-shop-btn__access { font-size: 0.79rem; color: #b07f2e; font-weight: 600; letter-spacing: 0.01em; }

.rsv-shop-btn__assure { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rsv-assure-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a7657;
  background: #f1ede4;
  border: 1px solid #e7ddc8;
  padding: 4px 9px;
  border-radius: 6px;
  line-height: 1.1;
}
.rsv-assure-item::before { content: '✓'; margin-right: 4px; font-size: 0.74rem; color: #b39a6a; }

/* カード内CTA（ぷっくりピル） */
.rsv-shop-btn__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 11px;
  padding: 10px 10px;
  color: #ffffff;
  text-align: center;
  border-radius: 999px;
  font-family: 'Shippori Mincho', serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, #ccae80 0%, #B8966A 60%, #a9854f 100%);
  box-shadow: 0 4px 0 #8c6c40, 0 7px 14px rgba(184, 150, 106, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: filter 0.14s;
}
.rsv-shop-btn:hover .rsv-shop-btn__cta { filter: brightness(1.05); }
.rsv-cta-chevron { font-size: 0.9rem; }

.rsv-shop-btn__arrow {
  flex: 0 0 auto;
  font-size: 1.55rem;
  color: #B8966A;
  font-weight: 300;
  line-height: 1;
}

.rsv-foot-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.7rem;
  color: #a99e86;
  letter-spacing: 0.03em;
}

/* ── 日時ルート: 空き状況ローディング ─────────── */
.rsv-slots-loading { padding: 34px 0 40px; }

/* ── 日時ルート: 日付グリッド（在庫連動） ─────────── */
.rsv-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.rsv-date-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 2px 7px;
  background: #ffffff;
  border: 1px solid #e6ddca;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 3px 0 #efe7d5;
  transition: border-color 0.16s, transform 0.08s, box-shadow 0.12s, background 0.16s;
}
.rsv-date-cell:hover { border-color: #B8966A; background: #fffdf8; }
.rsv-date-cell:active { transform: translateY(2px); box-shadow: 0 0 0 #efe7d5; }
.rsv-date-cell--off {
  cursor: default;
  background: #f6f4ef;
  border-color: #ece7db;
  box-shadow: none;
  opacity: 0.55;
}
.rsv-date-cell__wd { font-size: 0.68rem; font-weight: 700; color: #8b97a3; letter-spacing: 0.02em; }
.rsv-date-cell__wd--sat { color: #4a7fb5; }
.rsv-date-cell__wd--sun { color: #c05656; }
.rsv-date-cell__day {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0d2233;
  line-height: 1.2;
}
.rsv-date-cell__mark { font-size: 0.75rem; font-weight: 700; color: #B8966A; line-height: 1.1; }
.rsv-date-cell--off .rsv-date-cell__mark { color: #c4bda9; }

/* ── 日時ルート: 日付ページ送り（前の2週間/次の2週間） ─────────── */
.rsv-date-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.rsv-date-nav__btn {
  flex: 1 1 0;
  text-align: center;
  padding: 11px 8px;
  font-size: 0.82rem;
}
.rsv-date-nav__btn:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* ── 日時ルート: 時間チップ ─────────── */
.rsv-chips--times { gap: 7px; }
.rsv-chip--time {
  min-width: 64px;
  text-align: center;
  padding: 9px 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

/* ── 鮮度表記 ─────────── */
.rsv-fresh-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: #a99e86;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* ── 空きあり店舗カードのバッジ・日時強調 ─────────── */
.rsv-shop-btn__label--ok {
  color: #ffffff;
  background: linear-gradient(180deg, #ccae80 0%, #B8966A 100%);
  border-color: #B8966A;
}
.rsv-datetime-em {
  color: #b07f2e;
  font-weight: 700;
  font-size: 0.92rem;
}

/* ── 予約ページへ移行中 ─────────── */
.rsv-redirecting { text-align: center; padding: 44px 20px 40px; }
.rsv-redirecting__spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 20px;
  border: 3px solid #ece3d0;
  border-top-color: #B8966A;
  border-radius: 50%;
  animation: rsv-spin 0.7s linear infinite;
}
@keyframes rsv-spin { to { transform: rotate(360deg); } }
.rsv-redirecting__title {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0d2233;
  margin: 0 0 10px;
  letter-spacing: 0.03em;
  line-height: 1.6;
}
.rsv-redirecting__hint {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: #f7f4ec;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #6b7a89;
  line-height: 1.7;
}
.rsv-redirecting__hint strong { color: #b07f2e; }
.rsv-redirecting__sub { font-size: 0.74rem; color: #6b7a89; margin: 0; line-height: 1.65; }
.rsv-redirecting__sub a { color: #b07f2e; font-weight: 700; text-decoration: underline; }

/* ── モバイル ─────────── */
@media (max-width: 480px) {
  .rsv-modal { padding: 0; align-items: flex-end; }
  .rsv-modal__container { max-width: 100%; max-height: 90vh; border-radius: 16px 16px 0 0; }
  .rsv-content { padding: 16px 15px 16px; }
  .rsv-shop-btn { padding: 14px 13px; gap: 9px; }
  .rsv-shop-btn__name { font-size: 1.1rem; }
  .rsv-chip { font-size: 0.8rem; padding: 10px 13px; }
  .rsv-primary-btn { font-size: 0.98rem; padding: 15px; }
  .rsv-intro__title { font-size: 1.06rem; }
  .rsv-steps__line { max-width: 38px; }
}
