/*-----------------------------------------------------------------------------
    チェリーゴード ご案内チャット（page-cherry-gard.php のみで読み込み）
-----------------------------------------------------------------------------*/
.cgchat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", "YuGothic", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #3d3d3d;
}
.cgchat [hidden] {
  display: none !important;
}
.cgchat__open {
  display: block;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  background: #e094a3;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}
.cgchat__open:hover {
  background: #d27f90;
}
.cgchat__panel {
  display: flex;
  flex-direction: column;
  width: 360px;
  height: 680px;
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
.cgchat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: #e094a3;
  color: #fff;
}
.cgchat__title {
  font-weight: 700;
  letter-spacing: 0.06em;
}
.cgchat__close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}
.cgchat__now {
  padding: 6px 16px;
  background: #FBF9F9;
  border-bottom: 1px solid #d6dadd;
  color: #c96f81;
  font-size: 13px;
  font-weight: 700;
}
/* 会話の欄を広く取り、選択肢は下の狭い枠でスクロールさせる */
.cgchat__log {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  background: #FBF9F9;
}
.cgchat__msg {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 14px;
  white-space: pre-line;
  word-break: break-word;
}
.cgchat__msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #d6dadd;
  border-bottom-left-radius: 4px;
}
.cgchat__msg--me {
  align-self: flex-end;
  background: #e094a3;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.cgchat__msg a {
  color: #c96f81;
  font-weight: 700;
  text-decoration: underline;
  word-break: break-all;
}
.cgchat__choices {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
  max-height: 160px;
  padding: 10px 14px 14px;
  overflow-y: auto;
}
.cgchat__more {
  padding: 6px 14px 0;
  border-top: 1px solid #d6dadd;
  color: #8a8288;
  font-size: 12px;
  text-align: center;
}
.cgchat__more--line {
  border-top: 1px solid #d6dadd;
}
.cgchat__choice {
  padding: 8px 12px;
  border: 1.5px solid #e094a3;
  border-radius: 10px;
  background: #fff;
  color: #c96f81;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.cgchat__choice:hover {
  background: #FBF9F9;
}
.cgchat__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.cgchat__choice--sub {
  flex: 1 1 auto;
  border-color: #d6dadd;
  color: #3d3d3d;
  font-size: 13px;
  text-align: center;
}
.cgchat button:focus-visible {
  outline: 3px solid #7ca8ff;
  outline-offset: 2px;
}
@media screen and (max-width: 767px) {
  .cgchat {
    right: 12px;
    bottom: 12px;
  }
  .cgchat__panel {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    height: 88vh;
  }
}
