@charset "UTF-8";

/* Keep the consent error aligned with the checkbox, not the full form. */
form#mailformpro .consent-check-group {
  display: table;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
form#mailformpro .consent-check-group > label {
  margin-left: 0;
  margin-right: 0;
}
form#mailformpro .consent-check-group > .mfp_err {
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
  padding-left: 22px;
  background-position: 4px 5px;
  text-align: left;
  font-size: 11px;
  line-height: 1.8;
  white-space: nowrap;
  overflow-wrap: normal;
}
@media (max-width: 359px) {
  form#mailformpro .consent-check-group > .mfp_err {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
/* Shared confirmation presentation (mailformpro creates this outside the form). */
body #mfp_phase_confirm h4 {
  font-size: 36px !important;
  line-height: 1.5;
  text-align: center;
}
body #mfp_confirm_table {
  border: 1px solid #d8d8d8 !important;
  background: #fff !important;
  box-shadow: 0 14px 45px rgba(0, 0, 0, .2) !important;
  font-family: inherit !important;
}
body #mfp_confirm_table tr th,
body #mfp_confirm_table tr td {
  padding: 10px;
  border-color: #ddd !important;
  font-size: 12px !important;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body #mfp_confirm_table th {
  color: #333 !important;
  background: #f7f7f6 !important;
}
body #mfp_phase_confirm .mfp_buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
}
body #mfp_phase_confirm button#mfp_button_send,
body #mfp_phase_confirm button#mfp_button_cancel {
  width: auto;
  min-width: 110px;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #222;
  background: linear-gradient(#fff, #ddd);
  box-shadow: none;
  text-shadow: none;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  cursor: pointer;
}
@media (max-width: 767px) {
  body #mfp_phase_confirm h4 { font-size: 24px !important; }
}

/* Contact pages */
.contact-page {
  --contact-red: #d70012;
  --contact-text: #292929;
  --contact-muted: #666;
  --contact-line: #dedede;
  --contact-surface: #f6f6f6;
  color: var(--contact-text);
  background: #fff;
}

/* ==========================================================
   contact共通ページヒーロー
   背景画像は assets/images/contact/contact-page-hero.jpg に配置する
   ========================================================== */
.contact-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 510px;
  overflow: hidden;
  color: var(--contact-text);
  background-color: #f5f6f6;
  background-image:
    linear-gradient(
      90deg,
      #fff 4%,
      rgba(255, 255, 255, .98) 29%,
      rgba(255, 255, 255, .78) 45%,
      rgba(255, 255, 255, 0) 70%
    ),
    url("../images/contact/contact-page-hero.jpg");
  background-position: center, center right;
  background-size: cover;
}

.contact-page-hero__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1180px);
  margin-inline: auto;
  padding-block: 64px;
}

main.contact-page p.contact-page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  color: var(--contact-red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .17em;
}

