/* 質問に自動で答える案内係（chat.js）の見た目 */
.qa-open{position:fixed;left:12px;bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:40;display:flex;align-items:center;gap:6px;padding:9px 14px;font:inherit;font-weight:800;font-size:15px;color:#1c2b4f;background:#ffffff;border:3px solid #1c2b4f;border-radius:999px;box-shadow:4px 4px 0 #1c2b4f;cursor:pointer}
.qa-open:active{transform:translate(3px,3px);box-shadow:1px 1px 0 #1c2b4f}
.qa-open:focus-visible{outline:3px solid #ffd23f;outline-offset:3px}
.qa-open-i{font-size:18px;line-height:1}
.qa-dlg{width:min(440px,calc(100vw - 20px));max-height:min(640px,calc(100dvh - 24px));padding:0;border:4px solid #1c2b4f;border-radius:20px;box-shadow:8px 8px 0 #1c2b4f;background:#fffdf5;color:#1c2b4f;font-weight:700;overflow:hidden}
.qa-dlg[open]{display:flex;flex-direction:column}
.qa-dlg::backdrop{background:rgba(11,21,51,.55)}
.qa-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;background:#bfe8fb;border-bottom:4px solid #1c2b4f;font-size:17px}
.qa-close{flex:none;width:36px;height:36px;font:inherit;font-size:22px;font-weight:800;line-height:1;color:#1c2b4f;background:#ffffff;border:3px solid #1c2b4f;border-radius:50%;cursor:pointer}
.qa-log{flex:1;min-height:180px;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#e9f7ff,#f6fbe9)}
.qa-row{display:flex}.qa-row.me{justify-content:flex-end}
.qa-b{max-width:86%;padding:9px 12px;border:3px solid #1c2b4f;border-radius:16px;font-size:15px;line-height:1.6;background:#ffffff;overflow-wrap:anywhere}
.qa-row.me .qa-b{background:#ffd23f;border-bottom-right-radius:4px}
.qa-row.bot .qa-b{border-bottom-left-radius:4px}
.qa-link{display:block;margin-top:6px;color:#c2321c;font-weight:800}
.qa-chips{display:flex;gap:6px;overflow-x:auto;padding:8px 10px;border-top:3px solid #1c2b4f;background:#ffffff;-webkit-overflow-scrolling:touch}
.qa-chip{flex:none;font:inherit;font-size:13px;font-weight:800;color:#1c2b4f;background:#e3f5b8;border:2px solid #1c2b4f;border-radius:999px;padding:6px 11px;cursor:pointer;white-space:nowrap}
.qa-form{display:flex;gap:6px;padding:8px 10px;background:#ffffff}
.qa-input{flex:1;min-width:0;font:inherit;font-size:16px;font-weight:700;padding:9px 12px;border:3px solid #1c2b4f;border-radius:12px;color:#1c2b4f;background:#fff}
.qa-send{flex:none;font:inherit;font-weight:800;font-size:15px;color:#ffffff;background:#e0442a;border:3px solid #1c2b4f;border-radius:12px;padding:0 16px;cursor:pointer}
.qa-note{margin:0;padding:0 12px 10px;font-size:11.5px;line-height:1.5;color:#55607f;background:#ffffff}
@media (max-width:420px){.qa-open-t{display:none}.qa-open{padding:10px 12px}}
.qa-rel{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px;padding-top:8px;border-top:2px dashed #c9d2e6}
.qa-rel-t{width:100%;font-size:12px;color:#55607f}
.qa-rel .qa-chip{white-space:normal;text-align:left;font-size:12.5px}

/* 2026-11-27 追加：小さい文字を 12.5px に／「×」の押す範囲を 44px に（見た目の大きさは 36px のまま） */
.qa-note,.qa-rel-t{font-size:12.5px}
.qa-close{position:relative}
.qa-close::after{content:"";position:absolute;left:-7px;top:-7px;right:-7px;bottom:-7px;border-radius:50%}
/* 2026-11-27 案内係のボタンのすぐ上の「更新」ボタン（押すとページを読み込みなおす） */
.qa-reload{position:fixed;left:12px;bottom:calc(70px + env(safe-area-inset-bottom,0px));z-index:40;display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:6px 12px;font:inherit;font-weight:800;font-size:13px;line-height:1.2;color:#1c2b4f;background:#ffd23f;border:3px solid #1c2b4f;border-radius:999px;box-shadow:4px 4px 0 #1c2b4f;cursor:pointer;-webkit-tap-highlight-color:transparent}
.qa-reload:active{transform:translate(3px,3px);box-shadow:1px 1px 0 #1c2b4f}
.qa-reload:focus-visible{outline:3px solid #ffd23f;outline-offset:3px}
.qa-reload-i{font-size:16px;line-height:1;display:inline-block}
.qa-reload.spin .qa-reload-i{animation:qaSpin .6s linear infinite}
@keyframes qaSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){.qa-reload.spin .qa-reload-i{animation:none}}
/* 2026-11-27 「更新」ボタンのすぐ上の、小さな「トップに戻る」ボタン */
.qa-top{position:fixed;left:12px;bottom:calc(122px + env(safe-area-inset-bottom,0px));z-index:40;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;font:inherit;font-weight:800;font-size:13px;line-height:1;color:#1c2b4f;background:#ffffff;border:2px solid #1c2b4f;border-radius:50%;box-shadow:2px 2px 0 #1c2b4f;cursor:pointer;-webkit-tap-highlight-color:transparent}
.qa-top::after{content:"";position:absolute;inset:-7px}
.qa-top:active{transform:translate(2px,2px);box-shadow:0 0 0 #1c2b4f}
.qa-top:focus-visible{outline:3px solid #ffd23f;outline-offset:3px}
/* 2026-11-27 「更新」はアイコン1つだけの小さな丸に。その上の「トップに戻る」も位置を合わせる */
.qa-reload{width:36px;height:36px;min-height:0;padding:0;gap:0;border-width:2px;border-radius:50%;box-shadow:2px 2px 0 #1c2b4f;bottom:calc(68px + env(safe-area-inset-bottom,0px))}
.qa-reload::after{content:"";position:absolute;inset:-5px}
.qa-reload:active{transform:translate(2px,2px);box-shadow:0 0 0 #1c2b4f}
.qa-reload-i{display:flex;align-items:center;justify-content:center;width:20px;height:20px;font-size:0}
.qa-reload-i svg{display:block}
.qa-top{left:14px;bottom:calc(114px + env(safe-area-inset-bottom,0px))}
