:root {
  --contact-navy: #073e68;
  --contact-ink: #173f5c;
  --contact-muted: #60788a;
  --contact-line: #d8e1e7;
  --contact-bg: #f1f5f7;
}

.ls-contact-page,
.ls-contact-page * {
  box-sizing: border-box;
}

.ls-contact-page {
  margin: 0;
  color: var(--contact-ink);
  background: var(--contact-bg);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.ls-contact-page .site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  padding: 18px clamp(24px, 5vw, 72px);
  border-bottom: 1px solid rgba(7, 62, 104, 0.1);
  background: #fff;
}

.contact-brand img {
  display: block;
  width: auto;
  max-width: 170px;
  max-height: 68px;
}

.contact-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.contact-nav a {
  color: var(--contact-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.contact-nav a[aria-current="page"] {
  padding: 14px 22px;
  color: #fff;
  background: var(--contact-navy);
}

.contact-main {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 132px) 0 clamp(90px, 11vw, 150px);
}

.contact-intro {
  position: sticky;
  top: 48px;
  padding-top: 12px;
}

.contact-eyebrow {
  margin: 0 0 22px;
  color: #7b9bb0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.contact-intro h1 {
  margin: 0 0 28px;
  color: var(--contact-navy);
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.contact-intro > p:not(.contact-eyebrow) {
  margin: 0;
  color: var(--contact-muted);
  font-size: 15px;
  line-height: 2;
}

.contact-guidance {
  margin: 44px 0 0;
  border-top: 1px solid var(--contact-line);
}

.contact-guidance div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--contact-line);
}

.contact-guidance dt {
  color: #7b9bb0;
  font-size: 12px;
  font-weight: 800;
}

.contact-guidance dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.contact-form-card {
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(7, 62, 104, 0.08);
  background: #fff;
  box-shadow: 0 26px 70px rgba(16, 48, 72, 0.09);
}

.contact-form-card > h1,
.contact-form-card > h2:first-child {
  display: none;
}

.contact-form-card p {
  margin: 0 0 26px;
  color: var(--contact-ink);
  font-size: 15px;
  line-height: 1.8;
}

.contact-form-card br + br {
  display: none;
}

.contact-form-card .wpcf7-form-control:not(.wpcf7-radio):not(.wpcf7-checkbox):not(.wpcf7-submit),
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card textarea,
.contact-form-card select {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 9px;
  padding: 14px 16px;
  border: 1px solid #bdcad3;
  border-radius: 0;
  color: var(--contact-ink);
  background: #fbfcfd;
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-form-card textarea {
  min-height: 220px;
  resize: vertical;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus,
.contact-form-card select:focus {
  border-color: #4f86aa;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(38, 113, 163, 0.12);
}

.contact-form-card .wpcf7-list-item {
  margin: 8px 24px 8px 0;
}

.contact-form-card input[type="radio"],
.contact-form-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
}

.contact-form-card .wpcf7-submit,
.contact-form-card input[type="submit"] {
  min-width: 220px;
  padding: 16px 34px;
  border: 1px solid var(--contact-navy);
  border-radius: 0;
  color: #fff;
  background: var(--contact-navy);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.contact-form-card .wpcf7-submit:hover,
.contact-form-card input[type="submit"]:hover {
  color: var(--contact-navy);
  background: #fff;
}

.contact-form-card .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #b53a3a;
  font-size: 12px;
}

.contact-form-card .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-width: 1px;
}

@media (max-width: 700px) {
  .ls-contact-page .site-header {
    min-height: 82px;
    padding: 14px 18px;
  }

  .contact-brand img {
    max-width: 140px;
    max-height: 54px;
  }

  .contact-nav a:not([aria-current="page"]) {
    display: none;
  }

  .contact-nav a[aria-current="page"] {
    padding: 11px 14px;
    font-size: 12px;
  }

  .contact-main {
    grid-template-columns: 1fr;
    gap: 40px;
    width: min(calc(100% - 28px), 620px);
    padding: 48px 0 72px;
  }

  .contact-intro {
    position: static;
  }

  .contact-guidance {
    margin-top: 30px;
  }

  .contact-form-card {
    padding: 28px 20px 34px;
  }

  .contact-form-card p {
    margin-bottom: 22px;
  }

  .contact-form-card .wpcf7-list-item {
    display: block;
    margin-right: 0;
  }

  .contact-form-card .wpcf7-submit,
  .contact-form-card input[type="submit"] {
    width: 100%;
  }
}
