/* お仕事依頼フォーム */
.page-contact,
.page-contact-confirm,
.page-contact-complete {
  background: #fff;
}

.page-contact .site-header,
.page-contact-confirm .site-header,
.page-contact-complete .site-header {
  height: 383px;
}

.contact-page-title {
  margin: 50px 0 0;
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.1em;
}

.contact-page-title span {
  display: block;
  margin-top: 16px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-main {
  padding: 70px 30px 145px;
  background: #fff;
}

.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.contact-lead {
  margin: 0 0 48px;
  font-size: 20px;
  font-weight: 600;
  line-height: 2;
  text-align: center;
}

.contact-field {
  margin-bottom: 34px;
}

.contact-field label {
  display: flex;
  align-items: center;
  margin-bottom: 13px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.contact-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 22px;
  margin-left: 8px;
  padding: 0 9px;
  color: #fff;
  background: #df0000;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.contact-control {
  display: block;
  width: 100%;
  height: 66px;
  padding: 0 22px;
  color: #111;
  background: #fff;
  border: 1px solid #000;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
}

.contact-control:focus {
  outline: 3px solid #2f9cff;
  outline-offset: 2px;
}

.contact-select-wrap {
  position: relative;
}

.contact-select-wrap::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 0;
  height: 0;
  border-top: 11px solid #000;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.contact-select-wrap select {
  padding-right: 52px;
  appearance: none;
}

.contact-talent-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.contact-select-button {
  position: relative;
  text-align: left;
  cursor: pointer;
  padding-right: 52px;
}

.contact-select-menu {
  position: absolute;
  top: 70px;
  left: 0;
  z-index: 10;
  width: 100%;
  max-height: 220px;
  padding: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #000;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.contact-select-menu[hidden] {
  display: none;
}

.contact-select-menu button {
  display: block;
  width: 100%;
  padding: 12px 18px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  color: #000;
}

.contact-select-menu button[aria-selected="true"] {
  color: #fff;
  background: #000;
}

@media (hover: hover) {
  .contact-select-menu button:hover {
    background: #f2f2f2;
  }
  .contact-select-menu button[aria-selected="true"]:hover {
    background: #000;
    color: #fff;
  }
}

.contact-textarea {
  min-height: 320px;
  padding-top: 18px;
  padding-bottom: 18px;
  resize: vertical;
}

.contact-error {
  min-height: 0;
  margin: 6px 0 0;
  color: #d60000;
  font-size: 16px;
  font-weight: 600;
}

.contact-error:empty {
  display: none;
}

.contact-control[aria-invalid="true"] {
  border-color: #d60000;
  background: #fff5f5;
}

.contact-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 70px;
  margin: 36px auto 0;
  padding: 0;
  color: #fff;
  background: #000;
  border: 0;
  border-radius: 32px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

