/* ------------------------
/ カレンダー全体のコンテナ
/ --------------------- */
.bsfo-calendar-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ------------------------
/ お知らせエリア
/ --------------------- */
.bsfo-notice-area {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    line-height: 1.8;
}

.bsfo-notice-area h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.bsfo-notice-area p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.bsfo-notice-area .bsfo-last-update {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #888;
    text-align: right;
}

/* ------------------------
/ 週切替ボタンエリア
/ --------------------- */
.bsfo-week-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.bsfo-week-buttons button {
    background: #339966;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bsfo-week-buttons button:hover {
    background: #2d8659;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.bsfo-week-buttons button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ------------------------
/ カレンダーテーブル本体
/ --------------------- */
.bsfo-calendar-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    background: #fff;
    table-layout: fixed;
}

.bsfo-calendar-table th,
.bsfo-calendar-table td {
    border: 1px solid #ddd;
    padding: 10px 6px;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
}

.bsfo-calendar-table th {
    background: #339966;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.bsfo-calendar-table th.time-header {
    background: #2d8659;
    width: 70px;
    min-width: 70px;
}

/* 日付ヘッダー */
.bsfo-calendar-table th .date-header {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.bsfo-calendar-table th .day-name {
    display: block;
    font-size: 11px;
    opacity: 0.9;
}

/* ------------------------
/ セルのスタイル（○×−）
/ --------------------- */
.bsfo-calendar-table td {
    height: 40px;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s ease;
}

/* ○ 予約可能 */
.bsfo-calendar-table td.available {
    background: #e8f5e9;
    color: #339966;
    cursor: pointer;
}

.bsfo-calendar-table td.available:hover {
    background: #c8e6c9;
    box-shadow: inset 0 0 0 2px #339966;
}

/* × 予約済み */
.bsfo-calendar-table td.unavailable {
    background: #ffebee;
    color: #BA7B89;
    font-weight: 700;
}

/* − 営業時間外 */
.bsfo-calendar-table td.closed {
    background: #f5f5f5;
    color: #999;
    font-weight: 400;
}

/* 時間列（左端） */
.bsfo-calendar-table td.time-cell {
    background: #fafafa;
    font-weight: 600;
    color: #555;
    width: 70px;
    min-width: 70px;
    font-size: 12px;
}

/* ------------------------
/ レスポンシブ対応
/ --------------------- */
@media (max-width: 768px) {
    .bsfo-calendar-container {
        padding: 15px;
        margin: 20px auto;
    }

    .bsfo-notice-area {
        padding: 15px;
    }

    .bsfo-notice-area h3 {
        font-size: 16px;
    }

    .bsfo-notice-area p {
        font-size: 13px;
    }

    .bsfo-week-buttons button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .bsfo-calendar-table th,
    .bsfo-calendar-table td {
        padding: 6px 3px;
        font-size: 11px;
    }

    .bsfo-calendar-table th {
        font-size: 12px;
    }

    .bsfo-calendar-table td {
        font-size: 14px;
        height: 35px;
    }

    .bsfo-calendar-table th.time-header,
    .bsfo-calendar-table td.time-cell {
        width: 55px;
        min-width: 55px;
        font-size: 10px;
    }

    .bsfo-calendar-table th .date-header {
        font-size: 11px;
    }

    .bsfo-calendar-table th .day-name {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .bsfo-calendar-table th,
    .bsfo-calendar-table td {
        padding: 4px 2px;
        font-size: 10px;
    }

    .bsfo-calendar-table td {
        font-size: 12px;
        height: 30px;
    }

    .bsfo-week-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .bsfo-week-buttons button {
        width: 100%;
    }
}