/* ===== 予約システム メインコンテナ ===== */
#srs-reservation-system {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    border-radius: 12px;
    overflow-x: auto;
}

/* ===== 期間選択 ===== */
.srs-period-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.srs-period-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s;
    overflow: hidden;
}

.srs-period-option:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.srs-period-option label {
    display: block;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 100%;
}

.srs-period-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.srs-period-option input[type="radio"]:checked+.srs-period-info {
    background: #3498db;
    color: white;
}

.srs-period-info {
    padding: 20px;
    transition: all 0.3s;
}

.srs-period-info h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.srs-period-info p {
    margin: 0;
    font-size: 14px;
    color: #7f8c8d;
}

.srs-period-option input[type="radio"]:checked+.srs-period-info h4,
.srs-period-option input[type="radio"]:checked+.srs-period-info p {
    color: white;
}

#srs-period-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

#srs-period-info p {
    margin: 0;
    font-size: 14px;
    color: #2c3e50;
}

.srs-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    margin-left: 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.srs-btn-small:hover {
    background: #2980b9;
}

/* ===== ステップコンテナ ===== */
.srs-step-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.srs-step-header h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.srs-step-header p {
    color: #7f8c8d;
    margin: 0 0 20px 0;
    font-size: 14px;
}

/* ===== カレンダーステップ ===== */
#srs-step-calendar {
    padding: 0;
    background: transparent;
    margin: 0;
}

/* ===== カレンダーナビゲーション ===== */
#srs-calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #2F415D;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(47, 65, 93, 0.15);
}

#srs-current-month {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.srs-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.srs-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* ===== カレンダーグリッド ===== */
#srs-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow-x: auto;
    background: #fff;
    min-width: 100%;
    width: 100%;
}

.srs-calendar-header-day {
    background: #2F415D;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.srs-calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 60px;
    position: relative;
    padding: 4px;
    overflow: hidden;
    text-align: center;
    width: 100%;
    flex: 1;
    min-width: 0;
}

.srs-calendar-day.available {
    background: #eef8ff;
    border-color: #68737c;
    color: #334f6a;
}

.srs-calendar-day.available:hover {
    background: #bbdefb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.srs-calendar-day.full {
    background: #e1f5fe;
    border-color: #00bcd4;
    color: #00838f;
}

.srs-calendar-day.unavailable {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}

.srs-calendar-day.unavailable.advance-limit {
    background: #eeeeee;
    border-color: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}

.srs-calendar-day.unavailable.closed-day {
    background: #f5f5f5;
    border-color: #999;
    color: #666;
    cursor: not-allowed;
}

.srs-calendar-day.other-month {
    color: #bdbdbd;
    background: #f9f9f9;
    cursor: not-allowed;
}

.srs-calendar-day.today {
    /* border: 2px solid #3498db; */
    background: #e3f2fd;
}

.srs-day-number {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    line-height: 1;
}

.srs-day-slots {
    font-size: 18px;
    margin-top: 2px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 4px;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.srs-day-slots.available-mark {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.srs-day-slots.full {
    background: rgba(255, 193, 7, 0.1);
    color: #f39c12;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.srs-day-slots.unavailable {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.srs-day-slots.closed {
    background: rgba(158, 158, 158, 0.1);
    color: #666;
    border: 1px solid rgba(158, 158, 158, 0.3);
    font-size: 10px;
    font-weight: bold;
}



/* ===== 凡例 ===== */
.srs-legend,
.srs-table-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 15px 0;
    box-shadow: none;
    padding-bottom: 20px;
}

.srs-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: #666;
    box-shadow: none;
}

.srs-available,
.srs-full,
.srs-unavailable,
.srs-advance-limit,
.srs-slot-available,
.srs-slot-unavailable {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.srs-available {
    background: #27ae60;
}

.srs-full {
    background: #ffc107;
}

.srs-unavailable {
    background: #dc3545;
}

.srs-advance-limit {
    background: #6c757d;
}

.srs-slot-available {
    background: #27ae60;
    color: white;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    font-weight: bold;
}

.srs-slot-unavailable {
    background: #dc3545;
    color: white;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    font-weight: bold;
}

.srs-slot-user-reserved {
    background: #f39c12;
    color: white;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
}

/* ===== 席・時間選択テーブル ===== */
#srs-slots-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    /* PC・タブレット・スマホ全てで横スクロール有効 */
    max-width: 100%;
    border-radius: 8px;
}

