/* ============================================================
   かんたんキャリア相談（レバテック型の入口）
   - 入口の設問カード .ej-qcard（PC FV / SP FV / セクション内 / ログイン画面）
   - PC の追従バー .ej-qbar
   - アンケート本体 /signup（.ej-survey-page）と送信後の画面
   - エージェント紹介 /agents（.ej-agents）・TOP のチーム紹介（.ej-team）
   - 登録直後の案内（.ej-welcome）・メール認証画面の写真（.ej-verify-team）
   色は tokens.css の --ej-q-* とブランドパレットだけを使う。
   ============================================================ */

/* ============================================================
   入口の設問カード「Q. あなたに近いのは？」
   ============================================================ */
.ej-qcard {
  /* カード自身の幅で選択肢の並べ方を切り替える（下の @container） */
  container-type: inline-size;
  position: relative;
  padding: 24px 24px 18px;
  border-radius: var(--ej-q-radius);
  background: var(--enjin-paper);
  box-shadow: var(--ej-q-shadow);
  color: var(--enjin-black);
  font-family: var(--f-jp);
  text-align: center;
}
.ej-qcard__kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: var(--ls-jp);
  color: var(--ej-q-ink);
}
.ej-qcard__kicker::before { content: "＼"; margin-right: 0.2em; }
.ej-qcard__kicker::after { content: "／"; margin-left: 0.2em; }
.ej-qcard__kicker span + span::before { content: "・"; }
.ej-qcard__kicker em {
  font-style: normal;
  font-size: 1.12em;
  font-weight: 900;
  background: linear-gradient(transparent 60%, var(--enjin-yel-lemon) 60%);
}
.ej-qcard__title {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.02em;
  word-break: auto-phrase;
}
.ej-qcard__q {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}
.ej-qcard__qmark {
  font-family: var(--f-en);
  font-size: 1.2em;
  font-weight: 800;
  color: var(--ej-q-accent);
}
.ej-qcard__options {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* 答えのボタン。押し込める厚みを持たせて「押せる」ことを伝える */
.ej-qbtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 72px;
  padding: 10px 40px 10px 14px;
  border-radius: 12px;
  background: var(--ej-q-accent);
  color: var(--enjin-paper);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 0 var(--ej-q-accent-deep);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.ej-qbtn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ej-q-accent-deep), 0 16px 26px -14px rgba(0, 60, 66, 0.6);
}
.ej-qbtn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--ej-q-accent-deep);
}
.ej-qbtn:focus-visible { outline: 3px solid var(--enjin-black); outline-offset: 3px; }
.ej-qbtn__label {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ej-qbtn__label > span { display: block; white-space: nowrap; }
.ej-qbtn__arrow {
  position: absolute;
  top: 50%;
  right: 11px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--enjin-paper);
  color: var(--ej-q-accent);
  transform: translateY(-50%);
  transition: transform 0.2s var(--ease);
}
.ej-qbtn:hover .ej-qbtn__arrow { transform: translate(3px, -50%); }
.ej-qbtn__arrow svg { width: 14px; height: 14px; }
.ej-qbtn .ej-gnav__badge { margin-left: 8px; }

.ej-qcard__skip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 12px;
  padding: 6px 4px;
  color: var(--enjin-black);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.ej-qcard__skip:hover { color: var(--ej-q-ink); }
.ej-qcard__skip svg { width: 14px; height: 14px; }

