@charset "utf-8";

/* ====================================================== */
/* 1. 全体のベース設定 (ダークテーマ)
/* ====================================================== */
.custom-calendar-card {
    border: 1px solid #333333;
    border-radius: 8px;
    background-color: #111111;
    overflow: hidden;
    margin-bottom: 20px;
}
.custom-calendar-header {
    padding: 12px 20px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333333;
}
.custom-calendar-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}
.custom-calendar-body {
    padding: 15px;
}

/* ====================================================== */
/* 2. 凡例 (画像通りの三日月ドットに修正)
/* ====================================================== */
.custom-legend-box {
    padding: 10px 15px;
    background-color: #000000;
    border: 1px solid #333333;
    border-radius: 4px;
    margin-bottom: 15px;
}
.custom-legend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.custom-legend-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #ffffff; /* 文字を白に */
}
.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50% !important;
    margin-right: 8px;
    display: inline-block;
    box-sizing: border-box;
    border-left: 5px solid transparent !important; /* 左側のアクセント */
    vertical-align: middle;
}

/* 指定の配色をドット（三日月デザイン）に適用 */
.legend-dot.bg-primary { 
    background-color: #4db4ff !important; 
    border-left-color: #1976d2 !important; 
}
.legend-dot.bg-warning { 
    background-color: #d9c307 !important; 
    border-left-color: #d99f10 !important; 
}
.legend-dot.bg-success { 
    background-color: #24d119 !important; 
    border-left-color: #1b9712 !important; 
}
.legend-dot.cleaning-buffer { 
    background-color: #838383 !important; 
    border-left-color: #555555 !important; 
}

/* ====================================================== */
/* 3. カレンダー本体・ツールバー (レスポンシブ対応)
/* ====================================================== */
#calendar {
    background: #000000 !important;
    padding: 10px;
    color: #ffffff;
}
#calendar table, #calendar td, #calendar th {
    border-color: #333333 !important;
}
.fc-col-header-cell {
    background-color: #1a1a1a !important;
}
.fc-col-header-cell-cushion {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ツールバータイトルの視認性（白文字） */
.fc .fc-toolbar-title {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: bold !important;
}

/* ボタンのデザイン */
.fc .fc-button {
    background-color: #2c3e50 !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    text-transform: lowercase;
}

/* スマホでのツールバー崩れ修正 */
@media (max-width: 768px) {
    .fc .fc-toolbar {
        display: flex !important;
        flex-direction: column !important; /* 縦並び */
        align-items: center !important;
        gap: 10px !important;
    }
    .fc-toolbar-chunk {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 5px;
    }
    /* タイトル（2026年4月）を一番上へ */
    .fc-toolbar-chunk:nth-child(2) {
        order: -1 !important;
    }
    .fc .fc-button {
        font-size: 0.8rem !important;
        padding: 4px 6px !important;
    }
}

/* ====================================================== */
/* 4. イベントデザイン (パーツごとに切り替える)
/* ====================================================== */
.fc-v-event {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.event-bundle-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

/* SETUP / RESET 部分 */
.inner-setup, .inner-reset {
    height: 1.5rem;
    min-height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    background-color: #838383 !important;
    border-left: 3px solid #555555 !important;
}

/* 予約本体部分 */
.inner-body {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
}

/* ステータス別カラー適用 */
.bg-primary .inner-body {
    background-color: #4db4ff !important;
    border-left: 5px solid #1976d2 !important;
}
.bg-warning .inner-body {
    background-color: #d9c307 !important;
    border-left: 5px solid #d99f10 !important;
}
.bg-success .inner-body {
    background-color: #24d119 !important;
    border-left: 5px solid #1b9712 !important;
}

/* 月表示 (Month) での調整 */
.fc-dayGridMonth-view .inner-setup,
.fc-dayGridMonth-view .inner-reset {
    display: none !important;
}
.fc-dayGridMonth-view .inner-body {
    border-left-width: 3px !important;
    padding: 2px 5px;
}

/* ====================================================== */
/* 5. カレンダー左上の白い角（コーナー）を黒く修正
/* ====================================================== */

/* 左上の空白セルをヘッダーと同じ濃いグレーに */
.fc .fc-timegrid-axis-frame {
    background-color: #1a1a1a !important; 
}

/* 左側の時間列（0時、1時...の列）の背景を黒に */
.fc .fc-timegrid-axis {
    background-color: #000000 !important;
}

/* 時間の文字（0時、1時...）を白くする */
.fc .fc-timegrid-axis-cushion {
    color: #ffffff !important;
}

/* 境界線の色を他の部分と統一して目立たなくする */
.fc-theme-standard td, 
.fc-theme-standard th, 
.fc-theme-standard .fc-scrollgrid {
    border-color: #333333 !important;
}

/* 軸部分の枠線を調整 */
.fc .fc-scrollgrid-section-header .fc-timegrid-axis-frame {
    border-bottom: 1px solid #333333 !important;
}