/* 適応障害セルフチェック（[adjustment_check]） */
.adjc {
  --adjc-main: #2a9d8f;
  --adjc-main-dark: #1f7a6f;
  --adjc-accent: #ff6b35;
  --adjc-bg: #f4fbfa;
  --adjc-text: #333;
  max-width: 640px;
  margin: 2em auto;
  padding: 24px 20px;
  background: var(--adjc-bg);
  border: 2px solid var(--adjc-main);
  border-radius: 12px;
  color: var(--adjc-text);
  line-height: 1.7;
  box-sizing: border-box;
}
.adjc *,
.adjc *::before,
.adjc *::after { box-sizing: border-box; }
.adjc [hidden] { display: none !important; }
.adjc p { margin: 0 0 12px; }

/* スタート */
.adjc-title {
  font-size: 1.35em;
  font-weight: bold;
  text-align: center;
  color: var(--adjc-main-dark);
}
.adjc-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px !important;
  padding: 0 !important;
  list-style: none !important;
}
.adjc-badges li {
  margin: 0 !important;
  padding: 2px 12px !important;
  background: #fff;
  border: 1px solid var(--adjc-main);
  border-radius: 999px;
  font-size: 0.85em;
  color: var(--adjc-main-dark);
}
.adjc-badges li::before { display: none !important; }
.adjc-lead { text-align: center; }
.adjc-note {
  font-size: 0.8em;
  color: #777;
  text-align: center;
  margin-top: 12px !important;
}

/* ボタン共通 */
.adjc-btn {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 8px auto;
  padding: 14px 16px;
  border: none;
  border-radius: 999px;
  background: var(--adjc-main);
  color: #fff !important;
  font-size: 1.05em;
  font-weight: bold;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--adjc-main-dark);
  transition: transform .1s, box-shadow .1s;
}
.adjc-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--adjc-main-dark); }

/* 質問 */
.adjc-progress {
  height: 8px;
  background: #dfeeed;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.adjc-progress-fill {
  width: 0;
  height: 100%;
  background: var(--adjc-main);
  transition: width .3s;
}
.adjc-qnum { font-size: 0.9em; font-weight: bold; color: var(--adjc-main-dark); margin-bottom: 4px !important; }
.adjc-qtext { font-size: 1.1em; font-weight: bold; min-height: 3.4em; }
.adjc-options { display: grid; gap: 10px; }
.adjc-option {
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 2px solid #cfe5e2;
  border-radius: 8px;
  color: var(--adjc-text);
  font-size: 1em;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.adjc-option:hover,
.adjc-option.is-selected { border-color: var(--adjc-main); background: #e8f6f4; }
.adjc-back {
  margin-top: 14px;
  padding: 4px 0;
  background: none;
  border: none;
  color: #777;
  font-size: 0.9em;
  cursor: pointer;
}

/* 結果 */
.adjc-result { text-align: center; }
.adjc-result-label { font-size: 0.9em; color: #777; margin-bottom: 2px !important; }
.adjc-level { font-size: 1.4em; font-weight: bold; margin-bottom: 4px !important; }
.adjc-level--low { color: var(--adjc-main-dark); }
.adjc-level--mild { color: #d4a017; }
.adjc-level--moderate { color: #e07b00; }
.adjc-level--high { color: #d62828; }
.adjc-score { font-size: 0.95em; color: #555; }
.adjc-message { text-align: left; background: #fff; padding: 14px; border-radius: 8px; }

.adjc-crisis {
  text-align: left;
  background: #fff4f4;
  border: 1px solid #f2b8b8;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  font-size: 0.95em;
}
.adjc-crisis ul { margin: 6px 0 0 !important; padding-left: 1.2em !important; }
.adjc-crisis a { white-space: nowrap; font-weight: bold; }

.adjc-cta-box {
  background: #fff;
  border: 2px dashed var(--adjc-accent);
  border-radius: 10px;
  padding: 16px 12px 10px;
  margin: 16px 0 6px;
}
.adjc-cta-lead { font-weight: bold; color: var(--adjc-accent); margin-bottom: 6px !important; }
.adjc-cta { background: var(--adjc-accent); box-shadow: 0 4px 0 #c94f1f; }
.adjc-cta:active { box-shadow: 0 1px 0 #c94f1f; }
.adjc-restart {
  margin-top: 6px;
  background: none;
  border: none;
  color: #777;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 480px) {
  .adjc { padding: 20px 14px; }
  .adjc-qtext { font-size: 1.02em; }
}
