* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4a90e2;
    --primary-dark: #2d5aa6;
    --primary-light: #e8f1ff;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --secondary: #95a5a6;
    --background: #f8f9fa;
    --border: #dee2e6;
    --text: #333;
    --text-light: #666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ヘッダー */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin-bottom: 20px;
    font-size: 28px;
}

header nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: background 0.3s;
}

header nav a:hover {
    background: rgba(255, 255, 255, 0.3);
}

header nav .logout-link {
    background: rgba(231, 76, 60, 0.5);
}

header nav .logout-link:hover {
    background: rgba(231, 76, 60, 0.7);
}

/* メインコンテンツ */
main {
    margin-bottom: 50px;
}

/* セクション */
section {
    background: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

section h2, section h3 {
    margin-bottom: 20px;
    color: var(--primary-dark);
}

section h3 {
    margin-top: 25px;
}

/* フォーム */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 12px;
}

.form-group .required {
    color: var(--danger);
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

legend {
    padding: 0 10px;
    font-weight: 600;
    color: var(--primary-dark);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

/* ボタン */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

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

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-danger-dark {
    background-color: #8B0000;
    color: white;
}

.btn-danger-dark:hover {
    background-color: #600000;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* メッセージ */
.message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success);
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.message-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning);
}

/* 情報ボックス */
.info-box, .info-section {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.info-section ul, .info-section ol {
    margin-left: 20px;
    margin-top: 10px;
}

.info-section li {
    margin-bottom: 10px;
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table thead {
    background-color: var(--primary-light);
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--border);
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
}

table tbody tr:hover {
    background-color: #f5f5f5;
}

table tbody tr.cancelled {
    opacity: 0.6;
    background-color: #f9f9f9;
}

/* バッジ */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background-color: #d4edda;
    color: #155724;
}

.badge-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* 予約カード */
.reservations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.reservation-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.reservation-card:hover:not(.cancelled) {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.reservation-card.cancelled {
    opacity: 0.7;
    background-color: #f9f9f9;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f7ff 100%);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.confirmation-id {
    font-size: 13px;
    color: var(--text-light);
}

.confirmation-id strong {
    color: var(--primary-dark);
    font-size: 14px;
}

.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background-color: var(--success);
    color: white;
}

.status-cancelled {
    background-color: var(--danger);
    color: white;
}

.card-body {
    padding: 15px;
}

.card-body p {
    margin-bottom: 10px;
    font-size: 14px;
}

.card-body strong {
    color: var(--primary-dark);
}

.card-body small {
    color: var(--text-light);
}

.card-footer {
    padding: 15px;
    border-top: 1px solid var(--border);
    background-color: var(--background);
}

/* カレンダー */
.calendar-section {
    background: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--primary-light);
    border-radius: 4px;
}

.current-month {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    min-width: 150px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 30px;
}

.calendar-header {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: 4px;
}

.calendar-header.weekend-header {
    background: #eff6ff;
    color: #1e40af;
    border: 2px solid #3b82f6;
}

.calendar-cell {
    min-height: 100px;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calendar-cell.weekend {
    border-color: #3b82f6;
    border-width: 2px;
}

.calendar-cell.national-holiday {
    border-color: #1e40af;
    border-width: 3px;
    background: rgba(30, 64, 175, 0.03);
}

.calendar-cell.empty {
    background: var(--background);
    border: none;
}

.calendar-cell.available {
    background: #e8f5e9;
    border-color: #27ae60;
    cursor: pointer;
}

.calendar-cell.available:hover {
    background: #c8e6c9;
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.2);
    transform: translateY(-2px);
}

.calendar-cell.available.weekend {
    background: #eff6ff;
    border-color: #3b82f6;
}

.calendar-cell.available.weekend:hover {
    background: #dbeafe;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.calendar-cell.available.national-holiday {
    background: #eff6ff;
    border-color: #1e40af;
    border-width: 3px;
}

.calendar-cell.available.national-holiday:hover {
    background: #dbeafe;
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.2);
}

.calendar-cell.booked {
    background: #fff3e0;
    border-color: #f39c12;
}

.calendar-cell.booked:hover {
    background: #ffe0b2;
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.2);
    transform: translateY(-2px);
}

.calendar-cell.booked.weekend {
    border-color: #3b82f6;
}

.calendar-cell.booked.national-holiday {
    border-color: #1e40af;
    border-width: 3px;
}

.calendar-cell.full {
    background: #ffebee;
    border-color: #e74c3c;
    cursor: not-allowed;
}

.calendar-cell.full.weekend {
    border-color: #3b82f6;
}

.calendar-cell.full.national-holiday {
    border-color: #1e40af;
    border-width: 3px;
}

.calendar-cell.blocked {
    background: #f5f5f5;
    border-color: var(--border);
    color: var(--text-light);
    cursor: not-allowed;
}

