:root {
  --base-color: #E6F7C7;
  --sub-color: #1E4737;
  --font-color: #002928;
  --border-color: #b5cebb;
  --soft-color: #DDFFA2;
  --green-color: #BCE670;
  --font-en: "Plus Jakarta Sans", sans-serif;
}

.wrap {
  position: relative;
  overflow: hidden;
}

.container::before,
.container::after {
  content: "";
  width: 65vw;
  height: 65vw;
  filter: blur(40px);
  border-radius: 50%;
  position: absolute;
  opacity: 0.8;
  z-index: -1;
}

.container::before {
  right: -30vw;
  top: -30vw;
  background: var(--green-color);
}

.container::after {
  top: 80%;
  left: -30vw;
  background: #A4CE7A;
}

.title.title--main {
  text-align: left;
  font-family: var(--font-en);
}

.title.title--main .default {
  display: none;
}

.title.title--main .custom::before {
  content: "JAM’S Letter";
  font-family: var(--font-en);
  font-weight: normal;
}

.agree {
  display: none;
}

.receiver {
  font-family: var(--font-en);
}

.pagination {
  font-family: var(--font-en);
}

/* label
------------------------------ */
.label-receiver {
  font-family: var(--font-en);
}

/* receiver-tab
------------------------------ */
.list--receiver {
  gap: 6px 10px;
  font-family: var(--font-en);
}

.list--receiver li a {
  background: var(--green-color);
}

.list--receiver li.current a {
  color: var(--green-color);
}

/* step
------------------------------ */
.list--step .step .step__icon svg {
  display: none;
}

.list--step .step .step__icon::before {
  content: "";
  display: inline-block;
  background: url(/mga/event/image/cmn_letter_box/base/default/ringojam_stamp.png) no-repeat;
  background-size: contain;
  width: 100%;
  height: 100%;
}

/* label
------------------------------ */
.label-receiver.receiver_1 p {
  border-color: #4caf50;
}
.label-receiver.receiver_2 p {
  border-color: #E65F72;
}
.label-receiver.receiver_3 p {
  border-color: #5e95f1;
}
.label-receiver.receiver_4 p {
  border-color: #fdf76d;
}

/* page--top
------------------------------ */
.page--top .container {
  text-align: center;
  min-width: 350px;
}

.page--top .letter-box {
  animation: container-anime .8s ease-in-out;
  padding-bottom: 200px;
}

@keyframes container-anime {
  0%   { transform: translateY(-80%); opacity: 0; }
  50%  { transform: scale(1, 1) translateY(0); opacity: 1;}
  70%  { transform: scale(1.05, 0.95) translateY(-15%); }
  90%  { transform: scale(1, 1) translateY(0); }
  100% { transform: scale(1, 1) translateY(0); }
}

.page--top .box {
  display: none;
}

.list--menu li {
  width: calc((100% - 20px) / 2);
}

.list--menu li a {
  background: var(--green-color);
}

.list--menu li .icon svg {
  fill: white;
}

.list--box {
  display: block;
}

.list--box li {
  width: 100%;
}

.list--menu li .icon, .list--box li .btn--create .icon {
  opacity: .4;
}

.list--box li .btn--create .icon svg {
  fill: var(--green-color);
}

.page--top .btn--create .default {
  display: none;
}

.page--top .btn--create .custom::before {
  content: "新規作成";
  color: var(--green-color);
}

.page--top .container__inner {
  background: #F9FFEE;
  width: 85%;
  max-width: 700px;
  margin-inline: auto;
  border-radius: 5px;
  position: relative;
  padding: 6% 5% 0;
  box-shadow: 1px -1px 7px rgb(30 71 55 / 0.4);
}

.page--top .container__inner::before {
  content: "";
  width: calc(120% - 2px);
  height: 100%;
  background: #1e4737;
  position: absolute;
  top: 0;
  left: calc(-10% + 1px);
  z-index: -1;
  clip-path: polygon(50% 0%, 100% 40%, 100% 100%, 0 100%, 0 40%);
  pointer-events: none;
}

.page--top .container__inner::after {
  content: "";
  background: url(/mga/event/image/cmn_letter_box/base/default/envelope_top.png) no-repeat;
  background-size: contain;
  width: 120%;
  height: 100%;
  position: absolute;
  top: 40%;
  left: -10%;
  pointer-events: none;
}

