.contact-background{
    background: url(../images/demo.jpg) no-repeat right center/cover;
}

.contact-background p {
  color: white;
  text-align: center;
  font-size: 35px;
}

.form-container {
  background: #fff;
  padding: 2em;
  max-width: 700px;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}




/* ----------------------
   <dl>構造対応の基本レイアウト
------------------------- */
dl {
  margin: 0;
  padding: 0;
}

dt {
  font-weight: bold;
  margin-top: 1.5em;
  font-size: 1rem;
}

dd {
  margin: 0.3em 0 1.2em 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.5em;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

textarea {
  height: 100px;
  resize: vertical;
}

.required {
  color: red;
  margin-left: 0.5em;
  font-size: 0.9em;
}

/* グループ表示（電話番号、生年月日、住所） */
.birthdate,
.tel,
.address {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.birthdate input,
.tel input,
.address input,
.address button {
  flex: 1 1 100px;
  min-width: 80px;
}

.address button {
  background: #ccc;
  border: none;
  border-radius: 5px;
  padding: 0.5em 1em;
  cursor: pointer;
  font-size: 0.9rem;
}

/* 送信ボタン */
button[type="submit"] {
  margin-top: 2em;
  padding: 0.75em;
  width: 100%;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: #45a049;
}

@media screen and (min-width: 800px){
.text01 {
  margin: 0 auto;
  width: 700px;
  padding: 20px;
}

.contact-background p {
  margin-top: 20px;
  padding: 20px;
}

}

/* ----------------------
   レスポンシブ対応
------------------------- */
@media screen and (max-width: 800px) {
  .birthdate input,
  .tel input,
  .address input,
  .address button {
    flex: 1 1 100%;
  }

  button[type="submit"] {
    font-size: 1rem;
  }

  dt {
    font-size: 0.95rem;
  }

  .contact-background {
    margin-top: 40px;
  }

  .contact-background p {
    margin-top: 20px;
    padding: 20px;
  }

  .text01{
    margin: 25px;
  }
}
