
/* ドットフォント(日本語) */
.dotgothic16-regular {
  font-family: "DotGothic16", sans-serif;
  font-weight: 400;
  font-style: normal;
}


/* ドットフォント(英語) */
.silkscreen-regular {
  font-family: "Silkscreen", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.silkscreen-bold {
  font-family: "Silkscreen", sans-serif;
  font-weight: 700;
  font-style: normal;
}



/*  */
body {
  background-color: #aaa;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.container {
  position: relative;
  width: 400px;
  height: 100px;
}

/* スタート画面 */
.start-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.start-screen h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.start-screen p{
  text-align: center;
}

.start-screen button {
  padding: 10px 20px;
  font-size: 20px;
  border: none;
  background: #007bff;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

.start-screen button:hover {
  background: #0056b3;
}

/* 戻るボタンの配置 */
a[href="../../index.html"] {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}



/*  -----犬の全体描写----- */
/* .dog {
  position: absolute;
  width: 40px;
  height: 32px;
  top: 40px;
  left: 0;
  animation: move 5s linear infinite;
} */

  /*  ドット */
/* .pixel {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: black;
} */

  /*  犬のパーツ */
/* .head {
  top: 4px;
  left: 22px;
  width: 12px;
  height: 12px;
}
.earL {
  top: -2px;
  left: 22px;
  width: 6px;
  height: 6px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.earR {
  top: -2px;
  left: 28px;
  width: 6px;
  height: 6px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.eyeL {
  top: 7px;
  left: 27px;
  width: 3px;
  height: 3px;
  background-color: white;
}
.eyeR {
  top: 7px;
  left: 32px;
  width: 3px;
  height: 3px;
  background-color: white;
}
.nose {
  top: 10px;
  left: 34px;
  width: 6px;
  height: 6px;
  clip-path: polygon(0% 0%, 0% 100%, 100% 50%);
}
.to-nose {
  top: 11px;
  left: 38px;
  width: 3px;
  height: 3px;
  background-color: white;
}
.body {
  top: 14px;
  left: 6px;
  width: 25px;
  height: 12px;
}
.tail {
  top: 6px;
  left: 7px;
  width: 4px;
  height: 12px;
  animation: tail-swing 0.5s ease-in-out infinite alternate;
} */

  /*  足のパーツ */
/* .leg1,
.leg2,
.leg3,
.leg4 {
  position: absolute;
  width: 4px;
  height: 8px;
  background-color: black;
  animation: walk-legs 0.5s ease-in-out infinite alternate;
} */
  /* 前足左 */
/* .leg1 {
  top: 26px;
  left: 8px;
  animation-delay: 0s;
}  */
  /* 後足左 */
/* .leg2 {
  top: 26px;
  left: 14px;
  animation-delay: 0.25s;
}  */
  /* 前足右 */
/* .leg3 {
  top: 26px;
  left: 18px;
  animation-delay: 0s;
}  */
 /* 後足右 */
/* .leg4 {
  top: 26px;
  left: 24px;
  animation-delay: 0.25s;
} */


/* 犬  画像用 */
/* .dog{
  position: absolute;
  width: 40px;
  height: auto;
  top: 40px;
  left: 0;
  animation: move 5s linear infinite;
  image-rendering: pixelated;
} */
.dog {
  position: absolute;
  width: 40px;
  height: 35px;
  top: 40px;
  left: 0;
  background-image: url("../img/pome-right.png");
  background-size: cover;
  animation: walkFrames 0.8s steps(1) infinite;
}

/* 歩いてる風 */
@keyframes walkFrames {
  0% {
    background-image: url("../img/pome-right.png");
  }
  50% {
    background-image: url("../img/pome-riight2.png");
  }
  100% {
    background-image: url("../img/pome-right.png");
  }
}



  /* -----犬のモーション----- */
    /*  体の上下移動 */
@keyframes walk-body {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(1px);
  }
}

  /*  足を前後にスライドさせる */
@keyframes walk-legs {
  0% {
    transform: translateX(0px);
  }
  100% {
    transform: translateX(2px);
  }
}

  /*  しっぽを揺らす */
@keyframes tail-swing {
  0% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(-10deg);
  }
}

  /* 停止 */
.stop {
  animation-play-state: paused;
}


/* -----骨のデザイン----- */
.bone {
  position: absolute;
  width: 15px;
  height: 6px;
  background-color: white;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

  /* 骨の先端（左右の丸い部分） */
.bone::before,
.bone::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 4px 0 white, -4px 0 white, 0 4px white, 0 -4px white;
}

.bone::before {
  left: -6px;
}

.bone::after {
  right: -6px;
}


/* -----爆弾----- */

.bomb {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: black;
  border-radius: 0;
  image-rendering: pixelated;
  box-shadow: 
    -4px  0px 0 #333,  4px  0px 0 #333, /* 左右 */
    0px -4px 0 #333,  0px  4px 0 #333, /* 上下 */
    -4px -4px 0 #333,  4px -4px 0 #333, /* 斜め */
    -4px  4px 0 #333,  4px  4px 0 #333;
}

/* ヒューズ部分 */
.bomb::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 6px;
  width: 4px;
  height: 6px;
  background-color: #666;
  border-radius: 0;
  box-shadow: 0px 2px 0px #333;
}

/* 炎の表現 */
.bomb::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 7px;
  width: 4px;
  height: 4px;
  background-color: orange;
  border-radius: 0;
  box-shadow: 
    -2px -2px 0px red, 
    2px -2px 0px yellow;
  animation: flicker 0.2s infinite alternate;
}

@keyframes flicker {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.2); }
}



/* スコアとタイマー表示 */
#score, #timer {
  position: absolute;
  top: 10px;
  font-size: 18px;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px 10px;
  border-radius: 5px;
}

#score {
  left: 10px;
}

#timer {
  right: 10px;
}

/* -----ゲーム終了時のモーダル全体のスタイル----- */
.modal {
  display: none; /* 最初は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

  /* モーダルの内容 */
.modal-content {
  background: white;
  padding: 20px 80px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* OKボタン */
.modal-content button {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  background: #007bff;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

.modal-content button:hover {
  background: #0056b3;
}



