/**
 * 顧客側予約画面 スタイルシート
 * Phase 3: 顧客側予約画面
 */

/* ========================================
   変数（管理画面でカスタマイズ可能）
   ======================================== */
:root {
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Meiryo", sans-serif;
    --primary-color: #cf4466;
    --secondary-color: #d6d6d6;
    --accent-color: #54cd87;
    --section-background-color: #f8f9fa;
    --body-background-color: #f5f5f5;
    --text-color-dark: #333333;
    --text-color-light: #666666;
}

/* ========================================
   リセット
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-family);
    background: var(--body-background-color);
    color: var(--text-color-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   レイアウト
   ======================================== */
.page-container {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

/* ========================================
   ヘッダー
   ======================================== */
.customer-header {
    background: #ffffff;
    padding: 32px 20px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}
.shop-logo {
    max-width: 320px;
    max-height: 100px;
    height: auto;
}
.shop-name {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color-dark);
    letter-spacing: 0.5px;
}

/* ========================================
   ステップインジケーター
   ======================================== */
.step-indicator {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    overflow-x: auto;
    gap: 0;
    flex-wrap: nowrap;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    width: 100px;
}

/* ステップの円 */
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

/* 未完了ステップ（グレー背景） */
.step-item .step-circle {
    background: var(--secondary-color);
    color: white;
}

/* 完了ステップ（緑背景） */
.step-item.completed .step-circle {
    background: var(--primary-color);
    color: white;
}

/* 現在のステップ（白背景、緑枠線） */
.step-item.active .step-circle {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* ステップラベル */
.step-label {
    font-size: 13px;
    color: var(--text-color-light);
    text-align: center;
    font-weight: normal;
    line-height: 1.4;
    width: 100%;
    word-wrap: break-word;
}
.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: bold;
}
.step-item.completed .step-label {
    color: color-mix(in srgb, var(--text-color-light) 60%, white);
}

/* PCとモバイルのラベル切り替え */
.label-mobile {
    display: none;
}
.label-pc {
    display: inline;
}

/* ステップ間の横線 */
.step-line {
    width: 90px;
    height: 3px;
    background: var(--secondary-color);
    margin: 0 -20px;
    margin-top: 22px;
    align-self: flex-start;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.step-line.completed {
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .step-indicator {
        padding: 24px 16px;
        gap: 0;
        align-items: flex-start;
    }
    .step-item {
        width: 80px;
    }
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 8px;
    }
    .step-item.active .step-circle {
        border: 2px solid var(--primary-color);
    }
    .step-label {
        font-size: 11px;
    }
    .step-line {
        width: 70px;
        margin: 0 -16px;
        margin-top: 18px;
    }
    .label-mobile {
        display: none;
    }
    .label-pc {
        display: inline;
    }
}

@media (max-width: 600px) {
    .step-indicator {
        padding: 20px 4px;
        gap: 0;
        flex-wrap: nowrap;
        align-items: flex-start;
    }
    .step-item {
        width: 48px;
        min-width: 48px;
    }
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
        margin-bottom: 6px;
    }
    .step-item.active .step-circle {
        border: 2px solid var(--primary-color);
    }
    .step-label {
        font-size: 9.5px;
        line-height: 1.3;
    }
    .step-line {
        width: 40px;
        min-width: 14px;
        height: 2px;
        margin: 0 -4px;
        margin-top: 14px;
    }

    /* スマホではモバイル版ラベルを表示 */
    .label-mobile {
        display: inline;
    }
    .label-pc {
        display: none;
    }
}

@media (max-width: 500px) {
    .step-line {
        width: 30px;
    }
}

@media (max-width: 360px) {
    .step-line {
        width: 20px;
    }
}

/* ========================================
   メインコンテンツ
   ======================================== */
.customer-main {
    padding: 40px 32px 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   ページタイトル
   ======================================== */
.page-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color-dark);
    margin-top: -5px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* ========================================
   セクションタイトル
   ======================================== */
.section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color-dark);
    margin: 40px 0 24px 0;
    padding: 12px 20px;
    background: var(--section-background-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    letter-spacing: 0.3px;
}
.section-title.secondary {
    border-left-color: var(--secondary-color);
}

/* ========================================
   カテゴリセクション
   ======================================== */
.category-section {
    margin-bottom: 48px;
}
.category-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
    /* background: color-mix(in srgb, var(--primary-color) 10%, white); */
    background: var(--section-background-color);
    margin-bottom: 16px;
    padding: 6px 10px;
    border-radius: 5px;
    letter-spacing: 0.3px;
}

/* ========================================
   メニューカード
   ======================================== */
.menu-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    margin-bottom: 16px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.menu-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.menu-info {
    flex: 1;
}
.menu-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color-dark);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}
.menu-description {
    font-size: 14px;
    color: var(--text-color-light);
    line-height: 1.6;
    margin-bottom: 12px;
}
.menu-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}
.menu-action {
    margin-left: 24px;
}

/* ========================================
   ボタン
   ======================================== */
