/* ── Entry System フロントエンドフォーム ── */
.es-form-wrap { max-width: 760px; margin: 0 auto; font-family: inherit; }

.es-section-heading {
  font-size: 15px;
  font-weight: 700;
  padding: 8px 14px;
  background: #1a1a1a;
  color: #fff;
  margin: 28px 0 0;
  letter-spacing: .08em;
}

.es-field {
  margin-top: 16px;
}

.es-field--half {
  display: inline-block;
  width: calc(50% - 8px);
  vertical-align: top;
  margin-right: 12px;
}
.es-field--half:nth-of-type(even) { margin-right: 0; }

.es-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
}

.es-required {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}

.es-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color .2s;
  background: #fff;
  color: #333;
  box-sizing: border-box;
}
.es-input:focus { outline: none; border-color: #2271b1; box-shadow: 0 0 0 2px rgba(34,113,177,.15); }

.has-error .es-input { border-color: #c0392b; }
.es-field-error { font-size: 12px; color: #c0392b; margin-top: 4px; display: block; }
.es-error-global { padding: 10px 14px; background: #fdf2f2; border: 1px solid #fcc; border-radius: 3px; color: #c0392b; margin-bottom: 16px; }

.es-choice-group { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 4px 0; }
.es-choice { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.es-choice input { margin: 0; }

.es-submit-wrap { margin-top: 28px; text-align: center; }
.es-submit {
  padding: 12px 40px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .08em;
  transition: background .2s;
}
.es-submit:hover { background: #333; }

.es-success {
  padding: 20px 24px;
  background: #eafaf1;
  border: 1px solid #a9dfbf;
  border-radius: 4px;
  color: #1e8449;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .es-field--half { width: 100%; display: block; margin-right: 0; }
}

/* ── 受付状態通知ブロック ── */
.es-notice {
  padding: 20px 24px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}
.es-notice--full {
  background: #fdf2f2;
  border: 2px solid #f1aeb5;
  color: #842029;
}
.es-notice--after {
  background: #f2f2f2;
  border: 2px solid #ccc;
  color: #555;
}
.es-notice--before {
  background: #fff8e6;
  border: 2px solid #ffc107;
  color: #6d4c00;
}

/* ── 日程選択（カード型・単一選択） ── */
.es-choice-group--schedule { flex-direction: column; gap: 10px; }
.es-choice--card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  width: 100%;
  box-sizing: border-box;
}
.es-choice--card:hover { border-color: #999; background: #fafafa; }
.es-choice--card input[type="radio"] { margin-right: 10px; }
.es-choice--card input[type="radio"]:checked + .es-choice-card-label { font-weight: 700; }
.es-choice-card-label { flex: 1; }
.es-choice-card-status {
  font-size: 12px;
  color: #1e8449;
  background: #eafaf1;
  padding: 2px 8px;
  border-radius: 10px;
}
.es-choice-card-status--full { color: #c0392b; background: #fdf2f2; }
.es-choice--full { opacity: .5; cursor: not-allowed; }
.es-choice--full:hover { border-color: #ddd; background: none; }

/* ── 第一〜第三希望（ranked） ── */
.es-schedule-ranked { display: flex; flex-direction: column; gap: 14px; }

/* ── ヘルプテキスト・文字数カウンター ── */
.es-help-text { font-size: 12px; color: #888; margin-top: 4px; }
.es-char-count {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}
.es-char-count--over { color: #c0392b; font-weight: 700; }
.es-field-error--block {
  display: block;
  padding: 10px 14px;
  background: #fdf2f2;
  border: 1px solid #fcc;
  border-radius: 3px;
  color: #c0392b;
  font-size: 13px;
  margin-bottom: 12px;
}

/* ── flatpickrの見た目調整 ── */
.flatpickr-input { background: #fff !important; }

/* ── イベントタイトル・イベント内容（表示専用） ── */
.es-event-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.es-event-description {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

/* ── 氏名（姓名別枠） ── */
.es-name-split { display: flex; gap: 12px; }
.es-name-split-item { flex: 1; display: flex; flex-direction: column; }
.es-name-split-label { font-size: 11px; color: #999; margin-top: 2px; }

/* ── 住所（郵便番号検索） ── */
.es-address-zip-wrap { display: flex; flex-direction: column; gap: 8px; }
.es-address-zip-row { display: flex; gap: 8px; }
.es-zip-input { max-width: 160px; }
.es-zip-search-btn {
  white-space: nowrap;
  padding: 0 16px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}
.es-zip-search-btn:hover { background: #eee; }
.es-zip-status { font-size: 12px; min-height: 16px; }
.es-zip-status--ok { color: #1e8449; }
.es-zip-status--error { color: #c0392b; }

/* ── 学歴・職歴ブロック ── */
.es-field--edu { width: 100%; }
.es-edu-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.es-edu-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px;
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}
.es-edu-row select,
.es-edu-row input { padding: 6px 8px; border: 1px solid #ccc; border-radius: 3px; font-size: 13px; }
.es-edu-category { min-width: 90px; }
.es-edu-year { width: 70px; }
.es-edu-month { width: 55px; }
.es-edu-unit { font-size: 12px; color: #888; }
.es-edu-content { min-width: 90px; }
.es-edu-name { flex: 1; min-width: 160px; }
.es-edu-remove-row {
  border: none;
  background: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  margin-left: auto;
}
.es-edu-add-row { margin-top: 4px; }

/* ── 顔写真アップロード ── */
.es-field--photo { width: 100%; }
.es-photo-upload-wrap { display: flex; align-items: center; gap: 16px; }
.es-photo-preview {
  width: 90px;
  height: 120px;
  border: 1px dashed #bbb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fafafa;
  flex-shrink: 0;
}
.es-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.es-photo-preview-placeholder { font-size: 11px; color: #999; }

/* ── フィールド説明文（ラベル下） ── */
.es-field-description {
  font-size: 12.5px;
  color: #777;
  line-height: 1.6;
  margin: 2px 0 8px;
}
