@charset "UTF-8";
/**
 * チャット
 * NOTE: /m_chat1/, /m_chat2/
**/

/* chat value header */
.chat-root {
  --header-padding-block: 12px;
  --header-height: 112px;
  --header-logo-width: 52px;
}
@media screen and (max-width: 767px) {
  .chat-root {
    --header-padding-block: 12px;
    --header-height: 96px;
    --header-logo-width: 52px;
  }
}
@media screen and (max-width: 560px) {
  .chat-root {
    --header-padding-block: 8px;
    --header-height: 72px;
    --header-logo-width: 40px;
  }
}

/* chat bg */
.chat-root body::before {
  background-image: url(/common/images/bg-default.jpg);
  background-position: center top;
  background-size: cover;
  height: calc( var(--header-height) * 1 );
}

/* chat header, breadcrumb */
.page-chat header {
  height: var(--header-height);
  padding-block: var(--header-padding-block);
}
.page-chat .breadcrumb {
  padding: var(--header-height) 0 0;
}


/* chat */
.chat {
  padding-bottom: 200px;
}

@media only screen and (max-width: 959px) {
  .chat {
    padding-bottom: 140px;
  }
}

/* chat outline */
/* NOTE: ヘッダー、フレーム、フッターの親ラッパー */
.chat-outline {
  padding: 0;
}
@media only screen and (max-width: 767px) {
  .chat-outline {
    margin-inline: calc( var(--site-container-padding-inline) * -0.5 );
  }
}

.chat-outline .c-head {
  margin: 0;
}
.chat-outline .c-head .c-head__ttl {
  font-size: 18px;
}
@media only screen and (max-width: 767px) {
  .chat-outline .c-head .c-head__ttl {
    font-size: 16px;
  }
}

/* chat header */
.chat-header {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-start;
  align-content: stretch;
  align-items: stretch;
  margin: 0 0 8px;
  gap: 0 8px;
}
@media only screen and (max-width: 767px) {
  .chat-header {
    gap: 0 4px;
  }
}

.chat-header .c-head {
  width: 100%;
}
.chat-header .c-head__ttl {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 0.5em;
}
.chat-header .c-head__ttl>i {
  display: block;
  margin: 0 1.25em 0 0;
}
.chat-header .c-head__ttl>i>img {
  border-radius: 50%;
  width: 1em;
  height: 1em;
  transform: scale(1.75);
  transform-origin: left center;
  vertical-align: middle;
}
.chat-header .c-head__ttl>span {
  display: block;
}

.chat-header .chat__status {
  float: none;
  /* .chat-header内部ではfloat解除 */
}

.chat__status {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-content: center;
  align-items: center;
  border-radius: var(--site-radius-btn);
  border: 1px solid var(--site-c-lightgray);
  background: var(--site-c-main);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  width: auto;
  margin: 0;
  padding: 8px;
  float: left;
}
.chat__status .btn {
  color: inherit;
  max-width: none;
  margin: 0;
}
.chat__status .btn>* {
  height: auto;
}
.chat__status input {
  color: inherit;
}

@media only screen and (max-width: 767px) {
  .chat__status {
    font-size: 10px;
    width: auto;
    padding: 6px;
  }
  .chat__status .btn,
  .chat__status input {
    font-size: 12px;
  }
  .chat__status .btn>* {
    font-size: inherit;
  }
}

.chat-inner body {
  /* 不使用 */
  margin: 0 !important;
}

/* chat iframe */
.chat-inner .inner {
  /* 不使用 */
  overflow: hidden;
}

/* chat iframe */
.chat-inner .ifrm {
  width: 100%;
  min-height: 55vh;
  padding: 10px 0;
  background: #fff;
  border: 1px solid var(--site-c-lightgray);
  border-radius: var(--site-radius-btn);
}

@media only screen and (max-width: 767px) {
  .chat-inner .ifrm {
    min-height: 50vh;
    padding: 5px 0;
  }
}

@media only screen and (max-width: 320px) {
  .chat-inner .ifrm {
    min-height: 42vh;
    padding: 0;
  }
}

/* chat html body on iframe */

body.chat-inner-iframe::before {
  display: none;
}
body.chat-inner-iframe>.wrap {
  overflow-x: hidden;
  overflow-y: auto;
}
body.chat-inner-iframe .l-container {
  padding: 0;
}


/* chat 吹き出し */
.left_balloon,
.right_balloon {
  margin: 10px 30px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

@media only screen and (max-width: 767px) {

  .left_balloon,
  .right_balloon {
    margin: 18px 12px;
  }
}

.right_balloon {
  justify-content: flex-end;
}

.faceicon img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  -o-object-fit: cover;
  object-fit: cover;
  font-family: "object-fit: cover;";
}

@media only screen and (max-width: 767px) {
  .faceicon img {
    width: 25px;
    height: 25px;
  }
}

.right_balloon .faceicon {
  margin-left: 25px;
  order: 2 !important;
  display: none
}

.left_balloon .faceicon {
  margin-right: 25px;
}

@media only screen and (max-width: 767px) {
  .left_balloon .faceicon {
    margin-right: 12px;
  }
}

.balloon_div_right {
  max-width: 500px;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  padding: 10px 13px 10px 18px;
  border-radius: 12px;
  background: #c5f281;
  box-sizing: border-box;
  margin: 0 !important;
  line-height: 1.5;
}

.left_balloon .balloon_div_right {
  background: #eee;
}

.system_balloon {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  padding: 10px 13px 10px 18px;
  border-radius: 12px;
  background: #c9efff;
  box-sizing: border-box;
  line-height: 1.5;
}

