/* こころの体温：会話版 */
.hero, .card[aria-live="polite"], .card.history, .rhythm-entry { display: none !important; }

.conversation-app {
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 28px;
  padding: 22px 17px 20px;
  background: rgba(255,253,252,.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.talk-progress { display: flex; justify-content: center; gap: 8px; min-height: 10px; margin: 2px 0 19px; }
.talk-progress i { width: 7px; height: 7px; border-radius: 50%; background: #e9ddda; transition: .22s ease; }
.talk-progress i.done { background: #cd9298; }
.talk-progress i.current { background: var(--accent); transform: scale(1.35); }

.talk-navigator {
  display: grid;
  width: 92px;
  height: 92px;
  margin: -5px auto 13px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(222, 198, 200, .72);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(247,236,237,.86));
  box-shadow: 0 12px 28px rgba(105,75,75,.1);
}
.talk-navigator img {
  display: block;
  width: 106%;
  height: 106%;
  object-fit: cover;
  object-position: center 12%;
}

.talk-navigator-cue {
  display: grid;
  align-self: flex-start;
  width: 52px;
  height: 52px;
  margin: 3px 0 -2px 5px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(222, 198, 200, .72);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(247,236,237,.86));
  box-shadow: 0 8px 20px rgba(105,75,75,.09);
  animation: navigatorCueIn .26s ease both;
}
.talk-navigator-cue img {
  display: block;
  width: 106%;
  height: 106%;
  object-fit: cover;
  object-position: center 12%;
}

.talk-navigator-reveal {
  position: relative;
  display: grid;
  align-self: center;
  width: 80px;
  height: 80px;
  margin: 5px auto 2px;
  overflow: visible;
  place-items: center;
  border: 1px solid rgba(210, 172, 178, .78);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,236,237,.9));
  box-shadow: 0 12px 30px rgba(105,75,75,.12), 0 0 0 7px rgba(255,248,248,.55);
  animation: navigatorRevealIn .38s ease both;
}
.talk-navigator-reveal::before,
.talk-navigator-reveal::after {
  position: absolute;
  color: rgba(181, 126, 137, .55);
  content: "✦";
  font-size: 10px;
}
.talk-navigator-reveal::before { top: 4px; left: -12px; }
.talk-navigator-reveal::after { right: -11px; bottom: 8px; font-size: 7px; }
.talk-navigator-reveal img {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
}
@keyframes navigatorCueIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes navigatorRevealIn {
  from { opacity: 0; transform: translateY(7px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.talk-log { display: flex; flex-direction: column; gap: 11px; min-height: 115px; }
.talk-bubble { align-self: flex-start; max-width: 92%; margin: 0; border: 1px solid rgba(234,222,219,.9); border-radius: 7px 20px 20px 20px; padding: 13px 16px; background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(105,75,75,.06); font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; font-size: 15px; line-height: 1.9; white-space: pre-wrap; }
.talk-bubble.soft { color: #806e72; background: #fbf5f4; }
.talk-bubble.answer { align-self: flex-end; border-radius: 20px 7px 20px 20px; color: #82555c; background: #f4e3e4; }
.talk-bubble.notice { max-width: 100%; color: #7d696c; background: #f8f2ef; font-family: inherit; font-size: 11px; }

.talk-typing { display: inline-flex; align-self: flex-start; gap: 5px; width: max-content; padding: 14px 17px; border-radius: 7px 20px 20px 20px; background: #fff; }
.talk-typing i { width: 6px; height: 6px; border-radius: 50%; background: #b47a82; animation: kokoroBlink 1s infinite ease-in-out; }
.talk-typing i:nth-child(2) { animation-delay: .15s; }
.talk-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes kokoroBlink { 0%,70%,100%{opacity:.25;transform:translateY(0)} 35%{opacity:1;transform:translateY(-3px)} }

.talk-choices { display: grid; gap: 9px; margin-top: 17px; }
.talk-choice, .talk-form-button, .talk-link {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 51px;
  border: 1px solid #e5cccf; border-radius: 16px; padding: 11px 14px;
  color: #674f53; background: rgba(255,255,255,.95); font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; font-size: 13px;
  text-align: center; text-decoration: none; cursor: pointer;
}

.talk-form,
.talk-form input,
.talk-form-button,
.talk-form-skip,
.talk-finish {
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
.talk-choice:hover, .talk-choice:focus-visible { border-color: var(--accent); outline: none; background: #fff8f8; }
.talk-choice:disabled { opacity: .5; cursor: default; }
.talk-choices.five-column { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.talk-choices.five-column .talk-choice {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 78px;
  border-radius: 15px; padding: 9px 2px 7px; font-size: 9px; line-height: 1.35;
}
.talk-choices.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.talk-choices.three-column .talk-choice {
  min-width: 0;
  min-height: 58px;
  border-radius: 15px;
  padding: 9px 5px;
  font-size: 10.5px;
  line-height: 1.4;
}
.talk-choices.action-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.talk-choices.action-three .talk-choice,
.talk-choices.action-three .talk-link {
  min-width: 0; min-height: 60px; border-radius: 16px; padding: 9px 4px;
  font-size: 10.5px; line-height: 1.45; text-align: center;
}
.talk-choices.action-three .message-action { border-color: var(--accent); color: #fff; background: var(--accent); }
.talk-choice-icon { display: block; min-height: 24px; font-size: 21px; line-height: 1; }
.talk-choice-label { display: block; overflow-wrap: anywhere; }
.talk-link.primary { border-color: var(--accent); color: #fff; background: var(--accent); box-shadow: 0 10px 24px rgba(167,105,112,.22); }

.talk-form { display: grid; gap: 11px; border: 1px solid #eadedb; border-radius: 18px; padding: 15px; background: #fff; }
.talk-form label { color: var(--muted); font-size: 11px; }
.talk-form input { width: 100%; min-height: 48px; margin-top: 5px; border: 1px solid #dfd1ce; border-radius: 13px; padding: 10px 12px; color: var(--ink); background: #fff; font: inherit; font-size: 16px; }
.talk-form-button { border: 0; color: #fff; background: var(--accent); font-weight: 700; }
.talk-form-skip { border: 0; padding: 7px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.talk-finish { display: grid; gap: 9px; margin-top: 20px; }

@media (min-width: 700px) {
  .conversation-app { padding: 28px 28px 24px; }
}
@media (max-width: 699px) {
  /* 右側固定レーンはページ全体で確保するため、会話枠だけの余白は不要 */
  .conversation-app { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; scroll-behavior: auto !important; } }
