/* JOBS_OPTIN_2026_11_24 メルマガの欄の下の「提携事業者からの案内も受け取る（任意）」と、今の登録者の同意の画面（/optin/）。
   正本 apps/jobs-optin/jobs-optin.css → 各サイトの assets/css/jobs-optin.css（scripts/apply/2026-11-24-jobs-optin/ が置く）。
   色はサイトの変数（--accent・--text・--border）を先に使い、無ければ明るい・暗いのどちらでも読める半透明の色にする。 */

/* ---- メルマガの欄の下のチェック ---- */
.jobs-optin {
  margin: 10px 0 4px;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}
.jobs-optin-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.jobs-optin-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent, #0d9488);
}
.jobs-optin-more {
  margin: 6px 0 0 26px;
  font-size: 12px;
}
.jobs-optin-more summary {
  cursor: pointer;
  opacity: .85;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.jobs-optin-more[open] summary {
  margin-bottom: 6px;
}
.jobs-optin-list {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border, rgba(127, 127, 127, .35));
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
}
.jobs-optin-list dt {
  font-weight: 700;
  margin-top: 6px;
}
.jobs-optin-list dt:first-child {
  margin-top: 0;
}
.jobs-optin-list dd {
  margin: 2px 0 0;
}
.jobs-optin-more .entry-consent-policy,
.jobs-optin-more .quiz-consent-policy {
  margin: 6px 0 0;
  font-size: 12px;
}

/* ---- 同意の画面（/optin/） ---- */
.jobs-optin-page {
  padding: 32px 0 56px;
}
.jo-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}
.jo-title {
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 16px;
}
.jo-card {
  border: 1px solid var(--border, rgba(127, 127, 127, .35));
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 20px;
}
.jo-lead {
  font-weight: 700;
  margin: 0 0 8px;
}
.jo-text {
  margin: 0 0 8px;
  line-height: 1.8;
}
.jo-email span {
  font-weight: 700;
}
.jo-alert {
  border: 1px solid #dc2626;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 16px;
  color: #b91c1c;
}
.jo-alert ul {
  margin: 0;
  padding-left: 18px;
}
.jo-h2 {
  font-size: 18px;
  margin: 24px 0 10px;
}
.jo-field {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.jo-label {
  display: block;
  font-weight: 700;
  margin: 0 0 6px;
  padding: 0;
}
.jo-req,
.jo-opt {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: 1px;
}
.jo-req {
  background: #dc2626;
  color: #fff;
}
.jo-opt {
  border: 1px solid var(--border, rgba(127, 127, 127, .5));
}
.jo-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jo-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border, rgba(127, 127, 127, .45));
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.4;
}
.jo-choice input {
  accent-color: var(--accent, #0d9488);
  margin: 0;
}
.jo-input,
.jo-select {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid var(--border, rgba(127, 127, 127, .55));
  border-radius: 8px;
  font-size: 16px;
  background: transparent;
  color: inherit;
}
.jo-select option {
  color: #111;
}
.jo-hint {
  font-size: 12px;
  opacity: .8;
  margin: 6px 0 0;
}
.jo-error {
  color: #dc2626;
  font-size: 13px;
  margin: 6px 0 0;
}
.jo-field.has-error .jo-choices,
.jo-field.has-error .jo-input,
.jo-field.has-error .jo-select {
  outline: 2px solid rgba(220, 38, 38, .45);
  outline-offset: 2px;
  border-radius: 8px;
}
.jo-consent {
  border: 1px solid var(--border, rgba(127, 127, 127, .35));
  border-radius: 12px;
  padding: 16px 18px;
  margin: 24px 0 16px;
}
.jo-consent.has-error {
  border-color: #dc2626;
}
.jo-consent-title {
  font-size: 16px;
  margin: 0 0 10px;
}
.jo-consent-list {
  margin: 0 0 10px;
}
.jo-consent-list dt {
  font-weight: 700;
  margin-top: 8px;
}
.jo-consent-list dd {
  margin: 2px 0 0;
  line-height: 1.7;
}
.jo-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 700;
  margin-top: 12px;
  cursor: pointer;
}
.jo-consent-check input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--accent, #0d9488);
}
.jo-submit {
  width: 100%;
  max-width: 480px;
}
.jo-other {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border, rgba(127, 127, 127, .35));
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.jo-inline {
  margin: 0;
}
.jo-btn {
  display: inline-block;
}
.jo-link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  opacity: .8;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-size: 13px;
}
.jo-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 480px) {
  .jo-title {
    font-size: 20px;
  }
  .jo-choice {
    width: 100%;
  }
}

