@charset "utf-8";

/*
* 予約枠制限（reserve_slot）用 予約状況表デザイン
* form_v3_reserve_slot.js が描画する「日付 × 時刻」の表
* --------------------------------------------------
*/
.reserve-slot-block {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
    margin: 15px auto;
}

.reserve-slot-block .status-title {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    margin: 15px auto;
}

.reserve-slot-scroller {
    width: 100%;
    overflow-x: auto;
}

.reserve-slot-table {
    width: 100%;
    min-width: 280px;
    border-collapse: separate;
    border-spacing: 3px;
    background: #efefef;
    table-layout: fixed;
}

.reserve-slot-table th,
.reserve-slot-table td {
    background: #ffffff;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 4px;
}

.reserve-slot-table .slot-corner {
    color: #666666;
    font-weight: 700;
    width: 22%;
}

.reserve-slot-table .slot-date {
    color: #333333;
    font-weight: 700;
    white-space: nowrap;
}

.reserve-slot-table .slot-date.sun {
    color: #bb0000;
}

.reserve-slot-table .slot-date.sat {
    color: #0099bb;
}

.slot-date-week {
    margin-left: 2px;
    font-size: 0.85em;
}

.reserve-slot-table .slot-time {
    color: #333333;
    font-weight: 700;
    white-space: nowrap;
}

.slot-mark {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    appearance: none;
    border: none;
    background: transparent;
    font-size: 14px;
    line-height: 1;
    padding: 4px 0;
    margin: 0 auto;
    font-family: system-ui, sans-serif;
    color: #333333;
}

.slot-cell.slot-selectable {
    background: #fafafa;
}

.slot-cell.slot-closed .slot-mark {
    font-size: 18px;
    color: #999999;
}

/* 満員は赤字で目立たせる（サイズ・太さは「空きあり」と同じ／受付終了「−」はグレーのまま） */
.slot-cell.slot-full .slot-mark {
    color: #cc0000;
    font-size: 13px;
    font-weight: 500;
}

.slot-mark-btn {
    cursor: pointer;
    color: #666666;
    font-weight: 500;
    white-space: nowrap;
    width: auto;
    font-size: 13px;
    padding: 0px 0px 5px 0px;
    line-height: 1;
    border-bottom: 1px solid #666666;
}

/* 残り枠が少ないときはオレンジ（赤は満員専用） */
.slot-mark-btn.few {
    color: #Ffaa00;
    border-bottom-color: #ffaa00;
}

.slot-note {
    width: 100%;
    margin: 10px auto 0;
    font-size: 12px;
    line-height: 1.6;
    color: #666666;
}

@media (max-width: 767px) {
    .reserve-slot-block .status-title {
        font-size: 15px;
    }

    .reserve-slot-table th,
    .reserve-slot-table td {
        font-size: 13px;
        padding: 5px;
    }

    .slot-mark {
        font-size: 13px;
    }
    .slot-mark-btn{
        font-size: 11px;
        padding: 0px 0px 3px 0px;
    }
    .slot-cell.slot-closed .slot-mark {
        font-size: 16px;
    }

    .slot-cell.slot-full .slot-mark {
        font-size: 11px;
    }

    .slot-note {
        font-size: 11px;
    }
}
