/*==================================================
予約システム専用スタイル
既存サイトのデザインガイドラインに準拠
==================================================*/

.page-template section {
    padding: 6rem;
}

/*--------------------------------------------------
CSS変数（カラーパレット）
--------------------------------------------------*/
:root {
    /* ブランドカラー */
    --rsv-brand-red: #a01f24;
    --rsv-brand-red-dark: #8a1b1f;

    /* テキスト */
    --rsv-text-primary: #000000;
    --rsv-text-body: #666666;
    --rsv-text-light: #A6A6A6;
    --rsv-text-white: #ffffff;

    /* 背景 */
    --rsv-bg-dark: #1a1a1a;
    --rsv-bg-gray: #dbdcdc;
    --rsv-bg-light: #f9f9f9;

    /* ステータス */
    --rsv-status-pending: #a01f24;
    --rsv-status-arranged: #d4a017;
    --rsv-status-confirmed: #2c5282;
    --rsv-status-completed: #a01f24;

    /* フォント */
    --rsv-font-gothic: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
    --rsv-font-mincho: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
    --rsv-font-garamond: 'EB Garamond', serif;
}

.nav_list li.reservation .garamond {
    font-size: 1.6rem;
    font-weight: 500;
    color: #a01f24;
    display: block;
    margin-bottom: 1rem;
    margin-top: -0.3rem;
}

/*--------------------------------------------------
ページタイトル（予約システム用）
--------------------------------------------------*/
.pagetit-sec.reservation {
    background: linear-gradient(-40deg, #100f0f 70%, #333333);
    padding: 3rem 0 5rem !important;
    height: auto;
}
.pagetit-sec.reservation .sec-tit-box {
    width: 28rem;
    margin: 0 auto;
    text-align: center;
    background: none;
    padding-top: 0;
}
.pagetit-sec.reservation .sec-tit-en {
    font-size: 2.8rem;
    color: #a01f24;
    font-family: var(--rsv-font-garamond);
    line-height: 1;
    margin-bottom: 1.5rem;
}
.pagetit-sec.reservation h2 {
    font-size: 3.2rem;
    color: #fff;
    line-height: 1;
}

/*--------------------------------------------------
ユーザーナビゲーション
--------------------------------------------------*/
.rsv-user-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}
.rsv-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.rsv-user-name {
    font-family: var(--rsv-font-mincho);
    font-size: 1.5rem;
    color: var(--rsv-text-primary);
}
.rsv-user-role {
    background: var(--rsv-bg-dark);
    color: #fff;
    font-size: 1.1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
}
.rsv-nav-links {
    display: flex;
    gap: 0.5rem;
}
.rsv-nav-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-family: var(--rsv-font-gothic);
    font-size: 1.3rem;
    color: var(--rsv-text-body);
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}
.rsv-nav-link .en {
    font-family: var(--rsv-font-garamond);
    font-size: 1.0rem;
    color: var(--rsv-text-light);
    display: block;
    line-height: 1;
    margin-bottom: 0.2rem;
}
.rsv-nav-link:hover {
    border-color: var(--rsv-brand-red);
    color: var(--rsv-brand-red);
}
.rsv-nav-link:hover .en {
    color: var(--rsv-brand-red);
}
.rsv-nav-link.active {
    background: var(--rsv-brand-red);
    border-color: var(--rsv-brand-red);
    color: #fff;
}
.rsv-nav-link.active .en {
    color: rgba(255, 255, 255, 0.7);
}
.rsv-nav-logout {
    margin-left: 1rem;
    background: var(--rsv-bg-light);
}
.rsv-nav-logout:hover {
    background: #fff;
}

@media screen and (max-width: 767px) {
    .rsv-user-nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .rsv-nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .rsv-nav-link {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }
    .rsv-nav-logout {
        margin-left: 0;
    }
}