.btn {
    display: inline-block;
    padding: 0 40px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    line-height: 56px;
    height: 56px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    font-family: inherit;
}
.btn-primary {
    background: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background: color-mix(in srgb, var(--primary-color) 85%, black);
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.btn-large {
    padding: 0 50px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    line-height: 56px;
    height: 56px;
}
.btn-secondary {
    background: var(--secondary-color);
    color: white;
    line-height: 56px;
    padding: 0 40px;
    height: 56px;
}
.btn-secondary:hover {
    background: color-mix(in srgb, var(--secondary-color) 85%, black);
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.btn-success {
    background: var(--accent-color);
    color: white;
}
.btn-success:hover {
    background: color-mix(in srgb, var(--accent-color) 85%, black);
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* ========================================
   選択済みメニュー情報
   ======================================== */
.selected-menu-info {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.info-label {
    font-size: 12px;
    color: var(--text-color-light);
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.menu-name-display {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color-dark);
    letter-spacing: 0.3px;
}
.duration-display {
    font-size: 14px;
    color: var(--text-color-light);
    font-weight: normal;
}
.price-display {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* ========================================
   フォーム
   ======================================== */
.customer-form {
    max-width: 100%;
}
.form-table-wrapper {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.form-table {
    width: 100%;
    border-collapse: collapse;
}
.form-table tr {
    border-bottom: 1px solid #e8e8e8;
}
.form-table tr:last-child {
    border-bottom: none;
}
.form-table th {
    width: 210px;
    padding: 20px 24px;
    background: var(--section-background-color);
    text-align: left;
    vertical-align: middle;
    font-weight: bold;
    color: var(--text-color-dark);
}
.form-table td {
    padding: 20px 24px;
    background: white;
}
.form-table th .form-label {
    margin-bottom: 0;
}
.form-group {
    margin-bottom: 28px;
}
.form-group.has-error .form-control {
    border-color: #e74c3c;
}
.form-label {
    display: block;
    font-size: 15px;
    font-weight: bold;
    color: var(--text-color-dark);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}
.form-label.required::before {
    content: "必須";
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 8px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}
.form-label.optional::before {
    content: "任意";
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 8px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}
.form-hint {
    display: block;
    font-size: 13px;
    color: var(--text-color-light);
    margin-top: 6px;
    line-height: 1.5;
}
.error-text {
    display: block;
    font-size: 13px;
    color: #e74c3c;
    margin-top: 6px;
    font-weight: normal;
}
.form-control.error {
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 15px;
    text-align: left;
    border-color: #e74c3c;
    background: #fff5f5;
    margin-bottom: 0;
}

/* ========================================
   予約サマリー
   ======================================== */
.reservation-summary {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.summary-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color-dark);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    letter-spacing: 0.5px;
}
.summary-item {
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.summary-item:last-child {
    border-bottom: none;
}
.summary-label {
    font-weight: bold;
    color: var(--text-color-light);
    min-width: 120px;
    letter-spacing: 0.3px;
}
.summary-value {
    font-weight: normal;
    color: var(--text-color-dark);
    text-align: right;
}
.summary-value.price {
    font-weight: bold;
    color: var(--primary-color);
}

/* ========================================
   エラーボックス
   ======================================== */
.error-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}
.error-title {
    font-size: 16px;
    font-weight: bold;
    color: #721c24;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}
.error-list {
    margin: 0;
    padding-left: 20px;
}
.error-list li {
    color: #721c24;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* ========================================
   確認画面
   ======================================== */
.confirm-box {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
}
.confirm-table tr:last-child th,
.confirm-table tr:last-child td {
    border-bottom: none;
}
.confirm-table th,
.confirm-table td {
    font-size: 15px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-align: left;
}
.confirm-table th {
    width: 180px;
    font-weight: bold;
    color: var(--text-color-dark);
    background: var(--section-background-color);
    letter-spacing: 0.3px;
}
.confirm-table td {
    color: var(--text-color-dark);
    font-weight: normal;
}
.confirm-table td.price {
    font-size: 17px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}
.notice-box {
    background: var(--section-background-color);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.notice-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color-light);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}
.notice-box ul {
    margin: 0;
    padding-left: 24px;
}
.notice-box li {
    color: var(--text-color-light);
    font-size: 14px;
    line-height: 1.8;
}
.notice-box li:not(:last-of-type) {
    margin-bottom: 6px;
}

/* ========================================
   アラート
   ======================================== */
.alert {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 28px;
    font-weight: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}
.error-message {
    background: #f8d7da;
    border: 1px solid #e74c3c;
    color: #721c24;
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
    font-weight: normal;
}

/* ========================================
   完了メッセージ
   ======================================== */
.complete-message {
    background: color-mix(in srgb, var(--accent-color) 15%, white);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 32px;
    text-align: center;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--accent-color) 15%, transparent);
}
.complete-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    color: white;
    font-size: 26px;
    line-height: 48px;
    border-radius: 50%;
    margin: 0 auto 16px;
    font-weight: bold;
}
.complete-title {
    font-size: 18px;
    font-weight: bold;
    color: color-mix(in srgb, var(--accent-color) 80%, black);
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}
.complete-text {
    font-size: 14px;
    color: color-mix(in srgb, var(--accent-color) 70%, black);
    line-height: 1.8;
    margin: 0;
    font-weight: normal;
}
.complete-info {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.info-title {
    font-size: 14px;
    color: var(--text-color-light);
    margin-bottom: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.reservation-number {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    font-family: inherit;
    letter-spacing: 1px;
}
.complete-summary {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.complete-summary .summary-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color-dark);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    letter-spacing: 0.5px;
}
.summary-table {
    width: 100%;
    border-collapse: collapse;
}
.summary-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.summary-table tr:last-child {
    border-bottom: none;
}
.summary-table th,
.summary-table td {
    font-size: 15px;
    padding: 12px 0;
    text-align: left;
}
.summary-table th {
    width: 130px;
    font-weight: bold;
    color: var(--text-color-light);
    letter-spacing: 0.3px;
}
.summary-table td {
    color: var(--text-color-dark);
    font-weight: normal;
}

/* ========================================
   アクションボタンエリア
   ======================================== */
.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* ========================================
   担当者選択
   ======================================== */
.staff-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}
.staff-button {
    font-size: 16px;
    padding: 13px 24px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: white;
    color: var(--text-color-dark);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.3px;
}

/* チェックマークはデフォルトで非表示 */
.staff-button .staff-check {
    display: none;
}

/* activeクラスが付いている場合のみチェックマークを表示 */
.staff-button.active .staff-check {
    display: inline;
}
.staff-button:hover {
    border-color: var(--primary-color);
    background: #fafafa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.staff-button.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   カレンダー
   ======================================== */
.calendar-wrapper {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.calendar-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color-dark);
    letter-spacing: 0.5px;
}
.nav-button {
    padding: 10px 20px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color-dark);
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.calendar-weekday {
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-color-light);
    background: var(--section-background-color);
    border-radius: 8px;
    letter-spacing: 0.5px;
}

/* 日曜日を赤色 */
.calendar-weekday:nth-child(1) {
    color: #e74c3c;
    background: #ffebee;
}

/* 土曜日を青色 */
.calendar-weekday:nth-child(7) {
    color: #3498db;
    background: #e3f2fd;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.calendar-day.empty {
    border: none;
    background: transparent;
    cursor: default;
}
.calendar-day:not(.disabled):not(.empty):hover {
    border-color: var(--primary-color);
    background: #fafafa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
}

/* タップ時の視覚的フィードバック（スマホ対応） */
.calendar-day:not(.disabled):not(.empty):active {
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 20%, white);
    transform: scale(0.98);
}
.calendar-day.selected {
    border-color: var(--primary-color);
    background: var(--primary-color) !important;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}
.calendar-day.selected .day-number {
    color: white;
}
.calendar-day.disabled {
    background: var(--section-background-color);
    color: color-mix(in srgb, var(--text-color-light) 25%, white);
    cursor: not-allowed;
    border-color: var(--section-background-color);
}
.calendar-day.disabled .day-number {
    color: color-mix(in srgb, var(--text-color-light) 25%, white);
}
.day-number {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color-dark);
}
.day-status {
    font-size: 0;
    margin-top: 4px;
    display: inline-block;
    width: 18px;
    height: 18px;
    position: relative;
}

