@charset "UTF-8";
.mainContents {
  background-color: #fff;
  color: #000;
}

.page-title {
  background-image: url(../img/contact/bg-mainimg.jpg);
}

/* 入力ページ */
.top-lead {
  padding-left: calc(50% - 370px);
  padding-right: calc(50% - 370px);
}
@media screen and (max-width: 1080px) {
  .top-lead {
    padding-left: 170px;
    padding-right: 170px;
  }
}
@media (max-width: 960px) {
  .top-lead {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (min-width: 961px) {
  .top-lead {
    padding-bottom: 80px;
  }
}
@media (max-width: 960px) {
  .top-lead {
    padding-bottom: 60px;
  }
}

.cta-tel .text {
  display: none;
}

.cta-other {
  background-color: var(--color-main);
  text-align: center;
  color: #fff;
}
@media (min-width: 961px) {
  .cta-other {
    padding-bottom: 65px;
  }
}
@media (max-width: 960px) {
  .cta-other {
    padding-bottom: 43px;
  }
}
.cta-other .ttl {
  margin-bottom: 0.6em;
  font-weight: 500;
}
@media (min-width: 961px) {
  .cta-other .ttl {
    font-size: 20rem;
  }
}
@media (max-width: 960px) {
  .cta-other .ttl {
    font-size: 14px;
  }
}
.cta-other .tel {
  position: relative;
  letter-spacing: 0.09em;
}
@media (min-width: 961px) {
  .cta-other .tel {
    font-size: 50rem;
  }
}
@media (max-width: 960px) {
  .cta-other .tel {
    margin: 13px 0 10px;
    font-size: 25px;
  }
}

.form {
  padding-left: calc(50% - 370px);
  padding-right: calc(50% - 370px);
  font-family: var(--font-noto);
}
@media screen and (max-width: 1080px) {
  .form {
    padding-left: 170px;
    padding-right: 170px;
  }
}
@media (max-width: 960px) {
  .form {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (min-width: 961px) {
  .form {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}
@media (max-width: 960px) {
  .form {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}
.form dl {
  display: grid;
}
@media (min-width: 961px) {
  .form dl {
    margin-top: 50px;
    grid-template-columns: 240px 1fr;
    gap: 20px 0;
  }
}
@media (max-width: 960px) {
  .form dl {
    margin-top: 40px;
  }
}
.form dt {
  font-size: 18rem;
  font-weight: 700;
}
@media (min-width: 961px) {
  .form dt {
    padding-top: 0.5em;
  }
}
@media (max-width: 960px) {
  .form dt {
    margin-bottom: 0.5em;
  }
}
@media (max-width: 960px) {
  .form dd + dt {
    margin-top: 1.8em;
  }
}
.form a {
  text-decoration: underline;
}
.form a:hover {
  text-decoration: none;
}
.form .required {
  display: inline-block;
  margin-left: 1em;
  padding: 0.3em 0.5em;
  color: red;
  border: 1px solid currentColor;
  border-radius: 1em;
  font-size: 80%;
  line-height: 1;
  -webkit-transform: translateY(-0.07em);
          transform: translateY(-0.07em);
}
.form .name {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.form .name label {
  display: grid;
  align-items: center;
  grid-template-columns: 2.2em 1fr;
}
@media (min-width: 961px) {
  .form .name {
    gap: 20px;
  }
}
@media (max-width: 960px) {
  .form .name {
    gap: 15px;
  }
}
.form input[type=text],
.form input[type=number],
.form input[type=email],
.form textarea {
  -webkit-appearance: none;
          appearance: none;
  border: 1px solid #707070;
  border-radius: 0;
  box-shadow: 0;
  width: 100%;
  height: 50px;
  padding: 0.4em 0.7em;
  line-height: 1;
}
@media (max-width: 960px) {
  .form input[type=text],
  .form input[type=number],
  .form input[type=email],
  .form textarea {
    height: 40px;
  }
}
.form textarea {
  height: 150px;
}
.form select {
  border: 1px solid #707070;
  border-radius: 0;
  box-shadow: 0;
  padding: 0.4em 0.7em;
  height: 50px;
}
@media (max-width: 960px) {
  .form select {
    height: 40px;
  }
}
.form input[type=number]::-webkit-outer-spin-button,
.form input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.form .post input {
  width: 8em;
}
@media (min-width: 961px) {
  .form .privacy {
    margin-left: 240px;
    margin-top: 60px;
  }
}
@media (max-width: 960px) {
  .form .privacy {
    margin-top: 30px;
  }
}

.buttons {
  display: grid;
}
@media (min-width: 961px) {
  .buttons {
    margin-left: 240px;
    margin-top: 60px;
    gap: 30px;
  }
}
@media (min-width: 521px) {
  .buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 960px) {
  .buttons {
    margin-top: 40px;
    gap: 20px;
  }
}
.buttons .btn {
  position: relative;
}
.buttons .btn::after {
  position: absolute;
  top: 50%;
  right: 20px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 40px;
  height: 1px;
  background-color: #fff;
}
.buttons .btn > * {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 60px;
  -webkit-appearance: none;
          appearance: none;
  background: var(--color-main);
  border: none;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

/* 完了ページ */
.thanks-message {
  padding-left: calc(50% - 370px);
  padding-right: calc(50% - 370px);
  text-align: center;
}
@media screen and (max-width: 1080px) {
  .thanks-message {
    padding-left: 170px;
    padding-right: 170px;
  }
}
@media (max-width: 960px) {
  .thanks-message {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (min-width: 961px) {
  .thanks-message {
    padding-bottom: 80px;
    font-size: 24rem;
  }
}
@media (max-width: 960px) {
  .thanks-message {
    padding-bottom: 60px;
    font-size: 18px;
  }
}

.thanks-image {
  background-color: var(--color-main);
  text-align: center;
}
@media (min-width: 961px) {
  .thanks-image {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

.thanks-text {
  padding-left: calc(50% - 370px);
  padding-right: calc(50% - 370px);
  text-align: center;
}
@media screen and (max-width: 1080px) {
  .thanks-text {
    padding-left: 170px;
    padding-right: 170px;
  }
}
@media (max-width: 960px) {
  .thanks-text {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (min-width: 961px) {
  .thanks-text {
    padding-top: 100px;
    padding-bottom: 50px;
  }
}