/*
 * お問い合わせページ専用スタイル。
 * download ページと同じトーン（赤・FFF0EF）を流用しつつ、中央 1 カラムでまとめる。
 */

.contact-page {
  padding: 120px 2vw 80px;
  margin-top: 0;
}

.contact-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

.contact-head {
  text-align: center;
  margin-bottom: 2em;
  padding: 0;
}

.contact-head h1 {
  font-size: 32px;
  font-weight: 700;
  color: #E83428;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin: 0.6em 0;
}

.contact-head .contact-lead {
  font-size: 15px;
  color: #333;
  line-height: 1.9;
  margin: 0.8em 0 1.2em;
}

.contact-head .hr1 {
  border: 0;
  border-top: 3px solid #E83428;
  margin: 0;
}

.contact-head .hr2 {
  border: 0;
  border-top: 1px solid #E83428;
  margin: 4px 0;
}

.contact-form-area {
  background: #FFF0EF;
  border-radius: 10px;
  padding: 2rem 1.8rem;
}

/* ラベル（必須 / 任意 バッジ + 項目名） */
.contact-page .q-title {
  margin-top: 1em;
  margin-bottom: 0.3em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.contact-page .q-title .req,
.contact-page .q-title .opt {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.contact-page .q-title .req {
  background: #E83428;
}

.contact-page .q-title .opt {
  background: #888;
}

.contact-page .q-title .lbl {
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-weight: 700;
  color: #E83428;
  font-size: 15px;
}

/* 入力フィールド共通 */
.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page input[type="tel"],
.contact-page select,
.contact-page textarea {
  width: 100%;
  padding: 12px 16px;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  background: #fff;
  font-size: 14px;
  color: #333;
}

.contact-page textarea {
  min-height: 160px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.7;
}

/* select の矢印（download ページと同じトーン） */
.contact-page .select-container {
  position: relative;
}

.contact-page .select-container::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
  font-size: 16px;
  line-height: 1;
  border: 0;
  width: auto;
  height: auto;
}

.contact-page .select-container select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: none;
}

.contact-page .select-container select::-ms-expand {
  display: none;
}

/* 注意書き */
.contact-page .text-gray {
  color: #777;
  font-size: 12px;
  line-height: 1.7;
  margin: 1.4em 0 0.6em;
}

/* 送信ボタン */
.contact-page .submit {
  margin-top: 1.6em;
  text-align: center;
}

.contact-page input[type="submit"],
.contact-page .wpcf7-submit {
  background-color: #4caf50 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 1em 2.4em !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 3px 0 #3a883d !important;
  transition: all 0.2s !important;
  width: auto !important;
  max-width: 100% !important;
  display: inline-flex !important;
  justify-content: center !important;
}

.contact-page input[type="submit"]:hover,
.contact-page .wpcf7-submit:hover {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #3a883d !important;
}

/* PC / SP 切り替え */
.contact-page .display-mobile { display: none; }
.contact-page .display-pc     { display: inline; }

/* ---------- サンクスページ ---------- */
.contact-thanks-page .contact-thanks-content {
  margin: 1.5em auto;
  max-width: 640px;
  line-height: 1.8;
  color: #333;
}

.contact-thanks-page .contact-thanks-note {
  margin: 2em auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: #777;
}

.contact-actions {
  margin-top: 2.4em;
  text-align: center;
}

.contact-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0.9em 2em;
  font-size: 15px;
  font-weight: 700;
  color: #E83428 !important;
  background: #fff;
  border: 2px solid #E83428;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.contact-home-btn:hover {
  background: #E83428;
  color: #fff !important;
  text-decoration: none;
}

@media only screen and (max-width: 768px) {
  .contact-page {
    padding-top: 80px;
  }
  .contact-head h1 {
    font-size: 24px;
  }
  .contact-head .contact-lead {
    font-size: 14px;
  }
  .contact-form-area {
    padding: 1.5rem 1rem;
  }
  .contact-page .display-pc     { display: none; }
  .contact-page .display-mobile { display: inline; }
}
