Quarterly Consolidated Statement Of Cash Flows
| Concept | 
                                    
                                        2023-06-01 to 2024-02-29  | 
                            
                                
                                    
                                        As at 2023-05-31  | 
                            
                                
                                    
                                        2022-06-01 to 2023-05-31  | 
                            
                                
                                    
                                        2022-06-01 to 2023-05-31  | 
                            
                                
                                    
                                        2021-06-01 to 2022-05-31  | 
                            
                                
                                    
                                        2021-06-01 to 2022-05-31  | 
                            
                                
                                    
                                        As at 2022-05-31  | 
                            
                                
                                    
                                        As at 2021-05-31  | 
                            
                        
|---|---|---|---|---|---|---|---|---|
| Quarterly consolidated statement of cash flows | ||||||||
| Statement of cash flows | ||||||||
| Cash flows from operating activities | ||||||||
| Profit (loss) before income taxes | 
                                        
                                             
                                                326,663,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                -83,610,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    
                                        
                                             
                                                8,609,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    
                                        
                                             
                                                1,194,128,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    
                                        
                                             
                                                831,646,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | 
| Depreciation | — | — | 
                                        
                                             
                                                100,039,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                77,839,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Impairment losses | — | — | 
                                        
                                             
                                                24,187,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                13,166,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Amortization of goodwill | — | — | 
                                        
                                             
                                                88,493,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                58,947,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Interest and dividend income | — | — | 
                                        
                                             
                                                -197,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                -575,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Interest expenses | — | — | 
                                        
                                             
                                                41,226,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                28,380,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Decrease (increase) in trade receivables | — | — | 
                                        
                                             
                                                4,043,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                -20,970,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Decrease (increase) in inventories | — | — | 
                                        
                                             
                                                -154,017,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                -733,630,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Increase (decrease) in trade payables | — | — | 
                                        
                                             
                                                -567,558,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                353,761,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Other, net | — | — | 
                                        
                                             
                                                54,802,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                -110,258,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Subtotal | — | — | 
                                        
                                             
                                                -1,302,294,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                3,728,518,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Interest and dividends received | — | — | 
                                        
                                             
                                                197,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                575,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Interest paid | — | — | 
                                        
                                             
                                                -48,053,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                -30,330,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Income taxes paid | — | — | 
                                        
                                             
                                                -390,498,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                -676,454,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Net cash provided by (used in) operating activities | — | — | 
                                        
                                             
                                                -1,523,439,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                3,043,376,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Cash flows from investing activities | ||||||||
| Purchase of property, plant and equipment | — | — | 
                                        
                                             
                                                -715,063,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                -310,322,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Proceeds from sale of property, plant and equipment | — | — | 
                                        
                                             
                                                209,338,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                22,923,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Other, net | — | — | 
                                        
                                             
                                                -11,166,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                -3,536,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Net cash provided by (used in) investing activities | — | — | 
                                        
                                             
                                                -534,903,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                -296,148,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Cash flows from financing activities | ||||||||
| Proceeds from long-term borrowings | — | — | 
                                        
                                             
                                                1,350,000,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                1,300,000,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Repayments of long-term borrowings | — | — | 
                                        
                                             
                                                -615,665,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                -2,051,500,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Proceeds from issuance of shares | — | — | 
                                        
                                             
                                                
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                60,010,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Other, net | — | — | 
                                        
                                             
                                                -3,781,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                -3,016,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Net cash provided by (used in) financing activities | — | — | 
                                        
                                             
                                                1,677,889,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                -413,216,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Effect of exchange rate change on cash and cash equivalents | — | — | 
                                        
                                             
                                                804,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                1,806,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Net increase (decrease) in cash and cash equivalents | — | — | 
                                        
                                             
                                                -379,648,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | 
                                        
                                             
                                                2,335,817,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | 
| Cash and cash equivalents | — | 
                                        
                                             
                                                4,945,383,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    — | — | — | — | 
                                        
                                             
                                                5,325,032,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     | 
                                
                                    
                                        
                                             
                                                2,989,215,000
                                                
                                                    
                                                        JPY
                                                    
                                                
                                             
                                        
                                     |