/*--------------------------------------------------
コンテンツエリア
--------------------------------------------------*/
.rsv-content {
    padding: 5rem 0 8rem;
    background: var(--rsv-bg-light);
}
.rsv-content .wrap {
    max-width: 1200px;
}

/*--------------------------------------------------
カード／ボックス
--------------------------------------------------*/
.rsv-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 3rem;
    margin-bottom: 3rem;
}
.rsv-card-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}
.rsv-card-title {
    font-family: var(--rsv-font-mincho);
    font-size: 2.0rem;
    color: var(--rsv-text-primary);
    display: flex;
    align-items: baseline;
}
.rsv-card-title .en {
    font-family: var(--rsv-font-garamond);
    color: var(--rsv-brand-red);
    font-size: 1.4rem;
    margin-right: 1rem;
}

/*--------------------------------------------------
フォーム要素
--------------------------------------------------*/
.rsv-form-group {
    margin-bottom: 2.5rem;
}
.rsv-form-label {
    display: block;
    font-family: var(--rsv-font-mincho);
    font-size: 1.4rem;
    color: var(--rsv-text-primary);
    margin-bottom: 0.8rem;
}
.rsv-form-label .required {
    background: var(--rsv-brand-red);
    color: #fff;
    font-size: 1.0rem;
    padding: 0.2rem 0.6rem;
    margin-left: 0.8rem;
    font-family: var(--rsv-font-gothic);
}
.rsv-form-input,
.rsv-form-select,
.rsv-form-textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 1px solid #ccc;
    font-family: var(--rsv-font-gothic);
    font-size: 1.6rem;
    color: var(--rsv-text-primary);
    background: #fff;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.rsv-form-input:focus,
.rsv-form-select:focus,
.rsv-form-textarea:focus {
    border-color: var(--rsv-brand-red);
    outline: none;
}
.rsv-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    padding-right: 4rem;
}
.rsv-form-textarea {
    min-height: 12rem;
    resize: vertical;
}
.rsv-form-hint {
    font-size: 1.2rem;
    color: var(--rsv-text-light);
    margin-top: 0.5rem;
}
.rsv-form-error {
    font-size: 1.2rem;
    color: var(--rsv-brand-red);
    margin-top: 0.5rem;
}

/* パスワード表示トグル */
.rsv-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.rsv-password-wrapper .rsv-form-input {
    padding-right: 5rem;
}
.rsv-password-toggle {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--rsv-text-light);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rsv-password-toggle:hover {
    color: var(--rsv-text-body);
}
.rsv-password-toggle svg {
    width: 2rem;
    height: 2rem;
}

/* 日付入力の横並び */
.rsv-form-row {
    display: flex;
    gap: 2rem;
}
.rsv-form-row .rsv-form-group {
    flex: 1;
}

/*--------------------------------------------------
ボタン
--------------------------------------------------*/
.rsv-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-family: var(--rsv-font-garamond);
    font-size: 1.8rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    position: relative;
}
.rsv-btn-primary {
    background-color: var(--rsv-brand-red);
    color: #fff;
}
.rsv-btn-primary:hover {
    opacity: 0.6;
}
.rsv-btn-secondary {
    background-color: var(--rsv-status-completed);
    color: #fff;
}
.rsv-btn-secondary:hover {
    opacity: 0.6;
}
.rsv-btn-outline {
    background: transparent;
    border: 1px solid var(--rsv-text-light);
    color: var(--rsv-text-light);
}
.rsv-btn-outline:hover {
    background: #fff;
    opacity: 1;
}
.rsv-btn-block {
    display: block;
    width: 100%;
}
.rsv-btn-lg {
    padding: 1.5rem 4rem;
    font-size: 2.1rem;
}

/* ボタンアイコン（矢印） */
.rsv-btn-arrow::after {
    content: '→';
    margin-left: 1rem;
}

/* ボタングループ */
.rsv-btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

