@charset "utf-8";

/* お問い合わせフォーム専用スタイル
   common.css のレイアウト（l-main / l-inner / 右側固定ヘッダー）の上に乗せる */

.p-contact {
  padding: 40px 0 80px;
}
.p-contact_inner {
  max-width: 880px;
}
.p-contact_heading {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #6ba43a;
  color: #4a7a23;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
@media screen and (min-width: 768px) {
  .p-contact { padding: 80px 0 120px; }
  .p-contact_heading { font-size: 28px; }
}
.p-contact_lead {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.req {
  color: #d33;
  font-weight: bold;
  margin-left: 2px;
}

.cf_errorbox {
  border: 1px solid #d33;
  background: #fdf2f2;
  color: #a02020;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.7;
}
.cf_errorbox ul {
  margin: 6px 0 0 18px;
  list-style: disc;
}

/* Honeypot 非表示 */
.cf_hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf_form { margin: 0 0 24px; }

.cf_fields {
  margin: 0 0 32px;
  border-top: 1px solid #e0e0e0;
}
.cf_fields dt,
.cf_fields dd {
  padding: 16px 16px;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.7;
}
.cf_fields dt {
  font-weight: 700;
  background: #f7f7f1;
}
.cf_fields dd {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

/* PC：CSS Grid で dt と dd を同じ行に配置し、高さを自動で揃える */
@media screen and (min-width: 768px) {
  .cf_fields {
    display: grid;
    grid-template-columns: 220px 1fr;
  }
  .cf_fields dt {
    border-bottom: 1px solid #e0e0e0;
  }
}

.cf_fields input[type="text"],
.cf_fields input[type="email"],
.cf_fields input[type="tel"],
.cf_fields textarea {
  width: 100%;
  max-width: 480px;
  padding: 9px 11px;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
}
.cf_fields textarea {
  max-width: 100%;
  min-height: 200px;
  resize: vertical;
}
.cf_fields input:focus,
.cf_fields textarea:focus {
  outline: none;
  border-color: #6ba43a;
  box-shadow: 0 0 0 2px rgba(107, 164, 58, 0.2);
}

.cf_confirm dd { background: #fafaf5; }
.cf_pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.cf_privacy {
  font-size: 12px;
  color: #666;
  line-height: 1.7;
  margin: 0 0 20px;
  text-align: center;
}

.cf_note {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  padding: 14px 18px;
  background: #f7f7f1;
  border-left: 3px solid #6ba43a;
  margin: 20px 0;
}
.cf_note a { color: #4a7a23; text-decoration: underline; }

.cf_submit {
  text-align: center;
  margin: 32px 0 0;
}
.cf_submit_2col {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cf_btn {
  display: inline-block;
  min-width: 220px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: #888;
  color: #fff !important;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.cf_btn:hover { opacity: 0.85; }
.cf_btn_primary { background: #6ba43a; }
.cf_btn_back    { background: #999; }

@media screen and (max-width: 767px) {
  .cf_btn { min-width: 0; width: 100%; }
  .cf_submit_2col { flex-direction: column-reverse; }
}
