* { box-sizing: border-box; } 

.button-check-result:hover , button-qr:hover {
  cursor: pointer;
}

.container-javo {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.container-javo h1,
.container-javo h2,
.container-javo h3,
.container-javo h4,
.container-javo h5,
.container-javo a,
.container-javo span,
.container-javo p {
  margin: 0;
  line-height: normal;
}

.questions-result {
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #D9D9D9;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.top-title-qr {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 16px 16px 0px 0px;
  background: var(--_, #1A5398);
}

.top-title-qr h3 {
  color: #FFF;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 157%;
  text-align: center;
}

.content-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding: 24px 30px 30px 30px;
}

.img-text-qr {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.img-text-qr img {
  width: 100%;
  max-width: 152px;
  height: auto;
}

.resutl-texts-qr {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.resutl-texts-qr span,
.resutl-texts-qr p {
  color: #000;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 157%;
}

.content-qr>p {
  color: #000;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 157%;
}

.button-qr {
  width: 100%;
  max-width: 310px;
  display: flex;
  padding: 10px 22px;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid var(--_, #1A5398);
  background: var(--_, #1A5398);
  text-decoration: none;
  color: #fff;
}

.button-qr p {
  text-align: center;
  color: var(--white, #FFF);
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 160%;
  text-decoration: none;

}

.button-qr:hover {
  opacity: 0.9;
}

.button-qr svg {
  width: 10px;
  height: 16px;
}


@media screen and (max-width: 768px) {

  .top-title-qr {
    padding: 10px;
    border-radius: 12px 12px 0px 0px;
  }

  .top-title-qr h3 {
    font-size: 20px;
    line-height: 140%;
  }

  .content-qr {
    padding: 20px;
    gap: 15px;
  }

  .img-text-qr {
    flex-wrap: wrap;
    gap: 20px;
  }

  .img-text-qr img {
    max-width: 120px;
  }

  .resutl-texts-qr {
    gap: 10px;
  }

  .resutl-texts-qr span,
  .resutl-texts-qr p {
    font-size: 20px;
  }

  .content-qr>p {
    font-size: 14px;
  }

  .button-qr {
    width: 100%;
    padding: 8px 18px;
  }

  .button-qr p {
    font-size: 12px;
  }

  .button-qr svg {
    width: 8px;
    height: 14px;
  }
}



.button-check-result {
  width: 100%;
  max-width: 310px;
  display: flex;
  padding: 10px 22px;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid var(--_, #1A5398);
  background: var(--_, #1A5398);
  text-decoration: none;
  margin:0 auto;
}

.button-check-result p {
  text-align: center;
  color: var(--white, #FFF);
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 160%;
  text-decoration: none;

}

.button-check-result:hover {
  opacity: 0.9;
  border: 1px solid var(--_, #1A5398);
  background: var(--_, #1A5398);
}

.button-check-result svg {
  width: 10px;
  height: 16px;
}

.correct-answer-text: empty {
  display: none; 
}

.quiz-failed-button {
  display:flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 21px 0 0 0;
  gap: 21px;
}

@media(max-width: 500px) {
  .quiz-failed-button {
    flex-direction: column; 
  }
}



.hidden {
  display: none;
}

/* --- Scoped Quiz Form Styles --- */
/* These styles are adapted to work with your existing HTML structure */
.style-form-only.container-javo {
  width: 100%;
  margin: 0 auto;
  font-family: "Noto Sans JP", sans-serif;
  margin-bottom: 40px; /* From .margin-40-25 */
}

.style-form-only .form-card { /* Mapped from .container-question-text */
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  border: 1px solid #D9D9D9;
  border-radius: 16px;
  padding: 30px;
  box-sizing: border-box;
  background-color: #fff;
  box-shadow: none; /* Override previous shadow */
}

.style-form-only .form-header { /* Mapped from .container-question */
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  text-align: left; /* Override previous center align */
}

.style-form-only .form-header p { /* Mapped from .question */
  font-size: 16px;
  font-weight: 400;
  width: 100%;
  margin: 0;
  color: #1f2937; /* Use a standard text color */
}

.style-form-only .form-group { /* Mapped from .container-answer */
  width: 100%;
  margin: 0;
}

.style-form-only .form-label { /* Mapped from .container-answer .form-label */
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.style-form-only .form-label .required-star {
  color: var(--danger-color);
}

.style-form-only .form-input { /* Mapped from .container-answer input.userAnswer */
  width: 100%;
  background-color: unset;
  outline: none;
  border-width: 0 0 2px 0;
  border-color: rgba(27, 83, 152, 0.6);
  padding: 4px 0;
  color: rgba(27, 83, 152, 1);
  font-size: 16px;
  font-weight: 400;
  line-height: 25.12px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  border-radius: 0; /* Override previous radius */
}

.style-form-only .form-input::placeholder {
  color: rgba(27, 83, 152, 0.6);
}

.style-form-only .form-input:focus {
  border-color: rgba(27, 83, 152, 1);
  box-shadow: none; /* Override previous focus shadow */
  background-color: unset;
}

.style-form-only .error-input { /* Mapped from .container-answer .error-input */
  border-color: var(--danger-color);
}

.style-form-only .error-text { /* Mapped from .container-answer .error-text */
  color: var(--danger-color);
  font-size: 14px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .style-form-only .form-card { /* Mapped from .container-question-text */
    padding: 24px;
  }
  .style-form-only.container-javo {
    margin-bottom: 25px; /* From .margin-40-25 */
  }
}