/* 基本リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #faf8f5;
    color: #4a4a4a;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    min-height: 100vh;
}

/* ヘッダー */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8ddd1;
}

.header h1 {
    color: #8b7355;
    font-size: 28px;
    margin-bottom: 10px;
}

.salon-theme {
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.catchphrase {
    font-size: 16px;
    color: #6b6b6b;
    font-style: italic;
}

/* ステップインジケーター */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e8ddd1;
    color: #8b7355;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
}

.step.active .step-number {
    background-color: #8b7355;
    color: white;
}

.step.completed .step-number {
    background-color: #d4c4a8;
    color: white;
}

/* 日付・予約タイプ選択 */
.selection-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e8ddd1;
    border-radius: 10px;
    background-color: #fefcf9;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #8b7355;
}

.date-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e8ddd1;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
}

.date-input:focus {
    outline: none;
    border-color: #8b7355;
}

/* 予約タイプ */
.booking-types {
    display: grid;
    gap: 15px;
}

.booking-type {
    border: 2px solid #e8ddd1;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.booking-type:hover:not(.disabled) {
    border-color: #d4c4a8;
    background-color: #fefcf9;
}

.booking-type.selected {
    background-color: #8b7355 !important;
    color: white !important;
    border-color: #8b7355 !important;
    box-shadow: 0 4px 12px rgba(90, 77, 58, 0.3) !important;
}

.booking-type.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.booking-type-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.booking-type-price {
    color: #8b7355;
    font-size: 14px;
}

/* 時間ブロック */
.time-message {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #8b7355;
    padding: 15px;
    background-color: #f9f7f4;
    border-radius: 8px;
}

.time-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e8ddd1;
    border-radius: 8px;
}

/* スマホ時は全表示 */
@media (max-width: 768px) {
    .time-blocks {
        max-height: none;
        overflow-y: visible;
    }
}

