@charset "utf-8";

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* 横スクロールを防ぐ */
  display: flex;
  flex-direction: column; /* フレックスの方向を縦に設定 */
  align-items: center; /* コンテンツを水平中央に配置 */
}

.main-image {
  display: block;
  width: 100%;
  height: auto;
}

.header-title {
  width: 326px;
  position: absolute;
  top: 5%;
  z-index: 4;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  animation: scaleUp 0.6s ease-in-out forwards; /* アニメーション時間を0.6秒に延長 */
}

@keyframes scaleUp {
  0% {
    transform: translateX(-50%) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translateX(-50%) scale(1.2); /* 50%時点で1.2倍に拡大 */
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(1); /* 元のサイズに戻る */
    opacity: 1;
  }
}
/* アニメーション
===================================*/
.carousel {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.carousel-item {
  position: absolute;
  top: 33%;
  opacity: 0;
  z-index: 2;
}
.carousel-item img {
  width: 60%; /* ここで画像の幅を指定します */
  display: block; /* 画像をブロックレベル要素にします */
  margin: auto; /* 画像を中央に配置します */
  top: 14.7%;
}

.carousel-item:nth-child(1) {
  animation: carouselAnimation 6s infinite;
  animation-delay: 1s;
}

.carousel-item:nth-child(2) {
  animation: carouselAnimation 6s infinite;
  animation-delay: 3s;
}

.carousel-item:nth-child(3) {
  animation: carouselAnimation 6s infinite;
  animation-delay: 5s;
}

@keyframes carouselAnimation {
  0%,
  100% {
    opacity: 0;
    z-index: 0;
    transform: translate(25%, 25%);
  }
  10%,
  30% {
    opacity: 1;
    z-index: 1;
    transform: translate(0%, 0%);
  }
  40%,
  90% {
    opacity: 0;
    z-index: 0;
    transform: translate(20%, 20%);
  }
}

.fukidashi {
  position: absolute;
  top: 32%;
  right: 7%;
  width: 120px;
  animation: scaleUp-fukidashi 0.4s ease-in-out forwards;
  animation-delay: 0.5s; /* 0.5秒の遅延を追加 */
  opacity: 0;
}
.fukidashi-2 {
  width: 36px;
  position: absolute;
  top: 35%;
  left: 18%;
  animation: scaleUp-fukidashi 0.4s ease-in-out forwards;
  animation-delay: 0.5s; /* 0.5秒の遅延を追加 */
  opacity: 0;
}
@keyframes scaleUp-fukidashi {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* アニメーション
===================================*/

/* CTA1
===================================*/
.image-CTA1 {
  width: 100%;
  height: auto; /* 画像のアスペクト比を維持する */
  display: block; /* 画像をブロック要素にする */
}

a.image-CTA1-wrapper {
  position: absolute;
  top: 74%;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: auto; /* 必要に応じて調整 */
  overflow: hidden; /* 子要素のオーバーフローを隠す */
  display: inline-block; /* リンクをインラインブロック要素にする */
  border-radius: 10%;
  z-index: 6;
  animation: scaleUp 0.4s ease-in-out forwards, bounce 0.6s infinite alternate;
  animation-delay: 0.5s; /* 0.5秒の遅延を追加 */
  opacity: 0;
}

@keyframes bounce {
  0% {
    transform: translate(-50%, 0%);
  }
  100% {
    transform: translate(-50%, -10%);
  }
}

a.image-CTA1-wrapper::after {
  content: "";
  display: block;
  width: 30px;
  height: 100%;
  position: absolute;
  top: -180px;
  left: 0;
  background-color: #fff;
  opacity: 0;
  transform: rotate(45deg);
  animation: reflect 1.5s ease-in-out infinite;
  -webkit-transform: rotate(45deg);
  -webkit-animation: reflect 3s ease-in-out infinite;
}
@keyframes reflect {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  81% {
    transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}

@-webkit-keyframes reflect {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  81% {
    transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}

/* CTA1
===================================*/

/* CTA2
===================================*/
.image-CTA2 {
  position: absolute;
  top: 88%;
  left: 50%;
  width: 85%;
  transform: translateX(-50%);
  animation: poyopoyo 2s ease-out infinite;
}

@keyframes poyopoyo {
  0%,
  40%,
  60%,
  80% {
    transform: translateX(-50%) scale(1);
  }
  50%,
  70% {
    transform: translateX(-50%) scale(0.95);
  }
}

/* CTA2
===================================*/

/* フッター
===================================*/

footer {
  width: 414px;
  height: 240px;
}

.footer-block {
  position: absolute;
  left: 5%;
  padding: 20px 20px 10px 20px;
  margin: 0;
}

.footer-header {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-link {
  display: block;
  width: 50%;
  color: #fff;
  font-size: 12px;
  margin: 0 0 10px 0;
  opacity: 0.8;
  text-decoration: none;
}

.footer-link.comming_soon {
  pointer-events: none;
  opacity: 0.4;
}

.footer-link.comming_soon::after {
  content: "comming soon";
  color: #fff;
  opacity: 0.8;
  margin-left: 16px;
}

.footer-link:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.brand-logo-mono-container {
  position: absolute;
  top: 40%;
}

.brand-logo-mono {
  padding: 20px 20px 10px 20px;
  margin: 0;
  transform: translateX(14%);
  width: 140px;
}

.sp {
  position: absolute;
  top: 90%;
  font-size: 10px;
  left: 10%;
}


.modal {
    display: none; /* モーダルを初期は非表示に */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85); /* 背景を黒くする */
}

.modal-content {
    margin: 15% auto;
    padding: 20px;
    max-width: 400px;
    text-align: center;
}

.modal-content img {
  max-width: 90%; /* 画像の最大幅を設定 */
  height: auto;
  text-align: center;
}


.modal_janken_content {
  position: absolute;
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  left: 50%;
  transform: translate(-50%);
}

.modal-content img {
max-width: 90%; /* 画像の最大幅を設定 */
height: auto;
text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* じゃんけんフィールド */
.play_field {
  margin: 0 auto;
  background: #fff;
  background-image: url('/LP2/img/game_images/janken_background.png');
  min-height: 320px;
  padding: 4px;
  box-shadow: #ccc 1px 1px 5px;
}

.play_field .recent_report {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.play_field .recent_report .record {
  display: flex;
  align-items: center;
  flex-flow: column;
}

.play_field .recent_report .record .streak {
  font-size: 10px;
  color: #fff;
  width: 28vw;
  background: #e71e2f;
  border-radius: 15px;
  text-align: center;
  padding: 2px;
}

.play_field .recent_report .record .streak .score {
  font-size: 10px;
  color: #fff;
}

.play_field .recent_report .record .personal_record {
  font-size: 10px;
  color: #444;
  text-align: center;
  margin: 2px;
}

.play_field .recent_report .record .personal_record.highlighted {
  color: #e71e2f;
}

.play_field .rps-animation p {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
  color: #444;
}

.play_field .rps-animation p.aikode {
  margin-top: 0;
  margin-bottom: 0;
}

.play_field .rps-animation .computer_hand {
  width: 36vw;
  margin: 0 auto;
}

.play_field .rps-animation .computer_hand img {
  width: 100%;
  transform: rotate(180deg);
}

.play_field .rps-animation .computer_hand.aikode {
  width: 36vw;
}

.play_field .rps-animation .computer_hand.aikode img {
  width: 100%;
  transform: rotate(180deg);
}

.play_field .user_hand {
  width: 36vw;
  min-height: 75px;
  margin: 0 auto;
}

.play_field .user_hand img {
  width: 100%;
}
/* じゃんけんフィールド */


/* じゃんけんコンピューターの手 */
.rps-animation p {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
  color: #444;
}

.rps-animation p.aikode {
  margin-top: 0;
  margin-bottom: 0;
}

.rps-animation .computer_hand {
  width: 36vw;
  margin: 0 auto;
}

.rps-animation .computer_hand img {
  width: 100%;
  transform: rotate(180deg);
}

.rps-animation .computer_hand.aikode {
  width: 36vw;
}

.rps-animation .computer_hand.aikode img {
  width: 100%;
  transform: rotate(180deg);
}
/* じゃんけんコンピューターの手 */

/* じゃんけん自分の手 */
.choose-user_hand {
  margin: 2.86vh auto;
}

.choose-user_hand .discription {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 0;
}

.choose-user_hand .choices {
  display: flex;
  justify-content: space-around;
  /* margin: 1.43vh auto; */
}

.choose-user_hand .choices .size {
  width: 26vw;
  border: none;
  margin: 10px auto;
  transform: rotate(-5deg);
  background-color: #fff;
}
/* じゃんけん自分の手 */


.retry_button {
  position: relative;
  width: 70%;
  font-size: 12px;
  color: #fff;
  background: #444;
  font-weight: bold;
  border-radius: 20px;
  border: none;
  padding: 10px;
  left: 50%;
  transform: translate(-50%);
}

.janken_CTA {
  position: relative;
  width: 90%;
  left: 50%;
  transform: translate(-50%);
  animation: scaleUp 0.4s ease-in-out forwards, bounce 0.6s infinite alternate;
  opacity: 0;
}

.discription {
  font-family: 'Inter', sans-serif;
}


.follow-button {
  height: 5vh;
  width: 98vw;
  position: fixed;
  bottom: 8vh;
  left: 1vw;
  z-index: 100;
  animation: poyopoyo2 2s ease-out infinite;
}

@keyframes poyopoyo2 {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