/* ---------- PC ファーストビュー（ロゴ下の白い余白に、人物と重ならない幅で置く） ---------- */
.ej-qcard--fv {
  width: 100%;
  padding: calc(var(--ej-k) * 14) calc(var(--ej-k) * 16) calc(var(--ej-k) * 8);
  border-radius: calc(var(--ej-k) * 16);
  border: 1px solid rgba(11, 171, 181, 0.18);
  box-shadow: 0 16px 36px -24px rgba(0, 50, 56, 0.55);
  text-align: center;
}
.ej-qcard--fv .ej-qcard__kicker { font-size: max(12px, calc(var(--ej-k) * 13)); }
.ej-qcard--fv .ej-qcard__q {
  margin-top: calc(var(--ej-k) * 4);
  font-size: max(15px, calc(var(--ej-k) * 18));
}
.ej-qcard--fv .ej-qcard__options {
  margin-top: calc(var(--ej-k) * 10);
  gap: calc(var(--ej-k) * 10);
}
.ej-qcard--fv .ej-qbtn {
  min-height: calc(var(--ej-k) * 58);
  border-radius: calc(var(--ej-k) * 12);
  font-size: max(14px, calc(var(--ej-k) * 16));
  background: var(--ejk-ribbon);
  box-shadow: 0 4px 0 #087f88;
}
.ej-qcard--fv .ej-qbtn:hover { box-shadow: 0 6px 0 #087f88, 0 14px 22px -14px rgba(0, 60, 66, 0.55); }
.ej-qcard--fv .ej-qbtn:active { box-shadow: 0 0 0 #087f88; }
.ej-qcard--fv .ej-qcard__skip {
  margin-top: calc(var(--ej-k) * 4);
  font-size: max(12px, calc(var(--ej-k) * 13));
}

/* ---------- SP ファーストビュー直下（人物写真に少し重ねる・シアン地） ---------- */
/* 下部の固定バーに隠れず、最初の画面で答えのボタンまで見える高さに置く（390×844 基準） */
.ej-qcard--sp {
  z-index: 2;
  margin: calc(var(--ej-us) * 8) calc(var(--ej-us) * 14) calc(var(--ej-us) * 20);
  padding: calc(var(--ej-us) * 16) calc(var(--ej-us) * 14) calc(var(--ej-us) * 8);
  border-radius: 18px;
  background: linear-gradient(160deg, #12b4bf 0%, var(--ej-q-accent) 52%, var(--enjin-cyan-deep) 100%);
  color: var(--enjin-paper);
  box-shadow: 0 24px 44px -22px rgba(0, 60, 66, 0.75);
}
.ej-qcard--sp .ej-qcard__kicker { color: var(--enjin-paper); }
.ej-qcard--sp .ej-qcard__kicker em {
  padding: 0 0.35em;
  border-radius: 4px;
  background: var(--enjin-yel-lemon);
  color: var(--enjin-black);
}
.ej-qcard--sp .ej-qcard__title {
  margin-top: 4px;
  font-size: calc(var(--ej-us) * 20);
  line-height: 1.45;
}
.ej-qcard--sp .ej-qcard__q { margin-top: 8px; font-size: calc(var(--ej-us) * 16); }
.ej-qcard--sp .ej-qcard__qmark { color: var(--enjin-yel-lemon); }
/* SP FV は横並び2つ（2行のラベル・矢印なし）で高さを抑える */
.ej-qcard--sp .ej-qcard__options { gap: 10px; margin-top: 12px; }
.ej-qcard--sp .ej-qbtn {
  min-height: 68px;
  padding: 8px 6px;
  background: var(--enjin-paper);
  color: var(--enjin-black);
  font-size: calc(var(--ej-us) * 16.5);
  text-shadow: none;
  box-shadow: 0 4px 0 var(--enjin-cyan-navy);
}
.ej-qcard--sp .ej-qbtn__arrow { display: none; }
.ej-qcard--sp .ej-qcard__skip { margin-top: 8px; }
.ej-qcard--sp .ej-qbtn:hover { box-shadow: 0 6px 0 var(--enjin-cyan-navy), 0 16px 26px -14px rgba(0, 30, 34, 0.6); }
.ej-qcard--sp .ej-qbtn:active { box-shadow: 0 0 0 var(--enjin-cyan-navy); }
.ej-qcard--sp .ej-qbtn:focus-visible { outline-color: var(--enjin-paper); }
.ej-qcard--sp .ej-qcard__skip { color: var(--enjin-paper); }

/* ---------- セクション内（TOP 最下部・エンジン!!とは・エージェント紹介） ---------- */
.ej-qcard--card {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 40px) clamp(18px, 3.4vw, 48px) clamp(18px, 2.2vw, 28px);
}
.ej-qcard--card .ej-qcard__title { font-size: clamp(20px, 2.1vw, 28px); }
.ej-qcard--card .ej-qcard__q { margin-top: 16px; }
.ej-qcard--card .ej-qcard__options { margin-top: 18px; gap: 14px; }
.ej-qcard--card .ej-qbtn { min-height: 76px; font-size: 19px; }
.ej-closing__entry { margin-top: var(--sp-6); }

/* ---------- ログイン画面（はじめての方向け・控えめに） ---------- */
.ej-qcard--compact {
  margin-top: 40px;
  padding: 22px 20px 14px;
  border: 1px solid var(--ej-q-line);
  box-shadow: none;
}
.ej-qcard--compact .ej-qcard__title { font-size: 16px; }
.ej-qcard--compact .ej-qcard__q { font-size: 16px; }
.ej-qcard--compact .ej-qbtn { min-height: 64px; font-size: 16px; }

/* 狭いカードでは縦に積み、答えを1行で読ませる（SP FV は横並びのまま）。
   各カードの指定より強くするため .ej-qcard:not() で詳細度を上げている */
@container (max-width: 379px) {
  .ej-qcard:not(.ej-qcard--sp) .ej-qcard__title { font-size: clamp(16px, 5.2cqi, 22px); }
  .ej-qcard:not(.ej-qcard--sp) .ej-qcard__options { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ej-qcard:not(.ej-qcard--sp) .ej-qbtn {
    min-height: 58px;
    padding-inline: 40px;
    font-size: clamp(14px, 4.5cqi, 18px);
  }
  .ej-qcard:not(.ej-qcard--sp) .ej-qbtn__label { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   追従バー（PC・スマホ共通。入口カード・フッターが見えている間は隠す — enjin-funnel.js）
   ============================================================ */
.ej-qbar {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 38; /* ヘッダー(40)とドロワー(100)より下 */
  background: rgba(0, 0, 0, 0.94);
  color: var(--enjin-paper);
  font-family: var(--f-jp);
  box-shadow: 0 -14px 34px -18px rgba(0, 0, 0, 0.5);
  transform: translate3d(0, 105%, 0);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.ej-qbar.is-shown {
  transform: none;
  visibility: visible;
  transition: transform 0.45s var(--ease), visibility 0s;
}
.ej-qbar__in {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 12px 20px 12px var(--gutter-pc);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.ej-qbar__lead {
  display: none;
  margin: 0 auto 0 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}
@media (min-width: 1360px) {
  .ej-qbar__lead { display: flex; flex-direction: column; gap: 2px; }
}
.ej-qbar__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--enjin-cyan-mist);
}
.ej-qbar__q {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin: 0 4px 0 0;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
.ej-qbar .ej-qcard__qmark { color: var(--enjin-cyan-mist); }
.ej-qbtn--bar {
  flex: none;
  height: auto;
  min-height: 48px;
  padding: 6px 40px 6px 18px;
  font-size: 15px;
  box-shadow: 0 3px 0 var(--ej-q-accent-deep);
}
.ej-qbtn--bar .ej-qbtn__label { white-space: nowrap; }
@media (min-width: 1024px) {
  .ej-qbtn--bar .ej-qbtn__label { flex-direction: row; }
  .ej-qbtn--bar .ej-qbtn__label > span { display: inline; }
}
.ej-qbtn--bar .ej-qbtn__arrow { right: 10px; width: 20px; height: 20px; }
.ej-qbtn--bar .ej-qbtn__arrow svg { width: 12px; height: 12px; }
.ej-qbar__skip {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  white-space: nowrap;
}
.ej-qbar__skip:hover { color: var(--enjin-paper); }
.ej-qbar__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.ej-qbar__close:hover { background: rgba(255, 255, 255, 0.12); color: var(--enjin-paper); }
.ej-qbar__close:focus-visible { outline: 2px solid var(--enjin-paper); outline-offset: 2px; }
.ej-qbar__close svg { width: 18px; height: 18px; }
@media (max-width: 1023.98px) {
  .ej-qbar__in {
    position: relative;
    max-width: none;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }
  .ej-qbar__lead {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
    padding-inline: 36px;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
  }
  .ej-qbar__kicker {
    display: block;
    margin-bottom: 2px;
    letter-spacing: 0.06em;
  }
  .ej-qbar__q { display: none; }
  .ej-qbar__close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 36px;
    height: 36px;
  }
  .ej-qbtn--bar {
    grid-row: 2;
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    justify-content: center;
    font-size: 13px;
  }
  .ej-qbtn--bar .ej-qbtn__label {
    white-space: normal;
    flex-direction: column;
    text-align: center;
    line-height: 1.25;
    gap: 1px;
  }
  .ej-qbtn--bar .ej-qbtn__arrow { display: none; }
}

/* ============================================================
   アンケート本体（/signup）
   ============================================================ */
.ej-survey-page {
  flex: 1;
  color: var(--enjin-black);
  font-family: var(--f-jp);
  /* 下端は白に戻してフッター上の余白（mt-24）とつなぐ */
  background: linear-gradient(180deg, #e6f6f7 0, #f3fafa 360px, var(--enjin-paper) 860px);
}
.ej-survey-wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding: 20px 16px 8px;
  display: grid;
  gap: 14px;
}
@media (min-width: 1024px) {
  .ej-survey-wrap {
    padding: 44px var(--gutter-pc) 8px;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas:
      "intro  intro"
      "survey trust"
      "login  .";
    column-gap: 40px;
    row-gap: 24px;
    align-items: start;
  }
  .ej-survey-intro { grid-area: intro; }
  .ej-survey { grid-area: survey; }
  .ej-survey-trust { grid-area: trust; }
  .ej-survey-login { grid-area: login; }
}

.ej-survey-intro { text-align: center; }
.ej-survey-intro__eyebrow {
  margin: 0;
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-en-caps);
  text-transform: uppercase;
  color: var(--ej-q-ink);
}
.ej-survey-intro__path {
  display: inline-block;
  margin: 10px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ejk-tint, #daf6f8);
  color: var(--ej-q-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.ej-survey-intro__title {
  margin: 8px 0 0;
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.ej-survey-intro__lead {
  margin: 6px 0 0;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 500;
  color: #3b4447;
}

/* ---------- カード ---------- */
.ej-survey {
  position: relative;
  overflow: clip; /* hidden だと下の追従（sticky）が効かない */
  border-radius: 20px;
  background: var(--enjin-paper);
  box-shadow: 0 30px 70px -40px rgba(0, 40, 46, 0.5), 0 1px 0 rgba(0, 0, 0, 0.04);
}
.ej-survey__form { margin: 0; }
.ej-survey__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 16px;
  padding: 16px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid #edf0f1;
}
.ej-survey__badge {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}
.ej-survey__badge em {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--ej-q-ink);
  color: var(--enjin-paper);
  font-size: 12px;
  font-style: normal;
}
.ej-survey__remain {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--ej-q-ink);
  white-space: nowrap;
}
/* 進み具合（番号の丸を線でつなぐ） */
.ej-survey__dots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ej-survey__dot { flex: 1 1 0; display: flex; align-items: center; }
.ej-survey__dot:first-child { flex: 0 0 auto; }
.ej-survey__dot + .ej-survey__dot::before {
  content: "";
  flex: 1;
  height: 3px;
  margin-inline: 4px;
  border-radius: 3px;
  background: #e2e7e8;
  transition: background-color 0.3s ease;
}
.ej-survey__dot.is-done::before,
.ej-survey__dot.is-current::before { background: var(--ej-q-accent); }
.ej-survey__dot-c {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0f3f4;
  color: #7f898c;
  font-family: var(--f-en);
  font-size: 13px;
  font-weight: 800;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.ej-survey__dot-c b { font-weight: inherit; }
.ej-survey__dot-c svg { display: none; width: 16px; height: 16px; }
.ej-survey__dot.is-current .ej-survey__dot-c {
  background: var(--ej-q-accent);
  color: var(--enjin-paper);
  box-shadow: 0 0 0 5px rgba(4, 162, 174, 0.18);
}
.ej-survey__dot.is-done .ej-survey__dot-c { background: var(--ej-q-tint); color: var(--ej-q-accent); }
.ej-survey__dot.is-done .ej-survey__dot-c b { display: none; }
.ej-survey__dot.is-done .ej-survey__dot-c svg { display: block; }
@media (max-width: 599.98px) {
  .ej-survey__dot-c { width: 26px; height: 26px; font-size: 12px; }
  .ej-survey__dot + .ej-survey__dot::before { margin-inline: 3px; }
}

.ej-survey__body { padding: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 32px) 4px; }
@media (min-width: 1024px) {
  /* 設問ごとにカードの高さが跳ねないよう下限を持たせる */
  .ej-survey.is-stepper .ej-survey__body { min-height: 380px; }
}
.ej-survey__alert {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1.5px solid var(--enjin-pink-deep);
  border-radius: 12px;
  background: #fff5f8;
  font-size: 14px;
  line-height: 1.7;
}
.ej-survey__alert p { margin: 0; }
.ej-survey__alert-title { font-weight: 800; color: var(--enjin-pink-deep); }
.ej-survey__alert .ej-survey__alert-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
.ej-survey__alert-links a { color: var(--ej-q-ink); font-weight: 700; text-decoration: underline; }

/* 入口カードで答えた1問目を受け付けた合図 */
.ej-survey__carry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--ej-q-tint);
  color: var(--ej-q-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.ej-survey__carry svg { flex: none; width: 16px; height: 16px; color: var(--ej-q-accent); }

/* ---------- 設問 ---------- */
.ej-step { min-width: 0; margin: 0; padding: 0; border: 0; }
/* 入口の答えで、2問目の見出しとお仕事を切り替える */
.ej-jobs-q--new,
.ej-jobs-q--exp { display: none; }
#ej-step-stage:has(input[value="new"]:checked) ~ #ej-step-jobs .ej-jobs-q--all,
#ej-step-stage:has(input[value="new"]:checked) ~ #ej-step-jobs .ej-jobs-q--exp { display: none; }
#ej-step-stage:has(input[value="new"]:checked) ~ #ej-step-jobs .ej-jobs-q--new { display: inline; }
#ej-step-stage:has(input[value="exp"]:checked) ~ #ej-step-jobs .ej-jobs-q--all,
#ej-step-stage:has(input[value="exp"]:checked) ~ #ej-step-jobs .ej-jobs-q--new { display: none; }
#ej-step-stage:has(input[value="exp"]:checked) ~ #ej-step-jobs .ej-jobs-q--exp { display: inline; }
#ej-step-stage:has(input[value="new"]:checked) ~ #ej-step-jobs .ej-choice[data-ej-paths~="exp"]:not([data-ej-paths~="new"]),
#ej-step-stage:has(input[value="exp"]:checked) ~ #ej-step-jobs .ej-choice[data-ej-paths~="new"]:not([data-ej-paths~="exp"]) { display: none; }

.ej-step__q {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.ej-step__q:focus { outline: none; } /* 設問を切り替えたときに読み上げのため移すフォーカス */
.ej-step__no {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--enjin-black);
  color: var(--enjin-paper);
  font-family: var(--f-en);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.ej-step__tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--ej-q-tint);
  color: var(--ej-q-ink);
  font-size: 12px;
  font-weight: 700;
}
.ej-step__lead { margin: -8px 0 20px; font-size: 14px; line-height: 1.7; color: var(--ej-q-sub); }
.ej-step__error { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--enjin-pink-deep); }

/* ---------- 選択肢 ---------- */
.ej-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ej-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ej-choice {
  position: relative;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ej-choice input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.ej-choice__box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-height: 66px;
  padding: 14px 16px 14px 18px;
  border: 2px solid #dde3e4;
  border-radius: 14px;
  background: var(--enjin-paper);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease);
}
.ej-choice:hover .ej-choice__box {
  border-color: #8fd3d8;
  box-shadow: 0 10px 20px -14px rgba(0, 60, 66, 0.45);
  transform: translateY(-1px);
}
.ej-choice input:focus-visible + .ej-choice__box { outline: 3px solid rgba(4, 162, 174, 0.5); outline-offset: 2px; }
.ej-choice input:checked + .ej-choice__box {
  border-color: var(--ej-q-accent);
  background: var(--ej-q-tint);
  box-shadow: inset 0 0 0 1px var(--ej-q-accent);
}
.ej-choice__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* 折り返すときは文節の切れ目で（対応ブラウザのみ。他は通常の折り返し） */
.ej-choice__label { font-size: 16px; font-weight: 800; line-height: 1.45; text-wrap: balance; word-break: auto-phrase; }
.ej-choice__sub { font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--ej-q-sub); }
.ej-choice__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid #cfd7d9;
  border-radius: 50%;
  background: var(--enjin-paper);
  color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.ej-choice__mark svg { width: 15px; height: 15px; }
