.p5-contact-page [class*="_footerNav_"] a::after {
  display: none;
}

.p5-contact-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px max(4vw, calc((100vw - 1450px) / 2)) 54px;
  background: #eef6fc url("../assets/pages/plan5/plan4-service-flow.svg") center / cover no-repeat;
}

.p5-contact-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 76% 30%, rgb(255 255 255 / 80%) 0%, transparent 28%),
    linear-gradient(90deg, rgb(255 255 255 / 92%) 0%, rgb(255 255 255 / 54%) 55%, rgb(255 255 255 / 24%) 100%);
}

.p5-contact-breadcrumb {
  margin-bottom: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #75869a;
  font-size: 9px;
  letter-spacing: .12em;
}

.p5-contact-breadcrumb a:hover {
  color: var(--blue);
}

.p5-contact-hero__inner {
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.1fr);
  align-items: end;
  gap: clamp(50px, 9vw, 150px);
}

.p5-contact-hero__inner > div > p,
.p5-contact-guide__intro > small,
.p5-contact-form__heading small {
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.p5-contact-hero h1 {
  margin: 10px 0 0;
  color: var(--navy);
  font-size: clamp(54px, 5vw, 72px);
  font-weight: 650;
  letter-spacing: -.07em;
  line-height: 1;
}

.p5-contact-hero__inner > p {
  max-width: 620px;
  margin: 0 0 3px;
  color: #42546a;
  font-size: 15px;
  line-height: 2;
}

.p5-contact-layout {
  padding: 76px max(4vw, calc((100vw - 1450px) / 2)) 100px;
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(580px, 1.28fr);
  align-items: start;
  gap: clamp(50px, 7vw, 110px);
  background:
    linear-gradient(90deg, transparent 0%, transparent 49.95%, rgb(7 88 200 / 4%) 50%, transparent 50.05%),
    #fff;
}

.p5-contact-guide {
  position: sticky;
  top: 112px;
}

.p5-contact-guide__intro h2 {
  margin: 14px 0 22px;
  color: var(--navy);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.45;
}

.p5-contact-guide__intro > p {
  margin: 0;
  color: #536579;
  font-size: 13px;
  line-height: 2;
}

.p5-contact-response {
  margin-top: 34px;
  padding: 22px 24px;
  color: #fff;
  background: linear-gradient(135deg, rgb(255 255 255 / 10%), transparent 55%), var(--navy);
}

.p5-contact-response span {
  display: block;
  color: #79c9ff;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
}

.p5-contact-response strong {
  margin-top: 8px;
  display: block;
  font-size: 18px;
  font-weight: 650;
}

.p5-contact-response p {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: 10px;
}

.p5-contact-form {
  padding: clamp(34px, 4.5vw, 60px);
  border: 1px solid #dbe4eb;
  background: #fff;
  box-shadow: 0 24px 70px rgb(28 68 101 / 9%);
}

.p5-contact-form__heading {
  margin-bottom: 38px;
  padding-bottom: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #dce4ea;
}

.p5-contact-form__heading h2 {
  margin: 10px 0 0;
  color: var(--navy);
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 650;
  letter-spacing: -.035em;
}

.p5-contact-form__heading > p {
  margin: 0 0 4px;
  color: #7a8897;
  font-size: 9px;
  white-space: nowrap;
}

.p5-contact-form__heading > p span {
  color: #e84d4d;
}

.p5-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.p5-contact-field {
  margin-bottom: 26px;
}

.p5-contact-field label {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 650;
}

.p5-contact-field label b,
.p5-contact-field label em {
  padding: 3px 6px;
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
}

.p5-contact-field label b {
  color: #fff;
  background: var(--blue);
}

.p5-contact-field label em {
  color: #778697;
  background: #edf1f4;
}

.p5-contact-field input,
.p5-contact-field select,
.p5-contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  color: var(--navy-dark);
  border: 1px solid #cfd9e1;
  border-radius: 0;
  outline: none;
  background: #fbfcfd;
  font-family: inherit;
  font-size: 13px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.p5-contact-field input,
.p5-contact-field select {
  height: 54px;
  padding: 0 16px;
}

.p5-contact-field textarea {
  min-height: 180px;
  padding: 15px 16px;
  line-height: 1.8;
  resize: vertical;
}

.p5-contact-field input::placeholder,
.p5-contact-field textarea::placeholder {
  color: #9aa6b1;
}

.p5-contact-field input:focus,
.p5-contact-field select:focus,
.p5-contact-field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(7 88 200 / 8%);
}

