@charset "UTF-8";

/* お問い合わせ */
.p-contact-back {
  /* background: url(../images/top/flow-back.webp) no-repeat center center/cover; */
  background-image: url(../images/top/flow-back.webp);
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
}

@media screen and (max-width: 767px) {
  .p-contact-back {
    bottom: 0;
    background-image: url(../images/top/flow-back-sp.webp);
  }
}

.p-contact-back.confirm {
  background-size: cover;
  background-position: 0 30rem;
}

.p-contact-back.complete {
  background-size: cover;
  background-position: 100% 15rem;
}

.p-contact__inner {
  max-width: 1050px;
  max-width: 65.625rem;
}

.p-contact__mv {
  padding-top: 149px;
  padding-top: 9.3125rem;
  aspect-ratio: 1920/489;
  width: 100%;
  height: 489px;
  height: 30.5625rem;
  background: url(../images/common/mv-back.webp) no-repeat top center/cover;
}

@media screen and (min-width: 1920px) {
  .p-contact__mv {
    height: auto;
    background: url(../images/common/mv-back.webp) repeat-x top center/contain;
  }
}

@media screen and (max-width: 767px) {
  .p-contact__mv {
    padding-top: 4.375rem;
    height: auto;
    background: url(../images/common/mv-back-sp.webp) no-repeat top center/cover;
    aspect-ratio: 790/600;
  }
}

.p-contact__img {
  width: 83px;
  width: 5.1875rem;
  margin-inline: auto;
}

@media screen and (max-width: 767px) {
  .p-contact__img {
    width: 2.625rem;
  }
}

.p-contact__img img {
  height: auto;
}

.p-contact__title {
  margin-top: 12px;
  margin-top: 0.75rem;
  font-family: "Zen Old Mincho", serif;
  font-size: max(48px, 10px);
  font-size: max(3rem, 10px);
  font-weight: bold;
  color: #FFFFFF;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .p-contact__title {
    font-size: max(2rem, 10px);
  }
}

.p-contact__breadcrumb {
  margin-top: -96px;
  margin-top: -6rem;
  color: #8ca3c4;
  font-size: max(12px, 10px);
  font-size: max(0.75rem, 10px);
  font-weight: 500;
}

@media screen and (max-width: 767px) {
  .p-contact__breadcrumb {
    margin-top: -0.9375rem;
  }
}

.p-contact__breadcrumb a {
  color: #203e67;
  font-size: max(12px, 10px);
  font-size: max(0.75rem, 10px);
  font-weight: 500;
  text-decoration: underline;
}

.p-contact__content {
  /* margin-top: 72px; */
  /* margin-top: 4.5rem; */
  /* margin-bottom: 110px; */
  margin: 4.5rem auto 0;
  max-width: 59.375rem;
  padding-bottom: 6.875rem;
}

@media screen and (max-width: 767px) {
  .p-contact__content {
    margin-top: 2.5rem;
  }
}

.p-contact__content.complete {
  padding-bottom: 15rem;
}

.p-contact__text {
  font-size: max(16px, 10px);
  font-size: max(1rem, 10px);
  font-weight: 500;
  line-height: 1.75;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .p-contact__text {
    text-align: left;
  }
}

.p-contact__text.complete {
  margin: 3rem auto 5.2rem;
}

.p-contact__step {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 20px;
  column-gap: 1.4rem;
  margin-top: 90px;
  margin-top: 6.4rem;
  counter-reset: number 0;
}

@media screen and (max-width: 767px) {
  .p-contact__step {
    margin-top: 3.5rem;
  }
}

.p-contact__step li {
  width: 8.875rem;
  padding: 0 0 0.2rem 0;
  text-align: center;
  border-bottom: solid 1px #203E67;
  position: relative;
  counter-increment: number 1;
}

.p-contact__step li span {
  font-size: 1.7rem;
  font-family: "Zen Old Mincho", serif;
  padding-right: 0.5rem;
  line-height: 1;
}

.p-contact__step li::before {
  /* position: absolute;
  content: counter(number);
  left: 1rem;
  top: calc(50% - 0.4rem);
  font-weight: bold;
  font-family: "Zen Old Mincho", serif;
  font-size: 1.7rem;
  transform: translateY(-50%);
  line-height: 1; */
}

.p-contact__step li.active {
  color: #D6340E;
  border-bottom: solid 1px #D6340E;
}

.p-contact__step li.active::after {
  position: absolute;
  content: "";
  background-image: url(../images/common/red-fish-icon.webp);
  background-size: contain;
  background-repeat: no-repeat;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 1.04rem;
}

.p-contact__flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  column-gap: 1.6rem;
}

