.p-contact__title-wrap {
  background: #F8F9FB;
  padding-block: 64px;
}
@media screen and (max-width: 767px) {
  .p-contact__title-wrap {
    padding-block: 24px;
  }
}

.p-contact__title {
  color: #023B6D;
}

.p-contact__title--en {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%; /* 20px */
  letter-spacing: 1px;
  text-transform: uppercase;
}
@media screen and (max-width: 767px) {
  .p-contact__title--en {
    font-size: 14px;
    line-height: 1.24;
    letter-spacing: 0.7px;
  }
}
.p-contact__title--en::before {
  content: "";
  width: 18px;
  height: auto;
  aspect-ratio: 1;
  background: linear-gradient(92deg, #1B2134 48.8%, #336088 98.31%);
}
@media screen and (max-width: 767px) {
  .p-contact__title--en::before {
    width: 12px;
  }
}

.p-contact__title--ja {
  margin-block-start: 8px;
  text-align: center;
  font-size: 44px;
  font-style: normal;
  font-weight: 700;
  line-height: 124%; /* 54.56px */
  letter-spacing: 1.76px;
}
@media screen and (max-width: 767px) {
  .p-contact__title--ja {
    font-size: 30px;
    line-height: 124%; /* 37.2px */
    letter-spacing: 1.2px;
  }
}

.p-contact__contents {
  padding-block: 64px;
}
@media screen and (max-width: 767px) {
  .p-contact__contents {
    padding-block: 40px;
  }
}

.p-contact__inner {
  width: min(1080px, 100%);
  padding-inline: 40px;
  margin-inline: auto;
}
@media screen and (max-width: 767px) {
  .p-contact__inner {
    padding-inline: 16px;
  }
}

.p-contact__head {
  color: #383838;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  letter-spacing: 0.64px;
  margin-block-end: 64px;
}

.p-contact__contents fieldset {
  display: none;
}
.p-contact__contents .screen-reader-response {
  display: none;
}

.p-contact__form {
  display: flex;
  flex-direction: column;
  row-gap: 24px;
}
@media screen and (max-width: 767px) {
  .p-contact__form {
    row-gap: 16px;
  }
}

.p-contact__form-head {
  display: flex;
  align-items: center;
  column-gap: 4px;
}
.p-contact__form-head span.text {
  color: #1B2134;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  letter-spacing: 0.64px;
}
.p-contact__form-head span.must {
  background: #F44336;
  border-radius: 3px;
  padding: 2px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%; /* 12px */
  letter-spacing: 0.48px;
}

.p-contact__form-data span {
  display: block;
  width: 100%;
}
.p-contact__form-data input, .p-contact__form-data textarea {
  width: 100%;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #D9D9D9;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  letter-spacing: 0.64px;
}
.p-contact__form-data input::placeholder, .p-contact__form-data textarea::placeholder {
  color: #D9D9D9;
}
.p-contact__form-data textarea {
  resize: vertical;
  height: 164px;
}

@media screen and (max-width: 767px) {
  .p-contact__form-privacy {
    text-align: center;
  }
}
.p-contact__form-privacy input[type=checkbox] {
  width: 1px;
  height: 1px;
  position: absolute;
  clip: rect(0, 0, 0, 0);
}
.p-contact__form-privacy input[type=checkbox]:checked + span::before {
  background: #48B0FF;
  border: 1px solid #48B0FF;
}
.p-contact__form-privacy input[type=checkbox]:checked + span::after {
  opacity: 1;
}
.p-contact__form-privacy .wpcf7-list-item-label {
  padding-inline-start: 30px;
  position: relative;
  color: #1B2134;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0.64px;
}
.p-contact__form-privacy .wpcf7-list-item-label a {
  color: #48B0FF;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}
@media (any-hover: hover) {
  .p-contact__form-privacy .wpcf7-list-item-label a:hover {
    opacity: 0.6;
  }
}
.p-contact__form-privacy .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 20px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 4px;
  border: 1px solid #D9D9D9;
}
.p-contact__form-privacy .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 7px;
  width: 6px;
  height: 13px;
  border-inline-end: 2px solid #fff;
  border-block-end: 2px solid #fff;
  rotate: 45deg;
}

input[type=submit],
input[type=button] {
  border-radius: 0px;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
  background: transparent;
}

input[type=submit]::-webkit-search-decoration,
input[type=button]::-webkit-search-decoration {
  display: none;
}

