/* NEWCO-20 S1 AI質問窓口 — 右下の『質問する』部品。スマホでは下から出る全幅パネル。 */
.s1ask-launch{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:2147483000;
  min-height:48px;padding:0 20px;border:0;border-radius:24px;background:#1f5fbf;color:#fff;font:600 16px/1 system-ui,-apple-system,"Hiragino Sans","Noto Sans JP",sans-serif;
  box-shadow:0 4px 14px rgba(0,0,0,.22);cursor:pointer}
.s1ask-launch:focus-visible,.s1ask-panel button:focus-visible,.s1ask-panel textarea:focus-visible{outline:3px solid #f2b705;outline-offset:2px}
.s1ask-panel{position:fixed;right:16px;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:2147483001;width:min(380px,calc(100vw - 32px));
  max-height:min(640px,calc(100vh - 100px));display:flex;flex-direction:column;background:#fff;color:#1a1a1a;border-radius:14px;
  box-shadow:0 10px 32px rgba(0,0,0,.25);font:15px/1.6 system-ui,-apple-system,"Hiragino Sans","Noto Sans JP",sans-serif}
.s1ask-panel[hidden]{display:none}
.s1ask-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-bottom:1px solid #e3e6ea}
.s1ask-head h2{margin:0;font-size:15px;font-weight:700}
.s1ask-close{min-width:44px;min-height:44px;border:0;background:none;font-size:24px;line-height:1;color:#555;cursor:pointer}
.s1ask-body{padding:12px 14px 14px;overflow-y:auto;-webkit-overflow-scrolling:touch}
.s1ask-intro{margin:0 0 10px;font-size:14px;color:#333}
.s1ask-faq{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.s1ask-chip{min-height:40px;padding:6px 12px;border:1px solid #1f5fbf;border-radius:20px;background:#f3f7fd;color:#1f5fbf;font-size:14px;cursor:pointer}
.s1ask-answer:empty{display:none}
.s1ask-card{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#f6f8fa;border-left:4px solid #1f5fbf;white-space:pre-wrap;word-break:break-word}
.s1ask-card-warn{border-left-color:#c77700;background:#fff8ec}
.s1ask-asked{font-size:13px;color:#555;margin-bottom:4px}
.s1ask-tag{display:inline-block;font-size:12px;font-weight:700;color:#1f5fbf;margin-bottom:4px}
.s1ask-card-warn .s1ask-tag{color:#8a5300}
.s1ask-foot{margin:8px 0 0;font-size:13px;color:#8a1c1c;font-weight:600}
.s1ask-remain{display:block;margin-top:4px;color:#555}
.s1ask-wait{padding:8px 0;color:#555}
.s1ask-ctx{margin:0 0 10px;padding:8px 10px;border:1px dashed #b8c2cc;border-radius:8px;font-size:13px}
.s1ask-ctx[hidden]{display:none}
.s1ask-ctx-text{margin:4px 0;font-weight:600;word-break:break-word}
.s1ask-label{display:block;font-weight:600;font-size:14px;margin-bottom:4px}
.s1ask-form textarea{box-sizing:border-box;width:100%;min-height:72px;padding:10px;border:1px solid #9aa5b1;border-radius:8px;font-size:16px;line-height:1.5;resize:vertical}
.s1ask-count{text-align:right;font-size:12px;color:#666}
.s1ask-note{margin:6px 0;font-size:12px;color:#555}
.s1ask-send{width:100%;min-height:48px;margin-top:4px;border:0;border-radius:10px;background:#1f5fbf;color:#fff;font-size:16px;font-weight:700;cursor:pointer}
.s1ask-send:disabled{opacity:.6;cursor:wait}
.s1ask-footer-note{margin:10px 0 0;font-size:12px;color:#8a1c1c}
@media (max-width:480px){
  .s1ask-panel{left:0;right:0;bottom:0;width:100%;max-height:85vh;border-radius:14px 14px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
  html.s1ask-open .s1ask-launch{display:none}
}
@media (prefers-reduced-motion:no-preference){.s1ask-panel{animation:s1ask-in .15s ease-out}}
@keyframes s1ask-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
