/* === 基本設定 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Yu Gothic', 'Hiragino Sans', 'Meiryo', sans-serif;
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* === ヘッダー === */
h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
    color: #333;
}

.subtitle {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 32px;
}

/* バージョン表示 */
.version-label {
    font-size: 0.5em;
    color: #888;
}

/* === ドロップゾーン === */
.drop-zone {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.drop-zone:hover {
    border-color: #F09933;
    background: #fff9f0;
}

.drop-zone.drag-over {
    border-color: #F09933;
    background: #fff3e0;
}

.drop-zone-icon {
    display: inline-block;
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 12px;
    background: #F09933;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
}

.drop-zone-text {
    font-size: 16px;
    font-weight: bold;
    color: #555;
    margin-bottom: 4px;
}

.drop-zone-sub {
    font-size: 13px;
    color: #aaa;
}

/* === ファイル情報 === */
.file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 14px;
    color: #2e7d32;
}

/* === ファイルリスト（複数ファイル対応） === */
.file-list {
    margin-top: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #e8f5e9;
    font-size: 14px;
    color: #2e7d32;
}

.file-item:not(:last-child) {
    border-bottom: 1px solid #c8e6c9;
}

.file-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === 使い方の補足 === */
.instructions-note {
    margin-top: 8px;
    font-size: 13px;
    color: #999;
}

.btn-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-remove:hover {
    background: #ffcdd2;
    color: #c62828;
}

/* === 変換ボタン === */
.btn-convert {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #F09933;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-convert:hover:not(:disabled) {
    background: #e0881f;
}

.btn-convert:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* === プログレス === */
.progress {
    margin-top: 16px;
    text-align: center;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    background: #F09933;
    border-radius: 3px;
    animation: progress-animation 2s ease-in-out infinite;
}

@keyframes progress-animation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.progress-text {
    margin-top: 8px;
    font-size: 13px;
    color: #888;
}

/* === メッセージ === */
.error-msg {
    margin-top: 16px;
    padding: 12px 16px;
    background: #ffebee;
    color: #c62828;
    border-radius: 8px;
    font-size: 14px;
}

.success-msg {
    margin-top: 16px;
    padding: 12px 16px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

/* === エラー報告の同意確認UI === */
.error-report-prompt {
    margin-top: 8px;
    padding: 10px 16px;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    font-size: 13px;
    color: #e65100;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-report {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}

.btn-report-yes {
    background: #F09933;
    color: #fff;
}

.btn-report-yes:hover:not(:disabled) {
    background: #e0881f;
}

.btn-report-yes:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-report-no {
    background: #e0e0e0;
    color: #666;
}

.btn-report-no:hover {
    background: #bdbdbd;
}

.error-report-sent {
    color: #2e7d32;
    font-weight: bold;
}

/* === 使い方 === */
.instructions {
    margin-top: 40px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.instructions h3 {
    font-size: 15px;
    margin-bottom: 12px;
    color: #555;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* === フッター === */
.footer {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #aaa;
}

/* === レスポンシブ === */
@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
    }
    h1 {
        font-size: 20px;
    }
    .drop-zone {
        padding: 32px 16px;
    }
}
