div#wpcf7cpcnf {
  right: 0;
  left: 0;
  margin: 0;
  padding-right: 12px;
  padding-left: 12px;
  width: 100%;
  position: static;

  @media (min-width: 905px) {
    margin: 0 auto 20px;
    max-width: 905px;
    padding-right: 32px;
    padding-left: 32px;
  }

  @media (min-width: 1240px) {
    max-width: 1240px;
    margin: 0 auto 32px;
    padding-right: calc(188px - (var(--vw) * 100 - 1240px) / 2);
    padding-left: calc(188px - (var(--vw) * 100 - 1240px) / 2);
  }

  @media (min-width: 1440px) {
    max-width: 1440px;
    padding-right: 0;
    padding-left: 0;
  }
}

div#wpcf7cpcnf table {
  width: calc(100% - 24px);
  margin-left: 12px;
  margin-right: 12px;

  @media (min-width: 1240px) {
    margin-left: 16px;
    margin-right: 16px;
    width: calc(100% - 32px);
  }
}

div#wpcf7cpcnf table tr {
  border-bottom: 1px solid rgb(229, 231, 235);
  align-items: center;
  display: block;
  margin-bottom: 8px;
  padding: 8px 0;
  width: 100%;
  box-sizing: border-box;

  @media (min-width: 1240px) {
    display: flex;
    padding: 16px 0;
    margin: 0;
  }
}

div#wpcf7cpcnf table tr th {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;

  @media (min-width: 1240px) {
    flex-basis: auto;
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

div#wpcf7cpcnf table tr th p {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
  color: rgb(62 74 82 / var(--tw-text-opacity));

  @media (min-width: 1240px) {
    font-size: 20px;
    line-height: 2;
    font-weight: 700;
  }
}

div#wpcf7cpcnf table tr td {
  width: 100%;
  flex-shrink: 0;
  padding-bottom: 4px;
  margin-bottom: 8px;

  @media (min-width: 1240px) {
    flex-basis: 74.4%;
    margin-left: 12px;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

div#wpcf7cpcnf table tr td p {
  width: 100%;
}

div#wpcf7cpcnf div.wpcf7cp-btns {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 0 12px;
  flex-direction: column;

  @media (min-width: 600px) {
    flex-direction: row;
  }

  @media (min-width: 1240px) {
    margin-top: 96px;
    padding: 0;
  }
}

div#wpcf7cpcnf div.wpcf7cp-btns button.wpcf7-form-control {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgb(62 74 82 / var(--tw-text-opacity));
  padding: 0 4px;
  background: rgb(255, 211, 73);
  border: 2px solid rgb(255, 211, 73);
  position: relative;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  font-size: 16px;
  margin: 0;
  flex: 0.5;
  border-radius: 9999px;
  min-height: 60px;
  max-width: 100%;
  width: 100%;

  @media (min-width: 600px) {
    max-width: 50%;
  }

  @media (min-width: 1240px) {
    font-weight: 600;
    max-width: 224px;
  }
}

div#wpcf7cpcnf div.wpcf7cp-btns button.wpcf7-form-control:hover {
  @media (min-width: 1240px) {
    background: white;
  }
}

/* formの高さをつぶす */
form.wpcf7cp-form-hide {
  position: absolute;
}


.wpcf7 form .invalid-submit {
  pointer-events: none;
  opacity: 0.5;
}
