/* -----------------------------------------
   全体レイアウト
----------------------------------------- */
.l-main-contact {
  max-width: 800px;
  width: 100%;
  margin: 80px auto 0;
}

/* CF7が吐く不要なbrを消す */
.wpcf7 br {
  display: none;
}

.p-contact-title {
  position: relative;
  padding-bottom: 32px;
  font-size: 24px;

  &::before {
    content: '';
    background: linear-gradient(to right, #90d37b, #ddf55f);
    width: 1.5em;
    height: 3px;
    border-radius: 9999px;
    position: absolute;
    bottom: 0;
    left: 0;
  }

}

.p-contact__lead {
  line-height: 1.8;
  margin: 32px 0;

  span {
    font-size: 14px;
    color: #8b8b8b;
  }
}

/* -----------------------------------------
   フォーム要素のスタイル
----------------------------------------- */
/* ラベル全体 */
.c-form-group {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #ccc;
}

.c-form-group-title {
  position: relative;
  font-size: 20px;
  color: var(--color-primary);
}

.c-form-row {
  display: block;
  margin-top: 24px;
}

.first-row {
  margin-top: 24px;
}

.c-form-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.c-form-right {
  margin-top: 10px;
}

.c-form-label {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: bold;
  font-size: 16px;
}

input[type="radio"] {
  margin: 0 4px 0 0;
}

.c-form-required {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 23px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 9999px;
  color: #fff;
  background-color: var(--color-primary);
}

.c-form-optional {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 23px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 9999px;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* 入力欄全体 */
.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-radio) {
  width: 100%;
  padding: 10px 16px;
  border-radius: 4px;
  background-color: #f9f9f9;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.wpcf7-form-control:focus {
  border-color: #375946 !important;
  box-shadow: 0 0 0 2px rgba(55, 89, 70, 0.1);
  outline: none;
  background-color: #fff;
}

.wpcf7-radio {
  display: flex;
  gap: 32px;
  font-weight: normal;
}

.wpcf7-list-item {
  margin: 0;
  display: inline-block;
}

textarea.wpcf7-textarea {
  height: 150px;
}

/* -----------------------------------------
   送信ボタン（アクセントカラーを使用）
----------------------------------------- */
.wpcf7-submit {
  display: block;
  width: 280px;
  margin: 40px auto 0;
  padding: 18px;
  background-color: #375946 !important;
  color: #fff !important;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpcf7-submit:hover {
  background-color: #fff !important;
  border: 1px solid #375946 !important;
  color: #375946 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* -----------------------------------------
   エラーメッセージ・完了メッセージ
----------------------------------------- */
.wpcf7-not-valid-tip {
  color: #d9534f;
  font-size: 0.8rem;
  font-weight: normal;
  margin-top: 5px;
}

.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 15px !important;
  border-radius: 4px !important;
  text-align: center;
  border: 2px solid #375946 !important;
}

@media screen and (max-width: 768px) {
  .l-main-contact {
    margin: 48px auto 0;
    padding: 0 16px;
  }
}

@media screen and (max-width: 450px) {
  .l-main-contact {
    margin: 48px auto 0;
  }

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

  .wpcf7-submit {
    width: 100%;
  }
}