@charset "UTF-8";

.contact {
  padding: 220px 20px 400px;
  background: #fff;
}

.contact__inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.contact__heading {
  margin-bottom: 88px;
  text-align: center;
}

.contact__title {
  margin: 0;
  color: #000;
  font-size: 50px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.contact__lead {
  margin: 34px 0 0;
  color: #000;
  font-size: 15px;
  line-height: 1.9;
}

.contact__mailList {
  display: inline-block;
  margin-top: 40px;
  text-align: left;
}

.contact__mailItem {
  font-size: 18px;
  line-height: 1.8;
}

.contact__mailItem a {
  font-weight: 700;
}

.contact__mailItem a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__divider {
  margin: 48px 0 64px;
  border-top: 1px solid #cfcfcf;
}

.contactForm__form {
  width: 100%;
}

.contactForm__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 40px;
  align-items: center;
}

.contactForm__row + .contactForm__row {
  margin-top: 32px;
}

.contactForm__row--textarea,
.contactForm__row--file {
  align-items: start;
}

.contactForm__row--textarea .contactForm__label,
.contactForm__row--file .contactForm__label {
  padding-top: 14px;
}

.contactForm__label {
  color: #000;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.contactForm__field {
  min-width: 0;
}

.contactForm__input,
.contactForm__select,
.contactForm__textarea {
  display: block;
  width: 100%;
  border: 1px solid transparent;
  background: #e6e6e6;
  color: #000;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.contactForm__input,
.contactForm__select {
  height: 54px;
  padding: 0 20px;
}

.contactForm__textarea {
  min-height: 280px;
  padding: 18px 20px;
  resize: vertical;
}

.contactForm__input::placeholder,
.contactForm__textarea::placeholder {
  color: #b8b8b8;
}

.contactForm__select {
  appearance: auto;
  color: #b8b8b8;
}

.contactForm__select:valid {
  color: #000;
}

.contactForm__input:focus,
.contactForm__select:focus,
.contactForm__textarea:focus {
  border-color: #4f9cff;
  background-color: #e6e6e6;
}

.contactForm__actions {
  margin-top: 180px;
  text-align: center;
}

.contactForm__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  height: 76px;
  padding: 0 40px;
  border: none;
  border-radius: 9999px;
  background: #e60012;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.contactForm__submit:hover {
  opacity: 0.82;
}

.contactForm__note {
  margin: 92px 0 0;
  color: #000;
  font-size: 12px;
  line-height: 1.8;
  font-weight: 500;
  text-align: center;
}

.contactForm__noteLink {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contactForm__error_message {
  color: #dc000c;
  font-size: 14px;
  line-height: 1.6;
}

.contactForm__error_message:first-of-type {
  margin-top: 10px;
}

.contactForm__row--error .contactForm__input,
.contactForm__row--error .contactForm__textarea {
  border-color: #dc000c;
  background-color: rgba(220, 0, 12, 0.05);
}

/* エラー時にフォーカスしても赤を維持 */
.contactForm__row--error .contactForm__input:focus,
.contactForm__row--error .contactForm__textarea:focus {
  border-color: #dc000c;
  background-color: rgba(220, 0, 12, 0.05);
}

.contactForm__row--error .contactForm__select,
.contactForm__row--error .contactForm__select:focus {
  border-color: #dc000c;
  background-color: rgba(220, 0, 12, 0.05);
}

.contactForm__globalMessage {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 88px 0 -28px;
  padding: 14px 16px;
  border: 1px solid #dc000c;
  background-color: rgba(220, 0, 12, 0.04);
  color: #dc000c;
  font-size: 14px;
  line-height: 1.7;
}

.contactForm__globalMessage.is-active {
  display: flex;
}

.contactForm__globalMessageIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.contactForm__globalMessageIcon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.contactForm__globalMessageText {
  flex: 1 1 auto;
}

#file_drop_area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  padding: 40px 20px;
  border: 4px dashed #b6b6b6;
  background: #e6e6e6;
  color: #000;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

#file_drop_area.dragover {
  border-color: #e60012;
  background: rgba(230,0,18,.06);
}

