/*
 * かんたん登録フォーム（トップページのファーストビュー / /register/ 共通）
 */

.qf {
  --qf-navy: #0d4b9c;
  --qf-cta: #eb3b00;
  --qf-cta-dark: #b82e00;
  --qf-select: #ffcc00;
  --qf-ink: #212121;
  --qf-muted: #616161;
  --qf-line: #cfd6e0;
  --qf-error: #d32f2f;
  color: var(--qf-ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.5;
  text-align: left;
}
.qf *,
.qf *::before,
.qf *::after {
  box-sizing: border-box;
}

/* 上部：バッジ・進捗 ---------------------------------------------------- */
.qf__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 0;
}
.qf__badge {
  display: flex;
  gap: 4px;
  margin: 0;
}
.qf__badge span {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff4d1;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.qf__progress {
  height: 6px;
  border-radius: 999px;
  background: #e8ecf2;
  overflow: hidden;
}
.qf__bar {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: var(--qf-cta);
  transition: width 0.3s ease;
}
.qf__count {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--qf-muted);
  white-space: nowrap;
}
.qf:not(.is-js) .qf__progress,
.qf:not(.is-js) .qf__count {
  visibility: hidden;
}

/* 質問 ------------------------------------------------------------------ */
.qf__form {
  margin: 0;
  padding: 0 20px 20px;
}
.qf__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.qf__step {
  min-width: 0;
  margin: 0;
  padding: 14px 0 0;
  border: 0;
}
.qf.is-js .qf__step:not(.is-active) {
  display: none;
}
.qf.is-js .qf__step.is-active {
  animation: qf-in 0.25s ease;
}
@keyframes qf-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .qf.is-js .qf__step.is-active { animation: none; }
  .qf__bar { transition: none; }
}
.qf__title {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  color: var(--qf-ink);
}
.qf__note {
  margin: 6px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--qf-muted);
}

/* 選択肢（タップで次へ） ----------------------------------------------- */
.qf__choices {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.qf__choices--1 { grid-template-columns: 1fr; }
.qf__choices--2 { grid-template-columns: repeat(2, 1fr); }
.qf__choices--3 { grid-template-columns: repeat(3, 1fr); }
.qf__choices--4 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qf__choice {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}
.qf__choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.qf__pick {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.qf__choice span,
.qf__pick span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 6px 8px;
  border: 1.5px solid var(--qf-line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: var(--qf-ink);
  transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
}
.qf__choices--1 .qf__choice span {
  font-size: 15px;
}
.qf__choice:hover span,
.qf__pick:hover span {
  border-color: var(--qf-navy);
}
.qf__pick:focus-visible span {
  outline: 3px solid rgba(13, 75, 156, 0.35);
  outline-offset: 1px;
}
.qf__pick.is-selected span {
  border-color: #e0b000;
  background: var(--qf-select);
  color: #000;
}
.qf__choices--4 .qf__pick span {
  min-height: 42px;
  padding: 4px 2px;
  font-size: 13px;
}
.qf__or {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--qf-muted);
}
.qf__or::before,
.qf__or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--qf-line);
}
.qf__or + .qf__select-wrap {
  margin-top: 8px;
}
.qf__choice input:focus-visible + span {
  outline: 3px solid rgba(13, 75, 156, 0.35);
  outline-offset: 1px;
}
.qf__choice input:checked + span {
  border-color: #e0b000;
  background: var(--qf-select);
  color: #000;
}
.qf__choice:active span,
.qf__pick:active span {
  transform: scale(0.97);
}

