@charset "utf-8";
.main {
  background-color: #ffffff;
}

.happy {
  background-image: url(../images/coicoi/coaster_2.png);
  background-repeat: no-repeat;
  background-position: calc(100% - 20%) top;
  background-size: contain; /* 画像を要素内に収める */
  display: flex;
  justify-content: space-between; /* 子要素を左右に分ける */
  align-items: center; /* 子要素を中央揃え */
  max-width: 100%;
  height: 450px;
  margin-top: 75px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Potta One", system-ui;
  padding: 0 5%; /* 左右に余白を追加 */
  box-sizing: border-box; /* パディングを含む */
}

.happy .text {
  text-align: left; /* テキストを左揃えにする */
  max-width: 50%; /* テキスト領域の幅を調整 */
  margin-right: auto; /* テキストを左側に寄せる */
  margin-left: 10%;
}

.happy h1 {
  font-family: "Potta One", system-ui;
  font-size: 50px;
  margin: 0; /* マージンをリセット */
}

.happy p {
  color: black;
  font-size: 20px;
  text-shadow: none;
  font-family: "Potta One", system-ui;
  margin-top: 20px;
  margin-bottom: 40px;
}

.space {
  font-family: "Potta One", system-ui;
  font-size: 30px;
  color:rgba(30, 184, 43, 0.856);
  text-align: center;
  margin-top: 150px;
  margin-bottom: 100px;
}

@media (max-width: 800px) {

.happy {
  flex-direction: column; /* 小さい画面では縦に並べる */
  align-items: center; /* 中央揃え */
  background-position: center bottom; /* 背景画像位置調整 */
  background-size: contain; /* 画像を要素内に収める */
}

  .happy .text {
  text-align: center; /* 小さい画面では中央揃え */
  max-width: 100%; /* テキスト領域を全幅に */
  margin-left: 0; /* マージンをリセット */
  margin-right: 0;
  padding: 0 10%;
}

.happy h1 {
  font-size: 25px; /* 小さい画面でのフォントサイズ */
  margin-bottom: 10px; /* 下のマージンを調整 */
  margin-top: 20px;
}

 .happy p {
  font-size: 15px; /* フォントサイズを調整 */
  margin-bottom: 20px;
  }

.space {
  font-size: 20px;
}
}