.mailform table {
  border: var(--tableborderwidth) solid var(--tablebordercolor);
  border-collapse: collapse;
}

.mailform td label {
  line-height: 1.5;
}

.mailform tr>* {
  border: var(--thtdborderwidth) solid var(--thtdbordercolor);
  font-size: var(--labelfontsize);
}

.mailform th {
  padding: 10px 5px 10px 20px;
  width: 20%;
  position: relative;
  background: var(--thbgcolor);
}

.mailform th span:not([class*=form7]) {
  position: absolute;
  background: red;
  color: white;
  top: 50%;
  right: 10px;
  margin-top: -11px;
  line-height: 1;
  padding: 3px 5px;
  font-size: 80%;
  font-weight: normal;
}

.mailform td {
  padding: 8px 16px;
  line-height: 1;
  background: var(--tdbgcolor);
}

.sec .mailform tr.response td {
  padding: 0;
}

.mailform input[type="text"],
.mailform input[type="email"] {
  width: 100%;
  font-size: var(--inputfieldfontsize);
  background: var(--textfieldbgcolor);
  appearance: none;
  border: 1px solid var(--thtdbordercolor);
  padding: 5px;
}

.mailform input[type="radio"],
.mailform input[type="checkbox"] {
  margin-right: 5px;
}

.mailform input.age {
  width: 4em;
}

.mailform textarea {
  width: 100%;
  font-size: var(--inputfieldfontsize);
  background: var(--textfieldbgcolor);
  appearance: none;
  border: 1px solid var(--thtdbordercolor);
  padding: 5px;
  height: 6em;
}

.mailform ul.att {
  font-size: 80%;
  text-align: left;
  margin-bottom: 15px;
  line-height: 1.5;
  color: #333;
  padding-left: 0;
}

.mailform ul.att li {
  list-style: none;
}

/*-------------------------------------*/
.mailform .order-check td {
  text-align: center;
  padding-bottom: 30px;
}

