/* === /contact only | CF7 minimal underline (edge-stable, vars-free) === */

/* レイアウト */
.wpcf7 form{
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  color: #111;
}
.wpcf7 form p{ margin:0; }

/* ラベル */
.wpcf7 form label{
  display:block;
  font-size: 0.94rem;
  letter-spacing:.02em;
  color: #6b7280;
  margin: 0 0 8px;
}

/* テキスト系（下線のみ・端のはね対策：背景1pxライン） */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="search"],
.wpcf7 input[type="password"]{
  width:100%;
  border: none;
  background:
    linear-gradient(#111, #111) bottom left / 100% 1.6px no-repeat,
    linear-gradient(transparent, transparent);
  background-color: transparent;
  padding: 12px 0 10px;
  font-size: 1.05rem;
  line-height:1.6;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  transition: background-size .18s ease, color .2s;
}

/* フォーカスで線を少しだけ太く */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="search"]:focus,
.wpcf7 input[type="password"]:focus{
  background-size: 100% 2px;
}

/* プレースホルダー */
.wpcf7 ::placeholder{ color: #6b7280; opacity:.6; }

/* セレクト（枠あり・角丸控えめ） */
.wpcf7 select{
  width:100%;
  border: 1.6px solid #111;
  border-radius: 6px;
  padding: 12px 40px 12px 14px;
  background: #fff no-repeat right 12px center/12px 12px;
  -webkit-appearance: none; appearance: none;
  font-size: 1.05rem;
  line-height:1.4;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

/* テキストエリア（囲み） */
.wpcf7 textarea{
  width:100%;
  min-height: 200px;
  border: 1.6px solid #111;
  border-radius: 8px;
  padding: 16px 18px;
  resize: vertical;
  font-size: 1.05rem;
  line-height:1.8;
  background: #fff;
}

/* 送信ボタン */
.wpcf7 input[type="submit"]{
  display:inline-block;
  width:auto;
  border: 1.6px solid #111;
  background: #111;
  color:#fff;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: .98rem;
  letter-spacing:.06em;
  cursor:pointer;
  transition: color .2s, background-color .2s, border-color .2s, transform .02s;
}
.wpcf7 input[type="submit"]:hover{
  background: transparent; color: #111;
}
.wpcf7 input[type="submit"]:active{ transform: translateY(1px); }

/* メッセージ */
.wpcf7-not-valid-tip{
  color: #c62828;
  font-size: .86rem;
  margin-top: 6px;
}
.wpcf7-response-output{
  border: 1.6px solid #111; 
  border-radius: 6px;
  padding: 12px 16px;
  font-size: .95rem;
  margin: 0;
}
.wpcf7 form.invalid .wpcf7-response-output{
  border-color: #c62828; color: #c62828;
}
.wpcf7 form.sent .wpcf7-response-output{
  border-color: #2e7d32; color: #2e7d32;
}

/* 下余白 */
.wpcf7{ padding-bottom: 36px; }

/* 代表的な送信ボタンを一括指定 */
input[type="submit"],
button[type="submit"],
/* Contact Form 7 */
.wpcf7 .wpcf7-submit,
/* WP標準ボタン（Gutenberg） */
.wp-block-button .wp-block-button__link,
/* WPForms */
.wpforms-submit,
/* Gravity Forms */
.gform_wrapper .gform_button,
/* Ninja Forms */
.nf-form .submit-wrap input[type="button"],
.nf-form .submit-wrap input[type="submit"],
/* ACF / Frontend Admin */
.acf-form .acf-form-submit input[type="submit"],
.acf-button.button.button-primary,
/* Nectar Blocks（念のため） */
.nectar-blocks-form .nectar-form-submit,
.nectar-blocks-button .nectar-blocks-button__button {
  background: #1a5e3b !important;
  border-color: #1a5e3b !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 999px !important;  /* 不要なら削除 */
  padding: 0.85em 1.4em !important;
  line-height: 1.1 !important;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease !important;
  background-image: none !important; /* テーマのグラデ等を無効化 */
}
input.wpcf7-form-control.wpcf7-submit.has-spinner {
    width: 100%;
}

/* Hover / Active */
input[type="submit"]:hover,
button[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover,
.wp-block-button .wp-block-button__link:hover,
.wpforms-submit:hover,
.gform_wrapper .gform_button:hover,
.nf-form .submit-wrap input[type="button"]:hover,
.nf-form .submit-wrap input[type="submit"]:hover,
.acf-form .acf-form-submit input[type="submit"]:hover,
.acf-button.button.button-primary:hover,
.nectar-blocks-form .nectar-form-submit:hover,
.nectar-blocks-button .nectar-blocks-button__button:hover {
  background: #154c31 !important;
  border-color: #154c31 !important;
}

/* Focus */
input[type="submit"]:focus,
button[type="submit"]:focus,
.wpcf7 .wpcf7-submit:focus,
.wp-block-button .wp-block-button__link:focus,
.wpforms-submit:focus,
.gform_wrapper .gform_button:focus,
.nf-form .submit-wrap input[type="button"]:focus,
.nf-form .submit-wrap input[type="submit"]:focus,
.acf-form .acf-form-submit input[type="submit"]:focus,
.acf-button.button.button-primary:focus,
.nectar-blocks-form .nectar-form-submit:focus,
.nectar-blocks-button .nectar-blocks-button__button:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(26, 94, 59, 0.18) !important;
}

/* Disabled / 送信中 */
.wpcf7 .wpcf7-submit[disabled],
.wpforms-submit[disabled],
.gform_wrapper .gform_button[disabled],
.nf-form .submit-wrap input[disabled],
.acf-form .acf-form-submit input[type="submit"][disabled] {
  opacity: .7 !important;
  cursor: not-allowed !important;
}

/* Gutenbergのアウトラインボタン（枠線のみのスタイル）への上書き（必要時） */
.wp-block-button.is-style-outline .wp-block-button__link {
  color: #1a5e3b !important;
  border-color: #1a5e3b !important;
  background: transparent !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  color: #ffffff !important;
  background: #154c31 !important;
  border-color: #154c31 !important;
}
