/* チャットウインドウのスタイル */
.chat-popup {
  display: none; /* 初期状態では非表示 */
  position: fixed;
  bottom: 0px;
  right: 0px;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1000;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
  background-color: #c5c5c5;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s ease;
}

/* 画面サイズが751px以上の場合のPCスタイル */
@media (min-width: 751px) {
  .chat-popup {
    width: 500px; /* 横幅 */
    height: 600px; /* 縦幅 */
    max-height: calc(100vh - 40px);/* スマホ横向き表示対策 */
    bottom: 20px; /* 画面の下からの距離 */
    right: 20px; /* 画面の右からの距離 */
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.3);
    border-radius: 20px; /* .iframe-areaと同じにする */
  }
  .iframe-area {
    border-radius: 20px; /* .chat-popupと同じにする */
  }
}

/* チャットウインドウを閉じるボタンCSS */
.close-button {
  display: block;
  position: fixed;
  top: 20px; /* 閉じるボタン位置調整 */
  right: 20px; /* 閉じるボタン位置調整 */
  width: 26px;
  height: 26px;
  border: 1px solid #605341; /* 枠 */
  background: #e9e9e9; /* ボタンの背景色 */
  cursor: pointer;
  z-index: 1001; /* iframeの上に表示されるようにする */
  border-radius: 5px;
}

.close-button:hover {
  border: 1px solid #000000; /* マウスが上に来たときの枠 */
  background: #e1d6c7; /* マウスが上に来たときの背景色 */
  transition: background 0.2s ease;
}

.close-button::before,
.close-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px; /* 棒の幅（太さ） */
  height: 26px; /* 棒の高さ */
  background: #605341; /* バツ印の色 */
}

.close-button:hover::before,
.close-button:hover::after {
  background: #685945; /* マウスが上に来たときのバツ印の色 */
}

.close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}



/* AIチャットpro　オリジナル　ここから */

/* ヘッダh1　文字の大きさ */
header h1 {
    font-size: clamp(26px, 2.0vw, 34px) !important;
}

/* グローバルメニュー文字の大きさ　最大最小 */
.js-link_scroller {
    font-size: clamp(16px, 1vw, 20px) !important;
}

/* SPメニュー閉じるボタンの大きさ */
#js-sp-menu_closer
 {
    font-size: 24px !important;
}

/* ビルボード画像 */
#open-button-bb {
    width: 85%; /* PCの幅 */
    max-width: 1307px; /* 必要に応じて最大幅を設定 */
    display: block; /* ブロック要素として表示 */
    margin: 0 auto; /* 中央揃え */
    cursor: pointer; /* 常に指のカーソルにする */
}
@media screen and (max-width: 768px) { /* スマートフォンの幅 */
    #open-button-bb {
        width: 100%; /* スマートフォンの場合は幅100% */
    }
}


/* AIチャットpro　オリジナル　ここまで */
