@charset "utf-8";

.txt-green {
  color: #046040;
}
.txt-red {
  color: #c20b0b;
}
.txt-bigger {
  font-size: 1.2em;
}
.txt-smaller {
  font-size: 0.8em;
}
.mincho {
  font-family: serif;
  font-weight: bold;
}
.bold-400 {
  font-weight: 400;
  margin-top: 2px;
}

.txt-area {
  text-align: center;
  margin-top: 2%;
}

.txt-area h2 {
  display: inline-block;
  text-align: left;
}

.pagenation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2%;
}

.pagenation li {
  background-color: #e0e3e2;
  margin: 0 3px;
  padding: 6px 10px;
  border-radius: 10px;
  color: #6f7271;
  font-weight: 400;
}

.current {
  color: #fff !important;
  background-color: #627e75 !important;
}

.pagenation-border {
  border-top: 1px dashed #d1d4d3;
  width: 70%;
  margin: 0 auto;
  margin-top: 2%;
}

.question-form {
  margin-top: 2%;
  text-align: center;
  font-weight: 400;
}

.question-form p {
  font-size: clamp(16px, 25px, 1.4vw);
  margin-bottom: 2%;
}

input#answer1-1,
input#answer1-2,
input#answer1-3,
input#answer2-1,
input#answer2-2,
input#answer2-3,
input#answer3-1,
input#answer3-2,
input#answer3-3{
  visibility: hidden;
}

.answers + label {
  background-color: #87cfa0;
  display: flex;
  margin: -8px auto;
  width: 30%;
  height: 70px;
  transition: 0.5s;
  font-size: clamp(16px, 25px, 1.8vw);
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 2px 3px gray;
}

.answers:checked + label {
  background-color: #eaef96;
}

.selected {
  background-color: #eaef96;
}

.next-btn {
  border: 1px solid #444444;
  border-radius: 25px;
  width: 20%;
  height: 60px;
  box-shadow: 0 2px 3px gray;
  font-size: clamp(16px, 25px, 1.2vw);
  margin: 2% auto;
  margin-bottom: 7%;
}

.last-form {
  width: 30%;
  margin: 0 auto;
  color: #323232;
  margin-top: 3%;
  margin-bottom: 5%;
}

.form-title {
  font-weight: 400;
  font-size: clamp(16px, 20px, 1.2vw);
  margin-top: 5%;
  display: inline-block;
}

label {
  vertical-align: -webkit-baseline-middle;
}

.gender,
select,
input[type="text"],
input[type="email"],
input[type="tel"] {
  display: inline-block;
  border: solid 1px #c9cbca;
  box-shadow: 0 1px 2px #c9cbca;
  border-radius: 5px;
  font-size: clamp(16px, 20px, 1.2vw);
  height: 40px;
  margin-top: 2%;
  font-weight: 400;
}

.gender-box {
  display: flex;
  justify-content: space-evenly;
}
.gender {
  width: 45%;
  padding: 2%;
  display: flex;
  align-items: center;
  justify-content: center;
}
input#male,
input#female {
  margin-left: -10px;
  margin-right: 10px;
}

.birth-box {
  width: 100%;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 1% 2%;
}

select {
  background-image: url(../images/sort-down-solid.svg);
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 13px 13px;
  padding: 1% 6% 1% 3%;
  text-align: center;
}

.submit {
  width: 100%;
  height: auto;
  text-align: center;
  margin-top: 8%;
}

input[type="image"] {
  width: 80%;
}

.form-title::after {
  content: "必須";
  background-color: #ce3d3d;
  padding: 3px 6px;
  margin-left: 10px;
  border-radius: 4px;
  font-size: 0.8em;
  color: #fff;
}

.form-title.required {
  display: flex;
  align-items: center;
}

input::placeholder {
  color: #b3b2b2;
}

.thanks-bg {
  background: url('../images/thanks-bg@1.5x.jpg') no-repeat;
  background-size: cover;
}

.thanks-content {
  width: 100%;
  text-align: center;
  padding: 10% 0;
}

.thanks-content img {
  width: 50%;
}

@media screen and (max-width: 768px) {
  .txt-area {
    width: 80%;
    margin: 4% auto;
    font-size: clamp(14px, 18px, 1.1vw);
  }
  .pagenation-border {
    width: 80%;
    margin: 5% auto;
  }
  .answers + label {
    margin: -12px auto;
    width: 70%;
    height: 55px;
  }
  .question-form p {
    margin-bottom: 3%;
  }
  .next-btn {
    width: 70%;
    height: 45px;
    margin: 5% auto;
    margin-bottom: 7%;
  }
  .last-form {
    width: 80%;
    margin: 6% auto;
  }
  .gender-box {
    display: flex;
    justify-content: space-between;
  }
  .gender {
    width: 48%;
    padding: 3%;
    text-align: center;
  }
  select {
    background-position: right 4px center;
    font-size: 14px;
  }
  input[type="image"] {
    width: 90%;
  }
  .thanks-content img {
    width: 95%;
}
.thanks-content {
  padding: 35% 0;
}
}