@media screen and (max-width: 767px) {
  .p-contact__flex {
    flex-direction: column;
    row-gap: 1rem;
  }
}

.p-contact__card {
  background-color: #FFFEF5;
  border-radius: 11px;
  padding: 2rem 1rem;
  text-align: center;
  max-width: 29rem;
  width: 100%;
}

@media screen and (max-width: 767px) {
  .p-contact__card.fax {
    pointer-events: none;
  }
}

.p-contact__card--head {
  font-size: 1.2rem;
  font-family: "Zen Old Mincho", serif;
}

.p-contact__card--tel {
  display: block;
  font-size: 2rem;
  font-family: "Zen Old Mincho", serif;
  border-bottom: solid 1px #203E67;
  display: inline-block;
  line-height: 1;
  margin: 0.5rem auto 0.5rem 1rem;
  position: relative;
}

@media screen and (max-width: 479px) {
  .p-contact__card--tel {
    font-size: 1.6rem;
  }
}

.p-contact__card--tel::before {
  position: absolute;
  content: "";
  background-image: url(../images/contact/contact-tel.webp);
  background-size: cover;
  width: 1.4rem;
  height: 1.4rem;
  top: 0.3rem;
  left: -1.8rem;
}

.p-contact__card--tel.fax::before {
  background-image: url(../images/contact/contact-fax.webp);
  width: 1.55rem;
  height: 1.55rem;
}

.p-contact__card--tel img {
  width: fit-content;
}

.p-contact__card--time {
  display: block;
}

.p-contact-form__box {
  background-color: #FFFEF5;
  padding-bottom: 6.55rem;
}

.p-contact-form__box.confirm {
  padding-top: 1rem;
  margin-top: 2rem;
}

.p-contact-form {
  max-width: 39.999999rem;
  margin: 2.8rem auto 0;
  width: 95%;
}

.p-contact-form .confirm {
  margin: 1.4rem auto 0;
}

@media screen and (max-width: 767px) {
  .p-contact-form {
    width: 90%;
  }
}

.p-contact-form .notes {
  font-size: 0.75rem;
}

.p-contact-form__head {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  pointer-events: none;
}

.p-contact-form__head span:not(.p-contact-form__required, .p-contact-form__any, .notes) {
  font-size: 0.875rem;
}

.p-contact-form__head .notes {
  font-size: 0.75rem;
  font-weight: 500;
}

.p-contact-form__head.job a {
  color: #0087EA;
  text-decoration: underline;
  pointer-events: all;
}

.p-contact-form__head.job span:not(.p-contact-form__required) {
  padding-left: 1rem;
}

@media screen and (max-width: 767px) {
  .p-contact-form__head.job span:not(.p-contact-form__required) {
    padding-left: 0;
    display: block;
  }
}

.p-contact-form__item {
  margin-bottom: 20px;
  max-width: 640px;
}

.p-contact-form__radios {
  display: flex;
  column-gap: 10px;
}

@media screen and (max-width: 767px) {
  .p-contact-form__radios.content {
    flex-direction: column;
  }
}


.p-contact-form__radio {
  cursor: pointer;
}

.p-contact-form__text {
  position: relative;
  display: block;
  padding: 0 0 0 1.2rem;
  font-weight: 500;
  line-height: 1.4;
}

.p-contact-form__text span {
  font-size: 0.75rem;
}

.p-contact-form__text::before {
  position: absolute;
  content: "";
  display: block;
  border-radius: 50%;
  background-color: #FFF;
  border: solid 1px #C6C5B6;
  width: 1rem;
  height: 1rem;
  top: 0.2rem;
  left: 0;
  z-index: 25;
}

.p-contact-form__radio:checked+.p-contact-form__text::after {
  position: absolute;
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background-color: #203E67;
  top: 0.4rem;
  left: 0.2rem;
  z-index: 25;
}

.p-contact-form__input {
  width: 100%;
  padding: 0.407rem 0.5rem 0.407rem 1rem;
  border: solid 1px #C6C5B6;
  background-color: #FFF;
  z-index: 25;
  position: relative;
}

.p-contact-form__input::placeholder {
  color: #C6C5B6;
}

.p-contact-form__textarea {
  width: 100%;
  padding: 0.407rem 0.5rem 0.407rem 1rem;
  border: solid 1px #C6C5B6;
  background-color: #FFF;
  z-index: 25;
  position: relative;
}

.p-contact-form__textarea::placeholder {
  color: #C6C5B6;
}

.p-contact-form__birthdate {
  display: flex;
  align-items: flex-end;
  /* column-gap: 1rem; */
  column-gap: 0.25rem;
}

