body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: #f5f5f5;
  min-height: 100vh;
  color: #42210b;
}

header {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
header .box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0px;
}
header .box .left h1 {
  font-weight: bold;
  font-size: 24px;
}
header .box .right a {
  color: #42210b;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
}

main {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 9px;
  background-color: #fff;
  border: 7px solid #d19178;
}
main .outer-box {
  border: 2px solid #d19178;
  background-image: url("../img/bg-asset-1.png"), url("../img/bg-asset-2.png");
  background-size: 200px, 300px;
  background-position: top right, bottom left;
  background-repeat: no-repeat;
  padding-top: 30px;
}
main .outer-box .title {
  width: 543px;
  margin: 0 auto;
  display: block;
}
main img.neko {
  position: absolute;
  bottom: 7px;
  right: -37px;
  width: 23%;
}

#game-box {
  margin-bottom: 50px;
}
#game-box .screen {
  display: block;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  max-width: 1000px;
  width: 90%;
  /*
          .game-info {
              max-width: 500px;
              margin: 0 auto;
              margin-bottom: 3rem;
              text-align: center;

              .info-text {
                  font-size: 1.5rem;
                  color: #666;
                  margin: 0.5rem 0;
              }
          }
    */
}
#game-box .screen button {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 8.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 400px;
  margin: 0 auto;
  background-color: white;
  color: #049dbf;
  border: 2px solid #049dbf;
}
#game-box .screen button.active {
  background-color: #049dbf;
  color: white;
}
#game-box .screen button.half-size {
  max-width: 49%;
  width: 100%;
  margin-bottom: 10px;
}
#game-box .screen h2 {
  color: #049dbf;
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}
#game-box .screen h2::before {
  content: "";
  display: block;
  width: 100%;
  background-image: url(../img/neko-1.png);
  width: 70px;
  height: 54px;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: -67px;
  top: -10px;
}
#game-box .screen .category-box {
  border: 2px solid #049dbf;
  background-color: #f2f2f2;
  border-radius: 10px;
  position: relative;
  margin-bottom: 40px;
}
#game-box .screen .category-box h3 {
  position: absolute;
  top: -22px;
  left: 20px;
  font-weight: 500;
  background-color: white;
  padding: 10px 20px;
  border-radius: 22px;
  border: 2px solid #049dbf;
  background-color: #f2f2f2;
}
#game-box .screen .category-box .flex-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px 30px;
}
#game-box .screen .category-box .flex-box .left {
  flex-basis: 49%;
  max-width: 49%;
}
#game-box .screen .category-box .flex-box .right {
  flex-basis: 49%;
  max-width: 49%;
}
#game-box .screen .category-box .box {
  padding: 40px 20px 30px;
}
#game-box .screen .category-box .box.col-2 button {
  width: 300px;
  margin: 0px 20px;
}
#game-box .screen .category-box .box.col-3 button {
  width: 200px;
  margin: 0px 20px;
}
#game-box .screen .navi-box {
  display: flex;
  justify-content: center;
  align-items: center;
}
#game-box .screen .navi-box button {
  width: 230px;
  margin: 0 10px;
}
#game-box .screen .navi-box button.back-btn {
  border: none;
  background-color: #4d4d4d;
  color: white;
}
#game-box .screen .navi-box button.start-btn, #game-box .screen .navi-box button.replay-btn {
  border: none;
  background-color: #a92a2a;
  color: white;
  cursor: pointer;
}
#game-box .screen .navi-box button.start-btn:disabled, #game-box .screen .navi-box button.replay-btn:disabled {
  cursor: not-allowed;
  background-color: #cdcdcd;
}
#game-box .screen .start-message {
  margin: 2rem 0;
  text-align: center;
}
#game-box .screen .start-message p {
  font-size: 1.8rem;
  color: #4CAF50;
  font-weight: bold;
  animation: blink 1.5s infinite;
}
#game-box .screen .game-info,
#game-box .screen .result-info {
  max-width: 500px;
  margin: 0 auto;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #e7f3ff;
  border-radius: 12px;
}
#game-box .screen .game-info .info-text,
#game-box .screen .result-info .info-text {
  font-size: 1.2rem;
  color: #555;
  margin: 0.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#game-box .screen .game-info .info-text:first-child,
