@charset "utf-8";
body {
  background-image: url(../images/bg.jpg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* 桜を表示するコンテナのスタイル */
.cherry-blossom-container {
  position: relative;
  height: 100vh; /* コンテナの高さ */
  width: 100%; /* コンテナの横幅 */
  overflow: hidden; /* コンテナからはみ出した要素を隠す */
}

/* 桜の花びらのスタイル */
.petal {
  position: absolute;
  background-color: #ffc0cb; /* 花びらの色 */
  border-radius: 150% 0 150% 0;
  animation: animate-petal 10s linear;
}

.petal::after {
  content: "";
  position: absolute;
  top: -14%;
  left: -10%;
  display: block;
  width: 100%;
  height: 100%;
  background-color: #ffc0cb;
  border-radius: 150% 0 150% 0;
  transform: rotate(15deg);
}

/* 花びらが降るアニメーション */
@keyframes animate-petal {
  0% {
    top: 0;
    opacity: 0;
    transform: rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 100vh;
    transform: rotate(3000deg);
  }
}

.wrapper {
  position: relative;
}

.total {
  background: rgba(255, 255, 255, 0.845);
  text-align: center;
  padding: 2.5rem;
  border-radius: 8px;
  border: #ffc0cb solid 3px;
  position: absolute;
  left: 35%;
  top: 50vw;
}

.coment {
  background: #f3969a;
  color: #fff;
  opacity: 0.6;
  text-align: center;
  border-radius: 8px;
  width: 10rem;
  margin: 0 auto;
  line-height: 1.3;
  padding: 1rem;
}

h4 {
  color: #f3969a;
  font-size: 1.5rem;
}

.coment:hover {
  opacity: 1;
}

/*背景色をつけて丸くする*/
.img-box {
  text-align: center;
}
.box51 {
  margin: 2em auto;
  padding: 2em; /*内側余白*/
  border-radius: 30px; /*丸みを調整*/
  background-color: #f7e9e8;
}

h3 {
  font-size: 2rem;
  color: #f3969a;
  font-weight: bold;
}

.box52 {
  margin: 2em auto;
  padding: 1em 2em;
  background-color: #fff; /*背景色*/
  box-shadow: 0 0 6px 1px #faccbc, 0 0 6px 1px #faccbc inset; /*ふわりとした影*/
  border-radius: 30px;
  max-width: 800px;
  text-align: left;
}
