@charset "UTF-8";

/* chatbotLink
----------------------------------------------- */
#chatbotLink {
  position: fixed;
  right: 20px;
  bottom: 50px;
  z-index: 999;
}

#chatbotLink.hide {
  display: none;
}

#chatbotLink .balloon {
  padding: 0.25rem 0.5rem;
  width: 210px;
  display: flex;
  border-radius: 10px;
  gap: 0 10px;
  background-color: #edf6fb;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

#chatbotLink .balloon img {
  width: 40px;
  height: 40px;
}

#chatbotLink span {
  font-size: 0.875rem;
}

#chatbotLink .close {
  display: inline-block;
  position: relative;
  left: 195px;
  top: -68px;
  width: 1.5em;
  height: 1.5em;
  line-height: 1.5;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
}

/* chatbot(Joruri agent)
----------------------------------------------- */
#joruri-agent {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 1999;
  width: 400px;
  border: 1px solid var(--mono-color-8);
}

#joruri-agent.hide {
  display: none;
}

.agent-wrapper {
  display: flex;
  flex-direction: column;
}

.agent-header {
  position: relative;
  z-index: 2999;
  display: flex;
  justify-content: space-between;
  padding: 2px 8px;
  background-color: var(--main-color-4);
  color: var(--mono-color-9);
  cursor: pointer;
}

.agent-content-wrapper {
  display: flex;
  flex-direction: row;
  order: 3;
}

.agent-form-wrapper {
  height: auto;
  background-color: var(--main-color-10);
  order: 5;
}

.agent-form-wrapper #keyword {
  width: calc(100% - 178px);
  height: 36px;
  margin: 10px 0 10px 10px;
  outline: none;
  border: 1px solid var(--mono-color-3);
  border-radius: 4px;
}

.agent-form-wrapper input[type="submit"] {
  height: 36px;
  margin: 10px 0 10px 10px;
  padding: 0 10px;
  background-color: #0172c0;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.agent-form-wrapper .agent-form__commit-button {
  width: 60px;
  background-image: url("/_themes/site/images/ic-chat.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 25px;
}

.agent-content {
  flex: 1;
}

.agent-content__header {
  background-color: #fff;
}

.agent-dialogue {
  height: 400px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  resize: vertical;
}

.agent-dialogue__answer .agent-answer__item span.agent-answer__item-date::after {
  content: "）";
}

.agent-dialogue__answer .agent-answer__item span.agent-answer__item-site {
  display: none;
}

.agent-inquiry-wrapper {
  background-color: var(--main-color-10);
  order: 2;
}

@media only screen and (max-width: 559px) {
  #joruri-agent {
    display: none;
  }

  .agent-content-wrapper {
    flex-wrap: wrap;
  }

  .agent-content {
    flex-basis: 100%;
    margin: 0;
    order: 3;
  }
}
