@charset "UTF-8";
/********************************************
// ↓ _aichat.scss
********************************************/
/*AIチャットセクション ここから*/
#ai_section {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin: 60px 0;
}
.ai-section-title {
  margin-bottom: 15px;
}

.ai-section-title__txt {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.8em;
  text-align: center;
}

.ai-section-title__txt span {
  border-bottom: solid 1px #1b1b1b;
  padding-bottom: 5px;
}

@media screen and (max-width: 767px) {
  #ai_section {
    box-shadow: 0 -6px 10px -4px rgba(0, 0, 0, 0.3); /* 上方向のみ影を表示 */
  }
  .ai-section-title {
    margin-bottom: 0;
  }
  .ai-section-title__txt {
    font-size: 3.5vw;
    text-align: center;
    margin: 5% auto;
  }
}
/* =========================================
Base & Common Styles (Desktop First)
========================================= */
.paics_container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin: -50px auto 0;
  box-sizing: border-box;
  background: transparent;
}

.paics_container_inner {
  max-width: 940px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  padding: 2px 0 4px;
  position: relative;
}

.paics_container_inner:before, .paics_container_inner:after {
  height: 63px;
}

.paics_container_inner_prettl {
  display: none;
}

/* Input Forms */
.paics_container input {
  width: 100%;
  padding: 3px 15px;
  font-size: 16px;
  letter-spacing: 0.1em;
  box-sizing: border-box;
  border-radius: 8px;
  border: none;
  box-shadow: inset 0px 0px 10px 0px rgba(100, 100, 100, 0.05) !important;
  cursor: pointer;
}

.paics_container__cnt__input input {
  height: 52px;
  padding-right: 70px;
}

.paics_container ::placeholder {
  color: #999 !important;
}

.paics_container__cnt__input:hover {
  cursor: pointer;
}

/* Buttons & Images */
.paics_container button[id^=cb][id$=-button] {
  display: block;
  position: absolute;
  right: 55px;
  border: none;
  font-size: 16px;
  height: 25px;
  width: 40px;
  border-radius: 5px;
  background: none;
  color: #888;
  pointer-events: none;
}

.paics_container__img {
  width: 48px;
  padding-top: 4px;
  display: none;
}

.paics_container__img img {
  filter: brightness(110%) contrast(90%);
}

.paics_container__cnt {
  width: 100%;
  padding: 12px 17px 12px 18px;
  display: flex;
  align-items: center;
  transition: all 0.5s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.paics_container__cnt__ttl {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.5em;
  width: 168px;
  padding: 7px 0;
  text-align: center;
  flex-shrink: 0;
}

.paics_container__cnt__box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paics_container__cnt__box__item {
  display: flex;
}

.paics_container__cnt__input {
  position: relative;
  display: flex;
  align-items: center;
  width: calc(100% - 218px);
}

.paics_container__cnt__box__ttl {
  width: 100%;
}

.paics_container__cnt__box__ttl__item {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
}

.paics_container__cnt__box__ttl__option {
  background-color: #e4ecf1;
  border-radius: 30px;
  border: 2px solid #fff;
  padding: 10px 20px;
  flex: 0 0 auto;
  font-size: 14px;
  cursor: pointer;
}

.paics_container__cnt__input .ai_chat_btn3 {
  position: absolute;
  right: 12px;
  top: 5px;
  width: 24px;
  cursor: pointer;
}

.paics_container__cnt__input .ai_chat_btn3 + .ai_chat_btn3 {
  right: 50px;
  top: 16px;
  width: 20px;
}

.paics_container__cnt__input .ai_chat_btn3:hover {
  opacity: 0.6;
}

.paics_container__cnt__bnr_pc {
  min-width: 216px;
  height: 54px;
  margin: auto 0 auto 10px;
}

.paics_container__cnt__bnr_pc img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  backface-visibility: visible;
}

.paics_container__cnt__bnr_sp {
  display: none;
}

.paics_container .modal_header_box__wrap {
  display: none;
}

