/* ============================================================
   応募フォーム（カード型UI）
   デザイン: Claude Design 応募フォーム.dc.html 準拠
   ============================================================ */

.entry-page {
  /* 流体的な余白スケール（clamp: 最小 / 画面幅で伸縮 / 最大） */
  --entry-page-pad: clamp(20px, 5vw, 56px);
  --entry-gutter: clamp(18px, 4vw, 44px);
  --entry-section-gap: clamp(28px, 5vw, 44px);
  --entry-field-gap: clamp(16px, 2.5vw, 22px);
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #e9edf2;
  display: flex;
  justify-content: center;
  padding: var(--entry-page-pad) clamp(16px, 4vw, 40px);
  min-height: 60vh;
}
.entry-page *,
.entry-page *::before,
.entry-page *::after { box-sizing: border-box; }

.entry-card {
  position: relative;
  width: min(100%, 720px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(20, 40, 80, .13);
}

/* ヘッダー */
.entry-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 2vw, 18px) var(--entry-gutter);
  border-bottom: 1px solid #eef1f5;
}
.entry-logo { display: flex; align-items: center; gap: 9px; }
.entry-logo__mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, #2f86e6, #1a56a8);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 11px; letter-spacing: .02em;
}
.entry-logo__text { font-size: 18px; font-weight: 900; color: #1a56a8; letter-spacing: .07em; }
.entry-card__head-sub { font-size: 11.5px; font-weight: 600; color: #9aa3b2; }

.entry-card__body { padding: 0 var(--entry-gutter) clamp(28px, 5vw, 44px); }

/* タイトル */
.entry-title { text-align: center; padding: 24px 0 4px; }
.entry-title h1 { margin: 0; font-size: 23px; font-weight: 900; color: #16213d; letter-spacing: .05em; }
.entry-title__bar { width: 46px; height: 3px; border-radius: 2px; background: #1a56a8; margin: 11px auto 0; display: block; }

/* 保存バー（セーブデータ風UI） */
.entry-save { background: #eef4fc; border: 1px solid #d8e6f8; border-radius: 12px; padding: 13px 14px; margin-top: 18px; }
.entry-save__lead { margin: 0 0 11px; font-size: 12px; color: #3a5a86; font-weight: 600; line-height: 1.65; }
.entry-save__btns { display: flex; gap: 8px; }
.entry-save__btn { height: 40px; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.entry-save__btn.is-primary { flex: 1; background: #1a56a8; color: #fff; border: none; }
.entry-save__btn.is-outline { background: #fff; color: #1a56a8; border: 1px solid #b9d2f0; }
.entry-save__btn.is-ghost { background: transparent; color: #8b94a3; border: 1px solid #e0e4ea; padding: 0 15px; font-weight: 600; }

/* セーブデータ「有り」状態 */
.entry-save__exists { position: relative; }

/* セーブデータ枠（1行） */
.entry-save__slot {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid #c9ddf5; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 9px;
}
.entry-save__slot-icon {
  flex: none; width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, #2f86e6, #1a56a8);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(26, 86, 168, .25);
}
/* 書類（応募内容の控え）を想起させる白い紙＋文書ラインのアイコン */
.entry-save__slot-icon::after {
  content: ''; width: 13px; height: 16px; border-radius: 2px;
  background:
    linear-gradient(#1a56a8, #1a56a8) center 5px / 7px 1.5px no-repeat,
    linear-gradient(#1a56a8, #1a56a8) center 8.5px / 7px 1.5px no-repeat,
    linear-gradient(#3a78c8, #3a78c8) center 12px / 5px 1.5px no-repeat,
    #fff;
}
.entry-save__slot-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.entry-save__slot-title { font-size: 12.5px; font-weight: 700; color: #16213d; letter-spacing: .02em; }
.entry-save__slot-date { font-size: 11px; font-weight: 600; color: #7a8699; letter-spacing: .03em; }
.entry-save__slot-load { flex: none; height: 34px; padding: 0 16px; }

/* 右上の「×」削除ボタン（控えめな円） */
.entry-save__close {
  position: absolute; top: -6px; right: -6px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: #8b94a3; border: 1px solid #d6dbe3;
  font-size: 15px; line-height: 1; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(20, 40, 80, .12); transition: all .14s;
}
.entry-save__close:hover { color: #d83a5e; border-color: #f0c2cd; background: #fff5f7; }
.entry-save__close:focus-visible { outline: 2px solid #1a56a8; outline-offset: 2px; }

/* セクション */
.entry-section { margin-top: var(--entry-section-gap); }
.entry-section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.entry-section__bar { width: 4px; height: 20px; border-radius: 2px; background: #1a56a8; display: block; }
.entry-section__head h2 { margin: 0; font-size: 17px; font-weight: 900; color: #16213d; letter-spacing: .02em; }

/* セクション完了チェック（必須が揃うと点灯） */
.entry-section__check {
  margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #d6dbe3; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: transparent; transition: all .2s;
}
.entry-section__check.is-done {
  border-color: #1f9d6b; background: #1f9d6b; color: #fff;
}
.entry-section__check.is-done::after { content: '\2713'; }

/* 入力進捗バー */
.entry-progress {
  position: sticky; top: 60px; z-index: 5;
  background: #ffffffdd; padding: 14px 10px 12px; margin-bottom: 4px;
  border-radius: 8px;
  backdrop-filter: blur(3px);
}
.entry-progress__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.entry-progress__label { font-size: 13px; font-weight: 700; color: #37425a; }
.entry-progress__percent { font-size: 18px; font-weight: 900; color: #1a56a8; letter-spacing: .02em; }
.entry-progress__track { height: 10px; border-radius: 999px; background: #e9edf2; overflow: hidden; }
.entry-progress__bar {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #2f86e6, #1a56a8);
  transition: width .35s ease;
}
.entry-progress__remain { margin: 8px 0 0; font-size: 12px; font-weight: 600; color: #8b94a3; line-height: 1.5; }
/* 100%到達時は達成色に */
.entry-progress.is-complete .entry-progress__percent { color: #1f9d6b; }
.entry-progress.is-complete .entry-progress__bar { background: linear-gradient(90deg, #2bb673, #1f9d6b); }
.entry-progress.is-complete .entry-progress__remain { color: #1f9d6b; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .entry-progress__bar, .entry-section__check { transition: none; }
}

/* フィールド */
.entry-field { margin-bottom: var(--entry-field-gap); }
.entry-label { display: block; font-size: 13px; font-weight: 700; color: #37425a; margin-bottom: 7px; }
.entry-note { margin: 0 0 11px; font-size: 11.5px; color: #8b94a3; line-height: 1.6; }

.entry-badge {
  display: inline-block; font-size: 10px; font-weight: 700; color: #fff;
  border-radius: 4px; padding: 2px 6px; margin-left: 6px; vertical-align: middle;
}
.entry-badge.is-req { background: #d83a5e; }
.entry-badge.is-any { background: #8b94a3; }

/* 入力欄 */
.entry-input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid #d6dbe3; border-radius: 10px;
  font-size: 15px; color: #1f2a44; background: #fff; font-family: inherit;
}
.entry-input:focus { outline: none; border-color: #1a56a8; box-shadow: 0 0 0 3px rgba(26, 86, 168, .15); }
.entry-input::placeholder { color: #aeb5c0; }
.entry-textarea { height: auto; min-height: 118px; padding: 13px 14px; font-size: 14px; line-height: 1.7; resize: vertical; }
.entry-select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%237a8699' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.entry-age { display: flex; align-items: center; gap: 10px; }
.entry-age .entry-input { width: 100px; text-align: center; }
.entry-age__unit { font-size: 14px; color: #37425a; font-weight: 600; }

/* グリッド */
.entry-grid { display: grid; gap: clamp(10px, 1.5vw, 14px); }
.entry-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 勤務地は拠点数が多いため画面幅に応じて列数を自動調整（職種・性別は2列を維持） */
.entry-area .entry-grid--2 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* 選択チップ（隠しinput + label） */
.entry-choice input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
/* 勤務地の拠点ラップ（職種選択で表示/非表示を切り替えるグリッドセル） */
.entry-store { display: block; }
.entry-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 48px; padding: 9px 10px; border-radius: 10px;
  font-size: 14px; font-weight: 700; text-align: center; line-height: 1.3;
  background: #fff; color: #37425a; border: 1px solid #d1d5db; cursor: pointer;
  transition: all .14s;
}
.entry-chip--job { min-height: 64px; border-radius: 12px; }
.entry-chip__name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.entry-chip__note { font-size: 11px; font-weight: 600; opacity: .82; margin-top: 4px; }

.entry-choice input:checked + .entry-chip {
  background: #1a56a8; color: #fff; border-color: #1a56a8;
  box-shadow: 0 3px 9px rgba(26, 86, 168, .28);
}

/* 勤務地エリア */
.entry-areas { display: flex; flex-direction: column; gap: 18px; }
.entry-area__head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.entry-area__name { font-size: 12.5px; font-weight: 700; color: #5a6478; }
.entry-area__line { flex: 1; height: 1px; background: #eceff3; display: block; }

.entry-warn {
  display: flex; gap: 9px; align-items: flex-start;
  background: #fff8ee; border: 1px dashed #e9c98a; border-radius: 10px;
  padding: 12px 13px; margin-bottom: 14px;
}
.entry-warn__icon {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: #e9c98a; color: #fff; font-weight: 900; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.entry-warn span:last-child { font-size: 12px; color: #9a7224; line-height: 1.6; font-weight: 600; }

/* チェックリスト（応募きっかけ） */
.entry-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 9px; }
.entry-check {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px;
  border-radius: 10px; cursor: pointer; transition: all .14s; text-align: left;
  background: #fff; border: 1px solid #e2e6ec; font-size: 14px; font-weight: 600; color: #37425a;
}
.entry-check__box {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid #ccd2db; transition: all .14s;
}
.entry-check__box::after { content: ''; color: #fff; font-size: 13px; font-weight: 900; }
.entry-choice input:checked + .entry-check { background: #f3f8ff; border-color: #1a56a8; color: #37425a; }
.entry-choice input:checked + .entry-check .entry-check__box { background: #1a56a8; border-color: #1a56a8; }
.entry-choice input:checked + .entry-check .entry-check__box::after { content: '\2713'; }
.entry-trigger-other { margin-top: 11px; }

/* プライバシーポリシー */
.entry-privacy { margin-top: 30px; border-top: 1px solid #eef1f5; padding-top: 24px; }
.entry-privacy__title { font-size: 13px; font-weight: 700; color: #37425a; margin-bottom: 9px; }
.entry-privacy__box {
  height: 172px; overflow-y: auto;
  border: 1px solid #d6dbe3; border-radius: 10px; padding: 15px 16px;
  font-size: 12px; line-height: 1.95; color: #5a6478; background: #fbfcfd;
}
.entry-privacy__box p { margin: 0 0 12px; }
.entry-privacy__box p:last-child { margin: 0; }
.entry-privacy__box .pp-lead { font-weight: 700; color: #37425a; }
.entry-privacy__status { margin-top: 11px; min-height: 18px; }
.entry-privacy__pending { font-size: 12.5px; color: #8b94a3; font-weight: 600; }
.entry-privacy__done { font-size: 12.5px; color: #1f9d6b; font-weight: 700; }
.entry-privacy__done::before { content: '\2713 '; }

/* エラー */
.entry-error {
  margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: #fdecef; border: 1px solid #f3c4cf; color: #c0334f;
  font-size: 13px; font-weight: 600; line-height: 1.7;
}
.entry-form label.error { display: block; margin-top: 6px; color: #d83a5e; font-size: 12px; font-weight: 600; }

/* 送信ボタン */
.entry-submit {
  width: 100%; margin-top: 24px; border: none; border-radius: 13px;
  font-size: 16px; font-weight: 900; letter-spacing: .04em; transition: all .15s;
  font-family: inherit;
  background: linear-gradient(135deg, #2f86e6, #1a56a8); color: #fff; cursor: pointer;
  box-shadow: 0 8px 20px rgba(26, 86, 168, .34);
}
.entry-submit:disabled { background: #cfd5de; color: #fff; cursor: not-allowed; box-shadow: none; }