/* 「休」はテキストで表示 */
.day-status.holiday-text {
    font-size: 15px;
    font-weight: normal;
    color: color-mix(in srgb, var(--text-color-light) 25%, white);
    width: auto;
    height: 18px;
    margin-top: 2px;
    line-height: 18px;
}
.day-status.holiday-text::before {
    display: none;
}

/* SVGアイコンのベーススタイル */
.day-status::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* ◯（まる）のSVG */
.day-status.available::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M15,3A12,12,0,1,1,3,15,12,12,0,0,1,15,3m0-3A15,15,0,1,0,30,15,15,15,0,0,0,15,0Z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M15,3A12,12,0,1,1,3,15,12,12,0,0,1,15,3m0-3A15,15,0,1,0,30,15,15,15,0,0,0,15,0Z"/></svg>');
}

/* △（さんかく）のSVG */
.day-status[data-status="△"]::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M30,27H0L15,1.3ZM5.23,24H24.77L15,7.25Z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M30,27H0L15,1.3ZM5.23,24H24.77L15,7.25Z"/></svg>');
}

/* ☓（ばつ）のSVG */
.day-status[data-status="☓"]::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><polygon points="28 26.23 17.09 15 27.79 3.99 25.63 1.9 15 12.85 4.15 1.68 2 3.77 12.91 15 2.21 26.01 4.37 28.1 15 17.15 25.85 28.32 28 26.23"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><polygon points="28 26.23 17.09 15 27.79 3.99 25.63 1.9 15 12.85 4.15 1.68 2 3.77 12.91 15 2.21 26.01 4.37 28.1 15 17.15 25.85 28.32 28 26.23"/></svg>');
}

/* 読込中の状態 */
.day-status.loading-status {
    font-size: 14px;
    color: #fff;
    animation: pulse 1.5s ease-in-out infinite;
}
.day-status.loading-status::before {
    display: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* 選択された日付のマークを白色に */
.calendar-day.selected .day-status::before {
    background-color: white;
}
.calendar-legend {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--text-color-light);
    font-weight: normal;
}

/* ========================================
   時間選択
   ======================================== */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}