.srs-availability-table {
    width: 100%;

    /* 最小幅を拡大して横スクロールを促進 */
    border-collapse: collapse;
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    animation: fadeInUp 0.5s ease-out;
    table-layout: fixed;
    margin-bottom: 20px;
    /* 固定レイアウトで均等なセル幅 */
}

.srs-availability-table th {
    background: #2F415D;
    color: white;
    padding: 8px 5px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.2;
}



.srs-availability-table .srs-time-header {
    background: #1e2d3a;
    color: white;
}

.srs-availability-table .srs-seat-header {
    /* background: #8f8f8f; */
    background-image: linear-gradient(359deg, #345fab, #2b3a53);
    color: white;
    text-align: center;
    padding: 6px 4px;
    border: 1px solid #fff;
}

.srs-seat-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 1px;
    line-height: 1.1;
}

.srs-seat-capacity {
    font-size: 8px;
    font-weight: 400;
    opacity: 0.8;
    color: #bdc3c7;
}

.srs-availability-table td {
    padding: 8px 5px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
    position: relative;
    width: auto;
}

.srs-availability-table td.srs-time-cell {
    background: #f5f6f7;
    font-weight: 600;
    color: #2F415D;
    white-space: normal;
    border-right: 2px solid #e1e4e6;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
}

.srs-slot-cell {
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    height: 85px;
    margin: 0 auto;
    font-weight: bold;
    border-radius: 6px;
    text-align: center;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3px;
}

.srs-slot-cell .slot-status {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 1px;
}

.srs-slot-cell .remaining-count {
    font-size: 15px;
    font-weight: normal;
    line-height: 1;
    opacity: 0.9;
    white-space: nowrap;
}

.srs-slot-cell.available {
    background: #58bc82;
    color: white;
    border: 2px solid #579772;
}

.srs-slot-cell.available:hover {
    background: #2ecc71;
    border-color: #2ecc71;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
    z-index: 10;
}

.srs-slot-cell.available:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.6);
}

.srs-slot-cell.unavailable {
    background: #9a9a9a;
    color: white;
    cursor: not-allowed;
    border: 2px solid #646464;
    opacity: 0.7;
    pointer-events: none;
}

.srs-slot-cell.unavailable:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* プランセット未設定の場合のスタイル */
.srs-slot-cell.unavailable.no-planset {
    background: #95a5a6;
    color: #ffffff;
    border: 2px solid #95a5a6;
    opacity: 0.8;
}

.srs-slot-cell.unavailable.no-planset:hover {
    background: #95a5a6;
    border-color: #95a5a6;
    transform: none;
    box-shadow: none;
    opacity: 0.8;
}

/* 本人予約と時間が重複するため予約不可（濃いグレー、満席とは別表現） */
.srs-slot-cell.unbookable {
    background: #4a4a4a;
    color: #f0f0f0;
    cursor: not-allowed;
    border: 2px solid #2c2c2c;
    opacity: 1;
    pointer-events: none;
}

.srs-slot-cell.unbookable:hover {
    background: #4a4a4a;
    border-color: #2c2c2c;
    transform: none;
    box-shadow: none;
}

.srs-availability-table td.unbookable-cell {
    cursor: not-allowed;
}

.srs-availability-table td.unbookable-cell:hover {
    background: transparent !important;
}

.srs-slot-cell.user-reserved {
    background: #f39c12;
    color: white;
    cursor: not-allowed;
    border: 2px solid #f39c12;
    opacity: 0.9;
    pointer-events: none;
}

.srs-slot-cell.user-reserved:hover {
    background: #f39c12;
    border-color: #f39c12;
    transform: none;
    box-shadow: none;
    opacity: 0.9;
}

/* 選択された席のハイライト効果 */
.srs-availability-table td:hover {
    background: rgba(52, 152, 219, 0.1);
}

.srs-availability-table tr:hover .srs-time-cell {
    background: #e8ebee;
    color: #1e2d3a;
}

/* テーブルの行ストライプ効果 */
.srs-availability-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.srs-availability-table tbody tr:hover {
    background: #e8f4fd;
}