/*--------------------------------------------------
テーブル
--------------------------------------------------*/
.rsv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
}
.rsv-table th {
    background: var(--rsv-bg-dark);
    color: #fff;
    font-family: var(--rsv-font-mincho);
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-weight: normal;
}
.rsv-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    color: var(--rsv-text-body);
}
.rsv-table tr:hover {
    background: var(--rsv-bg-light);
}
.rsv-table .text-center {
    text-align: center;
}

/*--------------------------------------------------
ステータスバッジ
--------------------------------------------------*/
.rsv-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--rsv-font-gothic);
    border-radius: 2px;
    color: #fff;
}
.rsv-badge-pending {
    background-color: var(--rsv-status-pending);
}
.rsv-badge-arranged {
    background-color: var(--rsv-status-arranged);
}
.rsv-badge-confirmed {
    background-color: var(--rsv-status-confirmed);
}
.rsv-badge-completed {
    background-color: var(--rsv-status-completed);
}
.rsv-badge-done {
    background-color: #666666;
}
.rsv-badge-admin {
    background-color: #2563eb;
}
.rsv-badge-client {
    background-color: #059669;
}
.rsv-badge-sm {
    padding: 0.2rem 0.6rem;
    font-size: 1rem;
}

/*--------------------------------------------------
アラート／メッセージ
--------------------------------------------------*/
.rsv-alert {
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    font-size: 1.4rem;
    font-family: var(--rsv-font-gothic);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.rsv-alert::before {
    font-family: var(--rsv-font-garamond);
    font-size: 1.2rem;
    font-weight: normal;
    letter-spacing: 0.05em;
}
.rsv-alert-success {
    background: var(--rsv-bg-dark);
    color: #fff;
}
.rsv-alert-success::before {
    content: 'Success';
    color: var(--rsv-brand-red);
}
.rsv-alert-error {
    background: var(--rsv-brand-red);
    color: #fff;
}
.rsv-alert-error::before {
    content: 'Error';
    color: rgba(255, 255, 255, 0.7);
}
.rsv-alert-warning {
    background: var(--rsv-status-arranged);
    color: #fff;
}
.rsv-alert-warning::before {
    content: 'Warning';
    color: rgba(255, 255, 255, 0.7);
}
.rsv-alert-info {
    background: var(--rsv-status-confirmed);
    color: #fff;
}
.rsv-alert-info::before {
    content: 'Info';
    color: rgba(255, 255, 255, 0.7);
}

/*--------------------------------------------------
ログインフォーム
--------------------------------------------------*/
.rsv-login-container {
    max-width: 48rem;
    margin: 0 auto;
}
.rsv-login-card {
    background: #fff;
    padding: 4rem;
    border: 1px solid #e2e8f0;
}
.rsv-login-logo {
    text-align: center;
    margin-bottom: 3rem;
}
.rsv-login-logo img {
    max-width: 20rem;
}
.rsv-login-title {
    text-align: center;
    margin-bottom: 3rem;
}
.rsv-login-title .en {
    font-family: var(--rsv-font-garamond);
    color: var(--rsv-brand-red);
    font-size: 1.6rem;
    display: block;
    margin-bottom: 0.5rem;
}
.rsv-login-title .jp {
    font-family: var(--rsv-font-mincho);
    color: var(--rsv-text-primary);
    font-size: 2.4rem;
}

/*--------------------------------------------------
ダッシュボード
--------------------------------------------------*/
.rsv-dashboard-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}
.rsv-stat-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    text-align: center;
}
.rsv-stat-number {
    font-family: var(--rsv-font-garamond);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.rsv-stat-number.pending { color: var(--rsv-status-pending); }
.rsv-stat-number.arranged { color: var(--rsv-status-arranged); }
.rsv-stat-number.confirmed { color: var(--rsv-status-confirmed); }
.rsv-stat-number.completed { color: var(--rsv-status-completed); }
.rsv-stat-number.done { color: #666666; }

.rsv-stat-label {
    font-size: 1.2rem;
    color: var(--rsv-text-body);
}

/*--------------------------------------------------
予約一覧
--------------------------------------------------*/
.rsv-list-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}
.rsv-list-item:hover {
    border-color: var(--rsv-brand-red);
}
.rsv-list-item-main {
    flex: 1;
}
.rsv-list-item-title {
    font-family: var(--rsv-font-mincho);
    font-size: 1.8rem;
    color: var(--rsv-text-primary);
    margin-bottom: 0.5rem;
}
.rsv-list-item-meta {
    font-size: 1.3rem;
    color: var(--rsv-text-light);
}
.rsv-list-item-meta span {
    margin-right: 2rem;
}
.rsv-list-item-action {
    margin-left: 2rem;
}

/*--------------------------------------------------
ページネーション
--------------------------------------------------*/
.rsv-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.rsv-pagination a,
.rsv-pagination span {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e2e8f0;
    font-size: 1.4rem;
    color: var(--rsv-text-body);
    text-decoration: none;
    transition: all 0.3s;
}
.rsv-pagination a:hover {
    border-color: var(--rsv-brand-red);
    color: var(--rsv-brand-red);
}
.rsv-pagination .current {
    background: var(--rsv-brand-red);
    border-color: var(--rsv-brand-red);
    color: #fff;
}

/*--------------------------------------------------
ファイルアップロード
--------------------------------------------------*/
.rsv-file-upload {
    border: 2px dashed #ccc;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.rsv-file-upload:hover {
    border-color: var(--rsv-brand-red);
}
.rsv-file-upload-icon {
    font-size: 3rem;
    color: var(--rsv-text-light);
    margin-bottom: 1rem;
}
.rsv-file-upload-text {
    font-size: 1.4rem;
    color: var(--rsv-text-body);
}
.rsv-file-list {
    margin-top: 1.5rem;
}
.rsv-file-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--rsv-bg-light);
    margin-bottom: 0.5rem;
}
.rsv-file-item-name {
    flex: 1;
    font-size: 1.3rem;
}
.rsv-file-item-remove {
    color: var(--rsv-brand-red);
    cursor: pointer;
}

