ul, ol {
    margin-left: 25px;
}

.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 40px;
}

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-help {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* ファイルアップロードエリア */
.file-upload-area {
    position: relative;
    border: 3px dashed #d1d5db;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: #f9fafb;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-upload-area.drag-over {
    border-color: #667eea;
    background: #e0e7ff;
    transform: scale(1.02);
}

.file-upload__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-placeholder {
    pointer-events: none;
}

.file-upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #9ca3af;
}

.file-upload-text {
    font-size: 18px;
    font-weight: 500;
    color: #374151;
    margin: 0 0 8px 0;
}

.file-upload-help {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* アラート */
.alert {
    padding: 16px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto 24px auto;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

/* 結果コンテナ */
.result-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
}

/* スペック表示グリッド */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 32px auto 0 auto;
}

.specs-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e5e7eb;
}

.specs-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.specs-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* オリジナル画像コンテナ */
.original-image-container {
    max-width: 800px;
    margin: 32px auto 0 auto;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.preview-container {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.preview-image {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* アニメーションプレビュー */
.animation-preview-container {
    margin-top: 32px;
}

.direction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 16px auto 0 auto;
}

.direction-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border: 2px solid #e5e7eb;
}

.direction-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.direction-canvas {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    background: repeating-conic-gradient(#f0f0f0 0% 25%, #ffffff 0% 50%) 50% / 20px 20px;
    border-radius: 4px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .form-container {
        padding: 24px;
    }

    .file-upload-area {
        padding: 32px 16px;
    }

    .file-upload-icon {
        width: 48px;
        height: 48px;
    }

    .file-upload-text {
        font-size: 16px;
    }

    .direction-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }
}
