Property, Plant and Equipment (Detail) - USD ($) $ in Thousands |
May 31, 2024 |
May 31, 2023 |
|---|---|---|
| Property, Plant and Equipment [Line Items] | ||
| Total property, plant and equipment, at cost | $ 2,515,847 | $ 2,332,916 |
| Less: allowance for depreciation and amortization | 1,184,784 | 1,093,440 |
| Property, plant and equipment, net | 1,331,063 | 1,239,476 |
| Land | ||
| Property, Plant and Equipment [Line Items] | ||
| Total property, plant and equipment, at cost | 93,842 | 92,954 |
| Building And Leasehold Improvements | ||
| Property, Plant and Equipment [Line Items] | ||
| Total property, plant and equipment, at cost | 674,580 | 552,775 |
| Machinery and Equipment | ||
| Property, Plant and Equipment [Line Items] | ||
| Total property, plant and equipment, at cost | $ 1,747,425 | $ 1,687,187 |