.simple4calendar-wrapper {
    max-width: 100%; 
    font-family: sans-serif;
    box-sizing: border-box;
}

/* ヘッダー：年月 + 前後ボタン */
.s4c-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
}
.s4c-header button {
    font-size: 12px;
    padding: 2px 6px;
    cursor: pointer;
}
.s4c-title {
    flex-grow: 1;
    text-align: center;
    font-size: 14px;
}

/* カレンダー表 */
.s4c-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* 曜日ヘッダー */
.s4c-weekdays th {
    text-align: center;
    padding: 4px 0;
    background: #f7f7f7;
    border: 1px solid #ddd;
    font-size: 12px;
}

/* 日セル */
.s4c-day {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ddd;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

/* 状態色 */
.s4c-state-0 { background: #ffffff; }   /* 空き */
.s4c-state-1 { background: #ddffcd; }   /* 午前満席 */
.s4c-state-2 { background: #fbc1be; }   /* 午後満席 */
.s4c-state-3 { background: #f9e5a2; }   /* 一日満席 */

/* hover */
.s4c-day:hover {
    opacity: 0.8;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .s4c-day {
        width: calc(100% / 7);
        height: 30px;
        line-height: 30px;
        font-size: 10px;
    }
    .s4c-header {
        font-size: 12px;
    }
    .s4c-header button {
        font-size: 10px;
        padding: 1px 4px;
    }
}