.ej-choice input[type="checkbox"] + .ej-choice__box .ej-choice__mark { border-radius: 7px; }
.ej-choice input:checked + .ej-choice__box .ej-choice__mark {
  border-color: var(--ej-q-accent);
  background: var(--ej-q-accent);
  color: var(--enjin-paper);
  transform: scale(1.06);
}
.ej-choice.is-picked .ej-choice__box { animation: ej-pick 0.32s var(--ease); }
@keyframes ej-pick {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}
/* SP の2列は文字を中央に置き、チェックは右上へ */
@media (max-width: 599.98px) {
  .ej-choices--2 .ej-choice__box {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 76px;
    padding: 14px 10px;
    text-align: center;
  }
  .ej-choices--2 .ej-choice__text { flex: 0 0 auto; align-items: center; }
  .ej-choices--2 .ej-choice__label { font-size: 15px; }
  .ej-choices--2 .ej-choice__mark { position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; border-width: 1.5px; }
  .ej-choices--2 .ej-choice__mark svg { width: 12px; height: 12px; }
}

/* 興味のあるお仕事（アイコン付きタイル・複数選択） */
.ej-choices--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 1024px) {
  .ej-choices--tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}
.ej-choice--tile .ej-choice__box {
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  min-height: 112px;
  padding: 16px 10px 14px;
  text-align: center;
}
.ej-choice__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--ej-q-tint);
  color: var(--ej-q-accent);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ej-choice__icon svg { width: 22px; height: 22px; }
