@charset "UTF-8";

:root {
	--c2b-black:#504b4b;
}

/* reset styles */

html, body, h1, h2, h3, p, ul, li {
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

ul, li {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

body {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  background: #fff;
  color: var(--c2b-black);
}

/* font setting */

html {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 12px;
}

h1, .text-strong {
  font-weight: 600;
}

main {
    font-size: 1.4rem;
    line-height: 2.4rem;
}

/* init style */

header {
  background-color: var(--c2b-subcolor);
}

header .header-logo img {
  max-width: 600px;
  width: auto;
  margin: 0 auto;
  display: block;
}

header .header-logo {
  padding: 20px 0;
}

main {
  max-width: 940px;
  width: 100%;
  margin: 0 auto 30px;
}

.contact-chat-wrap h1 {
  border-bottom: solid 2px var(--c2b-maincolor);
  padding-bottom: 4px;
  margin: 10px 0 20px;
  line-height: 2rem;
  font-size: 2rem;
}

.contact-chat-wrap .contact-chat-desc {
  padding: 0 1em 40px;
}

.contact-chat-wrap .chat-form {
  border: 1px solid #e1e1e1;
  position: relative;
  height: 560px;
  height: 60vh;
}

.contact-chat-wrap .chat-form-content {
  height: 560px;
  height: 60vh;
  padding: 30px 30px 30px 20px;
  overflow-y: auto;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
       -o-box-sizing: border-box;
      -ms-box-sizing: border-box;
          box-sizing: border-box;
}
.contact-chat-wrap .chat-form-comment {
  position: relative;
  margin-bottom: 10px;
}
.contact-chat-wrap .chat-form-staff-comment {
  display: flex;
  flex-wrap: wrap;
}
.contact-chat-wrap .chat-form-comment-box {
  padding: 15px 20px;
  border-radius: 10px;
  max-width: 600px;
  position: relative;
}
.contact-chat-wrap .chat-form-comment-box::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 16px;
  background: no-repeat center center / 100% 100%;
  position: absolute;
  top: 40px;
}

.contact-chat-wrap .chat-form-user-comment-box::before {
	mask-image:url(/assets/images/chat_form_fukidashi_user.svg);
	mask-size:contain;
	mask-repeat: no-repeat;
	mask-position: center;
	background-color: var(--c2b-subcolor);
  right: -12px;
}

.contact-chat-wrap .chat-form-staff-comment-box::before {
	mask-image:url(/assets/images/chat_form_fukidashi_staff.svg);
	mask-size:contain;
	mask-repeat: no-repeat;
	mask-position: center;
	background-color: var(--c2b-maincolor);
  left: -12px;
}

.contact-chat-wrap .chat-form-user-comment-box {
  color: inherit;
  background: var(--c2b-subcolor);
  /* float: right; */
  margin: 0 0 0 auto;
}
.contact-chat-wrap .chat-form-staff-comment-box {
  color:#fff;
  background: var(--c2b-maincolor);
  margin: 0 0 0 20px;
}
.contact-chat-wrap .chat-form-comment-date {
  clear: both;
  color: #989898;
  font-size: 1.2rem;
  padding: 5px 0;
}
.contact-chat-wrap .chat-form-user-comment-date {
  text-align: right;
}
.contact-chat-wrap .chat-form-staff-comment-date {
  margin-left: 20px;
}
.contact-chat-wrap .chat_form_staff_icon {
    background: url('/assets/images/chat_form_staff_bg.png') center no-repeat;
    background-size: contain;
    width: 80px;
    height: 80px;
    display:flex;
    justify-content: center;
    align-items: center;
}
.contact-chat-wrap .chat_form_staff_icon_img {
	content:'';
	display:block;
	width: 68px;
	height: 68px;
	position:absolute;
	mask-image:url(/assets/images/chat_form_staff_icon.svg);
	mask-size:contain;
	mask-repeat: no-repeat;
	mask-position: center;
	background-color: var(--c2b-maincolor);
}
/* result */

.contact-result-wrap .chat-form-result {
  width: 100%;
  padding: 10px;
  background: #fafafa;
  border: 1px solid #e1e1e1;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
       -o-box-sizing: border-box;
      -ms-box-sizing: border-box;
          box-sizing: border-box;
}
.contact-result-wrap .chat-form-result-text {
  text-align: center;
  font-weight: bold;
}
.contact-result-wrap .chat-form-result .bt-form {
  margin-top: 10px;
}
.contact-result-wrap .chat-form-result .bt-submit {
  background-color: var(--c2b-maincolor);
  position: relative;
  display: block;
  width: 160px;
  height: 40px;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  margin: 0 10px;
  transition: .2s;
  cursor: pointer;
}
.contact-result-wrap .chat-form-result .bt-submit:hover {
  opacity: 0.7;
}
.contact-result-wrap .chat-form-result .bt-submit > .flexbox {
  height: 100%;
}

.contact-result-wrap .chat-form-result .chat-form-text-input-wrap {
  position: relative;
  margin-top: 10px;
}
.contact-result-wrap .chat-form-result .chat-form-text-close {
  position: absolute;
  right: -7px;
  top: -40px;
  font-size: 20px;
  line-height: 1;
  padding: 7px;
  font-weight: bold;
  cursor: pointer;
}
.contact-result-wrap .chat-form-result .chat-form-text-input {
  background: #fff;
  padding: 10px;
  line-height: 20px;
  width: calc(100% - 70px);
  border: 1px solid #e1e1e1;
  border-right: none;
  border-radius: 5px 0 0 5px;
}
.contact-result-wrap .chat-form-text-input::placeholder {
  color: #cdcdcd;
}
.contact-result-wrap .chat-form-text-input::-webkit-input-placeholder {
  color: #cdcdcd;
}
.contact-result-wrap .chat-form-text-input-bt-send {
  width: 70px;
  line-height: 40px;
  background: var(--c2b-maincolor);
  text-align: center;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  transition: .2s;
}
.contact-result-wrap .chat-form-text-input-bt-send:hover {
  opacity: 0.7;
}
.contact-result-wrap button{background:none; outline:none; border:none; transition:.3s; -webkit-transition:.3s;}
.contact-result-wrap .flexbox{display:-webkit-flex; display:flex;}
.contact-result-wrap .jc-center{-webkit-justify-content:center; justify-content:center;}
.contact-result-wrap .flexbox-center{-webkit-align-items:center; align-items:center; -webkit-justify-content:center; justify-content:center;}

.footer-wrap {
  padding: 30px 0;
  text-align: center;
  background-color: var(--c2b-subcolor);
}


/* message part */

#msgSend {
	display:none;
}


/* error */

.error header {
    background-color: #EBE1D7;
}

.error .header-text {
    font-size: 1.4em;
    text-align: center;
    padding: 20px 0;
}

.error .contact-chat-wrap h1 {
    border-bottom: solid 2px #EBE1D7;
}

.error .footer-wrap {
    background-color: #EBE1D7;
}

@media screen and (max-width:768px){

	header .header-logo img {
	    width: 50%;
	}

	main {
	    padding: 20px;
	}

	.contact-chat-wrap h1 {
	    font-size: 1.8rem;
	    text-align: center;
	    padding-bottom: 10px;
	}

	.contact-result-wrap .chat-form-result-text {
	    font-size: 1.2rem;
	    line-height: 1.8rem;
	}

  .contact-chat-wrap .chat_form_staff_icon {
      width: 48px;
      height: 48px;
  }
  .chat_form_staff_comment_wrap {
      flex: 1;
  }
  .contact-chat-wrap .chat-form-comment-box {width: 90%;}

  .contact-chat-wrap .chat-form-content {
      padding: 30px 15px;
  }

}