.layout_contacts {
  display: flex;
  align-items: center;

  margin: 0 auto;
  max-width: 1200px;
  min-height: 100vh;
  padding: 80px 0 30px;
  width: 100%;

  @media screen and (max-width: 1239px) {
    max-width: 100%;
    padding: 0 20px;
  }

  .layout_wrapper {
    display: flex;
    flex-grow: 1;

    @media screen and (max-width: 639px) {
      flex-direction: column;
    }

    .contentBox {
      display: flex;
      align-items: center;
      padding: 40px 0;
      text-align: left;
      width: 40%;
      position: relative;

      @media screen and (max-width: 639px) {
        width: 100%;
      }

      h1 {
        font-size: 2.375rem;
        width: 180px;

        .patternBox {
          display: inline-flex;
          height: 4rem;
          position: relative;

          span {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
          }
        }
      }

      h3 {
        margin-bottom: 0;
      }

      p {
        &.addressLine {
          border-top: 1px solid var(--gray-100);
          color: var(--text-clr);
          margin: 1rem 0;
          padding: 1rem 0;
        }
        strong {
          font-weight: 600;
        }
      }

      a.mail {
        color: var(--primary-7);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-weight: 600;
        text-decoration: underline;

        &:hover {
          text-decoration: none;
        }
      }

      a.site {
        color: var(--gray-200);
        font-size: 14px;
        position: absolute;
        bottom: 0;
        left: 0;
      }
    }

    .picBox {
      flex-grow: 1;
      margin-top: 40px;
      position: relative;

      .corners {
        display: none;
      }

      @media screen and (min-width: 639px) {
        margin: 0 40px;

        &::before {
          border: 1px solid var(--gray-200);
          border-width: 0 1px 1px 0;
          content: '';
          height: 40px;
          width: 40px;
          position: absolute;
          right: 100%;
          bottom: 100%;
        }

        &::after {
          border: 1px solid var(--gray-200);
          border-width: 0 0 1px 1px;
          content: '';
          height: 40px;
          width: 40px;
          position: absolute;
          left: 100%;
          bottom: 100%;
        }

        .corners {
          display: flex;
          flex-grow: 1;
          justify-content: center;
          position: relative;

          &::before {
            border: 1px solid var(--gray-200);
            border-width: 1px 1px 0 0;
            content: '';
            height: 40px;
            width: 40px;
            position: absolute;
            right: 100%;
            top: 100%;
          }

          &::after {
            border: 1px solid var(--gray-200);
            border-width: 1px 0 0 1px;
            content: '';
            height: 40px;
            width: 40px;
            position: absolute;
            left: 100%;
            top: 100%;
          }
        }
      }
    }
  }
}
