h1 {
    text-align: center;
    font-size: 2rem;
    font-family: "KouzanMouhitsu", serif !important;
    margin: 10px;
}

.reservation {
    font-family: Arial, sans-serif !important;
}

.message {
    font-family: Arial, sans-serif !important;
}

.time-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* 行間のスペース */
}

.time-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 15px; /* 行ごとのスペース */
}

.time-slot-item {
    flex: 1 1 calc(25% - 10px); /* 1行に4つ配置 */
    text-align: center;
}

.time-slot {
    display: inline-block;
    text-decoration: none;
    color: black;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    transition: background-color 0.3s;
}

.time-slot:hover {
    background-color: #f0f0f0;
}

.red-symbol {
    color: red;
}

.blue-symbol {
    color: blue;
}

.yellow-symbol {
    color: orange;
}

.time-slot-past {
    color: gray;
}

/* ポップアップのオーバーレイとコンテンツ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    text-align: center;
    font-size: 1rem;
}

.popup-content p {
    font-size: 1rem;
    color: #333333;
    margin-bottom: 20px;
}

.popup-content p span {
    color: #dc3545; /* 赤色 */
    font-weight: bold; /* 強調 */
}

/* ボタンのスタイル */
.confirm-button {
    margin: 10px 5px;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100px;
}

#confirm-yes {
    background-color: #28a745;
    color: #ffffff;
}

#confirm-no {
    background-color: #dc3545;
    color: #ffffff;
}

.symbol {
    display: inline-block;
    font-family: Arial, sans-serif;
    text-align: center;
    vertical-align: middle; /* 縦中央揃え */
    line-height: 1.5rem; /* 縦の中央揃え */
    font-size: 1.2rem; /* 基本のフォントサイズ */
}

.symbol-triangle {
    font-size: 1rem; /* △のサイズを調整 */
    color: #ffa500; /* オレンジ色 */
}

.symbol-cross {
    font-size: 1.8rem; /* ×のサイズを調整 */
    color: red; /* 赤色 */
}

.symbol-tel {
    font-size: 0.8rem; /* TELのサイズを統一 */
    color: #ff6347; /* クリムゾン色 */
}

.tel-symbol {
    font-family: Arial, sans-serif;
    font-size: 1.2rem !important;
    color: #ff6347; /* クリムゾン */
}

.booking-info {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #333;
    margin-top: 0;
}

.info-remaining-seats {
    color: #ffa500; /* オレンジ色 */
    font-weight: bold;
    margin: 0;
}

.info-tel {
    color: #ff6347; /* クリムゾン */
    font-weight: bold;
    margin: 0;
}

.day {
    text-align: center;
    font-size: 1.8rem;
}

/* 全体のレイアウト */
.month-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px;
}

.month-header {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

.month-table {
    width: 100%;
    border-collapse: collapse;
}

.month-table th,
.month-table td {
    border: 1px solid #ccc;
    text-align: center;
    padding: 10px;
    vertical-align: top;
    position: relative;
}

.month-table th {
    background-color: #f7f7f7;
    font-weight: bold;
}

.empty {
    background-color: #f9f9f9;
}

.date {
    font-size: 16px;
    margin-bottom: 5px;
}

.time-slot-symbol {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-decoration: none;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    margin: 0 auto;
}

.time-slot-symbol:hover {
    background-color: #e0e0e0;
}

/* 色分け */
.red-symbol {
    color: red;
}

.yellow-symbol {
    color: #ffcc00;
}

.blue-symbol {
    color: blue;
}

.time-slot-past {
    color: gray;
    text-decoration: none;
}

/* ボタンのスタイル */
.calendar-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.calendar-buttons button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

.calendar-buttons button:hover {
    background-color: #0056b3;
}

/* CSS for time-slot elements */
.time {
    list-style-type: none;
    padding: 0;
    text-align: center; /* Center align the list items */
}

.time li {
    margin: 10px 0;
}

.time-slot {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    margin: 5px;
}

.time-slot:hover {
    background-color: #ddd;
    color: #000;
}

.time-slot[data-symbol="×"] {
    pointer-events: none;
    cursor: default;
    background-color: #ffcccc;
    color: #ff0000;
}

.time-slot[data-symbol="△"] {
    background-color: #fff0b3;
    color: #ff9900;
}

.time-slot[data-symbol="〇"] {
    background-color: #ccffcc;
    color: #009900;
}

#reservation-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    max-height: 80%; /* 高さを制限してスクロール可能にする */
    overflow-y: auto; /* 縦スクロールを有効にする */
}

