/* =========================================================
CONTACT
========================================================= */
.p-contact {
  --contact-ink: #15263d;
  --contact-navy: #1e385b;
  --contact-blue: #3f83c7;
  --contact-blue-2: #72aee4;
  --contact-cyan: #8ed8e7;
  --contact-ice: #edf5fb;
  --contact-surface: #f7fafc;
  --contact-muted: #63768a;
  --contact-line: rgba(30, 56, 91, .16);
  --contact-line-strong: rgba(30, 56, 91, .30);
  background: var(--contact-surface);
  color: var(--contact-ink);
}

.p-contact .l-main {
  overflow: hidden;
  padding: 84px 0 110px;
  position: relative;
}

.p-contact .l-main::before {
  background: rgba(114, 174, 228, .08);
  clip-path: polygon(18% 0, 100% 0, 100% 78%, 0 100%, 0 34%);
  content: "";
  height: 560px;
  pointer-events: none;
  position: absolute;
  right: -12vw;
  top: -130px;
  width: 62vw;
  z-index: 0;
}

.p-contact-form,
.p-contact-thanks__section {
  position: relative;
  z-index: 1;
}

.p-contact__inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 1040px;
  width: calc(100% - 48px);
}

/* =========================================================
HEAD
========================================================= */
.p-contact-head {
  margin: 0 auto 54px;
  max-width: 780px;
  text-align: center;
}

.p-contact-head__en {
  color: var(--contact-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  margin: 0 0 14px;
}

.p-contact h1 {
  color: var(--contact-ink);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.35;
  margin: 0;
  text-wrap: balance;
}

.p-contact-head__lead {
  color: #40566e;
  font-size: 16px;
  line-height: 2;
  margin: 24px 0 0;
}

.p-contact-note {
  align-items: center;
  background: #fff;
  border: 1px solid var(--contact-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  margin: 0 0 20px;
  padding: 17px 20px;
}

.p-contact-note p {
  color: var(--contact-muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}

.p-contact-required,
.p-contact .must,
.p-contact .optional {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: .08em;
  line-height: 1;
  min-height: 24px;
  min-width: 42px;
  padding: 5px 8px;
}

.p-contact-required,
.p-contact .must {
  background: var(--contact-navy);
  color: #fff;
}

.p-contact .optional {
  background: #eef2f6;
  color: #6d7f90;
}

/* =========================================================
MAILFORM PRO LAYOUT RESET
========================================================= */
.p-contact form#mailformpro {
  margin: 0;
  padding: 0;
  width: 100%;
}

.p-contact form#mailformpro dl.mailform {
  margin: 0;
  padding: 0;
  width: 100%;
}

.p-contact form#mailformpro dl.mailform > dt,
.p-contact form#mailformpro dl.mailform > dd {
  box-sizing: border-box;
  float: none;
  margin: 0;
  text-align: left;
  width: auto;
}

.p-contact form#mailformpro dl.mailform > dt {
  clear: none;
  font-size: inherit;
  padding: 24px 26px;
}

.p-contact form#mailformpro dl.mailform > dd {
  clear: none;
  font-size: inherit;
  line-height: inherit;
  padding: 24px 28px 30px;
}

/* =========================================================
FORM
========================================================= */
.p-contact #mailformpro {
  background: #fff;
  border: 1px solid var(--contact-line);
  position: relative;
}

.p-contact #mailformpro::before {
  background: var(--contact-blue);
  content: "";
  height: 4px;
  left: -1px;
  position: absolute;
  top: -1px;
  width: 84px;
  z-index: 2;
}

.p-contact .mailform {
  background: #fff;
  border: 0;
  margin: 0;
}

.p-contact form#mailformpro dl.mailform > dt,
.p-contact form#mailformpro dl.mailform > dd {
  border: 0;
  border-bottom: 1px solid var(--contact-line);
  margin: 0;
}

.p-contact form#mailformpro dl.mailform > dt {
  align-items: center;
  background: #f4f8fb;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 24px 26px;
}

.p-contact form#mailformpro dl.mailform > dd {
  background: #fff;
  padding: 24px 28px 30px;
}