.p-contact-form__birthdate span {
  line-height: 1;
  /* margin-left: 0.25rem; */
  margin-right: 0.7rem;
}

.p-contact-form__select--box {
  position: relative;
  width: 100%;
  z-index: 25;
}

.p-contact-form__select--box.year {
  width: 7.625rem;
}

.p-contact-form__select--box.month {
  width: 4.063rem;
}

.p-contact-form__select--box.day {
  width: 4.063rem;
}

.p-contact-form__select--box.birth::before {
  width: 0.466rem;
  height: 0.216rem;
  right: 0.5rem;
}

.p-contact-form__select--box.birth::after {
  right: 1.5rem;
}

.p-contact-form__select--box::before {
  position: absolute;
  content: "";
  background-image: url(../images/contact/blue-arrow-icon.webp);
  background-size: cover;
  width: 11.17px;
  height: 5.18px;
  width: 0.8rem;
  height: 0.4rem;
  top: 50%;
  right: 0.85rem;
  z-index: 1;
  pointer-events: none;
}

.p-contact-form__select--box::after {
  position: absolute;
  content: "";
  background-color: #C6C5B6;
  width: 1px;
  height: 100%;
  top: 0;
  right: 2.45rem;
  z-index: 1;
}

.p-contact-form__select {
  width: 100%;
  padding: 0.344rem 0.5rem 0.344rem 1rem;
  border: solid 1px #C6C5B6;
  background-color: #FFF;
  position: relative;
}

.p-contact-form__select.job {
  color: #C6C5B6;
}

.p-contact-form__select.birth {
  padding: 0.407rem 0.5rem 0.407rem 0.5rem;
}

.p-contact-form__select.year {
  width: 7.625rem;
}

.p-contact-form__select.month {
  width: 4.063rem;
}

.p-contact-form__select.day {
  width: 4.063rem;
}

.p-contact-form__check {
  text-align: center;
}

.p-contact-form__check a {
  font-size: 1.25rem;
  margin-bottom: 10px;
  margin-bottom: 0.625rem;
  display: block;
}

.p-contact-form__checkbox {
  cursor: pointer;
}

.p-contact-form__checkbox:checked+.p-contact-form__agree::after {
  position: absolute;
  content: "";
  width: 14px;
  height: 6px;
  border-left: 2px solid #203E67;
  border-bottom: 2px solid #203E67;
  top: calc(50% - 2px);
  left: 4px;
  transform: rotate(-45deg) translateY(-50%);
}

.p-contact-form__agree {
  position: relative;
  padding: 0 0 0 22px;
}

.p-contact-form__agree::before {
  content: "";
  position: absolute;
  display: block;
  background-color: #FFF;
  border: solid 1px #C6C5B6;
  border-radius: 2px;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 0px;
  transform: translateY(-50%);
}

.p-contact-form__required {
  color: #FFF;
  background-color: #D6350D;
  border-radius: 20px;
  margin-right: 0.5rem;
  font-size: max(0.75rem, 10px);
  padding: 0.094rem 0.657rem;
}

.p-contact-form__any {
  color: #707070;
  background-color: #E9E9E9;
  border-radius: 20px;
  margin-right: 0.5rem;
  font-size: max(0.75rem, 10px);
  padding: 0.094rem 0.657rem;
}

.p-contact-form__btns {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
}

@media screen and (max-width: 767px) {
  .p-contact-form__btns {
    column-gap: 0.5rem;
  }
}

.p-contact-form__btn {
  display: block;
  text-align: center;
  width: 100%;
  max-width: 19.25rem;
  background-color: #0087EA;
  border: solid 1px #0087EA;
  color: #FFF;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.25rem 1rem;
  margin: 0 auto;
  margin-top: 35px;
  margin-top: 2rem;
  transition: all .5s;
}

.p-contact-form__btn.return {
  background-color: #E9E9E9;
  color: #707070;
  border: solid 1px #E9E9E9;
}

@media (hover: hover) {
  .p-contact-form__btn:hover {
    color: #0087EA;
    background-color: #FFF;
  }

  .p-contact-form__btn.return:hover {
    color: #203E67;
    background-color: #FFF;
    border: solid 1px #203E67;
  }
}

.p-contact-form__check--flex {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  position: relative;
  z-index: 25;
}

/* バリデーション用CSS */
.hidden {
  display: none;
}

.error {
  border-color: #E3380D;
  background-color: #FFF4F4;
}

.error::placeholder {
  color: #D6340E;
}

.p-contact-form__error {
  color: #D6340E;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 0.15rem;
}

.p-contact-form__error.agree {
  justify-content: center;
}

.p-contact-form__error img {
  width: 1.188rem;
  height: 1rem;
  margin-right: 0.3rem;
}