/* assets/style.css */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header { text-align: center; margin-bottom: 30px; }
.header h1 { color: #1e3c72; margin-bottom: 10px; }

/* ステップ表示 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 12px;
    color: #999;
}
.step-item.active { color: #1e3c72; font-weight: bold; border-bottom: 2px solid #1e3c72; }

/* フォームステップ制御 */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.5s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 5px; font-weight: bold; }
label.required::after { content: " *"; color: red; }

/* 入力欄 */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select, textarea, .added-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    appearance: none; 
    background-color: #fff;
}

/* ▼生年月日入力欄の調整▼ */
.birthdate-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.input-year { width: 100px !important; }
.input-month { width: 80px !important; }
.input-day { width: 80px !important; }
.unit { font-weight: bold; }

/* セレクトボックス */
select {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 8px 10px;
}

.btn-area { margin-top: 30px; display: flex; justify-content: space-between; }
button {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
.next-btn, .submit-btn { background: #1e3c72; color: white; margin-left: auto; }
.prev-btn { background: #ccc; color: #333; }
.add-btn { background: #27ae60; color: white; padding: 5px 15px; font-size: 14px; margin-top: 5px; }

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}
.script-box { background: #eee; padding: 15px; border-radius: 4px; margin-bottom: 20px; }

/* ローディング */
.spinner-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9);
    display: none; z-index: 9999;
    justify-content: center; align-items: center; flex-direction: column;
}
.spinner {
    border: 4px solid #f3f3f3; border-top: 4px solid #1e3c72;
    border-radius: 50%; width: 40px; height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ▼確認画面 (Step 7)▼ */
.summary-box {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    max-height: 600px;
    overflow-y: auto;
}
.summary-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}
.summary-row:last-child { border-bottom: none; }
.sum-label { font-weight: bold; width: 35%; color: #555; font-size: 14px; }
.sum-val { width: 65%; color: #000; white-space: pre-wrap; font-size: 14px; word-break: break-all; }

@media (max-width: 600px) {
    .summary-row { flex-direction: column; }
    .sum-label { width: 100%; margin-bottom: 5px; color: #1e3c72; }
    .sum-val { width: 100%; padding-left: 10px; }
}