/* =============================================
   AI Voice Gate - G2 Style
   ============================================= */

/* --- Layout --- */
.ai-voice-page {
    background: #f5f5f7;
    min-height: 80vh;
    padding: 40px 0;
}

.gate-container,
.spa-container {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* --- Brand --- */
.gate-brand {
    text-align: center;
    margin-bottom: 24px;
}

.gate-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
	color: #F97316;
}

.gate-logo .logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35, #f7421e);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 18px;
}

.gate-logo .logo-divider {
    width: 1px;
    height: 24px;
    background: #ddd;
}

.gate-logo .logo-text {
    color: #F97316;
    font-weight: 700;
    font-size: 16px;
}

/* --- Title --- */
.gate-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 32px;
}

/* --- Cards --- */
.gate-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.gate-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.gate-card:hover {
    border-color: #fdba74;
}

.gate-card.active {
    border-color: #F97316;
    box-shadow: 0 0 0 1px #F97316;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.card-check i {
    display: none;
    color: #fff;
    font-size: 12px;
}

.gate-card.active .card-check {
    background: #F97316;
    border-color: #F97316;
}

.gate-card.active .card-check i {
    display: block;
}

.card-icon {
    font-size: 18px;
    color: #4a5568;
    width: 24px;
    text-align: center;
}

.card-label {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    flex: 1;
}

.card-time {
    color: #718096;
    font-size: 13px;
    white-space: nowrap;
}

.card-time i {
    margin-right: 4px;
}

/* Card Detail (展開部刁E */
.card-detail {
    display: none;
    margin-top: 16px;
    padding-top: 0;
}

.gate-card.active .card-detail {
    display: block;
}

.card-desc-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 6px;
}

.card-desc {
    color: #718096;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-lang label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.lang-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    background: #fff;
    cursor: pointer;
    appearance: auto;
}

/* --- Terms --- */
.gate-terms {
    text-align: center;
    font-size: 12px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
}

.gate-terms a {
    color: #F97316;
    text-decoration: underline;
}

/* --- Start Button --- */
.gate-start-btn {
    display: block;
    width: auto;
    margin: 0 auto;
    padding: 14px 48px;
    background: #F97316;
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.gate-start-btn:hover {
    background: #EA580C;
    transform: translateY(-1px);
}

.gate-start-btn:active {
    transform: translateY(0);
}

/* =============================================
   SPA Header (共送E
   ============================================= */
.spa-header {
    margin-bottom: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #F97316;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 16px;
}

.back-link:hover {
    text-decoration: underline;
}

.spa-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.spa-shop-name {
    color: #718096;
    font-size: 14px;
}

.spa-shop-name i {
    margin-right: 4px;
}

/* =============================================
   Voice UI
   ============================================= */
.voice-unsupported {
    text-align: center;
    padding: 40px 20px;
}

.unsupported-icon {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.voice-unsupported h2 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.voice-unsupported p {
    color: #718096;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.unsupported-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.alt-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid #F97316;
    color: #F97316;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.alt-link:hover {
    background: #F97316;
    color: #fff;
}

/* Voice Controls */
.voice-controls {
    text-align: center;
    margin-bottom: 32px;
}

.voice-record-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: #F97316;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.voice-record-btn:hover {
    background: #EA580C;
    transform: scale(1.05);
}

.voice-record-btn.recording {
    background: #e53e3e;
    animation: pulse-recording 1.5s infinite;
}

.voice-record-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

@keyframes pulse-recording {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(229, 62, 62, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 62, 62, 0);
    }
}

.voice-status {
    margin-top: 12px;
    color: #718096;
    font-size: 14px;
}

.voice-timer {
    font-size: 24px;
    font-weight: 700;
    color: #e53e3e;
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}

/* Voice Transcript */
.voice-result h3 {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
}

.voice-transcript {
    min-height: 120px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    background: #f7fafc;
    font-size: 15px;
    line-height: 1.7;
    color: #2d3748;
}

.transcript-placeholder {
    color: #a0aec0;
    font-style: italic;
}

/* =============================================
   Chat UI
   ============================================= */
