/* エリア */
div.filter-area, p.start-area, div.chat-area, div.question-area, div.answer-area {
  padding: 30px 0;
}
div.filter-area div, p.start-area, div.question-area div, div.answer-area p {
  text-align: center;
}

/* チェックボックス要素 */
div.filter-area input[type=checkbox] {
    display: none;
}
div.filter-area label {
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  padding: 5px 30px;
  position: relative;
  width: auto;
}
div.filter-area label:before {
  background: #fdfbfc;
  border: 1px solid rgba(24,27,57,.3);
  border-radius: 3px;
  content: '';
  display: block;
  height: 16px;
  left: 5px;
  margin-top: -8px;
  position: absolute;
  top: 50%;
  width: 16px;
  transition: .3s ease-in-out;
}
div.filter-area label:after {
  content: '';
  position: absolute;
  left: 7px;
  top: 50%;
  width: 9px;
  height: 20px;
  display: block;
  border-right: 6px solid #173a7e;
  border-bottom: 3px solid #173a7e;
  margin-top: -16px;
  opacity: 0;
  transform: rotate(45deg);
  transition: transform .3s ease-in-out, opacity .3s ease-in-out;
}
div.filter-area input[type=checkbox]:checked + label:before {
  border-color: #173a7e;
  background: #ebbaf4;
}
div.filter-area input[type=checkbox]:checked + label:after {
  opacity: 1;
}

/* ボタン要素 */
button {
  cursor: pointer;
  font-family: "OtomeMincho";
  font-size: 1.2rem;
  background-color: rgba(23,58,126,.3);
  border: 1px solid #173a7e;
  border-radius: 10px;
  padding: 10px;
  color: #173a7e;
  -webkit-transition: .3s ease-in-out;
  transition: .3s ease-in-out;
}
div.question-area button {
  background-color: rgba(114,90,164,.3);
  border: 1px solid #173a7e;
}
div.answer-area button {
  background-color: rgba(251,226,19,.3);
  border: 1px solid #173a7e;
}
button:not(:disabled):hover, div.question-area button:not(:disabled):hover, div.answer-area button:not(:disabled):hover {
  background-color: #ebbaf4;
  border: 1px solid #ebbaf4;
  color: #fdfbfc;
  box-shadow: 0 4px 10px rgba(114,90,164,.25);
  transform: translateY(-5px);
}
div.question-area button:disabled, div.answer-area button:disabled {
  cursor:not-allowed;
  background-color: rgba(24,27,57,.5);
  color: #181b39;
  border: 1px solid #173a7e;
}

/* セレクト要素 */
div.question-area select {
  min-width: 200px;
  color: #333b74;
  font-size: 1.2rem;
  font-family: "OtomeMincho";
  padding: 5px 10px;
  border: 1px dashed #336066;
  border-radius: 5px;
  background-color: #fdfbfc;
  margin-right: 10px;
  -webkit-appearance: none;
    appearance: none;
    background-image: url("../../../img/masbo.png");
    background-repeat: no-repeat;
    background-size: 24px auto; /* 画像のサイズ（幅 高さ）*/
    background-position: right 12px center; /* 画像の位置 */
  -webkit-transition: .3s ease-in-out;
  transition: .3s ease-in-out;
}
div.question-area select option {
  color: #333b74;
  font-size: 1rem;
  font-family: "SeptemberN-03", "Kiwi Maru";
  background-color: #fdfbfc;
  -webkit-transition: .3s ease-in-out;
  transition: .3s ease-in-out;
}

/* テキストボックス要素 */
div.question-area input[type="number"], div.question-area input[type="text"], div.answer-area input[type="text"] {
  width: 200px;
  color: #333b74;
  font-size: 1.2rem;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  background-color: #fdfbfc;
  border: 1px dashed #336066;
  border-radius: 5px;
  padding: 5px 10px;
  margin-right: 10px;
  -webkit-transition: .3s ease-in-out;
  transition: .3s ease-in-out;
}
div.question-area input[type="number"]:focus, div.question-area input[type="text"]:focus, div.answer-area input[type="text"]:focus {
  border: 1px solid #333b74;
  outline:0;
  box-shadow: 0 0 3px #333b74;
}

/* 検索候補 */
.autocomplete-wrapper {
  position: relative;
  width: 200px;
}
.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  display: none;
  background: #fdfbfc;
  border: 1px solid rgba(23,58,126,.3);
  border-radius: 0 0 5px 5px;
  overflow-y: auto;
  list-style: none;
  text-align: left;
  padding: 0;
  margin: 0;
  z-index: 1000;
}
.suggestions li {
  cursor: pointer;
  padding: 8px;
  -webkit-transition: .2s ease-in-out;
  transition: .2s ease-in-out;
}
.suggestions li:hover {
  background: #f3ebf0;
}

/* チャットエリア */
.chat-space {
  width: 100%;
  max-width: 700px;
  height: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fdfbfc;
  border-radius: 10px;
  box-shadow: 0 0 5px 5px #fdfbfc;
  overflow-y: auto;
  padding: 10px;
  margin: 0 auto;
}

/* プレイヤー */
.chat-user {
  align-self: flex-end;
  background: #173a7e;
  color: #fdfbfc;
  padding: 8px 12px;
  border-radius: 16px 16px 0 16px;
  max-width: 70%;
}

/* 共通 */
.chat-bot {
  align-self: center;
  padding: 8px 12px;
  border-radius: 16px 16px 16px 0;
  max-width: 70%;
  font-weight: bold;
}

/* チャット全体 */
.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* アバターエリア */
.avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
}

/* アバター画像 */
.bot-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

/* アバター名 */
.bot-name {
  font-size: 12px;
  margin-top: 4px;
  color: #666;
}

/* はい */
.bot-yes {
  background: rgba(251,226,19,.5);
  color: #173a7e;
  border: 1px solid #173a7e;
}

/* いいえ */
.bot-no {
  background: rgba(235,186,244,.5);
  color: #725aa4;
  border: 1px solid #725aa4;
}

/* 正解 */
.bot-correct {
  background: rgba(225,63,77,.5);
  border: 2px solid #ebbaf4;
  text-align: center;
}
.bot-img {
  background: transparent;
  border: 1px solid #173a7e;
  box-shadow: 0 0 3px 3px rgba(114,90,164,.25);
}
.bot-img img.result-pokemon-img {
  width: 250px;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.6s ease;
  border-radius: 14px;
  margin-top: 8px;
}
img.result-pokemon-img.show {
  opacity: 1;
  transform: scale(1);
}

/* 不正解 */
.bot-wrong {
  background: rgba(23,58,126,.5);
  border: 2px solid #fbe213;
  text-align: center;
}

/* 正解・不正解アイコン */
.result-icon {
  width: 100px;
  height: 100px;
  display: block;
}

/* 考え中 */
.bot-thinking {
  background: #f3ebf0;
  color: rgba(23,58,126,.5);
  font-style: italic;
}

/* 横並び */
@media screen and (min-width: 916px) {
  select, div#inputArea, button {
    display: inline-block;
  }
}

