* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.app-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    margin: 20px 0;
}

h1 {
    color: #333;
    font-weight: 700;
}

h1 i {
    color: #667eea;
}

/* ステップセクション */
.step-section {
    margin-bottom: 30px;
    transition: opacity 0.3s;
}

.step-section.active {
    opacity: 1;
}

.step-section.completed {
    opacity: 0.7;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #b3d7ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-number.completed {
    background-color: #c3e6cb;
    color: #198754;
}

.step-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex-grow: 1;
}

.step-header .btn {
    margin-left: auto;
    flex-shrink: 0;
}

.step-content {
    padding: 10px 0;
}

/* プレビュー */
.preview-container {
    display: none;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.preview-container.active {
    display: block;
}

.preview-container.collapsed .preview-content {
    display: none;
}

.preview-header {
    padding: 12px 15px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: #555;
}

.preview-header:hover {
    background-color: #e9ecef;
}

.preview-header i {
    margin-right: 8px;
    width: 12px;
    transition: transform 0.2s;
}

.preview-content {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.preview-content img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.preview-content audio,
.preview-content video {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0;
    height: 54px;
    border-radius: 4px;
}

.preview-info {
    font-size: 0.85rem;
    color: #666;
    margin-top: 12px;
    padding: 12px;
    background-color: #fff;
    border-radius: 4px;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
}

/* ボタン */
.btn {
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.2s;
    border: none;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: #6ea8fe;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #3d8bfd;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.btn-primary:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-success {
    background-color: #75b798;
    color: white;
}

.btn-success:hover {
    background-color: #52a372;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.2);
}

.btn-outline-secondary {
    border: 1px solid #6c757d;
    color: #6c757d;
    background: white;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.btn i {
    margin-right: 8px;
}

/* プログレス */
.progress-section {
    margin-top: 20px;
}

.progress {
    height: 30px;
    border-radius: 6px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background-color: #0d6efd;
    font-size: 0.9rem;
    line-height: 30px;
}

/* 結果動画 */
.preview-video {
    width: 100%;
    max-width: 100%;
    border-radius: 6px;
    background-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* アラート */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    border: none;
    margin-bottom: 15px;
}

.alert-success {
    background-color: #e7f5ec;
    color: #2d6a4f;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1976d2;
}

.alert i {
    margin-right: 8px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .app-container {
        padding: 20px;
        margin: 10px 0;
    }

    .app-header h1 {
        font-size: 1.5rem;
    }

    .step-header h2 {
        font-size: 1.2rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }

    body {
        padding: 10px 0;
    }

    .preview-content {
        padding: 12px;
    }

    .preview-info {
        font-size: 0.8rem;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .app-container {
        padding: 15px;
        border-radius: 0;
    }

    .app-header h1 {
        font-size: 1.25rem;
    }

    .step-header {
        gap: 10px;
    }

    .step-header h2 {
        font-size: 1.1rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .preview-content {
        padding: 10px;
    }

    .preview-info {
        font-size: 0.75rem;
        padding: 8px;
        margin-top: 10px;
    }

    .preview-header {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}
