@charset "utf-8";

/* Contact Form 7 共通リセット＋ベーススタイル（53サイト共通） */

/* ===== Reset CSS for form elements ===== */
input,
textarea,
select,
button {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  box-sizing: border-box;
}

/* ===== Base Style ===== */
.wpcf7 {
  /* max-width: 960px; */
  margin: 0 auto;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.wpcf7-form label {
  display: block;
  /* margin: 1em 0 0.3em; */
  margin: 0;
  /* font-weight: bold; */
}

.wpcf7-form .form-midashi {
  font-size: 1.1rem;
  font-weight: bold;
}

.red {
  color: #e60033;
  font-weight: bold;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.6em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  /* font-size: 1rem; */
}

.wpcf7 textarea {
  height: 150px;
  resize: vertical;
}

.wpcf7 input[type="submit"],
.wpcf7 button {
  margin-top: 1.5em;
  padding: 0.8em 2em;
  background-color: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  display: block;
  margin: 1.5em auto;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #0066aa;
}

/* ラジオボタン・チェックボックス */
.wpcf7 input[type="radio"],
.wpcf7 input[type="checkbox"] {
  margin-right: 0.5em;
  transform: scale(1.2);
}

.wpcf7 .wpcf7-list-item-label {
  margin-right: 1em;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
  color: #e60033;
  font-size: 0.9rem;
  margin-top: 0.2em;
}

.wpcf7-response-output {
  margin-top: 1em;
  padding: 1em;
  border: 1px solid #ccc;
  background-color: #f7f7f7;
  font-size: 0.95rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .wpcf7 {
    font-size: 15px;
  }

  .wpcf7 input[type="submit"],
  .wpcf7 button {
    width: 100%;
  }
}

.formFrame p {
  margin-bottom: 0;
}


.formFrame.last {
  border-bottom: 0.5px solid #aaa;
}

.wpcf7-list-item {
  display: inline-block;
  margin: 0 0 0 0.25em;
  width: 100%;
}

#form-table tr td p {
  margin-bottom: 0;
}

.form-items span.wpcf7-form-control {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  /* column-gap: 20px; */
  height: 14rem;
  justify-content: flex-start;
}

.form-items span.wpcf7-list-item {
  width: 48%;
}

@media screen and (max-width: 1439.98px) {
  .form-items span.wpcf7-form-control {
    flex-direction: column;
    height: 100%;
  }

  .form-items span.wpcf7-list-item {
    width: 100%;
  }
}



.formFrame {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  background-color: #f2f2f2;
  border: none;
  border-left: 0.5px solid #aaa;
  border-right: 0.5px solid #aaa;
  border-top: 0.5px solid #aaa;
}

.formFrame .form-naiyou {
  width: 76%;
  padding: 10px 10px;
  background-color: #ffffff;
  border: none;
}

.formFrame .form-naiyou label {
  font-size: 18px;
}

.formFrame .form-naiyou input {
  font-size: 18px;
}

.formFrame .form-naiyou textarea {
  width: 100%;
}

.formFrame .form-koumoku {
  width: 23%;
  font-size: 16px;
  padding: 10px 10px;
  font-weight: bold;
  text-align: center;
}

.formFrame:last-child {
  border-bottom: 0.5px solid #aaa;
}

/* smart-phone */
@media screen and (max-width:767.98px) {
  .formFrame .form-naiyou {
    width: 100%;
    padding: 10px 10px;
    border-top: none;
    border-bottom: none;
  }

  .formFrame .form-koumoku {
    width: 100%;
    padding: 10px 10px;
    border-bottom: none;
  }

  .formFrame .form-naiyou label {
    font-size: 16px;
  }

  .formFrame .form-naiyou input {
    font-size: 16px;
  }
}

/* tablet */
@media screen and (min-width:768px) and (max-width:1199.98px) {
  .formFrame {
    border-left: 0.5px solid #aaa;
    border-right: 0.5px solid #aaa;
    border-top: 0.5px solid #aaa;
  }

  .formFrame .form-naiyou {
    width: 70%;
    padding: 10px 10px;
    border: none;
  }

  .formFrame .form-koumoku {
    width: 30%;
    padding: 10px 10px;
    border: none;
  }

}