.ses-cal-event-item {
    position: relative;
    display: block;
    color: #fff !important;
    padding: 3px 6px;
    font-size: 0.8em;
    border-radius: 3px;
    text-decoration: none !important;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s;
}
.ses-cal-event-item:hover {
    opacity: 0.85;
}

.ses-cat-live { background-color: #0275d8 !important; }
.ses-cat-session { background-color: #5cb85c !important; }
.ses-cat-workshop { background-color: #f0ad4e !important; }
.ses-cat-default { background-color: #6c757d !important; }

.ses-calendar-legend {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85em;
    align-items: center;
    flex-wrap: wrap;
}
.ses-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.ses-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}

/* アジェンダ表示初期設定 */
.ses-calendar-mobile-agenda {
    display: none;
}

.ses-agenda-day-group {
    margin-bottom: 15px;
}

.ses-agenda-date-header {
    font-weight: bold;
    padding: 6px 10px;
    background: #f0f4f8;
    border-left: 4px solid #0073aa;
    font-size: 0.95em;
    color: #333;
    margin-bottom: 6px;
    border-radius: 0 4px 4px 0;
}

.ses-agenda-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #fff !important;
    border-radius: 5px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.2s;
}

.ses-agenda-item:active {
    transform: scale(0.98);
}

.ses-agenda-time {
    font-weight: bold;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.2);
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.ses-agenda-title {
    font-size: 0.95em;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ses-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.ses-modal-overlay.active {
    display: flex;
}
.ses-modal-content {
    background: #fff;
    width: 100%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    font-family: sans-serif;
    color: #333;
    animation: sesModalFadeIn 0.25s ease-out;
    box-sizing: border-box;
}
@keyframes sesModalFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.ses-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}
.ses-modal-close:hover { color: #000; }
.ses-modal-header-badge {
    display: inline-block;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 10px;
}
.ses-modal-title {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    line-height: 1.4;
    color: #111;
    padding-right: 25px;
}
.ses-modal-row {
    margin-bottom: 10px;
    font-size: 0.95em;
    line-height: 1.5;
}
.ses-modal-row strong {
    color: #444;
}
.ses-modal-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}
.ses-modal-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background 0.2s;
}
.ses-modal-btn:hover { background: #005177; }

/* レスポンシブ（画面幅768px以下） */
@media screen and (max-width: 768px) {
    .ses-calendar-desktop {
        display: none !important;
    }

    .ses-calendar-mobile-agenda {
        display: block !important;
    }

    .ses-calendar-legend {
        gap: 8px;
        font-size: 0.8em;
    }

    .ses-modal-overlay {
        padding: 10px;
    }

    .ses-modal-content {
        padding: 18px;
        max-height: 90vh;
    }

    .ses-modal-btn {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}