.time-slot-button {
    padding: 14px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: white;
    color: var(--text-color-dark);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.time-slot-button .time-text {
    font-size: 16px;
    letter-spacing: 0.3px;
    font-family: inherit;
}
.time-slot-button .status-icon {
    font-size: 0;
    width: 18px;
    height: 18px;
    display: inline-block;
    position: relative;
}
.time-slot-button .status-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M15,3A12,12,0,1,1,3,15,12,12,0,0,1,15,3m0-3A15,15,0,1,0,30,15,15,15,0,0,0,15,0Z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M15,3A12,12,0,1,1,3,15,12,12,0,0,1,15,3m0-3A15,15,0,1,0,30,15,15,15,0,0,0,15,0Z"/></svg>');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
.time-slot-button:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.time-slot-button:hover .status-icon::before {
    background-color: white;
}
.time-slot-button.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.time-slot-button.selected .status-icon::before {
    background-color: white;
}
.time-slot-button.disabled {
    background: var(--section-background-color);
    color: color-mix(in srgb, var(--text-color-light) 25%, white);
    cursor: not-allowed;
    border-color: var(--section-background-color);
    box-shadow: none;
}
.time-slot-button.disabled .status-icon::before {
    background-color: color-mix(in srgb, var(--text-color-light) 25%, white);
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><polygon points="28 26.23 17.09 15 27.79 3.99 25.63 1.9 15 12.85 4.15 1.68 2 3.77 12.91 15 2.21 26.01 4.37 28.1 15 17.15 25.85 28.32 28 26.23"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><polygon points="28 26.23 17.09 15 27.79 3.99 25.63 1.9 15 12.85 4.15 1.68 2 3.77 12.91 15 2.21 26.01 4.37 28.1 15 17.15 25.85 28.32 28 26.23"/></svg>');
}
.time-slot-button.disabled:hover {
    background: var(--section-background-color);
    color: color-mix(in srgb, var(--text-color-light) 25%, white);
    border-color: var(--section-background-color);
    box-shadow: none;
    transform: none;
}
.time-slot-button.disabled:hover .status-icon::before {
    background-color: color-mix(in srgb, var(--text-color-light) 25%, white);
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><polygon points="28 26.23 17.09 15 27.79 3.99 25.63 1.9 15 12.85 4.15 1.68 2 3.77 12.91 15 2.21 26.01 4.37 28.1 15 17.15 25.85 28.32 28 26.23"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><polygon points="28 26.23 17.09 15 27.79 3.99 25.63 1.9 15 12.85 4.15 1.68 2 3.77 12.91 15 2.21 26.01 4.37 28.1 15 17.15 25.85 28.32 28 26.23"/></svg>');
}

/* 理由テキスト（営業時間外、受付終了など） */
.time-slot-button .reason-text {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    font-weight: normal;
}
.time-slot-button.disabled .reason-text {
    color: #aaa;
}
.loading,
.no-slots,
.error {
    padding: 24px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: normal;
}
.loading {
    background: #f8f9fa;
    color: var(--text-color-light);
    font-style: italic;
    border: 1px solid #e8e8e8;
}
.no-slots {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}
.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

/* ========================================
   空状態
   ======================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-color-light);
    font-size: 16px;
}

/* ========================================
   モーダル
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 480px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    padding: 26px 26px 18px 26px;
}
.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color-dark);
    margin: 0;
    letter-spacing: 0.5px;
}
.modal-body {
    padding: 0 26px 26px 26px;
}
.modal-body p {
    font-size: 16px;
    color: var(--text-color-dark);
    line-height: 1.8;
    margin: 0;
    font-weight: normal;
    text-align: left;
}
.modal-footer {
    padding: 22px 26px 26px 26px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.modal-footer .btn {
    padding: 0 40px;
    font-size: 15px;
    line-height: 56px;
    height: 56px;
    margin: 0;
}

/* ========================================
   選択済みメニューカード（add_menu.php / select_datetime.php 共通）
   ======================================== */
.selected-menus-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.selected-menus-card h3 {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color-light);
    margin-bottom: 10px;
}
.selected-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2px 0;
}
.selected-menu-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color-dark);
    flex: 1;
    margin-right: 24px;
}
.selected-menu-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}
.total-summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
    font-size: 14px;
    color: var(--text-color-light);
}
.total-summary span {
    font-weight: bold;
    color: var(--primary-color);
}

/* ========================================
   add_menu.php 固有スタイル
   ======================================== */
