body {
  margin: 0;
  font-family: 'DotGothic16', sans-serif;
  height: 101vh;
  background-color: #f2ecd5;
  width: 100%;
}

body.lock {
  overflow: hidden;
}

.ribbon {
  position: relative;
  align-items: center;
  margin: 10px;
  padding-top: 40px;
}

.ribbon1 {
  padding: 20px;
  position: relative;
  width: 90%;
  z-index: 2;
}

.choco1 {
  left: 21%;
  position: absolute;
  z-index: 1;
  width: 60%;
  top: 46%;
}

.himitu {
  position: relative;
  height: 1600px;

}

.back1-text {
  height: 300px;
  width: 360px;
  position: absolute;
  background-image: url(back1.png);
  background-size: 100%;
  margin-left: 15px;
  margin-right: 15px;
  /* padding: 20px; */
  line-height: 5;
  font-size: 13px;
  color: rgb(140, 137, 132);
  text-align: center;
  pointer-events: none;
  letter-spacing: 0.05em;
  background-repeat: no-repeat;
  padding-top: 30px;
}

.container {
  padding-top: 230px;
  padding-left: 200px;
}
.block {
  width: 160px;
  height: 160px;
  margin: auto;
}

.circleText {
  overflow: visible;
  animation: rotation 18s linear infinite;

.circleText__circle {
    fill: none;
  }

.circleText__text {

    fill: rgb(140, 137, 132);
    font-size: 12px;
    letter-spacing: 0.05em;
  }
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.back2-text {
  height: 330px;
  width: 360px;
  position: absolute;
  background-image: url(back2.png);
  background-size: 100%;
  margin-left: 15px;
  margin-right: 15px;
  /* padding: 20px; */
  line-height: 3;
  font-size: 12px;
  color: rgb(140, 137, 132);
  text-align: center;
  pointer-events: none;
  letter-spacing: 0.05em;
  background-repeat: no-repeat;
  align-content: center;
  margin-top: 30px;

}
.back3-text{
  margin-top: 320px;
  height: 210px;
  width: 360px;
  position: absolute;

  margin-left: 15px;
  margin-right: 15px;
  line-height: 3;
  font-size: 16px;
  color: rgb(140, 137, 132);
  text-align: center;
  pointer-events: none;
  letter-spacing: 0.05em;
  background-repeat: no-repeat;
  align-content: center;

}

.back4-text{
  margin-top: 500px;
  height: 300px;
  width: 360px;
  position: absolute;
  background-image: url(back4.png);
  background-size: 100%;
  margin-left: 15px;
  margin-right: 15px;
  /* padding: 20px; */
  line-height: 3;
  font-size: 12px;
  color: rgb(140, 137, 132);
  text-align: center;
  pointer-events: none;
  letter-spacing: 0.05em;
  background-repeat: no-repeat;
  padding-top: 80px;

}

.setumei1-text{
  margin-top: 900px;
  height: 300px;
  width: 360px;
  position: absolute;
  background-image: url(setumei1.png);
  background-size: 70%;
  margin-left: 15px;
  margin-right: 15px;
  /* padding: 20px; */
  line-height: 3;
  font-size: 15px;
  color: rgb(140, 137, 132);
  text-align: center;
  pointer-events: none;
  letter-spacing: 0.05em;
  background-repeat: no-repeat;
  padding-top: 80px;

}

.line-up {
  padding: 10px;
  width: 370px;
  height: 550px;
}

.base{
  background-image: url(syouhin.png);
  background-size: 100%;
  background-repeat: no-repeat;
  height: 90%;
  line-height: 3;
  font-size: 15px;
  color: rgb(140, 137, 132);
  text-align: center;
  pointer-events: none;
  letter-spacing: 0.05em;
  padding-top: 40px;
  padding-left: 10px;
  padding-right: 10px;


}

.choco1-2-1 {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.choco1-2{
  height: 90px;
}
.choco1-3{
  height: 100px;
}
.choco1-4-1 {
  padding-top: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 30px;
}
.choco1-4{
  height: 140px;
}
.choco1-5{
  height: 140px;
}


/* 封筒アニメ部分 */
.animation {
  overflow-x: hidden;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: 200px;
}

/* 背景の上にある文章 */
.bg-text {
  top: 30%;
  line-height: 4;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  color: rgb(140, 137, 132);
  text-align: center;
  z-index: 0;
  /* ← 封筒より下 */
  pointer-events: none;
  letter-spacing: 0.05em;
}



.mask {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 500px;
  overflow: hidden;
  z-index: 4;

}

/* 手紙（最初隠れてる） */
.letter {
  left: 50%;
  /* ← これが超重要 */
  bottom: 0;
  /* 下基準にする */
  width: 85% !important;
  opacity: 0;
  z-index: 3;
  position: absolute;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  transition: transform 0.6s ease, opacity 0.6s ease;
  z-index: 3;
}






/* 開いた状態に追加されるクラス */
.open .flap {
  transform: rotateX(-140deg);
}

.open .letter {
  opacity: 1;

}

.envelope {
  position: relative;
  width: 370px;
  height: 185px;
}

.back {
  z-index: 1;
}




.front {
  position: relative;
  z-index: 4;
}

/* フタ（最初閉まってる） */
.flap {
  width: 100%;
  position: absolute;
  top: 0;
  transform-origin: top center;
  transition: transform 0.5s;
  transform: rotateX(0deg);
  z-index: 4;
}

.envelope.open .flap {
  z-index: 2;
}

.envelope img {
  position: absolute;
  top: 0;
  width: 100%;
  height: auto;
  display: block;
}

.footer {
  padding-top: 70px;
  height: 100px;
  background-image: url(footer.png);
  background-repeat: no-repeat;
  
}
.sns {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 24px 0;
}

.sns img {
  width: 28px;
  height: 28px;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sns a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}
