v3.26.1
Summary of Significant Accounting Policies - Additional Information (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2026
May 31, 2025
May 31, 2024
Significant Of Accounting Policies [Line Items]      
Percentage of controlled subsidiary's earnings 100.00%    
Net transactional foreign exchange losses gains $ (5,200) $ (200) $ (6,600)
Depreciation 165,400 146,300 129,800
Impairment charge of held and used long-lived assets $ 9,721 0 0
Impairment, Long-Lived Asset, Held-for-Use, Statement of Income or Comprehensive Income [Extensible Enumeration] Less: Selling, General and Administrative Expenses    
Advertising cost $ 66,000 57,000 64,700
Research and development cost $ 97,900 $ 94,700 $ 92,200
Supplier financing program, termination notice 30 days    
ASU 2023-09      
Significant Of Accounting Policies [Line Items]      
Change in accounting principle, accounting standards update, adopted [true false] true    
Change in accounting principle, accounting standards update, immaterial effect [true false] true    
Change in accounting principle, accounting standards update, adoption date May 31, 2026    
ASU 2023-07      
Significant Of Accounting Policies [Line Items]      
Change in accounting principle, accounting standards update, adopted [true false] true    
Change in accounting principle, accounting standards update, immaterial effect [true false] true    
Change in accounting principle, accounting standards update, adoption date May 31, 2025