@charset "UTF-8";
:root {
  --chat-min-height: 500px;
  --chat-header-height: 50px;
  --chat-height: calc(100vh - var(--chat-header-height) - 80px);
  --chat-tab-height: calc(100% - var(--chat-header-height));
  --sidebar-width: 200px;
  --chat-max-width: 400px;
  --chat-icon: url("../img/chat__icon.svg");
}

/* 右下の「チャットで質問」ボタン */
#chatToggleBtn {
  position: fixed;
  font-size: 16px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: 0.3s all;
  right: 90px;
  bottom: 20px;
  background-color: #009b5c;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
  padding: 10px 20px;
}
#chatToggleBtn:hover {
  background-color: #00c474;
}
#chatToggleBtn::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-right: 6px;
  background-image: var(--chat-icon);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}
@media (max-width: 767px) {
  #chatToggleBtn {
    bottom: 94px;
  }
}

.d-none {
  display: none !important;
}

@media (min-width: 768px) {
  .d-md-block {
    display: block !important;
  }
}
.d-flex {
  display: flex !important;
}

.visible {
  visibility: visible !important;
}

.invisible {
  visibility: hidden !important;
}

:where(.chat-container) {
  line-height: 1.625;
  color: #545c5d;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
:where(.chat-container) * {
  box-sizing: border-box;
}
:where(.chat-container) h1,
:where(.chat-container) h2,
:where(.chat-container) h3,
:where(.chat-container) h4,
:where(.chat-container) h5,
:where(.chat-container) h6 {
  margin: 0 0 0.5rem 0;
}
:where(.chat-container) ul,
:where(.chat-container) ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(.chat-container) ol,
:where(.chat-container) ol li {
  margin: 0;
  padding: 0;
}
:where(.chat-container) [popover] {
  color: #545c5d;
}
:where(.chat-container) .text-danger {
  color: #ea7070;
}
:where(.chat-container) .fw-bold {
  font-weight: bold;
}
:where(.chat-container) .small {
  font-size: 0.875rem;
}
:where(.chat-container) .text-end {
  text-align: end;
}
:where(.chat-container) .img-fluid {
  max-width: 100%;
  height: auto;
}
:where(.chat-container) hr {
  /* border-color: $text-color; */
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
:where(.chat-container) .btn {
  width: 52px;
  border: none;
  background-color: #ff5926;
  color: #fff;
  border-radius: 4px;
  padding: 0.375rem;
}
:where(.chat-container) .btn:hover {
  background-color: #ff784f;
  cursor: pointer;
}
:where(.chat-container) .btn:disabled {
  background-color: #c4c4c4;
}
:where(.chat-container) pre {
  background-color: #eaeaea;
  padding: 0.5rem 0.75rem 1rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: 4px;
  line-height: 1.5;
}
:where(.chat-container) pre .pre-header {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  line-height: 2rem;
  font-size: small;
  color: #848484;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
:where(.chat-container) pre .pre-header button {
  font-size: 75%;
  width: initial;
  padding: 0.175rem 0.25rem;
  background-color: #ababab;
  color: #fff;
}
:where(.chat-container) pre .pre-header button:hover {
  background-color: #c4c4c4;
  cursor: pointer;
}
:where(.chat-container) pre .pre-header button::before {
  content: "";
  height: 10px;
  width: 10px;
  margin-right: 2px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23fff' class='bi bi-clipboard' viewBox='0 0 16 16'%3E%3Cpath d='M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1z'/%3E%3Cpath d='M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0z'/%3E%3C/svg%3E");
}
:where(.chat-container) pre code {
  white-space: pre-wrap;
  word-wrap: break-word;
}
:where(.chat-container) .flex-column {
  flex-direction: column;
}
:where(.chat-container) .align-items-center {
  align-items: center;
}
:where(.chat-container) .collapse:not(.show) {
  display: block;
}
:where(.chat-container) .table-container {
  overflow-x: scroll;
}
:where(.chat-container) table {
  width: 100%;
  min-width: var(--chat-max-width);
  border-collapse: collapse;
}
:where(.chat-container) table thead {
  border-bottom: 1px solid #b7b7b7;
  font-weight: bold;
}
:where(.chat-container) table tbody tr {
  border-bottom: 1px solid #d1d1d1;
  vertical-align: top;
}
:where(.chat-container) table tbody tr:last-child {
  border-bottom: none;
}
:where(.chat-container) table th,
:where(.chat-container) table td {
  padding: 6px 8px;
}

/* チャットウィンドウ */
.chat-container {
  position: fixed;
  right: 20px;
  bottom: 80px;
  height: 500px;
  width: 80%;
  max-width: var(--chat-max-width);
  min-width: 310px;
  height: var(--chat-height);
  min-height: var(--chat-min-height);
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 12px;
  display: flex;
  /* 初期は非表示 */
  visibility: hidden;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: all 0.3s ease;
}
.chat-container.fullscreen {
  width: 100%;
  max-width: 1000px;
  height: 100%;
  right: 0;
  bottom: 0;
  border-radius: 0;
}
.chat-container:has(.drop-not-allowed)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-color: #869091;
  border-radius: 6px;
  z-index: 10;
  opacity: 0.6;
  pointer-events: none;
}

.chat-header {
  background-color: #009b5c;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: var(--chat-header-height);
  min-height: var(--chat-header-height);
  max-height: var(--chat-header-height);
  padding: 12px;
  flex-grow: 1;
}
.chat-header .chat-header_title {
  max-width: calc(100% - 100px);
}
.chat-container:has(.sidebar) .chat-header .chat-header_title {
  max-width: calc(100% - 150px);
}
.chat-header .chat-header_title span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.chat-header button {
  width: 34px;
  height: 34px;
  background-color: transparent;
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 18px;
  line-height: normal;
  cursor: pointer;
  margin: 0 0 0 3px;
  padding: 9px;
  transition: 0.3s all;
}
.chat-header button:hover {
  background-color: #00c474;
}
.chat-header button svg {
  vertical-align: top;
}
.chat-header img {
  margin-right: 6px;
}

.chat-body {
  height: 100%;
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  /* モバイル対応 */
}
.chat-body:has(.sidebar.hidden) {
  margin-left: 0;
}
.chat-body:not(:has(.sidebar)) {
  margin-left: 0;
}
@media (max-width: 767px) {
  .chat-body {
    margin-left: 0;
  }
  .chat-body .menu-button {
    display: block;
  }
}

.chat-container .sidebar {
  width: var(--sidebar-width);
  background-color: #eaeaea;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  position: absolute;
  height: var(--chat-tab-height);
  left: 0;
  bottom: 0;
  z-index: 1000;
}
@media (max-width: 767px) {
  .chat-container .sidebar {
    transform: translateX(-100%);
  }
  .chat-container .sidebar.hidden {
    transform: translateX(0);
  }
}
@media (min-width: 768px) {
  .chat-container .sidebar.hidden {
    transform: translateX(-100%);
  }
}
.chat-container .sidebar .sidebar-top {
  flex-grow: 1;
  overflow-y: auto;
}
.chat-container .sidebar .sidebar-bottom {
  border-top: 1px solid #414748;
  padding-top: 10px;
}
.chat-container .sidebar .sidebar-bottom .bottom-button {
  padding: 10px;
  text-align: left;
  cursor: pointer;
}
.chat-container .sidebar .sidebar-bottom .bottom-button:hover {
  background-color: #414748;
  color: #d6dada;
}
.chat-container .sidebar .tab-list .tab-item {
  padding: 0.75em 1.5em 0.75em 0.75em;
  cursor: pointer;
  display: flex;
  position: relative;
  font-size: 0.875em;
}
.chat-container .sidebar .tab-list .tab-item.active {
  background-color: #fff;
  color: #009b5c;
  font-weight: bold;
  border-radius: 4px;
}
.chat-container .sidebar .tab-list .tab-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-container .sidebar .tab-list .tab-item .chat-menu-button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background-color: initial;
  border: none;
  cursor: pointer;
}
.chat-container .sidebar .tab-list .tab-item .chat-menu {
  padding: 1rem;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position-area: right;
  margin: 0 0 0 4px;
  cursor: initial;
}
.chat-container .sidebar .tab-list .tab-item .chat-menu p {
  margin: 0 0 0.5rem;
}
.chat-container .sidebar .tab-list .tab-item .chat-menu input[type=text] {
  width: 20em;
  height: 30px;
  margin-right: 0.25rem;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}
.chat-container .sidebar .tab-list .tab-item .chat-menu li {
  margin: 0.25rem 0;
  cursor: pointer;
}
.chat-container .sidebar .tab-list .tab-item .chat-menu li:hover {
  opacity: 0.8;
}
.chat-container .sidebar .new-chat-box {
  border-bottom: 1px solid #545c5d;
  margin-bottom: 10px;
}
.chat-container .sidebar .new-chat-box .new-chat-button {
  background-color: #ff5926;
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
  text-align: center;
  width: 100%;
}
.chat-container .sidebar .new-chat-box .new-chat {
  padding: 1rem;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position-area: right;
  margin: 0 0 0 4px;
}
.chat-container .sidebar .new-chat-box .new-chat p {
  margin: 0 0 0.5rem;
}
.chat-container .sidebar .new-chat-box .new-chat input[type=text] {
  width: 20em;
  height: 30px;
  margin-right: 0.25rem;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.chat-body .tab-content {
  height: 100%;
}
.fullscreen .chat-body .tab-content {
  height: calc(100vh - var(--chat-header-height));
}
.chat-body .tab-content .tab-panel {
  display: none;
}
.chat-body .tab-content .tab-panel.active {
  display: grid;
  align-content: space-between;
  grid-template-rows: 1fr minmax(112px, auto);
  gap: 0;
  height: calc(var(--chat-height) - var(--chat-header-height));
}
.fullscreen .chat-body .tab-content .tab-panel.active {
  height: 100%;
}

.chat-body .chat {
  display: flex;
  flex-direction: column;
  height: var(--chat-tab-height);
  min-height: calc(var(--chat-min-height) - var(--chat-header-height));
  position: relative;
}
.fullscreen .chat-body .chat {
  height: 100%;
}
.chat-body .chat .chat-message {
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  height: 100%;
  min-height: var(--chat-tab-height);
  overflow-y: auto;
  flex: 1;
}

.reply-user,
.reply-support {
  width: calc(100% - 60px);
  /* overflow: hidden; */
}
@media (max-width: 575px) {
  .reply-user,
.reply-support {
    width: calc(100% - 20px);
  }
}
.reply-user p,
.reply-support p {
  margin: 0.25rem 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  /* レイヤー化による再描画を誘発 */
}

.reply-user {
  margin: 3px 0 1.5rem auto;
}
.reply-user .says {
  display: table;
  position: relative;
  margin: 0 0 0 auto;
  padding: 12px;
  border-radius: 12px;
  border-top-right-radius: 0;
  background: #fff;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
  font-size: 0.875rem;
}

.reply-support {
  margin: 3px 60px 1.5rem 0;
  position: relative;
}
.reply-support::before {
  content: "";
  display: block;
  background-image: url("../img/chat__site-icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #009b5c;
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
  border-radius: 20px;
  border: 2px solid #009b5c;
}
@media (max-width: 575px) {
  .reply-support {
    margin: 3px 20px 1.5rem 0;
  }
}
.reply-support .says {
  border: 1px solid #009b5c;
  display: block;
  position: relative;
  padding: 12px;
  border-radius: 12px;
  border-top-left-radius: 0;
  /* background: #d7ebfe; */
  /* filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, .2)); */
  font-size: 0.875rem;
}
.reply-support ol,
.reply-support ul {
  margin-bottom: 8px;
}
.reply-support ol ol,
.reply-support ol ul,
.reply-support ul ol,
.reply-support ul ul {
  margin-bottom: 0;
}
.reply-support ol {
  padding-left: 28px;
}
.reply-support ol li {
  list-style: decimal;
}
.reply-support ol li li {
  list-style: lower-alpha;
}
.reply-support ul {
  list-style: disc;
  padding-left: 28px;
  margin-bottom: 8px;
}
.reply-support ul li {
  list-style: disc;
}
.reply-support ul li li {
  list-style: circle;
}
.reply-support ul.choice {
  margin-top: 8px;
  padding-left: 12px;
}
.reply-support ul.choice li {
  list-style: none;
  margin-bottom: 6px;
}
.reply-support ul.choice li button {
  width: 100%;
  text-align: start;
  border: 1px solid #677172;
  background-color: #fff;
  color: #545c5d;
  border-radius: 20px;
  padding: 0.375rem 0.5rem;
}
.reply-support ul.choice li button:hover {
  background-color: #d6dada;
  cursor: pointer;
}
.reply-support ol {
  padding-left: 28px;
}

.reply-support .says-footer {
  display: flex;
  gap: 8px;
  margin: 1.5rem 8px;
}

/* スクロールボタン */
.chat-footer .scroll-buttons {
  position: absolute;
  right: 0;
  top: -48px;
  display: flex;
  gap: 10px;
}
.chat-footer .scroll-btn {
  background: white;
  color: #ff5926;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}
.chat-footer .scroll-btn:hover {
  opacity: 0.8;
}

.chat-footer {
  position: relative;
  padding: 0.5rem;
  margin: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  -moz-column-gap: 8px;
       column-gap: 8px;
  border-radius: 6px;
  background-color: #fff;
  width: calc(100% - 2.75rem);
}
.chat-footer textarea {
  display: block;
  width: calc(100% - 60px);
  min-height: 80px;
  max-height: 150px;
  /* 入力が増えすぎたらスクロール */
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-clip: padding-box;
  border: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  z-index: 1;
  resize: none;
}
@media (max-width: 575px) {
  .chat-footer textarea {
    font-size: 0.875rem;
  }
}
.chat-footer textarea:focus-visible {
  outline: #a0a9aa auto 1px;
}
.chat-footer .filelabel {
  padding: 8px 0;
  margin-bottom: 8px;
  display: inline-block;
}
.chat-footer .filelabel:hover {
  opacity: 0.5;
  cursor: pointer;
}
.chat-footer .filelabel svg,
.chat-footer .filelabel img {
  vertical-align: bottom;
}
.chat-footer .upload-img {
  width: 100%;
  flex-shrink: 0;
}
.chat-footer .upload-img img {
  max-width: 80px;
  max-height: 80px;
  height: auto;
}
.chat-footer .filesend {
  display: none;
}

/* HTML: <div class="loader"></div> */
.chat-container .loader {
  width: 24px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(farthest-side, #009b5c 94%, rgba(0, 0, 0, 0)) top/4px 4px no-repeat, conic-gradient(rgba(0, 0, 0, 0) 30%, #009b5c);
  -webkit-mask: radial-gradient(farthest-side, rgba(0, 0, 0, 0) calc(100% - 4px), #000 0);
  -webkit-animation: l13 1s infinite linear;
          animation: l13 1s infinite linear;
}
@-webkit-keyframes l13 {
  100% {
    transform: rotate(1turn);
  }
}
@keyframes l13 {
  100% {
    transform: rotate(1turn);
  }
}
.chat-container .response {
  display: inline-block;
  color: #848484;
}
/*# sourceMappingURL=style.css.map */