@charset "UTF-8";
/* 全体--------------------------------------*/
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@900&display=swap");
.ai-chat-section p {
  font-family: "Noto Sans JP";
}
.ai-chat-section .ai-talk-mb, .ai-chat-section .contact-btn-wrapper {
  display: none;
}

/*モーダル--------------------------------------*/
/* モーダルと背景の指定 */
.ai-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  text-align: center;
  background: top left/cover repeat url(../renew_img/ai-chat/ai-background.jpg);
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  z-index: 2;
}

/* モーダルの擬似要素の指定 */
/* クラスが追加された時の指定 */
.ai-modal.ai-is-active {
  opacity: 1;
  visibility: visible;
}

/* モーダル内側の指定 */
.ai-modal-container {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 100%;
  /* margin-top: ヘッダーの高さにしてjsで調整;*/
}

/* モーダルを開くボタンの表示デザインホバー時 */
.ai-modal-open:hover {
  opacity: 0.7;
  cursor: pointer;
}

/* モーダル内スクロールバー非表示 */
.ai-modal.ai-is-active {
  /*IE(Internet Explorer)・Microsoft Edgeへの対応*/
  -ms-overflow-style: none;
  /*Firefoxへの対応*/
  scrollbar-width: none;
  /*Google Chrome、Safariへの対応*/
}
.ai-modal.ai-is-active::-webkit-scrollbar {
  display: none;
}

/*タイトルとボタン--------------------------------------*/
.ai-chat-section .ai-title {
  position: fixed;
  width: 100%;
  background-color: #102541;
  z-index: 3;
}
.ai-chat-section .ai-title > div {
  max-width: 1280px;
  padding: 0 24px;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  color: white;
}
.ai-chat-section .ai-title > div > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 40px;
  cursor: pointer;
}
.ai-chat-section .ai-title > div > p {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  font-size: 24px;
}

/* モーダルのコンテンツ部分の指定 --------------------------------------*/
.ai-modal-content {
  max-width: 1280px;
  margin: 72px auto 0 auto;
  padding: 0 24px 0 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
}

/*AIコンシェルジュ、ボタン、チャット欄*/
.ai-chat-section .img-btn-messages-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  /*height: 高さはjsで調整*/
}

/*AIコンシェルジュ*/
.ai-chat-section .ai-img-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: end;
}
.ai-chat-section .ai-img-wrapper > img {
  /*height: 高さはjsで調整*/
}

/*ボタンとチャットボックス --------------------------------------*/
.ai-chat-section .btn-messages-wrapper {
  width: 600px;
  /*height: 高さはjsで調整*/
  overflow-y: scroll;
  padding-bottom: 40px;
  /*質問ボタン*/
  /*チャットボックス*/
}
.ai-chat-section .btn-messages-wrapper::-webkit-scrollbar {
  width: 7px;
}
.ai-chat-section .btn-messages-wrapper::-webkit-scrollbar-thumb {
  background: -webkit-gradient(linear, left top, left bottom, color-stop(50%, #1bb4d3), to(#1bd8d3));
  background: linear-gradient(to bottom, #1bb4d3 50%, #1bd8d3);
  border-radius: 5px;
}
.ai-chat-section .btn-messages-wrapper::-webkit-scrollbar-track {
  background: #dcdcdc;
}
.ai-chat-section .btn-messages-wrapper .question-btn-wrapper {
  background-color: #F5F5F5;
  padding: 24px;
  margin-right: 24px;
  border-radius: 10px;
}
.ai-chat-section .btn-messages-wrapper .question-btn-wrapper .ai-talk-pc p {
  text-align: left;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.ai-chat-section .btn-messages-wrapper .question-btn-wrapper .question-btn-content {
  margin: 24px 0 0 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  gap: 8px;
}
.ai-chat-section .btn-messages-wrapper .question-btn-wrapper .question-btn-content > button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  max-width: 400px;
  padding: 10px 18px;
  text-align: left;
  background-color: white;
  color: #102541;
  border-radius: 50px;
  border: #102541 solid 1px;
}
.ai-chat-section .btn-messages-wrapper .question-btn-wrapper .question-btn-content > button:hover {
  background-color: #E3EFFF;
  cursor: pointer;
}
.ai-chat-section .btn-messages-wrapper .question-btn-wrapper .question-btn-content > button > img {
  height: 12px;
}
.ai-chat-section .btn-messages-wrapper .messages-wrapper #messages {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin-right: 24px;
}
.ai-chat-section .btn-messages-wrapper .messages-wrapper #messages .my_displayMessage {
  padding: 48px 0 0 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}
.ai-chat-section .btn-messages-wrapper .messages-wrapper #messages .my_displayMessage p {
  position: relative;
  display: inline-block;
  padding: 16px 24px;
  margin-left: 120px;
  border-radius: 5px;
  background-color: #9CDBDC;
  text-align: left;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}
