body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.7;
}
.contact-space {
  background-color: #FFFDE6;
  padding-top: 5rem;
}

.contact h1 {
  font-size: 28px;
  margin-bottom: 16px;
  text-align: center;
}

.contact-lead {
  text-align: center;
  margin-bottom: 40px;
  color: #666;
}

/* ===== フォーム ===== */
.contact-form {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 12px;
}
.form-bg{
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 8rem;
}
.form-space{
  margin-top: 7rem;
}

.form-text p{
  margin-bottom: 24px;
  text-align: justify;
}
.form-text h3{
  margin-bottom: 3rem;
  text-align: center;
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  color: #02144C;
  font-size: clamp(2.2rem, 2.8vw + 1rem, 2.4rem);
  font-weight: 600;
}


.required {
  border-radius: 3px;
  font-size: 1.2rem;
  font-weight: bold;
  background-color: #d42828;
  color: #fff;
  padding: 0.4rem 0.5rem;
  margin-left: 6px;
}
.optional {
  font-size: 1.2rem;
  color: #838383;
  margin-left: 8px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  background: #f5f8fa;
  margin-bottom: 2rem;
}
.form-bg fieldset {
  margin-bottom: 2rem;
}
.form-bg fieldset label {
  font-weight: 400;
  margin-right: 2rem;
}
.form-bg fieldset legend {
  font-weight: bold;
}
.form-bg label {
  font-weight: bold;
}
textarea {
  min-height: 160px;
  resize: vertical;
}
.error-text {
  color: #d32f2f;
  margin-top: 6px;
  display: none;
}
/* ===== チェックボックス ===== */
.checkbox-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.checkbox-group input {
  margin-right: 6px;
}


/* ===== チェックボックス ===== */

/* 見た目用チェックボックスだけ隠す */
.cute-checkbox input[type="checkbox"]:not(#service-required) {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ダミーはフォーカス可能なまま画面外へ */
#service-required {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.cute-checkbox label {
  position: relative;
  cursor: pointer;
  padding-left: 25px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

/* ふちの○ */
.cute-checkbox label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 20px;
  height: 20px;
  border: 2px solid #c9c9c9;
  border-radius: 50%;
  background: #fff;
  transition: all 0.25s ease;
}

/* 中の● */
.cute-checkbox label::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: #f4b400; 
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.25s ease;
}

/* チェック時 */
.cute-checkbox input[type="checkbox"]:checked + label::before {
  border-color: #f4b400;
}

.cute-checkbox input[type="checkbox"]:checked + label::after {
  transform: scale(1);
}

/* ホバー時 */
.cute-checkbox label:hover::before {
  border-color: #f4b400;
}


/* ===== ボタン ===== */
.form-botton-space{
  margin-top: 5rem;
  padding-bottom: 2rem;
}


/* ===== SP ===== */
@media (max-width: 600px) {
  .contact-form {
    padding: 24px;
  }
  .form-bg{
    margin-top: 3rem;
}
}