/*
 * 相談登録（/register/）の画面。0.5.0 で追加
 * 見た目の正は site/output/renewal-2026-10/06_相談フォーム_モック.html（2026-10-20 COO確定）。
 * デザインの決まり：英字の小見出しを使わない／枠の左や上に色の線を付けない／赤は誤り・マイナスだけ
 * （モックどおり、入力の不足の案内も赤にせず灰色の太字にする）。
 *
 * テーマ（Cocoon・子テーマ）のCSSも読み込まれるので、すべて .trj-register-page の下に書いて上書きする。
 */

body.trj-register-page {
  --trj-orange: #EC6A1E; --trj-orange-d: #C9560F; --trj-orange-t: #FFF1E6;
  --trj-navy: #1D3557; --trj-navy-soft: #EAF0F8; --trj-ink: #1F2937; --trj-text-2: #4B5563; --trj-muted: #6B7280;
  --trj-line: #DCE2EA; --trj-line-2: #CBD5E1; --trj-paper: #F7F5F1;
  --trj-head: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; --trj-num: 'Oswald', 'Noto Sans JP', sans-serif;
  margin: 0; background: var(--trj-paper) !important; color: var(--trj-ink);
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.75;
}
.trj-register-page *, .trj-register-page *::before, .trj-register-page *::after { box-sizing: border-box; }

/* ヘッダー：ロゴと「入力は約1分・登録無料」だけ */
.trj-reg-hd { background: #fff; border-bottom: 1px solid var(--trj-line); }
.trj-reg-hd-in { max-width: 720px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.trj-reg-logo { height: 24px; width: auto; display: block; }
.trj-reg-hd-t { font-size: 13px; font-weight: 700; color: var(--trj-muted); }
.trj-reg-hd-t b { font-family: var(--trj-num); font-weight: 500; font-size: 16px; color: var(--trj-orange-d); margin: 0 2px; }

.trj-reg { max-width: 720px; margin: 0 auto; padding: 22px 20px 70px; }
.trj-reg-intro { text-align: center; margin: 4px 0 18px; }
.trj-reg-intro h1 { font-family: var(--trj-head); font-weight: 900; font-size: 26px; line-height: 1.45; color: var(--trj-navy); margin: 0; padding: 0; border: 0; background: none; }
.trj-reg-intro h1 em { font-style: normal; color: var(--trj-orange); }
.trj-reg-intro p { margin: 4px 0 0; font-size: 14px; color: var(--trj-text-2); }

/* 進み具合（JavaScriptが動くときだけ） */
.trj-reg-prog { display: none; grid-template-columns: repeat(3, 1fr); margin: 0 0 14px; position: relative; }
.trj-reg.has-js .trj-reg-prog { display: grid; }
.trj-reg-prog::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 13px; height: 3px; background: var(--trj-line); }
.trj-reg-bar { position: absolute; left: 16.6%; top: 13px; height: 3px; width: 0; background: var(--trj-orange); transition: width .3s; }
.trj-reg-ps { position: relative; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--trj-muted); }
.trj-reg-ps i { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0 auto 2px; border-radius: 50%; background: #fff; border: 3px solid var(--trj-line); font-style: normal; font-family: var(--trj-num); font-weight: 500; font-size: 14px; color: var(--trj-muted); }
.trj-reg-ps.is-on { color: var(--trj-navy); }
.trj-reg-ps.is-on i { border-color: var(--trj-orange); color: var(--trj-orange-d); }
.trj-reg-ps.is-past { color: var(--trj-navy); }
.trj-reg-ps.is-past i { background: var(--trj-orange); border-color: var(--trj-orange); color: #fff; }

/* カード */
.trj-reg-card { background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(31,41,55,.08); padding: 26px 28px 24px; }
.trj-reg-notice { background: var(--trj-navy-soft); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--trj-navy); }
.trj-reg-notice p { margin: 0; }

/* JavaScriptが動かないときは3つのステップを縦に並べる。区切りに余白と線を入れる */
.trj-reg-step + .trj-reg-step { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--trj-line); }
.trj-reg-form.is-steps .trj-reg-step { display: none; margin-top: 0; padding-top: 0; border-top: 0; }
.trj-reg-form.is-steps .trj-reg-step.is-on { display: block; }
.trj-reg-js { display: none !important; }
.trj-reg-form.is-steps .trj-reg-js { display: block !important; }
.trj-reg-form.is-steps .trj-reg-nojs-lead { display: none; }
.trj-reg-nojs-lead { margin: 22px 0 -10px; font-size: 13px; font-weight: 700; color: var(--trj-text-2); }

