:root {
  --loading-delay: 350ms;
  --loading-color: #2860d8;
  --primary-color: #2860d8;
}
.loading {
  width: 40px;
  height: 40px;
  animation: rotator 1.6s linear var(--loading-delay) infinite;
}

@keyframes rotator {
  0% {
    transform: rotate(-90deg);
  }

  100% {
    transform: rotate(180deg);
  }
}

.loading circle {
  stroke-dasharray: 114;
  stroke-dashoffset: 0;
  transform-origin: center;
  stroke: var(--loading-color);
  animation:
    spin-hidden var(--loading-delay) ease-in-out,
    spin-fade-in 0.1s ease-in-out var(--loading-delay) forwards,
    spin-dash 1.6s ease-in-out var(--loading-delay) infinite;
}
/* 遅延を実現するための何も表示しないアニメーション */
@keyframes spin-hidden {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}
@keyframes spin-fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
/* スピナーの円弧の長さを伸び縮みさせるアニメーション */
@keyframes spin-dash {
  0% {
    stroke-dashoffset: 111;
  }

  50% {
    stroke-dashoffset: 28.5;
    transform: rotate(135deg);
  }

  100% {
    stroke-dashoffset: 111;
    transform: rotate(450deg);
  }
}
/** ローディング関係以外 **/
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
}

h1 {
  font-weight: 200;
  font-family: serif;
  margin-bottom: 40px;
}


section {
  text-align: center;
  font-size: 14px;
  width: 300px;
}

section, svg.loading {
  margin: auto 0;
}

.hidden {
  display: none;
}

button.next {
  padding: 8px 20px;
  font-size: 20px;
  min-width: 160px;
  border-radius: 6px;
  border: none;
  background-color: #2860d8;
  color: #ffffff;
  cursor: pointer;
  width: 100%;
}

button.reset {
  padding: 8px 20px;
  font-size: 14px;
  min-width: 160px;
  border-radius: 6px;
  border: none;
  background-color: transparent;
  color: #2860d8;
  cursor: pointer;
  text-decoration: underline;
}

.content .main {
  font-size: 28px;
  margin-bottom: 8px;
}

.error-content {
  text-align: center;
}
.error-content .error-message {
  font-size: 24px;
  color: red;
}

.links {
  width: 100%;
  font-family: serif;
  margin-top: 60px;
}

.links h2 {
  text-align: left;
}

.links ul {
  text-align: left;
  list-style: none;
  padding-left: 0;
}

.links ul li {
  margin-bottom: 8px;
}
