v3.25.2
Pension Plans - Additional Information (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2025
May 31, 2024
May 31, 2023
Defined Benefit Plans And Other Postretirement Benefit Plans Table Text Block [Line Items]      
Estimated benefits payable in the first year $ 75,300    
Estimated benefits payable in the second year 77,500    
Estimated benefits payable in the third year 81,500    
Estimated benefits payable in the fourth year 89,200    
Estimated benefits payable in the fifth year 89,100    
Estimated benefits payable in the years thereafter 448,300    
Matching contribution charged to income $ 31,300 $ 29,800 $ 27,600
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 $ 45,537 41,928  
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 6,100    
Contribution to pension plan in the current $ 4,537 $ 5,449