@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  -ms-touch-action: manipulation;
      touch-action: manipulation;
}

html,
body {
  font-family: "Noto Sans JP", sans-serif;
  color: #353535;
  background-color: #2a2a2a;
  overflow: hidden;
  text-align: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  position: fixed;
  /* スマホでのスクロールを防止 */
}

#game-container {
  position: relative;
  width: 100%;
  height: 100dvh;
  /* iOS15以降 */
  height: -webkit-fill-available;
  /* iOS14以前 */
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  -ms-touch-action: none;
      touch-action: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  /* ノッチ対応 */
}

/* スタート画面 */
#start-screen {
  position: absolute;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  background-image: url("/img/anniversary24/background.png");
  /* スタート画面の背景画像 */
  -moz-background-size: cover;
    -o-background-size: cover;
       background-size: cover;
  background-position: center;
  z-index: 10;
}

/* タイトルエリア */
.title-area {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  margin-top: 12%;
  z-index: 3;
}

.title-24th {
  width: 80%;
  max-width: 350px;
  margin-bottom: 10px;
}

.title-dotabata {
  width: 90%;
  max-width: 400px;
  margin-top: 40px;
}

/* クマのキャラクター */
.bear-area {
  position: relative;
  width: 100%;
  height: 25%;
  margin-top: auto;
  z-index: 3;
}

.bear-image {
  position: absolute;
  bottom: 185px;
  /* 芝生の上に配置 - 高さを調整 */
  left: 50%;
  -webkit-transform: translateX(-50%);
     -moz-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
       -o-transform: translateX(-50%);
          transform: translateX(-50%);
  width: 80px;
  max-width: 20%;
}

/* 地面（芝生） */
.ground {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 210px;
  /* 芝生の高さ */
  background-image: url("/img/anniversary24/ground.png");
  background-repeat: repeat-x;
  -moz-background-size: cover;
    -o-background-size: cover;
       background-size: cover;
  z-index: 2;
}

/* スタートボタン */
#start-button {
  position: absolute;
  bottom: 50px;
  /* 芝生の中に配置するため、底からの位置を調整 */
  left: 50%;
  -webkit-transform: translateX(-50%);
     -moz-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
       -o-transform: translateX(-50%);
          transform: translateX(-50%);
  width: 150px;
  max-width: 40%;
  z-index: 5;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* プレイヤーのスタイル */
#player {
  position: absolute;
  bottom: 105px;
  /* プレイヤーの位置を調整 */
  left: 50%;
  /* 初期位置は中央 */
  width: 50px;
  height: 50px;
  background-image: url("/img/anniversary24/player_play.png");
  -moz-background-size: contain;
    -o-background-size: contain;
       background-size: contain;
  background-repeat: no-repeat;
  z-index: 16;
}

/* 小さい画面向けの調整 */
@media screen and (max-height: 560px) {
  .bear-image {
    bottom: 100px;
  }
  #start-button {
    bottom: 30px;
  }
  .ground {
    height: 120px;
    bottom: 0;
  }
}

/* スコア表示のスタイル */
.score-container {
  position: absolute;
  top: 20px;
  left: 10px;
  text-align: left;
  font-size: 20px;
  font-weight: bold;
  z-index: 20;
}

@media screen and (max-width: 375px) {
  .score-container {
    font-size: 16px;
  }
}

@media screen and (max-width: 375px) {
  #game-container {
    position: relative;
  }
  #player {
    background-image: url("/img/anniversary24/player_play.png");
    width: 45px;
    height: 45px;
    bottom: 108px;
    /* 小さい画面では少し上に */
    z-index: 16;
  }
}

/* いちごのスタイル */
.strawberry {
  position: absolute;
  width: 30px;
  height: 30px;
  background-image: url("/img/anniversary24/strawberry_play.png");
  -moz-background-size: contain;
    -o-background-size: contain;
       background-size: contain;
  background-repeat: no-repeat;
  z-index: 17;
}

@media screen and (max-width: 375px) {
  .strawberry {
    width: 25px;
    height: 25px;
    z-index: 17;
  }
}

/* GET!テキストのスタイル */
.get-text {
  position: absolute;
  display: none;
  width: 80px;
  height: 40px;
  background-image: url("/img/anniversary24/get.png");
  -moz-background-size: contain;
    -o-background-size: contain;
       background-size: contain;
  background-repeat: no-repeat;
  z-index: 10;
}