.fileDrop__icon {
  width: 88px;
  height: 88px;
  margin-bottom: 22px;
  color: #000;
}

.fileDrop__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.fileDrop__text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.fileDrop__or {
  margin-top: 18px;
  color: #000000;
  font-size: 13px;
  font-weight: 700;
}

.fileDrop__button {
  margin-top: 18px;
  padding: 10px 22px;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.fileDrop__button:hover {
  color: #e60012;
}

.fileDrop__selectedLabel {
  margin-bottom: 12px;
  color: #666;
  font-size: 13px;
  font-weight: 500;
}

.fileDrop__selectedName {
  margin-bottom: 24px;
  font-size: 18px;
  font-weight: 700;
  word-break: break-all;
}

.fileDrop__selectedHelp {
  margin-top: 12px;
  color: #666;
  font-size: 13px;
}

#attachment {
  display: none;
}

.contactForm__fileNote {
  margin-top: 16px;
  color: #000;
  font-size: 12px;
  line-height: 1.8;
  font-weight: 500;
}

@media screen and (max-width: 800px) {
  .contact {
    padding: 120px 20px 180px;
  }

  .contact__inner {
    max-width: none;
  }

  .contact__heading {
    margin-bottom: 64px;
  }

  .contact__title {
    font-size: 30px;
  }

  .contact__lead {
    font-size: 13px;
    line-height: 1.9;
    text-align: left;
  }

  .contact__mailItem {
    font-size: 16px;
  }

  .contact__lead br {
    display: none;
  }

  .contactForm__row {
    display: block;
  }

  .contactForm__row + .contactForm__row {
    margin-top: 24px;
  }

  .contactForm__label {
    display: block;
    margin-bottom: 8px;
  }

  .contactForm__row--textarea .contactForm__label {
    padding-top: 0;
  }

  .contactForm__input,
  .contactForm__select {
    height: 52px;
  }

  .contactForm__textarea {
    min-height: 220px;
  }

  .contactForm__actions {
    margin-top: 80px;
  }

  .contactForm__submit {
    width: 100%;
    height: 64px;
  }

  .contactForm__note {
    margin-top: 48px;
    text-align: left;
  }

  .contactForm__input,
  .contactForm__select,
  .contactForm__textarea {
    font-size: 16px;
  }

  #file_drop_area {
    min-height: 220px;
    padding: 32px 16px;
    border-width: 3px;
  }

  #file_drop_area.dragover {
    border-color: #e60012;
    background: rgba(230, 0, 18, 0.06);
  }

  .fileDrop__icon {
    width: 88px;
    height: 88px;
    margin-bottom: 22px;
  }

  .fileDrop__icon img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .fileDrop__text,
  .fileDrop__or {
    display: none;
  }

  .fileDrop__button {
    margin-top: 0;
  }
}

/* =========================
   Contact Complete
========================= */
.contactComplete {
  padding: 220px 20px 280px;
  background: #fff;
}

.contactComplete__inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.contactComplete__title {
  margin: 0 0 64px;
  color: #000;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.contactComplete__body {
  color: #000;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.04em;
}

.contactComplete__body p {
  margin: 0;
}

.contactComplete__body p + p {
  margin-top: 24px;
}

.contactComplete__tel {
  margin: 88px 0 0;
  color: #000;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contactComplete__tel a {
  color: inherit;
  text-decoration: none;
}

.contactComplete__actions {
  margin-top: 92px;
}

.contactComplete__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 76px;
  padding: 0 40px;
  background: #140908;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: opacity 0.25s ease;
}

.contactComplete__button:hover {
  opacity: 0.82;
}

@media screen and (max-width: 800px) {
  .contactComplete {
    padding: 96px 20px 180px;
  }

  .contactComplete__title {
    margin-bottom: 48px;
    font-size: 22px;
  }

  .contactComplete__body {
    font-size: 13px;
    line-height: 2;
  }

  .contactComplete__body br {
    display: none;
  }

  .contactComplete__tel {
    margin-top: 64px;
    font-size: 28px;
  }

  .contactComplete__actions {
    margin-top: 64px;
  }

  .contactComplete__button {
    width: 100%;
    max-width: 280px;
    height: 64px;
  }
}