/* Suggest List (cb-wrapper) */
.paics_container .cb-wrapper {
  background-color: #fff;
  padding: 20px 20px 10px 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.paics_container .cb-wrapper_ttl:before {
  content: "クリック一つで即回答いたします";
  font-size: 13px;
  letter-spacing: 0.01em;
  color: #fff;
  background: #595757;
  padding: 6px 0;
  display: block;
  text-align: center;
  pointer-events: none;
}

.paics_container .cb-wrapper .scroll-container {
  margin-top: 5px;
  height: 150px;
  width: 100%;
  overflow-y: scroll !important;
  box-sizing: border-box;
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  transition: -webkit-mask-image 0.3s, mask-image 0.3s;
}

.paics_container .cb-wrapper .scroll-container::-webkit-scrollbar {
  width: 18px;
}

.paics_container .cb-wrapper .scroll-container::-webkit-scrollbar-track {
  background: #dcdcdc;
}

.paics_container .cb-wrapper .scroll-container::-webkit-scrollbar-thumb {
  background: #b0b0b0;
  border-radius: 0px;
}

.paics_container .cb-wrapper ul[role=listbox] {
  list-style: none;
  padding: 0 0 7px;
  margin: 0 auto;
  max-width: 940px;
  font-size: 12px;
  line-height: 1.8em;
  letter-spacing: 0;
}

.paics_container .cb-wrapper ul[role=listbox] li[role=option] {
  cursor: pointer;
  margin: 7px 0;
  display: block;
  padding: 6px 12px;
  border-left: solid 4px #595757;
  background: #f5f5f5;
}

.paics_container .cb-wrapper [role=listbox].focus [role=option][aria-selected=true],
.paics_container .cb-wrapper [role=listbox] [role=option]:hover {
  background-color: rgba(128, 128, 128, 0.5);
}

/* AI Section */
.aic-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 3% 50px;
  background: url("../../images/paic/ai_backimg_pc.png") no-repeat top/auto, #fff;
  background-position: calc((100vw - 1920px) / 2) 0;
}

.aic-component-wrapper {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
}

.aic-header img {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.aic-header .pc_only {
  display: block;
}

.aic-header .sp_only {
  display: none;
}

#ai_section .paics_container input {
  border-radius: 5px;
  border: solid 1px #c6c6c6;
  animation: none !important;
}

#ai_section .paics_container_inner:after, #ai_section .paics_container_inner:before {
  display: none !important;
}

#ai_section .cb-wrapper ul {
  display: block !important;
}

#ai_section .cb-wrapper ul[role=listbox] {
  width: 100%;
  transform: none !important;
  padding: 0 0 20px 0;
}

#ai_section .paics_container__cnt {
  width: 100%;
  border-radius: 10px;
  margin: 0 0 10px;
  background: #f0eeef;
}

#ai_section .paics_container__cnt__bnr_sp {
  display: none;
}

#ai_section .paics_container__cnt__input {
  background: none;
}

#ai_section .paics_container__cnt__input input {
  color: #000;
  background: #fff;
}

#ai_section .paics_container__cnt__ttl, #ai_section .paics_container__cnt__input .ai_chat_btn3 {
  display: block !important;
  background: none;
  color: #595757;
}

#ai_section .paics_container__cnt__input .ai_chat_btn3 img {
  filter: none;
  width: auto;
  border-radius: 20px;
}

#ai_section .cb-wrapper ul[role=listbox] li[role=option], #ai_section .sp-footer .cb-wrapper ul[role=listbox] li[role=option] {
  color: #000;
  background: #f5f5f5;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 500;
  margin: 2px 0;
}

#ai_section ::placeholder {
  color: #555 !important;
}