/* 満席の行全体のホバー効果も制限 */
.srs-availability-table td:has(.srs-slot-cell.unavailable):hover {
    background: transparent;
}

/* 満席のセルを含む行のホバー効果を調整 */
.srs-availability-table tbody tr:hover td:has(.srs-slot-cell.unavailable) {
    background: transparent;
}

/* 満席セル自体のスタイル */
.srs-availability-table td.unavailable-cell {
    cursor: not-allowed;
}

.srs-availability-table td.unavailable-cell:hover {
    background: transparent !important;
}

/* クリック可能なセルのスタイル */
.srs-availability-table td.clickable {
    cursor: pointer;
}

.srs-availability-table td.clickable:hover {
    background: rgba(52, 152, 219, 0.1) !important;
}

/* ユーザー予約済みセルのスタイル */
.srs-availability-table td.user-reserved-cell {
    cursor: not-allowed;
}

.srs-availability-table td.user-reserved-cell:hover {
    background: rgba(243, 156, 18, 0.1) !important;
}

/* ===== ボタンスタイル ===== */
.srs-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

.srs-btn-primary {
    background: #3498db;
    color: white;
}

.srs-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.srs-btn-secondary {
    background: #95a5a6;
    color: white;
}

.srs-btn-secondary:hover {
    background: #7f8c8d;
}

.srs-btn-success {
    background: #27ae60;
    color: white;
    font-size: 16px;
    padding: 15px 30px;
}

.srs-btn-success:hover {
    background: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.srs-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== ステップアクション ===== */
.srs-step-actions {
    margin-top: 30px;
    text-align: right;
    border-top: 1px solid #ecf0f1;
    padding-top: 20px;
}

/* ===== 選択内容表示 ===== */
.srs-selected-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.srs-selected-info h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.srs-selected-info p {
    margin: 5px 0;
    font-size: 14px;
}

/* ===== ガイドライン ===== */
.srs-guidelines {
    margin-top: 20px;
}

.srs-guidelines h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.srs-guidelines ul {
    list-style: none;
    padding: 0;
}

.srs-guidelines li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #5d6d7e;
}

.srs-guidelines li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ===== 利用規約 ===== */
.srs-rules-text {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    background: #fafafa;
}

.srs-rules-text p {
    margin: 15px 0 5px 0;
    font-weight: 600;
    color: #2c3e50;
}

.srs-rules-text ul {
    margin: 10px 0 20px 20px;
}

.srs-rules-text li {
    margin: 5px 0;
    color: #5d6d7e;
}

.srs-agreement {
    text-align: center;
    padding: 15px;
    background: #e8f4fd;
    border-radius: 6px;
}

.srs-agreement label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
}

.srs-agreement input[type="checkbox"] {
    transform: scale(1.2);
}

/* ===== 予約確認サマリー ===== */
.srs-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.srs-summary-table th,
.srs-summary-table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.srs-summary-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    width: 120px;
    text-align: left;
}

.srs-summary-table td {
    color: #5d6d7e;
}

/* ===== フォームグループ ===== */
.srs-form-group {
    margin-bottom: 20px;
}

.srs-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.srs-form-group input:not([type="checkbox"]),
.srs-form-group select,
.srs-form-group textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: white;
    color: #2c3e50;
    line-height: 1.4;
}

.srs-form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

.srs-form-group select option {
    padding: 8px 12px;
    background: white;
    color: #2c3e50;
    font-size: 14px;
}

/* 人数選択の特別なスタイル */
#srs-party-size {
    font-weight: 600;
    min-height: 44px;
    background-color: #ffffff !important;
    border: 2px solid #3498db;
    border-radius: 6px;
    font-size: 16px;
    color: #2c3e50 !important;
}

#srs-party-size:focus {
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

#srs-party-size option {
    padding: 10px 12px;
    background: white !important;
    color: #2c3e50 !important;
    font-size: 16px;
    font-weight: 500;
}

.srs-form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.2);
}

.srs-form-group input:not([type="checkbox"]):focus,
.srs-form-group select:focus,
.srs-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.srs-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===== 完了メッセージ ===== */
.srs-complete-message {
    text-align: center;
    padding: 40px 20px;
}

.srs-success-icon {
    font-size: 48px;
    color: #27ae60;
    margin-bottom: 20px;
}

