* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  touch-action: manipulation;
}

body {
  width: 100%;
  height: 100vh;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.wrap {
  width: 100%;
  overflow: auto;
  font-size: 16px;
  text-align: center;
}
.wrap #header {
  width: 100%;
  padding: 10px;
  background-color: #221816;
  text-align: left;
  font-size: 1.2em;
}
.wrap #header a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
}
.wrap #header a:hover {
  opacity: 0.8;
}
.wrap h1 {
  font-size: 1.6em;
  margin: 50px 10px 20px;
  font-weight: 400;
}
.wrap .container {
  position: relative;
  width: 90%;
  max-width: 640px;
  overflow: auto;
  margin: 0 auto 50px;
  padding: 20px;
  background-color: #fffffe;
}
.wrap .container .choiceList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.wrap .container .choiceList button {
  flex: 30%;
  padding: 8px;
  font-size: 1.1em;
  border-radius: 5px;
  cursor: pointer;
  color: #222;
  background-color: #fff;
  border: 1px solid #009688;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: all 0.2s;
}
.wrap .container .choiceList button:hover, .wrap .container .choiceList button:focus {
  background-color: #009688;
  color: #fff;
}
.wrap .container .choiceList button:active {
  background-color: #00695c;
  border-color: #00695c;
  color: #fff;
}
.wrap .container .choiceList button:disabled {
  opacity: 0.65;
  pointer-events: none;
}
.wrap .container .message {
  font-size: 1.2em;
}
.wrap .container .restartArea button {
  display: block;
  width: 80%;
  background-color: #009688;
  border: 1px solid #009688;
  color: #fff;
  margin: 30px auto;
  padding: 12px 24px;
  font-size: 1.2em;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}
.wrap .container .restartArea button:hover, .wrap .container .restartArea button:focus {
  background-color: #26a69a;
  border-color: #26a69a;
  color: #fff;
}
.wrap .container .restartArea button:active {
  background-color: #00695c;
  border-color: #00695c;
  color: #fff;
}
.wrap #nav {
  width: 90%;
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: left;
}
.wrap #nav a {
  display: inline-block;
  color: #333;
  text-decoration: none;
  padding: 4px 8px;
}
.wrap #nav a:hover {
  color: #666;
  background-color: #eef;
}
.wrap #ad {
  margin-bottom: 40px;
}
.wrap #footer {
  margin-bottom: 20px;
  color: #333;
  font-size: 0.9em;
  padding: 0 10px;
}
.wrap #footer ul {
  list-style-type: none;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.wrap #footer ul li {
  margin: 6px 12px;
}
.wrap #footer ul li a {
  display: inline-block;
  color: #333;
  text-decoration: none;
  padding: 4px 8px;
}
.wrap #footer ul li a:hover {
  color: #666;
  background-color: #eef;
}

@media (max-width: 576px) {
  .wrap h1 {
    font-size: 1.4em;
  }
  .wrap .container .choiceList button {
    flex: 80%;
    font-size: 1em;
  }
  .wrap #footer ul {
    display: block;
  }
  .wrap #footer ul li {
    margin-bottom: 16px;
  }
}