/* CONTACT page only. Keep every selector under .contact-page. */
.contact-page {
  line-break: strict;
  word-break: normal;
  overflow-wrap: normal;
}

/* HERO */
.contact-page .contact-hero {
  padding: 64px 0 96px;
  background: var(--white);
}

.contact-page .contact-hero .about-hero-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.contact-page .contact-hero .about-hero-copy {
  max-width: 920px;
  min-width: 0;
}

.contact-page .contact-hero h1 {
  max-width: 720px;
  margin-bottom: 34px;
  line-break: strict;
  text-wrap: pretty;
  word-break: auto-phrase;
}

.contact-page .contact-hero .about-hero-body {
  max-width: 920px;
}

.contact-page .contact-hero-note {
  color: var(--muted);
  font-size: .88rem;
}

/* FORM */
.contact-page .contact-form-section {
  padding: 0 0 120px;
  background: var(--white);
}

.contact-page .contact-form {
  width: min(880px, 100%);
  min-width: 0;
  margin: 0;
}

.contact-page .contact-error-summary,
.contact-page .contact-form-status {
  width: min(880px, 100%);
  margin: 0 0 32px;
}

.contact-page .contact-error-summary {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--brand-red);
  background: var(--white);
}

.contact-page .contact-error-summary > p {
  margin: 0;
  font-weight: 700;
}

.contact-page .contact-error-summary ul {
  margin: 10px 0 0;
  padding-left: 1.4em;
}

.contact-page .contact-error-summary li + li {
  margin-top: 4px;
}

.contact-page .contact-error-summary a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-page .contact-form-status {
  padding-left: 18px;
  border-left: 2px solid var(--brand-yellow);
  line-height: 1.8;
}

.contact-page .contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.contact-page .contact-block {
  min-width: 0;
  padding-top: 0;
  border-top: 0;
}

.contact-page .contact-block + .contact-block {
  margin-top: 40px;
}

.contact-page .contact-block-info + .contact-block {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.contact-page .contact-block + .contact-block.contact-block-consent {
  margin-top: 52px;
}

.contact-page .contact-block h2 {
  margin: 0 0 28px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1.5;
}

.contact-page .contact-block h2 label {
  display: inline;
  margin: 0;
  font: inherit;
  font-weight: inherit;
}

.contact-page .contact-field + .contact-field {
  margin-top: 32px;
}

.contact-page .contact-field label {
  display: flex;
  min-width: 0;
  margin-bottom: 10px;
  gap: 0 10px;
  align-items: baseline;
  flex-wrap: wrap;
  font-weight: 700;
  line-height: 1.7;
}

.contact-page .contact-field-status {
  flex: 0 0 auto;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.4;
}

.contact-page .contact-field-status-required {
  color: var(--brand-red);
}

.contact-page .contact-field-status-optional {
  color: var(--muted);
}

.contact-page .contact-field input,
.contact-page .contact-block > textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid #cfc8bd;
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 16px;
  line-height: 1.75;
}

.contact-page .contact-block > textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-page .contact-field input:hover,
.contact-page .contact-block > textarea:hover {
  border-color: #aaa39a;
}

.contact-page .contact-field input:focus-visible,
.contact-page .contact-block > textarea:focus-visible,
.contact-page .contact-consent input:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
}

.contact-page [aria-invalid="true"] {
  border-color: var(--brand-red);
}

.contact-page .contact-error {
  margin: 8px 0 0;
  color: #a30f1f;
  font-size: .85rem;
  line-height: 1.7;
}

.contact-page .contact-help {
  margin: -10px 0 10px;
  color: #5f5b56;
  font-size: .82rem;
  line-height: 1.7;
}

.contact-page .contact-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.contact-page .contact-consent input {
  position: relative;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  border: 1px solid #aaa39a;
  border-radius: 0;
  appearance: none;
  background: var(--white);
  cursor: pointer;
}

.contact-page .contact-consent input:checked {
  border-color: var(--brand-red);
  background: var(--brand-red);
}

.contact-page .contact-consent input:checked::after {
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  content: "";
  transform: rotate(45deg);
}

.contact-page .contact-consent label {
  min-width: 0;
  margin: 0;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.7;
}

.contact-page .contact-consent-confirm {
  display: inline-block;
}

.contact-page .contact-consent a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-page .contact-consent a:hover {
  color: var(--muted);
}

.contact-page .contact-submit-area {
  margin-top: 48px;
}

.contact-page .contact-submit-note {
  margin: 0 0 18px;
  color: #5f5b56;
  font-size: .82rem;
  line-height: 1.7;
}

.contact-page .contact-submit {
  min-width: 160px;
  border-radius: 0;
  cursor: pointer;
}

/* THANKS */
.contact-page .contact-hero[aria-labelledby="contact-thanks-title"] {
  padding-bottom: 72px;
}

.contact-page #contact-thanks-title {
  margin-bottom: 0;
}

.contact-page .contact-thanks-content {
  width: min(880px, 100%);
}

.contact-page .contact-thanks-heading {
  margin: 0 0 24px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1.5;
}

.contact-page .contact-thanks-copy {
  margin: 0;
  line-height: 1.9;
}

.contact-page .contact-thanks-note {
  margin: 12px 0 0;
  color: #5f5b56;
  font-size: .88rem;
  line-height: 1.7;
}

.contact-page .contact-thanks-home {
  min-width: 160px;
  margin-top: 48px;
}

@media (max-width: 920px) {
  .contact-page .contact-hero {
    padding: 76px 0 84px;
  }

  .contact-page .contact-form-section {
    padding-bottom: 92px;
  }

}

@media (max-width: 680px) {
  .contact-page .contact-hero {
    padding: 64px 0 78px;
  }

  .contact-page .contact-form-section {
    padding-bottom: 68px;
  }

  .contact-page .contact-block {
    padding-top: 0;
  }

  .contact-page .contact-block h2 {
    font-size: 20px;
    text-wrap: pretty;
    word-break: auto-phrase;
  }

  .contact-page .contact-field-status {
    display: inline-block;
  }

  .contact-page .contact-block + .contact-block {
    margin-top: 32px;
  }

  .contact-page .contact-block-info + .contact-block {
    margin-top: 48px;
    padding-top: 48px;
  }

  .contact-page .contact-block + .contact-block.contact-block-consent {
    margin-top: 44px;
  }

  .contact-page .contact-block > textarea {
    min-height: 150px;
  }

  .contact-page .contact-submit {
    width: 100%;
  }

  .contact-page .contact-thanks-home {
    width: 100%;
    margin-top: 40px;
  }

  .contact-page .contact-hero[aria-labelledby="contact-thanks-title"] {
    padding-bottom: 52px;
  }

  .contact-page .contact-thanks-heading {
    margin-bottom: 22px;
  }
}
