/* AI受付サエ — 実際のチャット画面(2026-10-10 作り直し)
   それまでは「選択肢を押すと定型文が入る」だけで会話になっていなかった。
   見た目はサイトと同じモノクロ。角丸は吹き出しだけに許す(会話に見せるため)。 */

#sae-box .bb { padding-top: 14px; }

.sae-thread {
  border: 1px solid var(--line, #e3e3e3);
  background: #fafafa;
  height: 380px;
  overflow-y: auto;
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.sae-row { display: flex; gap: 10px; align-items: flex-end; }
.sae-row.me { flex-direction: row-reverse; }

.sae-av {
  width: 30px; height: 30px; flex: none;
  border: 1px solid #111; background: #111; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow', sans-serif; font-size: 11px; letter-spacing: .06em;
}
.sae-row.me .sae-av { background: #fff; color: #111; }

.sae-bub {
  max-width: 78%;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.95;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 2px 14px 14px 14px;
}
.sae-row.me .sae-bub {
  background: #111; color: #fff; border-color: #111;
  border-radius: 14px 2px 14px 14px;
}
.sae-bub a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.sae-time {
  font-family: 'Barlow', sans-serif; font-size: 10px; color: #9a9a9a;
  align-self: flex-end; flex: none; margin-bottom: 2px;
}

.sae-typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.sae-typing i { width: 6px; height: 6px; background: #999; display: block; animation: saeb 1s infinite; }
.sae-typing i:nth-child(2) { animation-delay: .18s; }
.sae-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes saeb { 0%, 60%, 100% { opacity: .25 } 30% { opacity: 1 } }

.sae-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.sae-chips button {
  border: 1px solid #ccc; background: #fff; color: #111;
  padding: 8px 13px; font-family: inherit; font-size: 13px; cursor: pointer;
}
.sae-chips button:hover { background: #111; color: #fff; border-color: #111; }

.sae-form { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; }
.sae-form textarea {
  flex: 1; resize: none; height: 52px; padding: 12px;
  border: 1px solid var(--line, #d8d8d8); background: #fff;
  font-family: inherit; font-size: 14px; line-height: 1.6;
}
.sae-form button {
  border: 1px solid #111; background: #111; color: #fff;
  padding: 0 22px; font-family: inherit; font-size: 14px; cursor: pointer; flex: none;
}
.sae-form button:disabled { opacity: .45; cursor: default; }

.sae-foot {
  margin-top: 10px; font-size: 13px; color: var(--g1, #777); line-height: 1.9;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.sae-err { color: #b23; }

@media (max-width: 640px) {
  .sae-thread { height: 340px; }
  .sae-bub { max-width: 84%; font-size: 14.5px; }
  .sae-form button { padding: 0 16px; }
}
/* サエの紹介帯。顔と、ふだん書いている場所への導線をここに置く(2026-10-10)。
   フッターの小さな文字では押す気にならない、というオーナー指摘への対応。 */
.sae-intro{display:flex;gap:14px;align-items:center;border:1px solid var(--line,#e3e3e3);
  padding:14px;margin-bottom:14px;background:#fff;flex-wrap:wrap}
.sae-face{width:56px;height:56px;flex:none;object-fit:cover;border:1px solid #ddd;filter:grayscale(1)}
.sae-who{flex:1 1 200px;min-width:0}
.sae-who b{display:block;font-size:15px;line-height:1.5}
.sae-who span{display:block;font-size:13px;color:var(--g1,#777);line-height:1.8}
.sae-links{display:flex;gap:8px;flex-wrap:wrap}
.sae-links a{border:1px solid #111;padding:8px 14px;font-size:13px;color:#111;text-decoration:none;
  display:inline-flex;align-items:center;gap:7px;line-height:1}
.sae-links a:hover{background:#111;color:#fff}
.sae-links a small{font-size:11px;color:#8a8a8a}
.sae-links a:hover small{color:#cfcfcf}
.sae-av.face{padding:0;border-color:#ddd;background:#fff;overflow:hidden}
.sae-av.face img{width:100%;height:100%;object-fit:cover;filter:grayscale(1)}
@media(max-width:640px){.sae-intro{gap:10px}.sae-links{flex:1 1 100%}.sae-links a{flex:1 1 auto;justify-content:center}}