.p-contact-label {
  color: var(--contact-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.65;
}

.p-contact .mfp_rows {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.p-contact .mfp_col10,
.p-contact .mfp_col5 {
  width: 100%;
}

.p-contact input[type="text"],
.p-contact input[type="email"],
.p-contact input[type="tel"],
.p-contact textarea,
.p-contact select {
  appearance: none;
  background: #fbfdff;
  border: 1px solid #bfcbd7;
  border-radius: 0;
  color: var(--contact-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  min-height: 54px;
  padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
}

.p-contact select {
  background-image: linear-gradient(45deg, transparent 50%, var(--contact-navy) 50%), linear-gradient(135deg, var(--contact-navy) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 44px;
}

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

.p-contact input[type="text"]:focus,
.p-contact input[type="email"]:focus,
.p-contact input[type="tel"]:focus,
.p-contact textarea:focus,
.p-contact select:focus {
  background: #fff;
  border-color: var(--contact-blue);
  box-shadow: 0 0 0 3px rgba(63, 131, 199, .12);
  outline: 0;
}

.p-contact input::placeholder,
.p-contact textarea::placeholder {
  color: #91a0ad;
}

.p-contact-help {
  color: var(--contact-muted);
  font-size: 13px;
  line-height: 1.75;
  margin: 10px 0 0;
}

.p-contact-consent {
  align-items: flex-start;
  cursor: pointer;
  display: inline-flex;
  gap: 11px;
  line-height: 1.7;
}

.p-contact-consent input[type="checkbox"] {
  accent-color: var(--contact-blue);
  flex-shrink: 0;
  height: 20px;
  margin: 3px 0 0;
  width: 20px;
}

.p-contact-consent span {
  color: #40566e;
  font-size: 14px;
}

.p-contact-consent a {
  color: var(--contact-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* =========================================================
BUTTON
========================================================= */
.p-contact .mfp_buttons,
.p-contact-buttons {
  align-items: center;
  background: #fff;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 42px 24px 46px;
}

.p-contact .mfp_buttons button {
  align-items: center;
  background: var(--contact-navy);
  border: 1px solid var(--contact-navy);
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  gap: 34px;
  justify-content: space-between;
  line-height: 1.4;
  min-height: 58px;
  padding: 0 20px 0 24px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  width: min(100%, 340px);
}

.p-contact .mfp_buttons button:hover,
.p-contact .mfp_buttons button:focus-visible {
  background: var(--contact-blue);
  border-color: var(--contact-blue);
  transform: translateY(-2px);
}

/* =========================================================
MAILFORM PRO OVERRIDE
========================================================= */
.p-contact #mailformpro .mfp_err,
.p-contact #mailformpro .mfp_error {
  color: #c43e3e;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}

.p-contact #mailformpro .mfp_element_text,
.p-contact #mailformpro .mfp_element_number,
.p-contact #mailformpro .mfp_element_select-one,
.p-contact #mailformpro .mfp_element_email,
.p-contact #mailformpro .mfp_element_tel,
.p-contact #mailformpro .mfp_element_textarea {
  max-width: none;
}

/* =========================================================
THANKS
========================================================= */
.p-contact-thanks .l-main {
  min-height: 70vh;
}

.p-contact-thanks__box {
  background: #fff;
  border: 1px solid var(--contact-line);
  margin: 20px auto 0;
  max-width: 840px;
  padding: 72px 70px 76px;
  position: relative;
  text-align: center;
}

.p-contact-thanks__box::before {
  background: var(--contact-blue);
  content: "";
  height: 4px;
  left: 50%;
  position: absolute;
  top: -1px;
  transform: translateX(-50%);
  width: 100px;
}

.p-contact-thanks__box h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.p-contact-thanks__lead {
  color: #40566e;
  font-size: 16px;
  line-height: 2;
  margin: 28px 0 0;
}

.p-contact-thanks__text {
  color: var(--contact-muted);
  font-size: 14px;
  line-height: 1.9;
  margin: 18px 0 0;
}

.p-contact-thanks__action {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.p-contact-thanks__action a {
  align-items: center;
  border: 1px solid var(--contact-navy);
  color: var(--contact-navy);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 30px;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px 0 22px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.p-contact-thanks__action a:hover,
.p-contact-thanks__action a:focus-visible {
  background: var(--contact-blue);
  border-color: var(--contact-blue);
  color: #fff;
}

@media screen and (min-width: 768px) {
  .p-contact form#mailformpro dl.mailform {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .p-contact .mailform dt,
  .p-contact form#mailformpro dl.mailform > dd {
    min-width: 0;
  }

  .p-contact form#mailformpro dl.mailform > dt {
    border-right: 1px solid var(--contact-line);
  }
}

@media screen and (max-width: 767px) {
  .p-contact__inner {
    width: calc(100% - 32px);
  }

  .p-contact .l-main {
    padding: 54px 0 76px;
  }

  .p-contact .l-main::before {
    height: 360px;
    right: -34vw;
    top: -70px;
    width: 100vw;
  }

  .p-contact-head {
    margin-bottom: 38px;
    text-align: left;
  }

  .p-contact-head__en {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .p-contact h1 {
    font-size: 34px;
  }

  .p-contact-head__lead {
    font-size: 15px;
    line-height: 1.9;
    margin-top: 18px;
  }

  .p-contact-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 15px 16px;
  }

  .p-contact form#mailformpro dl.mailform > dt {
    padding: 18px 17px;
  }

  .p-contact form#mailformpro dl.mailform > dd {
    padding: 18px 17px 23px;
  }

  .p-contact textarea {
    min-height: 190px;
  }

  .p-contact .mfp_buttons,
  .p-contact-buttons {
    padding: 30px 17px 34px;
  }

  .p-contact .mfp_buttons button {
    min-height: 56px;
    width: 100%;
  }

  .p-contact-thanks__box {
    padding: 48px 20px 52px;
    text-align: left;
  }

  .p-contact-thanks__box h1 {
    font-size: 30px;
    line-height: 1.5;
  }

  .p-contact-thanks__lead,
  .p-contact-thanks__text {
    text-align: left;
  }

  .p-contact-thanks__action {
    justify-content: flex-start;
  }

  .p-contact-thanks__action a {
    width: 100%;
  }
}

/* =========================================================
C2-Lab SITE HEADER / FOOTER
トップページと同じヘッダー・フッターをお問い合わせページでも使用
========================================================= */
.p-contact .p-c2top-header {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 252, .92);
  border-bottom: 1px solid var(--contact-line);
  display: flex;
  min-height: 82px;
  padding: 0 38px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.p-contact .p-c2top-header a,
.p-contact .p-c2top-footer a {
  color: inherit;
  text-decoration: none;
}

.p-contact .p-c2top-header img,
.p-contact .p-c2top-footer img {
  display: block;
  height: auto;
  max-width: 100%;
}

.p-contact .p-c2top-header__logo {
  flex: 0 0 auto;
  width: 150px;
}

.p-contact .p-c2top-header__nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.p-contact .p-c2top-header__nav a {
  color: #334c68;
  font-size: 14px;
  font-weight: 700;
  padding: 29px 0 27px;
  position: relative;
}

.p-contact .p-c2top-header__nav a::after {
  background: var(--contact-blue);
  bottom: 21px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  width: 100%;
}

.p-contact .p-c2top-header__nav a:hover::after,
.p-contact .p-c2top-header__nav a:focus-visible::after {
  transform: scaleX(1);
}

.p-contact .p-c2top-header__contact {
  align-items: center;
  background: var(--contact-navy);
  color: #fff !important;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 24px;
  margin-left: 34px;
  min-height: 48px;
  padding: 0 18px 0 20px;
  transition: background .2s ease;
}

.p-contact .p-c2top-header__contact:hover,
.p-contact .p-c2top-header__contact:focus-visible {
  background: var(--contact-blue);
}

.p-contact .p-c2top-footer {
  align-items: center;
  background: #f8fafc;
  border-top: 1px solid var(--contact-line);
  display: flex;
  justify-content: space-between;
  min-height: 110px;
  padding: 0 max(38px, calc((100vw - 1240px) / 2 + 54px));
}

.p-contact .p-c2top-footer img {
  width: 145px;
}

.p-contact .p-c2top-footer p {
  color: var(--contact-muted);
  font-size: 12px;
  margin: 0;
}

@media screen and (max-width: 991px) {
  .p-contact .p-c2top-header {
    min-height: 72px;
    padding: 0 22px;
  }

  .p-contact .p-c2top-header__logo {
    width: 130px;
  }

  .p-contact .p-c2top-header__nav {
    display: none;
  }

  .p-contact .p-c2top-header__contact {
    margin-left: auto;
    min-height: 44px;
  }
}

@media screen and (max-width: 620px) {
  .p-contact .p-c2top-header {
    padding: 0 16px;
  }

  .p-contact .p-c2top-header__logo {
    width: 118px;
  }

  .p-contact .p-c2top-header__contact {
    font-size: 13px;
    gap: 12px;
    padding: 0 14px;
  }

  .p-contact .p-c2top-footer {
    min-height: 90px;
    padding: 0 18px;
  }

  .p-contact .p-c2top-footer img {
    width: 120px;
  }
}

/* Mailform Pro: submit button text-shadow reset */
.p-contact .mfp_element_submit.mfp_element_all {
  text-shadow: none !important;
}

/* Mailform Pro: button text-shadow reset */
.p-contact .mfp_element_button {
  text-shadow: none !important;
}
