@charset "UTF-8";

/* ==========================================
   お問い合わせTOP カードスタイル
========================================== */
/* タイトル下線との重なりを防ぐための余白設定 */
.sec4__head {
  margin-bottom: 50px;
}
@media only screen and (max-width: 767px) {
  .sec4__head {
    margin-bottom: 35px;
  }
}

.contact-top-lead {
  text-align: center;
  font-size: 16px;
  margin-top: 60px;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.6;
}
@media only screen and (max-width: 767px) {
  .contact-top-lead {
    font-size: 14px;
    margin-top: 40px;
    margin-bottom: 10px;
    padding: 0 10px;
  }
}

.contact-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media only screen and (max-width: 960px) {
  .contact-card-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.contact-card {
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
  border-color: #3F883C;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.contact-card__icon {
  width: 60px;
  height: 60px;
  background-color: #3F883C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.contact-card__icon img {
  width: 30px;
}

.contact-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

.contact-card__desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
  flex-grow: 1;
}

.contact-card__btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #222;
  color: #fff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.3s;
}
.contact-card:hover .contact-card__btn {
  background-color: #3F883C;
}

/* ==========================================
   フォームレイアウトスタイル
========================================== */
.form-container {
  margin-top: 40px;
  background: #fff;
  padding: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
@media only screen and (max-width: 767px) {
  .form-container {
    padding: 20px 15px;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  row-gap: 24px;
  align-items: center;
}
@media only screen and (max-width: 767px) {
  .form-grid {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
}

.form-grid dt {
  font-weight: 700;
  font-size: 15px;
  color: #222;
}
.form-grid dt span {
  display: inline-block;
  background-color: #d9534f;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.form-grid dd {
  margin-bottom: 0;
}
@media only screen and (max-width: 767px) {
  .form-grid dd {
    margin-bottom: 16px;
  }
}

.form-grid input[type="text"],
.form-grid input[type="tel"],
.form-grid input[type="email"],
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: #3F883C;
  box-shadow: 0 0 0 2px rgba(63, 136, 60, 0.2);
}

.form-grid textarea {
  min-height: 150px;
  resize: vertical;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 8px 0;
}
.radio-group label {
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-submit {
  margin-top: 40px;
  text-align: center;
}

.btn-submit {
  display: inline-block;
  width: 280px;
  padding: 16px 0;
  background-color: #3F883C;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s, opacity 0.3s;
}
.btn-submit:hover {
  opacity: 0.85;
}

/* エラーメッセージ表示 */
.error-summary {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 30px;
}
.error-summary ul {
  list-style: disc;
  padding-left: 20px;
}

/* サンクスページ */
.thanks-box {
  text-align: center;
  padding: 80px 20px;
}
.thanks-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}
.thanks-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 40px;
}
.thanks-btn {
  display: flex;
  justify-content: center;
}