.all-bg {
  padding: 40px 30px;
}
.body-wrapper {
  flex-direction: column;
  align-items: center;
  padding: 100px 64px 80px;
  display: flex;
  background-color: #f8f8f8;
  height: 100%;
  line-height: 1.7;
  color: #23221e;
}
.intro img {
  width: 250px;
  display: block;
  margin: 0 auto 50px;
}
.intro p span {
  font-size: 25px;
  font-weight: 700;
  display: block;
  margin-bottom: 20px;
}
.form-body {
  background: #fff;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  border-radius: 8px;
  max-width: 1120px;
  width: 100%;
}
form {
  width: 100%;
  max-width: 464px;
}
.form-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 32px;
}
label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #23221f;
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.form-item label {
  width: 100%;
}
span.required {
  color: #e01e5a;
}
label.required::after {
  font-size: 12px;
  font-weight: 700;
  content: "必須";
  min-width: 34px;
  height: 19px;
  display: flex;
  align-items: center;
  background: #fff;
  color: #e01e5a;
  border: solid 1px #e01e5a;
  border-radius: 4px;
  padding: 0 4px;
}
input, .select-group {
  font-size: 16px;
  font-weight: 400;
  width: 100%;
  border: solid 1px #d6d3d0;
  border-radius: 6px;
  padding: 7px 11px;
}
.select-group select {
  appearance: none;
  border: none;
  background: none;
  padding: 0 10px;
  width: 100%;
  outline: none;
}
.select-group option {
  width: 100%;
  padding: 0 20px;
}
input[type="radio"] {
  width: 20px;
  height: 20px;
  border-radius: 500px;
}
input.agreement {
  height: 15px;
  width: 15px;
  margin: 15px 0;
}
textarea {
  width: 100%;
  border: solid 1px #d6d3d0;
  height: 200px;
  border-radius: 10px;
}
.box-check {
  text-align: left;
}
.box-check label {
  display: block;
}
.box-check-ttl {
  display: block;
}
.checkbox-group {
  margin: 10px 0;
  display: block;
}
.form-item .checkbox-group label {
  margin-bottom: 20px;
}
.form-item.checkbox {
  padding-bottom: 0;
  margin-bottom: 0;
}
a {
  text-decoration: underline;
  color: #23221e;
}
input[type="submit"] {
  width: 100%;
}
footer {
  font-size: 12px;
}
.thanks {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: space-around;
}
.thanks header {
  flex: 0 0 auto;
}
.thanks footer {
  flex: 0 0 auto;
}
.thanks .all-bg {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.thanks #form {
  text-align: center;
}
.thanks #form h1 {
  margin-bottom: 20px;
}
.thanks #form .form-btn {
  max-width: 450px;
  text-decoration: none;
}
.confirm h1 {
  text-align: center;
}
.confirm img {
  width: 120px;
}
.confirm .formwrap {
  color: red;
}
.all-bg.confirm{
  margin-top: 100px;
}
.error_messe {
	text-align: center;
}
.confirm p {
	text-align: center;
}
.confirm form {
	margin: 0 auto;
}
.confirm .form-btn-prev {
	margin-bottom: 20px;
}
.confirm .p-contact_form {
	text-align: left;
}
.thanks .btn-group {
  background: #14398d;
  font-weight: 700;
  font-size: 1.4rem;
  width: 35%;
  max-width: 350px;
  display: block;
  margin: 50px auto 0;
  border-radius: 5px;
  padding: 5px 0;
}
.thanks .btn-group a {
  color: #fff;
  font-size: 1.2rem;
}
@media (max-width: 960px) {
  body {
    padding: 0;
  }
  .body-wrapper {
    padding: 50px 30px 30px;
  }
  .form-body {
    display: block;
    padding: 30px;
  }
  .intro {
    margin-bottom: 30px;
  }
  .intro img {
    width: 150px;
  }
  .thanks #form {
    text-align: left;
  }
  .thanks #form .form-btn {
    text-align: center;
    display: block
  }
}