/* max-width 960px
   height auto

   【スマホ切り替え】
   ヘッダー、ナビ、フッター　768px
   メイン　600px

	z-index
   1  body .site

*/

.top-img {
  position: relative;
}
.top-img h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  max-width: 195px;
  width: auto;
}

#primary {
  padding: 8rem 0;
}
@media screen and (max-width: 767px) {
  #primary {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.form-box {
  max-width: 700px;
  width: auto;
  margin: 0 auto;
}
.form-box form {
  margin-bottom: 1rem;
}
.form-box p.txt {
  color: #e9537e;
  font-weight: bold;
}
.form-box .form-all {
  border-top: 2px dotted #b1b1b1;
  margin-top: 1rem;
}
.form-box .form-all .tr {
  border-bottom: 2px dotted #b1b1b1;
  padding: 1rem 0;
}
.form-box .form-all .tr .th {
  flex-basis: 150px;
  font-weight: bold;
  display: flex;
  align-items: center;
  border-left: 8px solid #ffec1a;
  padding-left: 1rem;
}
.form-box .form-all .tr .td {
  flex-basis: calc(100% - 200px);
}
.form-box .form-all .tr .td input,
.form-box .form-all .tr .td textarea {
  border: 1px solid #ccc;
}
.form-box .form-all .tr .td input[type="text"],
.form-box .form-all .tr .td input[type="email"],
.form-box .form-all .tr .td textarea {
  width: 100%;
  background-color: #fdfade;
  border-radius: 5px;
  padding: 0.5rem;
}
.form-box .form-all .tr .td input[name="your-grade"],
.form-box .form-all .tr .td input[name="your-number"] {
  width: 100px;
  margin-right: 0.5rem;
}
.form-box .form-all .tr .td input[type="radio"] {
  vertical-align: unset;
}
.form-box .form-all .tr .td .wpcf7-list-item {
  margin-right: 0.5rem;
}
.form-box .form-all .tr.adjustment {
  display: block;
  position: relative;
}
.form-box .form-all .tr.adjustment .td div {
  display: inline-block;
  margin-top: 0.8rem;
  margin-right: 1rem;
}
.form-box .form-all .tr.dispatch .td input {
  width: 30px;
}
.form-box .form-all .tr.online .th {
  margin-bottom: 0.5rem;
}
.form-box .form-all .tr.online .td .wpcf7-list-item.first {
  display: none;
}
.form-box .form-all .submit {
  margin: 3rem 0;
}
.form-box .form-all .tr .td textarea {
  font-size: 13.3333px;
}
.form-box .form-all .submit input[type="submit"] {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  display: block;
  background-color: transparent;
  text-align: center;
  color: #e9537e;
  border: 1px solid #e9537e;
  border-radius: 20px;
  background-image: none;
  font-size: 16px;
  padding: 0.5rem;
  cursor: pointer;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
.form-box .form-all .submit input[type="submit"]:hover {
  color: #fff;
  background-color: #e9537e;
}
/* 送信エラー時の文字の調整 */
.screen-reader-response,
.wpcf7-response-output {
  display: none;
}
.wpcf7-not-valid-tip {
  color: #e9537e;
  font-size: 12px;
  font-weight: bold;
}
.form-box .form-all .tr.dispatch .td {
  & .wpcf7-not-valid-tip {
    display: none;
  }
  & .error-message {
    color: #e9537e;
    font-size: 12px;
    font-weight: bold;
    margin-top: 0.5rem;
    display: none;
  }
  &:has(.wpcf7-not-valid-tip) {
    & .error-message {
      display: block;
    }
  }
}
.wpcf7-not-valid {
  border-color: #e9537e !important;
}
/* 送信エラー時の文字の調整 end */
.form-box p.other {
  text-indent: -1em;
  margin-left: 1em;
}
.form-box .note {
  background-color: #e5f7f9;
  border-radius: 20px;
  padding: 2rem;
  margin-top: 3rem;
}
.form-box .note p span {
  color: #e9537e;
  font-weight: bold;
}
.form-box .note p.con {
  margin-top: 1rem;
  font-weight: bold;
}
@media screen and (max-width: 767px) {
  .form-box .form-all .tr {
    display: block;
  }
  .form-box .form-all .tr .th {
    margin-bottom: 0.8rem;
  }
}

/******* サンクスページ *******/
.form-box.thank h3 {
  color: #e9537e;
  font-size: 30px;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .form-box.thank h3 {
    font-size: 6vw;
  }
}
