/**
 * Kumazawa Calendar - フロントエンドCSS
 */

/* ============================================================
   カレンダーラッパー
   ============================================================ */
.kc-calendar-wrapper {
    max-width: 480px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.6;
}

/* ============================================================
   ナビゲーション
   ============================================================ */
.kc-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.kc-calendar-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.kc-year {
    font-size: 13px;
    font-weight: 700;
    color: #666;
    margin-bottom: 2px;
}

.kc-month {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.kc-nav-btn {
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kc-nav-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.kc-nav-disabled {
    visibility: hidden;
}

/* ============================================================
   カレンダーテーブル
   ============================================================ */
.kc-calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #ddd;
    background-color: #fff;
}

.kc-calendar-table th {
    background: #f8f8f8;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border: 1px solid #ddd;
}

.kc-calendar-table td {
    padding: 6px 4px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #eee;
    min-height: 44px;
    height: 44px;
    font-size: 14px;
}

.kc-calendar-table td.kc-empty {
    background: #fafafa;
}

/* ============================================================
   日付 ・ ステータス
   ============================================================ */
.kc-day-number {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.kc-status-mark {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1px;
}

/* 曜日カラー */
.kc-sun,
.kc-sun .kc-day-number {
    color: #d32f2f;
}

.kc-sat,
.kc-sat .kc-day-number {
    color: #1565c0;
}

/* ステータスカラー */
.kc-status-closed .kc-status-mark {
    color: #d32f2f;
    /* 赤 */
}

.kc-status-lunch .kc-status-mark {
    color: #2e7d32;
    /* 緑 */
}

.kc-status-reserved .kc-status-mark {
    color: #212121;
    /* 黒 */
}

/* ステータス背景（軽いハイライト） */
.kc-status-closed {
    background: #fff5f5;
}

.kc-status-lunch {
    background: #f5fff5;
}

.kc-status-reserved {
    background: #f5f5f5;
}

/* ============================================================
   フッター情報
   ============================================================ */
.kc-calendar-footer {
    margin-top: 3px;
    padding: 0 4px;
}

.kc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    margin: 0 0 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.kc-legend-item {
    font-weight: 600;
}

.kc-legend-item.kc-status-closed {
    color: #d32f2f;
    background: transparent;
}

.kc-legend-item.kc-status-lunch {
    color: #2e7d32;
    background: transparent;
}

.kc-legend-item.kc-status-reserved {
    color: #212121;
    background: transparent;
}

.kc-memo {
    font-size: 12px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.7;
}

.kc-contact {
    text-align: center;
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.kc-contact-text {
    font-size: 13px;
    color: #555;
    margin: 0 0 4px;
}

.kc-contact-tel {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    letter-spacing: 0.05em;
}

/* ============================================================
   エラー
   ============================================================ */
.kc-error {
    color: #d32f2f;
    font-weight: 600;
}

/* ============================================================
   ローディング
   ============================================================ */
.kc-calendar-loading .kc-calendar-content {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s;
}