/* サイトのチャット（右下の「ひとこと質問」）。色と形は、お問い合わせフォームにそろえる。
   右下には、もとから X と公式LINE の丸いボタン（#fsbWrap。右 20px・下 30px・幅 54px・高さ 120px）がある。その上に並べる */
.fch { --fch-main:#dc6a92; --fch-deep:#c44d79; --fch-soft:#fff3f7; --fch-line:#f3dfe6; --fch-ink:#2e2629; --fch-sub:#8b7d83;
  font-family:"Zen Maru Gothic","Hiragino Maru Gothic ProN","M PLUS Rounded 1c","Noto Sans JP",Meiryo,sans-serif; font-size:13.5px; line-height:1.75; letter-spacing:.03em; color:var(--fch-ink); -webkit-font-smoothing:antialiased; }
.fch button, .fch input, .fch textarea { font-family:inherit; letter-spacing:inherit; }
.fch *, .fch *::before, .fch *::after { box-sizing:border-box; }
.fch-fab { position:fixed; right:20px; bottom:146px; z-index:9999; width:54px; height:54px; padding:0; border:0; border-radius:50%; cursor:pointer;
  background:linear-gradient(135deg, #f09abb, #dc6a92); color:#fff; box-shadow:0 8px 20px rgba(220,106,146,.3), 0 2px 6px rgba(220,106,146,.18); transition:transform .15s, box-shadow .15s; }
.fch-fab:hover { transform:translateY(-2px); box-shadow:0 12px 26px rgba(220,106,146,.36), 0 3px 8px rgba(220,106,146,.2); }
.fch-fab:focus-visible { outline:3px solid rgba(220,106,146,.4); outline-offset:3px; }
.fch-fab svg { width:34px; height:34px; display:block; margin:0 auto; stroke-width:1.6; }
.fch-badge { position:absolute; top:-3px; right:-3px; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:#fff; color:var(--fch-main); border:2px solid var(--fch-main); font-size:11px; font-weight:700; line-height:16px; text-align:center; }
.fch-panel { position:fixed; right:86px; bottom:30px; z-index:10000; width:368px; max-width:calc(100vw - 106px); height:min(560px, calc(100vh - 60px)); display:flex; flex-direction:column;
  background:#fff; border:1px solid var(--fch-line); border-radius:20px; overflow:hidden; box-shadow:0 24px 60px rgba(43,20,30,.22), 0 4px 14px rgba(43,20,30,.08); animation:fchIn .18s ease-out; }
.fch-panel[hidden] { display:none; }
@keyframes fchIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { .fch-panel { animation:none; } .fch-fab { transition:none; } }
.fch-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:16px 18px 14px; background:var(--fch-soft); color:var(--fch-ink); border-bottom:1px solid var(--fch-line); }
.fch-title { display:flex; align-items:center; gap:8px; font-size:15px; font-weight:700; letter-spacing:.08em; color:var(--fch-deep); }
.fch-qicon { flex:none; display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; background:#fff; color:var(--fch-main); box-shadow:0 1px 3px rgba(220,106,146,.18); }
.fch-qicon svg { width:20px; height:20px; display:block; }
.fch-sub { margin-top:6px; font-size:11.5px; line-height:1.6; color:#7a686f; }
.fch-x { flex:none; width:30px; height:30px; padding:0; border:0; border-radius:50%; background:#fff; color:var(--fch-sub); font-size:18px; line-height:1; cursor:pointer; }
.fch-x:hover { background:#f3e6eb; color:var(--fch-ink); }
.fch-log { flex:1; min-height:0; overflow-y:auto; padding:16px 14px 8px; background:#fff; display:flex; flex-direction:column; gap:10px; }
.fch-row { display:flex; flex-direction:column; max-width:86%; }
.fch-row.me { align-self:flex-end; align-items:flex-end; }
.fch-row.office, .fch-row.sys { align-self:flex-start; align-items:flex-start; }
.fch-bubble { padding:9px 14px; border-radius:16px; white-space:pre-wrap; word-break:break-word; font-size:13.5px; line-height:1.75; }
.fch-row.me .fch-bubble { background:#fde3ec; color:#4a2231; border-bottom-right-radius:5px; }
.fch-row.office .fch-bubble { background:#fff; border:1px solid var(--fch-line); border-bottom-left-radius:5px; }
.fch-row.sys .fch-bubble { background:var(--fch-soft); color:#5c4a51; border-bottom-left-radius:5px; font-size:12.5px; }
.fch-row.fch-wait .fch-bubble { display:flex; align-items:center; gap:6px; padding:4px 14px 4px 6px; background:#fff; border:1px solid var(--fch-line);
  font-size:11.5px; letter-spacing:.1em; color:var(--fch-main); }
.fch-row.fch-wait img { display:block; flex:none; width:44px; height:44px; }
.fch-meta { margin-top:3px; padding:0 4px; font-size:10.5px; letter-spacing:.04em; color:#a3949a; }
.fch-mail { padding:12px 14px 4px; border-top:1px solid #f1e9ec; background:#fff; }
.fch-mail[hidden] { display:none; }
.fch-mail label { display:block; margin:0 0 6px; font-size:12.5px; font-weight:700; color:var(--fch-ink); }
.fch .fch-mail input { width:100%; height:44px; margin:0; padding:8px 14px; border:1.5px solid var(--fch-line); border-radius:12px; background:#fff; color:var(--fch-ink); font:inherit; font-size:14px; box-shadow:none; -webkit-appearance:none; appearance:none; }
.fch .fch-mail input:focus { outline:none; border-color:var(--fch-main); box-shadow:0 0 0 4px rgba(220,106,146,.2); }
.fch-mailnote { margin-top:5px; font-size:11px; color:var(--fch-sub); }
.fch-err { padding:0 16px; font-size:12.5px; font-weight:600; color:#d93025; background:#fff; }
.fch-err:empty { display:none; }
.fch-err:not(:empty) { padding-top:8px; }
.fch-form { display:flex; align-items:flex-end; gap:8px; padding:10px 12px 10px 14px; background:#fff; border-top:1px solid #f1e9ec; }
.fch-mail:not([hidden]) ~ .fch-form, .fch-err:not(:empty) ~ .fch-form { border-top:0; }
.fch .fch-form textarea { flex:1; min-height:44px; max-height:120px; margin:0; padding:10px 14px; border:1.5px solid var(--fch-line); border-radius:14px; background:#fff; color:var(--fch-ink); font:inherit; font-size:14px; line-height:1.5; resize:none; box-shadow:none; -webkit-appearance:none; appearance:none; }
.fch .fch-form textarea:focus { outline:none; border-color:var(--fch-main); box-shadow:0 0 0 4px rgba(220,106,146,.2); }
.fch .fch-form textarea::placeholder, .fch .fch-mail input::placeholder { color:#b9aeb3; }
.fch-hp { position:absolute !important; left:-9999px !important; width:1px; height:1px; }
.fch-send { flex:none; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:var(--fch-main); color:#fff; cursor:pointer; transition:filter .15s, opacity .15s; }
.fch-send:hover:not(:disabled) { filter:brightness(1.08); }
.fch-send:disabled { opacity:.45; cursor:default; }
.fch-send svg { width:20px; height:20px; display:block; margin:0 auto; }
.fch-foot { padding:0 14px 12px; background:#fff; text-align:center; font-size:11px; }
.fch-foot a { color:var(--fch-sub); text-decoration:underline; text-underline-offset:3px; }
.fch-foot a:hover { color:var(--fch-main); }
@media (max-width:600px) {
  .fch-panel { right:0; left:0; bottom:0; width:auto; max-width:none; height:min(82vh, 620px); border-radius:20px 20px 0 0; border-width:1px 0 0; }
  .fch.open .fch-fab { display:none; }
  .fch .fch-form textarea, .fch .fch-mail input { font-size:16px; }   /* スマホは 16px（これより小さいと、入力のときに画面が勝手に拡大される） */
}

/* X と公式LINE のボタン（mu-plugins/floating-social-buttons.php の #fsbWrap）を、チャットの丸いボタンと同じくらいの見た目の大きさに下げる
   （角の四角は、同じ 54px でも丸より大きく見えるため。2026-11-29 高橋さん）。チャットを出しているときだけ効く */
#fsbWrap { width:54px !important; align-items:center !important; }
#fsbWrap .fsb-btn { width:46px !important; height:46px !important; border-radius:12px !important; }
#fsbWrap .fsb-btn.fsb-x svg { width:22px !important; height:22px !important; }
#fsbWrap .fsb-btn.fsb-line img { width:46px !important; height:46px !important; }

/* サイトのトーンに（2026-11-30 高橋さん「ここのトーンもちょっと合ってない」）：色はサイトのピンク（#C47B9C・#B65A84）、字は明朝。丸ゴシックと強いピンクをやめる */
.fch { --fch-main:#C47B9C; --fch-deep:#B65A84; --fch-soft:#FCF4F8; --fch-line:#EED7E3; --fch-ink:#302938; --fch-sub:#6E6470;
  font-family:"Noto Serif JP","Yu Mincho","YuMincho","Hiragino Mincho ProN",serif; letter-spacing:.04em; }
.fch-fab { background:linear-gradient(135deg, #D79BB6, #B65A84); box-shadow:0 8px 20px rgba(182,90,132,.28), 0 2px 6px rgba(182,90,132,.16); }
.fch-fab:hover { box-shadow:0 12px 26px rgba(182,90,132,.34), 0 3px 8px rgba(182,90,132,.2); }
.fch-head { background:linear-gradient(180deg, #FCF4F8, #FFFFFF); }
.fch-title { font-weight:600; letter-spacing:.12em; color:var(--fch-ink); }
.fch-qicon { color:var(--fch-deep); box-shadow:0 1px 3px rgba(182,90,132,.18); }
.fch-sub { color:var(--fch-sub); }
.fch-row.me .fch-bubble { background:#F8E6EE; color:#3F2A35; }
.fch-row.sys .fch-bubble { color:#4A4452; }
.fch .fch-form textarea:focus, .fch .fch-mail input:focus { border-color:var(--fch-main); box-shadow:0 0 0 4px rgba(196,123,156,.16); }
.fch-send { background:linear-gradient(135deg, #C47B9C, #A8517A); }
.fch-foot a { color:var(--fch-sub); }
.fch-foot a:hover { color:var(--fch-deep); }
.fch-badge { color:var(--fch-deep); border-color:var(--fch-deep); font-family:"Lora",Georgia,serif; }

/* スマホ（600px 以下）では X と公式LINE のボタンが右 14px・下 24px に寄る（floating-social-buttons.php）。ひとこと質問のボタンも同じ縦の線にそろえる（2026-11-30 高橋さん「少し左にずれている」） */
@media (max-width:600px) { .fch-fab { right:14px; bottom:140px; } }

/* 窓を開いている間は後ろのページを止める。窓の中のやりとりの欄は、端まで来ても後ろへ動きを渡さない（2026-11-30） */
html.fch-lock, html.fch-lock body { overflow:hidden !important; }
html.fch-lock body { overscroll-behavior:none; }
.fch-log, .fch .fch-form textarea { overscroll-behavior:contain; }
