.monthly-schedule-display {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    transition: opacity 0.3s ease;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 1rem;
}

.month-nav-btn {
    background: linear-gradient(135deg, #1A237E 0%, #283593 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.3);
    white-space: nowrap;
}

.month-nav-btn:hover {
    background: linear-gradient(135deg, #283593 0%, #3949AB 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.4);
}

.month-nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(26, 35, 126, 0.3);
}

.month-nav-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.schedule-title {
    text-align: center;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    flex: 1;
}

.schedule-grid-container {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
}

.schedule-grid-frontend {
    display: table;
    border-collapse: collapse;
    min-width: 100%;
}

.grid-header {
    display: table-row;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
}

.grid-row {
    display: table-row;
}

.grid-cell {
    display: table-cell;
    border: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
    position: relative;
}

.corner-cell {
    background: #2c3e50;
    color: #fff;
    font-weight: 700;
    padding: 12px;
    min-width: 60px;
    border: none;
}

.header-cell.time-cell {
    background: #34495e;
    color: #fff;
    font-weight: 600;
    padding: 12px 5px;
    min-width: 35px;
    font-size: 11px;
    border: none;
    border-left: 1px solid #2c3e50;
}

.day-cell {
    background: #ecf0f1;
    font-weight: 700;
    padding: 12px 10px;
    min-width: 60px;
    font-size: 14px;
    color: #2c3e50;
    border-top: 1px solid #bdc3c7;
}

.time-slot {
    min-width: 35px;
    width: 35px;
    height: 45px;
    background: #fff;
    padding: 0;
}

.time-slot:nth-child(odd) {
    background: #fafafa;
}

.schedule-bar {
    position: absolute;
    top: 3px;
    left: 3px;
    height: 39px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.schedule-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .schedule-title {
        font-size: 18px;
    }
    
    .schedule-header {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .month-nav-btn {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .schedule-title {
        order: -1;
        margin-bottom: 0.5rem;
    }
    
    .prev-month {
        order: 1;
    }
    
    .next-month {
        order: 2;
    }
    
    .day-cell {
        min-width: 40px;
        padding: 8px 5px;
        font-size: 12px;
    }
    
    .header-cell.time-cell {
        min-width: 25px;
        width: 25px;
        font-size: 10px;
        padding: 8px 2px;
    }
    
    .time-slot {
        min-width: 25px;
        width: 25px;
        height: 35px;
    }
    
    .schedule-bar {
        height: 29px;
    }
    
    .corner-cell {
        min-width: 40px;
        padding: 8px 5px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .schedule-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .day-cell {
        min-width: 30px;
        padding: 6px 3px;
        font-size: 11px;
    }
    
    .header-cell.time-cell {
        min-width: 20px;
        width: 20px;
        font-size: 9px;
        padding: 6px 1px;
    }
    
    .time-slot {
        min-width: 20px;
        width: 20px;
        height: 30px;
    }
    
    .schedule-bar {
        height: 24px;
    }
    
    .corner-cell {
        min-width: 30px;
        padding: 6px 3px;
        font-size: 10px;
    }
}
