.contact-page {
  background: var(--cream);
}

.contact-intro {
  position: relative;
  overflow: hidden;
  padding: 82px 0 76px;
  color: var(--white);
  background: var(--ink);
}

.contact-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.contact-orb-one {
  width: 370px;
  height: 370px;
  top: -220px;
  right: -95px;
  background: var(--yellow);
  opacity: .9;
}

.contact-orb-two {
  width: 210px;
  height: 210px;
  bottom: -135px;
  left: -75px;
  border: 48px solid var(--orange);
  opacity: .85;
}

.contact-intro-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .56fr);
  align-items: end;
  gap: 72px;
}

.contact-intro .eyebrow {
  margin-bottom: 20px;
  color: var(--yellow);
}

.contact-intro h1 {
  max-width: 820px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(43px, 6.2vw, 72px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.contact-intro h1 em {
  color: var(--yellow);
  font-style: normal;
}

.contact-lead {
  max-width: 770px;
  margin-top: 30px;
  color: rgba(255,255,255,.78);
  font-size: 17px;
  line-height: 1.95;
}

.contact-system-note {
  max-width: 760px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 14px;
  color: rgba(255,255,255,.74);
  background: rgba(255,255,255,.06);
  font-size: 13px;
  line-height: 1.75;
}

.contact-system-note strong {
  color: var(--white);
}

.contact-quick-facts {
  border-top: 1px solid rgba(255,255,255,.3);
}

.contact-quick-facts div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.contact-quick-facts dt {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.contact-quick-facts dd {
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 700;
}

.contact-form-section {
  padding: 92px 0 104px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 34px;
}

.form-card {
  min-width: 0;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-heading {
  max-width: 690px;
  padding-bottom: 34px;
}

.form-heading h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(35px, 4.5vw, 52px);
  line-height: 1.25;
  letter-spacing: -.03em;
}

.form-heading > p:last-child {
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: 14px;
}

.required-mark,
.field b,
.confirmation b {
  display: inline-block;
  color: var(--orange-dark);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.required-mark {
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange-dark);
}

#lecture-contact-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 34px 0 40px;
  border: 0;
  border-top: 1px solid var(--line);
}

#lecture-contact-form legend {
  width: 100%;
  padding: 0 0 23px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 22px;
  font-weight: 700;
}

#lecture-contact-form legend span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-right: 9px;
  border-radius: 50%;
  place-items: center;
  color: var(--white);
  background: var(--orange-dark);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px 20px;
}

.field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span {
  font-size: 13px;
  font-weight: 800;
}

.field > span small {
  margin-left: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1.5px solid #b9b2a6;
  border-radius: 11px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.field input,
.field select {
  min-height: 53px;
  padding: 12px 14px;
}

.field textarea {
  padding: 14px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #65706d;
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange-dark);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(193,63,22,.13);
  background: #fffefb;
}

.confirmation {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 13px;
  align-items: start;
  margin-top: 2px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--cream);
  cursor: pointer;
}

.confirmation input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--orange-dark);
}

.confirmation span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 27px;
}

.form-actions .button {
  width: 100%;
  min-width: 0;
  cursor: pointer;
  font-family: inherit;
}

.form-actions .button-primary {
  grid-column: 1 / -1;
}

.button-secondary,
.button-copy {
  color: var(--ink);
  background: var(--white);
}

.button-copy {
  border-style: dashed;
  background: var(--cream);
}

.button:focus-visible,
.direct-link:focus-visible,
.line-link:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.form-status {
  min-height: 28px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 12px;
}

.form-status[data-state="success"] {
  color: #1c6a42;
  font-weight: 800;
}

.form-status[data-state="error"] {
  color: #a33117;
  font-weight: 800;
}

.mail-preview {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.mail-preview summary {
  padding: 17px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.mail-preview label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.mail-preview textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: #f4f1ea;
  font: 12px/1.65 "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  resize: vertical;
}

.noscript-note {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid var(--orange-dark);
  color: var(--ink-soft);
  background: #fff4ed;
  font-size: 13px;
}

.contact-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.side-card h2 {
  margin-top: 8px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  line-height: 1.35;
}

.side-label {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}

.fee-card {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.fee-card .side-label {
  color: var(--yellow);
}

.fee-card dl {
  margin-top: 21px;
}

.fee-card dl div {
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,.17);
}

.fee-card dt {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
}

.fee-card dd {
  margin-top: 3px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
}

.fee-card dd strong {
  display: block;
  color: var(--white);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
}

.fee-card dd small {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.58);
  font-size: 9px;
}

.direct-card {
  background: var(--yellow);
}

.direct-link {
  display: grid;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(23,37,37,.25);
  text-decoration: none;
}

.direct-link span {
  font-size: 10px;
  font-weight: 900;
}

.direct-link strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.direct-card > p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.line-link {
  display: inline-flex;
  margin-top: 18px;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
}

.privacy-card p:not(.side-label) {
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}

.send-guide {
  padding: 82px 0 94px;
  background: var(--paper);
}

.send-guide-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.send-guide-heading .section-kicker {
  margin: 0;
}

.send-guide-heading h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.3;
}

.send-guide ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 42px;
  list-style: none;
  background: var(--line);
}

.send-guide li {
  min-height: 188px;
  padding: 28px;
  background: var(--cream);
}

.send-guide li > span {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 900;
}

.send-guide li strong {
  display: block;
  margin-top: 20px;
  font-size: 18px;
}

.send-guide li p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

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

  .contact-intro-grid {
    gap: 45px;
  }

  .contact-quick-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-quick-facts div:nth-child(odd) {
    padding-right: 24px;
  }

  .contact-quick-facts div:nth-child(even) {
    padding-left: 24px;
    border-left: 1px solid rgba(255,255,255,.18);
  }

  .contact-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .form-card {
    padding: 34px 28px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .contact-sidebar,
  .send-guide ol {
    grid-template-columns: 1fr;
  }

  .send-guide-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .send-guide li {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .contact-intro {
    padding: 56px 0 58px;
  }

  .contact-intro h1 {
    font-size: clamp(36px, 11vw, 47px);
  }

  .contact-lead {
    margin-top: 23px;
    font-size: 15px;
  }

  .contact-system-note {
    padding: 14px;
  }

  .contact-quick-facts {
    grid-template-columns: 1fr;
  }

  .contact-quick-facts div:nth-child(odd),
  .contact-quick-facts div:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .contact-form-section {
    padding: 58px 0 70px;
  }

  .form-card {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .form-heading h2 {
    font-size: 34px;
  }

  #lecture-contact-form fieldset {
    padding: 29px 0 34px;
  }

  #lecture-contact-form legend {
    font-size: 19px;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  .form-actions .button-primary {
    grid-column: auto;
  }

  .confirmation {
    grid-template-columns: 20px 1fr;
    padding: 14px;
  }

  .side-card {
    padding: 24px 22px;
  }

  .send-guide {
    padding: 62px 0 72px;
  }
}
