/* ヘッダー（矢印・年月） */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
    margin-bottom: 12px;
}

/* 矢印ボタンを大きく */
.nav-btn {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    color: #4a4a4a;
    cursor: pointer;
    user-select: none;
    border-radius: 10px;
    transition: background .12s ease, color .12s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.04)
}

.nav-btn.is-disabled {
    color: #bbb;
    background: transparent;
    cursor: default;
    pointer-events: none;
}

.nav-btn.is-disabled:hover {
    background: transparent;
}

.ym {
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

/* 曜日行 */
.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 600;
}

.weekdays div {
    padding: 6px 0
}

.weekdays .sun {
    color: red
}

.weekdays .sat {
    color: blue
}

/* カレンダーグリッド（横幅に合わせてセルが広がる） */
.grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px 6px;
    text-align: center;
    padding: 3px 2px 0 3px;
}

.cell {
    min-height: 60px;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #333;
    font-weight: 500;
}

.cell.available.selected {
    pointer-events: none;
}

.cell.available:not(.selected):hover {
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: .7;
}

.cell.past-date,
.cell.past-date>div {
    color: #999 !important;
}

#calendar.no-click .cell {
    pointer-events: none !important;
}

/* 空セル */
.day-number {
    font-size: 16px;
    line-height: 1;
    margin-bottom: 8px;
}

/* 日曜・土曜の色 */
.cell.sun .day-number {
    color: red
}

.cell.sat .day-number {
    color: blue
}

.cell.selected {
    background-color: #e7afb0;
}

/* マーカー（予約状況） */
.marker {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* 丸（受付あり） — 枠だけ */
.marker.circle {
    border: 2px solid #cb9c59;
    border-radius: 999px;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
}

/* 三角（△） */
.marker.triangle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid #cb9c59;
    transform: translateY(3px);
}

/* 横棒（-） — 要望に合わせて短く */
.marker.dash {
    width: 10px;
    height: 2px;
    background: #9b9b9b;
    border-radius: 2px;
    transform: translateY(8px);
}

/* 「未設定（空）」の薄表示 */
.cell.empty .day-number {
    color: transparent
}

.cell.empty .marker {
    visibility: hidden
}

#reservation-form-wrapper {
    position: relative;
}

.sideSearchLi li.msg {
    padding-bottom: 0;
}

/* オーバーレイ */
.form-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* 非表示用 */
.form-overlay.hidden {
    display: none;
}

/* スピナー */
.form-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.confirmSummary {
    background: #f8f8f8;
    padding: 10px 12px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 14px;
}

/* 各行 */
.confirmSummary p {
    display: flex;
    align-items: center;
    margin: 4px 0;
}

/* ラベル側 */
.confirmSummary .label {
    width: 60px;
    color: #666;
    font-size: 13px;
    flex-shrink: 0;
}

/* 値側 */
.confirmSummary span:not(.label) {
    font-weight: bold;
    color: #222;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}