.contact-submit span {
  position: absolute;
  right: 20px;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.contact-privacy-link {
  display: table;
  margin: 18px auto 0;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-contact .site-footer,
.page-contact-confirm .site-footer,
.page-contact-complete .site-footer {
  margin-top: 0;
}

.contact-confirm-main {
  padding: 70px 30px 145px;
  background: #fff;
}

.contact-confirm-wrap {
  max-width: 650px;
  margin: 0 auto;
}

.contact-confirm-notice {
  margin: 0 0 46px;
  color: #df0000;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.contact-confirm-list {
  margin: 0;
  border-top: 1px solid #777;
}

.contact-confirm-item {
  padding: 26px 0 24px;
  border-bottom: 1px solid #777;
}

.contact-confirm-item dt {
  position: relative;
  padding-left: 17px;
  font-size: 20px;
  font-weight: 700;
}

.contact-confirm-item dt::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #000;
  content: "";
}

.contact-confirm-item dd {
  margin: 12px 0 0 17px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contact-confirm-submit {
  margin-top: 34px;
}

/* 確認画面のボタン：白抜き「修正する」＋黒「送信する」を横並び中央 */
.contact-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 34px;
}

.contact-confirm-actions .contact-submit,
.contact-confirm-actions .contact-back-button {
  margin: 0;
}

.contact-confirm-actions .contact-back-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 70px;
  padding: 0;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  border-radius: 32px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.contact-confirm-actions .contact-back-button:hover {
  opacity: 0.7;
}

.contact-confirm-actions .contact-back-button span {
  position: absolute;
  left: 20px;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.contact-complete-main {
  display: flex;
  min-height: 600px;
  align-items: center;
  justify-content: center;
  padding: 70px 30px 120px;
  background: #fff;
}

.contact-complete-content {
  width: 100%;
  text-align: center;
}

.contact-complete-content p {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.9;
}

.contact-complete-content p + p {
  margin-top: 8px;
}

.contact-complete-link {
  position: relative;
  display: flex;
  width: 280px;
  height: 70px;
  align-items: center;
  justify-content: center;
  margin: 52px auto 0;
  color: #fff;
  background: #000;
  border-radius: 36px;
  font-size: 20px;
  font-weight: 600;
}

.contact-complete-link span {
  position: absolute;
  left: 21px;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

@media (hover: hover) {
  .contact-submit:hover,
  .contact-complete-link:hover {
    opacity: 0.75;
  }
}

@media (max-width: 1024px) {
  .page-contact .site-header,
  .page-contact-confirm .site-header,
  .page-contact-complete .site-header {
    height: 220px;
  }

  .contact-page-title {
    margin-top: 41px;
    font-size: 30px;
  }

  .contact-page-title span {
    margin-top: 7px;
    font-size: 16px;
  }

  .contact-main {
    padding: 26px 9px 88px;
  }

  .contact-form-wrap {
    max-width: none;
  }

  .contact-lead {
    margin-bottom: 27px;
    font-size: 14px;
    line-height: 2;
    white-space: nowrap;
  }

  .contact-field {
    margin-bottom: 26px;
  }

  .contact-field label {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .contact-required {
    min-width: 48px;
    height: 21px;
    font-size: 12px;
  }

  .contact-control {
    height: 64px;
    padding-right: 14px;
    padding-left: 14px;
    border-radius: 9px;
    font-size: 13px;
  }

  .contact-select-wrap::after {
    top: 50%;
    right: 13px;
    bottom: auto;
    border-top-width: 10px;
    transform: translateY(-50%);
  }

  .contact-select-menu {
    top: 68px;
  }

  .contact-textarea {
    min-height: 310px;
    padding-top: 14px;
  }

  .contact-submit {
    width: 201px;
    height: 50px;
    margin-top: 52px;
    border-radius: 24px;
    font-size: 12px;
  }

  .contact-submit span {
    right: 14px;
    font-size: 24px;
  }

  .contact-privacy-link {
    margin-top: 12px;
    font-size: 13px;
  }

  .contact-error {
    font-size: 11px;
    margin-top: 4px;
  }

  .contact-confirm-main {
    padding: 38px 18px 88px;
  }

  .contact-confirm-notice {
    margin-bottom: 30px;
    font-size: 14px;
  }

  .contact-confirm-item {
    padding: 20px 0;
  }

  .contact-confirm-item dt {
    padding-left: 13px;
    font-size: 14px;
  }

  .contact-confirm-item dd {
    margin: 9px 0 0 13px;
    font-size: 14px;
  }

  .contact-confirm-submit {
    margin-top: 38px;
  }

  .contact-confirm-actions {
    gap: 12px;
    margin-top: 38px;
  }

  .contact-confirm-actions .contact-submit,
  .contact-confirm-actions .contact-back-button {
    flex: 1 1 0;
    width: auto;
    max-width: 201px;
    height: 50px;
    border-radius: 24px;
    font-size: 12px;
  }

  .contact-confirm-actions .contact-back-button span {
    left: 14px;
    font-size: 24px;
  }

  .contact-complete-main {
    min-height: 520px;
    padding: 90px 20px 110px;
  }

  .contact-complete-content p {
    font-size: 14px;
  }

  .contact-complete-link {
    width: 220px;
    height: 50px;
    margin-top: 42px;
    border-radius: 25px;
    font-size: 13px;
  }

  .contact-complete-link span {
    left: 16px;
    font-size: 23px;
  }
}

@media (max-width: 374px) {
  .contact-lead {
    font-size: 11px;
  }
}