.ai-chat-section .btn-messages-wrapper .messages-wrapper #messages .receive_displayMessage {
  padding: 48px 0 0 0;
}
.ai-chat-section .btn-messages-wrapper .messages-wrapper #messages .receive_displayMessage > img {
  display: none;
}
.ai-chat-section .btn-messages-wrapper .messages-wrapper #messages .receive_displayMessage > p {
  margin-right: 120px;
  line-height: 1.5;
  padding: 16px 24px;
  border-radius: 5px;
  background-color: #F5F5F5;
  text-align: left;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}
.ai-chat-section .btn-messages-wrapper .messages-wrapper #messages .receive_displayMessage > p > a {
  color: #2c63aa;
}
/*送信欄--------------------------------------*/
.ai-chat-section .chat-box-wrapper {
  z-index: 2;
  position: fixed;
  width: 100%;
  bottom: 0;
}
.ai-chat-section .chat-box-wrapper #chat-box {
  max-width: 1080px;
  width: 100%;
  margin: auto auto 16px auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}
.ai-chat-section .chat-box-wrapper #chat-box > div:first-child {
  margin-right: 24px;
  height: 54px;
  width: 54px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.ai-chat-section .chat-box-wrapper #chat-box > div:first-child img {
  width: 100%;
}
.ai-chat-section .chat-box-wrapper #chat-box > div:first-child:hover {
  opacity: 0.8;
  -webkit-transition-duration: 0.15s;
          transition-duration: 0.15s;
  cursor: pointer;
}
.ai-chat-section .chat-box-wrapper #chat-box .chat-box-inner {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  border: #102541 solid 1px;
  background-color: white;
  height: 54px;
  padding: 0 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.ai-chat-section .chat-box-wrapper #chat-box .chat-box-inner input {
  font-size: 16px;
  border: none;
  outline: none;
  width: 95%;
}
.ai-chat-section .chat-box-wrapper #chat-box button {
  border: none;
  background-color: #102541;
  color: white;
  height: 54px;
  width: 112px;
  font-size: 16px;
  padding: 0 24px;
  white-space: nowrap;
  cursor: pointer;
  -webkit-transition-duration: 0.15s;
          transition-duration: 0.15s;
}
.ai-chat-section .chat-box-wrapper #chat-box button:hover {
  opacity: 0.7;
}

