#bg {
  display: flex;
  justify-content: center;
  background-color: #f5f5f5;
}

#content {
  z-index: 1;
  background-color: #f5f5f5;
  width: 100%;
  max-width: 500px;
}

.footer_area {
  background-color: #000000;
}

#kv {
  height: 140vw;
  position: relative;
  overflow: hidden;
}

@media screen and (min-width: 500px) {
  #kv {
    height: 700px;
  }
}

#kv .bg {
  height: 94vw;
}

@media screen and (min-width: 500px) {
  #kv .bg {
    height: 470px;
  }
}

#kv .logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 184px;
  height: 64px;
  background-color: #ffffff;
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 0px 0px 24px 0px;
}

#kv > .title {
  writing-mode: vertical-rl;
  position: absolute;
  color: #ffffff;
  margin-top: 16px;
  top: 0;
  right: 0;
  font-family: Mulish;
  font-size: 40px;
  font-weight: 800;
  line-height: 40px;
  letter-spacing: 0em;
  text-align: left;
}

#kv .description {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  z-index: 0;
}

#kv .description .content {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#kv .description .circle {
  z-index: -1;
  position: absolute;
  top: -37.33vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  width: 120vw;
  height: 120vw;
  border-radius: 50%;
  background-image: url("/wp-content/themes/favtown/assets/images/01_top/circle-main-copy.svg");
  background-repeat: no-repeat;
  background-size: cover;
  border: inset 10px transparent;
  animation: rotate 60s linear infinite;
}

@media screen and (min-width: 500px) {
  #kv .description .circle {
    top: -185px;
    width: 600px;
    height: 600px;
  }
}

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

#kv .description .content .bg {
  z-index: -1;
  position: absolute;
  top: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 210vw;
  overflow: hidden;
  background-color: #ffffff;
}

@media screen and (min-width: 500px) {
  #kv .description .content .bg {
    height: 1050px;
  }
}

@keyframes bg-loop1 {
  0% {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes bg-loop2 {
  0% {
    transform: translateX(0);
  }
  to {
    transform: translateX(-200%);
  }
}

#kv .description .content .details {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: start;
  flex-direction: column;
  top: -66vw;
  width: 100%;
}

@media screen and (min-width: 500px) {
  #kv .description .content .details {
    top: -330px;
  }
}

#kv .description .content .details > .image {
  margin-bottom: 16px;
  display: flex;
  justify-content: start;
  flex-direction: column;
  align-items: center;
}

#kv .description .content .details .image .box {
  width: 75%;
}

#kv .description .content .details .title {
  font-size: 22px;
  line-height: 150%;
  background-color: #000000;
  color: #ffffff;
  padding: 2px 24px;
  margin-bottom: 8px;
}

#kv .description .content .details .text {
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0em;
  text-align: center;
  margin-top: 16px;
}

#gift {
  /* background-color: #ffffff; */
}

#gift .items {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  width: 100%;
  background-color: #ffffff;
}

#gift .items .furusatoItem {
  border: 2px solid #000000;
  border-radius: 24px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  padding: 0 16px 0 16px;
  flex-grow: 1;
  margin-top: 16px;
}

#gift .items .furusatoItem .name {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
}

#gift .items .furusatoItem .name span {
  font-size: 12px;
}

#gift .items .furusatoItem .image {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gift .items .furusatoItem .image > img {
  margin: 01;
}

#gift .items .furusatoItem .button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  height: 30px;
  width: 30px;
  border-radius: 15px;
}

#gift .sort {
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 48px;
}

#back {
  display: flex;
  justify-content: center;
  margin-top: 64px;
  padding-bottom: 64px;
}

#back .button {
  display: flex;
  background-color: #000000;
  width: 250px;
  padding: 16px 32px 16px 16px;
  height: 64px;
  border-radius: 32px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 150%;
  color: #ffffff;
  justify-content: space-between;
}

#back .button .icon {
  width: 30px;
  height: 30px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

#toast {
  visibility: hidden;
  z-index: 2;
  position: fixed;
  top: 24px;
  left: calc(50% - 112px);
  width: 224px;
  padding: 16px 24px;
  background: #ffffff;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
}

#toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.2s, fadeout 0.2s 3.5s;
  animation: fadein 0.2s, fadeout 0.2s 3.5s;
}

@-webkit-keyframes fadein {
  from {
    top: 0;
    opacity: 0;
  }
  to {
    top: 24px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    top: 0;
    opacity: 0;
  }
  to {
    top: 24px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    top: 24px;
    opacity: 1;
  }
  to {
    top: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    top: 24px;
    opacity: 1;
  }
  to {
    top: 0;
    opacity: 0;
  }
}
