@charset "UTF-8";

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

@media screen and (max-width: 450px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
}

.sp_br {
  display: none;
}

@media screen and (max-width: 450px) {
  .pc_br {
    display: none;
  }
  .sp_br {
    display: block;
  }
}

/* form ----------------------------------------- */

.loading-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333; 
    opacity: 0.8;
    padding: 20px 0;
}

.loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    vertical-align: middle;
    border: 2px solid rgba(0, 0, 0, 0.1); 
    border-top: 2px solid #333; 
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.calendar-section {
    position: relative;
    width: 100%;
    overflow-x: hidden; 
    box-sizing: border-box;
    padding: 100px 0;
    background-image: url('/img/top-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

@media (max-width: 768px) {
    .calendar-section { 
        padding: 60px 20px; 
        background-attachment: scroll; 
    }
}

.cal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(100, 100, 100, 0.6); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.cal-container {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

@media screen and (max-width: 450px) {
    .cal-container {
        padding: 0px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
}

.calendar-title {
    color: #fff;
    font-size: 2rem;
    font-weight: normal;
    margin: 0;
    letter-spacing: 0.15em;
}

.calendar-subtitle {
    color: #fff;
     font-size: 0.75rem;
    font-weight: normal;
    margin-top: 10px;
    letter-spacing: 0.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.calendar-subtitle::before,
.calendar-subtitle::after {
    content: "";
    width: 40px;
    height: 1px;
    background-color: #ddd;
}

.cal-unit {
    background: #fff;
    color: #333;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cal-unit h4 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: bold;
}

#reserve-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #eee;
}

@media screen and (max-width: 450px) {
    #reserve-table-container {
        width: 100%;
        max-width: 100vw;
        overflow-x: auto;
        overflow-y: auto;
        max-height: 70vh;
        border-radius: 3px;
        display: block;
        -webkit-overflow-scrolling: touch;
        margin-left: 0;
        margin-right: 0;
    }
}

@media screen and (max-width: 450px) {
    #reserve-table-container::after {
        display: block;
        text-align: center;
        font-size: 10px;
        color: #999;
        padding: 10px 0;
    }
}

.res-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 500px;
}

@media screen and (max-width: 450px) {
    .res-table {
        min-width: 1500px;
        width: auto;
        table-layout: auto;
        border-collapse: separate;
        border-spacing: 0;
    }
}

.res-table th, .res-table td {
    border: 1px solid #f0f0f0;
    padding: 10px 5px;
    text-align: center;
}

@media screen and (max-width: 450px) {
    .res-table thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        background-color: #333;
        color: #fff;
        font-size: 14px;
        padding: 15px 5px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
}

@media screen and (max-width: 450px) {
    .res-table td {
        padding: 8px 5px;
        font-size: 12px;
        min-width: 60px;
    }
}

@media screen and (max-width: 450px) {
    .time-col {
        position: sticky;
        left: 0;
        z-index: 5;
        background-color: #f0f0f0;
        font-weight: bold;
        font-size: 14px;
        padding: 15px 10px;
        color: #000;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        border-right: 1px solid #ccc;
    }
}

.res-table th {
    background: #fafafa;
    font-weight: normal;
    color: #666;
}

@media screen and (max-width: 450px) {
    .res-table thead th:first-child {
        left: 0;
        top: 0;
        z-index: 15; /* 最も上に配置 */
        background-color: #222;
    }
}

.mark-ok {
    color: #004b93;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    width: 100%;
    height: 100%;
    transition: background 0.3s;
}

.mark-ok:hover {
    background: #f0f7ff;
}

.mark-ng {
    color: #ccc;
    font-size: 0.8rem;
}

.is-selected {
    background: #004b93 !important;
    color: #fff !important;
}

.res-form-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 40px 40px !important;
    text-align: left;
}

@media screen and (max-width: 450px) {
    .res-form-card {
        padding: 25px 15px !important;
        width: 100%;
        box-sizing: border-box;
    }
}

.memo {
    color: #999; 
    font-size: 0.75rem; 
    line-height: 1.5; 
    margin-bottom: 25px; 
    padding: 0 5px;
}

.res-item {
    margin-bottom: 30px;
}

.res-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #333;
}

.full-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box;
}

.select-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.select-row select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
}

@media screen and (max-width: 450px) {
    .course-grid {
        grid-template-columns: 1fr !important;
    }
}

.course-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.course-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.res-notes {
    margin: 40px 0;
    padding-top: 25px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.85rem;
    line-height: 2;
    color: #666;
}

.policy-section {
    margin-top: 30px;
    text-align: left;
}

.policy-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    height: 150px;
    max-height: 150px;
    overflow-y: scroll; 
    -webkit-overflow-scrolling: touch;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: left;
}

.policy-box p {
    margin-bottom: 10px;
}

.policy-title {
    font-weight: bold;
    color: #333;
}

.consent-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 20px;
}

.consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.consent-label span {
    font-size: 0.95rem;
    color: #333;
}

.res-btn-area {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.res-btn-confirm {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: #333;
    text-decoration: none;
    padding: 18px 25px;
    margin: 0 auto;
    font-weight: bold;
    letter-spacing: 0.1em;
    width: 100%;
    max-width: 280px;
    transition: all 0.3s ease;
    border: 1px solid #333;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

.res-btn-confirm .arrow {
    font-size: 1.2rem;
    margin-left: 10px;
}

.res-btn-confirm:hover {
    background: #333;
    color: #fff;
}

/* confirm -------------------------------------- */

.confirm-val {
    font-size: 1.1rem;
    color: #333;
    padding: 5px 0 15px;
    border-bottom: 1px dashed #eee;
    margin: 0;
}

.confirm-list {
    margin-bottom: 30px;
}