/* 一般構造計算依頼フォーム（新受付）。
 * 色・フォント・見出しは物件管理ダッシュボード（static/css/dp-dashboard.css の :root）に合わせる。 */
:root {
  --rq-primary: #2563eb;
  --rq-primary-hover: #1d4ed8;
  --rq-primary-soft: #eff6ff;
  --rq-primary-line: #bfdbfe;
  --rq-navy: #1e3a5f;
  --rq-bg: #f5f5f4;
  --rq-card: #ffffff;
  --rq-line: #e5e5e5;
  --rq-line-strong: #d4d4d4;
  --rq-text: #1a1a1a;
  --rq-sub: #5c5c5c;
  --rq-faint: #8a8a8a;
  --rq-success: #15803d;
  --rq-success-soft: #dcfce7;
  --rq-danger: #b91c1c;
  --rq-danger-soft: #fef2f2;
  --rq-warn: #92400e;
  --rq-warn-soft: #fffbeb;
  --rq-radius: 10px;
  --rq-radius-sm: 8px;
  --rq-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --rq-ring: 0 0 0 3px rgba(37, 99, 235, .25);
  --rq-bar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--rq-bg);
  color: var(--rq-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rq-primary); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- 見出し */

.rq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
  height: 56px;
  background: linear-gradient(135deg, var(--rq-navy), var(--rq-primary));
  color: #fff;
}
.rq-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.rq-brand-logo { height: 26px; width: auto; filter: brightness(10); }
.rq-back {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 999px;
  color: #fff; font-size: 13px; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .45);
  transition: background .15s;
}
.rq-back:hover { background: rgba(255, 255, 255, .14); }
.rq-back svg { width: 16px; height: 16px; }

.rq-hero { background: var(--rq-card); border-bottom: 1px solid var(--rq-line); }
.rq-hero-inner { max-width: 1120px; margin: 0 auto; padding: 28px 24px 24px; }
.rq-eyebrow { margin: 0 0 4px; color: var(--rq-primary); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.rq-title { margin: 0; font-size: 28px; line-height: 1.35; font-weight: 700; letter-spacing: .01em; }
.rq-lead { margin: 6px 0 16px; color: var(--rq-sub); }
.rq-prep { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rq-prep li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--rq-primary-soft); color: var(--rq-navy);
  font-size: 13px; font-weight: 600;
}
.rq-prep svg { width: 16px; height: 16px; color: var(--rq-primary); }

/* ---------------------------------------------------------------- 全体の配置 */

.rq-main { max-width: 1120px; margin: 0 auto; padding: 24px 24px 0; }

.rq-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 64px 0; color: var(--rq-sub); }
.rq-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--rq-primary-line); border-top-color: var(--rq-primary);
  animation: rq-spin .8s linear infinite;
}
@keyframes rq-spin { to { transform: rotate(360deg); } }

.rq-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.rq-sections { min-width: 0; padding-bottom: calc(var(--rq-bar-h) + 32px); }