/* =========================================
Media Queries (max-width only)
========================================= */
/* ----- max-width: 1024px ----- */
@media screen and (max-width: 1024px) {
  .paics_container_inner {
    padding: 2px 15px 4px;
  }
  .paics_container .cb-wrapper {
    font-size: 15px;
  }
  #ai_section .paics_container {
    margin-top: -3%;
  }
  .aic-container {
    background-position: 50% 0;
    background-size: 180%;
  }
}
/* ----- max-width: 767px (Form Layout for SP/Tablet) ----- */
@media screen and (max-width: 767px) {
  .paics_container_inner {
    padding: 7px 12px 4px;
  }
  .paics_container_inner:before, .paics_container_inner:after {
    height: auto;
  }
  .paics_container__img {
    padding-top: 8px;
    display: none;
  }
  .paics_container__cnt {
    width: calc(100% - 140px);
    min-width: 68%;
    margin-right: 5px;
    padding: 0;
    border: solid 2px #dedede;
    border-radius: 5px;
    flex-wrap: wrap;
    background: #fff;
  }
  .focus .paics_container__cnt {
    width: 100%;
  }
  .paics_container__cnt__ttl {
    width: 88%;
    padding: 5px 5px 2px;
    border-bottom: 1px solid #dedede;
    font-weight: normal;
    color: #aaa;
    font-size: 12px;
    text-align: center;
    margin: 0 auto;
    display: block;
    line-height: 1em;
  }
  .paics_container__cnt__ttl__pre_pc, .paics_container__cnt__ttl br {
    display: none;
  }
  .paics_container__cnt__input {
    width: 100%;
    margin: 0 auto;
  }
  .paics_container__cnt__input .ai_chat_btn3 {
    right: 9px;
    top: 5px;
  }
  .paics_container__cnt__input .ai_chat_btn3 + .ai_chat_btn3 {
    right: 43px;
    top: 15px;
  }
  .paics_container__cnt__input input {
    height: 50px;
    padding-right: 70px;
    border: none;
    letter-spacing: -0.03em;
    padding-left: 5px;
  }
  .paics_container__cnt__input input::placeholder {
    font-size: 13px;
  }
  .focus .paics_container__cnt__input input::placeholder {
    font-size: 16px;
  }
  .paics_container__cnt__bnr_pc {
    display: none;
  }
  .paics_container__cnt__bnr_sp {
    display: flex;
    width: 155px;
    max-width: 32.5%;
    height: 72px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    border-radius: 5px;
  }
  .focus .paics_container__cnt__bnr_sp {
    width: 25px !important;
    background: #f5f5f5;
  }
  .focus .paics_container__cnt__bnr_sp img {
    display: none !important;
  }
  .paics_container__cnt__bnr_sp__back_bth {
    display: none;
    font-weight: bold;
    color: #aaa;
  }
  .focus .paics_container__cnt__bnr_sp__back_bth {
    display: block;
  }
  .paics_container .cb-wrapper {
    padding: 20px !important;
  }
  .paics_container .cb-wrapper .scroll-container {
    margin-top: 0;
  }
  .paics_container .cb-wrapper_ttl:before, #ai_section .cb-wrapper ul[role=listbox] li[role=option], #ai_section .sp-footer .cb-wrapper ul[role=listbox] li[role=option] {
    font-size: 13px !important;
  }
  .paics_container .cb-wrapper_ttl:before {
    padding: 8px 0;
    font-weight: 700;
  }
  #ai_section .paics_container_inner {
    background: #2f64bb;
    padding: 30px 10px 10px !important;
    gap: 10px;
    border-radius: 5px;
  }
  #ai_section .paics_container_inner_prettl {
    display: block;
    font-size: 13px;
    font-weight: bold;
    padding: 5px 0;
    text-align: center;
    margin-bottom: -28px;
    z-index: 1;
    position: relative;
    color: #fff;
  }
  #ai_section .paics_container__cnt__ttl {
    display: none !important;
  }
  #ai_section .paics_container__cnt {
    margin-top: 0px;
    margin-bottom: 0;
    min-width: 55%;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  #ai_section .paics_container__cnt__input .ai_chat_btn3 img {
    margin-top: 0;
  }
  #ai_section .paics_container__cnt__input input {
    background: none;
  }
  #ai_section .paics_container__cnt__input input {
    background: #fff;
  }
  #ai_section .paics_container__cnt__bnr_sp {
    display: flex;
    flex-shrink: 0;
    height: 50px;
    box-shadow: none;
    width: 129px;
    min-width: auto;
  }
  #ai_section .paics_container__cnt__bnr_sp a {
    height: 50px;
  }
  #ai_section .paics_container__cnt__bnr_sp img {
    height: 50px;
    backface-visibility: visible;
  }
  #ai_section .paics_container .cb-wrapper {
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }
  #ai_section .paics_container .cb-wrapper_ttl {
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    margin-bottom: 5px;
  }
}
/* ----- max-width: 767px (Backgrounds and Headers for SP) ----- */
/* 元の `min-width: 768px` の反転。768pxジャスト時はPC用背景になる元の仕様を維持 */
@media screen and (max-width: 767px) {
  .aic-container {
    padding: 40px 20px;
    background: url("../../images/paic/ai_backimg_sp.png") no-repeat top/cover;
  }
  .aic-header .pc_only {
    display: none;
  }
  .aic-header .sp_only {
    display: block;
  }
  #ai_section .paics_container {
    margin-top: 74%;
  }
}
/* ----- max-width: 480px ----- */
@media screen and (max-width: 480px) {
  .paics_container__img {
    padding-top: 10px;
  }
  .paics_container button[id^=cb][id$=-button] {
    right: 43px;
    font-size: 12px;
    width: 30px;
  }
  #ai_section .paics_container {
    margin-top: 73%;
  }
}
/* ----- max-width: 425px ----- */
@media screen and (max-width: 425px) {
  #ai_section .paics_container_inner_prettl {
    font-size: 3vw;
  }
}
/* ----- max-width: 400px ----- */
@media screen and (max-width: 400px) {
  .paics_container_inner {
    padding: 7px 10px 2px;
  }
  .paics_container__cnt__ttl {
    padding: 9px 5px 5px;
  }
  .paics_container__cnt__ttl__pre {
    display: none;
  }
  .paics_container__cnt__input .ai_chat_btn3 {
    right: 8px;
    top: 1px;
  }
  .paics_container__cnt__input .ai_chat_btn3 + .ai_chat_btn3 {
    right: 40px;
    top: 11px;
  }
  .focus .paics_container__cnt__input .ai_chat_btn3 {
    right: 10px;
  }
  .focus .paics_container__cnt__input .ai_chat_btn3 + .ai_chat_btn3 {
    right: 43px;
  }
  .paics_container__cnt__bnr_sp {
    width: 135px;
    max-width: 32.5%;
    height: 62px;
  }
}
/* ----- max-width: 374px ----- */
@media screen and (max-width: 374px) {
  .paics_container_inner {
    padding: 10px 8px 10px;
  }
  .paics_container__cnt__ttl {
    letter-spacing: 0.02em;
  }
  .paics_container__cnt__input input {
    padding-right: 65px;
  }
}
/*AIチャットセクション ここまで*/
/*フローティングバナー ここから*/
#docsbotai-root::part(button) {
  display: none !important;
  z-index: 100;
  display: none;
  background-color: #595757 !important;
  color: #fff !important;
  border: solid 1px #fff;
  padding: 0 20px 0 3px;
  height: 42px;
  font-family: "Noto Sans JP", sans-serif, "Helvetica Neue", YuGothic, "ヒラギノ角ゴ ProN W3", Hiragino Kaku Gothic ProN, Arial, "メイリオ", Meiryo, "Font Awesome 5 Free", sans-serif;
}

