v3.25.2
Employee Stock and Savings Plans - Additional Information (Detail) - USD ($)
$ / shares in Units, shares in Millions, $ in Billions
12 Months Ended
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2023
Compensation Related Costs Disclosure [Line Items]      
Retirement benefits for saving plans funded by employer $ 1.8 $ 1.7 $ 1.6
Stock Awards      
Compensation Related Costs Disclosure [Line Items]      
Unrecognized compensation costs $ 21.6    
Unrecognized compensation costs are expected to be recognized over a weighted average period (years) 3 years    
Weighted average grant-date fair value $ 413.9 [1] $ 339.46 $ 252.59
Fair value of awards vested $ 16.2 $ 16.0 $ 11.9
Shares authorized for future grant 98    
Stock Awards | Lower Limit      
Compensation Related Costs Disclosure [Line Items]      
Award vest period 4 years    
Stock Awards | Upper Limit      
Compensation Related Costs Disclosure [Line Items]      
Award vest period 5 years    
Restricted Stock Units | Executive Incentive Plan      
Compensation Related Costs Disclosure [Line Items]      
Award vest period 4 years    
Performance Stock Units | Executive Incentive Plan      
Compensation Related Costs Disclosure [Line Items]      
Award vest period 3 years    
Employee Stock      
Compensation Related Costs Disclosure [Line Items]      
Shares authorized for future grant 62    
Percentage of market value at which employees are able to purchase shares of common stock 90.00% 90.00% 90.00%
Maximum percentage of gross compensation at which employees may purchase shares 15.00% 15.00% 15.00%
[1] Includes 1 million of PSUs granted at target and performance adjustments above target levels for each of the fiscal years 2025, 2024, and 2023.