/*--------------------------------------------------
ユーティリティ
--------------------------------------------------*/
.rsv-text-center { text-align: center; }
.rsv-text-right { text-align: right; }
.rsv-mt-1 { margin-top: 1rem; }
.rsv-mt-2 { margin-top: 2rem; }
.rsv-mt-3 { margin-top: 3rem; }
.rsv-mb-1 { margin-bottom: 1rem; }
.rsv-mb-2 { margin-bottom: 2rem; }
.rsv-mb-3 { margin-bottom: 3rem; }

/*--------------------------------------------------
カレンダータブ（個人/組織）
--------------------------------------------------*/
.rsv-calendar-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    background: #f5f5f5;
    border-radius: 0.5rem;
    padding: 0.5rem;
}
.rsv-calendar-tab {
    flex: 1;
    max-width: 24rem;
    padding: 1.5rem 3rem;
    text-align: center;
    font-family: var(--rsv-font-gothic);
    font-size: 1.4rem;
    color: var(--rsv-text-body);
    text-decoration: none;
    border-radius: 0.3rem;
    transition: all 0.3s;
}
.rsv-calendar-tab .en {
    display: block;
    font-family: var(--rsv-font-garamond);
    font-size: 1.2rem;
    color: var(--rsv-text-light);
    margin-bottom: 0.3rem;
}
.rsv-calendar-tab:hover {
    background: rgba(255, 255, 255, 0.5);
}
.rsv-calendar-tab.active {
    background: #fff;
    color: var(--rsv-brand-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.rsv-calendar-tab.active .en {
    color: var(--rsv-brand-red);
}

/* リスト担当者名 */
.rsv-list-item-user {
    font-size: 1.2rem;
    color: var(--rsv-text-light);
    margin-left: 0.5rem;
}

/*--------------------------------------------------
ビュー切り替えタブ
--------------------------------------------------*/
.rsv-view-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.rsv-view-tab {
    padding: 1rem 2.5rem;
    font-family: var(--rsv-font-garamond);
    font-size: 1.6rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--rsv-text-body);
}
.rsv-view-tab .en {
    display: block;
    font-size: 1.2rem;
    color: var(--rsv-text-light);
}
.rsv-view-tab:hover {
    border-color: var(--rsv-brand-red);
}
.rsv-view-tab.active {
    background: var(--rsv-brand-red);
    border-color: var(--rsv-brand-red);
    color: #fff;
}
.rsv-view-tab.active .en {
    color: rgba(255, 255, 255, 0.7);
}

/*--------------------------------------------------
カード拡張
--------------------------------------------------*/
.rsv-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rsv-card-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.rsv-form-select-sm {
    padding: 0.6rem 3rem 0.6rem 1rem;
    font-size: 1.3rem;
}

/*--------------------------------------------------
カレンダー（FullCalendar カスタマイズ）
--------------------------------------------------*/
.rsv-calendar {
    padding: 2rem 0;
}
.fc {
    font-family: var(--rsv-font-gothic) !important;
}
.fc .fc-toolbar-title {
    font-family: var(--rsv-font-mincho) !important;
    font-size: 2rem !important;
}
.fc .fc-button {
    font-family: var(--rsv-font-gothic) !important;
    background-color: #fff !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--rsv-text-body) !important;
    text-transform: none !important;
}
.fc .fc-button:hover {
    background-color: var(--rsv-bg-light) !important;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: var(--rsv-brand-red) !important;
    border-color: var(--rsv-brand-red) !important;
    color: #fff !important;
}
.fc .fc-daygrid-day-number {
    color: var(--rsv-text-body);
    font-size: 1.3rem;
}
.fc .fc-day-today {
    background: rgba(160, 31, 36, 0.05) !important;
}
.fc .fc-day-today .fc-daygrid-day-number {
    color: var(--rsv-brand-red);
    font-weight: bold;
}

/* クリック可能な日付 */
.rsv-calendar-clickable {
    cursor: pointer;
    transition: background-color 0.2s;
}
.rsv-calendar-clickable:hover {
    background-color: rgba(160, 31, 36, 0.08) !important;
}

/* カレンダーイベント */
.rsv-calendar-event {
    padding: 0.3rem 0.5rem !important;
    margin-bottom: 2px !important;
    border-radius: 2px !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
}
.rsv-calendar-event-pending {
    background-color: var(--rsv-status-pending) !important;
    border-color: var(--rsv-status-pending) !important;
}
.rsv-calendar-event-arranged {
    background-color: var(--rsv-status-arranged) !important;
    border-color: var(--rsv-status-arranged) !important;
}
.rsv-calendar-event-confirmed {
    background-color: var(--rsv-status-confirmed) !important;
    border-color: var(--rsv-status-confirmed) !important;
}
.rsv-calendar-event-completed {
    background-color: var(--rsv-status-completed) !important;
    border-color: var(--rsv-status-completed) !important;
}
.rsv-calendar-event-done {
    background-color: #666666 !important;
    border-color: #666666 !important;
}

/*--------------------------------------------------
モーダル
--------------------------------------------------*/
.rsv-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}
.rsv-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.rsv-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}
.rsv-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 60rem;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.rsv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: var(--rsv-bg-dark);
}
.rsv-modal-title {
    font-family: var(--rsv-font-mincho);
    font-size: 1.8rem;
    color: #fff;
}
.rsv-modal-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.rsv-modal-close:hover {
    opacity: 1;
}
.rsv-modal-body {
    padding: 2.5rem;
}