.chat-floating {
  position: fixed;
  top: auto;
  bottom:10px;
  right: 80px;
  width: auto;
  z-index: 999;
  box-sizing: border-box;
  max-width: 400px;
  cursor: pointer;
  transition: all 0.3s;
}
.home .chat-floating{
  top: 650px;
}
@media screen and (max-width: 768px) {
    .home .chat-floating{
      top: auto;
    }
}
/* タッチ端末ではタップ後に :hover が残るため、ホバー可能な端末のみ適用 */
@media (hover: hover) and (pointer: fine) {
  .chat-floating:hover {
    opacity: 0.7 !important;
  }
}
.chat-floating img {
  filter: drop-shadow(rgba(0, 0, 0, 0.5) 1px 1px 4px);
}

@keyframes shakeAndPause {
  /* --- 1秒間のシェイク部分 (全体の約33%) --- */
  0% {
    transform: translate(0, 0) translateY(0);
  }
  2.5% {
    transform: translate(0, 0) translateY(-8px);
    /* 上に大きく */
  }
  5% {
    transform: translate(0, 0) translateY(6px);
    /* 下に大きく */
  }
  10% {
    transform: translate(0, 0) translateY(-3px);
    /* 小さく上に */
  }
  12.5% {
    transform: translate(0, 0) translateY(0);
    /* 元の位置に戻る */
  }
  /* --- 2秒間の静止部分 (33%から100%まで) --- */
  /* この間、transformの指定がないため33%の状態が維持される */
  100% {
    transform: translate(0, 0) translateY(0);
  }
}
/* 既存のクラスにアニメーションを適用 */
.chat-floating.show {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
  pointer-events: auto;
  animation: shakeAndPause 6s ease-in-out infinite;
  animation-delay: 1s;
}

