/* v1.0.0: original pastel design, accessibility and mobile refinements */
:root{--sub:#6d617f;--accent:#8056b4;--err:#b4234c}
.wrap{padding-bottom:max(36px,env(safe-area-inset-bottom));padding-top:max(16px,env(safe-area-inset-top))}
button,input,select,textarea,a{-webkit-tap-highlight-color:transparent}button,a,input,textarea,select{touch-action:manipulation}button{min-height:44px}button:disabled{cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #534578;outline-offset:3px}
input[type=text],input[type=url],input[type=date],input[type=email],input[type=password],textarea,select{font-size:16px!important}
.chips input,.opts input,.motifs input{display:block;position:absolute;opacity:0;width:1px;height:1px}
.chips label,.opts label,.motifs label{position:relative}
.chips input:focus-visible+span,.opts input:focus-visible+span,.motifs input:focus-visible+span{outline:3px solid #534578;outline-offset:2px}
.chips span{min-height:44px;display:flex;align-items:center}.opts span{min-height:76px}.motifs span{min-height:76px}
.pvlabel button{padding:6px 10px;min-height:44px}.pvbox{position:relative}.pvbox:has(#pv.mini){position:sticky;top:0}.pvcard{overflow-wrap:anywhere}.pvbody.tabs .pvtabs{flex-wrap:wrap}.pvtabs span{flex:1 1 40%;color:#262033!important}.pvname{text-shadow:none!important}.pvbody.cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.save-row{display:flex;align-items:center;gap:8px;margin-bottom:12px}.save-row small{flex:1;color:var(--sub);font-size:12px}.save-row button{padding:5px 10px}.page,.confirm{scroll-margin-top:110px}h2:focus{outline:none}
.honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.consent{display:flex;gap:8px;align-items:center;font-size:14px}.consent input{width:20px;height:20px;flex-shrink:0;accent-color:var(--accent)}
.edit-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.confirm.reviewing{outline:3px solid var(--accent)}.confirm dd{overflow-wrap:anywhere;word-break:normal}.nav{padding-bottom:env(safe-area-inset-bottom)}.copybox{font-size:14px;overflow-wrap:anywhere}footer{text-align:center;font-size:12px;margin-top:28px;color:var(--sub)}footer a{color:var(--sub)}
@media(max-width:360px){.wrap{padding-left:12px;padding-right:12px}.card{padding:16px 12px}.motifs{grid-template-columns:repeat(3,1fr)}.sw{gap:7px}.opts span{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.pvname,.pvsub{color:#262033!important;background:#fffffff2;width:fit-content;margin-inline:auto;padding:2px 8px;border-radius:8px}.pvsub{margin-top:4px}
[hidden]{display:none!important}
/* v1.1: clearer questions and text-first requests */
body{background:#f7f4fb;font-family:"Zen Maru Gothic",system-ui,sans-serif}.wrap{max-width:620px;padding-left:18px;padding-right:18px}header{padding:14px 8px 8px}h1{font-size:24px}header p{font-size:14px;max-width:440px;margin:8px auto}.card{border:1px solid #e1d7ed;box-shadow:0 5px 18px #3d355008;padding:24px 20px}.card h2{font-size:22px;margin-bottom:10px}.card .lead{font-size:14px;color:#5c506e}.q{padding-top:14px;border-top:1px solid #eee7f4;margin-top:26px!important;font-size:16px!important}.card>.q:first-of-type{border-top:0}.hint{font-size:13px}.pvbox{position:relative!important;padding:10px 18px 12px}.pvlabel{color:#4f4165;font-size:13px;font-weight:700}.pvlabel button{color:#8056b4;background:#fff;border:1px solid #d4c5e7;border-radius:12px;font-weight:700}#pv.mini .pvtop{padding:10px}#pv.mini .pvicon,#pv.mini .pvsub,#pv.mini .floaty{display:none}#pv.mini .pvname{font-size:15px}.text-preview-notice{font-size:13px;line-height:1.7;margin:0;padding:14px;background:#fff;border-radius:14px}.text-only #pv,.text-only .choice-area{display:none!important}
.steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:16px 0 8px}.steps button{width:auto;height:auto;min-height:64px;border-radius:12px;padding:7px 2px;text-align:center;display:flex;flex-direction:column;align-items:center;background:#eae4f1;font-size:11px;color:#685c78}.steps b{font-size:16px}.steps button.on{background:#ede2fa;color:#67458d}.steps button.current{background:#8056b4;color:#fff;box-shadow:0 3px 8px #8056b430}#stepLabel{font-size:15px;font-weight:700;color:#594170;margin-bottom:12px}.save-row{border-bottom:1px solid #e1d7ed;padding-bottom:14px}
.input-mode{border:1px solid #d6c7e7;background:white;border-radius:18px;padding:14px 16px;margin:0 0 18px}.input-mode legend{font-size:15px;font-weight:700;padding:0 6px}.input-mode p{font-size:12px;color:#6d617f;margin:0 0 10px}.input-mode>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.input-mode label{cursor:pointer;position:relative}.input-mode input{position:absolute;width:1px;height:1px;opacity:0}.input-mode span{display:block;border:2px solid #e4daee;border-radius:12px;padding:12px 10px;font-weight:700;font-size:14px}.input-mode small{display:block;font-size:11px;font-weight:500;color:#6d617f;margin-top:3px}.input-mode input:checked+span{background:#f4edff;border-color:#8056b4;box-shadow:0 0 0 1px #8056b4}.input-mode input:focus-visible+span{outline:3px solid #534578;outline-offset:2px}.optional{margin-left:8px;display:inline-block;padding:1px 7px;background:#eee9f4;color:#695a7d;font-size:10px;border-radius:999px}.free-field{border:1px solid #ded0ed;border-left:4px solid #a77ee8;border-radius:14px;padding:12px 14px;margin-top:18px;background:#fbf9ff}.free-field .q{margin:0 0 8px!important;border:0;padding:0;font-size:14px!important}.free-field small{display:block;font-size:11px;color:#6d617f;margin-top:7px}.free-field textarea{min-height:94px;line-height:1.7;border-color:#d7c9e6}textarea::placeholder,input::placeholder{color:#82788c;opacity:1}
.opts span,.motifs span,.chips span{border:2px solid #ded5e9}.opts input:checked+span,.motifs input:checked+span{background:#f1e8fc;border-color:#8056b4}.chips span,.opts span,.motifs span{position:relative}.chips input:checked+span::before,.opts input:checked+span::after,.motifs input:checked+span::after{content:'✓';position:absolute;top:-6px;right:-4px;width:20px;height:20px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;background:#8056b4;color:#fff;font-size:11px;font-weight:700;line-height:1;margin:0;pointer-events:none}.feat label:has(input:checked){background:#f1e8fc;border:2px solid #8056b4}.feat input{width:20px;height:20px;flex:none}.opts span small{font-size:12px;color:#62556f}.motifs span{font-size:13px}.sw{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.sw button{aspect-ratio:auto;border-radius:12px;min-height:78px;border:2px solid #e3d9ed;background:#fff!important;box-shadow:none;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:0 2px;font:inherit;color:#4d405f}.sw button::before{content:'';width:30px;height:30px;border-radius:50%;background:var(--swatch);border:1px solid #3d355025;margin-bottom:6px}.sw button .color-name{font-size:11px;line-height:1.2}.sw button .no{inset:8px auto auto 50%;transform:translateX(-50%);width:30px;height:30px;line-height:30px;font-size:13px;text-shadow:none}.sw button.sel{border-color:#8056b4;background:#f4edff!important;box-shadow:0 0 0 1px #8056b4}.picked div{background:#faf7fe;color:#5e506e;padding:10px 4px;font-size:12px;border-style:solid}.nav{margin-top:12px}.nav .primary{flex:2;box-shadow:0 4px 12px #8056b430}.nav button{font-size:16px;min-height:56px}.confirm.reviewing::before{content:'送信前に内容をご確認ください';display:block;background:#8056b4;color:#fff;border-radius:10px;padding:10px;margin-bottom:18px;font-size:14px;font-weight:700}.confirm dl{font-size:15px}.confirm dt{font-size:13px;font-weight:700}.confirm dd{margin-top:4px}.copybox{font-family:system-ui,sans-serif;line-height:1.8}
@media(max-width:420px){.sw{grid-template-columns:repeat(4,minmax(0,1fr))}.wrap{padding-left:14px;padding-right:14px}.card{padding:20px 16px}.input-mode span{font-size:13px;padding:10px 8px}.steps button{font-size:10px}.input-mode small{font-size:10px}}

#previewDetails{margin:16px 0;padding:16px;border:1px solid #ded0ed;border-radius:16px;background:#fff;z-index:auto}#previewDetails summary{font-size:14px;font-weight:700;color:#67458d;cursor:pointer;min-height:44px;display:list-item;align-content:center}#previewDetails[open] summary{margin-bottom:12px}#previewDetails .text-preview-notice{padding:0;margin-bottom:12px}#previewDetails #pv{border-radius:14px;overflow:hidden}

/* Light, friendly step navigation */
body{background:linear-gradient(150deg,#fff8fc,#f3f3ff);background-attachment:fixed}.steps{position:sticky;top:0;z-index:8;padding:8px 0;background:#f9f5fcf5;backdrop-filter:blur(8px)}.steps button{font:inherit;font-size:11px;border:1px solid #e5dced;cursor:pointer;justify-content:center;gap:2px;transition:background .15s}.steps button b{font-size:16px}.steps button.current{background:#8056b4;color:#fff}.steps button:active{transform:scale(.97)}.steps button:disabled{cursor:wait}.card{border-radius:24px;border-color:#ebe1f1;box-shadow:0 4px 16px #67458d05}.card h2{font-size:20px;color:#5b476d}.q{border-top:0;padding-top:0}.free-field{border:0;border-left:0;background:transparent;padding:4px 0;margin-top:22px}.free-field textarea{background:#fcfaff;border:1px solid #ded0ed}.input-mode{background:#fffafb;border-color:#eadfeb}.save-row{border:0;padding-bottom:8px}.optional{background:transparent;padding:0;color:#82728f}.input-mode span{border-radius:16px}.nav .primary{border-radius:18px}.page{scroll-margin-top:100px}#stepLabel::after{content:"　数字をタップして行き来できます";display:block;font-size:11px;font-weight:400;color:#766782;margin-top:4px}@media(max-width:420px){.steps button{font-size:10px}.card h2{font-size:18px}}

/* One path: optional choices and notes, then a separate review. */
.free-field summary{cursor:pointer;color:#73538f;font-size:14px;font-weight:700;min-height:44px;align-content:center}.free-field[open] summary{margin-bottom:8px}.free-field summary::after{content:'（任意）';font-size:11px;font-weight:400;margin-left:6px;color:#81738d}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.review-group{margin-top:22px;padding-top:16px;border-top:1px solid #eee5f4}.review-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.review-heading h3{font-size:15px;margin:0;color:#5b476d}.review-group dl{margin-top:8px}.at-review::after{display:none!important}.review-page{scroll-margin-top:100px}

/* Keep feature rows the same size when selected. */
.feat label{border-width:2px}

/* Optional requests are grouped in the same order as the conversation. */
.request-purpose,.request-features,.request-updates{border:1px solid #e5dced;border-radius:16px;background:#fcfaff;padding:8px 12px;margin-top:12px}.request-purpose summary,.request-features>summary,.request-updates summary{font-size:15px}.request-purpose label,.request-updates label{font-size:14px}.request-purpose textarea,.request-updates textarea{margin-top:8px}.submission-note{font-size:14px;line-height:1.8;padding:14px;background:#f7f1fc;border-radius:12px;margin-top:24px;color:#62516f}
