@charset "UTF-8";

/* ============================================================
 * お問い合わせ（Contact Form 7）
 * ============================================================ */

/* ハニーポット（画面外に隠す。表示するとボット対策にならない） */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact_intro {
  text-align: center;
  margin-bottom: 48px;
  font-weight: 600;
  line-height: 1.9;
}

.contact_sec .wpcf7 {
  max-width: 850px;
  margin: 0 auto;
}

.contact_sec .wpcf7 form > p {
  margin: 0;
}

/* ===== フォームカード ===== */
.contact_card {
  background-color: var(--white);
  padding: 40px 48px;
  border: 4px solid var(--main);
  border-radius: 12px;
}

.contact_row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 14px 0;
}

.contact_row:first-child { padding-top: 0; }
.contact_row:last-child { padding-bottom: 0; }

.contact_label {
  flex-shrink: 0;
  width: 200px;
  padding-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
}

.contact_req {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0px 12px 2px;
  border-radius: 9999px;
  background-color: var(--red);
  color: var(--white);
  font-size: 0.75rem;
}

.contact_field {
  flex: 1;
  min-width: 0;
}

.contact_field input[type="text"],
.contact_field input[type="email"],
.contact_field input[type="tel"],
.contact_field textarea {
  width: 100%;
  padding: 11px 14px;
  background-color: #EFEFEF;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--black);
}

.contact_field input:focus,
.contact_field textarea:focus {
  outline: 2px solid var(--main);
  outline-offset: 1px;
}

.contact_field textarea {
  min-height: 220px;
  resize: vertical;
}

.contact_field .wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
}

.contact_field .wpcf7-list-item {
  margin: 0;
}

.contact_field .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}

.contact_field input[type="radio"] {
  /*accent-color: var(--main);*/
  width: 16px;
  height: 16px;
}

/* ===== カード下：プライバシー＋同意＋送信 ===== */
.contact_foot {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #E3E3E3;
  text-align: center;
}

.contact_policy {
  height: 180px;
  margin: 0 auto 20px;
  padding: 16px 20px;
  background-color: var(--white);
  border: 1px solid #D8D8D8;
  border-radius: 8px;
  overflow-y: auto;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.85;
}

.policy_title {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
}

.policy_lead {
  margin-bottom: 18px;
}

.policy_head {
  margin: 20px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #E3E3E3;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--main);
}

.policy_text {
  margin-bottom: 10px;
}

.policy_list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.policy_list li {
  position: relative;
  padding-left: 1.1em;
  margin-bottom: 4px;
}

.policy_list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.contact_agree {
  display: flex;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact_agree .wpcf7-list-item {
  margin: 0;
}

.contact_agree .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}

.contact_agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--main);
}

.contact_submit {
  position: relative;
  display: inline-block;
  margin-top: 24px;
}

.contact_submit .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: 100%;
  margin: 0 0 0 12px;
  transform: translateY(-50%);
}

.contact_btn {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding: 14px 90px 14px 100px;
  border: none;
  border-radius: 9999px;
  background-color: var(--black);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 16px;
  box-shadow: 0 5px 0 var(--main);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.contact_btn:hover {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--main);
}

.contact_submit::after {
  content: "\FF1E";
  position: absolute;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  color: var(--white);
  pointer-events: none;
  transition: transform 0.1s ease;
}

.contact_submit:hover::after {
  transform: translate(0, calc(-50% + 5px));
}

.wpcf7-spinner {
  margin: 0 0 0 10px;
}

.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
}

.wpcf7 .wpcf7-response-output {
  margin: 24px auto 0;
  border-radius: 6px;
}

/* ============================================================
 * レスポンシブ
 * ============================================================ */
@media screen and (max-width: 768px) {
  .contact_card {
    padding: 24px 20px;
  }

  .contact_row {
    flex-direction: column;
    gap: 8px;
  }

  .contact_label {
    width: auto;
    padding-top: 0;
  }
}