.but_send {
  background-color: #99DEED;
  color: #fff;
  border-radius: 4px !important;
  margin: 5px 10px 5px 0;
  border-left: none !important;
}

.but_send:hover {
  background-color: var(--site-c-main);
}

.but_agree {
  border-left: none !important;
}

.enterprise {
  background: #ddd !important;
}

@media only screen and (max-width: 767px) {

  .balloon_div_right,
  .system_balloon {
    padding: 8px 13px 10px 15px;
  }
}

.balloon_div_right p,
.system_balloon p {
  width: 100%;
  margin: 0;
  display: block;
  font-size: 14px;
}

@media only screen and (max-width: 767px) {

  .balloon_div_right p,
  .system_balloon p {
    font-size: 12px;
  }
}

.balloon_div_right p:first-child,
.system_balloon p:first-child {
  margin-top: 0 !important;
}

.balloon_div_right::after {
  content: "";
  position: absolute;
  border: 10px solid transparent;
  /*   margin-top:-3px;  */
}

.left_balloon .enterprise::after {
  left: -26px;
  border-right: 22px solid #ddd !important;
}

.left_balloon .balloon_div_right::after {
  left: -26px;
  border-right: 22px solid #eee;
}

.right_balloon .balloon_div_right::after {
  right: -26px;
  border-left: 22px solid #c5f281;
}

@media only screen and (max-width: 767px) {
  .left_balloon .balloon_div_right::after {
    top: 4px;
    left: -20px;
    border-right: 22px solid #eee;
  }

  .right_balloon .balloon_div_right::after {
    top: 4px;
    right: -20px;
    border-left: 22px solid #c5f281;
  }
}

.balloon_sub {
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap
}

.balloon_name {
  margin-right: 5px;
  font-size: 13px;
  font-weight: 700;
  display: block;
}

.balloon_date {
  margin-right: 5px;
  color: #7d7d7d;
  font-size: 11px
}

.balloon_kidoku {
  padding: 0 5px;
  font-size: 10px;
  border: 1px solid #B4BFC2;
  border-radius: 3px;
}

@media screen and (max-width: 767px) {
  .balloon_name {
    width: 100%;
  }

  .balloon_name,
  .balloon_date {
    font-size: 10px;
  }

  .balloon_kidoku {
    font-size: 8px;
  }
}

/* chat footer */
.chat-footer {
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 4px;
  position: relative;
  order: 10;
}
.chat-footer textarea {
  border: solid 3px var(--site-c-lightgray);
  max-width: none;
  max-height: 40vh;
  min-height: 6em;
  margin: 0;
  padding: 1em;
}
.chat-footer textarea::placeholder {
  color: var(--site-c-gray);
}
@media only screen and (max-width: 767px) {
  .chat-footer textarea {
    font-size: 16px;
    line-height: 2;
    padding: 0.25em 1em;
  }
}


.submit__area {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: center;
  align-items: center;
  width: 100%;
  gap: 8px;
  position: static;
  order: -1;
}

.chat__submit [type="submit"],
.chat__submit [type="button"],
.chat__submit [type="file"] {
  border-left: 1px solid var(--site-c-lightgray);
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  width: auto;
  height: 40px;
  padding: 0 2ex;
}
@media only screen and (max-width: 767px) {
  .chat__submit [type="submit"],
  .chat__submit [type="button"],
  .chat__submit [type="file"] {
    font-size: 13px;
  }
}

.chat__submit [type="submit"] {
  font-weight: 700;
  text-indent: 0.5ex;
  letter-spacing: 0.5ex;
}

.btn-file {
  height: 40px;
}
.btn-file::before {
  content: '';
  display: block;
  background: url(../images/icon-clip.png) center center / 100% no-repeat;
  background-size: contain;
  height: 100%;
  aspect-ratio: 1 / 1;
}
.chat__file-select {}
.chat__file-name {}
.chat__file-del {
  font-weight: 700;
}
@media only screen and (max-width: 767px) {
  .btn-file {
    height: 30px;
  }
  .btn-file::before {
    width: 30px;
    height: 30px;
  }
}


.chat__toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: center;
  align-items: center;
  color: var(--site-c-gray);
  font-weight: 700;
  font-feature-settings: 'palt';
  font-size: 14px;
  padding: 0;
  gap: 6px;
}

*+.chat__toolbar {
  margin-top: 8px;
}

.submit__area .chat__toolbar {
  margin-left: 0;
  margin-right: auto;
}

.chat__toolbar-btn {
  color: inherit;
  font-size: inherit;
}

.chat__toolbar-btn i {
  display: inline-block;
  color: inherit;
  transform: translate(0, 0) scale(1.33);
  transform-origin: left center;
}

.chat__toolbar-btn span {
  display: inline-block;
  color: inherit;
  /*opacity: 0.56;*/
}

.chat__toolbar-btn i+span {
  margin-left: 1ex;
}

@media only screen and (max-width: 767px) {
  .chat__toolbar {
    font-size: 13px;
  }
}



.chat-modal__template-msg {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.chat-modal__template-msg>li {
  background: #fafafa;
  color: #919191;
  font-size: 14px;
  text-align: left;
  padding: 0.5em;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.chat-modal__template-msg>li:empty {
  display: none;
}

.chat-modal__template-msg>li:hover {
  background: var(--site-c-main);
  color: #fff;
}

.chat-modal__template-msg>li+li {
  margin-top: 4px;
}

@media only screen and (max-width: 767px) {
  .chat-modal__template-msg>li {
    font-size: 13px;
  }
}
