@charset "UTF-8";
.top {
  background-image: url(../images/contactBg.jpg);
}

/*Contact Form 7カスタマイズ*/
.wpcf7 {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 25px;
}

.wpcf7 p {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
  border-top: dotted 1px #d0d0d0;
}

.wpcf7 p:last-of-type {
  border-bottom: dotted 1px #d0d0d0;
  text-align: center;
}

.wpcf7 p label {
  font-size: 18px;
}

.wpcf7 p label.required {
  position: relative;
}

.wpcf7 p label.required::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 100%;
  content: "必須";
  display: block;
  width: 50px;
  height: 25px;
  border: solid 1px #f99;
  color: #f99;
  font-size: 15px;
  line-height: 25px;
  text-align: center;
}

.wpcf7 p label span {
  display: block;
  margin-top: 5px;
}

.wpcf7 p label span input {
  width: 100%;
  padding: 5px;
  font-size: 20px;
}

.wpcf7 p label span textarea {
  width: 100%;
  padding: 5px;
  font-size: 20px;
}

.wpcf7 input[type="submit"] {
  width: 328px;
  height: 71px;
  background-color: #2196f3;
  color: #fff;
  border: solid 1px #2196f3;
  border-radius: 35.5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.wpcf7 input[type="submit"]:hover {
  color: #2196f3;
  background-color: #fff;
}

@media (max-width: 800px) {
  /*---------------------------
レスポンシブ
---------------------------*/
  /*Contact Form 7カスタマイズ*/
  .wpcf7 {
    padding: 0 20px;
  }
  .wpcf7 p label {
    display: block;
    width: 100%;
    font-size: 16px;
  }
  .wpcf7 p label.required::after {
    top: -5px;
    transform: unset;
    left: unset;
    right: 0;
    width: 50px;
    height: 20px;
    font-size: 13px;
    line-height: 20px;
  }
  .wpcf7 input[type="submit"] {
    max-width: 328px;
    width: 100%;
    font-size: 16px;
  }
}
