/* ===========================
   CONTACT PAGE
   =========================== */

.contact-fv {
  position: relative;
  width: 100%;
  height: 409px;
  overflow: hidden;
  background: #1f1f1f;
}

.contact-fv::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.36)),
    url('../images/common/contact_cta.png') center / cover no-repeat;
  opacity: 0.88;
}

.contact-fv__inner {
  position: absolute;
  top: 178px;
  left: 120px;
  z-index: 1;
  color: #fff;
}

.contact-fv__label {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 39.6px;
  color: #fff;
  margin-bottom: 10px;
}

.contact-fv__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.5px;
}

.contact-breadcrumb {
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.contact-breadcrumb__list {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.45;
  color: #777;
}

.contact-breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}

.contact-breadcrumb__list li:not(:last-child)::after {
  content: ">";
  display: inline-block;
  margin-left: 10px;
  color: #aaa;
}

.contact-breadcrumb__list a {
  color: #222;
}

.contact-page {
  padding: 68px 0 84px;
  background: #fff;
}

.contact-page__inner {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
}

.contact-page__lead {
  margin-bottom: 50px;
  text-align: center;
}

.contact-page__lead-title {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  color: #111;
}

.contact-page__lead-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.9;
  color: #555;
}

.contact-form {
  display: grid;
  gap: 26px;
}

.wpcf7 form.contact-form {
  display: grid;
  gap: 26px;
}

.wpcf7-form-control-wrap {
  display: block;
}

.contact-form__row {
  display: grid;
  gap: 10px;
}

.contact-form__row--half {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.contact-form__field {
  display: grid;
  gap: 10px;
}

.contact-form__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #111;
}

.contact-form__required,
.contact-form__optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 22px;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.contact-form__required {
  background: #d92929;
}

.contact-form__optional {
  background: #8f969d;
}

.contact-form__input,
.contact-form__textarea,
.wpcf7 input.contact-form__input,
.wpcf7 textarea.contact-form__textarea {
  width: 100%;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form__input {
  height: 54px;
  padding: 0 16px;
}

.contact-form__textarea {
  min-height: 190px;
  padding: 16px;
  resize: vertical;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: #aaa;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: #028b16;
  box-shadow: 0 0 0 3px rgba(2, 139, 22, 0.12);
  outline: none;
}

.contact-form__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-form__fieldset .contact-form__label {
  margin-bottom: 10px;
}

.contact-form__radio-list {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  background: #fafafa;
}

.contact-form__radio,
.contact-form__radio-list .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: #333;
  cursor: pointer;
}

.contact-form__radio-list .wpcf7-list-item {
  display: block;
  margin: 0;
}

.contact-form__radio input,
.contact-form__radio-list input {
  width: 18px;
  height: 18px;
  margin-top: 0.28em;
  accent-color: #028b16;
  flex: 0 0 auto;
}

.contact-form__privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  cursor: pointer;
}

.contact-form__privacy input,
.contact-form__privacy .wpcf7-form-control-wrap {
  display: inline-flex;
}

.contact-form__privacy input {
  width: 16px;
  height: 16px;
  margin-top: 0.35em;
  accent-color: #028b16;
}

.contact-form__privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form__submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.contact-form__submit {
  min-width: 260px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.wpcf7-spinner {
  margin: 12px auto 0;
}

.wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12px;
}

.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
}

.contact-form__submit:hover {
  background: #028b16;
  transform: translateY(-1px);
}

.contact-page__notes {
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: #777;
}

/* ===========================
   PRIVACY PAGE
   =========================== */

.privacy-page {
  padding: 72px 0 96px;
  background: #fff;
}

.privacy-page__inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.privacy-page__content {
  color: #333;
  font-size: 15px;
  line-height: 1.9;
}

.privacy-page__content > *:first-child {
  margin-top: 0;
}

.privacy-page__content p {
  margin: 0 0 18px;
}

.privacy-page__content h2 {
  margin: 46px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dcdcdc;
  color: #111;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.privacy-page__content ul {
  margin: 0 0 22px;
  padding-left: 1.35em;
}

.privacy-page__content li {
  margin: 0 0 8px;
}

/* ===========================
   THANKS PAGE
   =========================== */

.contact-thanks {
  padding: 88px 0 104px;
  background: #e5e5e5;
}

.contact-thanks__inner {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 48px 68px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.contact-thanks__label {
  margin-bottom: 18px;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
  color: #028b16;
}

.contact-thanks__title {
  margin-bottom: 30px;
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: clamp(37px, 4.55vw, 54px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: #111;
}

.contact-thanks__body {
  display: grid;
  gap: 6px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  color: #222;
}

.contact-thanks__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
}

.contact-thanks__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 58px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
}

.contact-thanks__btn--primary {
  background: #111;
  color: #fff;
}

.contact-thanks__btn--primary:hover {
  background: #028b16;
  opacity: 1;
}

.contact-thanks__btn--secondary {
  border: 1px solid #111;
  background: #fff;
  color: #111;
}

.contact-thanks__btn--secondary:hover {
  background: #111;
  color: #fff;
  opacity: 1;
}

@media (max-width: 767px) {
  .contact-fv {
    height: 150px;
  }

  .contact-fv__inner {
    top: 49px;
    left: 30px;
  }

  .contact-fv__label {
    font-size: 18px;
    line-height: 39.6px;
    color: #fff;
    margin-bottom: 0;
  }

  .contact-fv__title {
    font-size: 25.88px;
    line-height: 1.25;
    letter-spacing: 0.65px;
  }

  .contact-breadcrumb__list {
    width: calc(100% - 40px);
    padding: 14px 0;
    line-height: 1.25;
  }

  .contact-breadcrumb__list li {
    margin-right: 8px;
    margin-bottom: 4px;
  }

  .contact-breadcrumb__list li:not(:last-child)::after {
    margin-left: 8px;
  }

  .contact-page {
    padding: 46px 0 72px;
  }

  .contact-page__inner {
    width: calc(100% - 40px);
  }

  .contact-page__lead {
    margin-bottom: 38px;
    text-align: left;
  }

  .contact-page__lead-title {
    font-size: 21px;
  }

  .contact-page__lead-text {
    font-size: 14px;
  }

  .contact-form {
    gap: 24px;
  }

  .contact-form__row--half {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-form__label {
    font-size: 14px;
  }

  .contact-form__input {
    height: 50px;
  }

  .contact-form__textarea {
    min-height: 170px;
  }

  .contact-form__radio-list {
    padding: 16px;
  }

  .contact-form__radio {
    font-size: 13px;
  }

  .contact-form__privacy {
    font-size: 13px;
  }

  .contact-form__submit {
    width: 100%;
    min-width: 0;
  }

  .contact-page__notes {
    margin-top: 46px;
    text-align: left;
  }

  .privacy-page {
    padding: 48px 0 72px;
  }

  .privacy-page__inner {
    width: calc(100% - 40px);
  }

  .privacy-page__content {
    font-size: 14px;
  }

  .privacy-page__content h2 {
    margin-top: 36px;
    font-size: 19px;
  }

  .contact-thanks {
    padding: 54px 0 72px;
  }

  .contact-thanks__inner {
    width: calc(100% - 40px);
    padding: 46px 22px 44px;
  }

  .contact-thanks__label {
    font-size: 15px;
  }

  .contact-thanks__title {
    font-size: 30px;
  }

  .contact-thanks__body {
    text-align: center;
    font-size: 13px;
  }

  .contact-thanks__actions {
    flex-direction: column;
    gap: 12px;
  }

  .contact-thanks__btn {
    width: 100%;
  }
}
