html {
  font-size: 10px;
}
body {
  letter-spacing: 0.1rem;
  font-weight: 500;
  font-size: 1.6rem;
}
.sp-br {
  display: none;
}
@media screen and (max-width: 700px) {
  html {
    font-size: 1.6vw;
  }
}
main {
  display: flex;
  flex-direction: column;
  align-items: center;
}
video {
  width: 100%;
}
input {
  cursor: pointer;
}
input::placeholder {
  color: #979797;
}
.accent-yellow {
  color: #ffe400;
}
.accent-red {
  color: #f00000;
}
.accent-blue {
  color: var(--main-color);
}
.cta-info {
  border: solid 0.3rem var(--main-color);
  color: var(--main-color);
  border-radius: 1rem;
  margin-bottom: 6rem;
  margin-top: 2rem;
  font-size: 1.4rem;
  padding: 1.5rem;
  width: 94%;
  background: #fbfbfb;
  text-align: center;
  line-height: 2.2rem;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* question */
.contents_wrapper {
  max-width: 700px;
  width: 100%;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.25);
}
.contents_inner {
  padding: 0 2rem;
}
.question-block {
  border: solid 0.5rem var(--main-color);
  overflow-x: hidden;
  margin-top: -3rem;
  z-index: 10;
  position: relative;
  background: #ffffff;
}
.questions-container {
  display: flex;
  max-width: 700px;
  width: 100%;
  transition: transform 0.5s ease-out;
}
.question {
  width: 100%;
  flex-shrink: 0;
  text-align: center;
}
.qa-wrap {
  padding: 0 3rem;
  margin-bottom: 6rem;
}
/* question text */
.question_text {
  display: flex;
  margin-bottom: 3rem;
}
.question_text picture {
  width: 10%;
  margin-right: 2rem;
  object-fit: contain;
}
.question_text p {
  width: 90%;
  font-size: 3rem;
  text-align: left;
  font-weight: 700;
}
.remaining_questions {
  background-color: var(--main-color);
  height: 4.3rem;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.8rem;
  padding: 0.4rem;
  margin-bottom: 3rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}
.select-button-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.select-button-wrap label {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--main-color);
  color: #ffffff;
  width: calc(50% - 1rem);
  height: 8rem;
  font-size: 2.4rem;
  font-weight: bold;
  border-radius: 1rem;
  cursor: pointer;
}

.select-button-wrap input[type="radio"]:checked + label {
  opacity: 0.7;
}

.branch-text {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0rem;
  display: inline-block;
  padding: 0 0.5rem;
  position: relative;
  margin-bottom: 1.3rem;
}

.branch-text::before {
  background: radial-gradient(
    circle farthest-side,
    var(--main-color),
    var(--main-color) 40%,
    transparent 40%,
    transparent
  );
  background-size: 0.8rem 0.8rem; /* ドットのサイズを小さく調整 */
  content: "";
  display: inline-block;
  height: 0.8rem; /* ドットのサイズに合わせて高さを調整 */
  width: 100%;
  position: absolute;
  top: -0.4rem; /* ドットの位置を調整 */
  left: 0;
}

.branch-text:after {
  background: radial-gradient(
    circle farthest-side,
    var(--main-color),
    var(--main-color) 40%,
    transparent 40%,
    transparent
  );
  background-size: 0.8rem 0.8rem; /* ドットのサイズを小さく調整 */
  content: "";
  display: inline-block;
  height: 0.8rem; /* ドットのサイズに合わせて高さを調整 */
  width: 100%;
  position: absolute;
  bottom: -0.4rem;
  left: 0;
}

.marker-text {
  display: inline-block;
  background-color: #f00000;
  padding: 0 1rem;
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}
.last-qa-wrap {
  padding: 0 1rem;
  margin-bottom: 5rem;
}

#last_question {
  text-align: center;
  font-size: 2rem;
}
.form-image01 img {
  width: 93%;
  margin-top: 2rem;
}
#last_question .input-wrapper {
  text-align: left;
  padding: 0 1rem;
  margin-top: 1.5rem;
}
#last_question label {
  font-weight: bold;
  display: block;
}
#last_question .select-box {
  position: relative;
}
#last_question .select-box::after {
  content: "";
  position: absolute;
  top: 2.3rem;
  right: 2.2rem;
  width: 1.6rem;
  height: 1.6rem;
  border-right: 0.3rem solid var(--main-color);
  border-bottom: 0.3rem solid var(--main-color);
  transform: rotate(45deg);
}
#last_question .select-box select {
  width: 100%;
  display: flex;
  align-items: center;
  height: 7rem;
  padding: 0 2rem;
  border: solid 0.2rem var(--main-color);
  border-radius: 1rem;
}
#last_question input {
  height: 7rem;
  padding: 0 2rem;
  border: solid 0.2rem var(--main-color);
  border-radius: 1rem;
  width: 100%;
}

#last_question .tel-input-wrapper input {
  width: 30.5%;
}
#last_question .send-text img {
  border: none;
  height: auto;
  object-fit: cover;
  width: 40%;
  margin-top: 4rem;
}
#last_question .submit-button {
  border: none;
  height: auto;
  object-fit: cover;
  width: 92%;
  margin-top: 1rem;
}
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 2rem;
  height: 6rem;
  font-size: 1.6rem;
}

/* チェックボックス */
.agree-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
}
#last_question .checkbox-item {
  border: none;
  width: fit-content;
}
#last_question .checkbox-item input {
  display: none;
}

.checkbox-item-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  padding: 1.4rem;
  border-radius: 0.5rem;
  border: solid 1px #000;
  font-weight: bold;
}

.checkbox-item::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  background-image: url(./../images/checkbox_off.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.checkbox-item.on::before {
  content: "";
  display: block;
  background-image: url(./../images/checkbox_on.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.checkbox-item img {
  width: 35px;
  height: 35px;
  margin: 0 10px;
}

footer a {
  font-size: 1.3rem;
}

@media screen and (max-width: 700px) {
  .sp-br {
    display: block;
  }
  .select-button-wrap {
    flex-direction: column;
  }
  .select-button-wrap label {
    width: 100%;
  }
  .branch-text {
    display: block;
    font-size: 2.7rem;
  }
  #last_question .tel-input-wrapper input {
    width: 30.1%;
  }
  #last_question input {
    padding-top: 0.4rem;
  }
  .marker-text {
    font-size: 2.1rem;
  }
  .contents_inner {
    padding: 0 1rem;
  }
  .last-qa-wrap {
    padding: 0 0.5rem;
  }
}