.contact-page-hero__eyebrow::after {
  display: block;
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

main.contact-page .contact-page-hero h1 {
  margin: 0;
  font-family:
    "A-OTF 教科書ICA Pro", "リュウミン R-KL", "游明朝", YuMincho,
    "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E",
    "ＭＳ Ｐ明朝", "ＭＳ 明朝", "Sawarabi Mincho", serif;
  font-size: 64px !important;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .1em;
}

.contact-content {
  padding: 90px 24px 130px;
  background-image: linear-gradient(rgba(30, 30, 30, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 30, 30, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

.contact-content__inner,
.contact-thanks__inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.contact-intro {
  padding: 52px 60px;
  background: #fff;
  text-align: center;
}

.contact-intro > p:first-child {
  margin: 0;
  font-size: 17px;
  line-height: 2;
}

.contact-phone {
  margin: 34px auto 0;
  padding: 30px 24px;
  border-top: 1px solid var(--contact-line);
  border-bottom: 1px solid var(--contact-line);
}

.contact-phone__label {
  margin: 0 0 6px;
  color: var(--contact-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.contact-phone a {
  display: inline-block;
  color: var(--contact-text);
  font-family: Arial, sans-serif;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.contact-phone > p:last-child {
  margin: 8px 0 0;
  color: var(--contact-muted);
  font-size: 13px;
}

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

.contact-recruit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 50px;
  align-items: center;
  margin-top: 42px;
  padding: 46px 50px;
  color: #fff;
  background: #272727;
}

.contact-recruit__en,
.contact-form-section__en,
.contact-thanks__en {
  margin: 0 0 10px;
  color: var(--contact-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.contact-recruit h2,
.contact-form-section__heading h2,
.contact-thanks h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.contact-recruit > div:first-child > p:last-child {
  margin: 18px 0 0;
  color: #ddd;
  line-height: 1.8;
}

.contact-recruit__actions {
  display: grid;
  gap: 12px;
}

.contact-recruit__tel,
.contact-recruit__entry {
  color: inherit;
  text-decoration: none;
}

.contact-recruit__tel {
  display: grid;
  gap: 2px;
  padding: 20px 24px;
  border: 1px solid #5c5c5c;
}

.contact-recruit__tel span,
.contact-recruit__tel small {
  color: #ccc;
  font-size: 12px;
}

.contact-recruit__tel strong {
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.contact-recruit__entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 24px;
  background: var(--contact-red);
  transition: opacity 0.25s ease;
}

.contact-recruit__entry:hover {
  opacity: 0.82;
}

.contact-form-section {
  margin-top: 70px;
  padding: 58px 60px 68px;
  background: #fff;
}

.contact-form-section__heading {
  margin-bottom: 42px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--contact-line);
}

.contact-form-section__heading > p:last-child {
  margin: 14px 0 0;
  color: var(--contact-muted);
  font-size: 13px;
}

.contact-required,
.contact-page .Must {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 20px;
  margin-left: 10px;
  padding: 2px 7px;
  color: #fff;
  background: var(--contact-red);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.contact-required {
  margin: 0 7px 0 0;
}

.contact-page #mailformpro {
  margin: 0;
}

.contact-page .contact-form-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.contact-page .contact-form-table th,
.contact-page .contact-form-table td {
  padding: 28px 0;
  border-bottom: 1px solid var(--contact-line);
  text-align: left;
  vertical-align: top;
}

.contact-page .contact-form-table th {
  width: 30%;
  padding-right: 30px;
  font-size: 15px;
  font-weight: 500;
}

.contact-page .contact-form-table td {
  width: 70%;
}

.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page input[type="tel"],
.contact-page select,
.contact-page textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--contact-text);
  background: #fafafa;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.contact-page input:focus,
.contact-page select:focus,
.contact-page textarea:focus {
  border-color: var(--contact-red);
  box-shadow: 0 0 0 2px rgba(215, 0, 18, 0.08);
  outline: none;
}

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

.contact-name-fields label {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.contact-name-fields label > span {
  color: var(--contact-muted);
  font-size: 13px;
}

.contact-page .slctBtn {
  display: block;
  position: relative;
}

.contact-page .mfp_buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
  padding: 0;
}

.contact-page .mfp_buttons button {
  min-width: 230px;
  min-height: 62px;
  padding: 12px 24px;
  border: 1px solid var(--contact-red);
  border-radius: 0 34px 34px 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.contact-page .mfp_buttons button[type="submit"] {
  color: #fff;
  background: var(--contact-red);
}

.contact-page .mfp_buttons button[type="reset"] {
  color: var(--contact-text);
  background: #fff;
  border-color: #999;
}

.contact-page .mfp_buttons button:hover {
  opacity: 0.82;
}

/* Match the partner-entry form without changing fields or mailformpro. */
.contact-page .contact-form-section {
  padding: 0;
  background: transparent;
}
.contact-page .contact-form-section__heading {
  border-bottom: 0;
}
.contact-page .contact-form-table {
  display: block;
  padding: 0 28px;
  border: 1px solid #d8d8d8;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 7px 24px rgba(0, 0, 0, .055);
}
.contact-page .contact-form-table tbody {
  display: block;
}
.contact-page .contact-form-table tr {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #e4e4e4;
}
.contact-page .contact-form-table tr:last-child {
  border-bottom: 0;
}
.contact-page #mailformpro .contact-form-table th,
.contact-page #mailformpro .contact-form-table td {
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
}
.contact-page #mailformpro .contact-form-table th {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px 0 4px;
  color: #2b2b2b;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.55;
}
.contact-page .contact-required,
.contact-page .Must {
  flex-shrink: 0;
  min-width: 34px;
  min-height: 23px;
  margin-left: 0;
  padding: 2px 4px;
  border: 1px solid var(--contact-red);
  border-radius: 0;
  color: var(--contact-red);
  background: #fff;
  font-size: 10px;
}
.contact-page #mailformpro .contact-form-table input:not([type="hidden"]),
.contact-page #mailformpro .contact-form-table select,
.contact-page #mailformpro .contact-form-table textarea {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  margin: 0;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  color: #282828;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .025);
  font-family: inherit;
  font-size: 16px;
}
.contact-page #mailformpro .contact-form-table input:not([type="hidden"]),
.contact-page #mailformpro .contact-form-table select {
  height: 54px !important;
  min-height: 54px;
  padding: 0 17px;
}
.contact-page #mailformpro .contact-form-table textarea {
  height: 230px;
  min-height: 165px;
  padding: 16px 17px;
}
.contact-page #mailformpro .contact-form-table :is(input, select, textarea):focus {
  border-color: var(--contact-red);
  box-shadow: 0 0 0 3px rgba(214, 0, 18, .08);
}
.contact-page .contact-form-table .contact-name-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.contact-page .contact-name-fields label {
  display: block;
  min-width: 0;
}
.contact-page #mailformpro input::placeholder,
.contact-page #mailformpro textarea::placeholder {
  color: #aaa;
  opacity: 1;
}
.contact-page .contact-form-table .mfp_err {
  grid-column: 1 / -1;
}
.contact-page #mailformpro .mfp_buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
}
.contact-page #mailformpro .mfp_buttons button {
  width: min(100%, 580px);
  min-width: 0;
  min-height: 76px;
  border-radius: 0;
  box-shadow: none;
  text-shadow: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
}
.contact-page #mailformpro .mfp_buttons button[type="submit"] {
  position: relative;
  padding-inline: 45px;
}
.contact-page #mailformpro .mfp_buttons button[type="submit"]::after {
  position: absolute;
  right: 24px;
  content: "→";
}
.contact-page #mailformpro .mfp_buttons button[type="reset"] {
  width: min(100%, 230px);
  min-height: 48px;
  font-size: 14px;
  font-weight: 400;
}
@media (max-width: 767px) {
  .contact-page .contact-form-table { padding: 0 15px; }
  .contact-page .contact-form-table tr {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 20px 0;
  }
  .contact-page #mailformpro .contact-form-table th { padding: 0; min-height: 28px; }
  .contact-page #mailformpro .contact-form-table td { padding: 0; }
  .contact-page .contact-form-table .contact-name-fields { gap: 10px; }
  .contact-page #mailformpro .contact-form-table input:not([type="hidden"]),
  .contact-page #mailformpro .contact-form-table select {
    height: 52px !important;
    min-height: 52px;
  }
  .contact-page #mailformpro .mfp_buttons button {
    min-height: 68px;
    font-size: 15px;
  }
}
@media (max-width: 420px) {
  .contact-page .contact-form-table .contact-name-fields { grid-template-columns: 1fr; }
}

