v3.26.1
Pension Plans - Additional Information (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2026
May 31, 2025
May 31, 2024
Defined Benefit Plans And Other Postretirement Benefit Plans Table Text Block [Line Items]      
Estimated benefits payable in the first year $ 78,800    
Estimated benefits payable in the second year 81,700    
Estimated benefits payable in the third year 92,000    
Estimated benefits payable in the fourth year 91,400    
Estimated benefits payable in the fifth year 94,900    
Estimated benefits payable in the years thereafter 485,400    
Matching contribution charged to income $ 31,800 $ 31,300 $ 29,800
Pension Benefits      
Defined Benefit Plans And Other Postretirement Benefit Plans Table Text Block [Line Items]      
Average compensation with accrued benefits vesting period 5 years    
U.S. Plans | Pension Benefits      
Defined Benefit Plans And Other Postretirement Benefit Plans Table Text Block [Line Items]      
Contribution to pension plan in the current $ 51,009 45,537  
Non-U.S. Plans | Pension Benefits      
Defined Benefit Plans And Other Postretirement Benefit Plans Table Text Block [Line Items]      
Contribution to retirement plans in the next fiscal year 7,800    
Contribution to pension plan in the current $ 5,797 $ 4,537