/* ---- JOBS_OPTIN_AFTER_2026_11_25 登録の直後の「登録しました」の窓（#leadResult・白い窓）の中のボタン ----
   窓（.apply-gate-box）は明るい・暗いのどちらでも白い背景で、文字の色を持たない＝ここで色を決める（サイトの --text-primary は暗い表示で白くなる）。 */
.lead-result .apply-gate-box {
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.jobs-optin-after {
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #e2e8ec;
  color: #1c2b33;
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}
.jobs-optin-after[hidden] {
  display: none;
}
.jobs-optin-after-note {
  margin: 0 0 6px;
  color: #3d4d57;
}
.jobs-optin-after .jobs-optin-more {
  margin: 0 0 10px;
}
.jobs-optin-after .jobs-optin-more summary {
  color: #3d4d57;
  opacity: 1;
}
.jobs-optin-after .jobs-optin-list {
  border-color: #d5dde2;
  max-height: 180px;
  background: #f8fafb;
}
.jobs-optin-after .jobs-optin-list a,
.jobs-optin-after .entry-consent-policy a {
  color: #0f766e;
}
.jobs-optin-after .jobs-optin-after-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #0f766e;
  border-radius: 0;
  background: #fff;
  color: #0f766e;
  font-weight: 700;
  white-space: normal;
  text-align: center;
}
.jobs-optin-after .jobs-optin-after-btn:hover,
.jobs-optin-after .jobs-optin-after-btn:focus-visible {
  background: #f0fdfa;
  color: #0b5f59;
  border-color: #0b5f59;
}
.jobs-optin-after .jobs-optin-after-btn:disabled {
  opacity: .6;
  cursor: default;
}
.jobs-optin-after-msg {
  margin: 8px 0 0;
  color: #0f766e;
  font-weight: 700;
}
.jobs-optin-after-msg:empty {
  display: none;
}
.jobs-optin-after-msg.is-ng {
  color: #b91c1c;
  font-weight: 400;
}
/* hidden の印を、上の display（ボタンの block など）より強く効かせる＝押した後・期限切れの後にボタンを消す */
.jobs-optin-after .jobs-optin-after-btn[hidden],
.jobs-optin-after [hidden] {
  display: none;
}

/* ============================================================
   JOBS_ENTRY_UNIFY_2026_11_25 登録の入口の同意（ボタンのすぐ下の1行・くわしくの窓・新着求人のメールの欄・応募の前の窓）。部品 entry.php・動き jobs-entry.js。
   🔴 1行は隠さない・小さくしすぎない（13px・本文と同じ濃さ）＝押す前に必ず目に入る。色はサイトの変数（--text-primary・--bg-surface・--border・--accent）を先に使う。
   ============================================================ */
