/* ポップアップで1つずつ入れる（qform.js・2026-10-29） */
html.qf-lock, html.qf-lock body { overflow: hidden; }
.qf { position: fixed; inset: 0; z-index: 3000; background: rgba(15, 23, 42, .55); display: flex; justify-content: center; align-items: stretch; opacity: 0; transition: opacity .2s; touch-action: manipulation; }
.qf.on { opacity: 1; }
.qf-box { width: 100%; max-width: 620px; height: 100%; height: 100dvh; background: #fff; display: flex; flex-direction: column; overflow: hidden; color: #1f2a37; transform: translateY(16px); transition: transform .25s ease-out; }
.qf.on .qf-box { transform: none; }
@media (min-width: 700px) { .qf { align-items: center; padding: 20px; } .qf-box { height: min(780px, 94vh); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); } }
.qf-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px; padding-top: calc(10px + env(safe-area-inset-top)); flex: none; }
.qf-ic { width: 46px; height: 46px; border-radius: 14px; border: 1px solid #e2e8f0; background: #f8fafc; color: #1f2a37; font-size: 18px; cursor: pointer; flex: none; }
.qf-ic:hover { background: #f1f5f9; }
.qf-t { flex: 1; min-width: 0; text-align: center; }
.qf-t small { display: block; color: #64748b; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qf-t b { display: block; font-size: 18px; line-height: 1.4; font-weight: 800; }
.qf-bar { height: 5px; background: #eef2f7; margin: 0 14px; border-radius: 5px; flex: none; overflow: hidden; }
.qf-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7bbf24, #1a9ed8); border-radius: 5px; transition: width .25s; }
.qf-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px 16px 24px; }
.qf-foot { flex: none; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #eef2f7; background: #fff; }
.qf-next { width: 100%; min-height: 54px; border: 0; border-radius: 16px; background: linear-gradient(90deg, #5d8013, #7bbf24 45%, #1a9ed8); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(26, 158, 216, .25); }
.qf-next:disabled { opacity: .7; }
.qf-guide { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; background: #f2f8e6; color: #3f5a0e; font-size: 14px; line-height: 1.6; }
.qf-guide i { color: #7bbf24; margin-top: 4px; }
.qf-grid { display: grid; grid-template-columns: repeat(var(--c, 2), minmax(0, 1fr)); gap: 10px; }
.qf-big { min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #fff; color: #1f2a37; border: 2px solid #e2e8f0; border-radius: 18px; font-size: 16px; font-weight: 800; cursor: pointer; padding: 10px 8px; text-align: center; line-height: 1.35; transition: border-color .15s, background .15s, transform .1s; }
.qf-big i { font-size: 24px; color: #7bbf24; }
.qf-big small { font-size: 12px; font-weight: 500; color: #64748b; }
.qf-big:hover { border-color: #b7d98a; }
.qf-big:active { transform: scale(.98); }
.qf-big.on { border-color: #7bbf24; background: #f2f8e6; }
.qf-grid[style*="--c:1"] .qf-big { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 68px; padding: 12px 16px; gap: 14px; flex-wrap: wrap; }
.qf-grid[style*="--c:1"] .qf-big small { flex-basis: 100%; margin-left: 38px; margin-top: -6px; }
.qf-grid[style*="--c:4"] .qf-big, .qf-big.qf-sm { min-height: 56px; font-size: 15px; }
.qf-big.qf-wide { width: 100%; min-height: 70px; margin-bottom: 4px; }
.qf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.qf-chip { min-height: 48px; padding: 0 16px; background: #fff; color: #1f2a37; border: 2px solid #e2e8f0; border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.qf-chip i { color: #7bbf24; }
.qf-chip.on { background: #7bbf24; color: #fff; border-color: #7bbf24; }
.qf-chip.on i { color: #fff; }
.qf-chips.qf-mini .qf-chip { min-height: 36px; font-size: 13px; padding: 0 12px; border-width: 1.5px; }
.qf-sub { margin: 16px 0 8px; font-weight: 800; color: #64748b; font-size: 13.5px; }
.qf-field { margin-bottom: 14px; }
.qf-lbl { display: block; font-weight: 800; font-size: 14px; margin: 0 0 6px; }
.qf-lbl em { font-style: normal; font-size: 11px; color: #fff; background: #e11d48; border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.qf-lbl span { font-size: 11px; color: #64748b; font-weight: 500; margin-left: 4px; }
.qf-in { width: 100%; background: #fff; color: #1f2a37; border: 1.5px solid #cbd5e1; border-radius: 14px; padding: 13px 14px; font-size: 17px; font-family: inherit; }
.qf-in:focus { outline: none; border-color: #7bbf24; box-shadow: 0 0 0 4px rgba(123, 191, 36, .18); }
textarea.qf-in { line-height: 1.7; resize: vertical; }
.qf-small { margin: 6px 2px 0; color: #64748b; font-size: 13px; line-height: 1.6; }
.qf-err { color: #be123c; font-weight: 800; margin: 12px 0 0; }
.qf-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; border: 0; background: none; color: #1a9ed8; font-weight: 700; cursor: pointer; padding: 6px 2px; }
.qf-list { display: grid; gap: 8px; margin-top: 8px; }
.qf-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; text-align: left; background: #fff; border: 2px solid #e2e8f0; border-radius: 14px; padding: 10px 14px; font-size: 16px; font-weight: 700; color: #1f2a37; cursor: pointer; }
.qf-row span { flex: 1; min-width: 0; }
.qf-row i:first-child { color: #7bbf24; }
.qf-row i:last-child { color: #94a3b8; font-size: 12px; }
.qf-row:hover { border-color: #b7d98a; }
.qf-row[hidden] { display: none; }
.qf-fac { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; border: 2px solid #7bbf24; background: #f2f8e6; }
.qf-fac > i { font-size: 26px; color: #5d8013; }
.qf-fac b { display: block; font-size: 18px; }
.qf-fac small { color: #64748b; }
.qf-go { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 2px solid #7bbf24; background: linear-gradient(135deg, #f7fee7, #ecfeff); color: #1f2a37 !important; text-decoration: none; }
.qf-go > i { font-size: 26px; color: #5d8013; }
.qf-go div { flex: 1; }
.qf-go b { display: block; font-size: 16px; }
.qf-go small { color: #475569; }
.qf-go span { flex: none; font-weight: 800; color: #1a9ed8; white-space: nowrap; }
.qf-sum { margin: 0; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; }
.qf-sum div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #eef2f7; font-size: 14px; }
.qf-sum div:last-child { border-bottom: 0; }
.qf-sum dt { color: #64748b; font-weight: 700; }
.qf-sum dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.qf-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #f2f8e6; font-size: 14px; line-height: 1.6; }
.qf-note i { color: #5d8013; }
.qf-check { display: flex; align-items: center; gap: 14px; margin-top: 14px; background: #fff; border: 2px solid #e2e8f0; border-radius: 16px; padding: 14px; font-size: 15px; cursor: pointer; }
.qf-check input { position: absolute; opacity: 0; }
.qf-check span { width: 32px; height: 32px; border-radius: 10px; border: 2px solid #cbd5e1; display: grid; place-items: center; flex: none; }
.qf-check span i { display: none; color: #fff; }
.qf-check input:checked + span { background: #7bbf24; border-color: #7bbf24; }
.qf-check input:checked + span i { display: block; }
.qf-check:has(input:checked) { border-color: #7bbf24; }
.qf-check input:focus-visible + span { outline: 3px solid #1a9ed8; outline-offset: 2px; }
.qf-check b { font-weight: 700; }
/* ページの入口（大きなボタン） */
.qf-start { text-align: center; padding: 34px 22px; }
.qf-start .qf-start-ic { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 30px; background: #f2f8e6; color: #5d8013; }
.qf-start h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 8px; }
.qf-start p { color: #475569; line-height: 1.8; margin: 0 0 18px; }
.qf-start-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 420px; min-height: 60px; border: 0; border-radius: 99px; background: linear-gradient(90deg, #5d8013, #7bbf24 45%, #1a9ed8); color: #fff !important; font-size: 18px; font-weight: 800; cursor: pointer; text-decoration: none; box-shadow: 0 10px 26px rgba(26, 158, 216, .3); }
.qf-start-btn:hover { filter: brightness(1.05); }
.qf-steps3 { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; padding: 0; list-style: none; }
.qf-steps3 li { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 99px; padding: 6px 12px; }
.qf-steps3 b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #7bbf24; color: #fff; font-size: 12px; }
.qf-trial { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 16px; border-radius: 14px; background: #f2f8e6; color: #3f5a0e; font-size: 14px; font-weight: 700; }
.qf-alt { margin-top: 18px; font-size: 13px; color: #64748b; }
.qf-old summary { cursor: pointer; color: #64748b; font-size: 13px; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .qf, .qf-box, .qf-bar i { transition: none; } }
