.form-wrap {
  background: #ff9e00;
  padding: 20px 0;
}

.form-wrap .content {
  max-width: 800px;
  background: #fff;
  padding: 80px;
  margin: 120px auto;
}

@media screen and (max-width: 768px) {
  .form-wrap .content {
    padding: 20px;
    margin: 120px 10px 40px;
  }
}

.form-wrap .content h2 {
  text-align: center;
  color: #ff9800;
  font-size: 30px;
  font-weight: normal;
  margin: 0;
  margin-bottom: 8px;
  line-height: 150%;
}

.form-wrap .content p {
  text-align: center;
  line-height: 1.6;
  color: #455A64;
}

@media screen and (max-width: 768px) {
  .form-wrap .content p {
    font-size: 1.4rem;
    padding-bottom: 40px;
  }
}


/* =========================================================
   お問い合わせフォーム（Contact Form 7）
   既存の .form-wrap .content p 等に負けないよう .form-wrap .content .mf 配下で定義
   ========================================================= */

.form-wrap .content .mf {
  --mf-navy: #16264A;
  --mf-text: #1F2A3D;
  --mf-text-sub: #3A4458;
  --mf-muted: #5A6478;
  --mf-placeholder: #8A93A6;
  --mf-border: #CBD3E1;
  --mf-line: #E2E7EF;
  --mf-bg: #F4F6FA;
  --mf-accent: #D2600A;      /* 送信ボタン */
  --mf-required: #B85300;    /* 必須バッジ */
  --mf-optional-bg: #E6EAF1; /* 任意バッジ */
  --mf-error: #C62828;

  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mf-text);
  text-align: left;
}
.form-wrap .content .mf p {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  text-align: left;
}
.form-wrap .content .mf a { color: var(--mf-navy); text-decoration: underline; }
.form-wrap .content .mf a:hover { color: var(--mf-required); }

/* ---------- 項目 ---------- */
.form-wrap .content .mf .mf-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
}
.form-wrap .content .mf .mf-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--mf-navy);
}
.form-wrap .content .mf legend.mf-label { margin-bottom: 10px; }

.form-wrap .content .mf .mf-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.form-wrap .content .mf .mf-badge--required { background: var(--mf-required); color: #FFFFFF; }
.form-wrap .content .mf .mf-badge--optional { background: var(--mf-optional-bg); color: var(--mf-text-sub); }

.form-wrap .content .mf .mf-help {
  font-size: 13px;
  color: var(--mf-muted);
}

/* ---------- 入力欄 ---------- */
.form-wrap .content .mf .wpcf7-form-control-wrap { display: block; }

.form-wrap .content .mf .mf-input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1.5px solid var(--mf-border);
  border-radius: 8px;
  background: #FFFFFF;
  font: inherit;
  font-size: 16px; /* iOSでのズーム防止のため16px以上 */
  color: var(--mf-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-wrap .content .mf .mf-input::placeholder { color: var(--mf-placeholder); }
.form-wrap .content .mf .mf-input:focus {
  border-color: var(--mf-navy);
  box-shadow: 0 0 0 4px rgba(22, 38, 74, .12);
}
.form-wrap .content .mf .mf-input.wpcf7-not-valid { border-color: var(--mf-error); }
.form-wrap .content .mf .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mf-error);
}

/* テキストエリア */
.form-wrap .content .mf textarea.mf-input {
  height: 220px;
  padding: 16px 18px;
  line-height: 1.8;
  resize: vertical;
}
.form-wrap .content .mf .mf-counter {
  font-size: 13px;
  text-align: right;
  color: var(--mf-muted);
}
.form-wrap .content .mf .wpcf7-character-count.too-long { color: var(--mf-error); font-weight: 700; }

