@charset "utf-8";

/*=================================================================
  mailform.css
  omeng.jp のフォームCSSを踏襲。CF7 互換クラス（wpcf7-*）で書く。
  カラーは 今泉造園土木 のパレットに合わせて調整：
    - 必須バッジ: #F04070 (ローズピンク)
    - 任意バッジ: 白抜き + 濃緑 border
    - 送信ボタン: #F04070 グラデ→hover 明転
    - フォーカス: 濃緑 outline
=================================================================*/

#box-form {
  width: 100%;
  height: auto;
}
#box-form dl {
  width: 100%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
  overflow: hidden;
  border-top: 1px dotted #cccccc;
}
#box-form dl dt {
  width: 30%;
  border-bottom: 1px dotted #cccccc;
  text-align: left;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 15px 0;
  overflow: visible;
  color: #231815;
}
#box-form dl dd {
  width: 70%;
  border-bottom: 1px dotted #cccccc;
  padding: 15px 0 15px 15px;
  text-align: left;
  font-size: 1.5rem;
}
#box-form dl dt.other { visibility: hidden; }
#box-form dl dd.other { border-top: none; }

/* --- 必須／任意 バッジ --- */
#box-form dl dt.required span,
#box-form dl dt.optional span {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  padding: 3px 10px 4px;
  border-radius: 3px;
  margin: 0 10px 0 0;
  transform: translateY(-1px);
  letter-spacing: 0.05em;
}
#box-form dl dt.required span {   /* 必須：ライトピンク塗り (実測 #FE8BA7) */
  background-color: #FE8BA7;
  border: 1px solid #FE8BA7;
  color: #ffffff;
}
#box-form dl dt.optional span {   /* 任意：白抜き＋深緑 (実測 #467C59) */
  background-color: transparent;
  color: #467C59;
  border: 1px solid #467C59;
}

/* --- エラーメッセージ --- */
#box-form dl dd .wpcf7-not-valid-tip,
#box-form dl dd span.error_blank,
#box-form dl dd span.error_format,
#box-form dl dd span.error_match {
  display: block;
  width: 100%;
  color: #E5254E;
  margin-top: 6px;
  font-size: 1.3rem;
}
/* 送信を押すまではエラーを非表示 */
#box-form.hide_error_message .wpcf7-not-valid-tip,
.wpcf7-form.hide_error_message #box-form .wpcf7-not-valid-tip { display: none; }

/* --- 入力欄 (omeng.jp サイズ準拠 / 背景色は実測 #F2F2F2) --- */
#box-form input[type="text"],
#box-form input[type="email"],
#box-form input[type="tel"],
#box-form input[type="date"],
#box-form select {
  max-width: 100%;
  height: 2em;
  padding: 2px 2%;
  border: 1px solid #eeeeee;
  border-radius: 3px;
  background-color: #F2F2F2;
  text-align: left;
  font-size: 16px;   /* iOS ズーム防止 */
  font-family: inherit;
  margin-top: 0;
  color: #231815;
  box-sizing: border-box;
}
#box-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 200px;
  padding: 2px 2%;
  resize: vertical;
  border: 1px solid #eeeeee;
  border-radius: 3px;
  background-color: #F2F2F2;
  text-align: left;
  font-size: 16px;
  font-family: inherit;
  color: #231815;
  box-sizing: border-box;
  line-height: 1.7;
}
/* --- 幅指定 (omeng.jp のパターン: id で幅を割り当て) --- */
#box-form input#name-f,
#box-form input#read-f,
#box-form input#company,
#box-form input#mail_address,
#box-form input#address {
  width: 100%;
}
/* 電話番号・郵便番号などは 49% で並べる用途もあるので短め */
#box-form input#tel-f,
#box-form input#postal {
  width: 49%;
}
#box-form input[type="text"]:focus,
#box-form input[type="email"]:focus,
#box-form input[type="tel"]:focus,
#box-form textarea:focus,
#box-form select:focus {
  border: 1px solid #1C5E33;
  outline: 2px solid rgba(28, 94, 51, 0.15);
  background: #ffffff;
}
#box-form input::placeholder,
#box-form textarea::placeholder {
  text-align: left;
  color: #b5b5b0;
}

/* --- チェックボックス／ラジオ --- */
#box-form input[type="radio"],
#box-form input[type="checkbox"] {
  margin: 0 0.5em 0 0;
  transform: translateY(1px);
}
#box-form ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
#box-form ul li {
  margin: 8px 20px 0 0;
}
#box-form ul li label { cursor: pointer; }
.wpcf7-list-item { display: inline-block !important; margin: 0 !important; }
.wpcf7-list-item-label { margin-left: 4px; }

/* --- 郵便番号検索リンク (omeng.jp サイズ / 実測: 紺塗り #1D2976 + 白文字) --- */
#box-form .btn-zip {
  display: inline-block;
  padding: 0 15px 1px;
  vertical-align: top;
  line-height: 2em;
  background: #1D2976;
  border: 1px solid #1D2976;
  border-radius: 3px;
  color: #ffffff;
  font-family: inherit;
  text-decoration: none;
  position: relative;
  margin-left: 10px;
  transition: opacity 0.3s ease;
}
#box-form .btn-zip:hover { opacity: 0.85; }