.ej-choice--tile input:checked + .ej-choice__box .ej-choice__icon { background: var(--ej-q-accent); color: var(--enjin-paper); }
.ej-choice--tile .ej-choice__label { font-size: 15px; line-height: 1.4; }
.ej-choice--tile .ej-choice__sub { font-size: 11px; }
.ej-choice--tile .ej-choice__mark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-width: 1.5px;
}
.ej-choice--tile .ej-choice__mark svg { width: 13px; height: 13px; }
@media (max-width: 599.98px) {
  .ej-choice--tile .ej-choice__box { min-height: 100px; padding: 12px 8px; }
  .ej-choice__icon { width: 34px; height: 34px; margin-bottom: 4px; }
  .ej-choice__icon svg { width: 19px; height: 19px; }
}

/* ---------- 入力欄 ---------- */
.ej-field { margin: 0 0 18px; }
.ej-field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
}
.ej-req {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--enjin-pink-deep);
  color: var(--enjin-paper);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ej-input {
  display: block;
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid #cbd3d5;
  border-radius: 12px;
  background-color: var(--enjin-paper);
  color: var(--enjin-black);
  font-size: 16px; /* 16px 未満だと iOS が入力時に拡大する */
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ej-input::placeholder { color: #98a2a5; }
.ej-input:hover { border-color: #9fb1b5; }
.ej-input:focus {
  outline: none;
  border-color: var(--ej-q-accent);
  box-shadow: 0 0 0 4px rgba(4, 162, 174, 0.2);
}
.ej-input[aria-invalid="true"] { border-color: var(--enjin-pink-deep); background-color: #fff6f9; }
select.ej-input {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F676B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
select.ej-input:invalid { color: #7f898c; } /* 未選択（「年」「選択してください」） */
select.ej-input option { color: var(--enjin-black); }

.ej-birth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ej-birth > :first-child { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .ej-birth { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .ej-birth > :first-child { grid-column: auto; }
}

.ej-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 379.98px) {
  .ej-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ej-pill { position: relative; display: block; cursor: pointer; }
.ej-pill input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ej-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 8px;
  border: 1.5px solid #cbd3d5;
  border-radius: var(--radius-pill);
  background: var(--enjin-paper);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.ej-pill:hover span { border-color: #8fd3d8; }
.ej-pill input:checked + span {
  border-color: var(--ej-q-accent);
  background: var(--ej-q-tint);
  color: var(--ej-q-ink);
  box-shadow: inset 0 0 0 1px var(--ej-q-accent);
}
.ej-pill input:focus-visible + span { outline: 3px solid rgba(4, 162, 174, 0.5); outline-offset: 2px; }

.ej-pass { position: relative; }
.ej-pass .ej-input { padding-right: 54px; }
.ej-pass__toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ej-q-sub);
  cursor: pointer;
  transform: translateY(-50%);
}
.ej-pass__toggle:hover { background: #f1f4f5; color: var(--enjin-black); }
.ej-pass__toggle svg { width: 20px; height: 20px; }
.ej-pass__off { display: none; }
.ej-pass__toggle[aria-pressed="true"] .ej-pass__on { display: none; }
.ej-pass__toggle[aria-pressed="true"] .ej-pass__off { display: block; }

.ej-field__hint { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--ej-q-sub); }
.ej-field__hint--warn { font-weight: 700; color: var(--enjin-pink-deep); }
.ej-field__error { margin: 6px 0 0; font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--enjin-pink-deep); }

.ej-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  cursor: pointer;
}
.ej-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ej-q-accent);
  cursor: pointer;
}
.ej-check a { color: var(--ej-q-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.ej-check--terms { margin: 0; padding: 14px 16px; border-radius: 12px; background: #f4f7f8; }
.ej-secure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ej-q-sub);
}
.ej-secure svg { flex: none; width: 18px; height: 18px; color: var(--ej-q-accent); }

/* ---------- 戻る / 次へ / 送信 ---------- */
/* 設問が画面より長いとき（職種のタイル・連絡先）も、次へ／送信を画面下に残す */
.ej-survey__nav {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(16px, 3vw, 32px) max(clamp(16px, 2.4vw, 28px), env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ej-survey__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 14px 0 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ej-q-sub);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.ej-survey__back:hover { background: #f1f4f5; color: var(--enjin-black); }
.ej-survey__back svg { width: 18px; height: 18px; }
.ej-survey__tip { flex: 1; margin: 0; font-size: 13px; font-weight: 600; text-align: center; color: var(--ej-q-sub); }
.ej-survey__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  height: 54px;
  margin-left: auto;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--enjin-black);
  color: var(--enjin-paper);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s var(--ease);
}
.ej-survey__next:hover { background: #262626; transform: translateY(-1px); }
.ej-survey__next svg { width: 18px; height: 18px; }
/* 最後のボタン = 申し込み。いちばん目立たせる */
.ej-survey__submit {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #0cb2bd, var(--ej-q-accent));
  color: var(--enjin-paper);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  box-shadow: 0 5px 0 var(--ej-q-accent-deep), 0 18px 30px -16px rgba(0, 60, 66, 0.6);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.2s ease;
}
.ej-survey__submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.ej-survey__submit:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ej-q-accent-deep); }
.ej-survey__submit svg { width: 22px; height: 22px; }
.ej-survey__submit.is-sending { opacity: 0.7; pointer-events: none; cursor: progress; }
.ej-survey__next:focus-visible,
.ej-survey__back:focus-visible,
.ej-survey__submit:focus-visible { outline: 3px solid var(--enjin-black); outline-offset: 3px; }
@media (max-width: 599.98px) {
  .ej-survey__nav { justify-content: center; }
  .ej-survey__next { min-width: 140px; }
  .ej-survey__submit { order: -1; flex-basis: 100%; }
}

/* JS が動かない環境：全設問を縦に並べた1枚のフォームとして送れる */
.ej-survey:not(.is-stepper) .ej-survey__dots,
.ej-survey:not(.is-stepper) .ej-survey__remain,
.ej-survey:not(.is-stepper) .ej-survey__back,
.ej-survey:not(.is-stepper) .ej-survey__next,
.ej-survey:not(.is-stepper) .ej-survey__tip { display: none; }
.ej-survey:not(.is-stepper) .ej-step + .ej-step { margin-top: 32px; padding-top: 28px; border-top: 1px solid #edf0f1; }
.ej-survey:not(.is-stepper) .ej-survey__nav { position: static; }

/* 設問の切り替え：進むときは右から、戻るときは左から */
@keyframes ej-step-next {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ej-step-back {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: none; }
}
.ej-survey.is-stepper[data-ej-dir="next"] .ej-step.is-active { animation: ej-step-next 0.38s var(--ease) both; }
.ej-survey.is-stepper[data-ej-dir="back"] .ej-step.is-active { animation: ej-step-back 0.38s var(--ease) both; }

/* hidden 属性で出し分ける要素（display を持つクラスより優先させる） */
.ej-survey__carry[hidden],
.ej-survey__back[hidden],
.ej-survey__next[hidden],
.ej-survey__submit[hidden] { display: none; }

/* ---------- PC: 右の「相談するのは、このメンバーです。」 ---------- */
.ej-survey-trust { display: none; }
@media (min-width: 1024px) {
  .ej-survey-trust {
    display: block;
    position: sticky;
    top: calc(var(--ej-u) * (var(--ejn-util-h) + var(--ejn-header-h)) + 24px);
    overflow: hidden;
    border-radius: 20px;
    background: var(--enjin-paper);
    box-shadow: 0 30px 70px -44px rgba(0, 40, 46, 0.45), 0 1px 0 rgba(0, 0, 0, 0.04);
  }
}
.ej-survey-trust__photo { margin: 0; aspect-ratio: 1024 / 682; overflow: hidden; background: #e9eded; }
.ej-survey-trust__photo picture,
.ej-survey-trust__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ej-survey-trust__body { padding: 20px 22px 24px; }
.ej-survey-trust__title { margin: 0; font-size: 19px; font-weight: 900; line-height: 1.5; }
.ej-survey-trust__text { margin: 10px 0 0; font-size: 13px; line-height: 1.85; color: #3b4447; }
.ej-survey-trust__list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #edf0f1;
}
.ej-survey-trust__list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 700; line-height: 1.6; }
.ej-survey-trust__list svg,
.ej-team__points svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--ej-q-accent);
  color: var(--enjin-paper);
}
.ej-survey-trust__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: var(--ej-q-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.ej-survey-trust__link svg { width: 14px; height: 14px; }

.ej-survey-login { margin: 6px 0 0; font-size: 13px; text-align: center; color: var(--ej-q-sub); }
.ej-survey-login a { color: var(--enjin-black); font-weight: 800; text-decoration: underline; text-underline-offset: 0.3em; }

/* ---------- 送信後（確認メールの案内） ---------- */
.ej-survey-done {
  max-width: 1120px;
  margin-inline: auto;
  padding: 24px 16px 8px;
  display: grid;
  gap: 20px;
}
@media (min-width: 1024px) {
  .ej-survey-done {
    padding: 48px var(--gutter-pc) 8px;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    align-items: start;
  }
}
.ej-survey-done__card {
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px);
  border-radius: 20px;
  background: var(--enjin-paper);
  box-shadow: 0 30px 70px -40px rgba(0, 40, 46, 0.5), 0 1px 0 rgba(0, 0, 0, 0.04);
  text-align: center;
}
.ej-survey-done__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ej-q-accent);
  color: var(--enjin-paper);
  box-shadow: 0 0 0 10px var(--ej-q-tint);
}
.ej-survey-done__icon svg { width: 32px; height: 32px; }
.ej-survey-done__kicker { margin: 24px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--ej-q-ink); }
.ej-survey-done__title { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; line-height: 1.4; }
.ej-survey-done__text { margin: 16px 0 0; font-size: 15px; line-height: 1.9; }
.ej-survey-done__text strong { word-break: break-all; }
.ej-survey-done__note { margin: 10px 0 0; font-size: 12px; line-height: 1.7; color: var(--ej-q-sub); }
.ej-survey-done__resend { display: grid; gap: 10px; max-width: 420px; margin: 20px auto 0; text-align: left; }
.ej-survey-done__resend .ej-survey__submit { min-height: 54px; font-size: 16px; }
.ej-survey-done__flow {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 28px 0 0;
  padding: 20px;
  border-radius: 14px;
  background: #f3f8f9;
  text-align: left;
}
.ej-survey-done__flow li { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.7; color: #3b4447; }
.ej-survey-done__flow li b { display: block; font-size: 15px; color: var(--enjin-black); }
.ej-survey-done__flow-no {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ej-q-ink);
  color: var(--enjin-paper);
  font: 700 13px/28px var(--f-en);
  text-align: center;
}
.ej-btn.ej-survey-done__btn { gap: 8px; min-width: 260px; height: 56px; margin-top: 28px; padding: 0 32px; font-size: 16px; }
.ej-survey-done__team {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--enjin-paper);
  box-shadow: 0 30px 70px -44px rgba(0, 40, 46, 0.45), 0 1px 0 rgba(0, 0, 0, 0.04);
}
.ej-survey-done__team img { display: block; width: 100%; height: auto; }
.ej-survey-done__team figcaption { padding: 18px 20px 20px; font-size: 13px; line-height: 1.8; color: #3b4447; }
.ej-survey-done__team figcaption b { display: block; margin-bottom: 2px; font-size: 16px; color: var(--enjin-black); }

/* ============================================================
   エージェント紹介（/agents）
   ============================================================ */
.ej-agents { font-family: var(--f-jp); }

/* 01 ヒーロー：チームの集合写真。SP は 見出し → 写真 → 本文・ボタン の順 */
.ej-agents-hero {
  overflow: hidden;
  padding-top: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(56px, 6vw, 104px);
  background: linear-gradient(148deg, var(--enjin-paper) 0 58%, var(--ej-stripe-mist) 58%);
}
.ej-agents-hero__grid { display: grid; gap: 28px; }
.ej-agents-hero__head,
.ej-agents-hero__body { text-align: center; }
.ej-agents-hero__body { order: 2; } /* SP は写真を先に見せる（PC は grid-area で配置） */
.ej-agents-hero__title {
  margin: 0;
  font-size: clamp(24px, 6.6vw, 30px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.ej-agents-hero__lead { max-width: 720px; margin: 0 auto; font-size: 15px; }
.ej-agents-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.ej-agents-hero__actions .ej-btn--cta {
  gap: 10px;
  width: 100%;
  max-width: 420px;
  height: 62px;
  padding: 0 28px;
  font-size: 17px;
  box-shadow: 0 5px 0 var(--ej-q-accent-deep);
}
.ej-agents-hero__actions .ej-btn--cta svg { width: 20px; height: 20px; }
.ej-agents-hero__note { font-size: 12px; font-weight: 700; color: var(--ej-q-ink); }
.ej-agents-photo {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1080px;
  margin: 4px auto 0;
}
@media (min-width: 1024px) {
  .ej-agents-hero__grid {
    grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr);
    grid-template-areas:
      "head photo"
      "body photo";
    column-gap: clamp(40px, 4.4vw, 72px);
    row-gap: 24px;
    align-items: center;
  }
  .ej-agents-hero__head { grid-area: head; align-self: end; text-align: left; }
  .ej-agents-hero__body { grid-area: body; align-self: start; text-align: left; }
  .ej-agents-hero__title { font-size: clamp(30px, 2.9vw, 42px); }
  .ej-agents-hero__lead { margin: 0; font-size: 16px; }
  .ej-agents-hero__actions { align-items: flex-start; margin-top: 28px; }
  .ej-agents-photo { grid-area: photo; margin: 0; }
}
/* 写真の背後にブランドの斜めストライプ（SP FV と同じ角度） */
.ej-agents-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% -4% -5% 8%;
  border-radius: clamp(16px, 2vw, 28px);
  background: repeating-linear-gradient(148deg, var(--ej-stripe-soft) 0 16px, transparent 16px 34px);
}
.ej-agents-photo__frame {
  overflow: hidden;
  aspect-ratio: 1024 / 682;
  border-radius: clamp(16px, 2vw, 28px);
  background: #e9eded;
  box-shadow: 0 44px 90px -50px rgba(0, 40, 46, 0.6);
}
.ej-agents-photo__frame picture,
.ej-agents-photo__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ej-agents-photo__badges {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: -28px auto 0;
  padding: 0 12px;
}
.ej-agents-photo__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--enjin-paper);
  box-shadow: 0 14px 30px -16px rgba(0, 40, 46, 0.45);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
