body.mn-contact {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(13, 40, 70, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(53, 185, 131, 0.04) 1px, transparent 1px),
    var(--mn-bg);
  background-size: 54px 54px, 54px 54px, auto;
  color: var(--mn-ink);
  font-family: "Noto Sans JP", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

body.mn-contact *,
body.mn-contact *::before,
body.mn-contact *::after {
  box-sizing: border-box;
}

body.mn-contact img {
  display: block;
  max-width: 100%;
  height: auto;
}

body.mn-contact a {
  color: inherit;
}

body.mn-contact button,
body.mn-contact input,
body.mn-contact select,
body.mn-contact textarea {
  font: inherit;
}

body.mn-contact :focus-visible {
  outline: 3px solid rgba(53, 185, 131, 0.35);
  outline-offset: 4px;
}

.mn-contact-main {
  background: transparent;
}

.mn-page-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 78px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 244, 0.78)),
    var(--mn-bg);
}

.mn-breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--mn-muted);
  font-size: 13px;
  font-weight: 800;
}

.mn-breadcrumb a {
  color: var(--mn-navy);
  text-decoration: none;
}

.mn-breadcrumb a:hover {
  color: var(--mn-green-dark);
}

.mn-page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 56px;
  align-items: end;
}

.mn-page-hero__copy {
  max-width: 780px;
}

.mn-page-hero h1 {
  margin: 0;
  color: var(--mn-navy);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

.mn-page-hero .mn-lead {
  max-width: 720px;
  margin: 20px 0 0;
}

.mn-page-hero__panel {
  border: 1px solid rgba(217, 231, 229, 0.92);
  border-radius: var(--mn-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--mn-shadow-soft);
  padding: 26px;
}

.mn-page-hero__panel p {
  margin: 0 0 16px;
  color: var(--mn-navy);
  font-size: 15px;
  font-weight: 900;
}

.mn-page-hero__panel ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mn-page-hero__panel li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #31495d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.mn-page-hero__panel span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  border-radius: 999px;
  background: var(--mn-paper-tint);
  color: var(--mn-green-dark);
  font-size: 12px;
  font-weight: 900;
}

.mn-contact-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.92));
}

.mn-contact-layout {
  display: flex;
  justify-content: center;
  align-items: start;
}

.mn-contact-form-card {
  width: min(100%, 860px);
  min-width: 0;
  border: 1px solid rgba(217, 231, 229, 0.92);
  border-radius: var(--mn-radius);
  background: #fff;
  box-shadow: var(--mn-shadow-soft);
  padding: 30px;
}

.mn-contact-form-head {
  max-width: 780px;
  margin-bottom: 26px;
}

.mn-contact-form-head h2 {
  margin: 0;
  color: var(--mn-navy);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: 0;
}

.mn-contact-form-head p:not(.mn-eyebrow) {
  margin: 12px 0 0;
  color: var(--mn-muted);
  font-weight: 700;
}

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

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

.mn-contact-form__grid > p {
  min-width: 0;
  margin: 0;
}

.mn-contact-form__grid > p:nth-child(n+3),
.mn-contact-form__grid > p:has(.mn-form-field--full) {
  grid-column: 1 / -1;
}

.mn-form-field {
  display: block;
  min-width: 0;
  margin: 0;
}

.mn-form-field br {
  display: none;
}

.mn-form-field--full {
  grid-column: 1 / -1;
}

.mn-form-field,
.mn-checkbox-field {
  color: var(--mn-navy);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.mn-required,
.mn-optional,
.mn-checkbox-field strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  padding: 2px 6px;
  vertical-align: 2px;
  white-space: nowrap;
}

.mn-required,
.mn-checkbox-field strong {
  background: rgba(242, 111, 90, 0.12);
  color: #b54332;
}

.mn-optional {
  background: var(--mn-paper-tint);
  color: var(--mn-green-dark);
}

.mn-form-field input,
.mn-form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(13, 40, 70, 0.16);
  border-radius: var(--mn-radius);
  background: #fff;
  color: var(--mn-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  padding: 14px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mn-form-field input {
  min-height: 54px;
}

.mn-form-field textarea {
  min-height: 190px;
  resize: vertical;
}

.mn-form-field input::placeholder,
.mn-form-field textarea::placeholder {
  color: #8795a1;
}

.mn-form-field input:hover,
.mn-form-field textarea:hover {
  border-color: rgba(53, 185, 131, 0.42);
}

.mn-form-field input:focus,
.mn-form-field textarea:focus {
  border-color: var(--mn-green);
  background: #fbfffd;
  box-shadow: 0 0 0 4px rgba(53, 185, 131, 0.12);
  outline: 0;
}

.mn-checkbox-field {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: flex-start;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.mn-checkbox-field p {
  margin: 0;
}

.mn-checkbox-field input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--mn-green-dark);
}