/*--------------------------------------------------
詳細表示
--------------------------------------------------*/
.rsv-detail-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}
.rsv-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.rsv-detail-section-title {
    font-family: var(--rsv-font-mincho);
    font-size: 1.6rem;
    color: var(--rsv-text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
}
.rsv-detail-section-title .en {
    font-family: var(--rsv-font-garamond);
    color: var(--rsv-brand-red);
    font-size: 1.2rem;
    margin-right: 1rem;
}
.rsv-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.rsv-detail-item {
    display: flex;
    flex-direction: column;
}
.rsv-detail-item.rsv-detail-full {
    grid-column: span 2;
}
.rsv-detail-label {
    font-size: 1.2rem;
    color: var(--rsv-text-light);
    margin-bottom: 0.3rem;
}
.rsv-detail-value {
    font-size: 1.5rem;
    color: var(--rsv-text-primary);
}
.rsv-detail-notes {
    background: var(--rsv-bg-light);
    padding: 1.5rem;
    font-size: 1.4rem;
    color: var(--rsv-text-body);
    line-height: 1.8;
}
.rsv-text-primary {
    color: var(--rsv-brand-red) !important;
    font-weight: bold;
}

/*--------------------------------------------------
ステータスフロー
--------------------------------------------------*/
.rsv-status-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    gap: 0.5rem;
}
.rsv-status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
}
.rsv-status-step.active,
.rsv-status-step.done {
    opacity: 1;
}
.rsv-status-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--rsv-font-garamond);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.rsv-status-icon.pending { background: var(--rsv-status-pending); }
.rsv-status-icon.arranged { background: var(--rsv-status-arranged); }
.rsv-status-icon.confirmed { background: var(--rsv-status-confirmed); }
.rsv-status-icon.completed { background: var(--rsv-status-completed); }
.rsv-status-icon.done { background: #38a169; }

/* 完了時は全てグレーに */
.rsv-status-all-done .rsv-status-icon {
    background: #999 !important;
}
.rsv-status-all-done .rsv-status-label {
    color: #999 !important;
}
.rsv-status-all-done .rsv-status-label small {
    color: #999 !important;
}
.rsv-status-all-done .rsv-status-arrow {
    color: #ccc !important;
}

.rsv-status-label {
    font-size: 1.1rem;
    color: var(--rsv-text-body);
    text-align: center;
}
.rsv-status-arrow {
    font-size: 1.6rem;
    color: var(--rsv-text-light);
    margin: 0 0.5rem;
    margin-bottom: 2rem;
}

/*--------------------------------------------------
テーブル拡張
--------------------------------------------------*/
.rsv-table-responsive {
    overflow-x: auto;
}
.rsv-btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 1.2rem;
}
.rsv-badge-lg {
    padding: 0.6rem 1.5rem;
    font-size: 1.4rem;
}