.je-consent-line {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}
.je-consent-more {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.je-consent-more:hover,
.je-consent-more:focus-visible {
  color: var(--accent, #0d9488);
}
/* 白い箱の中（応募の前の窓・登録の結果の窓）＝暗い字のまま */
.apply-gate-box .je-consent-line,
.je-gate-box .je-consent-line {
  color: #3f4f5a;
}
.apply-gate-box .je-consent-more,
.je-gate-box .je-consent-more {
  color: #0f766e;
}
/* 暗いフッターのメルマガの欄 */
.lead-form--footer .je-consent-line {
  color: rgba(255, 255, 255, .88);
}
.lead-form--footer .je-consent-more {
  color: #fff;
}
/* 5問の最後の段（ボタンの下に中央そろえの1行） */
.quiz-actions + .je-consent-line,
.quiz-actions .je-consent-line {
  text-align: center;
}

/* ---- くわしくの窓（<dialog>） ---- */
.je-modal {
  position: fixed;
  inset: 0;
  margin: auto;   /* サイトの全体の初期化（* { margin: 0 }）で窓が左上に寄らないように */
  width: min(640px, calc(100vw - 32px));
  max-width: 640px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--border, rgba(127, 127, 127, .35));
  border-radius: 14px;
  background: var(--bg-surface, #fff);
  color: var(--text-primary, #1c2b33);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .32);
  overflow: hidden;
}
.je-modal[open] {
  display: flex;
  flex-direction: column;
}
.je-modal::backdrop {
  background: rgba(12, 20, 26, .62);
}
.je-modal-box {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
  width: 100%;
}
.je-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border, rgba(127, 127, 127, .25));
}
.je-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
.je-modal-x {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 13px;
  cursor: pointer;
}
.je-modal-x:hover,
.je-modal-x:focus-visible {
  background: rgba(127, 127, 127, .14);
}
.je-modal-x .lucide-icon {
  width: 18px;
  height: 18px;
}
.je-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 18px 6px;
  font-size: 14px;
  line-height: 1.7;
}
.je-modal-foot {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border, rgba(127, 127, 127, .25));
  text-align: right;
}
.je-modal-ok {
  min-width: 120px;
}
.je-consent-list {
  margin: 0;
}
.je-consent-list dt {
  font-weight: 700;
  margin-top: 10px;
}
.je-consent-list dt:first-child {
  margin-top: 0;
}
.je-consent-list dd {
  margin: 2px 0 0;
}
.je-modal .je-consent-policy {
  margin: 12px 0 8px;
  font-size: 13px;
}
.je-modal a {
  color: var(--accent, #0d9488);
  text-decoration: underline;
  text-underline-offset: 2px;
}
html.je-modal-open,
html.je-gate-open {
  overflow: hidden;
}
@media (max-width: 520px) {
  .je-modal {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  .je-modal-head,
  .je-modal-body,
  .je-modal-foot {
    padding-left: 14px;
    padding-right: 14px;
  }
  .je-modal-ok {
    width: 100%;
  }
}

/* ---- 新着求人のメールの欄（メルマガの欄の無かったサイト） ---- */
.je-mail {
  margin: 16px 0 4px;
  max-width: 460px;
  text-align: left;
}
.je-mail-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.je-mail-title .lucide-icon {
  width: 18px;
  height: 18px;
}
.je-mail-desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
}
.je-mail-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.je-mail-form[hidden] {
  display: none;
}
.je-mail-input {
  flex: 1 1 220px;
  min-width: 0;
  font-size: 16px;
}
.je-mail-select {
  flex: 1 1 100%;
  min-width: 0;
  font-size: 16px;   /* JOBS_LOOK_2026_11_26 16px 未満だと iOS が触った時に拡大する */
}
.je-mail-btn {
  flex: 1 1 100%;
  white-space: normal;
}
.je-mail-form .je-consent-line {
  flex: 1 1 100%;
  margin-top: 0;
}
.je-mail-msg {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  min-height: 1.3em;
}
.je-mail-msg.is-ok {
  font-weight: 700;
}
.je-mail-msg.is-ng {
  color: #f87171;
}
.je-mail-note {
  margin: 6px 0 0;
  font-size: 12px;
  opacity: .8;
}
.je-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.je-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- 応募の前の窓（前から窓の無かったサイト・fde・humanoid・physicalai の .apply-gate と同じ形） ---- */
.je-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.je-gate[hidden] {
  display: none;
}
.je-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 26, .62);
}
.je-gate-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 28px 28px 22px;
  border-radius: 12px;
  background: #fff;
  color: #1c2b33;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  text-align: left;
}
.je-gate-x {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px;
  border: none;
  background: none;
  color: #8a97a0;
  line-height: 0;
  cursor: pointer;
}
.je-gate-x:hover {
  color: #1c2b33;
}
.je-gate-title {
  margin: 0 0 6px;
  padding-right: 28px;
  font-size: 17px;
  font-weight: 700;
}
.je-gate-desc {
  margin: 0 0 4px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #5b6b76;
}
.je-gate-job {
  margin: 0 0 14px;
  min-height: 1.2em;
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
}
.je-gate-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.je-gate-input {
  flex: 1 1 100%;
  min-width: 0;
  font-size: 16px;
}
.je-gate-submit {
  flex: 1 1 100%;
  white-space: normal;
}
.je-gate-form .je-consent-line {
  flex: 1 1 100%;
  margin-top: 0;
}
.je-gate-msg {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  min-height: 1.2em;
}
.je-gate-msg.is-ng {
  color: #b91c1c;
}
.je-gate-skip {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 6px;
  border: none;
  background: none;
  color: #5b6b76;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.je-gate-skip:hover {
  color: #1c2b33;
}
@media (max-width: 520px) {
  .je-gate-box {
    padding: 22px 18px 18px;
  }
}