.mn-checkbox-field span {
  min-width: 0;
}

.mn-checkbox-field a {
  color: var(--mn-green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mn-checkbox-field .wpcf7-form-control-wrap {
  width: fit-content;
  max-width: 100%;
}

.mn-checkbox-field .wpcf7-list-item {
  display: block;
  margin: 0;
}

.mn-checkbox-field label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
}

.mn-checkbox-field .wpcf7-list-item-label {
  min-width: 0;
}

.mn-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.mn-contact-actions p {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.mn-contact-actions .mn-button,
.mn-contact-actions .wpcf7-submit {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  min-width: 240px;
  max-width: 100%;
}

.mn-contact-form-shell .wpcf7 {
  margin: 0;
}

.mn-contact-form-shell .wpcf7-form-control-wrap {
  display: block;
  margin-top: 8px;
}

.mn-contact-form-shell .wpcf7-not-valid-tip {
  margin-top: 7px;
  color: #b54332;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.mn-contact-form-shell .wpcf7-response-output {
  margin: 24px 0 0 !important;
  border: 1px solid rgba(53, 185, 131, 0.36);
  border-radius: var(--mn-radius);
  background: var(--mn-paper-tint);
  color: #184b36;
  font-weight: 800;
  line-height: 1.8;
  padding: 16px 18px;
}

.mn-contact-form-shell form.invalid .wpcf7-response-output,
.mn-contact-form-shell form.unaccepted .wpcf7-response-output,
.mn-contact-form-shell form.failed .wpcf7-response-output,
.mn-contact-form-shell form.aborted .wpcf7-response-output {
  border-color: rgba(242, 111, 90, 0.34);
  background: rgba(242, 111, 90, 0.08);
  color: #8f3628;
}

.mn-contact-form-shell form.sent .wpcf7-response-output {
  border-color: rgba(53, 185, 131, 0.4);
  background: var(--mn-paper-tint);
  color: #184b36;
}

.mn-contact-form-shell .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: calc(50% + 132px);
  margin: 0;
  transform: translateY(-50%);
}

@media (max-width: 1080px) {
  .mn-page-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mn-page-hero__panel {
    max-width: 620px;
  }
}

@media (max-width: 900px) {
  .mn-page-hero {
    padding-top: 118px;
  }

  .mn-page-hero h1 {
    font-size: 40px;
  }
}

@media (max-width: 640px) {
  body.mn-contact {
    max-width: 100vw;
    font-size: 15px;
  }

  .mn-page-hero,
  .mn-contact-main,
  .mn-contact-section,
  .mn-footer {
    max-width: 100vw;
    overflow-x: hidden;
  }

  body.mn-contact .mn-container {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
  }

  .mn-page-hero {
    padding: 104px 0 58px;
  }

  .mn-breadcrumb {
    margin-bottom: 24px;
  }

  .mn-page-hero h1 {
    overflow-wrap: anywhere;
    font-size: 34px;
  }

  .mn-page-hero__copy,
  .mn-page-hero__copy *,
  .mn-contact-layout,
  .mn-contact-form-card,
  .mn-contact-form-shell,
  .mn-contact-form,
  .mn-contact-form__grid,
  .mn-form-field {
    min-width: 0;
    max-width: 100%;
  }

  .mn-page-hero h1,
  .mn-contact-form-head h2,
  .mn-page-hero .mn-lead,
  .mn-contact-form-head p {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .mn-contact-form-head h2 {
    overflow-wrap: normal;
    word-break: keep-all;
    font-size: clamp(21px, 5.8vw, 25px);
  }

  .mn-page-hero .mn-lead,
  .mn-contact-form-head p,
  .mn-checkbox-field span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .mn-page-hero__panel,
  .mn-contact-form-card {
    padding: 20px;
  }

  .mn-contact-form-card {
    overflow: visible;
    width: 100%;
  }

  .mn-page-hero__panel li {
    grid-template-columns: 42px minmax(0, 1fr);
    font-size: 13px;
  }

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

  .mn-contact-actions {
    align-items: center;
  }

  .mn-contact-actions .mn-button {
    width: 100%;
    min-width: 0;
  }

  .mn-form-field input,
  .mn-form-field textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .mn-checkbox-field {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mn-contact *,
  body.mn-contact *::before,
  body.mn-contact *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