/* 左の目次 */
.rq-steps { position: sticky; top: 24px; }
.rq-steps-title { margin: 0 0 8px; padding-left: 12px; color: var(--rq-faint); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.rq-steps ol { margin: 0; padding: 0; list-style: none; }
.rq-steps a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--rq-radius-sm);
  color: var(--rq-sub); font-size: 14px; text-decoration: none;
  transition: background .15s, color .15s;
}
.rq-steps a:hover { background: #ebebea; color: var(--rq-text); }
.rq-steps a.is-current { background: var(--rq-card); color: var(--rq-text); font-weight: 600; box-shadow: var(--rq-shadow); }
.rq-step-dot {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--rq-line-strong); background: var(--rq-card);
  display: grid; place-items: center;
}
.rq-steps a.is-done .rq-step-dot { border-color: var(--rq-success); background: var(--rq-success); }
.rq-steps a.is-done .rq-step-dot::after {
  content: ""; width: 8px; height: 4px; margin-top: -2px;
  border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.rq-steps a.is-invalid .rq-step-dot { border-color: var(--rq-danger); }

/* ---------------------------------------------------------------- カード */

.rq-card {
  background: var(--rq-card);
  border: 1px solid var(--rq-line);
  border-radius: var(--rq-radius);
  box-shadow: var(--rq-shadow);
  padding: 24px 28px 28px;
  margin-bottom: 20px;
  scroll-margin-top: 16px;
}
.rq-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.rq-card-head h2 { margin: 0; font-size: 18px; line-height: 1.5; display: flex; align-items: center; gap: 8px; }
.rq-card-head p { margin: 2px 0 0; color: var(--rq-sub); font-size: 13px; }
.rq-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rq-primary-soft); color: var(--rq-primary);
  font-size: 14px; font-weight: 700;
}
.rq-card.is-done .rq-num { background: var(--rq-success); color: #fff; }

.rq-req, .rq-opt {
  display: inline-block; margin-left: 8px; padding: 0 6px;
  border-radius: 4px; font-size: 11px; font-weight: 700; font-style: normal; line-height: 18px;
  vertical-align: 1px; white-space: nowrap; flex: none;
}
.rq-req { background: var(--rq-danger-soft); color: var(--rq-danger); }
.rq-opt { background: #f0f0ef; color: var(--rq-faint); }
.rq-card-head p .rq-req { margin: 0 2px; }

/* ---------------------------------------------------------------- 入力欄 */

.rq-field { display: block; margin-bottom: 18px; }
.rq-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.rq-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.rq-grid-2 > .rq-field { margin-bottom: 18px; }

.rq-field input,
.rq-other input,
.rq-field textarea {
  display: block; width: 100%;
  min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--rq-line-strong); border-radius: var(--rq-radius-sm);
  background: #fff; color: var(--rq-text);
  font: inherit; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.rq-field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.rq-field input::placeholder, .rq-other input::placeholder, .rq-field textarea::placeholder { color: #a3a3a3; }
.rq-field input:hover, .rq-other input:hover, .rq-field textarea:hover { border-color: #a3a3a3; }
.rq-field input:focus, .rq-other input:focus, .rq-field textarea:focus { outline: none; border-color: var(--rq-primary); box-shadow: var(--rq-ring); }
.rq-field input:disabled, .rq-field textarea:disabled { background: #f5f5f4; color: var(--rq-faint); }
.rq-help { margin: -8px 0 0; color: var(--rq-sub); font-size: 13px; }
.rq-note { margin: 12px 0 0; color: var(--rq-sub); font-size: 13px; }

/* ---------------------------------------------------------------- 選択タイル */

.rq-choice-group { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.rq-choice-group:last-child { margin-bottom: 0; }
.rq-choice-group legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.rq-sub { margin-top: -10px; padding: 14px 16px; border-radius: var(--rq-radius-sm); background: #fafaf9; border: 1px solid var(--rq-line); }
/* 枠のある fieldset では legend が枠線に乗るので、中へ下ろす */
.rq-sub legend { float: left; width: 100%; }
.rq-sub legend + * { clear: both; }
.rq-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.rq-choices-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rq-choice { position: relative; display: block; cursor: pointer; }
.rq-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rq-choice > span {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 9px 16px 9px 12px;
  border: 1px solid var(--rq-line-strong); border-radius: var(--rq-radius-sm);
  background: #fff; font-size: 15px; line-height: 1.4;
  transition: border-color .15s, background .15s, box-shadow .15s;
  user-select: none;
}
.rq-choice > span::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid #a3a3a3; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.rq-choice:hover > span { border-color: #a3a3a3; }
.rq-choice input:checked + span {
  border-color: var(--rq-primary); background: var(--rq-primary-soft); color: var(--rq-navy); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--rq-primary);
}
.rq-choice input:checked + span::before { border: 5px solid var(--rq-primary); }
.rq-choice input:focus-visible + span { box-shadow: var(--rq-ring); }
/* 見出しと説明を縦に積む（丸印は左の列で2行ぶん） */
.rq-choice-rich > span {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: start;
  padding-top: 12px; padding-bottom: 12px; height: 100%;
}
.rq-choice-rich > span::before { grid-row: 1 / 3; margin-top: 3px; }
.rq-choice-rich strong { grid-column: 2; font-size: 15px; }
.rq-choice-rich small { grid-column: 2; margin-top: 2px; color: var(--rq-sub); font-size: 12px; font-weight: 400; }

.rq-other { margin-top: 10px; max-width: 420px; }

/* ---------------------------------------------------------------- チェックリスト */

.rq-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.rq-check { position: relative; display: block; cursor: pointer; }
.rq-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rq-check > span {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--rq-line-strong); border-radius: var(--rq-radius-sm);
  background: #fff; font-size: 14px; line-height: 1.4;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.rq-check > span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid #a3a3a3; background: #fff center / 12px no-repeat;
}
.rq-check:hover > span { border-color: #a3a3a3; }
.rq-check input:checked + span { border-color: var(--rq-primary); background: var(--rq-primary-soft); color: var(--rq-navy); }
.rq-check input:checked + span::before {
  border-color: var(--rq-primary); background-color: var(--rq-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.rq-check input:focus-visible + span { box-shadow: var(--rq-ring); }
.rq-check .rq-req { margin-left: auto; }

/* ---------------------------------------------------------------- 添付 */

.rq-attach { margin-bottom: 22px; }
.rq-attach:last-child, .rq-grid-2 > .rq-attach { margin-bottom: 0; }
.rq-attach-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rq-attach-head .rq-label { margin: 0; }
.rq-attach-types { color: var(--rq-faint); font-size: 12px; }

.rq-drop {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 84px; padding: 16px;
  border: 1.5px dashed var(--rq-line-strong); border-radius: var(--rq-radius);
  background: #fafaf9; color: var(--rq-sub);
  cursor: pointer; text-align: center;
  transition: border-color .15s, background .15s, color .15s;
}
.rq-attach-compact .rq-drop { min-height: 60px; }
.rq-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.rq-drop svg { width: 24px; height: 24px; color: var(--rq-primary); flex: none; }
.rq-drop strong { color: var(--rq-primary); }
.rq-drop:hover, .rq-drop.is-dragover { border-color: var(--rq-primary); background: var(--rq-primary-soft); color: var(--rq-navy); }
.rq-drop:focus-within { border-color: var(--rq-primary); box-shadow: var(--rq-ring); }
.rq-attach.is-invalid .rq-drop { border-color: var(--rq-danger); background: var(--rq-danger-soft); }

.rq-files { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.rq-files:empty { display: none; }
.rq-file {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--rq-line); border-radius: var(--rq-radius-sm); background: #fff;
}
.rq-file-ext {
  min-width: 40px; padding: 2px 6px; border-radius: 4px;
  background: #f0f0ef; color: var(--rq-sub);
  font-size: 11px; font-weight: 700; text-align: center; text-transform: uppercase;
}
.rq-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.rq-file-name small { margin-left: 6px; color: var(--rq-faint); font-size: 12px; }
.rq-file-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--rq-sub); white-space: nowrap; }
.rq-file-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rq-line-strong); }
.rq-file-uploading .rq-file-status { color: var(--rq-primary); }
.rq-file-uploading .rq-file-status::before { background: var(--rq-primary); animation: rq-pulse 1s ease-in-out infinite; }
.rq-file-done .rq-file-status { color: var(--rq-success); }
.rq-file-done .rq-file-status::before { background: var(--rq-success); }
.rq-file-error { border-color: #fecaca; background: var(--rq-danger-soft); }
.rq-file-error .rq-file-status { color: var(--rq-danger); white-space: normal; }
.rq-file-error .rq-file-status::before { background: var(--rq-danger); }
@keyframes rq-pulse { 50% { opacity: .3; } }
.rq-file-remove {
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px;
  display: grid; place-items: center;
  background: transparent; color: var(--rq-faint); cursor: pointer;
}
.rq-file-remove:hover { background: #f0f0ef; color: var(--rq-danger); }
.rq-file-remove:focus-visible { outline: none; box-shadow: var(--rq-ring); }
.rq-file-remove svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- ご依頼者 */

.rq-identity {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: var(--rq-radius-sm);
  background: linear-gradient(135deg, #f8fafc, var(--rq-primary-soft));
  border: 1px solid var(--rq-primary-line);
}
.rq-avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--rq-navy), var(--rq-primary)); color: #fff;
  font-size: 18px; font-weight: 700;
}
.rq-identity-body { margin: 0; min-width: 0; }
.rq-identity-body dd { margin: 0; }
.rq-identity-name { font-size: 16px; font-weight: 700; }
.rq-identity-company { color: var(--rq-sub); font-size: 13px; }
.rq-identity-email { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; word-break: break-all; }
.rq-tag { padding: 0 8px; border-radius: 999px; background: #fff; border: 1px solid var(--rq-primary-line); color: var(--rq-primary); font-size: 11px; font-weight: 700; line-height: 20px; white-space: nowrap; }

.rq-disclosure { margin-top: 14px; }
.rq-disclosure summary {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--rq-primary); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none;
}
.rq-disclosure summary::-webkit-details-marker { display: none; }
.rq-disclosure summary::before {
  content: ""; width: 7px; height: 7px; margin-right: 2px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg);
  transition: transform .15s;
}
.rq-disclosure[open] summary::before { transform: rotate(45deg); }
.rq-disclosure-body { margin-top: 14px; }
.rq-disclosure-body .rq-help { margin: 0 0 14px; }

/* ---------------------------------------------------------------- 誤り */

.rq-field.is-invalid input, .rq-field.is-invalid textarea { border-color: var(--rq-danger); }
.rq-field.is-invalid input:focus { box-shadow: 0 0 0 3px rgba(185, 28, 28, .2); }
.rq-choice-group.is-invalid .rq-choice > span,
.rq-checklist.is-invalid .rq-check input:not(:checked) + span { border-color: #fca5a5; }
.rq-choice-group.is-invalid legend, .rq-field.is-invalid .rq-label { color: var(--rq-danger); }

.rq-callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; margin-bottom: 20px;
  border-radius: var(--rq-radius); border: 1px solid;
  font-size: 14px;
}
.rq-callout:focus { outline: none; box-shadow: var(--rq-ring); }
.rq-callout > svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.rq-callout p { margin: 0; }
.rq-callout-warn { background: var(--rq-warn-soft); border-color: #fcd34d; color: var(--rq-warn); }
.rq-callout-error { flex-direction: column; gap: 8px; background: var(--rq-danger-soft); border-color: #fca5a5; color: var(--rq-danger); }
.rq-callout-error strong { font-size: 15px; }
.rq-callout-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rq-error-list { margin: 0; padding-left: 1.2em; }
.rq-error-list button {
  padding: 0; border: 0; background: none; color: inherit; font: inherit;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}

/* ---------------------------------------------------------------- ボタン */

.rq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid var(--rq-line-strong); border-radius: var(--rq-radius-sm);
  background: #fff; color: var(--rq-text);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s;
}
.rq-btn:hover { background: #f5f5f4; }
.rq-btn:focus-visible { outline: none; box-shadow: var(--rq-ring); }
.rq-btn-primary { background: var(--rq-primary); border-color: var(--rq-primary); color: #fff; }
.rq-btn-primary:hover { background: var(--rq-primary-hover); border-color: var(--rq-primary-hover); }
.rq-btn:disabled { opacity: .5; cursor: not-allowed; }
.rq-btn-block { display: flex; width: 100%; }
.rq-btn-lg { min-height: 48px; padding: 12px 32px; font-size: 16px; }

/* ---------------------------------------------------------------- 送信の帯 */

.rq-submitbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--rq-line);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
}
.rq-submitbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: flex-end; gap: 24px;
  min-height: var(--rq-bar-h);
}
.rq-progress { flex: 0 1 320px; min-width: 0; }
.rq-progress-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; font-size: 13px; color: var(--rq-sub); }
.rq-progress-text strong { color: var(--rq-text); font-size: 15px; }
.rq-progress-status { flex-basis: 100%; color: var(--rq-primary); font-weight: 600; }
.rq-progress-status:empty { display: none; }
.rq-progress-bar { height: 6px; margin-top: 6px; border-radius: 999px; background: #ebebea; overflow: hidden; }
.rq-progress-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--rq-primary); transition: width .3s ease; }
.rq-progress.is-complete .rq-progress-bar span { background: var(--rq-success); }

/* ---------------------------------------------------------------- 入口・受付後 */

.rq-gate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: 8px auto 64px; align-items: start; }
.rq-gate-single { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.rq-gate-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 28px; border-radius: var(--rq-radius);
  background: var(--rq-card); border: 1px solid var(--rq-line); box-shadow: var(--rq-shadow);
}
.rq-gate-card h2 { margin: 0 0 8px; font-size: 19px; }
.rq-gate-card > p { margin: 0 0 20px; color: var(--rq-sub); }
.rq-gate-card .rq-btn-block { margin-top: auto; }
.rq-gate-card .rq-btn-block + .rq-note { margin-top: 14px; }
.rq-gate-primary { border-color: var(--rq-primary-line); box-shadow: 0 4px 24px rgba(37, 99, 235, .08); }
.rq-gate-icon {
  width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--rq-primary-soft); color: var(--rq-primary);
}
.rq-gate-icon svg { width: 24px; height: 24px; }
.rq-gate-icon-sub { background: #f0f0ef; color: var(--rq-sub); }

.rq-done { align-items: center; text-align: center; padding: 40px 32px 32px; }
.rq-done-icon {
  width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rq-success-soft); color: var(--rq-success);
}
.rq-done-icon svg { width: 32px; height: 32px; stroke-width: 2.4; }
.rq-done h2 { font-size: 22px; }
.rq-summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px;
  width: 100%; margin: 0 0 24px; padding: 16px 20px;
  border-radius: var(--rq-radius-sm); background: #fafaf9; border: 1px solid var(--rq-line);
  text-align: left; font-size: 14px;
}
.rq-summary dt { color: var(--rq-sub); }
.rq-summary dd { margin: 0; font-weight: 600; word-break: break-all; }

