
.ks-avail-wrap{
    max-width:1100px;
    margin:55px auto;
    padding:0 16px;
    box-sizing:border-box;
}
.ks-avail-head{margin-bottom:18px;}
.ks-avail-en{
    display:block;
    font-size:12px;
    letter-spacing:.18em;
    font-weight:700;
    color:#888;
    margin-bottom:6px;
}
.ks-avail-head h2{
    margin:0 0 8px;
    font-size:30px;
}
.ks-avail-head p{
    margin:0;
    color:#666;
    font-size:14px;
}
.ks-avail-info{
    display:flex;
    gap:10px;
    align-items:flex-start;
    flex-wrap:wrap;
    margin:18px 0 22px;
    padding:14px 16px;
    border-left:3px solid #111;
    background:#f7f7f7;
    font-size:13px;
    line-height:1.6;
}
.ks-avail-info strong{
    white-space:nowrap;
}
.ks-avail-info span{
    color:#666;
}
.ks-avail-controls{
    display:flex;
    align-items:end;
    gap:18px;
    flex-wrap:wrap;
    margin:22px 0 14px;
}
.ks-avail-controls label{
    display:block;
    font-weight:700;
    font-size:14px;
    margin-bottom:5px;
}
.ks-avail-controls select{
    min-width:210px;
    padding:11px 12px;
    border:1px solid #ccc;
    border-radius:8px;
    background:#fff;
}
.ks-avail-nav{
    margin-left:auto;
    display:flex;
    gap:8px;
}
.ks-avail-nav button{
    padding:10px 14px;
    border:1px solid #ccc;
    border-radius:8px;
    background:#fff;
    cursor:pointer;
}
.ks-avail-nav button:disabled{
    opacity:.4;
    cursor:not-allowed;
}
.ks-avail-legend{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    font-size:12px;
    color:#555;
    margin-bottom:16px;
}
.ks-avail-legend span{
    display:flex;
    align-items:center;
    gap:6px;
}
.ks-avail-legend i{
    width:12px;
    height:12px;
    border-radius:3px;
    display:inline-block;
}
.ks-legend-open{background:#fff;border:1px solid #ddd;}
.ks-legend-booked{background:#fdecec;border:1px solid #e2b7b7;}
.ks-legend-cleaning{background:#fff5dd;border:1px solid #e7cf95;}
.ks-legend-closed{background:#eee;border:1px solid #ccc;}

.ks-avail-calendar{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:10px;
}
.ks-avail-day{
    min-width:0;
    border:1px solid #e2e2e2;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}
.ks-avail-day-title{
    padding:12px 10px;
    text-align:center;
    border-bottom:1px solid #eee;
    background:#fafafa;
}
.ks-avail-day-title strong{
    font-size:18px;
}
.ks-avail-day-title span{
    font-size:12px;
    color:#777;
    margin-left:3px;
}
.ks-avail-slots{
    padding:7px;
}
.ks-avail-slot{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:6px;
    padding:6px 4px;
    margin:0;
    border-radius:0;
    border-bottom:1px solid #f0f0f0;
    font-size:11px;
    cursor:default !important;
    user-select:none;
    pointer-events:none;
    box-shadow:none !important;
    transform:none !important;
}
.ks-avail-slot:last-child{
    border-bottom:none;
}
.ks-avail-state{
    font-size:10px;
    white-space:nowrap;
    font-weight:600;
}
.ks-avail-time{
    font-variant-numeric:tabular-nums;
}
.ks-open{
    background:#fff;
    color:#777;
}
.ks-open .ks-avail-state{
    color:#777;
    font-weight:500;
}
.ks-booked{
    background:#fdecec;
    color:#8b2f2f;
}
.ks-booked .ks-avail-state{
    color:#8b2f2f;
}
.ks-cleaning{
    background:#fff5dd;
    color:#735514;
}
.ks-cleaning .ks-avail-state{
    color:#735514;
}
.ks-avail-closed-box{
    min-height:340px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f2f2f2;
    color:#888;
    font-weight:700;
}
.ks-avail-cta-wrap{
    margin:20px 0 8px;
    text-align:center;
}
.ks-avail-cta{
    width:100%;
    max-width:440px;
    padding:15px 20px;
    border:0;
    border-radius:999px;
    background:#06c755;
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    box-shadow:none;
}
.ks-avail-cta:hover{
    opacity:.9;
}
.ks-avail-cta-wrap p{
    margin:7px 0 0;
    font-size:11px;
    color:#777;
}
.ks-avail-note{
    margin-top:14px;
    font-size:12px;
    color:#777;
}

@media(max-width:900px){
    .ks-avail-calendar{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }
    .ks-avail-closed-box{
        min-height:140px;
    }
}
@media(max-width:560px){
    .ks-avail-wrap{
        padding:0;
    }
    .ks-avail-calendar{
        grid-template-columns:1fr;
    }
    .ks-avail-nav{
        width:100%;
        margin-left:0;
    }
    .ks-avail-nav button{
        flex:1;
    }
    .ks-avail-slots{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:0 12px;
    }
    .ks-avail-slot{
        margin:0;
    }
    .ks-avail-cta{
        max-width:none;
        font-size:15px;
    }
}


/* v1.7: 空き時間選択モード */
.ks-slot-select-guide{
    margin:16px 0 18px;
    padding:14px 16px;
    background:#f8faf8;
    border:1px solid #e3e8e3;
    border-radius:10px;
}
.ks-slot-select-button{
    width:100%;
    max-width:360px;
    padding:12px 18px;
    border:1px solid #1f7a3e;
    border-radius:999px;
    background:#fff;
    color:#1f7a3e;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
}
.ks-slot-select-button.is-active{
    background:#1f7a3e;
    color:#fff;
}
.ks-slot-select-guide p{
    margin:8px 0 0;
    font-size:12px;
    line-height:1.6;
    color:#666;
}
.ks-avail-slot.ks-slot-selectable{
    pointer-events:auto !important;
    cursor:pointer !important;
    background:#f1fbf3;
    border-radius:6px;
    padding-left:7px;
    padding-right:7px;
    transition:background .15s ease, transform .15s ease;
}
.ks-avail-slot.ks-slot-selectable:hover,
.ks-avail-slot.ks-slot-selectable:focus{
    background:#dcf5e2;
    outline:2px solid #73c98a;
    outline-offset:1px;
}
.ks-avail-slot.ks-slot-selectable .ks-avail-state{
    color:#1f7a3e;
    font-weight:700;
}
@media(max-width:560px){
    .ks-slot-select-button{
        max-width:none;
    }
}


/* v1.8: 出発・返還の2段階選択 */
.ks-selection-summary{
    max-width:520px;
    margin:0 auto 12px;
    padding:14px 16px;
    text-align:left;
    background:#f7faf8;
    border:1px solid #d9e8dd;
    border-radius:10px;
    font-size:13px;
    line-height:1.7;
}
.ks-selection-summary strong{
    display:block;
    margin-bottom:4px;
    font-size:14px;
}
.ks-selected-departure{
    background:#dff3ff !important;
    outline:2px solid #4aa3d8 !important;
    outline-offset:0 !important;
}
.ks-selected-departure .ks-avail-time,
.ks-selected-departure .ks-avail-state{
    color:#17638f !important;
    font-weight:700 !important;
}
.ks-selected-return{
    background:#e6f7df !important;
    outline:2px solid #58a94f !important;
    outline-offset:0 !important;
}
.ks-selected-return .ks-avail-time,
.ks-selected-return .ks-avail-state{
    color:#2f7f2a !important;
    font-weight:700 !important;
}
.ks-avail-cta:disabled{
    background:#cfd5d1;
    color:#fff;
    cursor:not-allowed;
    opacity:1;
}


/* v1.9: 現在は軽自動車のみ予約受付 */
.ks-current-rental-notice{
    margin:18px 0 26px;
    padding:14px 16px;
    border-left:4px solid #111;
    background:#f7f7f7;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    font-size:13px;
    line-height:1.6;
}
.ks-current-rental-notice strong{
    white-space:nowrap;
}
.ks-current-rental-notice span{
    color:#666;
}
.ks-fee-coming-soon{
    position:relative;
    opacity:.62;
}
.ks-coming-soon-badge{
    display:inline-block;
    margin-top:5px;
    padding:3px 8px;
    border-radius:999px;
    background:#ececec;
    color:#666;
    font-size:10px;
    font-weight:700;
    letter-spacing:.04em;
}
#ks-car-class option:disabled,
#ks-avail-class option:disabled{
    color:#999;
}
@media(max-width:767px){
    .ks-current-rental-notice{
        display:block;
    }
    .ks-current-rental-notice strong,
    .ks-current-rental-notice span{
        display:block;
    }
    .ks-current-rental-notice strong{
        margin-bottom:4px;
    }
}
