:root {
    --primary-color: #ff7f7e;
    --secondary-color: #ffbe7e;
    --text-color: #333;
    --light-bg: #f5f7fa;
    --border-color: #ccc;
    --highlight-color: #e6eef8;
}
@font-face {
  font-family: 'mamelon3.5'; 
  src: url('./assets/font/Mamelon-3.5HiRegular.woff2') format('woff2'); 
  font-weight: normal;
  font-style: normal;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'mamelon3.5', Arial, sans-serif;
}
body {
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
  font-size: .9em;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}
.title {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--primary-color);
}
#help-button {
  display: flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s;
}
#help-button:hover {
  background-color: var(--secondary-color);
}
.chat-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.chat-log {
  height: 400px;
  overflow-y: auto;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}
.message {
  margin-bottom: 15px;
  display: flex;
}
.user-message {
  justify-content: flex-end;
}
.cpu-message {
  justify-content: flex-start;
}
.message-content {
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.user-message .message-content {
  background-color: var(--secondary-color);
  color: black;
  border-bottom-right-radius: 5px;
}
.cpu-message .message-content {
  background-color: var(--light-bg);
  border-bottom-left-radius: 5px;
}
.system-message .message-content {
  font-style: italic;
  font-size: .9em;
  color: var(--text-color);
  margin: auto;
  box-shadow: none;
}
.input-area {
  display: flex;
  padding: 15px;
  position: relative;
}
.user-input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  outline: none;
}
.user-input:focus {
  border-color: var(--primary-color);
}
.send-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  margin: auto 0 auto 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}
.send-button:hover {
  background-color: var(--secondary-color);
}
/* アイコン用のスタイル */
.icon {
  fill: currentColor;
  width: 24px;
  height: 24px;
}
.suggestions-container {
  position: absolute;
  bottom: 75px;
  left: 15px;
  right: 69px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}
.suggestion-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
}
.suggestion-item:hover {
  background-color: var(--highlight-color);
}
.suggestion-item:last-child {
  border-bottom: none;
}

/* モーダル用のスタイル */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
}
#modal-cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: .7;
  z-index: 200
}
.modal-content {
  position: relative;
  width: 80%;
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 10px;
  background-color: var(--light-bg);
  opacity: 1;
  z-index: 300;
}
.modal-title {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: var(--primary-color);
  border-bottom: 1px var(--text-color) solid;
}
.modal-text {
  margin-bottom: 10px;
}
.small-text {
  font-size: .8em;
}
#close-button {
  display: block;
  margin: 0 auto;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}
.close-button:hover {
  background-color: var(--secondary-color);
}
label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  width: 100%;
}
/* チェックボックスを隠す */
.switch {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
/* スイッチ */
.switch + .slider {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.4s;
  cursor: pointer;
}
.switch + .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}
.switch:checked + .slider {
  background-color: var(--secondary-color, #6c63ff);
}
.switch:checked + .slider:before {
  transform: translateX(18px);
}
/* もう一回ボタン */
.play-again-button {
  display: block;
  margin: 10px auto;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}
.play-again-button:hover {
  background-color: var(--secondary-color);
}