.juke-chatbot-root {
  position: relative;
  z-index: 1100;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  color: #555;
}

.juke-chatbot-root *,
.juke-chatbot-root *::before,
.juke-chatbot-root *::after {
  box-sizing: border-box;
}

.juke-chat-launcher {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1101;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 8px 17px 8px 8px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: rgb(96,108,136);
  background: linear-gradient(to bottom, rgba(96,108,136,1) 0%, rgba(63,76,107,1) 100%);
  color: #fff;
  font-weight: bold;
  line-height: 1.3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
  cursor: pointer;
}

.juke-chat-launcher__icon {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d7dbe3, 0 1px 4px rgba(0, 0, 0, .16);
}

.juke-chat-launcher__icon::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 12px;
  width: 18px;
  height: 15px;
  border: 3px solid #3f4c6b;
  border-radius: 4px;
}

.juke-chat-launcher__icon::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 25px;
  width: 8px;
  height: 8px;
  border-left: 3px solid #3f4c6b;
  border-bottom: 3px solid #3f4c6b;
  transform: skew(-18deg) rotate(-12deg);
}

.juke-chat-launcher__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: nowrap;
}

.juke-chat-launcher__main {
  font-size: .95rem;
  letter-spacing: 0;
}

.juke-chat-launcher__sub {
  font-size: .72rem;
  opacity: .9;
}

.juke-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1102;
  display: none;
  width: min(410px, calc(100vw - 32px));
  max-height: min(700px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid #cfd4dc;
  border-radius: 10px;
  background: #f4f6f9;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24);
}

.juke-chatbot-root.is-open .juke-chat-panel {
  display: flex;
  flex-direction: column;
}

.juke-chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(rgba(96,108,136,1) 0%, rgba(63,76,107,1) 100%);
  color: #fff;
}

.juke-chat-panel__profile {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.juke-chat-panel__avatar,
.juke-chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #3f4c6b;
  font-weight: bold;
  box-shadow: inset 0 0 0 1px rgba(63, 76, 107, .18);
}

.juke-chat-panel__identity {
  min-width: 0;
}

.juke-chat-panel__title,
.juke-chat-panel__status {
  margin: 0;
}

.juke-chat-panel__title {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.35;
}

.juke-chat-panel__status {
  position: relative;
  padding-left: 12px;
  font-size: .75rem;
  line-height: 1.35;
  opacity: .9;
}

.juke-chat-panel__status::before {
  content: "";
  position: absolute;
  left: 0;
  top: .4em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8ddf7b;
}

.juke-chat-panel__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.juke-chat-panel__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 14px;
  background: #eef1f5;
}

.juke-chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}

.juke-chat-message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}

.juke-chat-message-row--user {
  justify-content: flex-end;
}

.juke-chat-message-row--bot {
  justify-content: flex-start;
}

.juke-chat-avatar {
  width: 28px;
  height: 28px;
  font-size: .82rem;
}

.juke-chat-message {
  max-width: calc(100% - 44px);
  padding: 11px 13px;
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.juke-chat-message--bot {
  border: 1px solid #d9dde5;
  border-bottom-left-radius: 6px;
  background: #fff;
  color: #555;
}

.juke-chat-message--user {
  border-bottom-right-radius: 6px;
  background: #3f4c6b;
  color: #fff;
}

.juke-chat-message__question {
  display: block;
  margin-bottom: 5px;
  color: inherit;
  font-weight: bold;
}

.juke-chat-message__text {
  white-space: pre-line;
}

.juke-chat-choices,
.juke-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 2px 36px;
}

.juke-chat-choice,
.juke-chat-action {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #cdd3dc;
  border-radius: 999px;
  background: #fff;
  color: #3f4c6b;
  font-size: .82rem;
  font-weight: bold;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.juke-chat-choice:hover,
.juke-chat-choice:focus,
.juke-chat-action:hover,
.juke-chat-action:focus {
  background: #f8f8f8;
  color: #000033;
  text-decoration: none;
}

.juke-chat-choice--category {
  border-color: #bfc6d2;
  background: #fff;
}

.juke-chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 54px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.juke-chat-typing__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7a8294;
  animation: juke-chat-typing 1s infinite ease-in-out;
}

.juke-chat-typing__dot:nth-child(2) {
  animation-delay: .16s;
}

.juke-chat-typing__dot:nth-child(3) {
  animation-delay: .32s;
}

@keyframes juke-chat-typing {
  0%,
  80%,
  100% {
    opacity: .35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.juke-chat-panel__form {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #d9dde5;
  background: #fff;
}

.juke-chat-panel__input-wrap {
  flex: 1;
  min-width: 0;
}

.juke-chat-panel__input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #cbd1da;
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
}

.juke-chat-panel__note {
  margin: 5px 0 0 3px;
  color: #777;
  font-size: .72rem;
  line-height: 1.4;
}

.juke-chat-panel__send {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(rgba(96,108,136,1) 0%, rgba(63,76,107,1) 100%);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.chatbot-contact-box {
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid #CCC;
  background: #fff;
  text-align: center;
}

.chatbot-contact-box__lead {
  margin: 0 0 6px;
  color: #3f4c6b;
  font-size: 1.08rem;
  font-weight: bold;
}

.chatbot-contact-box__text {
  margin: 0 0 14px;
  line-height: 1.8;
}

.chatbot-contact-box__button {
  display: inline-block;
  padding: 10px 28px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(rgba(96,108,136,1) 0%, rgba(63,76,107,1) 100%);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.chatbot-contact-box__button:hover,
.chatbot-contact-box__button:focus {
  background: #000033;
  color: #fff;
}

.contact-faq {
  margin: 0 0 38px;
}

.contact-faq__intro {
  margin: 0 0 20px;
  line-height: 1.8;
}

.contact-faq__category {
  margin: 0 0 24px;
}

.contact-faq__category-title {
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 5px solid #000033;
  color: #3f4c6b;
  font-size: 1.15rem;
  font-weight: bold;
}

.contact-faq details {
  margin: 0 0 10px;
  border: 1px solid #CCC;
  background: #fff;
}

.contact-faq summary {
  padding: 12px 14px;
  background: #F8F8F8;
  color: #555;
  font-weight: bold;
  cursor: pointer;
}

.contact-faq__answer {
  margin: 0;
  padding: 14px;
  line-height: 1.9;
}

@media screen and (max-width: 767px) {
  .juke-chatbot-root:not(.juke-chatbot-root--mobile-visible) .juke-chat-launcher {
    display: none;
  }

  .juke-chat-launcher {
    right: 12px;
    bottom: 88px;
    min-height: 52px;
    padding: 6px 12px 6px 6px;
  }

  .juke-chat-panel {
    right: 10px;
    bottom: 82px;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 116px);
    border-radius: 9px;
  }

  .juke-chat-panel__body {
    padding: 13px 11px;
  }

  .juke-chat-log {
    min-height: 220px;
  }

  .juke-chat-message {
    max-width: calc(100% - 38px);
    font-size: .88rem;
  }

  .juke-chat-choices,
  .juke-chat-actions {
    margin-left: 36px;
  }

  .juke-chat-panel__form {
    padding: 10px;
  }

  .juke-chat-panel__send {
    padding: 0 12px;
  }

  .chatbot-contact-box {
    padding: 16px 14px;
  }
}
