/* ===== エニアグラム診断 フロントエンド CSS ===== */

.eq-quiz-root {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: #222;
  line-height: 1.6;
}

/* ─── 姓名入力 ─── */
.eq-name-row {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
}

.eq-name-row .eq-field-group {
  flex: 1;
}

.eq-field-group {
  margin-bottom: 1rem;
}

.eq-field-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  margin-bottom: .35rem;
}

.eq-required {
  color: #e24b4a;
  font-size: 0.8rem;
}

.eq-quiz-root input[type="text"],
.eq-quiz-root input[type="email"] {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color .2s;
}

.eq-quiz-root input[type="text"]:focus,
.eq-quiz-root input[type="email"]:focus {
  border-color: #534AB7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(83,74,183,.15);
}

.eq-quiz-root input.eq-input-error {
  border-color: #e24b4a;
}

/* ─── 同意ボックス ─── */
.eq-consent-box {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}

.eq-consent-text {
  font-size: 0.83rem;
  color: #444;
  line-height: 1.7;
  margin: 0 0 .75rem;
}

.eq-consent-text a {
  color: #534AB7;
  text-decoration: underline;
}

.eq-consent-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #222;
  cursor: pointer;
}

.eq-consent-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #534AB7;
  cursor: pointer;
  flex-shrink: 0;
}

/* ─── メール入力画面 ─── */
.eq-email-box {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.eq-email-box h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 .5rem;
  color: #111;
}

.eq-email-box p {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 1.5rem;
}

.eq-hint {
  font-size: 0.8rem;
  color: #999;
  margin-top: .75rem !important;
  margin-bottom: 0 !important;
}

.eq-error-msg {
  font-size: 0.8rem;
  color: #e24b4a;
  margin: -0.5rem 0 0.75rem;
  text-align: left;
}

/* ─── ボタン ─── */
.eq-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity .15s, background .15s;
  text-decoration: none;
  line-height: 1.4;
}

.eq-btn-primary {
  background: #534AB7;
  color: #fff;
}

.eq-btn-primary:hover { opacity: .88; }

.eq-btn-ghost {
  background: transparent;
  color: #555;
  border: 1px solid #ccc;
}

.eq-btn-ghost:hover { background: #f5f5f5; }

.eq-btn-ghost:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.eq-btn-full { width: 100%; display: block; text-align: center; }

.eq-btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 8px;
}

/* ─── プログレスバー ─── */
.eq-step-label {
  font-size: 0.75rem;
  color: #888;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}

.eq-progress-bg {
  background: #ebebeb;
  border-radius: 99px;
  height: 5px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.eq-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: #534AB7;
  transition: width .4s ease;
}

.eq-step-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
  margin: 0 0 .25rem;
}

.eq-step-sub {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 1rem;
}

.eq-cnt-badge {
  display: inline-block;
  background: #EEEDFE;
  color: #534AB7;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ─── 質問カード ─── */
.eq-q-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: .85rem 1rem;
  margin-bottom: .55rem;
  cursor: pointer;
  transition: border-color .15s;
}

.eq-q-card:hover { border-color: #bbb; }

.eq-q-card.eq-q-on {
  border-color: #534AB7;
  background: #EEEDFE;
}

.eq-q-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #534AB7;
  cursor: pointer;
}

.eq-q-card label {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.55;
  cursor: pointer;
}

.eq-q-card.eq-q-on label { color: #3C3489; }

/* ─── 結果画面 ─── */
.eq-result-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.eq-result-eyebrow {
  font-size: 0.7rem;
  letter-spacing: .1em;
  color: #999;
  margin-bottom: .4rem;
}

.eq-result-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  margin: 0;
}

.eq-tie-notice {
  background: #FAEEDA;
  border: 1px solid #EF9F27;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #633806;
  margin-bottom: .85rem;
}

.eq-result-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: .85rem;
}

.eq-badges { margin-bottom: .75rem; }

.eq-type-badge {
  display: inline-block;
  color: #fff;
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 6px 6px 0;
}

.eq-result-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111;
  margin: 0 0 .75rem;
}

.eq-result-desc {
  font-size: 0.875rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.eq-desc-block + .eq-desc-block { margin-top: .6rem; }

.eq-chart-wrap {
  max-width: 340px;
  margin: 0 auto 1.25rem;
}

/* ─── スコアグリッド ─── */
.eq-score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.eq-sc-cell {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

.eq-sc-cell.eq-sc-top {
  background: #EEEDFE;
}

.eq-sc-name {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 3px;
  line-height: 1.4;
}

.eq-sc-val {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

.eq-sc-cell.eq-sc-top .eq-sc-val { color: #534AB7; }

.eq-sc-unit {
  font-size: 0.7rem;
  color: #999;
  font-weight: 400;
}

/* ─── メール送信ステータス ─── */
.eq-mail-status {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  background: #f0f0f0;
  color: #555;
  margin-bottom: .75rem;
}

.eq-mail-ok {
  background: #EAF3DE;
  border: 1px solid #97C459;
  color: #3B6D11;
}

.eq-mail-warn {
  background: #FAEEDA;
  border: 1px solid #EF9F27;
  color: #633806;
}

.eq-result-actions {
  justify-content: center;
}

/* ─── 結果メッセージ（Gutenbergコンテンツ） ─── */
.eq-result-message {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e5e5;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.8;
}

.eq-result-message p {
  margin: 0 0 1em;
}

.eq-result-message p:last-child {
  margin-bottom: 0;
}

.eq-result-message a {
  color: #534AB7;
  text-decoration: underline;
}

.eq-result-message a:hover {
  opacity: .8;
}

/* ─── レスポンシブ ─── */
@media (max-width: 480px) {
  .eq-email-box { padding: 1.75rem 1.25rem; }
  .eq-score-grid { grid-template-columns: repeat(3, 1fr); }
  .eq-sc-name { font-size: 0.65rem; }
}
