/* カレンダーセクション */
.calendar-section {
    margin: 40px 0;
}

.calendar-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
}

.calendar-header {
    background: #0d47a1;
    color: white;
    padding: 20px;
    text-align: center;
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-family: 'Shippori Mincho', serif;
}

.calendar-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    background: #0d47a1;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.calendar-nav button:hover {
    background: #1565c0;
}

.calendar-nav button.active {
    background: #1976d2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.calendar-nav button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.current-month {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
}

.calendar-day-header {
    background: #f8f9fa;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.calendar-day {
    background: white;
    padding: 15px 8px;
    text-align: center;
    cursor: default;
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ホバー効果を無効化 */
/* .calendar-day:hover {
    background: #f8f9fa;
} */

.calendar-day.other-month {
    color: #adb5bd;
    background: #f8f9fa;
}

.calendar-day.today {
    background: white;
    color: #333;
    font-weight: normal;
}

.calendar-day.today::after {
    content: '';
}

.calendar-day.holiday {
    background: #ffebee;
    color: #d32f2f;
    font-weight: 600;
}

.calendar-day.holiday::after {
    content: '定休';
    position: absolute;
    top: 2px;
    right: 2px;
    background: #d32f2f;
    color: white;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: normal;
}

.calendar-day.normal {
    background: white;
    color: #333;
    font-weight: normal;
}

.calendar-day.normal::after {
    content: '';
}

.calendar-day.special-business {
    background: #e8f5e8;
    color: #2e7d32;
    font-weight: 600;
}

.calendar-day.special-business::after {
    content: '臨営';
    position: absolute;
    top: 2px;
    right: 2px;
    background: #2e7d32;
    color: white;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: normal;
}

.calendar-day.specific-holiday {
    background: #fff8e1;
    color: #e65100;
    font-weight: 600;
}

.calendar-day.specific-holiday::after {
    content: '臨時休業';
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e65100;
    color: white;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: normal;
}

.calendar-day.special-day {
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 600;
}

.calendar-day.special-day::after {
    content: '特別';
    position: absolute;
    top: 2px;
    right: 2px;
    background: #1565c0;
    color: white;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: normal;
}

.calendar-day-number {
    font-size: 1rem;
    font-weight: 500;
}

.calendar-day-info {
    font-size: 0.7rem;
    margin-top: 2px;
    opacity: 0.8;
}

/* 特定日の料金注記スタイル */
.special-day-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .calendar-container {
        margin: 0 10px;
        width: calc(100% - 20px);
        max-width: none;
    }
    
    .calendar-day {
        padding: 10px 4px;
        min-height: 50px;
    }
    
    .calendar-day-number {
        font-size: 0.9rem;
    }
    
    .calendar-day-info {
        font-size: 0.6rem;
    }
    
    .calendar-controls {
        padding: 10px 15px;
    }
    
    .current-month {
        font-size: 1rem;
    }
    
    .calendar-legend {
        margin: 20px 10px 0 10px;
        width: calc(100% - 20px);
        max-width: none;
    }
    
    /* スマホ時の凡例項目を縦並びにして十分な幅を確保 */
    .legend-items {
        flex-direction: column;
        gap: 12px;
    }
    
    .legend-item {
        width: 100%;
        flex-wrap: wrap;
    }
    
    /* 特定日の凡例をスマホ時に調整 */
    .special-day-legend .special-day-note {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        font-size: 0.8rem;
        width: 100%;
    }
    
    /* スマホ時は日付の右上の四角囲み文字を非表示 */
    .calendar-day::after {
        display: none !important;
    }
}

/* カレンダー説明 */
.calendar-legend {
    margin-top: 40px;
    padding: 25px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-legend h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1rem;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.holiday {
    background: #ffebee;
    border: 1px solid #d32f2f;
}

.legend-color.today {
    background: #e3f2fd;
    border: 1px solid #1976d2;
}

.legend-color.normal {
    background: white;
    border: 1px solid #e9ecef;
}

.legend-color.special-business {
    background: #e8f5e8;
    border: 1px solid #2e7d32;
}

.legend-color.specific-holiday {
    background: #fff8e1;
    border: 1px solid #e65100;
}

.legend-color.special-day {
    background: #e3f2fd;
    border: 1px solid #1565c0;
} 