/* ---- プライバシーポリシーの第三者提供の節 ---- */
.je-privacy .je-consent-list {
  margin: 8px 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--border, rgba(127, 127, 127, .35));
  border-radius: 8px;
}
/* JOBS_ENTRY_UNIFY_2026_11_25 メールの欄の2つのボタン（抱き合わせにしない＝選んでもらう）・窓の頭の運営者の1文 */
.je-mail-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 100%;
}
.je-mail-btn--only {
  font-weight: 600;
}
.je-consent-intro {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.7;
}
/* 「メールだけ」のボタンは字の色を周り（暗いフッターでは白）に合わせる＝薄くて読めない形にしない */
.je-mail .je-mail-btn--only {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.je-mail .je-mail-btn--only:hover,
.je-mail .je-mail-btn--only:focus-visible {
  background: rgba(127, 127, 127, .16);
}
/* JOBS_ENTRY_UNIFY_2026_11_25 11/25 答え1: メールの欄は主のボタン1つ＋1行＋「メールだけ受け取る」のリンク（小さすぎない 13.5px・下線・同じ欄のまま提供なしで登録） */
.je-mail-only {
  flex: 1 1 100%;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.je-mail-only:hover,
.je-mail-only:focus-visible {
  color: var(--accent, #0d9488);
}
.je-mail-only:disabled {
  opacity: .6;
  cursor: wait;
}
/* 確認の画面（/api/subscribe.php?c=札・メールのリンクの先） */
.je-cf-body {
  margin: 0;
  background: #f4f6f8;
  color: #1c2b33;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}
.je-cf {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 56px;
  line-height: 1.75;
}
.je-cf-site {
  margin: 0 0 18px;
  font-weight: 700;
}
.je-cf-site a,
.je-cf-back a,
.je-cf a {
  color: #0f766e;
}
.je-cf-title {
  margin: 0 0 12px;
  font-size: 22px;
}
.je-cf-lead,
.je-cf-msg {
  margin: 0 0 16px;
  font-size: 15px;
}
.je-cf-btn {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: #1d7fe0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.je-cf-no {
  margin: 12px 0 20px;
  font-size: 13.5px;
}
.je-cf-more {
  padding: 14px 16px;
  border: 1px solid rgba(127, 127, 127, .35);
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px;
}
.je-cf-back {
  margin: 24px 0 0;
}
.je-mail-only {
  min-height: 44px;   /* スマホで指で押せる高さ（法の敵対レビュー 11/25 2回目） */
}
.je-cf-btn-no {
  width: 100%;
  margin: 10px 0 0;
  padding: 12px 16px;
  border: 1px solid #94a3b8;
  border-radius: 10px;
  background: #fff;
  color: #1c2b33;
  font-size: 15px;
  cursor: pointer;
}
/* 前からあるメルマガの欄・応募の前の窓（fde・humanoid・physicalai）: 長いボタンの文が1行に入らない時は欄とボタンを縦に並べる */
.lead-form:has(.je-consent-line) .lead-form-row,
.apply-gate-box:has(.je-consent-line) .apply-gate-form {
  flex-wrap: wrap;
}
.lead-form:has(.je-consent-line) .lead-form-input,
.apply-gate-box:has(.je-consent-line) .apply-gate-input {
  flex: 1 1 100%;
}
.lead-form:has(.je-consent-line) .lead-form-btn,
.apply-gate-box:has(.je-consent-line) .apply-gate-submit {
  flex: 1 1 100%;
  white-space: normal;
}
.lead-form .je-mail-only {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.lead-form--footer .je-mail-only {
  color: #fff;
}

/* ---- JOBS_MEMBER_OPTIN_2026_11_29 会員登録の小窓のチェック（初めは外れている）と、マイページの1押し ---- */
.je-signup {
  margin: 12px 0 6px;
}
.je-signup .je-signup-check {
  font-weight: 600;
}
.je-signup .je-signup-line {
  margin: 4px 0 0 26px;
  font-size: 12px;
  opacity: .9;
}
.je-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--border, rgba(127, 127, 127, .35));
  border-radius: 12px;
  background: var(--card-bg, transparent);
  text-align: left;
}
.je-member-text {
  flex: 1 1 auto;
  min-width: 0;
}
.je-member-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.je-member .je-member-line {
  margin: 4px 0 0;
}
.je-member-form {
  flex: 0 0 auto;
  margin: 0;
}
.je-member-btn {
  white-space: nowrap;
}
.je-member-form--page {
  margin: 16px 0 8px;
}
@media (max-width: 640px) {
  .je-member {
    flex-direction: column;
    align-items: stretch;
  }
  .je-member-btn {
    width: 100%;
  }
}
