.form {
  margin-top: 25px;
}

.form-main {
  border-left: solid 1px #d8d8d8;
  border-right: solid 1px #d8d8d8;
}

.form-block {
  display: flex;
  border-top: solid 1px #d8d8d8;
  min-height: 68.32px;
  box-sizing: border-box;
}

.form-block:nth-last-child(1) {
  border-bottom: solid 1px #d8d8d8;
}

.form-label {
  width: 25%;
  background-color: #f7f7f7;
  padding:12.5px 16.67px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.form-label p {
  width: 100%;
  font-size: 16.64px;
  font-weight: bold;
  text-align: left;
  color: #464849;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label p span {
  font-size: 13.33px;
  color: #ffffff;
  border-radius: 4px;
  padding: 4.17px 8.05px;
  margin-left: 16.67px;
  white-space: nowrap;
}

.form-label p span.required-true {
  background-color: #ff0000;
}

.form-label p span.required-false {
  background-color: #0089ff;
}

.form-content {
  flex: 1;
  padding: 16.67px;
  display: flex;
  align-items: center;
}

.form-content > span {
  width: 100%;
}

.form-content input[type="text"],.form-content input[type="email"], .form-content input[type="url"], textarea {
  width: 100%;
  padding:  4.8px 16.67px;
  font-size: 16.64px;
  box-sizing: border-box;
}

.form-content select {
  width: 50%;
  padding:  4.8px 16.67px;
  font-size: 16.64px;
  box-sizing: border-box;
}

.form-content .wpcf7-list-item {
  margin-right: 25px;
  font-size: 16.64px;
  font-weight: 500;
  color: #464849;
}

.form-content input[type="checkbox"] {
  display: none;
}

.form-content input[type="checkbox"] + span {
  margin-left: 28.8px;
  position: relative;
}

.form-content input[type="checkbox"] + span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -28.8px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: solid 1px #a3a3a3;
  border-radius: 50%;
}

.form-content input[type="checkbox"]:checked + span::after {
  background-color: #0093ff;
  border: none;
}

.form input[type="submit"] {
  display: none;
  margin: 25px auto 0;
  width: 310px;
  text-align: center;
  background-color: #d97b7b;
  color: #ffffff;
  line-height: 67.5px;
  box-shadow: 0 3.2px #a35a5a;
  border: none;
  -webkit-appearance: none;
  font-size: 16.64px;
  cursor: pointer;
}

.form .no-submit {
  display: block;
  margin: 25px auto 0;
  width: 310px;
  text-align: center;
  background-color: #d97b7b;
  color: #ffffff;
  line-height: 67.5px;
  box-shadow: 0 3.2px #a35a5a;
  border: none;
  -webkit-appearance: none;
  font-size: 16.64px;
  opacity: .7;
}

.form-consent {
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  margin-top: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: none;
  margin-right: 8.33px;
}

.form-consent span a {
  color: #0093ff;
}

/* 画像 */

.form-content.has-image {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

label.up_link {
  display: block;
  cursor: pointer;
  background: #e8e8e8;
  color: #fff;
  font-size: 13.33px;
  width: 216.7px;
  height: 136.7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a3a3a3;
}
.up_link::before{
  content: '';
  width: 20.91px;
  height: 14.58px;
  background-image: url('../img/common/photo.png');
  background-size: cover;
  margin-bottom: 8.48px;
}
label.up_link + img{
  width: 216.7px;
  height: 136.7px;
  object-fit: contain;
}
label.up_link input{
  display: none;
}
.img_form {
  position: relative;
  width: 216.7px;
  height: 136.7px;
  margin: 0 auto;
}

.img_form:nth-child(n+4) {
  margin-top: 20.84px;
}

a.del{
  text-decoration: none;
}
a.del::after{
  position: absolute;
  top: 5px;
  right: 5px;
  content: '';
  width: 16.64px;
  height: 16.64px;
  background-image: url('../img/common/delete.png');
  background-size: cover;
}


@media screen and (max-width:768px) {
  .form {
    margin-top: 4vw;
  }

  .form-block {
    display: block;
  }

  .form-label {
    padding: 4vw;
    width: 100%;
  }

  .form-content {
    padding: 4vw;
    width: 100%;
  }

  .howto-form-label p {
    font-size: 4.26666vw;
  }

  .form-label p {
    font-size: 4.266666vw;
  }

  .form-label p span {
    font-size: 3.733333vw;
    padding: 1.33333vw 2.66666vw ;
  }

  .form-content input[type="text"], .form-content input[type="email"], .form-content input[type="url"], textarea,.form-content select {
    width: 100%;
    font-size: 4.266666vw;
    padding: 2.666666vw;
  }

  .form-content .wpcf7-list-item {
    font-size: 4.266666vw;
    margin-left: 6vw;
  }

  .form-content input[type="checkbox"] + span::after {
    width: 4vw;
    height: 4vw;
    left: -6vw;
  }

  .img_form {
    width: 49%;
    height: 24vw;
  }

  label.up_link {
    width: 100%;
    height: 100%;
    font-size: 3.6vw;
  }

  .up_link::before {
    width: 4.8vw;
    height: 3.6vw;
  }

  a.del::after {
    width: 6vw;
    height: 6vw;
  }

  .form-consent {
    margin-top: 4vw;
    font-size: 3.73333vw;
  }

  .form-consent input[type="checkbox"] {
    width: 4.266666vw;
    height: 4.266666vw;
  }

  .form .no-submit, .form input[type="submit"] {
    margin-top: 4vw;
    width: 100%;
    line-height: 17.6vw;
    font-size: 4.8vw;
    box-shadow: 0 1.5vw #a35a5a;
  }
}

.screen-reader-response {
  display: none!important;
}

.wpcf7-response-output {
  margin-top: 20px;
  font-size: 16px;
  text-align: center;
}

.wpcf7-not-valid-tip {
  display: block;
  font-size: 14px;
  color: red;
}