.srs-complete-message p {
    font-size: 16px;
    color: #2c3e50;
    margin: 10px 0;
}

/* 予約詳細情報の表示 */
.srs-reservation-details {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    text-align: left;
    max-width: 600px;
    /* margin-left: auto;
    margin-right: auto; */
}

.srs-reservation-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.srs-detail-item {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

.srs-detail-item:last-child {
    border-bottom: none;
}

.srs-detail-item strong {
    color: #2c3e50;
    font-weight: 600;
    display: inline-block;
    width: 80px;
    margin-right: 10px;
}

/* ===== ローディング ===== */
#srs-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.srs-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ffffff30;
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* ===== エラーメッセージ ===== */
.srs-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
    #srs-reservation-system {
        padding: 0;
    }

    .srs-step-container {
        padding: 20px;
    }

    #srs-step-slots {
        padding: 0;
    }

    #srs-step-slots .srs-step-header {
        padding: 15px;
    }

    #srs-step-slots .srs-step-actions {
        padding: 15px;
    }

    #srs-step-slots .srs-table-legend {
        padding: 0 15px;
    }

    #srs-slots-table-container {
        margin: 0;
        padding: 0 15px;
    }

    #srs-step-calendar {
        padding: 0;
        background: transparent;
    }

    #srs-calendar-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #srs-calendar-navigation {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        gap: 10px;
    }

    #srs-current-month {
        font-size: 16px;
        flex: 1;
        text-align: center;
    }

    .srs-nav-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 50px;
    }

    #srs-calendar-grid {
        font-size: 12px;
        min-width: 300px;
        max-width: 100%;
    }

    .srs-calendar-day {
        min-height: 55px;
        padding: 3px 2px;
        overflow: hidden;
        width: 100%;
        flex: 1;
        min-width: 0;
    }

    .srs-day-number {
        font-size: 12px;
    }

    .srs-day-slots {
        font-size: 16px;
        padding: 2px 2px;
        min-height: 18px;
    }

    .srs-availability-table {
        font-size: 12px;
        min-width: 300px;
    }

    .srs-availability-table th,
    .srs-availability-table td {
        padding: 6px 2px;
    }





    .srs-availability-table .srs-seat-header {
        padding: 4px 2px;
    }

    .srs-seat-name {
        font-size: 13px;
        margin-bottom: 1px;
    }

    .srs-seat-capacity {
        font-size: 7px;
    }

    .srs-slot-cell {
        width: 100%;
        height: 72px;
        font-size: 15px;
        padding: 2px;
    }

    .srs-slot-cell .slot-status {
        font-size: 20px;
        margin-bottom: 1px;
    }

    .srs-slot-cell .remaining-count {
        font-size: 13px;
        white-space: nowrap;
    }

    .srs-availability-table td.srs-time-cell {
        font-size: 10px;
        padding: 6px 2px;
        white-space: normal;
        line-height: 1.1;
        text-align: center;
    }

    .srs-availability-table td.srs-time-cell strong {
        display: inline-block;
    }

    /* 時間帯別テーブル - モバイル */
    .srs-timeslot-header {
        font-size: 12px;
        padding: 10px 8px;
    }

    .srs-legend,
    .srs-table-legend {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .srs-step-actions {
        text-align: center;
    }

    .srs-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }

    .srs-summary-table th {
        width: 100px;
        font-size: 12px;
    }
}

