
.l-contact {
  margin-bottom: 75px;
  margin-top: 70px;
}

.l-contact__contents {
  margin-inline: auto;
  max-width: 687px;
}

.l-contact__form {
  margin-top: 40px;
}

.l-contact-thanks {
  margin-bottom: 100px;
  margin-top: 70px;
}

.wpcf7-submit{
  letter-spacing: 10px;
}

.p-form-bx {
  background: #edf3f8;
  border-radius: 12px;
  padding-bottom: 40px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 40px;
}

.p-download__form-title h3 {
  color: #1a1a1a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.p-form-item:not(:first-child) {
  margin-top: 10px;
}

.p-form-label {
  align-items: center;
  display: flex;
  gap: 8px;
}

.p-form-label--text {
  color: #1a1a1a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.p-form-input {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  margin-top: 8px;
  padding-bottom: 12px;
  padding-left: 14px;
  padding-right: 14px;
  padding-top: 12px;
  width: 100%;
}

.p-form-input::-moz-placeholder {
  color: #ccc;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}

.p-form-input::placeholder {
  color: #ccc;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}

.p-form-input:focus {
  outline: 1px solid #023e78;
}

.p-form-required {
  background: #e61264;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  padding-bottom: 2.5px;
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 2.5px;
}

.p-form-select {
  color: #ccc;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  margin-top: 0;
}

/* 初期（placeholder=空のvalueが選択中）を灰色にしたいので、まずは灰色をデフォルトに */
.wpcf7 form select.p-form-select {
  color: #9e9e9e !important;
}

/* 有効な値（空ではない value）が選ばれている時だけ黒に切り替え */
.wpcf7 form select.p-form-select:has(option:checked:not([value=""])) {
  color: #1a1a1a !important;
}

.p-form-textarea {
  color: #1a1a1a;
  font-size: 14px;
  height: 140px;
  padding-bottom: 13.5px;
  padding-left: 14px;
  padding-right: 14px;
  padding-top: 13.5px;
  resize: none;
}

.p-form-privacy {
  margin-top: 38px;
  text-align: center;
}

.p-form-privacy span {
  display: inline-block;
}

.p-form-privacy-checkbox {
  height: 1px;
  opacity: 0;
  width: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  position: absolute;
}

.p-form-privacy-link {
  color: #1a1a1a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
}

.wpcf7-list-item {
  margin: 0;
}

.wpcf7-list-item-label {
  cursor: pointer;
  padding-left: 38px;
  position: relative;
}

.wpcf7-list-item-label::before {
  background: #fff;
  border: 1px solid #3e3e3e;
  content: "";
  cursor: pointer;
  display: inline-block;
  height: 28px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
}

.wpcf7-list-item-label::after {
  background-image: url("../img/privacy-check.png");
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: none;
  height: 15px;
  left: 6px;
  position: absolute;
  top: 6px;
  width: 15px;
}

.p-form-privacy-checkbox:checked + .wpcf7-list-item-label::after {
  display: block;
}

.p-form-privacy-checkbox:focus + .p-form-privacy-box::before {
  border: 1px solid #023e78;
}

.p-form-privacy-text {
  color: #1a1a1a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-left: 6px;
}

.p-form-button {
  color: #023e78;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-inline: auto;
  margin-top: 38px;
  max-width: 295px;
  width: 100%;
}

.p-form-button button {
  letter-spacing: 20px;
}

.p-contact__lead-text {
  color: #1a1a1a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.7;
}

.p-contact__form-box {
  margin-top: 60px;
}

.p-contact__form-title h3 {
  color: #1a1a1a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-align: center;
}

.p-contact__form-item:not(:first-child) {
  margin-top: 15px;
}

.p-contact-thanks__button {
  margin-top: 14px;
}

.p-contact-thanks__link {
  color: #023e78;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 171.429% */
  text-decoration-line: underline;
  text-decoration-style: solid;
}

.p-mv {
  background-image: url("../img/contact-mv-sp.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 13px;
}

.p-mv__bg {
  aspect-ratio: 165/250;
  width: 165px;
}

.p-mv__heading-box {
  align-items: center;
  background-image: url("../img/mv-decoration_sp.png");
  background-position: left;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-size: 66% 100%;
  display: flex;
  height: 250px;
  width: 51%;
}

.p-mv__heading {
  padding-left: 5.3vw;
}

.p-mv__heading--en,
.p-mv__heading--ja {
  background-color: #fff;
  color: #023e78;
  display: block;
  line-height: normal;
  width: -moz-fit-content;
  width: fit-content;
}

.p-mv__heading--en {
  font-family: "Fira Sans", sans-serif;
  font-size: clamp(24px, 8.4vw, 45px);
  font-style: italic;
  font-weight: 500;
}

.p-mv__heading--ja {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(12px, 4.3vw, 20px);
  font-style: normal;
  font-weight: 700;
  margin-top: 9px;
}

@media screen and (min-width: 375px) {
  .p-form-privacy-link {
    font-size: 14px;
  }

  .p-form-privacy-text {
    font-size: 14px;
  }

  .p-mv__heading-box {
    background-size: cover;
  }
}

@media screen and (min-width: 768px) {
  .l-contact {
    margin-bottom: 135px;
    margin-top: 80px;
  }

  .l-contact__form {
    margin-top: 60px;
  }

  .l-contact-thanks {
    margin-bottom: 160px;
    margin-top: 80px;
  }

  .l-contact-thanks__contents {
    margin-inline: auto;
    padding-right: 65px;
    width: -moz-fit-content;
    width: fit-content;
  }

  .p-form-bx {
    padding-left: 35px;
    padding-right: 40px;
  }

  .p-form-item:not(:first-child) {
    margin-top: 20px;
  }

  .p-form-label {
    gap: 9px;
  }

  .p-form-label--text {
    font-size: 18px;
  }

  .p-form-input {
    font-size: 16px;
    margin-top: 12px;
    padding-bottom: 12.5px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 12.5px;
  }

  .p-form-input::-moz-placeholder {
    font-size: 16px;
  }

  .p-form-input::placeholder {
    font-size: 16px;
  }

  .p-form-required {
    font-size: 12px;
  }

  .p-form-select {
    font-size: 16px;
  }

  .p-form-textarea {
    height: 240px;
  }

  .p-form-privacy {
    margin-top: 40px;
  }

  .p-form-privacy-link {
    font-size: 16px;
  }

  .wpcf7-list-item-label::before {
    height: 32px;
    width: 32px;
  }

  .wpcf7-list-item-label::after {
    left: 8px;
    top: 8px;
  }

  .p-form-privacy-text {
    font-size: 16px;
    margin-left: 10px;
  }

  .p-form-button {
    font-size: 16px;
    max-width: 300px;
  }

  .p-contact__form-box {
    margin-top: 80px;
  }

  .p-contact__form-item:not(:first-child) {
    margin-top: 21px;
  }

  .p-mv {
    background-image: url("../img/contact-mv-pc.jpg");
  }

  .p-mv__heading-box {
    background-image: url("../img/mv-decoration_pc.png");
    background-size: 56% 100%;
  }

  .p-mv__heading {
    padding-left: 17.2vw;
  }

  .p-mv__heading--en {
    font-size: clamp(24px, 5.3vw, 60px);
  }

  .p-mv__heading--ja {
    font-size: clamp(12px, 1.6vw, 20px);
  }

}

@media screen and (min-width: 1024px) {
  .l-inner {
    max-width: 1140px;
  }

  .l-content {
    margin-top: 75px;
    padding-bottom: 60px;
  }

  .l-content__inner {
    display: flex;
    gap: 3.6%;
  }

  .l-content__main {
    width: 69.1%;
  }

  .l-content__side {
    margin-top: 0;
    width: 27.3%;
  }
}

@media screen and (min-width: 1280px) {
  .p-mv {
    margin-top: 68px;
  }
}