#game-box .screen .result-info .info-text:first-child {
  margin-top: 0;
}
#game-box .screen .game-info .info-text:last-child,
#game-box .screen .result-info .info-text:last-child {
  margin-bottom: 0;
}
#game-box .screen .result-info .info-text:nth-child(3) {
  font-weight: bold;
  color: #2c3e50;
  font-size: 1.4rem;
  margin: 1.2rem 0;
}

.keyboard-box img {
  display: none;
  max-width: 100%;
  width: 100%;
  margin-bottom: 10px;
}
.keyboard-box img.active {
  display: block;
}

footer {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
footer .box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0px;
}
footer .box .left a {
  color: #42210b;
  text-decoration: none;
  margin-right: 20px;
}
footer .box .right a {
  color: #42210b;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
}

.difficulty-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.difficulty-btn {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}
.difficulty-btn:hover {
  background-color: #45a049;
}
.difficulty-btn:active {
  transform: scale(0.98);
}
.difficulty-btn.disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.beginner-container {
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 90%;
}
.beginner-container h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
}
.beginner-container h3 {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 1rem;
}

.row-selection,
.mode-selection {
  margin-bottom: 2rem;
}

.row-buttons,
.mode-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.row-btn,
.mode-btn {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: 2px solid #4CAF50;
  border-radius: 0.5rem;
  background-color: white;
  color: #4CAF50;
  cursor: pointer;
  transition: all 0.3s;
}
.row-btn:hover,
.mode-btn:hover {
  background-color: #4CAF50;
  color: white;
}
.row-btn.selected,
.mode-btn.selected {
  background-color: #4CAF50;
  color: white;
}

.start-btn,
.back-btn {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  margin: 0.5rem;
}

.start-btn {
  background-color: #4CAF50;
  color: white;
}
.start-btn:hover:not(:disabled) {
  background-color: #45a049;
}
.start-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.back-btn {
  background-color: #f44336;
  color: white;
}
.back-btn:hover {
  background-color: #da190b;
}

.preparation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  margin: 2rem auto;
}
.preparation-container h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 2rem;
}
.preparation-container .back-btn {
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
}
.preparation-container .back-btn:hover {
  background-color: #c82333;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .menu-container,
  .beginner-container {
    width: 95%;
    padding: 1rem;
  }
  .difficulty-btn,
  .row-btn,
  .mode-btn,
  .start-btn,
  .back-btn {
    width: 100%;
  }
  .row-buttons,
  .mode-buttons {
    flex-direction: column;
  }
}
.settings-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.settings-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.settings-content {
  margin-bottom: 2rem;
}

.setting-item {
  margin-bottom: 1.5rem;
}
.setting-item label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
  font-weight: 500;
}
.setting-item input[type=range] {
  width: 100%;
  margin: 0.5rem 0;
}

.settings-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.settings-buttons button {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.settings-buttons button#save-settings {
  background-color: #4CAF50;
  color: white;
}
.settings-buttons button#save-settings:hover {
  background-color: #45a049;
}
.settings-buttons button#back-to-top {
  background-color: #f44336;
  color: white;
}
.settings-buttons button#back-to-top:hover {
  background-color: #da190b;
}

.menu-buttons {
  margin-top: 2rem;
}
.menu-buttons .menu-btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  background-color: #4CAF50;
  color: white;
}
.menu-buttons .menu-btn:hover {
  background-color: #45a049;
}
.menu-buttons .menu-btn:active {
  transform: scale(0.98);
}

#result-screen .result-container {
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 90%;
}
#result-screen .result-container h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
}
#result-screen .result-container .start-message {
  margin-top: 2rem;
}
#result-screen .result-container .start-message .replay-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#result-screen .result-container .start-message .replay-btn:hover {
  background-color: #45a049;
}
#result-screen .result-container .start-message .replay-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}
#result-screen .result-container .start-message .back-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#result-screen .result-container .start-message .back-btn:hover {
  background-color: #da190b;
}
#result-screen .result-container .start-message .back-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.3);
}/*# sourceMappingURL=style.css.map */