.ej-agents-photo__badges svg { width: 20px; height: 20px; color: var(--ej-q-accent); }
.ej-agents-photo__caption { margin-top: 16px; font-size: 12px; text-align: center; color: var(--c-text-sub); }
@media (max-width: 767.98px) {
  .ej-agents-photo__badges { gap: 8px; margin-top: -20px; }
  .ej-agents-photo__badges li { height: 42px; padding: 0 14px; font-size: 13px; }
  .ej-agents-photo__badges svg { width: 16px; height: 16px; }
}

/* 02 こんなお悩み */
.ej-agents-worry__head { text-align: center; }
.ej-agents-worry__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
  list-style: none;
  margin: clamp(28px, 3vw, 48px) auto 0;
  padding: 0;
}
.ej-agents-worry__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--enjin-paper);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}
.ej-agents-worry__check {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--ej-q-tint);
  color: var(--ej-q-accent);
}
.ej-agents-worry__check svg { width: 18px; height: 18px; }
.ej-agents-worry__answer {
  margin: clamp(32px, 4vw, 56px) 0 clamp(24px, 3vw, 40px);
  font-family: var(--f-mincho);
  font-size: clamp(18px, 5.1vw, 34px);
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  word-break: auto-phrase;
}
.ej-agents-worry__answer::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto 20px;
  border-top: 16px solid var(--ej-q-accent);
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
}
@media (max-width: 767.98px) {
  .ej-agents-worry__list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ej-agents-worry__list li { padding: 16px; font-size: 15px; }
}

