/* リザスト個別予約 - フロント表示 */
.rsr-booking {
    --rsr-fg: #1f2933;
    --rsr-muted: #6b7684;
    --rsr-line: #e2e6ea;
    --rsr-accent: #2f80ed;
    --rsr-accent-weak: #eaf2fd;
    max-width: 720px;
    margin: 0 auto;
    color: var(--rsr-fg);
    font-size: 15px;
    line-height: 1.7;
}

.rsr-title { margin: 0 0 .4em; font-size: 1.25em; }
.rsr-meta { margin: 0 0 1em; display: flex; gap: .5em; flex-wrap: wrap; }
.rsr-badge {
    display: inline-block;
    padding: .15em .7em;
    border: 1px solid var(--rsr-line);
    border-radius: 999px;
    font-size: .85em;
    color: var(--rsr-muted);
}

/* ステップバー */
.rsr-steps {
    display: flex; list-style: none; margin: 0 0 1.4em; padding: 0;
    counter-reset: none; gap: .3em;
}
.rsr-step {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: .3em;
    font-size: .78em; color: var(--rsr-muted); text-align: center; position: relative;
}
.rsr-step::before {
    content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px;
    background: var(--rsr-line); z-index: 0;
}
.rsr-step:first-child::before { display: none; }
.rsr-step-no {
    position: relative; z-index: 1;
    width: 26px; height: 26px; line-height: 26px; border-radius: 50%;
    background: #fff; border: 2px solid var(--rsr-line); font-weight: 600;
}
.rsr-step.is-current { color: var(--rsr-fg); font-weight: 600; }
.rsr-step.is-current .rsr-step-no { border-color: var(--rsr-accent); color: var(--rsr-accent); }
.rsr-step.is-done .rsr-step-no { background: var(--rsr-accent); border-color: var(--rsr-accent); color: #fff; }
.rsr-step.is-done::before { background: var(--rsr-accent); }

/* メニュー説明 */
.rsr-desc { margin-bottom: 1.4em; }
.rsr-desc-img { max-width: 100%; height: auto; border-radius: 10px; margin-bottom: .8em; }
.rsr-desc-body { margin-bottom: .6em; }

.rsr-guide {
    background: #fbfcfd; border: 1px solid var(--rsr-line); border-radius: 8px;
    padding: .9em 1.1em; margin: 1em 0; font-size: .92em;
}
.rsr-guide p:last-child { margin-bottom: 0; }

/* 確認画面 */
.rsr-confirm { margin-top: 1.4em; border-top: 1px solid var(--rsr-line); padding-top: 1.2em; }
.rsr-summary {
    display: grid; grid-template-columns: 8em 1fr; gap: .5em 1em;
    margin: 0 0 1.4em; padding: 1em; background: #fbfcfd;
    border: 1px solid var(--rsr-line); border-radius: 8px;
}
.rsr-summary dt { color: var(--rsr-muted); font-size: .9em; margin: 0; }
.rsr-summary dd { margin: 0; white-space: pre-wrap; }
.rsr-confirm-actions { display: flex; gap: .8em; flex-wrap: wrap; }
.rsr-back {
    background: #fff; color: var(--rsr-fg); border: 1px solid var(--rsr-line);
    border-radius: 8px; padding: .8em 1.6em; font: inherit; cursor: pointer;
}
.rsr-final {
    background: var(--rsr-accent); color: #fff; border: 0; border-radius: 8px;
    padding: .8em 2em; font: inherit; font-weight: 600; cursor: pointer;
}
.rsr-final:disabled { opacity: .6; cursor: default; }

.rsr-label { font-weight: 600; margin: 0 0 .4em; }
.rsr-note { margin: .8em 0; color: var(--rsr-muted); }

.rsr-options { margin-bottom: 1.2em; }
.rsr-check { display: inline-flex; align-items: center; gap: .4em; margin: 0 1em .4em 0; }
.rsr-choices { display: flex; flex-wrap: wrap; gap: .2em 1em; }

/* カレンダー */
.rsr-calendar { border: 1px solid var(--rsr-line); border-radius: 10px; padding: .8em; }
.rsr-cal-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .6em; font-weight: 600;
}
.rsr-cal-head button {
    background: none; border: 1px solid var(--rsr-line); border-radius: 6px;
    width: 2em; height: 2em; line-height: 1; cursor: pointer; color: var(--rsr-fg);
}
/* minmax(0,1fr) にしないと、1fr の最小幅がセルの内容幅になって狭い画面で横にはみ出す */
.rsr-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.rsr-cell {
    aspect-ratio: 1 / 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: none; border: 1px solid transparent; border-radius: 8px;
    font: inherit; color: inherit; padding: 0; min-width: 0; overflow: hidden;
}
.rsr-dow { font-size: .8em; color: var(--rsr-muted); aspect-ratio: auto; padding: .3em 0; }
.rsr-blank { visibility: hidden; }
.rsr-day { cursor: pointer; border-color: var(--rsr-line); }
.rsr-day:hover:not(:disabled) { background: var(--rsr-accent-weak); }
.rsr-day.is-active { background: var(--rsr-accent); color: #fff; border-color: var(--rsr-accent); }
.rsr-day.is-empty { color: #c3c9d0; cursor: default; border-color: transparent; }
.rsr-dnum { font-size: .95em; }
.rsr-mark { font-size: .8em; }
.rsr-cal-status { margin: .6em 0 0; color: var(--rsr-muted); font-size: .9em; text-align: center; }

/* 時間帯 */
.rsr-slots { margin-top: 1.2em; }
.rsr-slot-list { display: flex; flex-wrap: wrap; gap: .5em; }
.rsr-slot {
    border: 1px solid var(--rsr-line); background: #fff; border-radius: 8px;
    padding: .5em 1em; cursor: pointer; font: inherit;
}
.rsr-slot:hover { border-color: var(--rsr-accent); }
.rsr-slot.is-active { background: var(--rsr-accent); color: #fff; border-color: var(--rsr-accent); }

/* フォーム */
.rsr-form { margin-top: 1.4em; border-top: 1px solid var(--rsr-line); padding-top: 1.2em; }
.rsr-chosen { font-weight: 600; margin: 0 0 1em; }
.rsr-field { display: block; margin-bottom: 1em; }
.rsr-field > span { display: block; margin-bottom: .3em; font-size: .9em; font-weight: 600; }
.rsr-field em { color: #d64545; font-style: normal; }
.rsr-field input[type="text"],
.rsr-field input[type="email"],
.rsr-field input[type="tel"],
.rsr-field input[type="date"],
.rsr-field input[type="datetime-local"],
.rsr-field select,
.rsr-field textarea {
    width: 100%; box-sizing: border-box;
    border: 1px solid var(--rsr-line); border-radius: 8px;
    padding: .6em .7em; font: inherit; background: #fff;
}
.rsr-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.rsr-submit {
    background: var(--rsr-accent); color: #fff; border: 0; border-radius: 8px;
    padding: .8em 2em; font: inherit; font-weight: 600; cursor: pointer;
}
.rsr-submit:disabled { opacity: .6; cursor: default; }
.rsr-error { color: #d64545; margin: .8em 0 0; }

.rsr-done {
    margin-top: 1em; padding: 1.2em; border-radius: 10px;
    background: var(--rsr-accent-weak); border: 1px solid var(--rsr-line);
}
.rsr-done h4 { margin: 0 0 .5em; }
.rsr-notice { padding: .8em; background: #fff8e1; border: 1px solid #ffe0a3; border-radius: 6px; }

@media (max-width: 480px) {
    .rsr-booking { font-size: 14px; }
    .rsr-slot { padding: .5em .8em; }
    .rsr-step-label { font-size: 10px; }
    .rsr-summary { grid-template-columns: 1fr; gap: .1em; padding: .9em; }
    .rsr-summary dt { margin-top: .6em; }
    .rsr-confirm-actions { flex-direction: column-reverse; }
    .rsr-confirm-actions button { width: 100%; }
}

/* ===== TimeRex風の週表示レイアウト ===== */

.rsr-layout-week { max-width: 980px; }

@media (min-width: 900px) {
    .rsr-layout-week {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 36px;
        align-items: start;
    }
    .rsr-layout-week .rsr-side {
        position: sticky; top: 24px;
        padding-right: 4px;
        border-right: 1px solid var(--rsr-line);
    }
    .rsr-layout-week .rsr-side .rsr-title { font-size: 1.3em; }
}
.rsr-main { min-width: 0; }

/* 週グリッド */
.rsr-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.rsr-wcol { min-width: 0; display: flex; flex-direction: column; }
.rsr-wday {
    text-align: center; padding: .3em 0 .5em;
    border-bottom: 1px solid var(--rsr-line); font-size: .8em; line-height: 1.3;
}
.rsr-wdow { display: block; color: var(--rsr-muted); font-size: .9em; }
.rsr-wdate { font-weight: 700; font-size: 1.15em; }
.rsr-dow-0 { color: #d64545; }
.rsr-dow-6 { color: #2f6fed; }
.rsr-wcol.is-today .rsr-wdate { color: var(--rsr-accent); }
.rsr-wcol.is-past { opacity: .45; }

.rsr-wslots {
    display: flex; flex-direction: column; gap: 5px;
    padding: 8px 2px 2px; max-height: 360px; overflow-y: auto;
}
.rsr-wslot {
    border: 1px solid var(--rsr-accent); background: #fff; color: var(--rsr-accent);
    border-radius: 6px; padding: .5em .2em; font: inherit; font-size: .85em;
    cursor: pointer; white-space: nowrap;
}
.rsr-wslot:hover { background: var(--rsr-accent-weak); }
.rsr-wslot.is-active { background: var(--rsr-accent); color: #fff; }
.rsr-wnone { display: block; text-align: center; color: #c3c9d0; padding: .6em 0; }

/* 狭い画面では「日付ごとの行」に切り替える */
@media (max-width: 640px) {
    .rsr-week { grid-template-columns: 1fr; gap: 0; }
    .rsr-wcol {
        flex-direction: row; align-items: flex-start; gap: 12px;
        padding: .7em 0; border-bottom: 1px solid var(--rsr-line);
    }
    .rsr-wcol.is-past { display: none; }
    .rsr-wday {
        width: 4.2em; flex: 0 0 auto; border-bottom: 0; text-align: left;
        display: flex; align-items: baseline; gap: .4em; padding: .2em 0;
    }
    .rsr-wdow { display: inline; }
    .rsr-wdate { font-size: 1em; }
    .rsr-wslots {
        flex-direction: row; flex-wrap: wrap; max-height: none;
        padding: 0; flex: 1 1 auto; gap: 6px;
    }
    .rsr-wslot { padding: .5em 1em; }
    .rsr-wnone { padding: .2em 0; }
}

/* ===== ご予約の流れ（[rs_reserve_flow]） ===== */
.rsr-flow {
    --rsr-fg: #1f2933;
    --rsr-muted: #6b7684;
    --rsr-line: #e2e6ea;
    --rsr-accent: #2f80ed;
    --rsr-accent-weak: #eaf2fd;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 1.4em auto;
    padding: 0;
    max-width: 980px;
    color: var(--rsr-fg);
    counter-reset: none;
}
.rsr-flow-step {
    position: relative;
    display: flex; flex-direction: column; align-items: flex-start; gap: .35em;
    background: #fff;
    border: 1px solid var(--rsr-line);
    border-radius: 12px;
    padding: 1.1em 1em 1.2em;
    line-height: 1.6;
}
/* カードの間の矢印 */
.rsr-flow-step + .rsr-flow-step::before {
    content: "";
    position: absolute; left: -12px; top: 50%;
    width: 12px; height: 12px; margin-top: -6px;
    border-right: 2px solid var(--rsr-line);
    border-bottom: 2px solid var(--rsr-line);
    transform: rotate(-45deg);
}
.rsr-flow-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--rsr-accent); color: #fff;
    font-weight: 700; font-size: .95em; line-height: 1;
}
.rsr-flow-title { font-weight: 700; font-size: 1.02em; }
.rsr-flow-desc { font-size: .88em; color: var(--rsr-muted); }

/* 最後のカードだけ、完了が分かるよう色を変える */
.rsr-flow-step:last-child { background: var(--rsr-accent-weak); border-color: #cfe0fb; }

@media (max-width: 782px) {
    .rsr-flow { grid-template-columns: 1fr; gap: 10px; }
    .rsr-flow-step {
        flex-direction: row; align-items: center; flex-wrap: wrap;
        padding: .9em 1em;
    }
    .rsr-flow-title { flex: 1 1 auto; }
    .rsr-flow-desc { flex: 1 1 100%; padding-left: 42px; }
    .rsr-flow-step + .rsr-flow-step::before {
        left: 50%; top: -11px; margin: 0 0 0 -6px;
        transform: rotate(45deg);
    }
}

/* LINEのトーク内で開いたときの「トークに戻る」 */
.rsr-liff-close {
    display: inline-block; margin-top: 1em;
    background: #06c755; color: #fff; border: 0; border-radius: 8px;
    padding: .8em 2em; font: inherit; font-weight: 600; cursor: pointer;
}
