/* 全体設定 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* テーブルヘッダを固定 */
.time-slot-table thead th {
    position: sticky;
    top: 0;
    z-index: 10; /* ヘッダを前面に */
    background-color: #fff; /* スクロール時にヘッダ文字が隠れないよう背景必須 */
}

/* ラッパ要素で縦スクロール */
.table-wrapper {
    max-height: 600px; /* お好みの高さ */
    overflow-y: auto;
}

.closed-info {
    font-family: Arial, sans-serif;
    font-size: 16px; /* フォントサイズは必要に応じて調整 */
    margin: 5px 0; /* 上下に余白を追加 */
}

.closed-message {
    text-align: center; /* コンテンツを中央揃え */
    background-color: #f8f8f8; /* 明るい背景色 */
    color: #333; /* テキストの基本色 */
    padding: 20px; /* 内側の余白 */
    border: 1px solid #ddd; /* 枠線 */
    border-radius: 10px; /* 角を丸くする */
    max-width: 600px; /* 最大幅 */
    margin: 50px auto; /* 上下中央揃え */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ボックスシャドウ */
}

.closed-message h3.status-title {
    font-size: 1.8rem; /* タイトルのフォントサイズ */
    color: #ff4d4f; /* 強調色 */
    margin-bottom: 10px; /* タイトル下の余白 */
}

.closed-message h3 {
    font-size: 1.6rem; /* その他見出しのフォントサイズ */
    color: #000; /* テキスト色 */
    margin-bottom: 10px; /* 見出し下の余白 */
}

.closed-message p {
    font-size: 1.2rem; /* 段落テキストのサイズ */
    line-height: 1.6; /* 行間 */
    margin: 10px 0; /* 上下の余白 */
    color: #666; /* ソフトなテキスト色 */
}

.closed-message p strong {
    color: #ff4d4f; /* 強調テキストの色 */
}

.seat-map {
    position: relative;
    display: inline-block;
}

.seat-image {
    max-width: 500px;
    width: 100%;
    height: auto;
}

.seat-label {
    position: absolute;
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    text-align: center;
    width: 30px; /* ラベルの背景サイズ */
    height: 30px;
    line-height: 30px;
    border: 1px solid black;
    border-radius: 5px;
    background: white;
}

/* 使用中のテーブルに横線を表示 */
.seat-label.occupied {
    text-decoration: line-through;
    color: red; /* 横線の色 */
}

/* 空いている席 */
.seat-label.available {
    color: #007bff; /* 横線の色 */
}

/* テーブルの状況セクション */
.table-status {
    padding: 20px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.status-title,
.available-status,
.used-table-title,
.reservation-title {
    margin-bottom: 15px;
    color: #444;
}

.available-tables {
    color: #007bff;
    font-size: 1.6rem;
}

.no-available-tables,
.no-reservation,
.no-booking-data {
    color: #d9534f;
    font-weight: bold;
}

/* 使用中のテーブル */
.used-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.used-table-header th {
    background-color: #f1f1f1;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #ddd;
}

.used-table-body td {
    padding: 10px;
    border: 1px solid #ddd;
}

.index-cell {
    font-weight: bold;
    text-align: center;
}

.index-cell.red {
    color: red;
}

.elapsed-time-cell {
    color: #555;
    font-style: italic;
}

/* 予約テーブル */
.reservation-container {
    margin-top: 30px;
}

.reservation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.reservation-header th {
    background-color: #f4f4f4;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #ddd;
}

.reservation-body td {
    padding: 10px;
    border: 1px solid #ddd;
}

.remarks-input {
    width: 100%;
    border: none;
    background-color: transparent;
    text-align: center;
    font-size: 1rem;
    padding: 5px;
}

.remarks-input:focus {
    outline: 2px solid #66bb6a;
    border-radius: 4px;
}

/* メディアクエリ */
@media screen and (max-width: 768px) {
    .table-status,
    .reservation-container {
        padding: 10px;
        margin: 10px auto;
    }

    .used-table,
    .reservation-table {
        font-size: 0.9rem;
    }

    .remarks-input {
        font-size: 0.8rem;
    }
}
