*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  min-height: 0vw;
}

html, body {
  height: 100%;
}

body {
  background: #F6F6F6;
  font-family: "Sawarabi Gothic", sans-serif;
  font-size: 1.0416666667vw;
  font-weight: 400;
  font-style: normal;
  color: #5F5F5F;
}

.header {
  width: 90%;
  max-width: 52.1875vw;
  height: 2.6041666667vw;
  position: absolute;
  top: 0;
}

.title {
  margin: 0;
  padding: 0;
  font-size: 1.5625vw;
  font-weight: bold;
  line-height: 2.6041666667vw;
  letter-spacing: 0.1em;
}

.layout {
  width: 100%;
  height: 100%;
  display: flex;
}
.layout__menu {
  width: 21.875vw;
  padding: 1.0416666667vw;
  background: #FFF;
}
.layout__main {
  flex: 1;
  display: grid;
  place-items: center;
  position: relative;
}

.typing {
  width: 52.1875vw;
  margin: auto auto 0;
  color: #5F5F5F;
  position: relative;
}
.typing--support_hide {
  margin-top: 0;
}
.typing__message--hide {
  opacity: 0;
}
.typing__message + .typing__dynamic {
  margin-top: 0.5em;
}
.typing__support {
  margin-top: 1.0416666667vw;
}
.typing--support_hide .typing__support {
  display: none;
}

.text {
  width: 34.6354166667vw;
  font-size: 3.125vw;
  font-weight: bold;
  color: #888;
  text-align: center;
  white-space: pre;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.05s;
}
.text--show {
  display: flex;
}
.text--miss-type {
  opacity: 1;
  color: rgba(255, 0, 0, 0.8);
}
.text > span {
  transition: all 0.3s;
}

.add-blue {
  color: #FF9C00;
}

.play {
  visibility: hidden;
  pointer-events: none;
}

.dynamic {
  width: 100%;
  height: 13.0208333333vw;
  padding: 1.0416666667vw;
  border-radius: 0.2604166667vw 0.2604166667vw 0 0;
  background-color: #FFF;
  display: grid;
  place-items: center;
}
.dynamic--miss {
  background-color: rgba(255, 0, 0, 0.2);
}

.progress {
  width: 100%;
  height: 0.2604166667vw;
  display: flex;
}
.progress__bar {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.progress__bar::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #FF9C00;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.4s;
  transform: scaleX(0);
  transform-origin: left;
}
.progress__bar--on::before {
  transform: scaleX(1);
}

.explanation {
  width: 100%;
  max-width: 100%;
  font-size: 1.5625vw;
  letter-spacing: 0.1em;
  text-align: center;
}
.explanation--hidden {
  display: none;
}

.menu__heading {
  margin-bottom: 0.6em;
  padding-bottom: 0.2em;
  font-size: 1.1458333333vw;
  border-bottom: 1px solid currentColor;
}
.menu > * + .menu__heading {
  margin-top: 2em;
}

.question-pattern {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5208333333vw;
}
.question-pattern__button {
  padding: 0.4em 1em;
  border: 0.1041666667vw solid #D8D8D8;
  border-radius: 0.2604166667vw;
  display: inline-block;
  cursor: pointer;
}
input[name=question-pattern]:disabled + .question-pattern__button {
  opacity: 0.5;
  cursor: auto;
}

input[name=question-pattern] {
  display: none;
}
input[name=question-pattern]:checked + label {
  background: #FF9C00;
  color: #FFF;
}

.checkbox {
  display: block;
  position: relative;
  cursor: pointer;
}
.checkbox__form {
  display: none;
}
.checkbox__label {
  padding-inline: 1.5em;
  font-size: 0.9375vw;
}
.checkbox__label::before {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
  background: #FFF;
  border: 1px solid #AAA;
  border-radius: 0.15625vw;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.checkbox__label::after {
  content: "";
  display: block;
  width: 0.5em;
  height: 0.75em;
  transform: rotate(45deg);
  border-right: 0.15625vw solid #FF9C00;
  border-bottom: 0.15625vw solid #FF9C00;
  position: absolute;
  top: 0.3em;
  left: 0.25em;
  opacity: 0;
}
.checkbox__form:checked + .checkbox__label::after {
  opacity: 1;
}
.checkbox + .checkbox {
  margin-top: 0.5em;
}

.result {
  display: none;
  list-style: none;
  padding: 0 10%;
  font-size: 1.25vw;
  position: absolute;
  background-color: white;
}
.result--show {
  display: block;
}
.result li:first-child {
  margin-bottom: 1em;
  border-bottom: 1px solid #808080;
}

.keyboard {
  margin: 0 auto;
}
.keyboard__row {
  display: flex;
  justify-content: space-between;
}

.key {
  width: 3.125vw;
  height: 3.125vw;
  margin: 0.1041666667vw 0.15625vw;
  border: 0.1041666667vw solid #D8D8D8;
  border-radius: 0.2604166667vw;
  background-color: #FFF;
  font-size: 1.0416666667vw;
  font-weight: bold;
  line-height: 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.key--semi-double {
  width: calc(3.125vw * 1.6);
}
.key--double {
  width: calc(3.125vw * 2);
}
.key--shift {
  width: 5vw;
  width: calc(3.125vw * 1.6);
}
.key--shift_left {
  width: calc(3.125vw * 2.5);
}
.key--shift_right {
  width: calc(3.125vw * 1.9);
}
.key--enter_up {
  width: calc(3.125vw * 1.6);
  border-radius: 0.2604166667vw 0.2604166667vw 0 0.2604166667vw;
}
.key--enter_btm {
  width: calc(3.125vw * 1.2);
  height: 52px;
  height: calc(3.125vw * 1.13);
  margin-top: -0.2083333333vw;
  border-top: none;
  border-radius: 0 0 0.2604166667vw 0.2604166667vw;
}
.key--space {
  width: 211px;
  width: calc(3.125vw * 3.51667);
}
.key--ctrl {
  width: calc(3.125vw * 1.9);
}
.key--on {
  background-color: #FF9C00;
  color: #FFF;
}
.key__text--unused {
  font-size: 80%;
  color: #DADADA;
}

.hands {
  height: 5.7291666667vw;
  margin-top: 10px;
  margin-top: 0.5208333333vw;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.finger {
  width: 3.125vw;
  height: 100%;
  margin: 0 0.2604166667vw;
  background-color: #d8d8d8;
  border-radius: 1.5625vw 1.5625vw 0 0;
}
.finger--little {
  height: 66%;
}
.finger--ring {
  height: 80%;
}
.finger--middle {
  height: 100%;
}
.finger--index {
  height: 93.3333%;
}
.finger--thumb {
  height: 53.3333%;
}
.finger--thumb.finger--left {
  margin-right: 0.78125vw;
}
.finger--on {
  background-color: #FF9C00;
}