body {
  font-family: "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
  background: #fff9f9;
  color: #444;
  padding: 40px;
  max-width: 600px;
  margin: auto;
}

h1 {
  text-align: center;
  color: #ff6b9f;
  margin-bottom: 30px;
  font-size: 28px;
}

textarea {
  width: 100%;
  height: 100px;
  border: 1px solid #ffd1dc;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  background-color: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

button {
  background-color: #ff8fa3;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  display: block;
  margin: 20px auto 0;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #ff6b9f;
}

.animal-wrapper {
  display: flex;
  align-items: flex-end; /* ウサギが跳ねても下に合わせる */
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}


.animal {
  width: 120px;   /* 画像サイズは調整可 */
  height: auto;
  border-radius: 12px; /* 丸み（任意） */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ふんわり影（任意） */
}

.owl {
  /* フクロウ用の追加スタイルがあればここに */
}

.rabbit {
  width: 120px;
  height: auto;
  animation: hop 2s infinite;
}

/* ぴょんぴょん跳ねるアニメーション */
@keyframes hop {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-20px); }
  50%  { transform: translateY(0); }
  70%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.robot {
  width: 220px;
  height: auto;
  animation: wink 4s infinite;
}

@keyframes wink {
  0%, 95%, 100% {
    content: url("images/robot.png");
  }
  96%, 97% {
    content: url("images/robot_wink.png");
  }
}


#responseArea {
    margin-top: 20px;
    margin-left: auto;
    padding: 15px 20px;
    background: #e0f7fa;
    border: 2px solid #4dd0e1;
    border-radius: 20px;
    position: relative;
    font-size: 16px;
    color: #333;
    max-width: 80%;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* 吹き出しの三角（右下） */
  #responseArea::before {
    content: "";
    position: absolute;
    bottom: -20px;
    right: 30px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: #e0f7fa;
  }
  
  /* 吹き出しの外枠（三角の縁） */
  #responseArea::after {
    content: "";
    position: absolute;
    bottom: -22px;
    right: 30px;
    width: 0;
    height: 0;
    border: 11px solid transparent;
    border-top-color: #4dd0e1;
    z-index: -1;
  }

.gototop {
  padding: 100px 10px 10px 10px !important;
  text-align : center!important;
}