/*--------------------------------------------------
チェックボックス
--------------------------------------------------*/
.rsv-form-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--rsv-text-body);
}
.rsv-form-checkbox input[type="checkbox"] {
    width: 1.8rem;
    height: 1.8rem;
    margin-right: 1rem;
    cursor: pointer;
}

/*--------------------------------------------------
ローディング
--------------------------------------------------*/
.rsv-loading {
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: rsv-spin 1s linear infinite;
}
@keyframes rsv-spin {
    to { transform: rotate(360deg); }
}

/*--------------------------------------------------
フィールドエラー
--------------------------------------------------*/
.rsv-form-group.has-error .rsv-form-input,
.rsv-form-group.has-error .rsv-form-select,
.rsv-form-group.has-error .rsv-form-textarea {
    border-color: var(--rsv-brand-red);
}
.rsv-field-error {
    font-size: 1.2rem;
    color: var(--rsv-brand-red);
    margin-top: 0.5rem;
}

/*--------------------------------------------------
レスポンシブ対応
--------------------------------------------------*/
@media screen and (max-width: 767px) {
    .rsv-content {
        padding: 3rem 0 5rem;
    }
    .rsv-card {
        padding: 2rem;
    }
    .rsv-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .rsv-form-row {
        flex-direction: column;
        gap: 0;
    }
    .rsv-dashboard-stats {
        flex-direction: column;
    }
    .rsv-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .rsv-list-item-action {
        margin-left: 0;
        margin-top: 1.5rem;
        width: 100%;
    }
    .rsv-btn-group {
        flex-direction: column;
    }
    .rsv-login-card {
        padding: 2.5rem;
    }
    .pagetit-sec.reservation h2 {
        font-size: 2.4rem;
    }
    .rsv-view-tabs {
        flex-direction: column;
    }
    .rsv-detail-grid {
        grid-template-columns: 1fr;
    }
    .rsv-detail-item.rsv-detail-full {
        grid-column: span 1;
    }
    .rsv-status-flow {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .rsv-status-arrow {
        display: none;
    }
    .rsv-modal-content {
        width: 95%;
    }
    .rsv-list-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .rsv-pagination {
        flex-wrap: wrap;
    }
}

/*--------------------------------------------------
フィルター
--------------------------------------------------*/
.rsv-list-filters {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fafafa;
}
.rsv-filter-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.rsv-filter-label {
    font-family: var(--rsv-font-gothic);
    font-size: 1.2rem;
    color: #666;
}
.rsv-form-select-sm {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    font-size: 1.3rem;
    min-width: auto;
}
.rsv-filter-info {
    margin-left: auto;
    font-family: var(--rsv-font-gothic);
    font-size: 1.2rem;
    color: #999;
}

/*--------------------------------------------------
ページネーション
--------------------------------------------------*/
.rsv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
}
.rsv-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.6rem;
    height: 3.6rem;
    padding: 0 1rem;
    font-family: var(--rsv-font-garamond);
    font-size: 1.4rem;
    color: var(--rsv-text-primary);
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.rsv-pagination-link:hover {
    background: var(--rsv-bg-dark);
    color: #fff;
    border-color: var(--rsv-bg-dark);
}
.rsv-pagination-link.active {
    background: var(--rsv-brand-red);
    color: #fff;
    border-color: var(--rsv-brand-red);
}
.rsv-pagination-dots {
    padding: 0 0.5rem;
    color: #999;
}

