
.reserve-calendar-wrap {
    max-width: 1100px;
    margin: 40px auto;
    font-family: "Noto Sans JP", sans-serif;
    color: #222;
}

.reserve-header {
    border-bottom: 3px solid #68553d;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.reserve-header h2 {
    font-size: 28px;
    margin: 0 0 18px;
    color: #68553d;
}

.reserve-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: end;
}

.reserve-controls label {
    font-size: 14px;
    font-weight: 600;
}

.reserve-controls select,
.reserve-controls input {
    display: block;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.reserve-controls button {
    background: #68553d;
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.calendar-scroll {
    overflow-x: auto;
}

.reserve-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #fff;
}

.reserve-table th,
.reserve-table td {
    border: 1px solid #e4e7eb;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.reserve-table th {
    background: #f9f6f2;
    color: #68553d;
    font-weight: 700;
    white-space: nowrap;
}

.room-name {
    text-align: left !important;
    font-weight: 700;
    min-width: 220px;
    background: #fff;
    position: sticky;
    left: 0;
    z-index: 2;
}

.status-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 700;
}

.status-ok {
    color: #68553d;
    background: #f9f6f2;
}

.status-few {
    color: #e69100;
    background: #fff4df;
}

.status-ng {
    color: #999;
    background: #f2f2f2;
    pointer-events: none;
}

.status-none {
    color: #bbb;
    background: #f7f7f7;
    pointer-events: none;
}

.facility-title {
    margin: 30px 0 12px;
    font-size: 20px;
    color: #68553d;
    border-left: 5px solid #68553d;
    padding-left: 10px;
}

.calendar-note {
    font-size: 13px;
    margin-top: 12px;
    color: #666;
}

@media (max-width: 768px) {
    .reserve-calendar-wrap {
        margin: 25px 0;
    }

    .reserve-header h2 {
        font-size: 24px;
    }
}

@media screen and (max-width: 768px) {
  .calendar-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .reserve-table {
    min-width: 900px;
  }

  .reserve-table th,
  .reserve-table td {
    font-size: 12px;
    padding: 8px 6px;
  }

  .room-name {
    min-width: 160px;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 3;
  }

  .status-link {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .group-title-row {
    font-size: 14px;
    padding: 12px 8px !important;
  }
}

.group-title-row {
    background: #68553d !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 10px !important;
    letter-spacing: 0.04em;
}

.reserve-calendar-wrap,
.calendar-result,
.calendar-scroll {
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .reserve-calendar-wrap {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .calendar-scroll {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .reserve-table {
        width: max-content;
        min-width: 900px;
    }
}