/* かんたん補助金診断（/business/check/）。テーマの色（#0D2529・#2D8391）に合わせる */
.aih{--ink:#0D2529;--teal:#2D8391;--line:#d5e6e9;--soft:#f3f8f9;--muted:#4A5E62;
  max-width:900px;margin:0 auto 2em;padding:24px 16px;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--ink);box-sizing:border-box}
.aih *,.aih *::before,.aih *::after{box-sizing:border-box}
.aih[hidden],.aih [hidden]{display:none!important}
.aih button,.aih textarea{font:inherit}
.aih-head{margin-bottom:16px}
.aih-title{font-size:1.25rem;line-height:1.5;margin:0 0 6px;color:var(--ink)}
.aih-desc{margin:0;color:var(--muted);font-size:.95rem}
.aih-notes{margin:0 0 14px;padding-left:1.2em;font-size:.9rem;color:var(--muted)}
.aih-consent{display:flex;gap:8px;align-items:flex-start;font-size:.92rem;margin-bottom:12px;cursor:pointer}
.aih-consent input{margin-top:.35em;flex:none;width:16px;height:16px;accent-color:var(--teal)}
.aih-turnstile{min-height:65px;margin-bottom:12px}
.aih-start,.aih-send{padding:.8em 1.6em;border:0;border-radius:8px;background:var(--ink);color:#fff;font-weight:700;cursor:pointer}
.aih-start:disabled,.aih-send:disabled{opacity:.45;cursor:default}
.aih-alt{font-size:.85rem;color:var(--muted);margin:12px 0 0}
.aih-log{height:440px;overflow-y:auto;padding:14px;background:var(--soft);border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column;gap:12px}
.aih-msg{display:flex}
.aih-msg-user{justify-content:flex-end}
.aih-bubble{max-width:84%;padding:10px 14px;border-radius:12px;font-size:.95rem;line-height:1.75;white-space:pre-wrap;word-break:break-word}
.aih-msg-ai .aih-bubble{background:#fff;border:1px solid var(--line);border-top-left-radius:4px}
.aih-msg-user .aih-bubble{background:var(--teal);color:#fff;border-top-right-radius:4px}
.aih-msg-system{justify-content:center}
.aih-msg-system .aih-bubble{max-width:100%;background:#fff;border:2px solid var(--teal);font-size:.9rem}
.aih-typing .aih-bubble{color:var(--muted)}
.aih-form{margin-top:12px}
.aih-form textarea{width:100%;padding:10px 12px;border:1px solid #bbb;border-radius:8px;background:#fff;resize:vertical}
.aih-row{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
.aih-count{font-size:.8rem;color:var(--muted)}
.aih-error{margin-top:12px;padding:10px 14px;border-radius:8px;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;font-size:.9rem}
.aih-book{display:inline-block;margin-top:4px;padding:.6em 1.2em;border-radius:8px;background:#227ECD;color:#fff!important;font-weight:700;text-decoration:none!important;white-space:normal}
@media (max-width:600px){.aih-log{height:380px}.aih-bubble{max-width:92%}}