/*--------------------------------------------------
リストアイテムリンク
--------------------------------------------------*/
.rsv-list-item-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.rsv-list-item-link:hover {
    background: rgba(160, 31, 36, 0.04);
}

/*--------------------------------------------------
ラジオボタン・瑕疵保険オプション
--------------------------------------------------*/
.rsv-radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.8rem;
}
.rsv-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--rsv-font-gothic);
    font-size: 1.5rem;
    color: var(--rsv-text-primary);
    position: relative;
    padding-left: 3rem;
}
.rsv-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.rsv-radio-label input[type="radio"] + span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: 2px solid #999;
    border-radius: 50%;
    background: #fff;
}
.rsv-radio-label input[type="radio"]:checked + span::before {
    border-color: var(--rsv-brand-red);
}
.rsv-radio-label input[type="radio"]:checked + span::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--rsv-brand-red);
}

.rsv-warranty-options {
    margin-top: 1.5rem;
    padding: 2rem;
    background: var(--rsv-bg-light);
    border: 1px solid #e2e8f0;
}
.rsv-warranty-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.rsv-warranty-item:last-child {
    margin-bottom: 0;
}
.rsv-warranty-item .rsv-radio-label {
    min-width: 12rem;
}
.rsv-form-input-inline {
    flex: 1;
    min-width: 15rem;
    padding: 0.8rem 1.2rem;
    font-size: 1.4rem;
}
.rsv-input-label {
    font-family: var(--rsv-font-gothic);
    font-size: 1.3rem;
    color: var(--rsv-text-body);
    white-space: nowrap;
}

@media screen and (max-width: 767px) {
    .rsv-radio-group {
        flex-direction: column;
        gap: 1rem;
    }
    .rsv-warranty-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .rsv-warranty-item .rsv-radio-label {
        min-width: auto;
    }
    .rsv-form-input-inline {
        width: 100%;
    }
}

