/**
 * CloverCars Footer Calendar Styles
 * シンプルモダンなフッターカレンダー
 */

/* カレンダーコンテナ */
.cc-footer-calendar {
    max-width: 280px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', sans-serif;
}

/* ヘッダー */
.cc-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.cc-cal-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cc-cal-year {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.cc-cal-month {
    font-size: 20px;
    font-weight: 700;
    color: #00633A;
}

/* ナビゲーションボタン */
.cc-cal-nav {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00633A;
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cc-cal-nav svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    stroke-width: 2.5;
}

.cc-cal-nav:hover {
    background: #28b472;
    color: #fff;
    transform: scale(1.05);
}

.cc-cal-nav:hover svg {
    stroke: #fff;
}

.cc-cal-nav:active {
    transform: scale(0.95);
}

/* 曜日ヘッダー */
.cc-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
}

.cc-cal-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    padding: 6px 0;
}

.cc-cal-weekday.cc-sunday {
    color: #c0392b;
}

.cc-cal-weekday.cc-saturday {
    color: #2980b9;
}

.cc-cal-weekday.cc-monday-closed {
    color: #c0392b;
}

/* 日付グリッド */
.cc-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

/* 日付セル */
.cc-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: default;
    position: relative;
    transition: all 0.15s ease;
}

.cc-cal-day:not(.cc-cal-empty):hover {
    background: #f5f5f5;
}

.cc-cal-day-num {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

/* 空セル */
.cc-cal-empty {
    background: transparent;
}

/* 今日 */
.cc-cal-day.cc-today {
    background: linear-gradient(135deg, #9acf55 0%, #7cb342 100%);
    box-shadow: 0 2px 8px rgba(154, 207, 85, 0.4);
}

.cc-cal-day.cc-today .cc-cal-day-num {
    color: #fff;
    font-weight: 700;
}

/* 日曜日 */
.cc-cal-day.cc-sunday .cc-cal-day-num {
    color: #c0392b;
}

/* 定休日（月曜・第2日曜・第4火曜） */
.cc-cal-day.cc-closed {
    background: rgba(192, 57, 43, 0.08);
}

.cc-cal-day.cc-closed .cc-cal-day-num {
    color: #c0392b;
}

.cc-cal-day.cc-closed::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #c0392b;
    border-radius: 50%;
}

/* 土曜日 */
.cc-cal-day.cc-saturday .cc-cal-day-num {
    color: #2980b9;
}

/* 特別休業日 */
.cc-cal-day.cc-holiday {
    background: linear-gradient(135deg, #00633A 0%, #28b472 100%);
}

.cc-cal-day.cc-holiday .cc-cal-day-num {
    color: #fff;
    font-weight: 600;
}

.cc-cal-day.cc-holiday::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
}

/* 今日かつ休業日の場合 */
.cc-cal-day.cc-today.cc-holiday {
    background: linear-gradient(135deg, #00633A 0%, #28b472 100%);
    box-shadow: 0 2px 8px rgba(0, 99, 58, 0.4);
}

/* 凡例 */
.cc-cal-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.cc-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cc-legend-mark {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.cc-legend-closed {
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid #c0392b;
}

.cc-legend-holiday {
    background: linear-gradient(135deg, #00633A 0%, #28b472 100%);
}

.cc-legend-text {
    font-size: 11px;
    color: #666;
}

/* アニメーション */
.cc-footer-calendar.cc-loading {
    pointer-events: none;
}

.cc-footer-calendar.cc-loading .cc-cal-days {
    opacity: 0.5;
    transition: opacity 0.2s;
}

/* フェードイン */
@keyframes cc-cal-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cc-cal-days {
    animation: cc-cal-fade-in 0.3s ease;
}

/* レスポンシブ */
@media (max-width: 480px) {
    .cc-footer-calendar {
        max-width: 100%;
        padding: 16px;
        border-radius: 12px;
    }

    .cc-cal-month {
        font-size: 18px;
    }

    .cc-cal-nav {
        width: 32px;
        height: 32px;
    }

    .cc-cal-day-num {
        font-size: 12px;
    }

    .cc-cal-weekday {
        font-size: 10px;
    }

    .cc-cal-legend {
        gap: 12px;
    }

    .cc-legend-text {
        font-size: 10px;
    }
}

/* フッター内での表示調整 */
.foot_panel .cc-footer-calendar {
    margin: 0 auto;
}

.item30 .cc-footer-calendar {
    margin: 0 auto;
}
