/**
 * 営業カレンダー管理 - フロントエンドスタイル
 */

/* カレンダーコンテナ */
.bhc-calendar-container {
    width: 70%;
    max-width: 900px;
    margin: 0 auto 30px;
    font-family: sans-serif;
}

/* スマホ表示用レスポンシブ設定 */
@media screen and (max-width: 768px) {
    .bhc-calendar-container {
        width: 98%;
        max-width: 100%;
    }
}

/* カレンダー操作ボタン */
.bhc-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.bhc-calendar-controls button {
    padding: 8px 16px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.bhc-calendar-controls button:hover:not(:disabled) {
    background-color: #e9e9e9;
}

.bhc-calendar-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bhc-current-month-display {
    font-size: 1.2em;
    font-weight: bold;
}

/* 月切替用のカレンダーラッパー */
.bhc-calendar-months {
    position: relative;
}

.bhc-calendar-wrapper {
    max-width: 100%;
    margin: 0 auto 30px;
    font-family: sans-serif;
}

.bhc-calendar-header {
    text-align: center;
    margin-bottom: 15px;
}

.bhc-calendar-header h3 {
    margin: 0;
    padding: 0;
    font-size: 1.2em;
}

.bhc-calendar {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    table-layout: fixed;
}

.bhc-calendar th,
.bhc-calendar td {
    border: 1px solid #ddd;
    padding: 0;
    text-align: center;
    vertical-align: top;
    height: 70px;
}

.bhc-calendar th {
    background-color: #f5f5f5;
    font-weight: bold;
    padding: 8px 0;
    height: auto;
}

.bhc-weekday {
    color: #333;
}

.bhc-sunday {
    color: #e74c3c;
}

.bhc-saturday {
    color: #3498db;
}

.bhc-day {
    position: relative;
    background-color: #fff;
}

.bhc-empty {
    background-color: #f9f9f9;
}

.bhc-past-day {
    background-color: #f0f0f0;
    color: #999;
}

.bhc-holiday {
    background-color: #ffebee; /* 薄い赤 */
}

.bhc-shortened {
    background-color: #e3f2fd; /* 薄い青 */
}

.bhc-day-number {
    position: absolute;
    top: 5px;
    left: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

.bhc-business-hours {
    padding-top: 25px;
    font-size: 0.8em;
    line-height: 1.2;
}

.bhc-closed {
    color: #e74c3c;
    font-weight: bold;
}

/* カレンダー凡例 */
.bhc-calendar-legend {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 20px;
    flex-wrap: wrap;
}

.bhc-legend-item {
    display: flex;
    align-items: center;
}

.bhc-legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    border: 1px solid #ddd;
}

.bhc-legend-normal {
    background-color: #fff;
}

.bhc-legend-holiday {
    background-color: #ffebee;
}

.bhc-legend-shortened {
    background-color: #e3f2fd;
}

.bhc-legend-text {
    font-size: 0.9em;
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
    .bhc-calendar td {
        height: 50px;
    }
    
    .bhc-day-number {
        font-size: 0.8em;
    }
    
    .bhc-business-hours {
        padding-top: 20px;
        font-size: 0.7em;
    }
}