.remove-menu-btn {
    display: none;
}
.main-action-form {
    margin: 40px 0;
}
.main-action-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    padding: 0 40px;
    font-size: 15px;
    font-weight: bold;
    line-height: 56px;
    height: 56px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-family: inherit;
}
.main-action-btn:hover {
    background: color-mix(in srgb, var(--primary-color) 85%, black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.additional-menus-section {
    margin-bottom: 32px;
}
.additional-menus-section .empty-state {
    padding: 40px 20px;
}
.menu-checkbox-item {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 12px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: background 0.2s;
}
.menu-checkbox-item:last-child {
    border-bottom: none;
}
.menu-checkbox-item:hover {
    background: var(--section-background-color);
}
.menu-checkbox-item.checked {
    background: color-mix(in srgb, var(--primary-color) 10%, white);
}
.menu-checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
    margin-top: 6px; /* メニュー名の頭に揃える */
}
.menu-checkbox-item input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}
.menu-checkbox-item input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.menu-checkbox-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.menu-checkbox-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
}
.menu-checkbox-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color-dark);
    flex: 1;
    margin-right: 30px;
    margin-bottom: 0;
}
.menu-checkbox-duration {
    font-size: 14px;
    color: var(--text-color-light);
    margin: 0 12px 0 auto; /* 2行目：時間・金額ともに右寄せ */
}
.menu-checkbox-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}
.menu-checkbox-description {
    display: none;
}
.ellipsis-section {
    text-align: center;
    padding: 24px 0;
    color: var(--text-color-light);
    font-size: 14px;
}
.btn-back {
    background: var(--secondary-color);
    color: white;
    line-height: 56px;
    height: 56px;
    padding: 0 40px;
}
.btn-back:hover {
    background: color-mix(in srgb, var(--secondary-color) 85%, black);
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.btn-next {
    background: var(--primary-color);
    color: white;
}
.btn-next:hover {
    background: color-mix(in srgb, var(--primary-color) 85%, black);
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.action-buttons .btn-next {
    order: 1;
}

/* ========================================
   フッター
   ======================================== */
.customer-footer {
    text-align: center;
    padding: 0 20px 24px 20px;
}
.customer-footer .copyright {
    font-size: 12px;
    color: var(--text-color-light);
    margin: 0;
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 768px) {
    /* ヘッダー */
    .customer-header {
        padding: 28px 20px;
    }
    .shop-logo {
        max-width: 280px;
        max-height: 90px;
    }
    .shop-name {
        font-size: 28px;
    }

    /* メインコンテンツ */
    .customer-main {
        padding: 36px 20px 10px;
    }

    /* ページタイトル */
    .page-title {
        font-size: 18px;
        margin-top: -8px;
        margin-bottom: 18px;
    }

    /* セクションタイトル */
    .section-title {
        font-size: 16px;
        padding: 10px 16px;
        margin: 36px 0 20px 0;
    }

    /* カテゴリセクション */
    .category-title {
        font-size: 13px;
        margin-bottom: 15px;
        padding: 5px 8px;
    }

    /* メニューカード */
    .menu-card {
        padding: 20px;
        margin-bottom: 14px;
    }
    .menu-name {
        font-size: 15px;
        margin-bottom: 8px;
    }
    .menu-description {
        font-size: 13px;
        margin-bottom: 10px;
    }
    .menu-price {
        font-size: 17px;
    }
    .menu-action {
        margin-left: 20px;
    }

    /* ボタン */
    .btn {
        line-height: 52px;
        height: 52px;
        padding: 0 30px;
        font-size: 15px;
    }
    .btn-large {
        line-height: 52px;
        height: 52px;
        padding: 0 36px;
        font-size: 16px;
    }
    .btn-secondary {
        line-height: 52px;
        height: 52px;
        padding: 0 30px;
    }

    /* 選択済みメニュー情報 */
    .selected-menu-info {
        padding: 18px 20px;
        margin-bottom: 28px;
    }
    .menu-name-display {
        font-size: 16px;
    }
    .price-display {
        font-size: 20px;
    }

    /* フォーム */
    .form-label {
        font-size: 14px;
    }
    .form-label.required::before,
    .form-label.optional::before {
        font-size: 10px;
        padding: 2px 7px;
        margin-right: 6px;
    }
    .form-table th {
        width: 190px;
        padding: 16px 18px;
        font-size: 13px;
    }
    .form-table td {
        padding: 16px 18px;
    }
    .form-control {
        padding: 12px 14px;
        font-size: 15px;
    }

    /* 予約サマリー */
    .reservation-summary {
        padding: 20px;
        margin-bottom: 36px;
    }
    .summary-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    .summary-item {
        font-size: 14px;
        padding: 10px 0;
    }

    /* 確認画面 */
    .confirm-box {
        padding: 10px;
        margin-bottom: 36px;
    }   
    .confirm-table th {
        width: 140px;
        font-size: 13px;
        padding: 16px 20px;
    }
    .confirm-table td {
        font-size: 14px;
        padding: 16px 20px;
    }
    .confirm-table td.price {
        font-size: 16px;
    }
    .notice-box {
        padding: 20px;
        margin-bottom: 36px;
    }
    .notice-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    .notice-box ul {
        padding-left: 20px;
    }
    .notice-box li {
        font-size: 13px;
    }
    .notice-box li:not(:last-of-type) {
        margin-bottom: 4px;
    }

    /* 完了メッセージ */
    .complete-message {
        padding: 24px 20px;
        margin-bottom: 28px;
    }
    .complete-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
        line-height: 44px;
        margin: 0 auto 10px;
    }
    .complete-title {
        font-size: 18px;
        margin: 0 0 10px 0;
    }
    .complete-info {
        padding: 20px;
        margin-bottom: 36px;
    }
    .info-title {
        font-size: 13px;
        margin-bottom: 5px;
    }
    .reservation-number {
        font-size: 20px;
    }
    .complete-summary {
        padding: 20px;
        margin-bottom: 36px;
    }
    .complete-summary .summary-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    .summary-table th,
    .summary-table td {
        font-size: 14px;
        padding: 10px 0;
    }

    /* アクションボタンエリア */
    .action-buttons {
        margin-top: 36px;
        margin-bottom: 36px;
    }

    /* 担当者選択 */
    .staff-button {
        padding: 12px 24px;
        font-size: 15px;
    }

    /* カレンダー */
    .calendar-wrapper {
        padding: 20px;
        margin-bottom: 28px;
    }
    .calendar-title {
        font-size: 18px;
    }
    .calendar-weekday {
        padding: 8px;
        font-size: 12px;
    }
    .day-number {
        font-size: 15px;
    }
    .day-status {
        width: 16px;
        height: 16px;
    }
    .day-status.holiday-text {
        font-size: 13px;
        height: 16px;
        line-height: 16px;
        margin-top: 2px;
    }

    /* 時間選択 */
    .time-slot-button {
        padding: 12px 14px;
    }
    .time-slot-button .time-text {
        font-size: 15px;
    }
    .time-slot-button .status-icon {
        width: 16px;
        height: 16px;
    }

    /* モーダル */
    .modal-content {
    }
    .modal-header {
        padding: 24px 24px 18px 24px;
    }
    .modal-title {
        font-size: 17px;
    }
    .modal-body {
        padding: 0 24px 24px 24px;
    }
    .modal-body p {
        font-size: 15px;
    }
    .modal-footer {
        padding: 20px 24px 24px 24px;
    }
    .modal-footer .btn {
        line-height: 52px;
        height: 52px;
        padding: 0 30px;
    }

    /* 選択済みメニューカード（add_menu.php / select_datetime.php 共通） */
    .selected-menus-card {
        padding: 20px;
    }
    .selected-menus-card h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    .selected-menu-item {
        padding: 1px 0;
    }
    .selected-menu-name {
        font-size: 15px;
        margin-right: 20px;
    }
    .selected-menu-price {
        font-size: 17px;
    }
    .total-summary {
        margin-top: 14px;
        padding-top: 14px;
        font-size: 13px;
    }

    /* add_menu.php 固有スタイル */
    .main-action-form {
        margin: 36px 0;
    }
    .main-action-btn {
        line-height: 52px;
        height: 52px;
        padding: 0 30px;
        font-size: 15px;
    }
    .menu-checkbox-item {
        padding: 14px 10px;
        gap: 7px;
    }
    .menu-checkbox-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-top: 5px;
    }
    .menu-checkbox-name {
        font-size: 15px;
    }
    .menu-checkbox-duration {
        font-size: 13px;
    }
    .menu-checkbox-price {
        font-size: 17px;
    }
    .btn-back {
        line-height: 52px;
        height: 52px;
        padding: 0 30px;
        font-size: 15px;
    }
    .btn-next {
        line-height: 52px;
        height: 52px;
        padding: 0 30px;
        font-size: 15px;
    }

    /* フッター */
    .customer-footer {
        padding: 0 16px 20px 16px;
    }
    .customer-footer .copyright {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    /* レイアウト */
    .page-container {
        max-width: 100%;
        box-shadow: none;
    }

    /* ヘッダー */
    .customer-header {
        padding: 20px 16px;
    }
    .shop-logo {
        max-width: 260px;
        max-height: 80px;
    }
    .shop-name {
        font-size: 24px;
    }

    /* メインコンテンツ */
    .customer-main {
        padding: 28px 16px 2px;
    }

    /* ページタイトル */
    .page-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    /* セクションタイトル */
    .section-title {
        font-size: 14px;
        padding: 8px 12px;
        margin: 28px 0 16px 0;
    }

    /* カテゴリセクション */
    .category-section {
        margin-bottom: 36px;
    }
    .category-title {
        font-size: 12px;
        margin-bottom: 12px;
        padding: 4px 6px;
    }

    /* メニューカード */
    .menu-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        margin-bottom: 12px;
    }
    .menu-info {
        width: 100%;
    }
    .menu-name {
        font-size: 14px;
        margin-bottom: 5px;
    }
    .menu-description {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 0;
    }
    .menu-price {
        text-align: right;
        font-size: 16px;
    }
    .menu-action {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }
    .menu-action .btn {
        width: 100%;
    }

    /* ボタン */
    .btn {
        line-height: 48px;
        height: 48px;
        padding: 0 16px;
        font-size: 14px;
    }
    .btn-large {
        line-height: 48px;
        height: 48px;
        padding: 0 16px;
        font-size: 15px;
    }
    .btn-secondary {
        line-height: 48px;
        height: 48px;
        padding: 0 16px;
    }

    /* 選択済みメニュー情報 */
    .selected-menu-info {
        padding: 16px 18px;
        margin-bottom: 24px;
    }
    .info-label {
        font-size: 11px;
        margin-bottom: 8px;
    }
    .menu-name-display {
        font-size: 14px;
    }
    .duration-display {
        font-size: 13px;
    }
    .price-display {
        font-size: 18px;
    }

    /* フォーム */
    .customer-form {
        max-width: 100%;
    }
    .form-group {
        margin-bottom: 22px;
    }
    .form-label {
        font-size: 13px;
        margin-bottom: 8px;
    }
    .form-label.required::before,
    .form-label.optional::before {
        font-size: 9px;
        padding: 2px 6px;
        margin-right: 5px;
    }
    /* テーブルをモバイルで縦並びに */
    .form-table,
    .form-table tbody,
    .form-table tr,
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
    }
    .form-table th {
        padding: 14px 16px 8px 16px;
        background: white;
        border-bottom: none;
    }
    .form-table td {
        padding: 0 16px 16px 16px;
    }
    .form-table tr {
        border-bottom: 1px solid #e8e8e8;
        padding: 0;
    }
    .form-table tr:last-child {
        border-bottom: none;
    }
    .form-control {
        padding: 11px 13px;
        font-size: 16px; /* スマホのみ16px（自動ズーム防止） */
    }
    textarea.form-control {
        min-height: 100px;
    }
    .form-hint {
        font-size: 12px;
        margin-top: 5px;
    }
    .error-text {
        font-size: 12px;
        margin-top: 2px;
    }
    .form-control.error {
        padding: 11px 13px;
        font-size: 16px;
        margin-bottom: 0;
    }

    /* 予約サマリー */
    .reservation-summary {
        padding: 16px;
        margin-bottom: 32px;
    }
    .summary-title {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
    .summary-item {
        padding: 8px 0;
        line-height: 1.5;
    }
    .summary-label {
        font-size: 12px;
        min-width: 90px;
    }
    .summary-value {
        font-size: 13px;
    }

    /* エラーボックス */
    .error-box {
        padding: 12px 16px;
        margin-bottom: 16px;
    }
    .error-title {
        font-size: 14px;
        margin-bottom: 4px;
    }
    .error-list {
        padding-left: 16px;
    }
    .error-list li {
        font-size: 13px;
    }

    /* 確認画面 */
    .confirm-box {
        padding: 6px;
        margin-bottom: 28px;
    }
    .confirm-table th {
        width: 90px;
        font-size: 12px;
        padding: 12px 14px;
    }
    .confirm-table td {
        font-size: 13px;
        padding: 12px 14px;
    }
    .confirm-table td.price {
        font-size: 14px;
    }
    .notice-box {
        padding: 16px;
        margin-bottom: 28px;
    }
    .notice-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .notice-box li {
        font-size: 12px;
        line-height: 1.6;
    }
    .notice-box li:not(:last-of-type) {
        margin-bottom: 8px;
    }

    /* アラート */
    .alert,
    .error-message {
        padding: 15px 18px;
        margin-bottom: 24px;
        font-size: 13px;
    }

    /* 完了メッセージ */
    .complete-message {
        padding: 18px 16px;
        margin-bottom: 14px;
        box-shadow: 0 2px 12px color-mix(in srgb, var(--accent-color) 15%, transparent);
    }
    .complete-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
        line-height: 38px;
        margin-bottom: 8px;
    }
    .complete-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    .complete-text {
        font-size: 12px;
    }
    .complete-info {
        padding: 16px;
        margin-bottom: 28px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    .info-title {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 4px;
    }
    .reservation-number {
        font-size: 17px;
    }
    .complete-summary {
        padding: 16px;
        margin-bottom: 28px;
    }
    .complete-summary .summary-title {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
    .summary-table th {
        width: 70px;
        font-size: 12px;
        padding: 8px 0;
    }
    .summary-table td {
        font-size: 13px;
        padding: 8px 0;
    }
    
    /* アクションボタンエリア */
    .action-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 28px;
        margin-bottom: 28px;
    }
    .action-buttons .btn {
        width: 100%;
    }
    .action-buttons .btn-primary {
        order: -1;
    }

    /* 担当者選択 */
    .staff-selector {
        gap: 10px;
        margin-bottom: 32px;
    }
    .staff-button {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* カレンダー */
    .calendar-wrapper {
        padding: 8px;
        margin-bottom: 24px;
    }
    .calendar-navigation {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    .calendar-title {
        font-size: 14px;
    }
    .nav-button {
        padding: 6px 12px;
        font-size: 11px;
    }
    .calendar-weekday {
        padding: 3px 1px;
        font-size: 9px;
        border-radius: 4px;
    }
    .calendar-days {
        gap: 2px;
    }
    .calendar-day {
        border-width: 1px;
        border-radius: 4px;
        min-height: 0;
        padding: 2px;
    }
    .day-number {
        font-size: 11.5px;
    }
    .day-status {
        width: 10px;
        height: 10px;
        margin-top: -1px;
    }
    .day-status.holiday-text {
        line-height: 1;
        font-size: 10px;
        height: 10px;
        line-height: 10px;
        margin-top: -3px;
    }
    .calendar-legend {
        margin-top: 12px;
        padding-top: 12px;
        gap: 8px;
        font-size: 10px;
        flex-wrap: wrap;
    }

    /* 時間選択 */
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 10px;
        margin-bottom: 28px;
    }
    .time-slot-button {
        padding: 10px 12px;
    }
    .time-slot-button .time-text {
        font-size: 13px;
    }
    .time-slot-button .status-icon {
        width: 14px;
        height: 14px;
    }
    .loading,
    .no-slots,
    .error {
        padding: 20px;
        margin-bottom: 16px;
        font-size: 13px;
    }

    /* 空状態 */
    .empty-state {
        padding: 60px 16px;
        font-size: 14px;
    }

    /* モーダル */
    .modal-content {
        width: 95%;
    }
    .modal-header {
        padding: 18px 18px 14px 18px;
    }
    .modal-title {
        font-size: 16px;
    }
    .modal-body {
        padding: 0 18px 18px 18px;
    }
    .modal-body p {
        font-size: 14px;
        line-height: 1.5;
    }
    .modal-footer {
        padding: 18px 18px 18px 18px;
        flex-direction: column-reverse;
        gap: 10px;
    }
    .modal-footer .btn {
        line-height: 48px;
        height: 48px;
        width: 100%;
        padding: 0 16px;
        font-size: 14px;
    }

    /* 選択済みメニューカード（add_menu.php / select_datetime.php 共通） */
    .selected-menus-card {
        padding: 15px;
        border-radius: 10px;
    }
    .selected-menus-card h3 {
        font-size: 12px;
        margin-bottom: 8px;
    }
    .selected-menu-item {
        padding: 1px 0;
    }
    .selected-menu-name {
        font-size: 13px;
        margin-right: 15px;
    }
    .selected-menu-price {
        font-size: 14px;
    }
    .total-summary {
        margin-top: 10px;
        padding-top: 10px;
        font-size: 12px;
    }

    /* add_menu.php 固有スタイル */
    .main-action-form {
        margin: 28px 0;
    }
    .main-action-btn {
        line-height: 48px;
        height: 48px;
        padding: 0 16px;
        font-size: 14px;
        max-width: 100%;
    }
    .menu-checkbox-item {
        padding: 10px 6px;
        gap: 6px;
    }
    .menu-checkbox-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-top: 2px;
    }
    .menu-checkbox-name {
        /* 1行目：メニュー名が全幅を占める */
        /* flex: 1 1 100%; */
        font-size: 13px;
        margin-right: 12px;
    }
    .menu-checkbox-duration {
        font-size: 11px;
        margin-right: 6px;
    }
    .menu-checkbox-price {
        font-size: 14px;
    }
    .btn-back {
        line-height: 48px;
        height: 48px;
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        font-size: 14px;
    }
    .btn-next {
        line-height: 48px;
        height: 48px;
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        font-size: 14px;
    }
    .action-buttons .btn-next {
        order: -1;
    }

    /* フッター */
    .customer-footer {
        padding: 0 16px 18px 16px;
    }
    .customer-footer .copyright {
        font-size: 10px;
    }
}

