/* ===================================================
   お問い合わせページ CSS
   =================================================== */

/* Astraデフォルトのコンテンツ余白をリセット */
body.page-template-page-contact .site-content {
  padding: 0 !important;
}
body.page-template-page-contact .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}
body.page-template-page-contact .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* ページ全体 */
.contact-page-wrap {
  min-height: 60vh;
  background: #f8f8fc;
  padding: 56px 20px 80px;
}

/* コンテンツ幅 */
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
}

/* ページタイトル */
.contact-page-title {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a2e;
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.contact-page-subtitle {
  font-size: 14px;
  color: #888;
  text-align: center;
  margin: 0 0 40px;
}

/* フォームカード */
.contact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  padding: 40px 40px 44px;
}

/* 導入文 */
.contact-intro {
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.85;
  color: #444;
}
.contact-intro p {
  margin: 0 0 8px;
}
.contact-intro p:last-child {
  margin-bottom: 0;
}

/* 注意事項ボックス */
.contact-notes {
  background: #f0f4ff;
  border-left: 4px solid #5c6bc0;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-bottom: 36px;
}
.contact-notes ul {
  margin: 0;
  padding-left: 1.3em;
  list-style: disc;
}
.contact-notes ul li {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 5px;
}
.contact-notes ul li:last-child {
  margin-bottom: 0;
}

/* フィールドグループ */
.cf7-field-group {
  margin-bottom: 22px;
}
.cf7-field-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.cf7-field-group .required {
  color: #e53935;
  margin-left: 3px;
  font-size: 12px;
}

/* 入力フィールド共通 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  color: #333;
  background: #fafafa;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #5c6bc0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.12);
}

/* プレースホルダー */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: #bbb;
  font-size: 14px;
}

/* セレクトボックス（矢印） */
.wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #fafafa;
  padding-right: 38px;
  cursor: pointer;
  height: 48px;
}

/* テキストエリア */
.wpcf7-form textarea {
  height: 180px;
  resize: vertical;
  line-height: 1.75;
}

/* 送信ボタン */
.wpcf7-form input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 32px auto 0;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #5c6bc0 0%, #7986cb 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.06em;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(92, 107, 192, 0.35);
}
.wpcf7-form input[type="submit"]:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 107, 192, 0.4);
}
.wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
}

/* バリデーションエラー */
.wpcf7-not-valid-tip {
  font-size: 12px;
  color: #e53935;
  margin-top: 5px;
  display: block;
}
.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
  border-color: #e53935 !important;
  background: #fff5f5 !important;
}

/* 送信結果メッセージ */
.wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  border: none !important;
  text-align: center;
}
.wpcf7-mail-sent-ok {
  background: #e8f5e9 !important;
  color: #2e7d32 !important;
}
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked {
  background: #ffebee !important;
  color: #c62828 !important;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .contact-page-wrap {
    padding: 36px 16px 64px;
  }
  .contact-card {
    padding: 28px 20px 32px;
    border-radius: 12px;
  }
  .contact-page-title {
    font-size: 22px;
  }
  .wpcf7-form input[type="submit"] {
    max-width: 100%;
  }
}
