html {
  width: 100%;
  margin: 0 auto;
}

body {
  background-color: #008876;
  margin: 0;
  padding: 0;
  font-family: "Noto Sans Japanese", Meiryo, sans-serif !important;
}

.header {
  text-align: center;
}

.header-logo__top {
  padding-top: 0.5rem;
  background-color: #fff;
}

.header-logo__ietugu {
  width: 5rem;
}

.visual {
  height: 200px;
  background-color: #e09f3e;
}
.header_wrap {
  width: 620px;
  margin: 0 auto;
  position: relative;
}

.header_wrap_img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border: none;
  transition-duration: 0.3s;
}

.header-logo__title {
  font-size: x-small;
  font-weight: bold;
  margin: 0;
}

.header-logo__bottom {
  display: flex;
  justify-content: center;
  background-color: #e09f3e;
  border-radius: 0 0 0.5rem 0.5rem;
}

.header-logo_subtitle {
  font-size: 45px;
  padding-top: 1rem;
  text-align: left;
  font-weight: 900;
  margin: 0;
  color: #fff;
}

.header-logo__hiromi {
  width: 25rem;
  text-align: center;
}

.content {
  padding: 1px 0 60px;
  position: relative;
  z-index: 10;
}

.wrapper {
  overflow: hidden;
  margin: -5rem auto 0;
  max-width: 740px;
}

.main-content__form {
  width: 500%;
  display: flex;
  justify-content: left;
  transition: transform 0.3s ease-in-out;
}

.first-question,
.second-question,
.third-question,
.fourth-question,
.fifth-question {
  width: 20%;
  padding: 0.5rem;
  margin-top: 0.5rem;
}
.fifth-question {
  margin-top: 2.5rem;
}

.question-count {
  width: 20%;
  background-color: #fff;
  border-radius: 0.3rem 0.3rem 0 0;
  font-size: medium;
  font-weight: bold;
  text-align: center;
  padding-top: 0.2rem;
}

.count-number {
  color: #d7000a;
  font-size: large;
}

.question-message {
  background-color: #fff;
  border-radius: 0 0.3rem 0.3rem 0.3rem;
  font-weight: bold;
  padding: 1rem;
  font-size: large;
}
.question-content-alert {
  font-size: small;
  background-color: red;
  text-align: center;
  color: white;
  padding: 0.5rem;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
}

.question-content {
  background-color: #fff;
  border-radius: 0.3rem;
  padding: 0.5rem 0.5rem 1.5rem 0.5rem;
  margin-top: 0.5rem;
}

.question-content__area-item {
  margin-top: 0;
}