.row.jc-center {
  justify-content: center;
}

.p-contact__form-submit {
  margin-block-start: 40px;
  text-align: center;
}
.p-contact__form-submit input {
  display: inline-block;
  padding: 15px 88.5px;
  background: #023B6D;
  border-radius: 4px;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  letter-spacing: 0.64px;
  color: #fff;
  transition: opacity 0.3s ease;
}
@media screen and (max-width: 767px) {
  .p-contact__form-submit input {
    padding: 14px 33px;
  }
}
@media (any-hover: hover) {
  .p-contact__form-submit input:hover {
    opacity: 0.6;
  }
}

.wpcf7-response-output {
  margin-block-start: 40px;
  text-align: center;
  color: #F44336;
}

.wpcf7-not-valid-tip {
  display: block;
  color: #F44336;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  letter-spacing: 0.64px;
}

.p-contact-thanks {
  padding-block: 80px;
  padding-inline: 40px;
  position: relative;
  z-index: 1;
}
@media screen and (max-width: 767px) {
  .p-contact-thanks {
    padding-block: 40px;
    padding-inline: 16px;
  }
}
.p-contact-thanks::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -90px;
  left: 0;
  width: 100%;
  height: calc(100% + 90px);
  background: url(../img/thanks_bg.png) no-repeat center center/cover;
}

.p-contact-thanks__contents {
  position: relative;
  z-index: 2;
  padding-block: 40px;
  background: #fff;
  width: min(1000px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  row-gap: 24px;
}

.p-contact-thanks__contents-title {
  color: #023B6D;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 50.4px */
  text-align: center;
}
@media screen and (max-width: 767px) {
  .p-contact-thanks__contents-title {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 33.6px */
    letter-spacing: 0.96px;
  }
}

.p-contact-thanks__contents-text {
  color: #1B2134;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  letter-spacing: 0.64px;
  text-align: center;
}

.p-contact-thanks__contents-btn {
  width: fit-content;
  margin-inline: auto;
  display: flex;
  align-items: center;
  column-gap: 12px;
  padding: 12px 16px;
  background: #023B6D;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}
.p-contact-thanks__contents-btn span {
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%; /* 18px */
  letter-spacing: 1.08px;
}
@media screen and (max-width: 767px) {
  .p-contact-thanks__contents-btn span {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 22.4px */
    letter-spacing: 0.64px;
  }
}
.p-contact-thanks__contents-btn svg {
  width: 20px;
  height: auto;
  aspect-ratio: 1;
}
@media screen and (max-width: 767px) {
  .p-contact-thanks__contents-btn svg {
    width: 15px;
  }
}
@media (any-hover: hover) {
  .p-contact-thanks__contents-btn:hover {
    opacity: 0.6;
  }
}

.p-terms {
  padding-block: 80px;
  padding-inline: 40px;
}
@media screen and (max-width: 767px) {
  .p-terms {
    padding-block: 40px;
    padding-inline: 16px;
  }
}

.p-terms__title {
  text-align: center;
  color: #023B6D;
  font-size: 44px;
  font-style: normal;
  font-weight: 700;
  line-height: 124%; /* 54.56px */
  letter-spacing: 1.76px;
  margin-block-end: 64px;
}
@media screen and (max-width: 767px) {
  .p-terms__title {
    margin-block-end: 40px;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%; /* 31.2px */
    letter-spacing: 0.96px;
  }
}

.p-terms__contents {
  width: min(1000px, 100%);
  margin-inline: auto;
  background: #F8F9FB;
  padding: 40px;
}
@media screen and (max-width: 767px) {
  .p-terms__contents {
    padding: 24px 16px;
  }
}
.p-terms__contents h2 {
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 25.2px */
  letter-spacing: 0.72px;
}
.p-terms__contents h2 + p {
  margin-block-start: 16px;
}
.p-terms__contents p + h2 {
  margin-block-start: 24px;
}
.p-terms__contents ul + h2 {
  margin-block-start: 40px;
}
.p-terms__contents p {
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  letter-spacing: 0.64px;
}
.p-terms__contents p + ul {
  margin-block: 16px;
}
.p-terms__contents ul {
  margin-inline-start: 2em;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}
.p-terms__contents ul li {
  list-style: disc;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 25.6px */
  letter-spacing: 0.64px;
}