/* 都道府県 -------------------------------------------------------------- */
.qf__select-wrap {
  position: relative;
  margin-top: 14px;
}
.qf__select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--qf-muted);
  border-bottom: 2px solid var(--qf-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.qf__select,
.qf__input {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid var(--qf-line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 16px; /* iOS で入力時にズームしないよう16px以上 */
  color: var(--qf-ink);
  -webkit-appearance: none;
  appearance: none;
}
.qf__select {
  padding-right: 40px;
  font-weight: 700;
}
.qf__select:focus,
.qf__input:focus {
  outline: none;
  border-color: var(--qf-navy);
  box-shadow: 0 0 0 3px rgba(13, 75, 156, 0.15);
}
.qf__input::placeholder {
  color: #9e9e9e;
}
.qf__input.is-invalid {
  border-color: var(--qf-error);
  background: #fff6f6;
}

/* 連絡先 ---------------------------------------------------------------- */
.qf__field {
  margin-top: 12px;
}
.qf__label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--qf-ink);
}
.qf__label::after {
  content: "必須";
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--qf-cta);
  font-size: 10px;
  color: #fff;
  vertical-align: 1px;
}
.qf__error {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--qf-error);
}
.qf__error:empty {
  display: none;
}
.qf__error--global {
  margin-top: 12px;
  text-align: center;
}

/* ボタン ---------------------------------------------------------------- */
.qf__next,
.qf__submit {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  padding: 12px 16px 13px;
  border: 0;
  border-bottom: 4px solid var(--qf-cta-dark);
  border-radius: 999px;
  background: var(--qf-cta);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s;
}
.qf__next:hover,
.qf__submit:hover {
  filter: brightness(1.05);
}
.qf__next:active,
.qf__submit:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}
.qf__next:disabled {
  border-bottom-color: #8a8a8a;
  background: #c4c4c4;
  cursor: not-allowed;
}
.qf__submit.is-sending {
  opacity: 0.75;
  cursor: progress;
}
.qf.is-js .qf__step[data-key="prefecture"] .qf__next {
  display: none;
}
.qf__back {
  display: block;
  margin: 12px auto 0;
  padding: 4px 10px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--qf-muted);
  text-decoration: underline;
  cursor: pointer;
}
.qf__back::before {
  content: "‹ ";
}
.qf:not(.is-js) .qf__back {
  display: none;
}

.qf__privacy {
  margin: 10px 0 0;
  font-size: 11px;
  text-align: center;
  color: var(--qf-muted);
}
.qf__privacy a {
  color: var(--qf-navy);
  text-decoration: underline;
}
.qf__assure {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f6fa;
  list-style: none;
}
.qf__assure li {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  color: #1a3c6e;
}
.qf__assure li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 2px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #2e7d32;
  border-bottom: 2px solid #2e7d32;
  transform: rotate(-45deg);
}

/* トップページのフォームカード内 ---------------------------------------- */
/* 質問ごとに高さが変わってカードが上下に動かないよう、PC では最も長い質問に合わせる */
.form-card--quick {
  height: auto;
  min-height: 640px;
}
.form-card--quick .form-card__header {
  padding: 14px 20px;
  font-size: 18px;
  line-height: 1.4;
}
.form-card--quick .form-card__header small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}
@media screen and (max-width: 767px) {
  .form-card--quick {
    min-height: 0;
    scroll-margin-top: 12px;
  }
}
@media screen and (max-width: 360px) {
  .qf__head { padding: 12px 14px 0; }
  .qf__form { padding: 0 14px 18px; }
  .qf__badge span:last-child { display: none; }
  .qf__choice span { font-size: 12px; }
}

/* /register/ 単独ページ ---------------------------------------------------- */
body.qf-page {
  margin: 0;
  min-height: 100vh;
  background: #fcc000;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}
.qf-page__header {
  display: flex;
  justify-content: center;
  padding: 14px 16px;
  background: #111;
}
.qf-page__header img {
  display: block;
  width: 150px;
  height: auto;
}
.qf-page__main {
  width: min(100% - 32px, 460px);
  margin: 0 auto;
  padding: 20px 0 40px;
}
.qf-page__lead {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  color: #1a1a1a;
}
.qf-page__lead strong {
  font-size: 24px;
  font-weight: 900;
}
.qf-page .qf {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}
