:root {
    --primary: #2563eb;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --border: #cbd5e1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.container {
    background: var(--surface);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

/* 設定エリア */
.settings-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.settings-group:last-child {
    border-bottom: none;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

label {
    font-weight: bold;
    font-size: 0.9rem;
}

input[type="text"],
input[type="number"],
select {
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* レンジスライダー用のスタイル追加 */
input[type="range"] {
    width: 100%;
    cursor: pointer;
    margin: 5px 0;
}

.radio-group {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.radio-group label {
    font-weight: normal;
    cursor: pointer;
}

.flex-row {
    display: flex;
    gap: 10px;
}

.flex-item {
    flex: 1;
}

/* ドラッグ＆ドロップエリア */
#drop-zone {
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 20px;
}

#drop-zone.dragover {
    background-color: #e0e7ff;
}

#drop-zone p {
    margin: 0;
    color: var(--primary);
    font-weight: bold;
}

#file-input {
    display: none;
}

/* ステータス・ボタン */
#status {
    margin-top: 15px;
    font-size: 0.9rem;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 6px;
    display: none;
}

.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    display: none; /* 初期は非表示 */
}

.btn:hover {
    opacity: 0.9;
}

.btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

/* プリセットボタン */
.preset-btns {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 4px 8px;
    font-size: 0.8rem;
    background: #e2e8f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.preset-btn:hover {
    background: #cbd5e1;
}