/*--------------------------------------------------
タイムラインスタイル（コミュニケーション履歴）
--------------------------------------------------*/
.rsv-timeline {
    padding: 0;
}
.rsv-timeline-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 2rem 0;
}
.rsv-timeline-item:first-child {
    padding-top: 0;
}
.rsv-timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.rsv-timeline-content {
    background: transparent;
}
.rsv-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.rsv-timeline-author {
    font-family: var(--rsv-font-gothic);
    font-size: 1.3rem;
    color: var(--rsv-text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.rsv-timeline-date {
    font-family: var(--rsv-font-garamond);
    font-size: 1.2rem;
    color: var(--rsv-text-light);
}
.rsv-timeline-body {
    font-family: var(--rsv-font-gothic);
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--rsv-text-body);
}
.rsv-timeline-comment {
    white-space: pre-wrap;
    margin-bottom: 1rem;
}
.rsv-timeline-comment:last-child {
    margin-bottom: 0;
}
.rsv-timeline-file {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--rsv-bg-light);
    padding: 1rem 1.5rem;
    margin-top: 1rem;
}
.rsv-timeline-file:first-child {
    margin-top: 0;
}
.rsv-file-name {
    font-size: 1.3rem;
    color: var(--rsv-text-primary);
}
.rsv-timeline-file .rsv-btn {
    margin-left: auto;
}
.rsv-timeline-file small {
    color: var(--rsv-text-light);
}

/* タイムライングループ化（ステータス別セクション） */
.rsv-timeline-grouped {
    padding: 0;
}
.rsv-timeline-section {
    margin-bottom: 2.5rem;
}
.rsv-timeline-section:last-child {
    margin-bottom: 0;
}
.rsv-timeline-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    color: #fff;
    font-family: var(--rsv-font-mincho);
    font-size: 1.4rem;
}
.rsv-timeline-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    background: #fff;
    font-family: var(--rsv-font-garamond);
    font-size: 1.6rem;
    border-radius: 50%;
}
/* ステータスごとの背景色 */
.rsv-timeline-section-pending {
    background: var(--rsv-status-pending);
}
.rsv-timeline-section-pending .rsv-timeline-section-number {
    color: var(--rsv-status-pending);
}
.rsv-timeline-section-arranged {
    background: var(--rsv-status-arranged);
}
.rsv-timeline-section-arranged .rsv-timeline-section-number {
    color: var(--rsv-status-arranged);
}
.rsv-timeline-section-confirmed {
    background: var(--rsv-status-confirmed);
}
.rsv-timeline-section-confirmed .rsv-timeline-section-number {
    color: var(--rsv-status-confirmed);
}
.rsv-timeline-section-completed {
    background: var(--rsv-status-completed);
}
.rsv-timeline-section-completed .rsv-timeline-section-number {
    color: var(--rsv-status-completed);
}
.rsv-timeline-section-done {
    background: #38a169;
}
.rsv-timeline-section-done .rsv-timeline-section-number {
    color: #38a169;
}
.rsv-timeline-section .rsv-timeline {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-top: none;
    background: #fff;
}

/* 小さいボタン */
.rsv-btn-xs {
    padding: 0.3rem 0.6rem;
    font-size: 1rem;
}

/* アクティビティ追加フォーム */
.rsv-add-activity {
    background: var(--rsv-bg-light);
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
}
.rsv-activity-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.rsv-activity-form {
    background: #fff;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}
.rsv-activity-form .rsv-form-group {
    margin-bottom: 1rem;
}
.rsv-activity-form .rsv-btn {
    width: 100%;
}

/* サブセクション */
.rsv-detail-subsection {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed #e0e0e0;
}
.rsv-detail-subsection:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

@media screen and (max-width: 767px) {
    .rsv-timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .rsv-timeline-file {
        flex-direction: column;
        align-items: flex-start;
    }
    .rsv-timeline-file .rsv-btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    .rsv-activity-forms {
        grid-template-columns: 1fr;
    }
}
