body {
  margin: 0;
  padding: 0;
  background: #fff;
}

a {
  color: initial;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

.contact {
  font-family: var(--module-font-inter);
  padding-block: 50px 165px;

  @media (max-width: 768px) {
    padding-block: 20px 180px;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
}

.contact__head {
}

.contact__title {
  font-size: 38px;
  font-weight: 500;
  line-height: calc(38 / 26);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;

  @media (max-width: 768px) {
    font-size: 32px;
  }

  &::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 47px;
    background: var(--module-color-primary);
    @media (max-width: 768px) {
      height: 38px;
    }
  }
}

.contact__body {
  margin-top: 85px;

  @media (max-width: 768px) {
    margin-top: 70px;
  }
}

.contact__contents {
  display: grid;
  gap: 90px;

  @media (max-width: 768px) {
    gap: 76px;
  }
}

.contact__content {
}

.contact_contentHead {
  padding-bottom: 9px;
  border-bottom: 1px solid #ccc;

  @media (max-width: 768px) {
    padding-bottom: 10px;
  }
}

.contact_contentHeadTitle {
  font-size: 18px;
  font-weight: 600;
  line-height: calc(26 / 18);
  color: var(--module-color-primary);
}

.contact_contentBody {
  margin-top: 17px;
}

.contact_contentTitle {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;

  @media (max-width: 768px) {
    font-size: 26px;
  }
}

.contact_contentDesc {
  margin-top: 25px;

  @media (max-width: 768px) {
    margin-top: 20px;
  }
}

.contact_contentTextWrap {
  @media (max-width: 768px) {
    display: grid;
  }
  .contact_contentText {
    font-size: 18px;
    line-height: calc(30 / 18);

    @media (max-width: 768px) {
      font-size: 17px;
    }
  }

  small {
    display: block;
    font-size: 14px;
    line-height: calc(18 / 14);
    margin-top: 10px;

    @media (max-width: 768px) {
      margin-top: 14px;
      order: 3;
    }
  }
  span {
    display: block;
    font-size: 16px;
    line-height: calc(24 / 16);

    @media (max-width: 768px) {
      font-size: 14px;
    }
  }
  .tel {
    margin-top: 25px;
    font-size: 38px;
    font-weight: 700;

    @media (max-width: 768px) {
      margin-top: 20px;
      font-size: 34px;
    }

    small {
      font-size: 18px;
      font-weight: 400;
      line-height: calc(30 / 18);
      margin-left: 10px;
      display: inline-block;

      @media (max-width: 768px) {
        display: block;
        margin-top: 0;
        margin-left: 0;
        font-size: 16px;
      }
    }
  }
  .tel a {
    pointer-events: none;
    text-decoration: none;
  }
}

.contact_contentBottom {
  margin-top: 30px;

  @media (max-width: 768px) {
    margin-top: 30px;
    display: flex;
    justify-content: center;
  }
}

.contact__btn {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: var(--module-color-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: calc(20 / 20);
  text-decoration: none;
  width: min(340px, 100%);
  min-height: 76px;
  transition: opacity 0.3s ease;

  &.mail {
    &::after {
      content: "";
      display: block;
      width: 25px;
      aspect-ratio: 25 / 20;
      background: url(../images/icon_mail.svg) no-repeat center center / contain;
    }
  }
  &.tel {
    &::after {
      content: "";
      display: block;
      width: 19px;
      aspect-ratio: 19 / 19;
      background: url(../images/icon_tel.svg) no-repeat center center / contain;
    }
  }
  &.target {
    &::after {
      content: "";
      display: block;
      width: 17px;
      aspect-ratio: 17 / 17;
      background: url(../images/icon_target.svg) no-repeat center center /
        contain;
    }
  }

  @media (any-hover: hover) {
    &:hover {
      opacity: 0.8;
    }
  }
}