/* セレクト（矢印付き） */
.form-wrap .content .mf .mf-select {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.form-wrap .content .mf .mf-select::after {
  content: "";
  position: absolute;
  top: 28px; /* 入力欄の高さの半分（エラー表示が出ても矢印がずれないよう固定） */
  right: 20px;
  width: 8px;
  height: 8px;
  border-right: 2.5px solid var(--mf-navy);
  border-bottom: 2.5px solid var(--mf-navy);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.form-wrap .content .mf .mf-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
}
.form-wrap .content .mf .mf-select select:has(option[value=""]:checked) { color: var(--mf-muted); }

/* 姓・名 */
.form-wrap .content .mf .mf-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-wrap .content .mf .mf-split__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.form-wrap .content .mf .mf-split__item label {
  flex-shrink: 0;
  width: 32px;
  line-height: 56px;
  font-size: 14px;
  color: var(--mf-muted);
}
.form-wrap .content .mf .mf-split__item .wpcf7-form-control-wrap { flex: 1 1 auto; min-width: 0; }

/* ---------- 送信エリア ---------- */
.form-wrap .content .mf .mf-divider {
  height: 1px;
  margin: 8px 0 0;
  border: none;
  background: var(--mf-line);
}
.form-wrap .content .mf .mf-submit-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* 個人情報の説明文・同意文 */
.form-wrap .content .mf .mf-privacy {
  width: 100%;
  padding: 20px 24px;
  border-radius: 8px;
  background: var(--mf-bg);
  font-size: 13px;
  line-height: 1.85;
  color: var(--mf-text-sub);
}
.form-wrap .content .mf .mf-consent {
  width: 100%;
  font-size: 13px;
  line-height: 1.85;
  color: var(--mf-text-sub);
}
.form-wrap .content .mf .mf-consent a { font-weight: 700; }

/* 同意チェックボックス（任意） */
.form-wrap .content .mf .mf-agree { align-self: flex-start; }
.form-wrap .content .mf .mf-agree .wpcf7-list-item { display: block; margin: 0; }
.form-wrap .content .mf .mf-agree label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  cursor: pointer;
}
.form-wrap .content .mf .mf-agree input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--mf-navy);
}

/* 送信ボタン（CF7は input[type=submit] のため矢印は背景画像で表示） */
.form-wrap .content .mf .mf-submit-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-top: 8px;
}
.form-wrap .content .mf .mf-submit {
  display: block;
  width: 100%;
  height: 72px;
  padding: 0 34px 0 0;
  border: none;
  border-radius: 999px;
  background: var(--mf-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat calc(50% + 52px) center / 20px 20px;
  box-shadow: 0 8px 20px rgba(210, 96, 10, .28);
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #FFFFFF;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: filter .15s, transform .15s;
}
.form-wrap .content .mf .mf-submit:hover { filter: brightness(.92); }
.form-wrap .content .mf .mf-submit:active { transform: translateY(1px); }
.form-wrap .content .mf .mf-submit:focus-visible {
  outline: 3px solid var(--mf-navy);
  outline-offset: 3px;
}
.form-wrap .content .mf .mf-submit:disabled {
  background-color: #B4BCCB;
  box-shadow: none;
  cursor: not-allowed;
}
.form-wrap .content .mf .wpcf7-spinner {
  position: absolute;
  top: 50%;
  right: 24px;
  margin: -12px 0 0;
}

.form-wrap .content .mf .mf-note {
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  color: var(--mf-muted);
}

/* 送信結果メッセージ */
.form-wrap .wpcf7 form .wpcf7-response-output {
  margin: 32px 0 0;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

/* reCAPTCHA v3 のバッジは非表示（フォーム下部に規定の文言を表示しているため） */
.grecaptcha-badge { visibility: hidden; }

/* ---------- スマートフォン ---------- */
@media screen and (max-width: 768px) {
  .form-wrap .content .mf { gap: 28px; margin-top: 0; }
  .form-wrap .content .mf .mf-label { font-size: 15px; }

  .form-wrap .content .mf .mf-input { height: 52px; padding: 0 14px; }
  .form-wrap .content .mf textarea.mf-input { height: 180px; padding: 14px; }
  .form-wrap .content .mf .mf-select { max-width: none; }
  .form-wrap .content .mf .mf-select::after { top: 26px; }

  .form-wrap .content .mf .mf-split { gap: 10px; }
  .form-wrap .content .mf .mf-split__item { gap: 8px; }
  .form-wrap .content .mf .mf-split__item label { width: auto; line-height: 52px; font-size: 13px; }

  .form-wrap .content .mf .mf-agree label { font-size: 14px; }
  .form-wrap .content .mf .mf-privacy { padding: 16px; }
  .form-wrap .content .mf .mf-submit {
    height: 64px;
    font-size: 18px;
    background-position: calc(50% + 47px) center;
  }
}



/* 送信完了メッセージ（送信成功後にフォームと入れ替えて表示） */
.form-wrap .content .mf-thanks { margin-top: 24px; outline: none; }
.form-wrap .content .mf-thanks[hidden] { display: none; }
.form-wrap .content .mf-thanks p {
  padding-bottom: 0;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
  color: #1F2A3D;
}
.form-wrap .content .mf-thanks p + p { margin-top: 8px; }
@media screen and (max-width: 768px) {
  .form-wrap .content .mf-thanks { margin-top: 0; }
}

/*# sourceMappingURL=contact.css.map */
