/* お問い合わせ（専用） */

/* ベース */
body.entry {
  background-color: #F2F2F2;
}

.contact-container {
  width: 100%;
  max-width: 600px;
  margin: 60px auto;
}
.contact__title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.contact__desc {
  font-size: 14px;
  line-height: 1.9;
  color: #333;
  max-width: 600px;
  margin: 0 auto 20px;
  text-align: left;
}

.contact__faq {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 56px;
  line-height: 54px;
  margin: 0 auto 24px;
  border-radius: 28px;
  border: 2px solid #00AA83;
  background: #fff;
  color: #00AA83;
  font-weight: 600;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  text-align: center;
}

/* カード */
.contact-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.contact-card__row {
  margin-bottom: 18px;
 }

.contact-card__label {
  font-size: 13px;
  color: #333;
  margin-bottom: 8px;
}

.contact-card__label span {
  display: inline-block;
  margin-left: 8px;
  color: #fff;
  background: #00AA83;
  border-radius: 10px;
  font-size: 11px;
  padding: 1px 6px;
}

.contact-card__grid { 
  display: grid; gap: 12px; 
}
.contact-card__grid--2 { 
  grid-template-columns: 1fr 1fr;
}
.contact-card__grid--phone { 
  grid-template-columns: 1fr 1fr 1fr;
}

.contact-card__input,
.contact-card__textarea,
.contact-card__select {
  width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  font-size: 14px;
}

.contact-card__textarea {
  min-height: 160px;
  resize: vertical; 
}

.contact-card__error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 6px;
}

/* 同意 */
.contact-consent {
  margin: 18px 0 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.contact-consent__label {
  font-size: 14px;
}
.contact-consent__link {
  color: #0071BC;
  text-decoration: underline;
}

/* hearingと同様のカスタムチェックボックス */
.contact-checkbox-group { width: 100%; }
.contact-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 30px;
  font-size: 14px;
}
.contact-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}
.contact-checkbox-label span { position: relative; }
.contact-checkbox-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
}
.contact-checkbox-label input[type="checkbox"]:checked + span::before,
.contact-checkbox-label:has(input[type="checkbox"]:checked)::before {
  background-color: #00a381;
  border-color: #00a381;
}
.contact-checkbox-label:has(input[type="checkbox"]:checked)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-60%) rotate(45deg);
  width: 6px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

/* 送信ボタン */
.contact__submit {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: 56px;
  background: #FF6C00;
  border: 1px solid #FF6C00;
  border-radius: 28px;
  color: #fff;
  font-weight: 700;
}

/* SP */
@media screen and (max-width: 560px) {
  .contact main {
    margin: 7.143vw auto 14.286vw;
    padding: 0 3.571vw;
  }
  .contact__title {
    font-size: 5.357vw;
    margin-bottom: 2.857vw;
  }
  .contact__desc {
    font-size: 2.857vw;
    margin-bottom: 3.571vw;
  }
  .contact__faq {
    height: 10vw;
    border-radius: 5vw;
    line-height: 9vw;
  }
  .contact-card {
    padding: 4.286vw;
    border-radius: 1.786vw;
  }

  .contact-card__label {
    font-size: 2.5vw;
    margin-bottom: 1.42vw;
  }
  .contact-card__grid--2 {
    grid-template-columns: 1fr;
  }
  .contact-card__input,
  .contact-card__textarea,
  .contact-card__select {
    width: 100%;
    padding: 2.85vw;
    border-radius: 1.78vw;
    font-size: 2.85vw;
  }
  .contact-card__grid--phone {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .contact-card__input, .contact-card__textarea {
    font-size: 3.214vw;
  }
  .contact-card__textarea {
    min-height: 40vw;
  }
  .contact-consent__label {
    font-size: 2.857vw;
  }
  .contact-checkbox-label {
    padding-left: 5.357vw;
    font-size: 2.857vw;
  }
  .contact-checkbox-label::before {
    width: 3.214vw;
    height: 3.214vw;
  }
  .contact-checkbox-label:has(input[type="checkbox"]:checked)::after {
    left: 1.071vw;
    width: 1.071vw;
    height: 2.143vw;
  }
  .contact__submit {
    height: 10.71vw;
    border-radius: 5.35vw;
  }
}