@media (max-width: 320px) {
    /* カレンダー */
    .day-number {
        font-size: 11px;
    }
    .day-status {
        margin-top: -2px;
    }
    .day-status.holiday-text {
        margin-top: -3px;
    }
    .calendar-legend {
        font-size: 9.5px;
    }
}

/* ========================================
   ページ別スコープスタイル
   各ページの <main> に付与されるクラスでスコープを限定します。
   ページクラス一覧:
     .page-menu        → index.php        （メニュー選択）
     .page-add-menu    → add_menu.php     （メニュー追加）
     .page-datetime    → select_datetime.php（日時選択）
     .page-info        → input_info.php   （お客様情報入力）
     .page-confirm     → confirm.php      （予約確認）
     .page-complete    → complete.php     （予約完了）
     .page-calendar    → calendar.php     （空き状況カレンダー）
   ======================================== */

/* --------------------------------------------------
   .page-menu（index.php）
   -------------------------------------------------- */

.page-menu .btn {
    padding: 0 30px;
}

/* 空き状況カレンダー 固定ボタン */
.page-menu .calendar-fab {
    line-height: 1;
    text-align: center;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-family: inherit;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 100;
    border: 1px solid var(--primary-color);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}
.page-menu .calendar-fab svg {
    margin-top: 10px;
    width: 20px;
    height: 20px;
}
.page-menu .calendar-fab span {
    font-size: 9.5px;
    letter-spacing: -0.5px;
    margin-top: 2px;
    font-weight: bold;
    line-height: 1;
    display: block;
}
.page-menu .calendar-fab.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.page-menu .calendar-fab:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    transition: opacity 0.2s, transform 0.2s;
}
.page-menu .calendar-fab:active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .page-menu .calendar-fab {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 600px) {
    .page-menu .calendar-fab {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .page-menu .calendar-fab svg {
        margin-top: 8px;
        width: 18px;
        height: 18px;
    }
    .page-menu .calendar-fab span {
        font-size: 8.5px;
        margin-top: 1px;
    }
}

/* --------------------------------------------------
   .page-add-menu（add_menu.php）
   -------------------------------------------------- */

.page-add-menu .category-section {
    margin-bottom: 0;
}
.page-add-menu .category-title {
    background: none;
    margin-bottom: 0;
    /* border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 20%, white); */
    border-bottom: 1px solid #e8e8e8;
    border-radius: 0;
    margin-top: 26px;
    padding: 0 0 8px;
}

@media (max-width: 768px) {
    .page-add-menu .category-title {
        margin-top: 24px;
        padding: 0 0 6px;
    }
}

@media (max-width: 600px) {
    .page-add-menu .category-title {
        margin-top: 16px;
        padding: 0 0 5px;
    }
}

/* --------------------------------------------------
   .page-datetime（select_datetime.php）
   -------------------------------------------------- */

/* --------------------------------------------------
   .page-info（input_info.php）
   -------------------------------------------------- */

/* --------------------------------------------------
   .page-confirm（confirm.php）
   -------------------------------------------------- */

.page-confirm .section-title:first-of-type {
    margin-top: 0;
}

/* --------------------------------------------------
   .page-complete（complete.php）
   -------------------------------------------------- */

/* --------------------------------------------------
   .page-calendar（calendar.php）
   -------------------------------------------------- */

.page-calendar .calendar-page-note {
    font-size: 14px;
    color: var(--text-color-light);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* 空き確認ページはクリック不要: ホバー・カーソルをすべて無効化 */
.page-calendar .calendar-day {
    cursor: default;
}
.page-calendar .calendar-day:not(.disabled):not(.empty):hover,
.page-calendar .calendar-day:not(.disabled):not(.empty):active {
    background: transparent;
    border-color: #e0e0e0;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .page-calendar .calendar-page-note {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 36px;
    }
}

@media (max-width: 600px) {
    .page-calendar .calendar-page-note {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 28px;
    }
}