.trj-reg-sh { font-family: var(--trj-head); font-weight: 900; font-size: 22px; line-height: 1.45; color: var(--trj-navy); margin: 0 0 4px; padding: 0; border: 0; background: none; }
.trj-reg-sh::before, .trj-reg-sh::after { display: none; }
.trj-reg-ssub { margin: 0 0 6px; font-size: 14px; color: var(--trj-text-2); }

/* 質問 */
.trj-reg fieldset.trj-reg-q { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
.trj-reg-qt { display: block; width: 100%; padding: 0; margin: 0 0 10px; font-weight: 700; font-size: 16px; line-height: 1.6; color: var(--trj-ink); }
.trj-reg-req, .trj-reg-opt { display: inline-block; margin-left: 8px; vertical-align: 2px; white-space: nowrap; font-size: 11px; font-weight: 700; border-radius: 3px; padding: 0 6px; line-height: 1.7; }
.trj-reg-req { color: #fff; background: var(--trj-orange); }
.trj-reg-opt { color: var(--trj-muted); background: #F3F4F6; }
.trj-reg-qhint { display: block; margin-top: 2px; font-size: 12.5px; color: var(--trj-muted); font-weight: 500; }

/* 経験あり／未経験 */
.trj-reg-big2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trj-reg-bc { display: block; cursor: pointer; position: relative; margin: 0; }
.trj-reg-bc input, .trj-reg-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.trj-reg-bc > span { display: block; height: 100%; border: 2px solid var(--trj-line-2); border-radius: 12px; padding: 16px 14px; text-align: center; background: #fff; transition: border-color .15s, background .15s; }
.trj-reg-bc b { display: block; font-family: var(--trj-head); font-weight: 900; font-size: 20px; color: var(--trj-navy); }
.trj-reg-bc small { display: block; font-size: 12.5px; line-height: 1.5; color: var(--trj-muted); margin-top: 2px; }
.trj-reg-bc input:checked + span { border-color: var(--trj-orange); background: var(--trj-orange-t); }
.trj-reg-bc input:checked + span b { color: var(--trj-orange-d); }
.trj-reg-bc input:focus-visible + span { box-shadow: 0 0 0 3px rgba(236,106,30,.3); }

/* チップ */
.trj-reg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.trj-reg-chip { position: relative; display: inline-block; margin: 0; cursor: pointer; }
.trj-reg-chip > span { display: inline-block; border: 1.5px solid var(--trj-line-2); border-radius: 999px; padding: 8px 15px; font-size: 14.5px; font-weight: 500; background: #fff; line-height: 1.3; user-select: none; color: var(--trj-ink); transition: all .12s; }
.trj-reg-chip input:checked + span { border-color: var(--trj-orange); background: var(--trj-orange); color: #fff; font-weight: 700; }
.trj-reg-chip input:checked + span::before { content: "✓ "; }
.trj-reg-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(236,106,30,.3); }
.trj-reg-chip input:disabled + span { opacity: .4; cursor: not-allowed; }

/* 経験あり・未経験で出し分ける質問（JavaScriptが動くときだけ隠す） */
.trj-reg-form.is-steps .trj-reg-sub { display: none; }
.trj-reg-form.is-steps .trj-reg-sub.is-on { display: block; }

/* 相談したい求人 */
.trj-reg-jobbox { margin: 0 0 26px; padding: 0 0 22px; border-bottom: 1px solid var(--trj-line); }
.trj-reg-job { display: flex; gap: 12px; align-items: flex-start; background: var(--trj-navy-soft); border-radius: 10px; padding: 12px 14px; margin: 0 0 4px; }
.trj-reg-job-lb { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #fff; background: var(--trj-navy); border-radius: 3px; padding: 0 6px; margin-top: 3px; line-height: 1.7; }
.trj-reg-job b { display: block; font-size: 14.5px; line-height: 1.5; }
.trj-reg-job > div > span { display: block; font-size: 12.5px; color: var(--trj-text-2); }
.trj-reg-job-note { font-size: 12.5px; color: var(--trj-text-2); margin: 6px 0 0; }
.trj-reg-job-note a { color: var(--trj-navy); font-weight: 700; }

/* 入力欄 */
.trj-reg-f { margin: 16px 0 0; }
.trj-reg-f label { display: block; font-weight: 700; font-size: 15px; margin: 0 0 6px; color: var(--trj-ink); }
.trj-reg-f input, .trj-reg-f textarea {
  width: 100%; font: inherit; font-size: 16px; border: 1.5px solid var(--trj-line-2); border-radius: 8px; padding: 11px 12px;
  background: #fff; color: var(--trj-ink); box-shadow: none; height: auto; margin: 0;
}
.trj-reg-f input:focus, .trj-reg-f textarea:focus { outline: none; border-color: var(--trj-orange); box-shadow: 0 0 0 3px rgba(236,106,30,.15); }
.trj-reg-f input.trj-reg-age { width: 120px; }
.trj-reg-f textarea { height: 84px; min-height: 84px; resize: vertical; } /* テーマの textarea の min-height（160px）を打ち消す */
.trj-reg-note { font-size: 12px; color: var(--trj-muted); margin: 4px 0 0; }
.trj-reg-agree-wrap { margin: 22px 0 0; }
.trj-reg-agree { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.trj-reg-agree input { width: 20px; height: 20px; margin: 0; accent-color: var(--trj-orange); flex: none; }
.trj-reg-agree a { color: var(--trj-navy); font-weight: 700; }
.trj-reg-agree-note { font-size: 12px; color: var(--trj-muted); margin: 6px 0 0 28px; line-height: 1.6; }
[aria-invalid="true"].trj-reg-q .trj-reg-bc > span, [aria-invalid="true"] .trj-reg-chip > span { border-color: #9CA3AF; }
.trj-reg-f input[aria-invalid="true"], .trj-reg-f textarea[aria-invalid="true"] { border-color: #9CA3AF; background: #FAFAFA; }

/* 入力の不足（モックどおり灰色の太字） */
.trj-reg-err, .trj-reg-hint { font-size: 13px; color: var(--trj-muted); font-weight: 700; margin: 8px 0 0; }
.trj-reg-form.is-steps .trj-reg-hint:empty, .trj-reg-hint:empty { display: none !important; }
.trj-reg-hint.is-alert { color: var(--trj-navy); }

/* ボタン */
.trj-reg-nav { margin: 26px 0 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trj-reg-nav.trj-reg-js { display: none !important; }
.trj-reg-form.is-steps .trj-reg-nav.trj-reg-js { display: flex !important; }
.trj-reg-btn {
  display: block; width: 100%; max-width: 420px; border: 0; cursor: pointer; font: inherit; font-weight: 700; text-align: center; line-height: 1.35;
  border-radius: 6px; padding: 17px 20px; font-size: 18px; background: var(--trj-orange); color: #fff; box-shadow: 0 4px 0 var(--trj-orange-d); position: relative; margin: 0;
}
.trj-reg-btn::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-top: 3px solid #fff; border-right: 3px solid #fff; transform: translateY(-50%) rotate(45deg); }
.trj-reg-btn:hover { background: var(--trj-orange-d); color: #fff; }
.trj-reg-btn.is-blocked, .trj-reg-btn:disabled { background: #E5E7EB; color: #9CA3AF; box-shadow: 0 4px 0 #D1D5DB; cursor: not-allowed; }
.trj-reg-btn.is-blocked::after, .trj-reg-btn:disabled::after { border-color: #9CA3AF; }
.trj-reg-btn.is-sending { opacity: .7; }
.trj-reg-back { background: none; border: 0; font: inherit; font-size: 14px; color: var(--trj-text-2); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 4px 8px; }
.trj-reg-after { font-size: 12.5px; color: var(--trj-text-2); text-align: center; margin: 0; }
.trj-reg-lic { font-size: 11.5px; color: var(--trj-muted); text-align: center; margin: 14px 0 0; line-height: 1.6; }
.trj-reg-lic span { white-space: nowrap; } /* 許可番号の途中で折り返さない */

/* 完了 */
.trj-reg-ok { width: 56px; height: 56px; border-radius: 50%; background: var(--trj-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; margin: 0 auto 8px; }
.trj-reg-done h1 { text-align: center; font-family: var(--trj-head); font-weight: 900; font-size: 26px; color: var(--trj-navy); margin: 0; padding: 0; border: 0; background: none; }
.trj-reg-no { text-align: center; margin: 4px 0 0; font-size: 14px; color: var(--trj-text-2); }
.trj-reg-no b { font-family: var(--trj-num); font-weight: 500; color: var(--trj-ink); font-size: 16px; }
.trj-reg-next { background: var(--trj-orange-t); border-radius: 12px; padding: 16px 18px; margin: 20px 0 0; }
.trj-reg-next p { margin: 0; font-size: 14px; color: var(--trj-text-2); }
.trj-reg-next p.t { margin: 0 0 2px; font-weight: 900; font-family: var(--trj-head); font-size: 18px; color: var(--trj-navy); }
.trj-reg-next p.t em { font-style: normal; color: var(--trj-orange-d); }
.trj-reg-flow { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: trjf; }
.trj-reg-flow li { position: relative; padding: 0 0 16px 44px; margin: 0; list-style: none; }
.trj-reg-flow li::before { counter-increment: trjf; content: counter(trjf); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--trj-navy); color: #fff; font-family: var(--trj-num); font-weight: 500; display: flex; align-items: center; justify-content: center; }
.trj-reg-flow li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: var(--trj-line); }
.trj-reg-flow b { display: block; font-size: 16px; color: var(--trj-navy); }
.trj-reg-flow span { font-size: 14px; color: var(--trj-text-2); }
.trj-reg-free { font-size: 14px; background: var(--trj-navy-soft); border-radius: 8px; padding: 10px 14px; margin: 4px 0 0; text-align: center; font-weight: 700; color: var(--trj-navy); }
.trj-reg-links { margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.trj-reg-links p { margin: 0; font-size: 12.5px; color: var(--trj-muted); }
.trj-reg-line { display: block; width: 100%; max-width: 420px; text-align: center; background: #06C755; color: #fff !important; font-weight: 700; border-radius: 6px; padding: 12px; text-decoration: none; }
.trj-reg-l { font-weight: 700; color: var(--trj-navy) !important; font-size: 14.5px; }

@media (max-width: 640px) {
  body.trj-register-page { font-size: 15.5px; }
  .trj-reg { padding: 14px 12px 50px; }
  .trj-reg-intro h1 { font-size: 21px; }
  .trj-reg-intro p { font-size: 13px; }
  .trj-reg-card { padding: 20px 16px 20px; border-radius: 12px; }
  .trj-reg-sh { font-size: 19px; }
  .trj-reg-bc > span { padding: 12px 8px; }
  .trj-reg-bc b { font-size: 18px; }
  .trj-reg-chip > span { padding: 8px 13px; font-size: 14px; }
  .trj-reg-btn { font-size: 17px; padding: 16px 36px 16px 14px; }
  .trj-reg-done h1 { font-size: 21px; }
}
