/* ホームページのチャット（chat.js）。色は styles.css に合わせる（黒地・緑のボタン） */
.pcc { font-family: var(--font, "Noto Sans JP", sans-serif); }
.pcc-fab { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border: 0; border-radius: 999px; background: var(--btn, #246f2d); color: #fff; font: inherit; font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.45); cursor: pointer; }
.pcc-fab:hover { background: var(--btn-hover, #1b5722); }
.pcc-fab span { font-size: 22px; line-height: 1; }
.pcc-panel { padding: 0; margin: 0; position: fixed; right: 20px; bottom: 20px; z-index: 901; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 40px));
  display: flex; flex-direction: column; background: #161717; color: var(--paper, #efeee9); border: 1px solid var(--line, #3a3d39); border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,.6); overflow: hidden; }
.pcc-panel[hidden] { display: none; }
.pcc-panel header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #0b0c0c; border-bottom: 1px solid var(--line, #3a3d39); }
.pcc-panel header strong { font-size: 16px; }
.pcc-x { background: none; border: 0; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.pcc-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pcc-m { max-width: 85%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.65; }
.pcc-ai { align-self: flex-start; background: #262827; border-bottom-left-radius: 4px; }
.pcc-me { align-self: flex-end; background: var(--btn, #246f2d); color: #fff; border-bottom-right-radius: 4px; }
.pcc-m a { color: #9be59f; text-decoration: underline; }
.pcc-wait { opacity: .7; }
.pcc-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.pcc-quick[hidden] { display: none; }
.pcc-quick button, .pcc-staff-btn { border: 1px solid var(--green, #2f8f3a); background: transparent; color: inherit; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.pcc-staff { padding: 0 16px 10px; display: flex; flex-direction: column; gap: 8px; }
.pcc-staff[hidden] { display: none; }
.pcc-staff > :not(.pcc-staff-btn) { display: none; }
.pcc-staff.open > :not(.pcc-staff-btn) { display: block; }
.pcc-staff-h { margin: 0; font-size: 14px; color: var(--muted, #b8bcb6); }
.pcc-staff input { width: 100%; box-sizing: border-box; padding: 10px; border-radius: 8px; border: 1px solid var(--line, #3a3d39); background: #fff; color: #111; font: inherit; font-size: 16px; }
.pcc-ssend { align-self: flex-start; padding: 8px 16px; border: 0; border-radius: 8px; background: var(--btn, #246f2d); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pcc-staff-btn { align-self: flex-start; }
.pcc-ts:empty { display: none; }
.pcc-ts { padding: 0 16px 8px; }
.pcc-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line, #3a3d39); }
.pcc-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line, #3a3d39);
  background: #fff; color: #111; font: inherit; font-size: 16px; line-height: 1.5; }
.pcc-form button { padding: 0 18px; border: 0; border-radius: 10px; background: var(--btn, #246f2d); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pcc-note { margin: 0; padding: 0 14px 4px; font-size: 11px; line-height: 1.5; color: var(--muted, #b8bcb6); }
.pcc-clear { align-self: flex-end; margin: 0 12px 8px; background: none; border: 0; color: var(--muted, #b8bcb6); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
/* /chat/ のページ：画面いっぱい */
.pcc-page .pcc-panel { position: static; width: 100%; max-width: 720px; height: calc(100dvh - 24px); margin: 12px auto; border-radius: 14px; }
@media (max-width: 600px) {
  .pcc-fab { right: 12px; bottom: 12px; padding: 12px 16px; }
  .pcc-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .pcc-page .pcc-panel { margin: 0; height: 100dvh; border-radius: 0; }
}