.time-block {
    padding: 12px 8px;
    border: 2px solid;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.time-text {
    line-height: 1.2;
}

.block-icon {
    font-size: 18px;
    font-weight: bold;
    margin-top: 2px;
    color: inherit;
}

/* 時間ブロックのカラーコード */
/* 1. 選択可能（時間予約で選択できる） */
.time-block.available {
    background-color: #fefcf9;
    border-color: #e8ddd1;
    color: #4a4a4a;
}

.time-block.available:hover {
    border-color: #d4c4a8;
    transform: translateY(-1px);
}

/* 2. 予約済み（他の予約で使えない） */
.time-block.booked {
    background-color: #ffcccc;
    border-color: #ff9999;
    color: #cc0000;
    cursor: not-allowed;
}

/* 3. 利用できます（ひとりじめ系で自動利用） */
.time-block.included {
    background-color: #cce7ff;
    border-color: #66b3ff;
    color: #0066cc;
    opacity: 1;
}

/* 4. 選択不可（グレーアウト） */
.time-block.disabled {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #999;
    opacity: 0.3;
    cursor: not-allowed;
}

/* 5. 選択済み（ユーザーが選択中） */
.time-block.selected {
    background: linear-gradient(135deg, #d4c4a8, #c4b49a);
    border-color: #c4b49a;
    color: white;
    font-weight: bold;
}

/* お客様情報フォーム */
.customer-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row.inline {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.form-label {
    font-weight: bold;
    color: #4a4a4a;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.form-input, .form-textarea {
    padding: 12px;
    border: 2px solid #e8ddd1;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #8b7355;
}

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

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.form-row.inline .form-input {
    flex: 1;
}

/* ユーザー登録選択 */
.user-registration-options {
    display: grid;
    gap: 15px;
}

.registration-option {
    border: 2px solid #e8ddd1;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.registration-option:hover {
    border-color: #d4c4a8;
    background-color: #fefcf9;
}

.registration-option.selected {
    border-color: #8b7355;
    background-color: #f9f7f4;
}

.option-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.option-header input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.option-title {
    font-weight: bold;
    font-size: 16px;
    color: #4a4a4a;
    cursor: pointer;
}

.option-description {
    font-size: 14px;
    color: #6b6b6b;
    line-height: 1.4;
    margin-left: 30px;
}

/* ボタン */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #8b7355;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #7a6347;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #e8ddd1;
    color: #8b7355;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #d4c4a8;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #8b7355;
    color: #8b7355;
}

.btn-outline:hover:not(:disabled) {
    background-color: #8b7355;
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 料金確認 */
.price-confirm {
    background-color: #f9f7f4;
    border: 2px solid #d4c4a8;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.price-amount {
    font-size: 24px;
    font-weight: bold;
    color: #8b7355;
    margin-bottom: 10px;
}

.price-detail {
    font-size: 14px;
    color: #6b6b6b;
}

/* 確認画面 */
.booking-summary {
    background-color: #fefcf9;
    border: 2px solid #e8ddd1;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 0;
}

/* ローディング */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e8ddd1;
    border-top: 4px solid #8b7355;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* エラーメッセージ */
.error-message {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.success-message {
    background-color: #f1f8e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 確認画面 */
.booking-summary {
    background-color: #fefcf9;
    border: 2px solid #e8ddd1;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.summary-section {
    margin-bottom: 30px;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h3 {
    font-size: 18px;
    font-weight: bold;
    color: #8b7355;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8ddd1;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-row.total {
    border-top: 2px solid #8b7355;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 18px;
}

.summary-row.discount .summary-value {
    color: #e74c3c;
    font-weight: bold;
}

.summary-label {
    font-weight: 500;
    color: #4a4a4a;
    flex: 0 0 140px;
}

.summary-value {
    color: #2c2c2c;
    text-align: right;
    word-break: break-word;
}

.customer-number {
    background-color: white;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 15px;
    color: #2e7d32;
    font-size: 18px;
}

.processing-status {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.status-item .success {
    color: #4caf50;
}

.status-item .error {
    color: #f44336;
}

/* Step4 決済画面 */
.booking-summary-mini {
    background-color: #f9f7f4;
    border: 1px solid #e8ddd1;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
}

.booking-summary-mini h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #8b7355;
}

.summary-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 14px;
}

.summary-mini span {
    background-color: white;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #e8ddd1;
}

.usage-note {
    background-color: #cce7ff !important;
    color: #0066cc !important;
    font-size: 12px !important;
    font-weight: bold;
}

.price-mini {
    font-weight: bold;
    color: #8b7355;
    margin-left: auto;
}

.coupon-section {
    display: grid;
    gap: 10px;
}

.price-breakdown {
    background-color: #fefcf9;
    border: 2px solid #e8ddd1;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.price-breakdown h3 {
    font-size: 18px;
    color: #8b7355;
    margin-bottom: 15px;
    border-bottom: 1px solid #e8ddd1;
    padding-bottom: 8px;
}

.price-rows {
    display: grid;
    gap: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.discount span:last-child {
    color: #e74c3c;
    font-weight: bold;
}

.price-row.total {
    border-top: 2px solid #8b7355;
    padding-top: 15px;
    margin-top: 10px;
    font-weight: bold;
    font-size: 18px;
}

.stripe-element {
    background-color: white;
    padding: 12px;
    border: 2px solid #e8ddd1;
    border-radius: 8px;
    margin-bottom: 10px;
}

.stripe-element:focus-within {
    border-color: #8b7355;
}

.agreement-section {
    background-color: #f9f7f4;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e8ddd1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

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

.checkbox-label a {
    color: #8b7355;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #7a6347;
}

/* Step5 完了画面 */
.completion-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #f1f8e9;
    border: 2px solid #c8e6c9;
    border-radius: 15px;
    margin-bottom: 30px;
}

.success-icon {
    font-size: 48px;
    color: #4caf50;
    margin-bottom: 20px;
}

.completion-message h2 {
    color: #2e7d32;
    font-size: 28px;
    margin-bottom: 10px;
}

.completion-message p {
    color: #388e3c;
    font-size: 16px;
}

.important-notice {
    background-color: #fff3e0;
    border: 2px solid #ffcc02;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.important-notice h3 {
    color: #ef6c00;
    margin-bottom: 15px;
}

.important-notice ul {
    margin: 0;
    padding-left: 20px;
}

.important-notice li {
    margin-bottom: 8px;
    color: #bf360c;
}

.completion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.completion-actions .btn {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

/* レスポンシブ */
/* マイページ専用スタイル */
.customer-info {
    background: linear-gradient(135deg, #f9f7f4, #fefcf9);
    border: 2px solid #e8ddd1;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.1);
}

.customer-name {
    font-size: 24px;
    font-weight: bold;
    color: #8b7355;
    margin-bottom: 8px;
}

.customer-email {
    font-size: 16px;
    color: #6b6b6b;
}

.main-content {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #8b7355;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f9f7f4, #fefcf9);
    border-radius: 10px;
    border-left: 5px solid #8b7355;
}

/* 予約カード */
.booking-card {
    background: white;
    border: 2px solid #e8ddd1;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.08);
    transition: all 0.3s ease;
}

.booking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 115, 85, 0.15);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.booking-date {
    font-size: 22px;
    font-weight: bold;
    color: #2c2c2c;
}

.booking-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    background-color: #4caf50;
    color: white;
}

.booking-status.cancelled {
    background-color: #f44336;
}

.booking-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

.detail-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.key-number {
    background: linear-gradient(135deg, #fff3e0, #ffcc02);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: bold;
    color: #bf360c;
    border: 1px solid #ffb300;
}

/* アクションボタン */
.booking-actions {
    text-align: center;
    margin-top: 20px;
}

.action-btn {
    background: linear-gradient(135deg, #8b7355, #7a6347);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 115, 85, 0.4);
}

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

/* キャンセル・再販情報 */
.cancel-info, .resale-info {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    padding: 15px;
    color: #c62828;
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
}

.resale-info {
    background-color: #e3f2fd;
    border-color: #90caf9;
    color: #1976d2;
}

/* 予約なしメッセージ */
.no-bookings {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f9f7f4, #fefcf9);
    border: 2px dashed #e8ddd1;
    border-radius: 15px;
    color: #8b7355;
}

.no-bookings-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.no-bookings p {
    font-size: 18px;
    margin: 0;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, #f9f7f4, #fefcf9);
    border: 1px solid #e8ddd1;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: #6b6b6b;
    line-height: 1.8;
    margin-top: 40px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.contact-btn {
    background: white;
    color: #8b7355;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid #e8ddd1;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-btn:hover {
    background: #8b7355;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 115, 85, 0.2);
}

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

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #8b7355, #7a6347);
    color: white;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
}

.modal-body {
    padding: 25px;
    line-height: 1.6;
}

.modal-actions {
    padding: 20px 25px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background-color: #fafafa;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm {
    background-color: #8b7355;
    color: white;
}

.btn-confirm:hover {
    background-color: #7a6347;
}

.btn-cancel-modal {
    background-color: #e8ddd1;
    color: #8b7355;
}

.btn-cancel-modal:hover {
    background-color: #d4c4a8;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #4a4a4a;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e8ddd1;
    border-radius: 8px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #8b7355;
}

.warning-notice {
    background-color: #fff3e0;
    border: 1px solid #ffcc02;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
    color: #bf360c;
}

/* エラーメッセージの改善 */
.error-message {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border: 2px solid #f44336;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: #c62828;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .customer-info {
        padding: 20px;
    }
    
    .customer-name {
        font-size: 20px;
    }
    
    .booking-card {
        padding: 20px;
    }
    
    .booking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .booking-date {
        font-size: 18px;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}
@media (max-width: 768px) {
    .summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .summary-label {
        flex: none;
        font-size: 14px;
    }
    
    .summary-value {
        text-align: left;
        font-size: 16px;
    }
    
    .summary-section h3 {
        font-size: 16px;
    }
}
    .container {
        padding: 15px;
    }
    
    .time-blocks {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .time-block {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .header h1 {
        font-size: 24px;
    }    
/* スペースカード - step1.php対応版 */
.spaces-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.space-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    background: white;
    max-width: 100%;
}

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

.space-card.selected {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

..space-image {
    width: 100%;
    height: 120px;  /* ←この行を変更 */
    overflow: hidden;
    position: relative;
}

.space-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.space-name {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 15px 5px 15px;
    color: #333;
}

.space-description {
    font-size: 12px;
    color: #6b6b6b;
    margin: 0 15px 10px 15px;
}

/* PC・タブレット用（768px以上） */
@media (min-width: 768px) {
    .spaces-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        max-width: 650px;
        margin: 20px auto;
    }
    
   ..space-image {
    width: 100%;
    height: 180px;  /* ←この行を変更 */
    }
}
/* キャンセル詳細画面の改良されたラジオボタン */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.radio-option {
    position: relative;
    cursor: pointer;
    display: block;
}

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

.radio-custom {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    min-height: 80px;
}

.radio-custom:hover {
    border-color: #e91e63;
    background: #fdf2f8;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(233, 30, 99, 0.15);
}
.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #e91e63;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    transform: translateY(-2px);
}
.radio-icon {
    font-size: 32px;
    margin-right: 20px;
    min-width: 50px;
    text-align: center;
}

.radio-content {
    flex: 1;
}

.radio-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.radio-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}
/* 選択インジケーター */
.radio-custom::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    background: #8b7355;
    border-color: #8b7355;
    transform: scale(1.2);
}

.radio-custom {
    position: relative;
}
/* 再販開放選択カード */
.resale-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.resale-option-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.resale-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.resale-custom {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.3s ease;
    min-height: 70px;
}

.resale-custom:hover {
    border-color: #e91e63;
    background: #fdf2f8;
    transform: translateY(-1px);
}

.resale-option-card input[type="radio"]:checked + .resale-custom {
    border-color: #e91e63;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    box-shadow: 0 3px 8px rgba(233, 30, 99, 0.25);
}
.resale-icon {
    font-size: 28px;
    margin-right: 18px;
    min-width: 40px;
    text-align: center;
}

.resale-content {
    flex: 1;
}

.resale-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

.resale-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}
/* 再販開放同意チェックボックスの強調 */
.condition-required {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3d3 100%);
    border: 2px solid #f4a261;
    border-radius: 12px;
    padding: 20px 25px;
    margin: 20px 0 !important;
    box-shadow: 0 3px 10px rgba(244, 162, 97, 0.2);
    transition: all 0.3s ease;
}

.condition-required:hover {
    border-color: #e76f51;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
    transform: translateY(-1px);
}

.condition-required input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin-right: 15px !important;
    transform: scale(1.3);
    accent-color: #8b7355;
    cursor: pointer;
}

.condition-required span {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #8b4513 !important;
    text-align: center;
    line-height: 1.4;
    cursor: pointer;
}

.condition-required input[type="checkbox"]:checked + span {
    color: #2d5016 !important;
}

/* その他の条件項目は少し小さく */
.condition-info {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}
/* ★★★ 処理中オーバーレイのスタイル ★★★ */
#processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.processing-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.processing-spinner {
    margin-bottom: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e91e63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.processing-message {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
}

.processing-steps {
    text-align: left;
    margin-top: 20px;
}

.step {
    padding: 8px 0;
    color: #666;
    transition: all 0.3s ease;
}

.step.completed {
    color: #4caf50;
    font-weight: bold;
}

/* ★★★ 成功メッセージのスタイル ★★★ */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    animation: successSlideIn 0.5s ease-out;
}

.success-content {
    background: linear-gradient(135deg, #4caf50, #81c784);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    min-width: 300px;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.success-text {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.success-subtext {
    font-size: 14px;
    opacity: 0.9;
}

@keyframes successSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ★★★ ローディングスピナー ★★★ */
.loading-spinner {
    display: inline-block;
    margin-right: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
/* ★★★ キャンセル実行ボタンの改善スタイル ★★★ */
.cancel-actions {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5, #ffeaea);
    border-radius: 15px;
    border: 2px solid #ffcdd2;
}

.btn-cancel {
    background: linear-gradient(135deg, #e53e3e, #c53030) !important;
    color: white !important;
    border: none !important;
    padding: 18px 40px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3) !important;
    text-transform: none !important;
    min-width: 280px !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-cancel:before {
    content: '⚠️';
    margin-right: 8px;
    font-size: 20px;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #c53030, #9c2626) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4) !important;
}

.btn-cancel:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(229, 62, 62, 0.3) !important;
}

.btn-cancel:disabled {
    background: linear-gradient(135deg, #cccccc, #999999) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ★★★ キャンセル実行前の注意メッセージ ★★★ */
.cancel-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.cancel-warning-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.cancel-warning-text {
    font-weight: bold;
    color: #856404;
    font-size: 16px;
}

/* ★★★ アニメーション効果 ★★★ */
@keyframes pulseWarning {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(229, 62, 62, 0.5);
    }
}

.btn-cancel:not(:disabled) {
    animation: pulseWarning 2s infinite;
}
/* 口座種別ボタンスタイル */
.account-type-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.account-type-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.account-type-btn:hover {
    border-color: #e91e63;
    background: #fce4ec;
}

.account-type-btn.selected {
    border-color: #e91e63;
    background: #e91e63;
    color: white;
}

.account-type-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}
/* 時間変更無効時のスタイル */
.disabled-option {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.radio-custom.disabled {
    background: #f5f5f5;
    border: 2px solid #ddd;
    color: #999;
    cursor: not-allowed;
}

.disabled-option::before {
    content: "🚫";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    z-index: 1;
}

.disabled-option .radio-desc {
    color: #666;
    font-style: italic;
}
/* 時間変更セクション専用スタイル（styles.cssと統一） */
.time-change-section {
    margin-top: 20px;
}

.current-reservation-info {
    margin-bottom: 25px;
}

.info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.info-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.current-time-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.time-text {
    font-size: 18px;
    font-weight: bold;
    color: #e91e63;
}

.duration-text {
    font-size: 14px;
    color: #666;
}

.available-times-section {
    margin-bottom: 25px;
}

.search-controls {
    text-align: center;
    margin-bottom: 20px;
}

.available-times-header {
    margin-bottom: 15px;
}

.available-times-header h4 {
    color: #333;
    margin-bottom: 5px;
}

.times-note {
    color: #666;
    font-size: 14px;
}

/* 選択範囲表示用の追加スタイル */
.time-block.selected-range {
    background: linear-gradient(135deg, #f0e6d6, #e8dcc6);
    border-color: #d4c4a8;
    color: #8b7355;
    font-weight: bold;
}

.no-times-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.message-icon {
    font-size: 48px;
    margin-b
}

.message-text {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.message-subtext {
    font-size: 14px;
    color: #666;
}

.time-selection-section {
    margin-top: 25px;
}

.selection-summary h4 {
    color: #333;
    margin-bottom: 15px;
}

.change-summary-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.change-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.change-label {
    font-weight: bold;
    color: #666;
}

.change-value {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.change-arrow {
    text-align: center;
    font-size: 20px;
    color: #e91e63;
    font-weight: bold;
    margin: 10px 0;
}

.change-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.change-note p {
    margin: 0 0 10px 0;
    font-weight: bold;
    color: #856404;
}

.change-note ul {
    margin: 0;
    padding-left: 20px;
}

.change-note li {
    color: #856404;
    margin-bottom: 5px;
}

.selection-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .current-time-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .selection-actions {
        flex-direction: column;
    }
    
    .change-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ★★★ モバイル対応 ★★★ */
@media (max-width: 768px) {
    .btn-cancel {
        min-width: 100% !important;
        padding: 20px 30px !important;
        font-size: 16px !important;
    }
    
    .cancel-actions {
        padding: 15px;
        margin-top: 20px;
    }
}
.condition-info:last-of-type {
    border-bottom: none