html {
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  word-break: normal;
}

*,
:after,
:before {
  background-repeat: no-repeat;
  box-sizing: inherit;
}

:after,
:before {
  text-decoration: inherit;
  vertical-align: inherit;
}

* {
  margin: 0;
  padding: 0;
}

hr {
  color: inherit;
  height: 0;
  overflow: visible;
}

details,
main {
  display: block;
}

summary {
  display: list-item;
}

small {
  font-size: 80%;
}

[hidden] {
  display: none;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

a {
  background-color: transparent;
}

a:active,
a:hover {
  outline-width: 0;
}

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
}

pre {
  font-size: 1em;
}

b,
strong {
  font-weight: bolder;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  border-color: inherit;
  text-indent: 0;
}

iframe {
  border-style: none;
}

input {
  border-radius: 0;
}

[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}

[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}

textarea {
  overflow: auto;
  resize: vertical;
}

button,
input,
optgroup,
select,
textarea {
  font: inherit;
}

optgroup {
  font-weight: 700;
}

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

[role='button'],
[type='button'],
[type='reset'],
[type='submit'],
button {
  cursor: pointer;
}

[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner,
button::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner,
button:-moz-focusring {
  outline: 1px dotted ButtonText;
}

[type='reset'],
[type='submit'],
button,
html [type='button'] {
  -webkit-appearance: button;
}

button,
input,
select,
textarea {
  background-color: transparent;
  border-style: none;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline-width: 0;
}

select {
  -moz-appearance: none;
  -webkit-appearance: none;
}

select::-ms-expand {
  display: none;
}

select::-ms-value {
  color: currentColor;
}

legend {
  border: 0;
  color: inherit;
  display: table;
  max-width: 100%;
  white-space: normal;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  color: inherit;
  font: inherit;
}

[disabled] {
  cursor: default;
}

img {
  border-style: none;
}

progress {
  vertical-align: baseline;
}

[aria-busy='true'] {
  cursor: progress;
}

[aria-controls] {
  cursor: pointer;
}

[aria-disabled='true'] {
  cursor: default;
}

html {
  font-size: 62.5%;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    'Noto Sans JP',
    system-ui,
    -apple-system,
    'Hiragino Kaku Gothic ProN',
    sans-serif;
  color: #222;
  overflow: hidden;
}

.responsive-img {
  display: block;
  height: auto;
  max-width: 100%;
}

.app {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.app__header {
  background-color: #da4733;
}
.app__header .diagnosis-logo {
  margin: 1.5rem 2rem;
}
.app__header .diagnosis-logo img {
  max-height: 3.2rem;
}

.stage {
  height: 100dvh;
  background-color: #f6f4e9;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 2.4rem clamp(1.6rem, 4vw, 3.2rem);
  padding-bottom: 20rem;
}

.decor-wrapper {
  position: relative;
  max-width: 950px;
  width: 100%;
}

.center-area {
  width: 100%;
  z-index: 2;
  display: grid;
  place-items: center;
}

.side-decor {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}
.side-decor--left {
  left: 0;
}
.side-decor--right {
  right: 0;
}

.side-decor {
  opacity: 1;
  transition: opacity 0.26s ease;
}

.side-decor.decor-instant {
  transition: none !important;
  opacity: 0 !important;
}

.side-decor.decor-hidden {
  opacity: 0;
}

@media (max-width: 992px) {
  .side-decor {
    top: 50%;
  }
  .side-decor--left img {
    width: 11rem;
  }
  .side-decor--right img {
    width: 14rem;
  }
}
.decor-wrapper.mode-question .decor-variant--q1-left,
.decor-wrapper.mode-question .decor-variant--q2-left,
.decor-wrapper.mode-question .decor-variant--q3-left,
.decor-wrapper.mode-question .decor-variant--q4-left {
  top: 20%;
  left: 8vw;
}
@media (max-width: 768px) {
  .decor-wrapper.mode-question .decor-variant--q1-left,
  .decor-wrapper.mode-question .decor-variant--q2-left,
  .decor-wrapper.mode-question .decor-variant--q3-left,
  .decor-wrapper.mode-question .decor-variant--q4-left {
    top: 25%;
  }
}
.decor-wrapper.mode-question .decor-variant--q1-right,
.decor-wrapper.mode-question .decor-variant--q2-right,
.decor-wrapper.mode-question .decor-variant--q3-right,
.decor-wrapper.mode-question .decor-variant--q4-right {
  top: 20%;
  right: 8vw;
}
@media (max-width: 768px) {
  .decor-wrapper.mode-question .decor-variant--q1-right,
  .decor-wrapper.mode-question .decor-variant--q2-right,
  .decor-wrapper.mode-question .decor-variant--q3-right,
  .decor-wrapper.mode-question .decor-variant--q4-right {
    top: 25%;
  }
}
.decor-wrapper.mode-question .decor-variant--q1-left {
  max-width: clamp(4.5rem, 10vw, 9.1rem);
}
.decor-wrapper.mode-question .decor-variant--q1-right {
  max-width: clamp(6rem, 10vw, 11.9rem);
}
.decor-wrapper.mode-question .decor-variant--q2-left {
  max-width: clamp(6.5rem, 10vw, 13.5rem);
}
.decor-wrapper.mode-question .decor-variant--q2-right {
  max-width: clamp(4.6rem, 10vw, 9.3rem);
}
.decor-wrapper.mode-question .decor-variant--q3-left {
  max-width: clamp(4.1rem, 10vw, 8.2rem);
}
.decor-wrapper.mode-question .decor-variant--q3-right {
  max-width: clamp(6.4rem, 10vw, 12.8rem);
}
.decor-wrapper.mode-question .decor-variant--q4-left {
  max-width: clamp(7rem, 10vw, 14rem);
}
.decor-wrapper.mode-question .decor-variant--q4-right {
  max-width: clamp(3.7rem, 10vw, 7.4rem);
}

@media (max-width: 768px) {
  .decor-wrapper.mode-start {
    display: grid;
    grid-template-rows: auto auto auto;
    row-gap: 3rem;
  }
  .decor-wrapper.mode-start .side-decor {
    position: static;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
    margin: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
  }
  .decor-wrapper.mode-start .side-decor img {
    width: min(32rem, 100%);
    height: auto;
  }
  .decor-wrapper.mode-start .side-decor--left {
    order: 1;
  }
  .decor-wrapper.mode-start .center-area {
    order: 2;
  }
  .decor-wrapper.mode-start .side-decor--right {
    order: 3;
  }
}
.start-center {
  width: 100%;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.6rem;
}

.start-center__lead {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.start-center__logo {
  display: block;
  height: auto;
  width: min(46rem, 100%);
}

.start-btn {
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: clamp(30rem, 20vw, 38rem);
  background: #da4733;
  color: #fff;
  font-size: clamp(2rem, 2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: 5rem;
  padding: 1.4rem 5.6rem 1.4rem 2.4rem;
  border-radius: 999rem;
  box-shadow: 0.3rem 0.5rem 0 #000;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.start-btn:hover {
  transform: translateY(0.3rem);
  box-shadow: 0 0 0 #000;
}
.start-btn::after {
  content: '';
  position: absolute;
  right: 2rem;
  top: 50%;
  width: 3.4rem;
  height: 3.4rem;
  transform: translateY(-50%);
  border-radius: 999rem;
  background: #fff;
}
.start-btn::before {
  content: '';
  position: absolute;
  right: 2.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 0.8rem solid transparent;
  border-bottom: 0.8rem solid transparent;
  border-left: 1.4rem solid #da4733;
  z-index: 1;
}
@media (max-width: 768px) {
  .start-btn {
    margin-top: 3rem;
  }
}

.question-wrap {
  width: 100%;
  display: grid;
  gap: 3rem;
  justify-items: center;
}

.question-header {
  width: min(72rem, 100%);
  display: grid;
  grid-template-columns: 1fr minmax(26rem, 42rem) 1fr;
  align-items: center;
  gap: clamp(1.2rem, 2.6vw, 3.2rem);
  justify-items: center;
}

.question-header__spacer {
  height: 1px;
}

.question-header__center {
  display: grid;
  justify-items: center;
  gap: 0;
}

.question-header__logo {
  width: min(32rem, 100%);
  height: auto;
}

.progress-text {
  margin: 2.5rem 0 1rem 0;
  font-size: 2.4rem;
  color: #815f17;
  font-weight: 600;
}

.progress {
  width: 22rem;
  height: 1rem;
  background: #d5c5a3;
  border-radius: 999rem;
  overflow: hidden;
}
@media (max-width: 768px) {
  .progress {
    width: 11rem;
  }
}

.progress__bar {
  width: 0%;
  height: 100%;
  background: #815f17;
  transition: width 0.4s ease;
}

.question-block {
  width: min(90rem, 100%);
  display: grid;
  justify-items: center;
}

.question-title-row {
  width: min(90rem, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 5rem;
}

.question-no {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.question-title {
  margin: 0;
  font-size: clamp(1.5rem, 4.4vw, 3rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.answers {
  width: 90rem;
  max-width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.answers .btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  border: none;
  border-radius: 999rem;
  background: #da4733;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 600;
  width: 100%;
  max-width: 28rem;
  height: 8rem;
  transition: transform 0.06s ease;
}
.answers .btn:hover {
  transform: translateY(-0.2rem);
}
.answers .btn:active {
  transform: translateY(0);
}

.back-link {
  display: block;
  margin-top: 6rem;
  font-size: 1.4rem;
  color: #000;
  text-align: center;
  text-decoration: underline;
}

@media (max-width: 992px) {
  .answers {
    width: 100%;
    gap: 2rem;
  }
  .answers .btn {
    max-width: 24rem;
    height: 7rem;
    font-size: 2rem;
  }
  .question-title-row {
    gap: 1rem;
    margin-bottom: 3.6rem;
  }
}
@media (max-width: 768px) {
  .answers {
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
  }
  .answers .btn {
    width: 100%;
    max-width: 28rem;
  }
}
.loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(0.4rem);
  backdrop-filter: blur(0.4rem);
  display: grid;
  place-items: center;
  z-index: 50;
}

.loader__content {
  display: grid;
  place-items: center;
  gap: 1.2rem;
}

.loader__chars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 3.2rem);
}

.loader__char {
  width: auto;
  height: auto;
  max-width: clamp(7.2rem, 18vw, 12.5rem);
  -webkit-animation: loaderFloat 1.2s ease-in-out infinite;
  animation: loaderFloat 1.2s ease-in-out infinite;
  will-change: transform;
}

.loader__char--1 {
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}

.loader__char--2 {
  -webkit-animation-delay: 0.15s;
  animation-delay: 0.15s;
}

.loader__char--3 {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}

.loader__text {
  margin: 0;
  font-weight: 600;
  font-size: 1.4rem;
}

@-webkit-keyframes loaderFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.9rem);
  }
}

@keyframes loaderFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.9rem);
  }
}
@-webkit-keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.6rem);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.6rem);
  }
}
.fixed-characters {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 0 1.6rem;
  gap: clamp(1.2rem, 4vw, 5rem);
  pointer-events: none;
  z-index: 5;
}