/* Reuse the homepage banner at the contact content width. */
.contact-page .partner-recruit-banner {
  width: 100%;
  margin: 42px 0 0;
}

.contact-page .contact-consent {
  width: min(100%, 760px);
  margin: 34px auto 0;
}
form#mailformpro .contact-consent label {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: center;
  gap: 13px;
  white-space: normal;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.contact-consent input[type="checkbox"] {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  margin: 0;
  accent-color: var(--contact-red);
}
.contact-consent a {
  color: var(--contact-red);
  text-underline-offset: 4px;
}
body main.contact-page .contact-consent > p {
  margin: 12px 0 0;
  color: #777;
  text-align: center;
  font-size: 11px !important;
  line-height: 1.8;
}
@media (max-width: 767px) {
  form#mailformpro .contact-consent label { font-size: 13px; }
}

/* Thanks */
.contact-thanks {
  padding: 100px 24px 140px;
  background: var(--contact-surface);
}

.contact-thanks__inner {
  padding: 70px 80px;
  background: #fff;
  text-align: center;
}

.contact-thanks__lead {
  margin: 28px 0 0;
  color: var(--contact-red);
  font-size: 20px;
  font-weight: 500;
}

.contact-thanks__message {
  max-width: 720px;
  margin: 38px auto 0;
  color: #555;
  line-height: 2;
  text-align: left;
}

.contact-thanks__message p {
  margin: 0 0 18px;
}

.contact-thanks__home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 270px);
  min-height: 64px;
  margin: 46px auto 0;
  padding: 0 28px;
  color: var(--contact-text);
  background: #fff;
  border: 1px solid #777;
  border-radius: 0 34px 34px 0;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.contact-thanks__home:hover {
  color: #fff;
  background: var(--contact-red);
  border-color: var(--contact-red);
}

@media (max-width: 900px) {
  .contact-content {
    padding: 64px 20px 100px;
  }

  .contact-intro,
  .contact-form-section {
    padding: 42px 34px;
  }

  .contact-recruit {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-page .contact-form-table th,
  .contact-page .contact-form-table td {
    display: block;
    width: 100%;
  }

  .contact-page .contact-form-table th {
    padding: 24px 0 10px;
    border-bottom: 0;
  }

  .contact-page .contact-form-table td {
    padding: 0 0 24px;
  }
}

@media (max-width: 600px) {
  .contact-page-hero {
    min-height: 420px;
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .74)),
      url("../images/contact/contact-page-hero.jpg");
    background-position: center, 60% center;
  }

  .contact-page-hero__inner {
    width: min(calc(100% - 40px), 1180px);
    padding-block: 56px;
  }

  main.contact-page .contact-page-hero h1 {
    font-size: 36px !important;
  }

  .contact-content {
    padding: 44px 14px 72px;
    background-size: 38px 38px;
  }

  .contact-intro,
  .contact-form-section,
  .contact-recruit,
  .contact-thanks__inner {
    padding: 32px 20px;
  }

  .contact-intro > p:first-child {
    font-size: 15px;
    text-align: left;
  }

  .contact-phone {
    padding-inline: 0;
  }

  .contact-phone a {
    font-size: 34px;
  }

  .contact-recruit__tel strong {
    font-size: 25px;
  }

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

  .contact-page .mfp_buttons {
    display: grid;
  }

  .contact-page .mfp_buttons button {
    width: 100%;
    min-width: 0;
  }

  .contact-thanks {
    padding: 60px 14px 90px;
  }

  .contact-thanks__message {
    line-height: 1.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page *,
  .contact-page *::before,
  .contact-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