.chat-window {
    display: flex;
    flex-direction: column;
    height: 480px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Message Bubbles */
.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.chat-bubble.ai {
    align-self: flex-start;
    background: #fff7ed;
    color: #2d3748;
    border-bottom-left-radius: 4px;
}

.chat-bubble.user {
    align-self: flex-end;
    background: #F97316;
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Chat Input */
.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: #F97316;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #F97316;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: #EA580C;
}

/* =============================================
   Error Page
   ============================================= */
.ai-voice-error {
    background: #f5f5f7;
    min-height: 60vh;
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-voice-error h1 {
    font-size: 22px;
    margin-bottom: 12px;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {

    .gate-container,
    .spa-container {
        margin: 0 16px;
        padding: 32px 20px;
    }

    .gate-title {
        font-size: 20px;
    }

    .card-label {
        font-size: 16px;
    }

    .gate-start-btn {
        width: 100%;
    }

    .chat-window {
        height: 400px;
    }

    .chat-input-area {
        padding: 8px 12px;
        gap: 6px;
    }

    .chat-send-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        flex-shrink: 0;
        font-size: 14px;
    }

    .ai-draft-btn,
    .voice-reset-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
        margin-left: 0;
        margin-top: 0;
    }

    .voice-submit-area {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* =============================================
   AI Draft Submit Button
   ============================================= */
.voice-submit-area {
    text-align: center;
    margin-top: 2rem;
}

.ai-draft-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.ai-draft-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.ai-draft-btn:active {
    transform: translateY(0);
}

.draft-hint {
    margin-top: 1.5rem;
    font-size: 13px;
    color: #a0aec0;
}

.voice-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #fff;
    color: #718096;
    border: 2px solid #e2e8f0;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 12px;
}

.voice-reset-btn:hover {
    border-color: #F97316;
    color: #F97316;
}

/* 位置情報カード */
.editor-geo-consent {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 8px;
}

.geo-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
}

.geo-card-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d1fae5;
    border-radius: 50%;
    color: #059669;
    font-size: 16px;
}

.geo-card-body {
    flex: 1;
}

.geo-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 8px 0;
}

.geo-card-text {
    font-size: 13px;
    color: #047857;
    margin: 0 0 4px 0;
    line-height: 1.6;
}

.geo-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #059669;
    text-decoration: none;
    margin-top: 6px;
    font-weight: 600;
}

.geo-card-link:hover {
    text-decoration: underline;
}

.geo-consent-check {
    margin-top: 12px;
}

/* =============================================
   Review Editor
   ============================================= */
.review-editor {
    margin-top: 32px;
    border-top: 1px solid #e2e8f0;
    padding-top: 32px;
}

/* Steps Navigation */
.editor-steps {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
}

.editor-steps .step {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #a0aec0;
    border-bottom: 3px solid #e2e8f0;
    transition: all 0.3s;
}

.editor-steps .step.active {
    color: #F97316;
    border-bottom-color: #F97316;
}

.editor-steps .step.completed {
    color: #48bb78;
    border-bottom-color: #48bb78;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
}

.step.active .step-num {
    background: #F97316;
    color: #fff;
}

.step.completed .step-num {
    background: #48bb78;
    color: #fff;
}

