@charset "utf-8";

:root {
  --contact-red: #9d2a1b;
  --contact-text: #2b2b2b;
  --contact-line: #9b9b9b;
}

body {
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
}

header {
  background: rgba(69, 69, 69, 0.72);
}

@media (max-width: 1200px) {
  .gnav-toggle {
    background-color: var(--contact-text);
  }
}

.contact-fv {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #53b9dc;
}

.contact-fv picture,
.contact-fv__image {
  display: block;
  width: 100%;
  min-height: 610px;
}

.contact-fv__image {
  object-fit: cover;
  object-position: center;
}

.contact-fv__content {
  position: absolute;
  top: 245px;
  left: clamp(36px, 6.9vw, 132px);
  z-index: 2;
  max-width: min(600px, calc(100% - 56px));
  color: #fff;
}

.contact-fv__content h1 {
  font-size: clamp(54px, 5.1vw, 82px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.contact-fv__content p {
  margin-top: 12px;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 700;
  line-height: 1.4;
}

.contact-body {
  min-height: 1168px;
  background-image: url("../image/company/company-bg-paper.png");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: repeat-y;
  padding-top: 110px;
  padding-bottom: 160px;
}

.contact-body__inner {
  max-width: 800px;
  margin: 0 auto;
}

.contact-section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.contact-section-title .en {
  color: var(--contact-red);
  font-size: clamp(28px, 2vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: none;
}

.contact-section-title .ja {
  color: var(--contact-red);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: none;
}

.contact-lead {
  margin: 34px auto 54px;
  color: var(--contact-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  text-align: left;
  width: min(560px, 100%);
}

.contact-form-slot {
  min-height: 676px;
}

.contact-form-slot .wpcf7 {
  width: 100%;
}

.contact-form {
  width: 100%;
}

.contact-form p {
  margin: 0;
}

.contact-form br {
  display: none;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  min-height: 96px;
  border-bottom: 1px solid var(--contact-line);
}

.contact-form__row:first-child {
  border-top: 1px solid var(--contact-line);
}

.contact-form__label {
  color: #4d4d4d;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.contact-form__required {
  color: var(--contact-red);
}

.contact-form__field {
  min-width: 0;
}

.contact-form__field .wpcf7-form-control-wrap {
  display: block;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--contact-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select {
  height: 56px;
  padding: 0 18px;
}

.contact-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #555 50%),
    linear-gradient(135deg, #555 50%, transparent 50%);
  background-position:
    calc(100% - 28px) 50%,
    calc(100% - 18px) 50%;
  background-size:
    10px 10px,
    10px 10px;
  background-repeat: no-repeat;
  padding-right: 48px;
}

.contact-form textarea {
  min-height: 144px;
  padding: 16px 18px;
  resize: vertical;
}

.contact-form__row--textarea {
  align-items: start;
  padding-top: 28px;
  padding-bottom: 28px;
}

.contact-form__row--privacy {
  align-items: start;
  min-height: auto;
  padding-top: 28px;
  padding-bottom: 28px;
}

.contact-form__row--privacy .contact-form__label {
  padding-top: 2px;
}

.contact-form__row--privacy .contact-form__field {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  font-size: 18px;
  font-weight: 700;
}

.contact-form__privacy-control {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.contact-form__privacy-control > p {
  display: grid;
  gap: 1rem;
  justify-items: start;
  margin: 0;
}

.contact-form .wpcf7-acceptance label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.contact-form input[type="checkbox"] {
  width: 30px;
  height: 30px;
  margin: 0;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: #fff;
  display: inline-grid;
  place-content: center;
}

.contact-form input[type="checkbox"]::before {
  content: "";
  width: 16px;
  height: 9px;
  border-bottom: 3px solid var(--contact-red);
  border-left: 3px solid var(--contact-red);
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
}

.contact-form input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

.contact-form__submit-wrap {
  margin-top: 52px;
  text-align: center;
}

.contact-form__turnstile {
  display: none;
  justify-content: center;
  width: 100%;
  margin: 44px auto 0;
}

.contact-form__turnstile.is-mounted,
.contact-form__turnstile:not(:empty) {
  display: flex;
}

.contact-form-slot .wpcf7-form > .wpcf7-turnstile {
  display: none;
}

.contact-form__turnstile .cf-turnstile,
.contact-form__turnstile .wpcf7-turnstile,
.contact-form__turnstile iframe {
  margin-inline: auto;
}

.contact-form .contact-form__submit {
  min-width: 216px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--contact-red);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.contact-form .contact-form__submit:hover {
  filter: brightness(0.9);
}

.contact-form .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: var(--contact-red);
  font-size: 13px;
  font-weight: 700;
}

.contact-form-slot .wpcf7-response-output {
  margin: 28px 0 0;
  padding: 14px 18px;
  border-color: var(--contact-red);
  font-size: 14px;
  font-weight: 700;
}

.privacy-policy-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 38px;
  padding: 9px 20px;
  background: transparent;
  border: 1px solid var(--contact-red);
  border-radius: 999px;
  color: var(--contact-red);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  margin-left: 42px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.privacy-policy-button:hover {
  background: var(--contact-red);
  color: #fff;
}

.privacy-policy-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  place-items: center;
  padding: 32px;
}

.privacy-policy-modal.is-open {
  display: grid;
}

body.is-privacy-modal-open {
  overflow: hidden;
}

.privacy-policy-modal__overlay {
  appearance: none;
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.privacy-policy-modal__panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(760px, calc(100dvh - 64px));
  overflow: auto;
  background: #fff;
  color: var(--contact-text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.privacy-policy-modal__close {
  appearance: none;
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-left: auto;
  border: 0;
  background: var(--contact-red);
  cursor: pointer;
}

.privacy-policy-modal__close::before,
.privacy-policy-modal__close::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 2px;
  background: #fff;
}

.privacy-policy-modal__close::before {
  transform: rotate(45deg);
}

.privacy-policy-modal__close::after {
  transform: rotate(-45deg);
}

.privacy-policy-modal__header {
  padding: 4px 54px 28px;
  text-align: center;
}

.privacy-policy-modal__eyebrow {
  color: var(--contact-red);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.privacy-policy-modal__title {
  margin-top: 10px;
  color: var(--contact-red);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
}

.privacy-policy-modal__body {
  display: grid;
  gap: 24px;
  padding: 0 54px 58px;
  font-size: 14px;
  font-weight: 500;
  line-height: 2;
}

.privacy-policy-modal__body section {
  display: grid;
  gap: 8px;
}

.privacy-policy-modal__body h3 {
  color: var(--contact-red);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

footer .footer-cta {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-information .information {
  display: block;
  position: static;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.footer-information .information::before {
  content: none;
  display: none;
}

@media screen and (max-width: 768px) {
  .contact-fv {
    min-height: 450px;
  }

  .contact-fv picture,
  .contact-fv__image {
    min-height: 450px;
  }

  .contact-fv__image {
    object-position: center top;
  }

  .contact-fv__content {
    top: 86px;
    left: 20px;
  }

  .contact-fv__content h1 {
    font-size: 38px;
  }

  .contact-fv__content p {
    margin-top: 6px;
    font-size: 12px;
  }

  .contact-body {
    min-height: 1206px;
    background-size: auto 1122px;
    padding-top: 56px;
    padding-bottom: 66px;
  }

  .contact-body__inner {
    max-width: 300px;
  }

  .contact-section-title .en {
    font-size: 26px;
  }

  .contact-section-title .ja {
    font-size: 12px;
  }

  .contact-lead {
    margin-top: 24px;
    margin-bottom: 30px;
    font-size: 12px;
    line-height: 1.75;
  }

  .contact-form-slot {
    min-height: 884px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding: 22px 0 26px;
    gap: 12px;
  }

  .contact-form__label {
    font-size: 12px;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form select {
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .contact-form select {
    background-position:
      calc(100% - 23px) 50%,
      calc(100% - 15px) 50%;
    background-size:
      8px 8px,
      8px 8px;
    padding-right: 40px;
  }

  .contact-form textarea {
    min-height: 92px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .contact-form__row--textarea {
    padding-top: 22px;
    padding-bottom: 26px;
  }

  .contact-form__row--privacy {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .contact-form__row--privacy .contact-form__field {
    font-size: 12px;
  }

  .contact-form__privacy-control,
  .contact-form__privacy-control > p {
    gap: 1rem;
  }

  .contact-form input[type="checkbox"] {
    width: 30px;
    height: 30px;
  }

  .contact-form__submit-wrap {
    margin-top: 34px;
  }

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

  .contact-form .contact-form__submit {
    width: 100%;
    min-width: 0;
    height: 50px;
    font-size: 16px;
  }

  .privacy-policy-button {
    min-width: 162px;
    min-height: 38px;
    margin-left: 36px;
    padding: 9px 18px;
    font-size: 11px;
  }

  .privacy-policy-modal {
    padding: 18px;
  }

  .privacy-policy-modal__panel {
    max-height: calc(100dvh - 36px);
  }

  .privacy-policy-modal__close {
    width: 48px;
    height: 48px;
  }

  .privacy-policy-modal__header {
    padding: 4px 24px 22px;
  }

  .privacy-policy-modal__title {
    font-size: 22px;
  }

  .privacy-policy-modal__body {
    gap: 20px;
    padding: 0 24px 36px;
    font-size: 12px;
    line-height: 1.9;
  }

  .privacy-policy-modal__body h3 {
    font-size: 13px;
  }

  footer .footer-cta {
    display: grid;
    gap: 12px;
  }

  footer {
    padding-bottom: 112px;
  }
}