/* タブレット対応 */
@media (max-width: 1024px) and (min-width: 769px) {
    .srs-availability-table {
        font-size: 13px;
    }

    .srs-slot-cell {
        width: 97%;
        height: 60px;
        font-size: 12px;
        padding: 2px;
    }

    .srs-slot-cell .slot-status {
        font-size: 15px;
        margin-bottom: 1px;
    }

    .srs-slot-cell .remaining-count {
        font-size: 8px;
        white-space: nowrap;
    }

    .srs-seat-name {
        font-size: 9px;
    }

    .srs-seat-capacity {
        font-size: 7px;
    }

    /* 時間帯別テーブル - タブレット */
    .srs-timeslot-header {
        font-size: 14px;
        padding: 12px 8px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== キャンセルモーダル用スタイル ===== */
#srs-cancellation-modal .srs-modal-content {
    max-width: 600px;
    width: 90%;
}

.srs-fee-info {
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.srs-fee-info.srs-fee-free {
    background: #d4edda;
    border-color: #27ae60;
    color: #155724;
}

.srs-fee-info.srs-fee-charged {
    background: #fff3cd;
    border-color: #f39c12;
    color: #856404;
}

.srs-fee-amount {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.srs-fee-description {
    font-size: 14px;
    margin-bottom: 10px;
}

.srs-fee-notice {
    font-size: 13px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

.srs-warning {
    color: #e74c3c;
    font-weight: bold;
    margin: 10px 0;
}

.srs-cancellation-policy {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    text-align: left;
}

.srs-cancellation-policy h4 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 16px;
    text-align: left;
}

.srs-cancellation-policy ul {
    margin: 10px 0;
    padding-left: 1.5em;
    list-style: disc;
    text-align: left;
}

.srs-cancellation-policy li {
    margin: 4px 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.srs-cancellation-policy p {
    margin: 10px 0 0;
    text-align: left;
}

#srs-cancellation-modal .srs-modal-body {
    text-align: left;
}

.srs-policy-content {
    max-height: 200px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.5;
}

.srs-policy-content h4 {
    font-size: 14px;
    margin: 15px 0 8px 0;
}

.srs-policy-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.srs-policy-content li {
    margin: 4px 0;
    font-size: 13px;
}

.srs-modal-footer .srs-btn {
    margin: 0 5px;
}

.srs-btn-danger {
    background: #e74c3c;
    color: white;
}

.srs-btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #srs-cancellation-modal .srs-modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .srs-fee-amount {
        font-size: 16px;
    }

    .srs-modal-footer {
        text-align: center;
    }

    .srs-modal-footer .srs-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* ===== バースデーケーキ関連スタイル ===== */
.srs-form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
}

.srs-checkbox-label {
    margin-left: 0;
    font-weight: normal;
    cursor: pointer;
}

.srs-birthday-cake-status.srs-cake-yes {
    color: #198754;
    font-weight: bold;
}

.srs-birthday-cake-status.srs-cake-no {
    color: #6c757d;
    font-style: italic;
}

/* バースデーケーキモーダルのスタイル */
.srs-birthday-cake-options {
    text-align: center;
}

.srs-cake-description {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #ffc107;
    text-align: left;
}

.srs-cake-actions {
    margin: 20px 0;
}

.srs-cake-actions .srs-btn {
    margin: 8px 0;
    font-size: 16px;
    padding: 12px 20px;
    width: 100%;
    display: block;
}

.srs-cake-notes {
    text-align: left;
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.srs-cake-notes h5 {
    margin-top: 0;
    color: #495057;
}

.srs-cake-notes ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.srs-cake-notes li {
    margin-bottom: 5px;
    font-size: 14px;
    color: #6c757d;
}

.srs-btn-block {
    width: 100%;
    display: block;
}

.srs-btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.srs-btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* プレート名前入力欄のスタイル */
.srs-birthday-cake-plate-section {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff9e6;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    animation: slideDown 0.3s ease-out;
}

.srs-birthday-cake-plate-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.srs-birthday-cake-plate-section input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.srs-birthday-cake-plate-section input[type="text"]:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
}

.srs-plate-validation-info {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

.srs-plate-validation-info strong {
    color: #495057;
}

/* === プレートメッセージ ガイド（アニバーサリーケーキモーダル） === */
.srs-plate-message-guide {
    text-align: left;
    background-color: #fff8e6;
    border: 1px solid #f0d990;
    border-left: 4px solid #d99a00;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.65;
    color: #4a3a00;
}

.srs-plate-message-guide h5 {
    margin: 0 0 10px;
    color: #5a4400;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.srs-plate-message-guide h5.srs-plate-message-subhead {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #f0d990;
}

.srs-plate-message-guide h5.srs-plate-message-subhead small {
    font-weight: normal;
    margin-left: 6px;
    color: #7a6a30;
    font-size: 11px;
}

.srs-plate-message-lead {
    margin: 0 0 8px;
}

.srs-plate-message-lead strong {
    color: #b00020;
}

.srs-plate-message-counts,
.srs-plate-message-allowed,
.srs-plate-message-symbols {
    margin: 0 0 6px;
    padding-left: 20px;
    list-style: disc;
}

.srs-plate-message-counts li,
.srs-plate-message-allowed li,
.srs-plate-message-symbols li {
    margin: 2px 0;
}

.srs-plate-symbol {
    display: inline-block;
    min-width: 24px;
    padding: 0 6px;
    margin-left: 4px;
    text-align: center;
    background: #fff;
    border: 1px solid #d99a00;
    border-radius: 4px;
    font-weight: 600;
    color: #5a4400;
}

.srs-plate-symbol-note {
    margin-left: 2px;
    font-size: 11px;
    color: #7a6a30;
}

.srs-plate-message-warning {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #f5b9a8;
    border-left: 4px solid #d9534f;
    border-radius: 6px;
    color: #6e2018;
    font-size: 12.5px;
}

.srs-plate-message-warning p {
    margin: 0 0 6px;
    line-height: 1.7;
}

.srs-plate-message-warning p:last-child {
    margin-bottom: 0;
}

.srs-plate-message-warning strong {
    color: #b00020;
}

.srs-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* プレート名前入力欄のアニメーション */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 予約確認画面でのプレート名前表示 */
.srs-birthday-cake-plate-name {
    color: #f57c00;
    font-weight: bold;
    font-size: 14px;
    margin-top: 3px;
}

.srs-birthday-cake-plate-name .plate-icon {
    margin-right: 5px;
}

/* ===== 休館日通知 ===== */
.srs-closed-day-notice {
    text-align: center;
    padding: 40px 20px;
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 8px;
    margin: 20px 0;
}

.srs-closed-day-notice h3 {
    color: #e53e3e;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.srs-closed-day-notice p {
    color: #744c4c;
    margin: 0 0 20px 0;
    font-size: 16px;
}

/* ===== 予約可能時間帯なし通知 ===== */
.srs-no-slots-notice {
    text-align: center;
    padding: 40px 20px;
    background: #fffbf0;
    border: 2px solid #fbd38d;
    border-radius: 8px;
    margin: 20px 0;
}

.srs-no-slots-notice h3 {
    color: #dd6b20;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.srs-no-slots-notice p {
    color: #744210;
    margin: 0 0 20px 0;
    font-size: 16px;
}

/* ===== 時間帯別テーブル ===== */
.srs-timeslot-table-wrapper {
    margin-bottom: 20px;
}

.srs-timeslot-table-wrapper:last-child {
    margin-bottom: 0;
}

.srs-timeslot-header {
    background: #31415d;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    padding: 15px 10px;
    margin-bottom: 0;
}

.srs-timeslot-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0;
    margin-bottom: 0;
    table-layout: fixed;
}

/* 空のヘッダーとセル */
.srs-empty-header {
    background: #f8f9fa !important;
    border: none !important;
}

.srs-empty-cell {
    background: #f8f9fa;
    border: none;
}

/* 上部のカレンダーに戻るボタンのスタイル */
.srs-step-actions-top {
    margin-bottom: 20px;
    text-align: center;
}

.srs-step-actions-top .srs-btn {
    display: inline-block;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .srs-step-actions-top {
        margin-bottom: 15px;
    }
}

/* アニバーサリーケーキのスタイル */
.srs-anniversary-cake-details {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.anniversary-cake-item {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.anniversary-cake-item h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.anniversary-cake-item:last-child {
    margin-bottom: 0;
}

.anniversary-cake-plate-message-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.anniversary-cake-plate-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.plate-message-char-count {
    margin-top: 6px;
    font-size: 12px;
    color: #50575e;
}

.plate-message-char-count.over-limit {
    color: #b00020;
    font-weight: 600;
}

/* 管理画面用のアニバーサリーケーキスタイル */
.admin-anniversary-cake-details {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.admin-anniversary-cake-details .anniversary-cake-item {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.admin-anniversary-cake-details .anniversary-cake-item h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.admin-anniversary-cake-details .form-row {
    margin-bottom: 10px;
}

.admin-anniversary-cake-details .anniversary-cake-plate-message-section {
    margin-top: 10px;
    padding: 10px;
    background: #f1f3f4;
    border-radius: 3px;
}

/* 同伴者ID入力フィールドのスタイル */
#srs-companions-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.companion-field {
    margin-bottom: 15px;
}

.companion-field:last-child {
    margin-bottom: 0;
}

.companion-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.companion-id-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.companion-id-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}