.p5-contact-select {
  position: relative;
}

.p5-contact-select select {
  appearance: none;
  padding-right: 48px;
}

.p5-contact-select > span {
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--blue);
  font-family: Arial, sans-serif;
  pointer-events: none;
  transform: translateY(-55%);
}

.p5-contact-agreement {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #56687b;
  cursor: pointer;
  font-size: 11px;
}

.p5-contact-agreement input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.p5-contact-agreement > span[aria-hidden="true"] {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #aebbc6;
  background: #fff;
}

.p5-contact-agreement input:checked + span[aria-hidden="true"] {
  border-color: var(--blue);
  background: var(--blue);
}

.p5-contact-agreement input:checked + span[aria-hidden="true"]::after {
  content: "✓";
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.p5-contact-agreement input:focus-visible + span[aria-hidden="true"] {
  outline: 2px solid rgb(7 88 200 / 35%);
  outline-offset: 2px;
}

.p5-contact-agreement a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p5-contact-submit {
  margin-top: 30px;
}

.p5-contact-submit button {
  width: 100%;
  min-height: 62px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid var(--blue);
  background: var(--blue);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  transition: color .2s ease, background .2s ease;
}

.p5-contact-submit button:hover {
  color: #fff;
  border-color: var(--blue-light);
  background: var(--blue-light);
}

.p5-contact-submit button:disabled {
  cursor: wait;
  opacity: .65;
}

.p5-contact-submit p {
  min-height: 1.6em;
  margin: 10px 0 0;
  color: #7a8998;
  font-size: 10px;
  line-height: 1.6;
}

.p5-contact-submit p.is-success {
  color: #147942;
}

.p5-contact-submit p.is-error {
  color: #c23b3b;
}

@media (max-width: 980px) {
  .p5-contact-hero__inner,
  .p5-contact-layout {
    grid-template-columns: 1fr;
  }

  .p5-contact-hero__inner {
    gap: 28px;
  }

  .p5-contact-layout {
    gap: 48px;
  }

  .p5-contact-guide {
    position: static;
    display: block;
  }

  .p5-contact-response {
    margin-top: 28px;
  }
}

@media (max-width: 760px) {
  .p5-contact-hero {
    padding: 22px 18px 36px;
  }

  .p5-contact-breadcrumb {
    margin-bottom: 32px;
  }

  .p5-contact-hero__inner {
    display: block;
  }

  .p5-contact-hero h1 {
    margin-top: 8px;
    font-size: 48px;
  }

  .p5-contact-hero__inner > p {
    margin-top: 26px;
    font-size: 13px;
    line-height: 1.85;
  }

  .p5-contact-layout {
    padding: 52px 18px 72px;
  }

  .p5-contact-guide {
    display: block;
  }

  .p5-contact-guide__intro h2 {
    font-size: 30px;
  }

  .p5-contact-response {
    margin-top: 28px;
  }

  .p5-contact-form {
    padding: 30px 20px;
  }

  .p5-contact-form__heading {
    margin-bottom: 30px;
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .p5-contact-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .p5-contact-field {
    margin-bottom: 22px;
  }

  .p5-contact-field input,
  .p5-contact-field select {
    height: 52px;
  }

  .p5-contact-agreement {
    align-items: flex-start;
    line-height: 1.7;
  }
}
