/* =============================================
   CONTACT SECTION
============================================= */
.contact-section {
  padding: 100px 0 150px;
  position: relative;
  overflow: hidden;
}

.contact-watermark {
  position: absolute;
  top: -60px;
  left: -100px;
  width: 480px;
  height: 480px;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.contact-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-header {
  margin-bottom: 56px;
}

.contact-heading {
  font-size: clamp(60px, 9.2vw, 120px);
  line-height: 0.8;
}

/* =============================================
   FORM INTRO
============================================= */
.contact-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 40px;
}

.contact-intro-lead {
  font-family: var(--font-body-ja);
  font-size: 20px;
  font-weight: 700;
  color: #2b2b2b;
  line-height: 1.6;
}

.contact-required-note {
  font-family: var(--font-body-en);
  font-size: 14px;
  color: #654097;
  white-space: nowrap;
}

/* =============================================
   FORM
============================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-body-ja);
  font-size: 16px;
  font-weight: 500;
  color: #2b2b2b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-required {
  font-family: var(--font-body-en);
  font-size: 14px;
  color: #654097;
  font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 14px 20px;
  font-family: var(--font-body-ja);
  font-size: 16px;
  font-weight: 500;
  color: #2b2b2b;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #aaa;
  font-weight: 400;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #6e348f;
}

.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: '▼';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #888;
  pointer-events: none;
}

.form-select { color: #aaa; }
.form-select.has-value { color: #2b2b2b; }

.form-textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.8;
}

/* File input */
.form-file-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

.form-file-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  background: #eee;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body-ja);
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.form-file-btn:hover { background: #ddd; }

.form-file-label {
  font-family: var(--font-body-ja);
  font-size: 14px;
  color: #aaa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.form-file-input { display: none; }

/* =============================================
   PRIVACY + SUBMIT
============================================= */
.contact-privacy {
  margin-top: 8px;
  font-family: var(--font-body-ja);
  font-size: 13px;
  font-weight: 700;
  color: #2b2b2b;
  line-height: 1.7;
}

.contact-privacy a {
  color: #654097;
  text-decoration: underline;
  transition: opacity var(--transition);
}
.contact-privacy a:hover { opacity: 0.7; }

.contact-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 16px 48px;
  background: var(--grad);
  border: none;
  border-radius: 100px;
  font-family: var(--font-body-ja);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity var(--transition);
}
.btn-contact-submit:hover { opacity: 0.85; }


/* =============================================
   CONTACT FORM 7 スタイル上書き
   CF7 が出力する独自クラスを既存デザインに合わせる
============================================= */

/* フォーム全体 */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 各 label をフィールドブロックとして扱う
   ※ flex を使うとテキストノード・abbr・入力欄がそれぞれ独立した
      flex item になり * が単独行になるため display:block を使用 */
.wpcf7-form label {
  display: block;
  font-family: var(--font-body-ja);
  font-size: 16px;
  font-weight: 500;
  color: #2b2b2b;
}

/* 必須マーク（abbr）— ラベルテキストと同じ行にインラインで並ぶ */
.wpcf7-form abbr[title="required"] {
  display: inline;
  font-family: var(--font-body-en);
  font-size: 14px;
  font-weight: 400;
  color: #654097;
  text-decoration: none;
  margin-left: 4px;
}

/* 入力欄ラッパー — ラベルテキストの下に block で配置 */
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-tel,
.wpcf7-form .wpcf7-number,
.wpcf7-form .wpcf7-url {
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 14px 20px;
  font-family: var(--font-body-ja);
  font-size: 16px;
  font-weight: 500;
  color: #2b2b2b;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.wpcf7-form .wpcf7-text::placeholder,
.wpcf7-form .wpcf7-email::placeholder,
.wpcf7-form .wpcf7-tel::placeholder {
  color: #aaa;
  font-weight: 400;
}

.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form .wpcf7-tel:focus {
  outline: none;
  border-color: #6e348f;
}

/* select */
.wpcf7-form .wpcf7-select {
  width: 100%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right 18px center;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 14px 44px 14px 20px;
  font-family: var(--font-body-ja);
  font-size: 16px;
  font-weight: 500;
  color: #2b2b2b;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.wpcf7-form .wpcf7-select:focus {
  outline: none;
  border-color: #6e348f;
}

/* textarea */
.wpcf7-form .wpcf7-textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 14px 20px;
  font-family: var(--font-body-ja);
  font-size: 16px;
  font-weight: 500;
  color: #2b2b2b;
  line-height: 1.8;
  min-height: 180px;
  resize: vertical;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.wpcf7-form .wpcf7-textarea::placeholder { color: #aaa; font-weight: 400; }
.wpcf7-form .wpcf7-textarea:focus { outline: none; border-color: #6e348f; }

/* file input */
.wpcf7-form .wpcf7-file {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-family: var(--font-body-ja);
  font-size: 14px;
  color: #2b2b2b;
  cursor: pointer;
}

/* バリデーションエラーメッセージ */
.wpcf7-not-valid-tip {
  font-family: var(--font-body-ja);
  font-size: 12px;
  color: #c0392b;
  margin-top: 4px;
  display: block;
}

.wpcf7-form .wpcf7-not-valid {
  border-color: #c0392b !important;
}

/* 送信後レスポンスメッセージ */
.wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--font-body-ja);
  font-size: 14px;
  border: 1px solid #ccc;
}

.wpcf7-form.sent .wpcf7-response-output {
  border-color: #27ae60;
  color: #27ae60;
  background: #f0fdf4;
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
  border-color: #c0392b;
  color: #c0392b;
  background: #fff5f5;
}

/* 送信ボタン */
.wpcf7-form .wpcf7-submit {
  display: block;
  margin: 40px auto 0;
  min-width: 280px;
  padding: 16px 48px;
  background: var(--grad);
  border: none;
  border-radius: 100px;
  font-family: var(--font-body-ja);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity var(--transition);
}

.wpcf7-form .wpcf7-submit:hover { opacity: 0.85; }

/* 送信中スピナー非表示（デフォルトのアニメーション制御） */
.wpcf7-spinner {
  display: none !important;
}


/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .contact-section { padding: 80px 0 100px; }
}

@media (max-width: 768px) {
  .contact-section { padding: 60px 0 80px; }
  .contact-intro-lead { font-size: 17px; }
  .form-input,
  .form-select,
  .form-textarea { font-size: 16px; padding: 12px 16px; }
  .btn-contact-submit { min-width: 220px; font-size: 17px; padding: 14px 32px; }

  /* CF7 レスポンシブ */
  .wpcf7-form .wpcf7-text,
  .wpcf7-form .wpcf7-email,
  .wpcf7-form .wpcf7-tel,
  .wpcf7-form .wpcf7-select,
  .wpcf7-form .wpcf7-textarea { font-size: 16px; padding: 12px 16px; }
  .wpcf7-form .wpcf7-submit { min-width: 220px; font-size: 17px; padding: 14px 32px; }
}
