/* gc-calendar.css — ゲストハウス予約状況カレンダー */

#gc-calendar-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: sans-serif;
    box-sizing: border-box;
    width: 100%;
}

/* ── ナビゲーション ── */
.gc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.gc-nav-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}
.gc-nav-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: background 0.15s;
}
.gc-nav-btn:hover {
    background: #f0f0f0;
}

/* ── 凡例 ── */
.gc-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: #555;
}
.gc-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gc-leg {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 3px;
    flex-shrink: 0;
}
.gc-leg-avail  { background: #E1F5EE; border: 1px solid #1D9E75; }
.gc-leg-booked { background: #FEE2E2; border: 1px solid #E24B4A; }

/* ── テーブル ── */
.gc-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.gc-table th {
    text-align: center;
    padding: 6px 2px;
    font-size: 0.78rem;
    font-weight: bold;
    color: #fff;
    background: #4a5e3a;
    border: 1px solid #3a4e2a;
}
.gc-th-sat { color: #add8ff; }
.gc-th-sun { color: #ffaaaa; }

/* ── セル共通 ── */
.gc-cell {
    border: 1px solid #e0e0e0;
    vertical-align: middle;
    text-align: center;
    padding: 4px 2px;
    height: 60px;
}
.gc-empty  { background: #fafafa; }
.gc-past   { background: #f5f5f5; opacity: 0.65; }
.gc-avail  { background: #E1F5EE; }
.gc-booked { background: #FEE2E2; }
.gc-today  { background: #FFF8E1; }

.gc-sat .gc-date-num,
.gc-sat .gc-date-badge { color: #1565c0; }
.gc-sun .gc-date-num,
.gc-sun .gc-date-badge { color: #c62828; }

/* ── 日付数字 ── */
.gc-date-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #444;
    line-height: 1;
    margin-bottom: 2px;
}
.gc-past .gc-date-num { color: #aaa; }

.gc-date-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #F59E0B;
    color: #fff;
    font-size: 0.72rem;
    font-weight: bold;
    margin-bottom: 2px;
}

/* ── ○ × 記号 ── */
.gc-sym {
    display: block;
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 500;
}
.gc-sym-avail  { color: #0F6E56; }
.gc-sym-booked { color: #B91C1C; }

/* ── スマホ対応 ── */
@media (max-width: 480px) {
    .gc-nav-title  { font-size: 0.95rem; }
    .gc-nav-btn    { padding: 4px 8px; font-size: 0.78rem; }
    .gc-cell       { height: 48px; padding: 2px 1px; }
    .gc-date-num   { font-size: 0.65rem; }
    .gc-date-badge { width: 16px; height: 16px; font-size: 0.62rem; }
    .gc-sym        { font-size: 0.95rem; }
    .gc-legend     { font-size: 0.72rem; gap: 10px; }
    .gc-table th   { font-size: 0.7rem; padding: 4px 1px; }
}