#reservation-popup textarea#special_requests {
    width: 100%; /* 幅を100%に設定 */
    box-sizing: border-box; /* パディングとボーダーを含めてサイズを計算 */
    resize: vertical; /* 縦方向のリサイズを有効にする */
    min-height: 100px; /* 最低高さを設定 */
    margin-bottom: 20px; /* 下にマージンを追加 */
}

#reservation-popup h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

#reservation-popup input[type="text"],
#reservation-popup input[type="tel"],
#reservation-popup input[type="date"],
#reservation-popup input[type="email"],
#reservation-popup select {
    width: 100%;
    padding: 8px;
    margin: 5px 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#reservation-popup .booking-btn-container {
    text-align: right;
}

#reservation-popup .booking-btn-container input[type="submit"],
#reservation-popup .booking-btn-container button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 10px;
}

#reservation-popup .booking-btn-container input[type="submit"] {
    background-color: #28a745;
    color: #fff;
}

#reservation-popup .booking-btn-container button {
    background-color: #dc3545;
    color: #fff;
}

.reservation-card {
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.4rem;
    font-family: Arial, sans-serif; /* Arialフォントを指定 */
}

.button-container {
    text-align: center; /* 中央揃え */
}

.map-button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 50px;
}

.map-button:hover {
    background-color: #45a049; /* ホバー時の背景色 */
}

/* モーダルスタイル */
#reservation-popup {
    font-family: Arial, sans-serif; /* フォントをArialに指定 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    max-height: 80%; /* 高さを制限してスクロール可能にする */
    overflow-y: auto; /* 縦スクロールを有効にする */
}

#terms-modal {
    font-family: Arial, sans-serif; /* フォントをArialに指定 */
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 60px;
}

#terms-content {
    font-family: Arial, sans-serif; /* フォントをArialに指定 */
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-height: 70%;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 規約の内容が確認しやすいように調整 */
#terms-content p {
    line-height: 1.6;
    font-size: 14px;
}

/* 同意ボタンのスタイル */
.agree-button {
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    text-align: center;
    display: block;
    margin: 20px auto 0 auto;
}

#submit-button:disabled {
    background-color: #ccc !important;
    cursor: not-allowed !important;
    color: #666 !important; /* テキスト色もグレーアウト */
}

/* 入力フィールドとセレクトボックスの幅を統一 */
#reservation-popup input[type="text"],
#reservation-popup input[type="tel"],
#reservation-popup input[type="date"],
#reservation-popup input[type="email"],
#reservation-popup select {
    width: calc(100% - 20px); /* 左右の余白を合わせて100%に */
    padding: 8px;
    margin: 5px 10px; /* 左右に10pxの余白を追加 */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* パディングとボーダーを含めた幅計算を有効にする */
}

/* メディアクエリでレスポンシブデザインを調整 */
@media (max-width: 768px) {
    .month-table th,
    .month-table td {
        padding: 5px;
        font-size: 12px;
    }

    .calendar-buttons button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .reservation-card {
        width: 80%;
        font-size: 1.2rem;
    }

    .reservation {
        font-size: 1.2rem;
        font-family: Arial, sans-serif !important;
    }

    .message {
        font-size: 1rem;
        font-family: Arial, sans-serif !important;
    }

    h1 {
        font-size: 1.4rem;
    }
}