/* ゲーム画面 */
#game-screen {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("/img/anniversary24/background.png");
  /* プレイ画面の背景画像 */
  -moz-background-size: cover;
    -o-background-size: cover;
       background-size: cover;
  background-position: center;
  z-index: 2;
}

#game-screen #game-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

#game-screen #game-ground .game-ground-image {
  position: relative;
  width: 100%;
  height: 100px;
  background-image: url("/img/anniversary24/ground_play.png");
  background-repeat: repeat-x;
  -moz-background-size: cover;
    -o-background-size: cover;
       background-size: cover;
  z-index: 2;
}

#game-screen #game-ground .footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background-image: url("/img/anniversary24/footer.png");
  -moz-background-size: 100% auto;
    -o-background-size: 100% auto;
       background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
}

/* ゲームオーバー画面 */
#gameover-screen {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  z-index: 10;
}

#gameover-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 40px;
  -moz-background-size: 100% auto;
    -o-background-size: 100% auto;
       background-size: 100% auto;
  background-repeat: no-repeat;
  z-index: 2;
}

.gameover-top {
  width: 100%;
  height: 40px;
  margin-top: 60px;
}

.gameover-content {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 20px 0;
  width: 100%;
}

.score-display {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.highest-score {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 30px;
}

.message-container {
  margin-bottom: 20px;
}

.message-text {
  max-width: 70%;
  margin-bottom: 10px;
}

.cake-container {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  top: 15%;
  z-index: 1;
}

.cake-container-s {
  height: 140px;
}

.cake-container-m, .cake-container-l {
  height: 180px;
}

.cake-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
     -moz-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
       -o-transform: translateX(-50%);
          transform: translateX(-50%);
  max-height: 100%;
}

/* ゲームオーバー画面の背景部分の修正 */
.gameover-ground {
  display: block;
  width: 100%;
  height: 50%;
  /* この値を変更するだけで高さ調整可能 */
  min-height: 215px;
  position: relative;
  background-image: url("/img/anniversary24/gameover_background.png");
  /* 背景画像をCSSで設定 */
  background-repeat: repeat-x;
  -moz-background-size: cover;
    -o-background-size: cover;
       background-size: cover;
  background-position: bottom;
}

.button-container {
  position: absolute;
  top: 50px;
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 15px;
  z-index: 2;
}

.retry-button,
.wakuwaku-button {
  width: 130px;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  height: 100%;
}

.share-button {
  width: 100px;
  position: absolute;
  cursor: pointer;
  top: 55px;
  left: 50%;
  -webkit-transform: translateX(-50%);
     -moz-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
       -o-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

#gameover-screen .footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  min-height: 30px;
  background-image: url("/img/anniversary24/footer.png");
  -moz-background-size: 100% auto;
    -o-background-size: 100% auto;
       background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
}

/* スマホ画面（高さ）向けの調整 */
@media screen and (max-height: 750px) {
  .gameover-top {
    margin-top: 20px;
  }
  .score-display {
    font-size: 24px;
    margin-bottom: 5px;
  }
  .highest-score {
    font-size: 16px;
    margin-bottom: 15px;
  }
  .message-container {
    margin-bottom: 0;
  }
  .cake-container {
    margin-bottom: 10px;
  }
  .cake-container-m, .cake-container-l {
    height: 160px;
  }
  .cake-image {
    max-width: 50%;
  }
  .button-container {
    top: 40px;
  }
  .retry-button,
  .wakuwaku-button {
    width: 110px;
  }
  .share-button {
    width: 90px;
    top: 55px;
  }
  .gameover-ground {
    min-height: 210px;
  }
}

/* 小さいスマホ画面（高さ）向けの調整 */
@media screen and (max-height: 600px) {
  .gameover-top {
    margin-top: 0;
  }
  .score-display {
    font-size: 18px;
  }
  .highest-score {
    font-size: 14px;
  }
  .message-text {
    margin-bottom: 0;
  }
  .button-container {
    top: 35px;
  }
  .share-button {
    top: 50px;
  }
  .gameover-ground {
    min-height: 160px;
  }
}

/*# sourceMappingURL=style.css.map */