/* 03 大切にしていること */
.ej-agents-values__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  list-style: none;
  margin: clamp(32px, 4vw, 64px) 0 0;
  padding: 0;
}
.ej-agents-value {
  padding: clamp(24px, 3vw, 40px);
  border: var(--bw) solid var(--c-border);
  border-radius: 18px;
  background: var(--enjin-paper);
}
.ej-agents-value__no {
  display: block;
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ej-q-accent);
}
.ej-agents-value__en {
  display: block;
  margin-top: 12px;
  font-family: var(--f-en);
  font-size: var(--fs-cap);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-text-sub);
}
.ej-agents-value__title { margin: 10px 0 0; font-size: clamp(19px, 1.8vw, 26px); font-weight: 800; line-height: 1.5; }
.ej-agents-value__text { margin: 12px 0 0; font-size: 15px; line-height: 1.9; color: #3b4447; }
@media (max-width: 767.98px) {
  .ej-agents-values__list { grid-template-columns: minmax(0, 1fr); }
}

/* 04 グループの現場実績（ダーク） */
.ej-agents-record .ej-track__num { color: var(--enjin-cyan-mist); }

/* 05 ご相談の流れ */
.ej-agents-flow__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: clamp(32px, 4vw, 64px) 0 0;
  padding: 0;
}
.ej-agents-step {
  position: relative;
  padding: 24px 18px 26px;
  border-radius: 16px;
  background: var(--enjin-surface);
  text-align: center;
}
/* カードの間の › */
.ej-agents-step + .ej-agents-step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -13px;
  width: 9px;
  height: 9px;
  border-top: 2.5px solid var(--ej-q-accent);
  border-right: 2.5px solid var(--ej-q-accent);
  transform: translateY(-50%) rotate(45deg);
}
.ej-agents-step__no {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--f-en);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--ej-q-ink);
}
.ej-agents-step__no span { font-size: 11px; letter-spacing: 0.2em; }
.ej-agents-step__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 16px auto 0;
  border-radius: 50%;
  background: var(--enjin-paper);
  color: var(--ej-q-accent);
  box-shadow: 0 10px 22px -14px rgba(0, 40, 46, 0.45);
}
.ej-agents-step__icon svg { width: 28px; height: 28px; }
.ej-agents-step__title { margin: 16px 0 0; font-size: 16px; font-weight: 800; line-height: 1.5; }
.ej-agents-step__text { margin: 8px 0 0; font-size: 13px; line-height: 1.8; text-align: left; color: #4a5357; }
@media (max-width: 1023.98px) {
  .ej-agents-flow__list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ej-agents-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 16px;
    padding: 18px;
    text-align: left;
  }
  .ej-agents-step__icon { grid-column: 1; grid-row: 1 / span 3; width: 56px; height: 56px; margin: 0; }
  .ej-agents-step__icon svg { width: 24px; height: 24px; }
  .ej-agents-step__no,
  .ej-agents-step__title,
  .ej-agents-step__text { grid-column: 2; }
  .ej-agents-step__title { margin-top: 6px; }
  .ej-agents-step + .ej-agents-step::before {
    top: -13px;
    left: 42px;
    transform: rotate(135deg);
  }
}