.calendar-cell.blocked.weekend {
    background: #eff6ff;
    border-color: #3b82f6;
}

.calendar-cell.blocked.national-holiday {
    background: #eff6ff;
    border-color: #1e40af;
    border-width: 3px;
}

.day-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.day-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.available-count {
    font-size: 12px;
    color: var(--text-light);
}

.holiday-badge {
    font-size: 11px;
    padding: 2px 6px;
    background: #e74c3c;
    color: white;
    border-radius: 3px;
    font-weight: 600;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    background: var(--background);
    border-radius: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 2px solid var(--border);
}

.legend-box.available {
    background: #e8f5e9;
    border-color: #27ae60;
}

.legend-box.booked {
    background: #fff3e0;
    border-color: #f39c12;
}

.legend-box.full {
    background: #ffebee;
    border-color: #e74c3c;
}

.legend-box.blocked {
    background: #f5f5f5;
    border-color: var(--border);
}

.legend-box.weekend {
    background: #eff6ff;
    border-color: #3b82f6;
}

.legend-box.national-holiday {
    background: #eff6ff;
    border-color: #1e40af;
    border-width: 3px;
}

/* フォームヘルプテキスト */
.form-help {
    font-size: 12px;
    color: var(--text-light);
    margin: 8px 0;
    padding: 8px;
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    border-radius: 3px;
}