/* ---------------------------------------------------------------- アカウントの申込 */

.rq-flow { list-style: none; margin: 0 0 20px; padding: 0; width: 100%; display: grid; gap: 10px; }
.rq-flow li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.rq-flow small { display: block; color: var(--rq-sub); font-size: 12px; font-weight: 400; }
.rq-flow-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rq-primary-soft); color: var(--rq-primary); font-size: 13px; font-weight: 700;
}
.rq-btn-outline { border-color: var(--rq-primary); color: var(--rq-primary); }
.rq-btn-outline:hover { background: var(--rq-primary-soft); }
.rq-apply { width: 100%; margin-top: 4px; }
.rq-apply .rq-field { margin-bottom: 14px; }
.rq-apply .rq-callout { margin-bottom: 14px; }
.rq-apply .rq-note { text-align: center; }
.rq-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rq-apply-done {
  display: flex; gap: 12px; align-items: flex-start;
  width: 100%; padding: 16px 18px; border-radius: var(--rq-radius-sm);
  background: var(--rq-success-soft); border: 1px solid #bbf7d0; font-size: 14px;
}
.rq-apply-done:focus { outline: none; box-shadow: var(--rq-ring); }
.rq-apply-done strong { color: var(--rq-success); font-size: 15px; }
.rq-apply-done p { margin: 6px 0 0; color: var(--rq-text); }
.rq-apply-done .rq-note { margin-top: 6px; color: var(--rq-sub); }
.rq-apply-done-icon {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--rq-success); color: #fff;
}
.rq-apply-done-icon svg { width: 16px; height: 16px; stroke-width: 2.6; }
.rq-gate-card { position: relative; }