.area-item__name {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.area-item__form {
  margin: 0;
}

.area-item__form-select {
  width: 100%;
  border: 2px solid #b9b9b9;
  font-size: large;
  padding: 1rem 0.5rem;
}

.area-item__form-select:focus-visible {
  color: #a9a9a9;
  border: 2px solid #d7000a;
  background-color: #ffd5e0;
  outline: none;
}

.next-question {
  text-align: center;
}

.next-button {
  color: #fff;
  background-color: #e09f3e;
  font-size: x-large;
  font-weight: bold;
  border-radius: 0.3rem;
  border: none;
  padding: 1rem 4rem;
  margin: 1rem auto;
  cursor: pointer;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.next-button:hover {
  background: #f0b060;
}

.question-content__house {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.question-content__house-item {
  width: 50%;
  text-align: center;
}

.question-content__house-button {
  display: block;
  width: 95%;
  color: #fff;
  background-color: #e09f3e;
  font-size: xx-large;
  font-weight: bold;
  border-radius: 0.3rem;
  border: none;
  padding: 2rem 1rem;
  margin: 0.5rem auto;
  cursor: pointer;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.question-content__house-button:hover {
  background: #f0b060;
}

.back-question__link {
  color: #858585;
  background-color: #fff;
  border: none;
  font-size: small;
  margin-top: 3rem;
  margin-bottom: 2rem;
  cursor: pointer;
}

.condition-item {
  margin-top: 0;
}

.condition-item__form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
}

.condition-item__age {
  width: 50%;
  text-align: center;
}

.condition-item__age-button {
  display: block;
  width: 95%;
  color: #fff;
  background-color: #e09f3e;
  font-size: xx-large;
  font-weight: bold;
  border-radius: 0.3rem;
  border: none;
  padding: 2rem 1rem;
  margin: 0.5rem auto;
  cursor: pointer;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.condition-item__age-button:hover {
  background: #f0b060;
}

.condition-item__size {
  width: 50%;
  text-align: center;
}

.condition-item__size-button {
  display: block;
  width: 95%;
  color: #fff;
  background-color: #e09f3e;
  font-size: medium;
  font-weight: bold;
  border-radius: 0.3rem;
  border: none;
  padding: 1.5rem 0;
  margin: 0.5rem auto;
  cursor: pointer;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.size-button__m2 {
  font-size: x-large;
}

.size-button__span {
  font-size: larger;
}

.size-button__unknown {
  font-size: xx-large;
}

.condition-item__size-button:hover {
  background: #f0b060;
}

.detail-item {
  margin-top: 0;
}

.detail-item__name {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.detail-item__form-size {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
}

.detail-item__size {
  width: 50%;
  text-align: center;
}

.detail-item__size-button {
  display: block;
  width: 95%;
  color: #fff;
  background-color: #e09f3e;
  font-size: large;
  font-weight: bold;
  border-radius: 0.3rem;
  border: none;
  padding: 2rem 0;
  margin: 0.5rem auto;
  cursor: pointer;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.detail-item__size-button:hover {
  background: #f0b060;
}

.detail-item__form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.detail-item__form-area {
  width: 70%;
}

.detail-item__input-address {
  width: 100%;
  border: 2px solid #b9b9b9;
  font-size: large;
  padding: 1rem;
}

.detail-item__input-address:focus-visible {
  outline-color: #d7000a;
  color: #a9a9a9;
  background-color: #ffd5e0;
}

.detail-item__input-address:disabled {
  background-color: #fff;
  color: #000;
}

.detail-item__form-unknown {
  width: 15%;
  position: relative;
}

.detail-item__form-unknown__input {
  display: none;
}

.detail-item__form-unknown__name::before {
  content: "";
  position: absolute;
  display: block;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  left: 0;
  top: 50%;
  border: 2px solid #b9b9b9;
  background-color: #fff;
  cursor: pointer;
}

#buildingNameUnknown:checked ~ .detail-item__form-unknown__name::after {
  content: "";
  position: absolute;
  display: block;
  box-sizing: border-box;
  width: 18px;
  height: 9px;
  margin-top: -9px;
  left: 3px;
  top: 50%;
  transform: rotate(-45deg);
  border-bottom: 3px solid;
  border-left: 3px solid;
  border-color: #000;
}

.detail-item__form-unknown__name {
  margin-left: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.last-question {
  text-align: center;
  margin: 0;
}

.last-question__button {
  color: #fff;
  background-color: #e09f3e;
  font-size: x-large;
  font-weight: bold;
  border-radius: 0.3rem;
  border: none;
  padding: 1rem 4rem;
  margin: 3rem auto 2rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.last-question__button:hover {
  background: #f0b060;
}

.user-data {
  background-color: #fff;
  border-radius: 0.3rem;
  padding: 1rem;
}

.notes {
  text-align: center;
  font-size: smaller;
  color: #f00;
  margin-top: 0;
}

.user-data__name {
  font-weight: bold;
  margin: 1rem 0 0.2rem;
}

.user-data__name-item {
  background-color: #eee;
  font-size: smaller;
  border-radius: 0.3rem;
  padding: 0.1rem 0.2rem;
  margin-left: 0.5rem;
}

.user-data__form {
  display: flex;
  align-items: center;
  margin: 0;
}

.user-data__form-input {
  width: 100%;
  border: 2px solid #b9b9b9;
  font-size: medium;
  padding: 1rem;
}

.user-data__form-input:focus-visible {
  outline-color: #d7000a;
  color: #a9a9a9;
  background-color: #ffd5e0;
}

.user-data__form-phone {
  width: 27%;
  border: 2px solid #b9b9b9;
  font-size: medium;
  text-align: center;
  padding: 1rem;
}

.user-data__form-phone:focus-visible {
  outline-color: #d7000a;
  color: #a9a9a9;
  background-color: #ffd5e0;
}

.user-data__form-hyphen {
  font-size: xx-large;
  margin: 0 0.7rem;
}

.user-data__button {
  text-align: center;
}

.user-data__button-submit {
  background: url(../img/through_assessment.gif) top center / 100% no-repeat;
  border: none;
  padding: 12rem;
  margin: 1rem auto;
  cursor: pointer;
}

.user-data__agree {
  text-align: center;
  margin-bottom: 1rem;
}

.agree-notes {
  font-size: small;
}

.agree-form__link {
  color: #000;
}

.thanks-main {
  margin: 1rem auto 0;
}

.thanks-main__content {
  width: 95%;
  background-color: #fff;
  border-radius: 0.3rem;
  text-align: center;
  padding: 0.5rem 1rem 2rem;
  margin: 0.5rem auto 3rem;
}

.content-title {
  border-bottom: 2px solid #b9b9b9;
  padding: 1rem;
}

.content-title__message {
  font-weight: bold;
  margin: 0;
}

.content-information__message-inner {
  color: #d7000a;
  background: linear-gradient(#fff 50%, #fffb95 50%);
  line-height: 2;
  font-weight: bold;
}

.content-tel__image {
  width: 100%;
}

.footer {
  text-align: center;
  margin: 1rem 0;
}

.footer-main {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-item__link {
  text-decoration: none;
  color: #000;
  font-size: small;
  margin: 0.5rem;
}

.unknown-button {
  background-color: #aeaeae !important;
}

@media screen and (max-width: 1024px) {
  .header-logo_subtitle {
    font-size: 35px;
  }
  .first-question,
  .second-question,
  .third-question,
  .fourth-question,
  .fifth-question {
    margin-top: 1rem;
  }
  .fifth-question {
    margin-top: 3rem;
  }
}

@media screen and (max-width: 768px) {
  .visual {
    height: auto;
  }
  .header_wrap {
    width: 90vw;
  }
  .header-logo__bottom {
    height: auto;
  }
  .header-logo_subtitle {
    font-size: 25px;
  }
  .wrapper {
    margin: -4rem auto 0;
  }
  .question-message {
    font-size: medium;
  }

  .question-message-text {
    font-size: small;
  }

  .condition-item__age-button,
  .question-content__house-button,
  .condition-item__size-button,
  .detail-item__size-button,
  .size-button__m2,
  .size-button__unknown {
    padding: 1.5rem 0;
    font-size: large;
  }

  .detail-item__size-button,
  .condition-item__size-button {
    padding: 0.8rem 0;
  }

  .unknown-button {
    background-color: #aeaeae !important;
    padding: 1.5rem 0;
  }

  .size-button__span {
    font-size: medium;
  }
  .user-data {
    padding: 0.5rem 1rem;
  }
}
@media screen and (max-width: 551px) {
  .first-question,
  .second-question,
  .third-question,
  .fourth-question,
  .fifth-question {
    margin-top: 0.5rem;
  }
  .fifth-question {
    margin-top: 2.3rem;
  }
  .header-logo__hiromi {
    width: 13rem;
  }
  .wrapper {
    margin: -3rem auto 0;
  }
  .header-logo__title {
    font-size: medium;
  }

  .size-button__unknown {
    font-size: large;
  }

  .question-message-text {
    font-size: x-small;
  }
  .user-data__name {
    font-weight: bold;
    margin: 0.5rem 0 0.2rem;
  }
  .user-data__form-input,
  .user-data__form-phone {
    padding: 0.5rem;
  }
  .question-content-alert {
    font-size: x-small;
    padding: 0.2rem;
  }
}

@media screen and (max-width: 471px) {
  .header-logo_subtitle {
    font-size: x-large;
    padding-bottom: 2rem;
  }

  .question-message-text {
    font-size: x-small;
  }
}

@media screen and (max-width: 467px) {
  .condition-item__form-area {
    width: 70%;
  }
  .condition-item__form-input {
    width: 50%;
  }

  .condition-item__form-size-input {
    width: 50%;
  }

  .condition-item__form-unknown {
    width: 17%;
  }
}

@media screen and (max-width: 461px) {
  .user-data__button-submit {
    padding: 10rem;
  }
}

@media screen and (max-width: 454px) {
  .header-logo__title {
    font-size: smaller;
  }

  .question-count {
    width: 20%;
    margin-top: 0.4rem;
  }

  .detail-item__form-area {
    width: 50%;
  }

  .detail-item__form-unknown {
    width: 25%;
  }
}

@media screen and (max-width: 414px) {
  .header-logo_subtitle {
    font-size: x-large;
    padding-bottom: 2rem;
  }

  .condition-item__form-unknown {
    width: 25%;
  }

  .question-count {
    width: 30%;
  }
}

@media screen and (max-width: 405px) {
  .content-title__message {
    font-size: smaller;
  }
}

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

@media screen and (max-width: 389px) {
  .user-data__button-submit {
    padding: 9rem;
  }
}

@media screen and (max-width: 380px) {
  .detail-item__form-input {
    width: 60%;
  }
}

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

@media screen and (max-width: 369px) {
  .header-logo__hiromi {
    width: 11rem;
  }
}

@media screen and (max-width: 357px) {
  .area-item__form-select,
  .condition-item__form-input,
  .condition-item__form-size-input,
  .detail-item__form-input,
  .detail-item__input-address {
    font-size: smaller;
  }
}

@media screen and (max-width: 350px) {
  .header-logo__title {
    font-size: x-small;
  }

  .user-data__form-phone {
    width: 30%;
  }
  .user-data__form-hyphen {
    font-size: larger;
    margin: 0 0.2rem;
  }
}

@media screen and (max-width: 348px) {
  .content-title {
    padding: 1rem 0;
  }

  .content-title__message {
    font-size: small;
  }
}

@media screen and (max-width: 344px) {
  .detail-item__form-unknown {
    width: 25%;
  }
}

@media screen and (max-width: 337px) {
  .user-data__button-submit {
    padding: 8rem;
  }
}
