*{box-sizing:border-box}body{margin:0;background:#f6f2f8;color:#352b3e;font:16px/1.8 system-ui,-apple-system,"Noto Sans JP",sans-serif}main{max-width:800px;margin:40px auto;padding:40px;background:white;border:1px solid #ebe2f0;border-radius:24px;box-shadow:0 12px 48px #4630530a}.brand{letter-spacing:.2em;font-size:12px;color:#715884}.badge{float:right;border:1px solid #d4c2df;border-radius:20px;padding:2px 12px;font-size:12px;color:#705286}h1{font-size:34px;line-height:1.55;margin:24px 0 12px}header p{color:#705f7b}aside{padding:14px 18px;border-radius:12px;background:#f4eef8;font-size:14px;margin:24px 0}label,legend{font-weight:600}select{width:100%;font:inherit;border:1px solid #c9b9d4;border-radius:10px;padding:14px 10px;margin:8px 0 22px;background:white;color:inherit}fieldset{border:0;padding:0;margin:0 0 24px}.topic{display:block;padding:10px 14px;border:1px solid #e8deee;border-radius:10px;margin-top:8px;font-weight:400;cursor:pointer}.topic:has(input:checked){border-color:#9271a5;background:#faf5fd}input{accent-color:#755187;margin-right:10px}.actions{display:flex;gap:12px;flex-wrap:wrap}button{border:0;background:#74508a;color:white;padding:13px 22px;border-radius:10px;font:inherit;cursor:pointer}button.secondary{background:#eee8f2;color:#5f456e}button:disabled{opacity:.55;cursor:wait}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #b88bcc;outline-offset:3px}#result:not(:empty){margin-top:30px;padding:22px;background:#fbf8fd;border-left:4px solid #9d7eaf;border-radius:4px 12px 12px 4px;overflow-wrap:anywhere}#result h2{font-size:20px;margin:0 0 12px}#result p{white-space:pre-wrap}a{color:#71508a;text-underline-offset:4px}footer{margin-top:38px;border-top:1px solid #ece4f0;padding-top:22px}footer h2{font-size:18px}.small{font-size:12px;color:#7b6d84}@media(max-width:600px){main{margin:12px;padding:22px;border-radius:18px}h1{font-size:28px}.brand{font-size:10px;letter-spacing:.15em}.badge{font-size:10px;padding:2px 9px}select{font-size:15px}button{flex:1;padding:12px}#result:not(:empty){padding:16px}}

#questions {display:grid;gap:12px}
#questions label {display:block;font-weight:650}
#questions textarea {display:block;box-sizing:border-box;width:100%;min-height:132px;padding:14px;border:1px solid #d7ccdE;border-radius:12px;font:inherit;line-height:1.6;resize:vertical;color:#30283c;background:#fff}
#questions select {width:100%;min-width:0}
#questions button {min-height:48px}
#questions button[type=reset] {background:#f3edf8;color:#634c77}
#result p {white-space:pre-wrap;overflow-wrap:anywhere}
#result small {display:block;margin-top:16px;color:#63566c}
footer a {overflow-wrap:anywhere}
@media(max-width:480px){main{padding:20px!important;margin:12px!important;width:auto!important}h1{font-size:26px!important}aside{font-size:14px!important}#questions textarea{font-size:16px}}

details{border-bottom:1px solid #e5dce9;padding:14px 0}summary{cursor:pointer;font-weight:650;line-height:1.6}details p{white-space:pre-wrap}#common-faq{margin:28px 0}\n.ai-notice{font-size:.85rem;line-height:1.6;color:#51475a}.ai-choices button{display:block;width:100%;text-align:left;margin:.5rem 0}#ai-result p{white-space:pre-wrap}\n