.chat-floating.is-hidden {
  opacity: 0 !important;
  /* opacity:0 だけではクリックを奪い続けるため必須 */
  pointer-events: none !important;
}

.bnr_aichat_close {
  width: 20px;
  height: 20px;
  position: absolute;
  right: -5px;
  top: -15px;
  background: #888;
  border-radius: 50%;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  border: 2px solid #fff;
  padding: 0 0 2px 2px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-family: "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "Noto Sans Japanese", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

.bnr_aichat_close:hover {
  background: rgba(0, 0, 0, 0.4);
}

#bnr_aichat_min {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 70px;
  z-index: 1000;
  transition: all 0.3s;
  cursor: pointer;
}
#bnr_aichat_min .bnr_aichat_close {
  top: -25px;
}

#bnr_aichat_min::after {
  content: "AIチャット";
  width: 70px;
  height: 16px;
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #595757;
  border-radius: 100px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
}

#bnr_aichat_min img {
  overflow: hidden;
  border-radius: 50%;
  filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.4));
}

#bnr_aichat_min img:hover {
  opacity: 0.8;
}

.slide-in {
  /* 0.5s（実行時間） 1.5s（待ち時間） の順で記述 */
  animation: slideInUp_aibnr 0.4s ease-out 0.6s forwards;
  /* 最初は隠しておきたい場合は opacity: 0 を初期値に設定 */
  opacity: 0;
}

@keyframes slideInUp_aibnr {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media screen and (max-width: 1800px) {
  .chat-floating {
    top: auto;
    right: 2%;
    bottom: 2%;
  }
}
@media screen and (max-width: 1690px) {
  .chat-floating.show .bnr_aichat_close img {
    width: 12px;
    height: 14px;
  }
}
@media screen and (max-width: 768px) {
  .chat-floating {
    max-width: 450px;
    right: 10px;
    bottom: 5px;
    width:94%;
  }
  .chat-floating.show {
    max-width: 50%;
  }
  #bnr_aichat_min {
    bottom: 14%;
    right: 10px;
  }
}
@media screen and (max-width: 767px) {
  .chat-floating.show {
    max-width: 55%;
    bottom: 70px;
  }
  .bnr_aichat_close {
    top: -20px;
  }
}
/*フローティングバナー ここまで*/
/* ----- max-width: 480px ----- */
@media screen and (max-width: 480px) {
  #bnr_aichat_min {
    bottom: 88px;
  }
}
.pc-only {
  display: block;
}
@media screen and (max-width: 768px) {
  .pc-only {
    display: none;
  }
}

.sp-only {
  display: none;
}
@media screen and (max-width: 768px) {
  .sp-only {
    display: block;
  }
}


/********************************************
// ヘッダー（キャラ・タイトル・選択ボタン）追加分
// sample.jpg / sample_sp.jpg 再現用
********************************************/

/* --- 背景：ローカル images/ パスに変更 --- */
.aic-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px 3% 55px;
  background: url(../../images/paic/ai_backimg_pc.png) no-repeat top / auto, #fff;
  background-position: calc((100vw - 1920px) / 2) 0;
}

.aic-component-wrapper {
  width: 100%;
  max-width: 940px; /* 下部フォーム(paics_container_inner)と同幅 */
  margin: 0 auto;
}

/* =========================================
   ヘッダー：PC（デフォルト）
   キャラ＝absolute ／ 右側＝flexカラム構成
========================================= */
.aic-header {
  position: relative;
  min-height: min(435px, 42vw); /* キャラ(342x435)分の高さを確保 */
  margin: 0 0 8px;
}

.aic-header__chara {
  position: absolute;
  top: 0;
  left: 0;
  margin-left: -20px;    /* コンテナ左端より少し外に出す */
  width: 36.4%; /* 342/940 */
  max-width: 342px;
  line-height: 0;
  z-index: 2;            /* 右手がボタンの上に重なる */
  pointer-events: none;  /* 重なってもボタンをクリック可能に */
}

.aic-header__chara img {
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
  margin: 0;
}