/* 時間枠選択 */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.time-slot-btn {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.time-slot-btn.available {
    color: var(--primary);
    border-color: var(--primary);
}

.time-slot-btn.available:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.time-slot-btn.available.selected {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.time-slot-btn.booked {
    background: var(--background);
    color: var(--text-light);
    border-color: var(--border);
    cursor: not-allowed;
    opacity: 0.5;
}

.time-slot-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* 設定情報 */
.settings-info {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.settings-info p {
    margin: 10px 0;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-dark);
}

.modal-header .close {
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-header .close:hover {
    color: var(--text);
}

.modal-content form {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    background: var(--background);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* ログイン画面 */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-dark);
}

.login-box input {
    margin-bottom: 15px;
}

.login-box button {
    width: 100%;
}

/* 管理画面タブ */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 月ナビゲーション */
.month-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
    padding: 15px;
    background-color: var(--primary-light);
    border-radius: 4px;
}

.month-nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.month-nav a:hover {
    color: var(--primary-dark);
}

.current-month {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* 検索フォーム */
.search-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.search-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.search-form button {
    padding: 12px 24px;
}

/* ブロック時間フォーム */
.block-time-form {
    margin-bottom: 30px;
}

.block-time-form fieldset {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: flex-end;
}

.block-time-form .form-group {
    margin-bottom: 0;
}

.block-time-form button {
    grid-column: 1 / -1;
}

/* フッター */
footer {
    background: var(--text);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    border-radius: 8px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 20px 10px;
    }

    header h1 {
        font-size: 22px;
    }

    header nav {
        flex-direction: column;
        gap: 10px;
    }

    section {
        padding: 15px;
    }

    section h2 {
        font-size: 18px;
    }

    section h3 {
        font-size: 16px;
    }

    .reservations-list {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form button {
        width: 100%;
    }

    /* テーブルをカード表示に */
    table {
        font-size: 13px;
        display: block;
        border-collapse: collapse;
    }

    table td {
        font-size: 13px;
    }

    table thead {
        display: none;
    }

    table tbody {
        display: block;
    }

    table tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: 4px;
        margin-bottom: 12px;
        background: white;
    }

    table td {
        display: block;
        text-align: left;
        padding: 10px 8px 10px 45%;
        border: none;
        border-bottom: 1px solid var(--border);
        position: relative;
        word-break: break-word;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    table td:last-child {
        border-bottom: none;
    }

    table td:before {
        content: attr(data-label);
        position: absolute;
        left: 8px;
        top: 10px;
        font-weight: 600;
        color: var(--primary-dark);
        width: 40%;
        word-break: break-word;
        word-wrap: break-word;
    }

    table tr {
        padding: 8px 0;
    }

    table tr.active {
        background: #f0f7ff;
        border-color: var(--primary);
    }

    table tr.completed {
        background: #e0f7fa;
        border-color: #0097a7;
        opacity: 0.85;
    }

    table tr.cancelled {
        background: #fafafa;
        opacity: 0.6;
    }

    /* テーブル内の長いテキスト対応 */
    table td[data-label="確認番号"],
    table td[data-label="日時"],
    table td[data-label="要件"] {
        word-break: break-all;
    }

    /* 管理画面のタブをセレクトボックス風に */
    .admin-tabs {
        flex-direction: column;
        border: none;
        margin-bottom: 15px;
        gap: 8px;
    }

    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
        padding: 12px;
        background: white;
        border-radius: 4px;
        border: 1px solid var(--border);
        width: 100%;
    }

    .tab-btn.active {
        border-left-color: var(--primary);
        border-left-width: 3px;
        background: var(--primary-light);
        border-color: var(--primary);
    }

    /* ボタン配置 */
    .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .btn-small {
        width: auto;
        padding: 6px 12px;
        font-size: 11px;
        margin-right: 4px;
        margin-bottom: 0;
    }

    /* テーブルのアクション列をまとめる */
    table td:nth-child(7) {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 6px;
        padding-left: 8px;
        padding-right: 8px;
    }

    table td:nth-child(7):before {
        display: none;
    }

    /* スマートフォンのボタン幅調整 */
    table td .btn {
        width: 100%;
        margin-bottom: 0;
    }

    .login-box {
        width: 90%;
        max-width: 100%;
        margin: 20px auto;
    }

    .modal-content {
        width: 95%;
        margin: 50% auto 20px;
    }

    .month-nav {
        flex-direction: column;
        gap: 10px;
    }

    .current-month {
        min-width: 100%;
    }

    .allowed-date-form fieldset,
    .block-time-form fieldset {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .allowed-date-form .form-group,
    .block-time-form .form-group {
        margin-bottom: 0;
    }

    .allowed-date-form button,
    .block-time-form button {
        grid-column: auto;
        width: 100%;
    }

    /* スマートフォンのフォントサイズ調整 */
    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="date"],
    .form-group input[type="time"],
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 14px;
    }

    .form-group label {
        font-size: 15px;
    }

    .form-group small {
        font-size: 12px;
    }

    /* テーブルの data-label フォント調整 */
    table td:before {
        font-size: 12px;
    }

    .calendar-grid {
        gap: 4px;
    }

    .calendar-cell {
        min-height: 80px;
        padding: 8px;
        font-size: 12px;
    }

    .day-number {
        font-size: 14px;
    }

    .available-count {
        font-size: 10px;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .time-slot-btn {
        padding: 10px;
        font-size: 12px;
    }

    .calendar-controls {
        gap: 10px;
        flex-direction: column;
    }

    .current-month {
        min-width: 100%;
    }

    .calendar-legend {
        flex-direction: column;
        gap: 10px;
    }
}

/* 印刷用スタイル（PDF出力） */
@page {
    size: A4;
    margin: 1cm;
}

@media print {
    * {
        margin: 0;
        padding: 0;
    }

    body {
        background-color: white;
        padding: 0;
        font-size: 11px;
    }

    header, nav, .search-form, .btn-secondary, .admin-tabs, .modal, .month-nav, .admin-calendar, .calendar-legend, footer {
        display: none !important;
    }

    /* 管理画面の操作列を非表示 */
    table th:last-child, table td:last-child {
        display: none !important;
    }

    /* 通常テーブルを非表示、印刷レイアウトを表示 */
    .reservations-table {
        display: none !important;
    }

    #print-layout {
        display: block !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .reservations-section {
        padding: 0;
    }

    #printable-area {
        width: 100%;
    }

    .reservation-card {
        page-break-inside: avoid;
        margin-bottom: 15px;
    }

    .card-footer {
        display: none !important;
    }

    .info-box {
        color: black;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
    }

    .reservations-section h3 {
        font-size: 18px;
        margin: 15px 0 10px 0;
    }

    h4 {
        font-size: 14px;
        margin: 10px 0 8px 0;
    }

    /* 管理画面用印刷スタイル */
    .reservations-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 12px;
    }

    .reservations-table thead {
        background-color: #333;
        color: white;
    }

    .reservations-table th {
        padding: 10px;
        text-align: left;
        font-weight: bold;
        border: 1px solid #333;
    }

    .reservations-table td {
        padding: 8px;
        border: 1px solid #ddd;
    }

    .reservations-table tr {
        background-color: white !important;
        page-break-inside: avoid;
    }

    .reservations-table tr.completed {
        background-color: #f0f0f0 !important;
    }

    .badge {
        padding: 4px 8px;
        border-radius: 3px;
        font-size: 11px;
        font-weight: bold;
    }

    .reservations-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    section {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    /* 印刷レイアウト用スタイル */
    #print-layout {
        font-size: 11px;
        line-height: 1.5;
    }

    /* 日付ごとにA4 1枚に収める */
    #print-layout > div {
        page-break-after: always;
        page-break-inside: avoid;
        width: 100%;
        padding-bottom: 10px;
    }

    /* 日付タイトル */
    #print-layout > div > div:first-child {
        font-size: 14px;
        font-weight: bold;
        border-bottom: 2px solid #333;
        padding-bottom: 8px;
        margin-bottom: 12px;
    }

    /* 各予約カード */
    #print-layout > div > div > div {
        margin-bottom: 8px;
        padding: 8px;
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    #print-layout strong {
        font-weight: bold;
        display: inline-block;
        min-width: 70px;
    }

    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    section {
        padding: 0;
        box-shadow: none;
        border: none;
        margin: 0;
    }
}
