@charset "UTF-8";

.bg_kuji {
  background-color: rgba(255, 255, 255, .5);
  overflow: hidden;
}

.bg_torii {
  background-image: url(../img/common/bg_kuji.png);
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: center;
}

.kuji_inner {
  position: relative;
  width: 100%;
  margin: 0 auto 2rem;
}

.kuji {
  position: relative;
  width: 45%;
  margin: 0 auto;
  z-index: 2;
}

.rotate {
  position: relative;
  transform: rotate(20deg);
  z-index: 3;
}

.putout {
  transform: translate(0, 50%);
}

.kuji_front {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

.goko {
  position: absolute;
  width: 100%;
  top: -55%;
  left: 0;
  z-index: 1;
  animation: goko-anime 8s infinite linear;
}

@keyframes goko-anime {
  0% {
    transform: rotate(0deg);
  }

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

/* アニメーションの定義 */
@keyframes shake-anime {

  0%,
  100% {
    transform: translateY(0);
  }

  20% {
    transform: translateY(-10px);
  }

  40% {
    transform: translateY(10px);
  }

  60% {
    transform: translateY(-10px);
  }

  80% {
    transform: translateY(10px);
  }
}

@keyframes shake-anime-2 {

  0%,
  50%,
  100% {
    transform: translateY(0);
  }

  10% {
    transform: translateY(-10px);
  }

  20% {
    transform: translateY(10px);
  }

  30% {
    transform: translateY(-10px);
  }

  40% {
    transform: translateY(10px);
  }
}

@keyframes rotate-anime {
  0% {
    transform: rotate(20deg);
  }

  100% {
    transform: rotate(-145deg);
  }
}

@keyframes putout-anime {
  0% {
    transform: translate(0, 50%);
    opacity: 0;
  }

  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

/* アニメーションを開始するクラス */
.animate-shake {
  animation: shake-anime 0.8s ease-in-out infinite;
  animation-iteration-count: 2;
}

.animate-shake-2 {
  animation: shake-anime-2 1.6s infinite linear;
}

.animate-rotate {
  position: relative;
  animation-name: rotate-anime;
  animation-duration: 0.5s;
  animation-delay: 2s;
  animation-fill-mode: forwards;
  z-index: 2;
  transform: rotate(20deg);
}

.animate-putout {
  animation-name: putout-anime;
  animation-duration: 0.5s;
  animation-delay: 2.5s;
  animation-fill-mode: forwards;
  opacity: 0;
}

/* フェードアウト用のクラス */
.fade-out {
  animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    visibility: hidden;
  }
}

.kira {
  position: absolute;
  width: 6%;
}

.kira:nth-child(2) {
  top: 18%;
  left: 16%;
}

.kira:nth-child(3) {
  top: 20%;
  left: 80%;
}

.kira:nth-child(4) {
  top: 70%;
  left: 70%;
}

.kira:nth-child(5) {
  top: 45%;
  left: 75%;
}

.kira:nth-child(6) {
  top: 80%;
  left: 15%;
}

.kira:nth-child(7) {
  top: 50%;
  left: 20%;
}

.kira-anime-1 {
  animation: kira-anime-1 .4s infinite linear;
}

@keyframes kira-anime-1 {
  0% {
    transform: scale(1.3);
  }

  50% {
    transform: scale(0.2);
  }

  100% {
    transform: scale(1.3);
  }
}

.kira-anime-2 {
  animation: kira-anime-2 .4s infinite linear;
}

@keyframes kira-anime-2 {
  0% {
    transform: scale(0.2);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(0.2);
  }
}

.nijimikuji {
  text-align: center;
  font-family: "fot-udkakugoc80-pro", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: #fff;
  font-size: 28px;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.timer {
  display: inline-block;
  padding: .3em .4em;
  text-align: center;
  line-height: 1;
  background-color: #d14a4a;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
}

.time {
  margin: 0 .3em 0 0;
  letter-spacing: 0.05em;
  font-size: 20px;
}

.time:nth-child(1) {
  font-size: 18px;
}

.time:nth-of-type(n+3) {
  margin: 0;
}

.time span {
  font-size: 28px;
}

.dev {
  position: relative;
  width: 100%;
  margin-top: 30px;
  text-align: center;
  z-index: 3;
}

button.selected {
  text-align: center;
  background-color: #d14a4a;
  color: white;
  border: 2px solid #d14a4a;
}

@media screen and (min-width: 1px) and (max-width: 750px) {
  .bg_kuji {
    background-color: rgba(255, 255, 255, .5);
    overflow: hidden;
  }

  .bg_torii {
    background-size: 100% auto;
    background-position: top center;
    background-image: url(../img/common/sp_bg_kuji.png);
  }

  .kuji_inner {
    position: relative;
    width: 100%;
    margin: 0 auto 1.5rem;
  }

  .kuji {
    position: relative;
    width: 80%;
    margin: 0 auto;
    z-index: 2;
  }

  .goko {
    width: 120%;
    top: -26%;
    left: -10%;
  }

  .kira {
    width: 8%;
  }

  .nijimikuji {
    font-size: 24px;
  }
  
  .time {
    font-size: 18px;
  }
  
  .time:nth-child(1) {
    font-size: 14px;
  }
  
  .time span {
    font-size: 24px;
  }

}