:root {
  --primary: #2563eb;
  --bg: #f1f5f9;
  --text: #1e293b;
  --border: #cbd5e1;
  --success-bg: #dcfce7; /* 緑背景 */
  --success-text: #166534; /* 緑文字 */
}

body { font-family: 'Noto Sans JP', sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 20px 10px; }
.container { max-width: 480px; margin: 0 auto; }
.card { background: white; padding: 30px 24px; border-radius: 16px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.form-title { text-align: center; font-size: 1rem; color: #64748b; margin: 0 0 5px 0; }
.event-info { text-align: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px dashed #e2e8f0; }
#eventTitle { font-size: 1.5rem; margin: 5px 0; color: #0f172a; }

/* 締切バッジ：緑色に変更 */
.deadline-badge {
  display: inline-block;
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 0.85rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 5px;
}

.input-group { margin-bottom: 20px; }

label {
  display: flex; /* フレックスボックスで配置 */
  align-items: center; /* 垂直方向の中央揃え */
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* 必須バッジ：位置調整済み */
.required {
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px; /* 文字との間隔 */
  line-height: 1.2;
}



input[type="text"], input[type="tel"] { width: 100%; padding: 14px; font-size: 1rem; border: 2px solid var(--border); border-radius: 8px; box-sizing: border-box; }
input:focus { outline: none; border-color: var(--primary); }

/* ファイル選択ボタン等は前回と同じ */
.file-upload-wrapper { position: relative; overflow: hidden; display: inline-block; width: 100%; }
.file-upload-wrapper input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-upload-label { display: block; background: #f8fafc; border: 2px dashed var(--primary); border-radius: 8px; padding: 20px; text-align: center; color: var(--primary); font-weight: bold; }
button { width: 100%; padding: 16px; font-size: 1rem; font-weight: bold; background: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer; }
button:disabled { background: #94a3b8; cursor: not-allowed; }
.progress-bar { width: 100%; height: 10px; background: #e2e8f0; border-radius: 5px; overflow: hidden; margin-top: 15px; }
.progress-fill { width: 0%; height: 100%; background: var(--primary); transition: width 0.3s; }
.status-text { text-align: center; font-weight: bold; margin-top: 10px; }