/* 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%;
  }
}