/* Editor Panel */
.editor-panel {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.editor-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.editor-title i {
    color: #F97316;
    margin-right: 8px;
}

.editor-subtitle {
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
}

/* Original Text Toggle */
.editor-original {
    margin-bottom: 16px;
}

.toggle-original {
    background: none;
    border: 1px solid #e2e8f0;
    color: #718096;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-original:hover {
    background: #f7fafc;
    border-color: #F97316;
    color: #F97316;
}

.original-text {
    margin-top: 10px;
    padding: 12px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Textarea */
.editor-textarea-wrap {
    position: relative;
}

.editor-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.8;
    color: #2d3748;
    resize: vertical;
    min-height: 160px;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.editor-textarea:focus {
    outline: none;
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.editor-char-count {
    text-align: right;
    font-size: 12px;
    color: #a0aec0;
    margin-top: 4px;
}

/* Risk Warning */
.editor-risk-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    color: #c53030;
    font-size: 14px;
    margin-top: 12px;
}

.editor-risk-warning i {
    font-size: 18px;
    flex-shrink: 0;
}

/* Step2 Validation Notice */
.editor-validation-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

.editor-validation-notice i {
    font-size: 18px;
    color: #f59e0b;
    flex-shrink: 0;
}

/* Step3 Geo Notice */
.editor-geo-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e40af;
    font-size: 14px;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

.editor-geo-notice i {
    font-size: 18px;
    color: #3b82f6;
    flex-shrink: 0;
}

/* Actions */
.editor-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.editor-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.editor-btn.primary {
    background: #F97316;
    color: #fff;
    margin-left: auto;
}

.editor-btn.primary:hover {
    background: #EA580C;
}

.editor-btn.secondary {
    background: #edf2f7;
    color: #4a5568;
}

.editor-btn.secondary:hover {
    background: #e2e8f0;
}

.editor-btn.submit {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: #fff;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.editor-btn.submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4);
}

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

/* Fields */
.editor-field {
    margin-bottom: 20px;
}

.editor-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.editor-field .required {
    color: #e53e3e;
}

.editor-input,
.editor-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.editor-input:focus,
.editor-select:focus {
    outline: none;
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 8px;
    font-size: 28px;
}

.star-rating i {
    color: #f6ad55;
    cursor: pointer;
    transition: transform 0.15s;
}

.star-rating i:hover {
    transform: scale(1.2);
}

/* Preview */
.editor-preview {
    padding: 20px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
}

.preview-rating {
    font-size: 22px;
    margin-bottom: 12px;
    color: #f6ad55;
}

.preview-text {
    font-size: 15px;
    line-height: 1.8;
    color: #2d3748;
    white-space: pre-wrap;
    margin-bottom: 12px;
}

.preview-meta {
    font-size: 13px;
    color: #718096;
}

/* Consent */
.editor-consent {
    margin-bottom: 16px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    line-height: 1.5;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #F97316;
}

.consent-label a {
    color: #F97316;
    text-decoration: underline;
}

/* Result */
.result-content {
    text-align: center;
    padding: 40px 20px;
}

.result-icon {
    margin-bottom: 20px;
}

.result-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.result-message {
    font-size: 14px;
    color: #718096;
    margin-bottom: 24px;
}

/* Loading */
.editor-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #F97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 14px;
    color: #718096;
}

/* Editor Responsive */
@media (max-width: 768px) {
    .editor-steps .step {
        font-size: 11px;
        padding: 8px 0;
    }

    .step-num {
        width: 18px;
        height: 18px;
        font-size: 10px;
        margin-right: 4px;
    }

    .editor-actions {
        flex-direction: column-reverse;
    }

    .editor-btn.primary,
    .editor-btn.submit {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .editor-btn.secondary {
        width: 100%;
        justify-content: center;
    }

    .star-rating {
        font-size: 32px;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .editor-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   投稿結果画面
   ============================================= */
.result-content {
    text-align: center;
    padding: 48px 24px;
}

.result-icon {
    margin-bottom: 16px;
}

.result-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2d3748;
}

.result-message {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    white-space: pre-line;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

/* =============================================
   ローチE��ングスピナー
   ============================================= */
.editor-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    gap: 16px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #4299e1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #718096;
    font-size: 14px;
}

/* =============================================
   Beta Badge
   ============================================= */
.beta-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #4169e1;
    background: transparent;
    border: 1.5px solid #4169e1;
    border-radius: 4px;
    letter-spacing: 0.05em;
    vertical-align: middle;
    margin-left: 8px;
    line-height: 1.6;
}

h1 .beta-badge {
    font-size: 12px;
    vertical-align: middle;
}

/* =============================================
   Form Fallback (API Error)
   ============================================= */
.result-form-fallback {
    margin-top: 24px;
    padding: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    text-align: center;
}

.fallback-text {
    font-size: 14px;
    color: #9a3412;
    margin-bottom: 14px;
}

.fallback-btn {
    background: linear-gradient(135deg, #F97316, #EA580C) !important;
}

/* =============================================
   Chat Completed State
   ============================================= */
.chat-input:disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
}

.chat-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =============================================
   Sub Star Ratings (接客力・技術対応・価格満足度)
   ============================================= */
.editor-sub-ratings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 16px 0 20px 0;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.sub-rating-item label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.sub-stars {
    font-size: 20px !important;
    gap: 4px !important;
}

@media (max-width: 480px) {
    .editor-sub-ratings {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sub-rating-item {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .sub-rating-item label {
        margin-bottom: 0;
        min-width: 70px;
    }
}

/* Preview Sub Ratings */
.preview-sub-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.preview-sub-rating {
    font-size: 12px;
    color: #718096;
}

.preview-sub-rating i {
    font-size: 12px;
    color: #f6ad55;
}

/* =============================================
   Smooth Scroll & Step Transitions
   ============================================= */
.review-editor {
    scroll-behavior: smooth;
}

.editor-panel {
    animation: editorFadeIn 0.3s ease;
}

@keyframes editorFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* Voice submit area border removal on mobile */
@media (max-width: 600px) {
    .voice-submit-area {
        border-top: none;
        padding-top: 14px;
        margin-top: 16px;
    }
}

/* =============================================
   Chat Window & Input Area
   ============================================= */
.chat-window {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 300px;
    max-height: 50vh;
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.chat-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: #f59e0b;
}

.chat-send-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-send-btn:hover {
    background: #d97706;
}

@media (max-width: 480px) {
    .chat-input-area {
        padding: 10px 10px;
        gap: 6px;
    }

    .chat-input {
        padding: 8px 12px;
        font-size: 14px;
    }

    .chat-send-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}