#ff-chat{--chat-ink:#1a2340;--chat-cyan:#007f8b;color:var(--chat-ink);font:15px/1.65 "Meiryo",sans-serif}
#ff-chat *{box-sizing:border-box}
#ff-chat [hidden]{display:none!important}
#ff-chat button,#ff-chat input,#ff-chat textarea,#ff-chat select{font:inherit}
#ff-chat button{cursor:pointer}
#ff-chat button:disabled{cursor:wait;opacity:.6}
#ff-chat :is(button,a,input,textarea,select):focus-visible{outline:3px solid #00a7b5;outline-offset:3px}
#ff-chat .chat-launch{position:fixed;z-index:998;right:24px;bottom:24px;display:flex;align-items:center;gap:9px;min-height:48px;padding:10px 18px;border:0;border-radius:28px;background:#006f79;color:white;font-weight:700;box-shadow:0 4px 18px #10233326}
#ff-chat .chat-icon{width:22px;height:22px;flex:none}
#ff-chat .chat-invite{position:fixed;z-index:998;right:24px;bottom:24px;width:292px;max-width:calc(100vw - 32px);padding:20px;border:1px solid #c6dee1;border-top:3px solid #00a7b5;border-radius:16px;background:white;box-shadow:0 8px 32px #1a234020}
#ff-chat .chat-invite strong{display:block;margin:0 28px 6px 0;font-size:16px}
#ff-chat p{margin:0 0 14px}
#ff-chat .chat-invite p{font-size:13px;line-height:1.75}
#ff-chat .chat-close{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--chat-ink);font-size:24px;line-height:1}
#ff-chat .chat-close:hover{background:#edf5f6}
#ff-chat .chat-invite .chat-close{position:absolute;top:6px;right:6px;width:36px;height:36px}
#ff-chat .chat-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 20px;border:1px solid #007f8b;border-radius:9px;background:#007f8b;color:#fff;font-weight:700;text-decoration:none}
#ff-chat .chat-primary:hover{background:#00616b}
#ff-chat .chat-invite .chat-primary{width:100%}
#ff-chat .chat-small{font-size:12px;color:#566477}
#ff-chat .chat-invite .chat-small{display:block;margin-top:9px;line-height:1.65}
#ff-chat .chat-dialog{position:fixed;inset:auto 24px 24px auto;z-index:1005;display:none;flex-direction:column;width:390px;max-width:calc(100vw - 32px);height:min(700px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);margin:0;padding:0;overflow:hidden;border:1px solid #bfd6da;border-radius:18px;background:#f5f9fa;color:var(--chat-ink);box-shadow:0 14px 60px #10233335}
#ff-chat .chat-dialog[open]{display:flex}
#ff-chat .chat-dialog::backdrop{background:#1a234059}
#ff-chat .chat-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;padding:15px 14px 14px 20px;border-bottom:1px solid #dce7ea;background:white}
#ff-chat .chat-header strong{display:block;font-size:17px;line-height:1.5}
#ff-chat .chat-header span{font-size:11px;color:#536174}
#ff-chat .chat-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 20px 14px;scrollbar-gutter:stable}
#ff-chat .chat-progress{margin-bottom:18px;color:#426471;font-size:12px;font-weight:700;letter-spacing:.04em}
#ff-chat .chat-progress::before{content:"";display:inline-block;width:7px;height:7px;margin-right:8px;border-radius:50%;background:#00a7b5}
#ff-chat .chat-question{margin:0 0 20px;padding:16px 18px;border:1px solid #e0e9eb;border-radius:3px 16px 16px;background:#fff;font-weight:700;font-size:17px;line-height:1.75}
#ff-chat .chat-question:focus{outline:none}
#ff-chat .chat-help{font-size:13px;color:#536174}
#ff-chat .chat-options{display:grid;gap:8px;margin-bottom:18px}
#ff-chat .chat-choice{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border:1px solid #c5d7dc;border-radius:9px;background:#fff;font-size:14px;cursor:pointer}
#ff-chat .chat-choice:has(input:checked){border-color:#007f8b;background:#ecf8f8}
#ff-chat input[type=checkbox]{width:18px;height:18px;flex:none;margin:3px 0 0;accent-color:#007f8b}
#ff-chat .chat-field{display:block;margin:0 0 17px;font-size:14px;font-weight:700}
#ff-chat .chat-field>span{display:block;margin-bottom:6px}
#ff-chat .chat-field input,#ff-chat textarea,#ff-chat select{display:block;width:100%;min-height:46px;padding:11px 12px;border:1px solid #a6bec5;border-radius:8px;background:#fff;color:var(--chat-ink);font-weight:400}
#ff-chat textarea{min-height:155px;resize:vertical;line-height:1.75}
#ff-chat .chat-required{margin-left:6px;color:#48627d;font-size:11px}
#ff-chat .chat-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 8px}
#ff-chat .chat-text-button{min-height:44px;padding:6px 2px;border:0;background:transparent;color:#006e7a;font-size:13px;text-decoration:underline;text-underline-offset:3px}
#ff-chat .chat-error{padding:12px 14px;border-left:3px solid #b1293e;border-radius:4px;background:#fff0f1;color:#8d1730;font-size:14px}
#ff-chat .chat-review{margin:0;padding:16px;border:1px solid #d1e2e5;border-radius:12px;background:#fff}
#ff-chat .chat-review dt{margin-top:14px;color:#536174;font-size:12px}
#ff-chat .chat-review dt:first-child{margin-top:0}
#ff-chat .chat-review dd{margin:3px 0 0;overflow-wrap:anywhere;white-space:pre-wrap;font-size:14px}
#ff-chat .chat-footer{flex:none;display:flex;justify-content:space-between;gap:10px;padding:8px 20px 12px;border-top:1px solid #dce7ea;background:#fff}
#ff-chat .chat-footer .chat-text-button{font-size:11px}
#ff-chat a{color:#006e7a;text-underline-offset:3px}
#ff-chat .chat-privacy{padding:14px;background:#eaf4f5;border-radius:10px;font-size:13px}
#ff-chat .chat-privacy .chat-choice{margin-top:12px}
html.ff-chat-modal{overflow:hidden}
html.ff-mobile-menu-active #ff-chat .chat-launch,html.ff-mobile-menu-active #ff-chat .chat-invite{display:none}
@media(max-width:980px){
 #ff-chat .chat-invite{display:none}
 #ff-chat .chat-launch{right:14px;bottom:calc(104px + env(safe-area-inset-bottom,0px));min-height:46px;padding:9px 16px;font-size:13px}
 #ff-chat .chat-dialog{inset:var(--chat-viewport-top,0px) 0 auto;max-width:none;width:100%;height:var(--chat-viewport-height,100dvh);max-height:var(--chat-viewport-height,100dvh);border:0;border-radius:0;box-shadow:none}
 #ff-chat .chat-header{padding-top:calc(12px + env(safe-area-inset-top,0px))}
 #ff-chat .chat-footer{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
 #ff-chat input,#ff-chat textarea,#ff-chat select{font-size:16px!important}
}
@media print{#ff-chat{display:none!important}}
@media(prefers-reduced-motion:reduce){#ff-chat *{scroll-behavior:auto}}

#ff-chat .chat-body > .chat-small,
#ff-chat .chat-review + .chat-help{margin-top:16px}
