.contact-body {
  background-color: #f4eee2;
}

.contact-page {
  color: #202530;
}

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

.contact-hero {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: grid;
  align-items: end;
  padding: 88px 0 72px;
  background:
    linear-gradient(90deg, rgba(12, 18, 26, .86), rgba(12, 18, 26, .42)),
    url("../images/bon03.jpg") center 42% / cover no-repeat;
  color: #fff9ee;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9px;
  background: repeating-linear-gradient(90deg, #b82e24 0 52px, #d7b36a 52px 82px, #fff4d6 82px 90px);
}

.contact-hero .contact-shell {
  position: relative;
  z-index: 1;
}

.contact-kicker,
.contact-guide__label {
  color: #e2bf77;
  font: 700 .78rem/1 'Noto Serif JP', serif;
  letter-spacing: .32em;
}

.contact-hero h1 {
  max-width: 720px;
  margin: 18px 0 20px;
  font: 600 clamp(2.7rem, 6vw, 5.4rem)/1.16 'Noto Serif JP', serif;
  letter-spacing: .12em;
}

.contact-lead {
  max-width: 780px;
  color: rgba(255, 249, 238, .9);
  font: 500 1.08rem/2 'Noto Serif JP', serif;
  letter-spacing: .06em;
}

.contact-main {
  padding: 72px 0 96px;
  background:
    linear-gradient(90deg, rgba(160, 39, 29, .07), transparent 24%, transparent 74%, rgba(18, 62, 84, .08)),
    rgba(247, 242, 232, .68);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(520px, 1.18fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: start;
}

.contact-guide {
  position: sticky;
  top: 124px;
  padding-top: 16px;
}

.contact-guide h2 {
  margin: 18px 0 18px;
  color: #08213f;
  font: 600 clamp(1.8rem, 3vw, 2.6rem)/1.48 'Noto Serif JP', serif;
  letter-spacing: .08em;
}

.contact-guide > p {
  color: rgba(32, 37, 48, .78);
  line-height: 2;
}

.contact-notes {
  margin-top: 36px;
  padding: 28px 28px 30px;
  border-left: 4px solid #b82e24;
  background: rgba(255, 250, 240, .78);
  box-shadow: 0 20px 48px rgba(57, 39, 19, .09);
}

.contact-notes h3 {
  margin: 0 0 18px;
  color: #08213f;
  font: 600 1.2rem/1.5 'Noto Serif JP', serif;
  letter-spacing: .06em;
}

.contact-notes ul {
  margin: 0;
  padding-left: 1.2em;
  color: rgba(32, 37, 48, .78);
  line-height: 1.85;
}

.contact-notes li + li {
  margin-top: 10px;
}

.contact-form-wrap {
  border: 1px solid rgba(8, 33, 63, .12);
  background: rgba(255, 252, 246, .88);
  box-shadow: 0 28px 72px rgba(41, 34, 22, .16);
  padding: clamp(24px, 4vw, 48px);
}

.contact-message {
  margin-bottom: 24px;
  padding: 20px 22px;
  border: 1px solid transparent;
  line-height: 1.8;
}

.contact-message h2 {
  margin: 0 0 8px;
  font: 600 1.35rem/1.4 'Noto Serif JP', serif;
  letter-spacing: .06em;
}

.contact-message--success {
  border-color: rgba(30, 106, 92, .24);
  background: rgba(220, 243, 232, .86);
  color: #175348;
}

.contact-message--error {
  border-color: rgba(184, 46, 36, .22);
  background: rgba(255, 231, 226, .88);
  color: #8d241b;
}

.contact-message--error p + p {
  margin-top: 6px;
}

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

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

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

.contact-field label {
  color: #08213f;
  font-weight: 700;
  letter-spacing: .04em;
}

.contact-field label span {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 0 8px;
  background: #b82e24;
  color: #fff8ea;
  font-size: .72rem;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(8, 33, 63, .18);
  border-radius: 0;
  background: #fffaf0;
  color: #202530;
  font: inherit;
  line-height: 1.5;
  letter-spacing: 0;
}

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

.contact-field textarea {
  min-height: 220px;
  resize: vertical;
  padding: 16px;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 2px solid rgba(18, 62, 84, .42);
  outline-offset: 2px;
  border-color: #123e54;
}

.contact-field--lesson[hidden] {
  display: none;
}

.contact-submit {
  width: min(240px, 100%);
  min-height: 58px;
  border: 0;
  background: #08213f;
  color: #fff7e8;
  cursor: pointer;
  font: 700 1rem/1 'Zen Kaku Gothic New', sans-serif;
  letter-spacing: .12em;
  transition: background .2s ease, transform .2s ease;
}

.contact-submit:hover {
  background: #b82e24;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .contact-hero {
    min-height: 350px;
    padding: 72px 0 58px;
  }

  .contact-lead br {
    display: none;
  }

  .contact-main {
    padding: 52px 0 72px;
  }

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

  .contact-guide {
    position: static;
  }
}

@media (max-width: 640px) {
  .contact-shell {
    width: min(100% - 28px, 1180px);
  }

  .contact-hero {
    min-height: 330px;
    background-position: 58% center;
  }

  .contact-hero h1 {
    letter-spacing: .08em;
  }

  .contact-lead {
    font-size: .98rem;
    line-height: 1.9;
  }

  .contact-notes {
    padding: 22px 20px 24px;
  }

  .contact-form-wrap {
    padding: 22px 16px 28px;
  }

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

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