.fixed-characters__img {
  width: auto;
  height: auto;
  transform: translateY(120%);
  opacity: 0;
}
@media (max-width: 1200px) {
  .fixed-characters__img {
    max-width: min(40rem, 28vw);
  }
}

.fixed-characters.is-in .fixed-characters__img {
  -webkit-animation: slideInFromBottom 0.6s ease forwards;
  animation: slideInFromBottom 0.6s ease forwards;
}
.fixed-characters.is-in .fixed-characters__img--1 {
  -webkit-animation-delay: 0.05s;
  animation-delay: 0.05s;
}
.fixed-characters.is-in .fixed-characters__img--2 {
  -webkit-animation-delay: 0.25s;
  animation-delay: 0.25s;
}
.fixed-characters.is-in .fixed-characters__img--3 {
  -webkit-animation-delay: 0.45s;
  animation-delay: 0.45s;
}

@-webkit-keyframes slideInFromBottom {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0%);
    opacity: 1;
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0%);
    opacity: 1;
  }
}
.fade-in {
  -webkit-animation: fadeIn 0.36s ease both;
  animation: fadeIn 0.36s ease both;
}

.fade-out {
  -webkit-animation: fadeOut 0.26s ease both;
  animation: fadeOut 0.26s ease both;
}

.hidden {
  display: none !important;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@-webkit-keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(0.6rem);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(0.6rem);
  }
}