/* CF7 が出力する郵便番号のラッパーを含め、検索ボタンを常に横並びにする */
#box-form .zip-row {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
}
/* CF7 がテンプレートの改行から出力する <br> は flex の gap を消費するため除外する */
#box-form .zip-row > br {
  display: none;
}
#box-form .zip-row .wpcf7-form-control-wrap {
  flex: 0 1 49%;
  min-width: 0;
  margin-left: 0;
}
#box-form .zip-row input#postal {
  width: 100%;
}
#box-form .zip-row .btn-zip {
  flex: 0 0 auto;
  margin-left: 0;
}

/* --- プライバシー同意ボックス (omeng.jp サイズ準拠) --- */
#box-form .text-privacy {
  font-size: 1.35rem;
  line-height: 1.9;
  color: #231815;
  margin-bottom: 10px;
}
#box-form .link-privacy {
  text-decoration: underline !important;
  color: #FE8BA7;
  margin: 0 5px;
}
#box-form .check-privacy {
  display: inline-block;
  white-space: nowrap;
  padding: 2px 2%;
  border-radius: 3px;
  background: #F5F5F0;   /* omeng #fafafa を imaizumi の淡色に */
  margin-top: 10px;
  font-size: 1.4rem;
  color: #231815;
}

/*=================================================================
  ラジオボタン (お問い合わせ種別)
=================================================================*/
#box-form .wpcf7-radio { display: block; }
#box-form .wpcf7-radio .wpcf7-list-item {
  display: block !important;
  margin: 0 0 8px !important;
}
#box-form .wpcf7-radio .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1.4rem;
  font-family: inherit;
  color: #231815;
}
#box-form .wpcf7-radio .wpcf7-list-item input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #FE8BA7;
  margin: 0;
}
#box-form .radio-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#box-form .radio-list li {
  margin: 0;
  display: block;
}
#box-form .radio-list label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1.4rem;
  color: #231815;
}
#box-form .radio-list input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #FE8BA7;   /* チェック色 */
  margin: 0;
}

/* --- 送信ボタン (omeng.jp サイズ準拠 245×65 / カラーは imaizumi 緑) --- */
#box-form p#form_submit {
  width: 100%;
  margin: 0 auto;
  padding: 15px 0;
  text-align: center;
}
#box-form .input-wrap {
  display: block;
  position: relative;
  width: 245px;
  height: 65px;
  margin: 30px auto 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
#box-form input[type="button"],
#box-form input[type="submit"],
#box-form .wpcf7-submit {
  display: block;
  position: relative;
  width: 245px;
  height: 65px;
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.1em;
  line-height: 63px;
  color: #ffffff;
  background-color: #39B54A;   /* 実測: 緑 #39B54A */
  cursor: pointer;
  border: none;
  border-radius: 32px;
  transition: 0.3s;
  font-family: inherit;
}
#box-form .input-wrap:hover input[type="submit"],
#box-form input[type="submit"]:hover,
#box-form .wpcf7-submit:hover {
  filter: brightness(115%);
}

/* --- CF7 応答メッセージ --- */
.wpcf7-response-output {
  margin: 20px auto 0;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  font-size: 1.4rem;
}
/* CF7が常時出力する空の応答領域は、送信前には表示しない */
.wpcf7-response-output[aria-hidden="true"]:empty {
  display: none;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #46b450;
  color: #46b450;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #F04070;
  color: #F04070;
}


/*=================================================================
  SP 対応（≤ 768px）
=================================================================*/
@media screen and (max-width: 768px) {

#box-form {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
#box-form dl {
  width: 100%;
  margin: 0 auto;
  border-top: none;
}
#box-form dl dt {
  width: 100%;
  border-bottom: none;
  padding: 15px 0 5px;
  text-align: left;
  font-size: 1.5rem;
}
#box-form dl dd {
  width: 100%;
  border-bottom: 1px dotted #cccccc;
  padding: 5px 0 15px;
  text-align: left;
  font-size: 1.5rem;
}
#box-form dl dt.required span,
#box-form dl dt.optional span {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px 4px;
}
#box-form dl dt,
#box-form dl dd,
#box-form .radio-list label,
#box-form .wpcf7-radio .wpcf7-list-item label,
#box-form .wpcf7-radio .wpcf7-list-item-label,
#box-form .text-privacy,
#box-form .check-privacy {
  font-size: 16px;
}
#box-form .btn-zip {
  font-size: 14px;
}
#box-form .text-privacy {
  font-size: 14px;
}
#box-form dl dd .wpcf7-not-valid-tip,
#box-form dl dd span.error_blank,
#box-form dl dd span.error_format,
#box-form dl dd span.error_match,
.wpcf7-response-output {
  font-size: 14px;
}
#box-form input[type="submit"],
#box-form .wpcf7-submit {
  font-size: 22px;
}
#box-form textarea {
  height: 180px;
}
/* SP は omeng.jp と同じサイズを維持 (245×65) */

}
