Stockholders' Equity - Additional Information (Detail) - USD ($) |
3 Months Ended | 9 Months Ended | ||||
|---|---|---|---|---|---|---|
Mar. 31, 2026 |
Mar. 31, 2025 |
Mar. 31, 2026 |
Mar. 31, 2025 |
Sep. 16, 2024 |
Sep. 14, 2021 |
|
| Share Repurchase Program [Line Items] | ||||||
| Amount of shares repurchased to settle employee tax withholding related to vesting of stock awards | $ 1,200,000,000 | $ 1,300,000,000 | $ 4,400,000,000 | $ 4,100,000,000 | ||
| Share Repurchase Program 2021 | ||||||
| Share Repurchase Program [Line Items] | ||||||
| Amount available for repurchase under the share repurchase program approved by the company's Board of Directors | $ 60,000,000,000 | |||||
| Share Repurchase Program 2024 | ||||||
| Share Repurchase Program [Line Items] | ||||||
| Amount available for repurchase under the share repurchase program approved by the company's Board of Directors | $ 60,000,000,000 | |||||
| Unused amount of share repurchase program | $ 44,000,000,000 | $ 44,000,000,000 | ||||