/* FAQオリジナルCSSを維持したFC専用追加スタイル */
.faq-chat{grid-template-rows:auto auto minmax(0,1fr) auto}
.fc-bottom{background:#fff;border-top:1px solid var(--faq-border)}
.fc-bottom .faq-chat__form{border-top:0;padding-bottom:8px}
.fc-contact-footer{padding:0 12px 12px;font-size:10px;line-height:1.5;color:#455145; text-align: center;}
.fc-contact-footer p{margin:0 0 7px}
.fc-contact-links{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.fc-contact-links a{display:flex;justify-content:center;align-items:center;text-align:center;padding:9px 5px;background:#f3f9e5;color:#17321b;border:1px solid #c5dc95;border-radius:9px;text-decoration:none;font-weight:700}
.fc-contact-links a:hover{background:var(--faq-green)}
.fc-chat-options{display:grid;gap:7px;margin:4px 0 14px 40px}
.fc-chat-options.is-categories{grid-template-columns:1fr 1fr}
.fc-chat-options button{padding:9px 10px;text-align:left;border:1px solid #c5dc95;border-radius:10px;background:#f3f9e5;color:#142318;cursor:pointer;font-size:12px;font-weight:700;line-height:1.5}
.fc-chat-options button:hover{background:var(--faq-green)}
.fc-chat-options .fc-back{background:#fff}
.faq-chat-message__bubble .faq-chat-answer{white-space:normal;margin-top:10px}
.faq-chat-answer .fc-line{margin:0 0 8px}
.faq-chat-answer .fc-line:last-child{margin-bottom:0}
.faq-chat-message__bubble .fc-id{margin-top:10px;padding-top:8px;border-top:1px dashed #d9e3d2;font-size:10px;color:#566056}
@media(max-width:600px){.fc-chat-options{margin-left:0}.faq-chat{height:min(83vh,720px)}.fc-contact-footer{padding-bottom:9px}.fc-contact-links a{font-size:10px}}

/* Excel HTML回答の装飾 */
.faq-chat-answer {line-height:1.8;overflow-wrap:anywhere;}
.faq-chat-answer p {margin:0 0 10px;}
.faq-chat-answer h3,.faq-chat-answer h4 {font-size:1em;font-weight:700;margin:16px 0 8px;line-height:1.5;}
.faq-chat-answer h3 {border-left:4px solid #80b500;padding-left:9px;}
.faq-chat-answer ul,.faq-chat-answer ol {margin:8px 0 12px;padding-left:1.5em;}
.faq-chat-answer li {margin:4px 0;}
.faq-chat-answer ul.dot {list-style:disc;}
.faq-chat-answer .t-bold,.faq-chat-answer strong {font-weight:700;}
.faq-chat-answer .fc-note {padding:10px;background:#f3f7e9;border-radius:6px;font-size:.92em;}
.faq-chat-answer a {color:#187a43;text-decoration:underline;overflow-wrap:anywhere;}
.faq-chat-answer table {width:100%;border-collapse:collapse;display:block;overflow-x:auto;font-size:.92em;margin:10px 0;}
.faq-chat-answer th,.faq-chat-answer td {border:1px solid #d8ded5;padding:6px 8px;text-align:left;vertical-align:top;}
.faq-chat-answer th {background:#f3f7e9;font-weight:700;}

/* 質問選択画面に戻る */
.fc-restart{display:block;width:calc(100% - 24px);margin:3px 12px 12px;padding:11px 16px;border:1px solid #80b500;border-radius:6px;background:#fff;color:#416500;font-size:14px;font-weight:700;cursor:pointer;transition:background-color .2s ease}
.fc-restart:hover{background:#f2f8e8}
.fc-restart:focus-visible{outline:3px solid #80b500;outline-offset:2px}



/* お問い合わせボタンを3列に配置 */
.fc-contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

/* ボタン・リンクのデザインを統一 */
.fc-contact-links > a,
.fc-contact-links > button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 10px 6px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
}

/* 戻るボタン */
.fc-contact-links > .fc-restart {
  background: #fff;
  color: #416500;
  border: 1px solid #80b500;
}

/* スマートフォンでも3列を維持 */
@media (max-width: 480px) {
  .fc-contact-links {
    gap: 5px;
  }

  .fc-contact-links > a,
  .fc-contact-links > button {
    font-size: 10px;
    padding: 8px 3px;
    overflow-wrap: anywhere;
  }
}
