/* --- デザイン設定：温かみのあるオレンジスタイル --- */
:root {
    --primary-color: #ff8c00;
    --secondary-color: #ffcc80;
    --text-color: #5d4037;
    --bg-color: #fffaf0;
    --event-bg: #fff8f0;
    --event-text: #e65100;
    --sunday-color: #ff5252;
    --saturday-color: #448aff;
}

#calendar-container {
    width: 100%;
    max-width: 1000px;
    background: #fff;
    padding: 25px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    margin: 20px auto;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

.fc .fc-toolbar-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.fc .fc-button-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 15px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.fc .fc-col-header-cell-cushion {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    padding-bottom: 10px;
}
.fc-day-sun .fc-col-header-cell-cushion { color: var(--sunday-color) !important; }
.fc-day-sat .fc-col-header-cell-cushion { color: var(--saturday-color) !important; }

.fc .fc-daygrid-day-number {
    color: #888;
    text-decoration: none;
    padding: 8px;
    font-size: 0.9rem;
}
.fc-day-sun .fc-daygrid-day-number { color: var(--sunday-color); }
.fc-day-sat .fc-daygrid-day-number { color: var(--saturday-color); }

.fc-event {
    border: none !important;
    border-radius: 6px !important;
    padding: 1px 2px !important;
    margin: 1px 0 !important;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    font-weight: 600;
    overflow: hidden;
}

/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}
.modal.is-show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background-color: #fff;
    padding: 40px;
    padding-top: 50px;
    border-radius: 25px;
    width: 85%;
    max-width: 450px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    text-align: center;
    overflow-y: auto;
    margin: 20px;
}
.close-btn {
    position: sticky !important;
    top: 0;
    float: right;
    z-index: 10000;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    #calendar-container { padding: 10px; border-radius: 15px; }
    .fc .fc-toolbar-title { font-size: 1.1rem; }
    .fc .fc-daygrid-day-number { padding: 4px; font-size: 0.8rem; }
    .modal-content { width: 95%; max-width: 95%; padding: 30px 20px; padding-top: 50px; }
}