In this paper, we consider two-sided, many-to-one matching problems where agents in one side of the market (schools) impose some distributional constraints (e.g., a maximum quota for a set of schools), and develop a strategyproof mechanism that can handle a very general class of distributional constraints. We assume distributional constraints are imposed on a vector, where each element is the number of contracts accepted for each school. The only requirement we impose on distributional constraints is that the family of vectors that satisfy distributional constraints must be hereditary, which means if a vector satisfies the constraints, any vector that is smaller than it also satisfies them. When distributional constraints are imposed, a stable matching may not exist. We develop a strategyproof mechanism called Adaptive Deferred Acceptance mechanism (ADA), which is nonwasteful and "more fair" than a simple nonwasteful mechanism called the Serial Dictatorship mechanism (SD) and "less wasteful" than another simple fair mechanism called the Artificial Cap Deferred Acceptance mechanism (ACDA). We show that we can apply this mechanism even * Goto, Kurata, Yokoo: Department of Electrical Engineering and Computer Science, Kyushu University, Fukuoka 819-0395, Japan. Kojima: Department of Economics, Stanford University, Stanford, CA, 94305, United States. Tamura: Department of Mathematics, Keio University, Yokohama 223-8522, Japan.Emails: goto@agent.inf.kyushu-u.ac.jp, fkojima@stanford.edu, kurata@agent.inf.kyushu-u.ac.jp, aki-tamura@math.keio.ac.jp, yokoo@inf.kyushu-u.ac.jp. Fanqi Shi provided excellent research assistance. Tamura and Yokoo acknowledge the financial support from JSPS Kakenhi Grant Number 24220003. Kojima acknowledges the financial support from the National Research Foundation through its Global Research Network Grant (NRF-2013S1A2A2035408) as well as the Sloan Foundation.1 if the distributional constraints do not satisfy the hereditary condition by applying a simple trick, assuming we can find a vector that satisfy the distributional constraints efficiently. Furthermore, we demonstrate the applicability of our model in actual application domains. JEL Classification: C78, D61, D63