.page--top .container__content {
  background: repeating-linear-gradient(to bottom, #e5f3cc 0 1px, transparent 1px 30px);
  padding: 20px 20px 200px;
}

.page--top .container__content::before {
  content: "";
  width: 100%;
  height: 100%;
  background: #F9FFEE;
  border-radius: 5px;
  position: absolute;
  top: -15px;
  left: 15px;
  transform: rotate(-1deg);
  z-index: -1;
  box-shadow: 1px -1px 7px rgb(30 71 55 / 0.4);
}

.page--top .menu::before {
  content: "";
  background: url(/mga/event/image/cmn_letter_box/base/default/memeru_top.png) no-repeat;
  background-size: contain;
  width: 240px;
  height: 290px;
  position: absolute;
  bottom: 140px;
  right: 0;
  pointer-events: none;
  animation: memeru-anime .8s cubic-bezier(.34,1.56,.64,1) 0.5s 1,
  memeru-loop 5s ease-in-out 4s infinite;
}

@keyframes memeru-anime {
  0%   { transform: translateY(0) scale(1); }
  18%  { transform: translateY(0) scale(1.01,.98); }  
  45%  { transform: translateY(-20%) scale(.9,1.02); } 
  70%  { transform: translateY(0) scale(1.01,.98); }     
  100% { transform: translateY(0) scale(1); }
}

@keyframes memeru-loop {
  0%   { transform: translateY(0); }
  12%  { transform: translateY(0) rotate(0deg); } 
  15%  { transform: translateY(-8%) rotate(5deg); }
  18%  { transform: translateY(0) rotate(0deg); }
  21%  { transform: translateY(-5%) rotate(-3deg); }
  24%  { transform: translateY(0); }
  100% { transform: translateY(0); } 
}

.page--top .btn-container--back {
  font-family: var(--font-en);
}

@media screen and (min-width: 768px) {
  .page--top .container {
    padding-bottom: 150px;
  }

  .page--top .title {
    padding-bottom: 20px;
  }

  .page--top .container__content {
    padding-right: 30%;
  }
}

@media screen and (max-width: 767px) {
  .page--top .title {
    padding-bottom: 50px;
  }

  .page--top .container__inner {
    padding-top: 10%;
  }

  .page--top .container__content {
    padding-bottom: 150px;
    background: repeating-linear-gradient(to bottom, #e5f3cc 0 1px, transparent 1px 25px);
  }

  .page--top .container__inner::before {
    height: 60%;
    top: 36%;
  }

  .page--top .container__inner::after {
    top: 60%;
  }

  .page--top .letter-box {
    padding-bottom: 20vw;
  }

  .page--top .menu::before {
    width: 150px;
    height: 200px;
    bottom: auto;
    z-index: -1;
    top: -125px;
    right: -30px;
  }

  .list--menu {
    gap: 15px;
  }

  .list--menu>li {
    width: calc((100% - 15px) / 2);
  }

  .list--menu li a, 
  .list--box li .btn--create {
    aspect-ratio: 5/4;
    height: auto;
  }

  .list--menu li .icon, .list--box li .btn--create .icon {
    width: 70px;
    height: 70px;
  }
}

/* page--select
------------------------------ */
.list--stationery input[type="radio"]:checked + label .label__mark {
  display: none;
}

.list--stationery input[type="radio"]:checked + label::before {
  content: "";
  width: 55px;
  height: 50px;
  background: url(/mga/event/image/cmn_letter_box/base/default/ringojam_stamp.png) no-repeat;
  background-size: contain;
  position: absolute;
  right: -18px;
  top: -18px;
  z-index: 1;
}

.list--stationery .list__item.new::after {
  font-family: var(--font-en);
}

@media screen and (max-width: 767px) {
  .list--stationery input[type="radio"]:checked + label::before {
    width: 45px;
    height: 40px;
    right: -15px;
    top: -15px;
  }
}

/* page--decorate
------------------------------ */
.decorate__block {
  background: #DDFFA2;
}

#fixed-footer-text {
  display: none;
}

/* page--send_complete
------------------------------ */
.page--send_complete .txt--notice  {
  position: relative;
  max-width: 700px;
  margin: 0 auto 50px;
}

.page--send_complete .txt--notice::before {
  content: "";
  background: url(/mga/event/image/cmn_letter_box/base/default/envelope_thanks.png) no-repeat;
  background-size: contain;
  width: 80%;
  height: 0;
  padding-bottom: 50%;
  display: inline-block;
  transform: rotate(-8deg);
  transform-origin: top;
}

.page--send_complete .txt--notice::after {
  content: "";
  background: url(/mga/event/image/cmn_letter_box/base/default/memeru_post.gif) no-repeat;
  background-size: contain;
  width: 35%;
  height: 0;
  padding-top: 34%;
  position: absolute;
  left: 8%;
  bottom: -2%;
}

.page--send_complete .txt--notice p {
  display: none;
}

/* page--draftlist
------------------------------ */
.page--draftlist .list--draft {
  gap: 20px;
}

.page--draftlist .list--draft li .box-tit {
  display: none;
}

.page--draftlist .list--draft li .list__inner {
  border-radius: 5px;
}

/* page--sendlist
------------------------------ */
.page--sendlist .list--send li .send__txt .box-tit {
  display: none;
}

.page--sendlist .list--send li .send__txt .receiver {
  margin-top: 0;
}

/* page--send-detail
------------------------------ */
.page--send-detail .letter__inner .box-tit {
  display: none;
}

.page--send-detail .letter__inner .receiver {
  margin-top: 0;
}

/* page--complete
------------------------------ */
.page--complete .btn--top .default {
  display: none;
}

.page--complete .btn--top .custom::before {
  content: "JAM’S Letter TOP";
  font-family: var(--font-en);
}