/* 06 よくある質問（一覧を中央に置くので見出しも中央に） */
.ej-agents-faq__head { text-align: center; }
.ej-agents-faq__list { display: grid; gap: 12px; max-width: 880px; margin: clamp(28px, 3vw, 48px) auto 0; }
.ej-faq { overflow: hidden; border-radius: 14px; background: var(--enjin-paper); }
.ej-faq__q {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 56px 20px 22px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}
.ej-faq__q::-webkit-details-marker { display: none; }
.ej-faq__q::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--enjin-black);
  border-bottom: 2px solid var(--enjin-black);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.ej-faq[open] .ej-faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.ej-faq__q:focus-visible { outline: 3px solid rgba(4, 162, 174, 0.5); outline-offset: -3px; }
.ej-faq__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--enjin-black);
  color: var(--enjin-paper);
  font-family: var(--f-en);
  font-size: 15px;
  font-weight: 800;
}
.ej-faq__mark--a { background: var(--ej-q-accent); }
.ej-faq__a { display: flex; align-items: flex-start; gap: 14px; padding: 0 22px 22px; }
.ej-faq__a p { margin: 4px 0 0; font-size: 15px; line-height: 1.9; color: #3b4447; }
.ej-faq__a a { margin-left: 0.3em; color: var(--ej-q-ink); font-weight: 700; text-decoration: underline; }
@media (max-width: 767.98px) {
  .ej-faq__q { padding: 16px 48px 16px 16px; font-size: 15px; gap: 12px; }
  .ej-faq__q::after { right: 20px; }
  .ej-faq__a { padding: 0 16px 18px; gap: 12px; }
  .ej-faq__a p { font-size: 14px; }
}

/* 07 最終CTA（シアンの帯に設問カード） */
.ej-qband {
  padding-block: var(--ej-section-py);
  background-color: var(--ej-q-accent);
  background-image: repeating-linear-gradient(148deg, rgba(255, 255, 255, 0.08) 0 56px, rgba(255, 255, 255, 0) 56px 112px);
  font-family: var(--f-jp);
}
.ej-qband .ej-qcard { box-shadow: 0 40px 80px -40px rgba(0, 30, 34, 0.65); }
/* シアンの帯からフッターへ直接つなぐ（下層ページ共通のフッター上余白 mt-24 を消す） */
.ej-agents + footer { margin-top: 0; }

/* ============================================================
   TOP: 担当エージェントのチーム
   ============================================================ */
.ej-team {
  position: relative;
  overflow: hidden;
  background: var(--enjin-paper);
}
.ej-team::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: min(46vw, 640px);
  height: 320px;
  background: var(--ej-stripe-mist);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}
