@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 {
  margin: 0 auto;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.wpcf7-form label {
  display: block;
  margin: 0.3em 0;
}

.wpcf7-form .form-midashi {
  font-size: 1.1rem;
}

.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: 3.5em;
    padding: 0.8em 6em;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #fff;
    background-color: #8C8C8C;
    border-color: #8C8C8C;
    display: block;
    margin-right: auto !important;
    margin-left: auto !important;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #535353;
}

/* ラジオボタン・チェックボックス */
.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-list-item {
    display: inline-block;
    margin: 0;
}

span.wpcf7-form-control.wpcf7-checkbox.wpcf7-validates-as-required {
    display: flex;
    flex-direction: column;
}

span.wpcf7-form-control.wpcf7-radio {
    display: flex;
    flex-direction: column;
}

.form-check {
    padding-left: 0;
}

/* エラーメッセージ */
.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%;
  }
}


p {
    margin-bottom: 0;
}
