@charset "utf-8";
/* =========================================================================
   受給可能性診断ツール（page-shindan.php 専用）
   ========================================================================= */

.shindan-hero { }
.shindan-hero-eyebrow { margin-bottom: 20px; }
.shindan-hero-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 18px;
}
.shindan-hero-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  max-width: 640px;
  margin: 0;
}

.sd-app { margin: 0 auto; }
.sd-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 48px);
  box-shadow: 0 30px 60px -40px rgba(35, 32, 28, .25);
}
.sd-screen.hidden { display: none; }

/* ---- スタート画面 ---- */
.sd-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--num); font-size: 11px; letter-spacing: .28em;
  font-weight: 700; color: var(--accent); text-transform: uppercase; margin-bottom: 18px;
}
.sd-badge::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.sd-start h2 { font-family: var(--serif); font-size: clamp(22px, 3vw, 27px); line-height: 1.5; margin: 0 0 16px; color: var(--ink); }
.sd-start > p { font-size: 16px; line-height: 1.9; color: var(--ink-3); margin: 0 0 24px; }
.sd-note {
  list-style: none; margin: 0 0 30px; padding: 18px 20px;
  background: var(--cream-2); border-left: 4px solid var(--accent);
  border-radius: var(--r-sm); font-size: 16px; line-height: 1.85; color: var(--ink-2);
}
.sd-note li { padding-left: 1.1em; position: relative; }
.sd-note li::before { content: "・"; position: absolute; left: 0; color: var(--accent); }
.sd-note li + li { margin-top: 4px; }

/* ---- ボタン共通 ---- */
.sd-btn-full { width: 100%; justify-content: center; border: none; cursor: pointer; font-family: inherit; }
.sd-btn-full:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none !important; }
.sd-btn-ghost {
  background: transparent; border: 1.5px solid var(--line); color: var(--ink-3);
  padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  font-family: inherit; cursor: pointer; transition: border-color .2s, color .2s;
}
.sd-btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.sd-btn-ghost[style*="hidden"] { visibility: hidden; }

/* ---- 進捗バー ---- */
.sd-progress-track { height: 6px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin-bottom: 30px; }
.sd-progress-bar { height: 100%; width: 0%; background: var(--accent); border-radius: 999px; transition: width .35s ease; }

/* ---- 設問 ---- */
.sd-question fieldset { border: none; margin: 0; padding: 0; }
.sd-question legend {
  font-family: var(--serif); font-size: clamp(18px, 2.6vw, 21px); line-height: 1.6;
  color: var(--ink); font-weight: 700; padding: 0; margin: 0 0 8px; width: 100%;
}
.sd-question small { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 20px; line-height: 1.7; }
.sd-option {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 15px 18px; margin-bottom: 10px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.sd-option:hover { border-color: var(--accent); }
.sd-option input { position: absolute; opacity: 0; pointer-events: none; }
.sd-option .radio-custom,
.sd-option .checkbox-custom {
  flex-shrink: 0; width: 20px; height: 20px; border: 1.5px solid var(--line);
  background: #fff; position: relative; transition: border-color .2s, background .2s;
}
.sd-option .radio-custom { border-radius: 50%; }
.sd-option .checkbox-custom { border-radius: 5px; }
.sd-option input:checked ~ .radio-custom,
.sd-option input:checked ~ .checkbox-custom { border-color: var(--accent); background: var(--accent); }
.sd-option .radio-custom::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff;
  opacity: 0; transition: opacity .2s;
}
.sd-option input:checked ~ .radio-custom::after { opacity: 1; }
.sd-option .checkbox-custom::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s;
}
.sd-option input:checked ~ .checkbox-custom::after { opacity: 1; }
.sd-option input:checked ~ span:last-child { color: var(--accent-deep); font-weight: 700; }
.sd-option.is-checked,
.sd-option:has(input:checked) { border-color: var(--accent); background: var(--cream-2); }
.sd-option span:last-child { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.sd-option input:disabled ~ .radio-custom,
.sd-option input:disabled ~ .checkbox-custom { opacity: .35; }
.sd-option:has(input:disabled) { opacity: .5; cursor: not-allowed; }

.sd-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }

/* ---- 連絡先フォーム ---- */
.sd-contact h2 { font-family: var(--serif); font-size: clamp(20px, 3vw, 24px); margin: 0 0 12px; color: var(--ink); }
.sd-contact > p { font-size: 16px; line-height: 1.85; color: var(--ink-3); margin: 0 0 28px; }
.sd-field { margin-bottom: 18px; }
.sd-field label { display: block; font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.sd-field .required { color: var(--accent); margin-left: 4px; }
.sd-field input[type="text"],
.sd-field input[type="tel"],
.sd-field select,
.sd-field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-gray); font-size: 14.5px; color: var(--ink); font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.sd-field input:focus, .sd-field select:focus, .sd-field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(231, 86, 133, .12);
}
.sd-field textarea { min-height: 96px; resize: vertical; line-height: 1.8; }
.sd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* ---- 結果画面 ---- */
.sd-result-box { border-radius: var(--r-md); padding: 26px 24px; text-align: center; margin-bottom: 22px; }
.sd-result-box .sd-result-title { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.sd-result-box.is-high { background: #f0f9f1; border: 1.5px solid #8bc28d; color: #3c7a44; }
.sd-result-box.is-possible { background: #fff8ec; border: 1.5px solid #f4c067; color: #96700f; }
.sd-result-box.is-low { background: #fdf0f4; border: 1.5px solid var(--pink-soft); color: var(--accent-deep); }
.sd-result-desc { font-size: 16px; line-height: 1.9; color: var(--ink-2); margin: 0 0 30px; }
.sd-consult h3 { font-family: var(--serif); font-size: 17px; margin: 0 0 10px; color: var(--ink); }
.sd-consult > p { font-size: 16px; line-height: 1.85; color: var(--ink-3); margin: 0 0 20px; }
.sd-result-buttons { display: flex; flex-direction: column; gap: 12px; }

/* ---- ローディング ---- */
.sd-loading { text-align: center; padding: 40px 0; }
.sd-spinner {
  width: 44px; height: 44px; margin: 0 auto 20px; border-radius: 50%;
  border: 4px solid var(--cream-2); border-top-color: var(--accent);
  animation: sd-spin .8s linear infinite;
}
@keyframes sd-spin { to { transform: rotate(360deg); } }
.sd-loading p { font-size: 13.5px; color: var(--ink-3); margin: 0; }

@media (max-width: 640px) {
  .sd-nav { flex-direction: row; }
  .sd-nav .sd-btn-ghost { padding: 14px 18px; font-size: 13px; }
}