.mailform .order-check .clear {
  visibility: hidden;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mailform .order-submit,
.form-error .order-submit,
.mailform .order-finish,
.form-error .order-finish {
  text-align: center;
  /* margin-top: -30px; */
  position: relative;
  z-index: 11;
}

.mailform :is(input[type="image"], button) {
  appearance: none !important;
  border: none;
  border-radius: none;
  background: none;
  cursor: pointer;
}

.mailform :disabled {
  opacity: 1 !important;
}

.mailform :is(input[type="image"], button).disabled {
  pointer-events: none;
  filter: grayscale(1);
}

/* 送信するボタンV6 */
.mailform .order-check .clear {
  visibility: hidden;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mailform .order-submit,
.form-error .order-submit {
  text-align: center;
  /* margin-top: -30px; */
}


.form-error body>div {
  height: auto;
}

.form-error div.error {
  width: fit-content;
  min-width: 300px;
  margin: 30px auto 0;
  border: 3px solid black;
  background: white;
  padding: 30px 50px 40px;
}

.form-error div.error ul {
  padding-left: 40px !important;
}

/* 送信するボタンV6 */

.mailform .kakunin {
  text-align: center;
}



/*-------------------------------------*/
@media screen and (min-width: 501px) {

  .mailform table {
    width: var(--tablewidth);
    margin-left: auto;
    margin-right: auto;
  }

}


/*-------------------------------------*/



/*-------------------------------------*/
@media screen and (max-width: 500px) {

  .mailform table {
    margin-left: 15px;
    margin-right: 15px;
    display: block;
    background: white;
  }

  .mailform :is(tbody, tr, th, td) {
    display: block;
    width: unset !important;
    border: none !important;
    background: none !important;
  }

  .mailform tr {
    padding: 13px;
    border-bottom: 1px solid #666 !important;
  }

  .mailform tr:not(.order-check) :is(th, td) {
    padding: 0 !important;
  }

  .mailform tr.order-check td {
    padding: 16px 0 !important;
  }


}


/*-------------------------------------*/




































































.orderform {
  background: url(/wp-content/themes/custom/img/kt105.png) no-repeat top center / 100%;
  background-color: rgba(255, 255, 204, 1);
  padding: 12% 0 20px;
}

.orderform table {
  width: 82%;
  margin-left: auto;
  margin-right: auto;
  border: 3px solid black;
  border-collapse: collapse;
}

.orderform td label {
  line-height: 1.5;
}

.form-error body>div {
  height: auto;
}

.form-error div.error {
  width: fit-content;
  min-width: 300px;
  margin: 30px auto 0;
  border: 3px solid black;
  background: white;
  padding: 30px 50px 40px;
}

.form-error div.error ul {
  padding-left: 40px !important;
}

.orderform tr>* {
  background: white;
  border: 1px solid #ccc;
  color: black;
}

.orderform th {
  padding: 10px 5px 10px 20px;
  width: 175px;
  position: relative;
  font-size: 18px;
  background: #eee;
}

.orderform th span:not([class*=form7]) {
  position: absolute;
  background: red;
  color: white;
  top: 50%;
  right: 10px;
  margin-top: -11px;
  line-height: 1;
  padding: 3px 5px;
  font-size: 80%;
  font-weight: normal;
}

.orderform td {
  padding: 8px 16px;
  font-size: 18px;
  line-height: 1;
}

.sec .orderform tr:nth-child(1) td {
  padding: 0;
}

.orderform input[type="text"],
.orderform input[type="email"] {
  width: 100%;
  font-size: 20px;
  background: #eee;
  appearance: none;
  border: 1px solid #aaa;
  padding: 5px;
}

.orderform textarea {
  width: 100%;
  font-size: 20px;
  background: #eee;
  appearance: none;
  border: 1px solid #aaa;
  padding: 5px;
  height: 6em;
}

.orderform .order-address .row {
  align-items: center;
  border: none;
}

.orderform .order-address .row>*:nth-child(1) {
  flex: 0 0 auto;
  margin-right: 20px;
}

.orderform .order-address .row>*:nth-child(2) {
  flex: 1 1 auto;
}

.orderform .order-service label {
  white-space: nowrap;
  width: 40%;
}

.orderform .order-things label {
  white-space: nowrap;
  width: 25%;
}

.orderform ul.att {
  font-size: 80%;
  text-align: left;
  margin-bottom: 15px;
  line-height: 1.5;
  color: #333;
  padding-left: 0;
}

.orderform ul.att li {
  list-style: none;
}

.orderform .order-check td {
  text-align: center;
  padding-bottom: 30px;
}

.orderform .order-check .clear {
  visibility: hidden;
  width: 0;
  height: 0;
  overflow: hidden;
}

.orderform .order-submit,
.form-error .order-submit,
.orderform .order-finish,
.form-error .order-finish {
  text-align: center;
  margin-top: -30px;
  position: relative;
  z-index: 11;
}

.orderform button {
  appearance: none !important;
  border: none;
  border-radius: none;
  background: none;
  cursor: pointer;
}

.orderform button.disabled {
  pointer-events: none;
  filter: grayscale(1);
}

/* 送信するボタンV6 */
.orderform .order-check .clear {
  visibility: hidden;
  width: 0;
  height: 0;
  overflow: hidden;
}

.orderform .order-submit,
.form-error .order-submit {
  text-align: center;
  margin-top: -30px;
}

.orderform button {
  appearance: none !important;
  border: none;
  border-radius: none;
  background: none;
  cursor: pointer;
}

.orderform button.disabled {
  pointer-events: none;
  filter: grayscale(1);
}

/* 送信するボタンV6 */




/*--------------contact7用------------------*/
.screen-reader-response {
  display: none;
}

.wpcf7-response-output {
  margin: 0 auto;
  width: max-content;
  font-size: 20px;
  font-weight: bold;
  padding: 20px;
}

.wpcf7-response-output::before {
  font-family: "Font Awesome 5 Free";
  content: "\f27a";
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.wpcf7-response-output:empty {
  display: none;
}

.wpcf7-form table {
  position: relative;
}

.wpcf7-form.init table tr.response {
  display: none;
}

.wpcf7-form.invalid table tr.response>* {
  background: pink;
}

.wpcf7-form table tr.response td .close {
  display: none;
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  font-size: 150%;
  color: red;
  text-align: center;
}

.wpcf7-form table tr.response td .close:hover {
  text-decoration: none;
}

.wpcf7-form.sent table tr.response {
  display: block;
  position: fixed;
  top: 2px;
  left: 2px;
  display: flex;
  flex-direction: column;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  justify-content: center;
  align-items: center;
  background-color: #00000099;
  z-index: 1000;
}

.wpcf7-form.sent table tr.response td {
  position: relative;
  padding-bottom: 60px;
  border-radius: 10px;
}

.wpcf7-form.sent table tr.response td .close {
  display: block;
}

.wpcf7-form.sent .order-submit {
  display: none;
}

.order-finish {
  display: none;
}

.wpcf7-form.sent .order-finish {
  display: block;
}

.wpcf7-not-valid-tip {
  display: block;
  color: red;
  font-size: 80%;
  font-weight: bold;
  margin-top: 5px;
}

/*--------------contact7用------------------*/




.form-error body {
  background: #f8b62b;
}

.grecaptcha-badge {
  bottom: 85px !important;
}

.table1 {
  width: 82%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
  border: 3px solid black;
  border-collapse: collapse;
}

.table1 td label {
  line-height: 1.5;
}

.table1 td {
  padding: 8px 16px;
  font-size: 18px;
  line-height: 1.5;
}

.table1 tr>* {
  background: white;
  border: 1px solid #ccc;
}

.table1 th {
  padding: 10px 5px 10px 20px;
  width: 175px;
  position: relative;
  font-size: 18px;
  background: #eee;
}

.box1 {
  width: 82%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
  border: 3px solid black;
  font-size: 18px;
  background-color: #fff;
  padding: 30px;
  line-height: 2;
}



.idx .orderform {
  background: url(img/kt105.png) no-repeat top center /100%;
  background-color: #f8b62b;
  padding: 12% 0 20px;
}

.sec .orderform {
  background: url(img/kt109.png) no-repeat top center /100%;
  background-color: #fff;
  padding: 15% 0 20px;
}

.orderform table {
  width: 82%;
  margin-left: auto;
  margin-right: auto;
  border: 3px solid black;
  border-collapse: collapse;
}

.form-error body>div {
  height: auto;

}

.form-error div.error {
  width: fit-content;
  min-width: 300px;
  margin: 30px auto 0;
  border: 3px solid black;
  background: white;
  padding: 30px 50px 40px;
}

.form-error div.error ul {
  padding-left: 40px !important;
}

.orderform tr>* {
  background: white;
  border: 1px solid #ccc;
  color: black;
}

.orderform th {
  padding: 10px 5px 10px 20px;
  width: 175px;
  position: relative;
  font-size: 18px;
  background: #eee;
}

.orderform td {
  padding: 8px 16px;
  font-size: 18px;
  line-height: 1;
}

.sec.plan .orderform tr:nth-child(1) td {
  padding: 0;
}

.orderform input[type=text] {
  width: 100%;
  font-size: 20px;
  background: #eee;
  appearance: none;
  border: 1px solid #aaa;
  padding: 5px;
}

.orderform textarea {
  width: 100%;
  font-size: 20px;
  background: #eee;
  appearance: none;
  border: 1px solid #aaa;
  padding: 5px;
  height: 6em;
}

.orderform .order-address .row {
  align-items: center;
  border: none;
}

.orderform .order-address .row>*:nth-child(1) {
  flex: 0 0 auto;
  margin-right: 20px;
}

.orderform .order-address .row>*:nth-child(2) {
  flex: 1 1 auto;
}

.orderform .order-service label {
  white-space: nowrap;
  width: 40%;
}

.orderform .order-things label {
  white-space: nowrap;
  width: 25%;
}

.orderform .order-check td {
  padding-bottom: 30px;
}

.orderform .order-submit,
.form-error .order-submit {
  text-align: center;
  margin-top: -30px;
}

.form-error body {
  background: #f8b62b;
}












/*--------------------------------*/


@media screen and (max-width: 500px) {


  .orderform {
    background: url(img/kt105.png) top center no-repeat /110% #FFC;
    padding: 15% 0 20px;
  }

  .orderform table {
    width: 95%;
  }

  .orderform table,
  .orderform tbody,
  .orderform tr,
  .orderform tr>* {
    display: block;
  }

  .orderform th,
  .orderform td {
    font-size: 100%;
  }

  .orderform th {
    width: auto;
  }

  .orderform th br {
    display: none;
  }

  .orderform .order-service label {
    white-space: nowrap;
    width: fit-content;
    margin-right: 15px;
  }

  .orderform .order-things label {
    white-space: nowrap;
    width: fit-content;
    margin-right: 15px;
  }

  .orderform .order-submit {
    text-align: center;
    margin-top: -20px;
  }

  .orderform .order-submit img {
    width: 220px;
  }





  .orderform {
    background: url(img/kt105.png) top center no-repeat /110% #f8b62b;
    padding: 15% 0 20px;
  }

  .orderform table {
    width: 95%;
  }

  .orderform table,
  .orderform th,
  .orderform td {
    display: block;
  }

  .orderform th,
  .orderform td {
    font-size: 100%;
  }

  .orderform th {
    width: auto;
  }

  .orderform th br {
    display: none;
  }

  .orderform .order-service label {
    white-space: nowrap;
    width: fit-content;
    margin-right: 15px;
  }

  .orderform .order-things label {
    white-space: nowrap;
    width: fit-content;
    margin-right: 15px;
  }

  .orderform .order-submit {
    text-align: center;
    margin-top: -20px;
  }

  .orderform .order-submit img {
    width: 220px;
  }



  .wpcf7-response-output {
    width: unset;
  }



}