.ej-team > * { position: relative; z-index: 1; }
.ej-team__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.ej-team__photo { position: relative; margin: 0; }
.ej-team__photo picture { display: block; }
.ej-team__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 1.6vw, 22px);
  box-shadow: 0 40px 80px -48px rgba(0, 40, 46, 0.6);
}
.ej-team__badge {
  position: absolute;
  left: clamp(14px, 2vw, 24px);
  bottom: -18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--enjin-black);
  color: var(--enjin-paper);
  font-size: 13px;
  font-weight: 700;
}
.ej-team__badge svg { width: 18px; height: 18px; color: var(--enjin-cyan-mist); }
.ej-team__lead { margin: 24px 0 0; }
.ej-team__points { display: grid; gap: 10px; list-style: none; margin: 24px 0 0; padding: 0; }
.ej-team__points li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.ej-team__points svg { width: 22px; height: 22px; margin-top: 0; padding: 4px; }
.ej-team__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.ej-team__actions .ej-btn--cta { gap: 10px; height: 60px; padding: 0 32px; font-size: 17px; }
.ej-team__actions .ej-btn--cta svg { width: 20px; height: 20px; }
.ej-team__actions .ej-more { margin-top: 0; }
@media (max-width: 1023.98px) {
  .ej-team::before { width: 72%; height: 160px; }
  .ej-team__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .ej-team__points li { font-size: 15px; }
  .ej-team__actions .ej-btn--cta { width: 100%; height: 58px; font-size: 16px; }
}

/* ============================================================
   登録直後の案内（求人一覧の上・1回だけ） / メール認証画面の写真
   ============================================================ */
.ej-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  margin: 24px 0 32px;
  border: 1px solid var(--ej-q-line);
  border-radius: 18px;
  background: var(--enjin-paper);
  box-shadow: 0 24px 50px -36px rgba(0, 40, 46, 0.5);
  font-family: var(--f-jp);
}
@media (min-width: 768px) {
  .ej-welcome { grid-template-columns: 300px minmax(0, 1fr); }
}
.ej-welcome__photo { min-height: 180px; background: #e9eded; }
.ej-welcome__photo picture,
.ej-welcome__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ej-welcome__body { padding: 24px clamp(20px, 3vw, 32px); }
.ej-welcome__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ej-q-ink);
}
.ej-welcome__kicker svg { width: 16px; height: 16px; color: var(--ej-q-accent); }
.ej-welcome__title { margin: 8px 0 0; font-size: clamp(19px, 2vw, 24px); font-weight: 900; line-height: 1.5; }
.ej-welcome__text { margin: 10px 0 0; font-size: 14px; line-height: 1.9; color: #3b4447; }
.ej-welcome__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 18px; }
.ej-welcome__actions .ej-btn--cta { gap: 8px; height: 50px; padding: 0 26px; font-size: 15px; }
.ej-welcome__actions .ej-btn--cta svg { width: 18px; height: 18px; }
.ej-welcome__actions .ej-more { margin-top: 0; }

.ej-verify-team { overflow: hidden; margin: 8px 0 0; border-radius: 14px; background: var(--ej-q-tint); }
.ej-verify-team img { display: block; width: 100%; height: auto; }
.ej-verify-team figcaption { padding: 12px 16px; font-size: 13px; font-weight: 700; line-height: 1.7; color: var(--ej-q-ink); }