/*750px以下----------------------------------------------------------------------------*/
@media screen and (max-width: 750px) {
  .ai-modal {
    height: 100vh;
  }
  .sp-fixed-bnr {
    z-index: 1;
  }
  .ai-chat-section .ai-talk-pc {
    display: none;
  }
  .ai-chat-section .ai-talk-mb {
    display: block;
  }
  /*タイトルとボタン--------------------------------------*/
  .ai-chat-section .ai-title > div {
    padding: 0 2rem;
  }
  .ai-chat-section .ai-title > div > div {
    font-size: 30px;
  }
  .ai-chat-section .ai-title > div > p {
    font-size: 16px;
  }
  /* モーダルのコンテンツ部分の指定 --------------------------------------*/
  .ai-modal-content {
    padding: 0;
    margin-top: 54px;
  }
  /*AIコンシェルジュ、ボタン、チャット欄*/
  .ai-chat-section .img-btn-messages-container {
    padding-top: 24px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 0;
    width: 100%;
  }
  .ai-chat-section .img-btn-messages-container .ai-img-wrapper {
    padding: 0 2rem;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .ai-chat-section .img-btn-messages-container .ai-img-wrapper > img {
    max-width: 200px;
  }
  .ai-chat-section .img-btn-messages-container .ai-img-wrapper > .ai-talk-mb {
    text-align: start;
    background-color: #F5F5F5;
    border-radius: 10px;
    padding: 24px;
  }
  .ai-chat-section .img-btn-messages-container .ai-img-wrapper > .ai-talk-mb > p {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .ai-chat-section .img-btn-messages-container .ai-img-wrapper > .ai-talk-mb > p:nth-child(3) {
    margin-bottom: 10px;
  }
  .ai-chat-section .img-btn-messages-container .btn-messages-wrapper {
    overflow-y: visible;
    width: 100%;
    margin-bottom: 202px;
  }
  .ai-chat-section .img-btn-messages-container .btn-messages-wrapper .question-btn-wrapper {
    margin: 0;
    padding: 24px 2rem;
  }
  .ai-chat-section .img-btn-messages-container .btn-messages-wrapper .question-btn-wrapper .question-btn-content {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin: 0;
  }
  .ai-chat-section .img-btn-messages-container .btn-messages-wrapper .question-btn-wrapper .question-btn-content > button {
    padding: 18px;
    width: 100%;
    max-width: none;
  }
  .ai-chat-section .img-btn-messages-container .btn-messages-wrapper .messages-wrapper {
    padding: 0 2rem;
  }
  .ai-chat-section .img-btn-messages-container .btn-messages-wrapper .messages-wrapper #messages {
    margin: 0;
  }
  .ai-chat-section .img-btn-messages-container .btn-messages-wrapper .messages-wrapper #messages .my_displayMessage {
    padding-top: 24px;
  }
  .ai-chat-section .img-btn-messages-container .btn-messages-wrapper .messages-wrapper #messages .my_displayMessage > p {
    margin: 0;
    padding: 16px;
    border-radius: 10px;
  }
  .ai-chat-section .img-btn-messages-container .btn-messages-wrapper .messages-wrapper #messages .receive_displayMessage {
    position: relative;
    padding-top: 24px;
    display: block;
  }
  .ai-chat-section .img-btn-messages-container .btn-messages-wrapper .messages-wrapper #messages .receive_displayMessage > img {
    display: block;
    width: 50px;
    position: absolute;
  }
  .ai-chat-section .img-btn-messages-container .btn-messages-wrapper .messages-wrapper #messages .receive_displayMessage > p {
    margin: 0 0 0 60px;
    padding: 16px;
    border-radius: 10px;
  }
  /*送信欄--------------------------------------*/
  .ai-chat-section .chat-box-wrapper {
    margin-bottom: 72px;
    padding: 16px 0;
    background-color: white;
    -webkit-box-shadow: 0px -10px 10px rgba(222, 227, 238, 0.63);
            box-shadow: 0px -10px 10px rgba(222, 227, 238, 0.63);
  }
  .ai-chat-section .chat-box-wrapper #chat-box {
    margin-bottom: 0;
  }
  .ai-chat-section .chat-box-wrapper #chat-box > div:first-child {
    margin-right: 8px;
    height: 48px;
  }
  .ai-chat-section .chat-box-wrapper #chat-box .chat-box-inner {
    padding: 0px;
    height: 48px;
  }
  .ai-chat-section .chat-box-wrapper #chat-box > button {
    height: 48px;
    padding: 0;
    width: 88px;
    font-size: 14px;
  }
  /*お問い合わせ欄--------------------------------------*/
  .ai-chat-section .contact-btn-wrapper {
    background-color: #102541;
    padding: 16px 2rem;
    width: 100%;
    position: fixed;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 32px;
    bottom: 0;
  }
  .ai-chat-section .contact-btn-wrapper > a {
    width: 300px;
    height: 40px;
    background-color: white;
    color: #102541;
    border-radius: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    text-decoration: none;
  }
  .ai-chat-section .contact-btn-wrapper > a > a:first-child {
    margin-left: 16px;
  }
  .ai-chat-section .contact-btn-wrapper > a > a:last-child {
    margin-right: 16px;
  }
  .ai-chat-section .contact-btn-wrapper > a:hover {
    opacity: 0.7;
    -webkit-transition-duration: 0.15s;
            transition-duration: 0.15s;
  }
}
/*480px以下----------------------------------------------------------------------------*/
@media screen and (max-width: 480px) {
  /*AIコンシェルジュ、ボタン、チャット欄*/
  .ai-chat-section .img-btn-messages-container {
    padding-top: 12px;
  }
  .ai-chat-section .img-btn-messages-container .ai-img-wrapper > img {
    max-width: 120px;
    padding-top: 10px;
  }
  .ai-chat-section .img-btn-messages-container .ai-img-wrapper > .ai-talk-mb {
    padding: 16px 16px;
  }
  .ai-chat-section .img-btn-messages-container .ai-img-wrapper > .ai-talk-mb > p {
    line-height: 1.4;
  }
  /*送信欄--------------------------------------*/
  .ai-chat-section .chat-box-wrapper #chat-box {
    padding: 0;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: end;
  }
  .ai-chat-section .chat-box-wrapper #chat-box > div:first-child {
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: end;
    width: 40px;
    height: 40px;
    margin-right: 8px;
    max-width: none;
  }
  .ai-chat-section .chat-box-wrapper #chat-box > div:first-child img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    max-width: none;
  }
  .ai-chat-section .chat-box-wrapper #chat-box .chat-box-inner {
    max-width: none;
    width: 480px;
    padding: 0px 0px 0px 6px;
  }
  .ai-chat-section .chat-box-wrapper #chat-box .chat-box-inner > input {
    letter-spacing: -1.5px;
    min-width: 200px;
    padding: 8px 4px;
  }
  .ai-chat-section .chat-box-wrapper #chat-box button {
    width: 72px;
    padding: 0 8px;
    height: 48px;
    font-size: 14px;
  }
  /*お問い合わせ欄--------------------------------------*/
  .ai-chat-section .contact-btn-wrapper {
    gap: 16px;
  }
  .ai-chat-section .contact-btn-wrapper > a {
    font-size: 14px;
  }
}
