.reservation-list-container {
    margin: auto 5px;
    padding: 5px 10px;
}

.jqtl-event-label {
    font-size: 13px!important;
}

.jqtl-ruler-line-item {
    text-align: left!important;
}

.reservation-table-wrapper {
    margin-top: 5px;
}

.reservation-table-wrapper .scroll-box {
    max-height: 100vh;
    overflow-x: auto;
    overflow-y: auto;
    padding-right: 10px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.reservation-table-wrapper table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

.reservation-table-wrapper th, .reservation-table-wrapper td {
    vertical-align: middle;
    padding: 5px 0;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}

.reservation-table-wrapper td {
    background: #fff;
}

.reservation-list-table-wrapper .scroll-box {
    max-height: 100vh;
    overflow-x: auto;
    overflow-y: auto;
    padding-right: 10px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.reservation-list-table-wrapper table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

.reservation-list-table-wrapper th, .reservation-list-table-wrapper td {
    border: 1px solid #778ca3;
    vertical-align: middle;
    padding: 5px 0;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}

.reservation-list-table-wrapper td {
    background: #fff;
}

.reservation-list-mark {
    padding-left: 4px;
    color: #d81b60;
    cursor: pointer;
}

.highlight-cell {
    background-color: #ffeeba !important;
}

._sticky_a {
    position: sticky;
    top: 0;
    left: 0;
    background: none;
    border: solid 1px #778ca3;
    z-index: 9;
}

._sticky_a:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-left: 1px solid #778ca3;
    border-right: 1px solid #778ca3;
    background: #f9f8f7;
    z-index: -1;
}

._sticky_b {
    width: 50px;
    padding: 5px 35px 5px 5px;
    position: sticky;
    top: 0;
    left: 0;
    background: none;
    border-top: none;
    border-bottom: none;
}

._sticky_b:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top: 1px solid #778ca3;
    border-bottom: 1px solid #778ca3;
    background: #f9f8f7;
    z-index: -1;
}

._sticky_b_border {
    border-left: solid 1px #778ca3;
}

._sticky_ab {
    width: 150px;
    position: sticky;
    top: 0;
    left: 0;
    background: none;
    border-top: none;
    border-bottom: none;
    border-left: none;
    border-right: none;
    z-index: 1;
}

._sticky_ab:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top: 1px solid #778ca3;
    border-bottom: 1px solid #778ca3;
    border-left: 1px solid #778ca3;
    border-right: 1px solid #778ca3;
    background: #f9f8f7;
    z-index: -1;
}

.reservation-item-wrapper {
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.reservation-item-wrapper a {
    color: #493024;
    font-weight: 600;
}

.reservation-item {
    position: absolute;
    left: 2px;
    top: -20px;
    height: 40px;
    width: 45px;
    background-color: #ffc0cb;
    border-radius: 4px;
    z-index: 5;
    font-size: 11px;
    text-align: left;
    padding: 0 5px;
    display: grid;
    place-items: center start;    
}

.reservation-td {
    position: relative;
    border: 1px solid #778ca3;
}

.reservation-td a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bi-check-circle-fill {
    color: #00CC00;
}

.bi-x-circle-fill {
    color: #FF6347;
}

.reservation-settings-tr {
    background-color: #f9f8f7;
}

.course-wrapper {
    position: relative;
    max-width: 800px;
    margin: auto;
}

.course-list-wrapper {
    margin: 10px auto;
}

.course-list-item {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin: 10px auto;
    padding-bottom: 5px;
    border-bottom: solid 1px #eeeeee;
}

.course-list-item_img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

@media (min-width:768px) {
    .course-list-item_img img {
        width: 120px;
        height: 120px;
    }
}

.course-list-item-box {
    margin: 0 10px;
}

.course-list-item_name {
    font-weight: 600;
    font-size: 14px;
    text-decoration: underline;
}

.course-list-item_price {
    font-weight: 600;
    font-size: 16px;
    color: #d81b60;
}

.course-list-item_duration_of_stay {
    margin-top: 4px;
    font-weight: 600;
    font-size: 11px;
}

.course-list-item_detail {
    margin-top: 5px;
    font-size: 12px;
    color: #888888;
}

.course-list-item_total_amount {
    background-color: #dddddd;
    border-radius: 4px;
    width: 100%;
    display: inline;
    font-size: 11px;
    color: #444444;
    padding: 2px 10px;
}

.course-list-item_number_of_people {
    font-size: 11px;
    margin: 5px auto;
    color: #888888;
}

.course-list-item_number_of_people i {
    padding-right: 5px;
}

.course-list-item_btn-wrapper {
    margin: 5px auto;
}

.course-list-item a.course-list-item_btn {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
    width: 100%;
    height: 100%;
    z-index: 1;
    color: #fff;
}

.course-list-item_btn {
    position: relative;
    border-radius: 4px;
    width: 100%;
    display: inline;
    font-size: 11px;
    color: #fff;
    padding: 6px 10px;
    margin-bottom: 5px;
    cursor: pointer;
}

.cancel-policy-wrapper {
    position: relative;
}

#cancel_policy_btn {
    position: absolute;
    top: 4px;
    right: 0;
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
}

.notice-wrapper {
    position: relative;
}

#notice_btn {
    position: absolute;
    top: 4px;
    right: 0;
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
}

.date-wrapper {
    font-size: 14px;
    max-width: 300px;
    margin: auto;
}

.reservation-modal-area {
    display: none;
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.9);  /* ← ここに直接背景を持たせる */
}

.reservation-modal-wrapper {
    position: fixed; /* ← absoluteからfixedに変更 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 80vh; /* ← 高さを制限しつつvhに依存しすぎない */
    overflow-y: auto; /* scroll → auto に変更してスクロールバー表示制御 */
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    line-height: 1.4;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 888;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .reservation-modal-wrapper {
        width: 90%;
        top: 50%; /* 固定してモーダル中央に表示 */
    }
}

.reservation-modal-content {
    font-size: 13px;
    padding: 0 15px 5px;
    text-align: left;
    margin-top: 10px;
}

.reservation-modal-content-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.reservation-modal-content-detail {
    margin-bottom: 5px;
    margin-left: 10px;
    word-break: break-all;
    font-size: 12px;
}

.reservation-modal-open {
    cursor: pointer;
}

.reservation-modal-close {
    position: absolute;
    top: 120px;
    right: 10%;
    cursor: pointer;
    font-size: 24px;
    padding: 4px;
    color: #fff;
    z-index: 99;
}

@media (min-width:768px) {
    .reservation-modal-close {
        top: 140px;
        right: 30%;
    }
}

.seated {
    background-color: #dddddd;
}

.status-change-btn {
    position: relative;
    width: 200px;
    height: 20px;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
    margin-bottom: 5px;
    padding: 4px 0;
    color: #d34d74;
    text-decoration: underline;
}

.status-change-btn a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #d34d74;
    line-height: 20px;
    font-size: 13px;
    cursor: pointer;
}

table.reservation-detail {
    border-collapse: collapse; /* 枠をスッキリ重ねる */
    width: 100%;
    border: 1.5px solid #bbbbbb; /* テーブル外枠 */    
}

table.reservation-detail td {
    border: 1px solid #dddddd; /* 各セルの枠 */
    padding: 4px;
    font-size: 11px;
}

@media (min-width:768px) {
    table.reservation-detail td {
        font-size: 13px;
    }
}

table.reservation-detail td.title {
    width: 30%;
}

.notice-container {
    font-size: 12px;
    font-weight: 600;
}