body {
  background-color: rgba(245, 184, 30, 0.989);
  color: #333;
  font-family: sans-serif;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
}

.container {
  width: 850px; /* 横長に設定 */
  background: #ffffffd0;
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

h1 {
  text-align: center;
  color: #0000ff;
  margin: 0 0 15px 0;
  font-size: 24px;
}

/* 左右2カラムレイアウト */
.main-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* 左パネル */
.left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.logo-img {
  width: 280px;
  height: auto;
}

.squirrel-wrapper {
  position: relative;
  margin-top: 10px;
}

/* リスを小さく設定 */
.squirrel-img {
  width: 100px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s;
}

.squirrel-img:hover {
  transform: scale(1.1);
}

/* ギャグ用吹き出し */
.balloon {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 3px solid #ff5722;
  border-radius: 15px;
  padding: 10px 15px;
  font-weight: bold;
  color: #e82712;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 10;
  transition: opacity 0.3s ease;
}

.balloon::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #ff5722 transparent;
  display: block;
  width: 0;
}

.balloon.hidden {
  opacity: 0;
  pointer-events: none;
}

.instruction {
  font-size: 13px;
  color: #444;
  text-align: center;
  margin-top: 15px;
}

/* 右パネル（チャット機能） */
.right-panel {
  flex: 1;
}

.chat-window {
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px;
}

ul#chat-list {
  list-style: none;
  padding: 5px;
  margin: 0;
  height: 220px; /* 縦幅をコンパクトに抑える */
  overflow-y: auto;
}

ul#chat-list li {
  margin-bottom: 8px;
  padding: 6px 10px;
  background: #f0f0f0;
  border-radius: 6px;
  font-size: 14px;
}

ul#chat-list li.message-other {
  color: #e82712;
  font-weight: bold;
  background: #ffebe8;
}

.chat-input-area {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

input[type="text"] {
  flex: 1;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

input[type="button"] {
  height: 38px;
  padding: 0 15px;
  background-color: #0000ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

input[type="button"]:hover {
  background-color: #0000cc;
}