/* ==========================================================================
   事故直後チェック（簡易チェック）
   - index.html の患者パネル内セクションと check.html 単独ページで共用
   - HP上では「できた / まだ」の回答だけを受け付け、結果はメールでのみ伝える
   - 保存するのはメールアドレスのみ（回答内容は保存しない）
   ========================================================================== */

.quick-check {
  --qc-teal: #0f4c52;
  --qc-teal-dark: #0a363b;
  --qc-green: #087f45;
  --qc-green-dark: #066237;
  --qc-paper: #fdfcf9;
  --qc-lavender: #e9f2ec;
  --qc-line: #d9e3dc;
  --qc-ink: #2e3a38;
  --qc-muted: #5f6a66;
  margin-top: clamp(36px, 5vw, 56px);
  background: var(--qc-paper);
  border: 2px solid var(--qc-line);
  border-radius: 26px;
  padding: clamp(24px, 4.5vw, 44px);
}

.quick-check-head .qc-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--qc-teal);
  background: var(--qc-lavender);
  border-radius: 100px;
  padding: 6px 14px;
  margin: 0 0 14px;
}

.quick-check-head h2,
.quick-check-head h1 {
  font-size: clamp(24px, 4.6vw, 32px);
  line-height: 1.45;
  margin: 0;
  color: var(--qc-ink);
}

.quick-check-head .qc-lead {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--qc-muted);
}

.qc-progress {
  margin: clamp(20px, 3.5vw, 28px) 0 0;
}

.qc-progress-track {
  height: 10px;
  border-radius: 100px;
  background: var(--qc-lavender);
  overflow: hidden;
}

.qc-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: var(--qc-teal);
  transition: width .3s ease;
}

.qc-progress-text {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--qc-muted);
  text-align: right;
}

.qc-progress-msg {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--qc-teal);
}

.qc-list {
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
}

.qc-item {
  border: 1px solid var(--qc-line);
  border-radius: 18px;
  padding: 16px 18px;
  background: #fff;
  transition: border-color .2s ease, background .2s ease;
}

.qc-item.is-answered {
  border-color: var(--qc-teal);
  background: #f2f8f4;
}

.qc-item-label {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  color: var(--qc-ink);
  padding: 0;
  margin: 0;
}

.qc-item .qc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--qc-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin-right: 9px;
  vertical-align: 2px;
}

.qc-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.qc-panel {
  appearance: none;
  cursor: pointer;
  min-height: 58px;
  padding: 12px 8px;
  border-radius: 16px;
  border: 2px solid var(--qc-line);
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  color: var(--qc-muted);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.qc-panel:active {
  transform: scale(.97);
}

.qc-panel-done[aria-pressed="true"],
.qc-panel-yes[aria-pressed="true"] {
  background: var(--qc-teal);
  border-color: var(--qc-teal);
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 76, 82, .25);
}

.qc-panel-todo[aria-pressed="true"],
.qc-panel-unknown[aria-pressed="true"] {
  background: #fbeee6;
  border-color: #dd8f7a;
  color: #9a4f36;
  box-shadow: 0 6px 16px rgba(154, 79, 54, .18);
}

.qc-panel-no[aria-pressed="true"] {
  background: #e8edf2;
  border-color: #7d8ea3;
  color: #40536b;
  box-shadow: 0 6px 16px rgba(64, 83, 107, .18);
}

.qc-choices-3 {
  grid-template-columns: repeat(3, 1fr);
}

.qc-choices-3 .qc-panel {
  font-size: 14px;
  padding: 12px 2px;
  white-space: nowrap;
}

.qc-panel:focus-visible {
  outline: 3px solid #f2b544;
  outline-offset: 2px;
}

/* ===== 結果送付フォーム ===== */

.qc-form {
  margin-top: clamp(22px, 4vw, 32px);
  border-top: 2px dashed var(--qc-line);
  padding-top: 22px;
}

.qc-form-title {
  font-weight: 800;
  font-size: 17px;
  color: var(--qc-teal-dark);
  margin: 0;
}

.qc-form-lead {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--qc-muted);
}

.qc-email-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--qc-ink);
  margin-top: 18px;
}

.qc-email-input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid var(--qc-line);
  border-radius: 14px;
  background: #fff;
  color: var(--qc-ink);
}

.qc-email-input:focus {
  outline: 3px solid #f2b544;
  outline-offset: 1px;
  border-color: var(--qc-teal);
}

.qc-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--qc-ink);
  cursor: pointer;
}

.qc-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--qc-teal);
}

.qc-privacy-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--qc-muted);
}

.qc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.qc-error {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  color: #b3261e;
  background: #fdecea;
  border-radius: 12px;
  padding: 10px 14px;
}

.qc-submit {
  appearance: none;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: 18px;
  border-radius: 100px;
  padding: 16px 26px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  background: var(--qc-teal);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 76, 82, .25);
  transition: background .15s ease, transform .15s ease;
}

.qc-submit:hover {
  background: var(--qc-teal-dark);
}

.qc-submit:active {
  transform: scale(.98);
}

.qc-submit:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

/* ===== 送信完了 ===== */

.qc-done {
  margin-top: clamp(22px, 4vw, 32px);
  border-top: 2px dashed var(--qc-line);
  padding-top: 22px;
  text-align: center;
}

.qc-done-title {
  font-weight: 800;
  font-size: 18px;
  color: var(--qc-teal-dark);
  margin: 0;
}

.qc-done p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--qc-muted);
  margin: 10px 0 0;
}

.qc-done-addr {
  font-weight: 800;
  color: var(--qc-ink);
  word-break: break-all;
}

.qc-mock-note {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #9a4f36;
  background: #fbeee6;
  border-radius: 10px;
  padding: 8px 14px;
}

@media (max-width: 760px) {
  .quick-check {
    border-radius: 22px;
    padding: 22px 18px 26px;
  }
  .qc-panel {
    min-height: 60px;
    font-size: 17px;
  }
}

.qc-or-line {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--qc-sub);
  text-align: center;
}

.qc-or-line a {
  color: #06c755;
  font-weight: 700;
}

.qc-line-btn {
  display: block;
  margin-top: 14px;
  background: #06c755;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 20px;
}

.qc-bentoku-note {
  margin: 10px 2px 0;
  font-size: 13.5px;
}

.qc-bentoku-note a {
  color: var(--qc-teal, #0f4c52);
  font-weight: 700;
}

.qc-form-el {
  margin: 0;
}
