/* =============================================
   pages/contact.css — お問い合わせ
   ============================================= */


/* -------------------------------------------
   1. ページ説明
   ------------------------------------------- */
.page-description {
  text-align: center;
  font-size: 18px;
  color: var(--c-text-muted);
  line-height: 1.85;
  margin: 32px auto 48px;
  max-width: 880px;
  padding: 0 20px;
}


/* -------------------------------------------
   2. お問い合わせフォーム白カードラッパー
   ------------------------------------------- */
.contact-form-wrapper {
  background: #fff;
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto 48px;
  border: 1px solid var(--c-line-subtle);
}

.contact-form-title,
.wp-block-heading.contact-form-title,
h2.contact-form-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-brand-800);
  margin: 0 0 32px 0;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--c-brand-700);
}


/* -------------------------------------------
   3. CF7 のレイアウト調整（contact-form-wrapper内）
   ------------------------------------------- */
.contact-form-wrapper .wpcf7-form p {
  margin: 0 0 24px 0;
}

.contact-form-wrapper label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}

.contact-form-wrapper .wpcf7-form-control:not([type="checkbox"]):not([type="radio"]):not(.wpcf7-submit) {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: #fff;
  color: var(--c-text);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form-wrapper .wpcf7-form-control:not([type="checkbox"]):not([type="radio"]):not(.wpcf7-submit):focus {
  outline: none;
  border-color: var(--c-brand-700);
  box-shadow: 0 0 0 3px rgba(37, 84, 127, 0.1);
}

.contact-form-wrapper textarea.wpcf7-form-control {
  min-height: 160px;
  resize: vertical;
}

.contact-form-wrapper .wpcf7-not-valid-tip {
  color: var(--c-error);
  font-size: 13px;
  margin-top: 4px;
}

.contact-form-wrapper .wpcf7-checkbox,
.contact-form-wrapper .wpcf7-radio {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.contact-form-wrapper .wpcf7-list-item {
  margin: 0;
}
.contact-form-wrapper .wpcf7-list-item-label {
  font-size: 15px;
  color: var(--c-text);
  margin-left: 6px;
}


/* -------------------------------------------
   4. 送信ボタン
   ------------------------------------------- */
.contact-form-wrapper .wpcf7-submit {
  display: inline-block;
  background: var(--gr-primary);
  color: #fff;
  padding: 16px 56px;
  border: 0;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: var(--sh-btn);
}
.contact-form-wrapper .wpcf7-submit:hover {
  background: var(--gr-dark);
  box-shadow: var(--sh-btn-hover);
  transform: translateY(-1px);
}

.contact-form-wrapper p:last-child {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 0;
}


/* -------------------------------------------
   5. 通知メッセージ
   ------------------------------------------- */
.contact-form-wrapper .wpcf7-response-output {
  margin: 24px 0 0 0;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
}
.contact-form-wrapper .wpcf7 form.sent .wpcf7-response-output {
  background: #e8f5e9;
  border-color: #66bb6a;
  color: #2e7d32;
}
.contact-form-wrapper .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-wrapper .wpcf7 form.unaccepted .wpcf7-response-output {
  background: #ffebee;
  border-color: #ef5350;
  color: #c62828;
}


/* -------------------------------------------
   6. レスポンシブ
   ------------------------------------------- */
@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 32px 24px;
  }
  .contact-form-title,
  .wp-block-heading.contact-form-title,
  h2.contact-form-title {
    font-size: 22px;
    margin-bottom: 24px;
  }
}