.aic-header__body {
  display: flex;
  flex-direction: column;
  margin-left: calc(100% - 660px);
  width: 660px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.aic-header__lead {
  margin: 0 0 13px;
  line-height: 0;
}

.aic-header__lead img {
  width: 100%;
  max-width: 670px;
  height: auto;
  display: block;
  margin: 0;
}

.aic-header__choices {
  display: flex;
  gap: 16px;
  align-items: stretch;
  justify-content: space-between;
}

.aic-header__choice {
  display: block;
  width: calc(50% - 7px);
  max-width: 322px;
  line-height: 0;
  transition: opacity 0.3s;
  cursor: pointer;
}

.aic-header__choice img,
.aic-header__choice3 img {
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
  margin: 0;
}

.aic-header__choice3 {
  display: block;
  width: 322px;
  max-width: 50%;
  margin: 14px auto 0;
  line-height: 0;
  transition: opacity 0.3s;
  cursor: pointer;
}

.aic-header__choice:hover,
.aic-header__choice3:hover {
  opacity: 0.6;
}

/* コンテナ(940px)が縮み始める1000px以下では、本文幅を%で流動化 */
@media screen and (max-width: 1000px) {
  .aic-header__body {
    width: auto;
    margin-left: 29.79%; /* 残り70.21%＝940px時660px相当。コンテナ縮小に合わせて比例 */
  }

  .paics_container__cnt__ttl {
    width: 130px;
  }
}

/* SP用ご利用ガイドバナー（PCでは非表示） */
.aic-guide-sp {
  display: none;
}

/* =========================================
   ヘッダー：SP（max-width: 767px）
   タイトル・キャラ・ラベルは背景画像で表現し、
   キャラ画像・テキスト画像は非表示。ボタンのみ配置。
========================================= */
@media screen and (max-width: 767px) {
  .aic-container {
    display: block;
    padding: 0;
    background: #fff;
  }

  .aic-component-wrapper {
    max-width: 750px;
  }

  /* 背景画像上部（タイトル＋キャラ＋ラベル）を表示する枠 */
  .aic-header {
    position: relative;
    min-height: 0;
    margin: 0;
    background: url("../../images/paic/ai_backimg_sp.png") no-repeat top/cover;
    aspect-ratio: 750 / 860;
    overflow: hidden;
  }

  /* ボタン01〜03：キャラ右横に等間隔でオーバーレイ
     （top はキャラの頭の高さに合わせる） */
  .aic-header__body {
    display: block;
    position: absolute;
    top: 30%;
    left: 38.4%;
    right: 5%;
    margin: 0;
    padding: 0;
    height: auto;
    z-index: 1;
  }

  .aic-header__choices {
    position: static;
    display: block;
  }

  .aic-header__choice {
    width: 100%;
    max-width: none;
    margin: 0 0 5%;
  }

  .aic-header__choice3 {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  /* --- フォーム：sample_sp の淡いグレー基調に
         （タイトルもグレー枠内に収めるため paics_container 側に背景を持たせる） --- */
  #ai_section .paics_container {
    width: 100%;
    margin: -2% 0 0;
    padding: 14px 0 12px;
    background: #f0eeef;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }

  #ai_section .paics_container_inner {
    background: transparent;
    padding: 0 20px !important;
    border-radius: 0;
  }

  #ai_section .paics_container_inner_prettl {
    color: #333;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    position: static;
  }

  /* 入力エリアを全幅に（フォーム内SPバナーは非表示） */
  #ai_section .paics_container__cnt {
    width: 100%;
    min-width: 0;
    margin-right: 0;
  }

  #ai_section .paics_container__cnt__bnr_sp {
    display: none !important;
  }

  /* 下部 ご利用ガイドバナー（SPのみ表示） */
  .aic-guide-sp {
    display: block;
    margin: 30px auto 0;
    padding: 0 4%;
    line-height: 0;
    transition: opacity 0.3s;
  }

  .aic-guide-sp img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
        max-width: 375px;
        margin: 0 auto;
  }

  .aic-guide-sp:hover {
    opacity: 0.85;
  }
}

/* --- サジェスト質問リストの中黒・余白リセット（PC/SP共通） --- */
.paics_container__cnt__box__ttl__item {
  list-style: none;
  margin: 0;
  padding: 0;
}



/*サジェスト非表示*/
.paics_container__cnt__box__ttl {
    display: none;
}

/*LP*/
.page-template-page-form  .chat-floating.show {
        bottom: 10px;
}