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

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

.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;
    }
    
    .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;
    }
}
