@charset "UTF-8";

/* 全体 */
body#contact {
  color: #323232;
}

main h2 {
  margin-bottom: 3vw;
}

.c.caution_txt {
  margin-bottom: 3vw;
  text-align: justify !important;
}

.caution_txt br {
  display: none;
}
.thanks .caution_txt br {
  display: block;
}
.txt_1 {
  margin-bottom: 0 !important;
}
.txt_2 {
  margin-top: 0;
}

h3 {
  color: #fff;
  background-color: #009999;
  border-radius: 8px;
  padding-left: 2vw;
}

.required {
  display: inline-block;
  background: #e18d77;
  color: #fff;
  border-radius: 8px;
  width: 4em;
  text-align: center;
  margin-left: 1em;
  font-weight: 100;
  line-height: 1.6rem;
}

/* テーブル型フォーム */
.ta1 th {
  width: 100%;
  display: block;
  text-align: left;
  color: #323232;
  font-weight: 500;
}

.ta1 td {
  width: 100%;
  display: block;
  margin-bottom: 1em;
}

.ws {
  width: 100%;
}

.wl {
  width: 100%;
}

/* サブミットボタン */
.btn1 input[type="submit"] {
  text-shadow: none;
  display: block;
  text-decoration: none;
  background: #009999;
  color: #fff;
  font-size: 1.4rem;
  padding: 0.5rem 2rem;
  border-radius: 100px;
  text-align: center;
  width: 40%;
  min-width: 300px;
  margin: 0 auto;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Zen Maru Gothic", "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", "HGS明朝E",
    "ＭＳ Ｐ明朝", "MS PMincho", serif;
}

.btn1 input[type="submit"]:hover {
  opacity: 1;
  transform: scale(1.05);
  background: var(--primary-inverse-color);
  color: var(--primary-color);
}

/* フォーム内リンク */
body#contact section p a {
  color: #009999;
}

/* 注意書き */
.caution_txt_bottom {
  margin-top: 3vw;
}

/* メールフォームプロ 要素初期化 */
.mfp_element_text,
.mfp_element_number,
.mfp_element_select-one,
.mfp_element_email,
.mfp_element_tel,
.mfp_element_textarea,
.mfp_element_date,
.mfp_element_password {
  box-shadow: none;
}

/* メールフォームプロ チェックボックス未選択の見た目を無効化 */
form#mailformpro label.mfp_not_checked {
  border: none;
}

/* ▼ 追加：flex配置（姓＋名など） */
.mfp_rows {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.mfp_col5,
.mfp_col10 {
  flex: 1 1 100%;
  width: 100%;
}

/* テキストエリアの高さ調整 */
textarea {
  min-height: 200px;
  line-height: 1.6;
}

/* 上書き用のCSS：style.css または contact.css の末尾に追記 */

input[type="text"],
input[type="email"],
textarea {
  width: 100% !important; /* 幅を調整 */
  background-color: #fff !important; /* 背景色を白に強制 */
}

@media (min-width: 600px) {
  .mfp_col5 {
    flex: 1 1 calc(50% - 1rem);
  }
  .mfp_col10 {
    flex: 1 1 100%;
  }
}

/* チェックボックス行に余白 */
form#mailformpro input[type="checkbox"] {
  margin-right: 0.5em;
}

/* 名前・ふりがな・メール用：PCでは幅制限 */
@media screen and (min-width: 768px) {
  .ta1 .mfp_rows,
  .ta1 input[type="email"],
  .ta1 input[type="text"]:not(.ws):not(.wl) {
    max-width: 500px;
  }

  .ta1 td > input[type="email"],
  .ta1 td > input[type="text"] {
    max-width: 500px;
    width: 100%;
  }
  .c.caution_txt {
    text-align: center !important;
  }
  .caution_txt br {
    display: block;
  }
}
