/* A Modern CSS Reset */
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol,
ul[role=list],
ol[role=list] {
  list-style: none;
  padding: 0;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

a:not([class]) {
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.01ms !important;
            animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
            animation-iteration-count: 1 !important;
    -webkit-transition-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@-webkit-keyframes colorise {
  from {
    color: var(--cl1);
  }
  to {
    color: var(--cl2);
  }
}
@keyframes colorise {
  from {
    color: var(--cl1);
  }
  to {
    color: var(--cl2);
  }
}
@-webkit-keyframes star {
  0% {
    opacity: 0;
    -webkit-transform: translate(0, 0) rotate(0deg);
            transform: translate(0, 0) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translate(var(--x), var(--y)) rotate(180deg);
            transform: translate(var(--x), var(--y)) rotate(180deg);
  }
}
@keyframes star {
  0% {
    opacity: 0;
    -webkit-transform: translate(0, 0) rotate(0deg);
            transform: translate(0, 0) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translate(var(--x), var(--y)) rotate(180deg);
            transform: translate(var(--x), var(--y)) rotate(180deg);
  }
}
@-webkit-keyframes resultAppear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes resultAppear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
:root {
  -ms-scroll-chaining: none;
      overscroll-behavior: none;
}

body {
  -ms-scroll-chaining: none;
      overscroll-behavior: none;
}

.gacha {
  background-color: #fff;
  background-image: url(../images/gacha/gacha_bg.gif);
  background-size: cover;
  background-position: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.gacha__sitetitle {
  position: absolute;
  top: 5%;
  left: 2.5%;
  width: min(20vw, 40vh);
}
@media screen and (orientation: portrait) {
  .gacha__sitetitle {
    bottom: auto;
    top: 2.5%;
    left: 5%;
    width: auto;
    height: 4vh;
  }
  .gacha__sitetitle img {
    height: 100%;
  }
}
.gacha__date {
  position: absolute;
  bottom: 3%;
  right: 2.5%;
  width: min(15vw, 30vh);
}
@media screen and (orientation: portrait) {
  .gacha__date {
    bottom: auto;
    top: 2.5%;
    left: 19vh;
    right: auto;
    width: auto;
    height: 4vh;
    border-left: 1px solid #ccc;
    padding-left: 4%;
  }
  .gacha__date img {
    height: 100%;
  }
}
@media screen and (orientation: portrait) {
  .gacha__deco {
    display: none;
  }
}
.gacha__deco img {
  display: block;
  position: absolute;
}
.gacha__deco img.fruity {
  top: 15%;
  left: 2.5%;
  max-width: min(20vw, 33vh);
}
.gacha__deco img.titlemitei {
  top: 15%;
  right: 2.5%;
  max-width: min(20vw, 33vh);
}
.gacha__deco img.ambitious {
  top: 60%;
  left: 8%;
  max-width: min(25vw, 40vh);
}
.gacha__deco img.bybbit {
  top: 50%;
  right: 6%;
  max-width: min(25vw, 40vh);
}
.gacha__result {
  width: min(500px, 90vw, 50vh);
  height: 100%;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding-bottom: 80px;
  gap: 2vh;
  padding-top: 5vh;
}
@media (orientation: landscape) {
  .gacha__result {
    background-color: #fff;
    -webkit-filter: drop-shadow(0 0 6px #ccc);
            filter: drop-shadow(0 0 6px #ccc);
  }
}
@media screen and (orientation: portrait) {
  .gacha__result {
    padding-top: 12svh;
    padding-bottom: 0;
    width: 80vw;
  }
}
.gacha__result .ttl {
  width: 70%;
  margin: 0 auto;
}
.gacha__result .ttl img {
  display: block;
  max-width: 100%;
}
.gacha__result .desc {
  font-size: min(20px, 5vw, 2.5vh);
  line-height: 1.3;
  text-align: center;
}
.gacha__main {
  position: relative;
  width: 60%;
  margin: 0 auto;
  background-image: url(../images/gacha/gacha_mock.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  aspect-ratio: 303/641;
}
@media screen and (orientation: portrait) {
  .gacha__main {
    width: 72%;
    margin-bottom: -12svh;
  }
}
.gacha__main .result {
  position: absolute;
  top: 1%;
  left: 2.75%;
  width: 94%;
  height: 98%;
  overflow: hidden;
  -webkit-perspective: 5000px;
          perspective: 5000px;
}
@media screen and (orientation: portrait) {
  .gacha__main .result {
    left: 2.4%;
    width: 95.5%;
  }
}
.gacha__main .result img {
  border: 1px solid;
  border-radius: min(30px, 5vw, 3vh);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-animation: resultAppear 1s both;
          animation: resultAppear 1s both;
}
@media screen and (orientation: portrait) {
  .gacha__main .result img {
    border-radius: 3.2vh;
  }
}
.gacha__ready {
  position: absolute;
  top: 2%;
  left: 10%;
  width: 80%;
  aspect-ratio: 1/1;
  pointer-events: none;
}
.gacha__ready img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid #000;
  -webkit-transition: opacity 400ms, -webkit-transform cubic-bezier(0.165, 0.84, 0.44, 1) 800ms;
  transition: opacity 400ms, -webkit-transform cubic-bezier(0.165, 0.84, 0.44, 1) 800ms;
  transition: opacity 400ms, transform cubic-bezier(0.165, 0.84, 0.44, 1) 800ms;
  transition: opacity 400ms, transform cubic-bezier(0.165, 0.84, 0.44, 1) 800ms, -webkit-transform cubic-bezier(0.165, 0.84, 0.44, 1) 800ms;
  opacity: 0;
}
.gacha__ready.is-active img {
  opacity: 1;
  will-change: all;
}
.gacha__ready.is-active img:nth-child(1) {
  -webkit-transform: rotate(-10deg) translate(-25%, 0%);
          transform: rotate(-10deg) translate(-25%, 0%);
}
.gacha__ready.is-active img:nth-child(2) {
  -webkit-transform: rotate(10deg) translate(25%, 0%);
          transform: rotate(10deg) translate(25%, 0%);
}
.gacha__ready.is-active img:nth-child(3) {
  -webkit-transform: rotate(-32deg) translate(-75%, -5%);
          transform: rotate(-32deg) translate(-75%, -5%);
}
.gacha__ready.is-active img:nth-child(4) {
  -webkit-transform: rotate(32deg) translate(75%, -5%);
          transform: rotate(32deg) translate(75%, -5%);
}
@media screen and (orientation: portrait) {
  .gacha__ready.is-active img:nth-child(1) {
    -webkit-transform: rotate(-15deg) translate(-25%, 0%);
            transform: rotate(-15deg) translate(-25%, 0%);
  }
  .gacha__ready.is-active img:nth-child(2) {
    -webkit-transform: rotate(15deg) translate(25%, 0%);
            transform: rotate(15deg) translate(25%, 0%);
  }
  .gacha__ready.is-active img:nth-child(3) {
    -webkit-transform: rotate(-16deg) translate(-55%, 15%);
            transform: rotate(-16deg) translate(-55%, 15%);
  }
  .gacha__ready.is-active img:nth-child(4) {
    -webkit-transform: rotate(16deg) translate(55%, 15%);
            transform: rotate(16deg) translate(55%, 15%);
  }
}
.gacha__back {
  display: block;
  position: absolute;
  font-size: 0;
  width: 50px;
  height: 50px;
  border-radius: 100vmax;
  background-color: #000;
  -webkit-transition: opacity 400ms;
  transition: opacity 400ms;
  opacity: 0;
}
.gacha__back.is-active {
  opacity: 1;
}
@media screen and (any-hover: hover) {
  .gacha__back.is-active:hover {
    opacity: 0.6;
  }
}
@media (orientation: landscape) {
  .gacha__back {
    top: 20px;
    left: calc(50% + 22vh);
  }
}
@media screen and (orientation: portrait) {
  .gacha__back {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}
.gacha__back::before, .gacha__back::after {
  content: "";
  display: block;
  height: 2px;
  width: 60%;
  left: 20%;
  top: calc(50% - 1px);
  background-color: #fff;
  border-radius: 100vmax;
  position: absolute;
}
.gacha__back::before {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
.gacha__back::after {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
.gacha__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  opacity: 0;
  pointer-events: none;
}
.gacha__cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  z-index: 100;
  pointer-events: none;
}
.gacha__cover svg {
  display: block;
  width: 10%;
  height: auto;
  aspect-ratio: 1/1;
  -webkit-animation: colorise 1s alternate infinite;
          animation: colorise 1s alternate infinite;
  opacity: 0;
}
.gacha__logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  z-index: 101;
}
.gacha__logo svg {
  width: 40%;
  margin-left: 2%;
}
.gacha__logo #logo_main path {
  opacity: 0;
}
.gacha__logo #logo_parco {
  opacity: 0;
}
.gacha__logo #logo_shine {
  opacity: 0;
}
.gacha__cards {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  -webkit-perspective: 5000px;
          perspective: 5000px;
  -webkit-filter: drop-shadow(1px 1px 4px #ccc);
          filter: drop-shadow(1px 1px 4px #ccc);
  pointer-events: none;
}
@media screen and (orientation: portrait) {
  .gacha__cards {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    top: 10%;
    height: 80%;
    gap: 3.5vw 0;
    margin-top: -5vw;
    padding: 0 8vw;
  }
}
.gacha .card {
  position: absolute;
  width: 20vw;
  opacity: 0;
  position: relative;
  -webkit-transform-origin: center;
          transform-origin: center;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  aspect-ratio: 390/844;
  will-change: all;
}
@media screen and (orientation: portrait) {
  .gacha .card {
    width: 33vw;
  }
}
.gacha .card__front, .gacha .card__back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.gacha .card__front {
  -webkit-transform: translateZ(0px) rotateY(180deg);
          transform: translateZ(0px) rotateY(180deg);
}
.gacha .card__back {
  -webkit-transform: translateZ(1px);
          transform: translateZ(1px);
}
.gacha .card img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.gacha__btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  position: absolute;
  bottom: min(40px, 3.5vh);
  left: calc(50% - min(300px, 60vw) * 0.5);
  width: min(300px, 60vw);
  height: auto;
  z-index: 201;
  cursor: pointer;
  -webkit-transition: opacity 300ms, -webkit-transform 300ms;
  transition: opacity 300ms, -webkit-transform 300ms;
  transition: opacity 300ms, transform 300ms;
  transition: opacity 300ms, transform 300ms, -webkit-transform 300ms;
  opacity: 0;
  -webkit-transform: translateY(20px);
          transform: translateY(20px);
  pointer-events: none;
}
@media screen and (orientation: portrait) {
  .gacha__btn {
    -webkit-transform: translateY(10px);
            transform: translateY(10px);
    bottom: 3svh;
    width: 80vw;
    left: calc(50% - 40vw);
  }
}
.gacha__btn.gacha__download {
  bottom: min(100px, 10vh);
}
@media screen and (orientation: portrait) {
  .gacha__btn.gacha__download {
    bottom: calc(3svh + 13vw);
  }
}
.gacha__btn.is-active {
  opacity: 1;
  -webkit-transform: translateY(0px);
          transform: translateY(0px);
  pointer-events: auto;
}
@media screen and (any-hover: hover) {
  .gacha__btn.is-active:hover {
    opacity: 0.6;
  }
}
.gacha__btn img {
  display: block;
  width: 100%;
}
.gacha__cardChosen {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  -webkit-filter: drop-shadow(1px 1px 4px #ccc);
          filter: drop-shadow(1px 1px 4px #ccc);
  z-index: 200;
  -webkit-perspective: 5000px;
          perspective: 5000px;
  --per: 1;
}
@media screen and (orientation: portrait) {
  .gacha__cardChosen {
    --per: 2.3;
  }
}
.gacha__cardChosen .card {
  position: relative;
  width: calc(25vw * var(--per));
  z-index: 10;
}
.gacha__cardChosen .glitter {
  position: absolute;
  left: calc(50% - min(100px, 10vw) * 0.5);
  top: calc(50% - min(100px, 10vw) * 0.5);
  width: min(100px, 10vw);
  height: min(100px, 10vw);
  color: #FF9;
  opacity: 0;
}
.gacha__cardChosen .glitter.is-active {
  -webkit-animation: star cubic-bezier(0.19, 1, 0.22, 1) 1400ms both;
          animation: star cubic-bezier(0.19, 1, 0.22, 1) 1400ms both;
}
.gacha__cardChosen .glitter:nth-child(1) {
  --x: calc(20vw * var(--per));
  --y: calc(20vw * var(--per));
}
.gacha__cardChosen .glitter:nth-child(2) {
  --x: calc(-20vw * var(--per));
  --y: calc(0vw * var(--per));
}
.gacha__cardChosen .glitter:nth-child(3) {
  --x: calc(-15vw * var(--per));
  --y: calc(30vw * var(--per));
}
.gacha__cardChosen .glitter:nth-child(4) {
  --x: calc(10vw * var(--per));
  --y: calc(-30vw * var(--per));
}
.gacha__cardChosen .glitter:nth-child(5) {
  --x: calc(-15vw * var(--per));
  --y: calc(-15vw * var(--per));
}
.gacha__cardChosen .glitter:nth-child(6) {
  --x: calc(20vw * var(--per));
  --y: calc(-5vw * var(--per));
}
.gacha__cardChosen .glitter:nth-child(7) {
  --x: calc(30vw * var(--per));
  --y: calc(20vw * var(--per));
}
.gacha__cardChosen .glitter:nth-child(8) {
  --x: calc(-30vw * var(--per));
  --y: calc(-25vw * var(--per));
}