/* ---------------------------------------------------------------- 狭い画面 */

@media (max-width: 960px) {
  .rq-layout { grid-template-columns: minmax(0, 1fr); }
  .rq-steps { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .rq-header { padding: 0 16px; height: 52px; }
  .rq-brand { font-size: 14px; }
  .rq-brand-logo { height: 22px; }
  .rq-back { padding: 5px 10px; font-size: 12px; }
  .rq-hero-inner { padding: 20px 16px 18px; }
  .rq-title { font-size: 22px; }
  .rq-main { padding: 16px 16px 0; }
  .rq-card { padding: 18px 16px 20px; border-radius: var(--rq-radius-sm); margin-bottom: 14px; }
  .rq-card-head { margin-bottom: 16px; gap: 10px; }
  .rq-card-head h2 { font-size: 17px; }
  .rq-grid-2, .rq-choices-wide, .rq-gate { grid-template-columns: minmax(0, 1fr); }
  .rq-grid-2 > .rq-attach + .rq-attach { margin-top: 18px; }
  .rq-choices { gap: 6px; }
  .rq-choice > span { padding-right: 14px; font-size: 14px; }
  .rq-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .rq-check > span { padding: 8px 10px; font-size: 13px; gap: 8px; }
  .rq-check .rq-req { margin-left: 0; }
  .rq-file { grid-template-columns: auto minmax(0, 1fr) auto; }
  .rq-file-status { grid-column: 2 / 3; grid-row: 2; }
  .rq-file-remove { grid-row: 1 / 3; grid-column: 3; }
  .rq-submitbar-inner { padding: 10px 16px; gap: 14px; justify-content: space-between; }
  .rq-progress { flex: 1 1 auto; }
  .rq-btn-lg { padding: 12px 20px; font-size: 15px; }
  .rq-gate-card { padding: 22px 18px; }
}

/* 管理者の代理入力の印（2026-11-07） */
.rq-proxy-banner { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; font-size: 13px; line-height: 1.6; }
.rq-proxy-banner[hidden] { display: none; }

/* 長期・省エネの同時依頼（2026-11-07） */
.rq-chouki { margin-top: 16px; padding: 16px; border: 1px solid var(--rq-primary-line); border-radius: 10px; background: #f8fafc; display: grid; gap: 14px; }
.rq-chouki[hidden], .rq-chouki [hidden] { display: none; }
.rq-chouki-lead { margin: 0; font-size: 13px; color: var(--rq-navy); }
.rq-legend-note { margin-left: 8px; font-size: 12px; font-weight: 400; color: #6b7280; }
.rq-hint { display: block; margin-top: 4px; font-size: 12px; color: #6b7280; }
