/* LPのBot「みる」（D-542）。区画は、FAQの直前。キャラクターが主役（大きく、場面で姿が変わる）。 */
[data-lpbot-link][hidden], #ask[hidden], .lpbot-contact[hidden], .lpbot-samples[hidden] { display: none !important; }

.ask { padding: 84px 0 92px; background: var(--mint-soft); }
.ask-wrap { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 40px; align-items: start; }
.ask-side { position: sticky; top: 96px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ask-chara-box { position: relative; width: 100%; height: 300px; display: flex; align-items: flex-end; justify-content: center; }
.ask-chara { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; animation: ask-bob 4.2s ease-in-out infinite; }
.ask-name { font-weight: 800; font-size: 15px; color: var(--navy); background: var(--white); border: 1.5px solid var(--navy); border-radius: 999px; padding: 3px 16px; }
.ask-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--mint-dark); margin-bottom: 6px; }
.ask-main .h2-md { text-align: left; color: var(--navy); }
.ask-lead { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.9; max-width: 640px; }

.ask-card { margin-top: 24px; background: var(--white); border: 1.5px solid var(--navy); border-radius: 22px; padding: 20px 22px 18px; }
.lpbot-log { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; }
.lpbot-log:empty { display: none; }
.lpbot-msg p { margin: 0 0 6px; }
.lpbot-msg-user { align-self: flex-end; max-width: 88%; background: var(--navy); color: var(--white); border-radius: 18px 18px 4px 18px; padding: 8px 16px; font-weight: 600; }
.lpbot-msg-user p { margin: 0; }
.lpbot-msg-bot { align-self: stretch; background: var(--mint-soft); border-radius: 18px 18px 18px 4px; padding: 14px 18px; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.lpbot-msg-bot p:last-child { margin-bottom: 0; }
.lpbot-msg-wait { align-self: flex-start; color: var(--muted); font-size: 14px; }
.lpbot-list { margin: 0 0 8px; padding-left: 1.4em; }
ol.lpbot-list { list-style: decimal; }
ul.lpbot-list { list-style: disc; }
.lpbot-list li { margin: 2px 0; }
.lpbot-sources { margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(11, 31, 58, .22); font-size: 13px; color: var(--muted); }
.lpbot-sources ul { margin-top: 2px; }
.lpbot-sources a { color: var(--mint-dark); text-decoration: underline; text-underline-offset: 3px; }

.lpbot-samples { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.lpbot-sample { appearance: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); background: var(--white); border: 1.5px solid var(--navy); border-radius: 999px; padding: 6px 16px; min-height: 36px; }
.lpbot-sample:hover { background: var(--mint-soft); }
.lpbot-sample:focus-visible, .lpbot-input:focus-visible, .lpbot-send:focus-visible, .lpbot-copy:focus-visible, .lpbot-details summary:focus-visible { outline: 3px solid var(--mint-dark); outline-offset: 2px; }

.lpbot-form { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; }
.lpbot-log:empty + .lpbot-samples + .lpbot-form, .lpbot-log:empty + .lpbot-form { margin-top: 0; }
.lpbot-field { flex: 1; min-width: 0; }
.lpbot-field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.lpbot-input { width: 100%; font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; resize: vertical; min-height: 56px; }
.lpbot-input:disabled { background: #eef1f4; color: #7c8794; }
.lpbot-send { appearance: none; cursor: pointer; font: inherit; font-weight: 800; font-size: 15px; color: var(--navy); background: var(--mint); border: 0; border-radius: 999px; min-height: 48px; padding: 0 24px; white-space: nowrap; }
.lpbot-send:hover:not(:disabled) { background: #4be0c2; }
.lpbot-send:disabled { cursor: not-allowed; background: #cdd5dc; color: #6b7785; box-shadow: none; }
.lpbot-remaining { margin-top: 8px; font-size: 13px; color: var(--muted); min-height: 1.2em; }

.lpbot-contact { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1.5px dashed var(--navy); }
.lpbot-contact p { margin: 0 0 8px; font-size: 14px; }
.lpbot-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lpbot-mail { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--navy); background: var(--mint); }
.lpbot-copy { appearance: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); background: var(--white); border: 1.5px solid var(--navy); border-radius: 999px; min-height: 44px; padding: 0 18px; }
.lpbot-copy-status { font-size: 13px; color: var(--mint-dark); }

.lpbot-note { margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.lpbot-details { margin-top: 6px; font-size: 12px; color: var(--muted); }
.lpbot-details summary { cursor: pointer; color: var(--mint-dark); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.lpbot-details p { margin: 6px 0 0; line-height: 1.7; }
.lpbot-details a { color: var(--mint-dark); text-decoration: underline; }

/* D-587: ヒーローは紺の地。文字を紺にしていたため、文字が見えず、ミントの下線だけが浮いて見えた（下線がズレて見える）。文字は白にする */
.hero-ask { margin-top: 12px; font-size: 14px; font-weight: 700; }
.hero-ask a { color: var(--white); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 3px; text-underline-offset: 5px; }

@keyframes ask-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .ask-chara { animation: none; } }

@media (max-width: 860px) {
  .ask { padding: 56px 0 64px; }
  .ask-wrap { grid-template-columns: 1fr; gap: 8px; }
  .ask-side { position: static; flex-direction: row; justify-content: flex-start; gap: 14px; }
  .ask-chara-box { height: 150px; width: 150px; flex: none; }
  .ask-card { padding: 16px 14px 14px; border-radius: 18px; }
  .lpbot-form { flex-direction: column; align-items: stretch; }
  .lpbot-send { width: 100%; }
  .lpbot-log { max-height: 340px; }
}
