{"id":2024,"date":"2026-08-06T06:15:46","date_gmt":"2026-08-06T06:15:46","guid":{"rendered":"https:\/\/www.vpascode.com\/ja\/docs\/uncategorized\/d2-syntax-basics\/"},"modified":"2026-08-06T06:15:46","modified_gmt":"2026-08-06T06:15:46","slug":"d2-syntax-basics","status":"publish","type":"ld_docs","link":"https:\/\/www.vpascode.com\/ja\/docs\/vpascode-docs\/d2-playbook\/d2-syntax-basics\/","title":{"rendered":"D2\u69cb\u6587\u306e\u57fa\u790e"},"content":{"rendered":"<p>D2\u306f\u3001\u660e\u78ba\u3067\u8aad\u307f\u3084\u3059\u3044\u56f3\u3092\u63cf\u304f\u305f\u3081\u306e\u73fe\u4ee3\u7684\u306a\u30c6\u30ad\u30b9\u30c8\u30d9\u30fc\u30b9\u306e\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u308c\u306f\u300c\u5ba3\u8a00\u578b\u56f3\u793a\u300d\u3092\u610f\u5473\u3057\u307e\u3059\u3002VPasCode\u3067\u306f\u3001D2\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u8005\u3084\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u30a2\u30fc\u30ad\u30c6\u30af\u30c8\u304c\u3001\u624b\u52d5\u3067\u56f3\u5f62\u3092\u63cf\u304f\u3053\u3068\u306a\u304f\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30fc\u30c9\u30c6\u30ad\u30b9\u30c8\u3092\u304d\u308c\u3044\u306a\u8996\u899a\u7684\u30e2\u30c7\u30eb\u306b\u5909\u63db\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"callout\" style=\"background-color: #f0fdf4; border-left: 4px solid #16a34a; padding: 1rem; border-radius: 4px; margin-bottom: 1.5rem;\"><strong>\u30d2\u30f3\u30c8\uff1a<\/strong> D2\u69cb\u6587\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u3067\u8aad\u307f\u3084\u3059\u3044\u3088\u3046\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u56f3\u5f62\u3001\u63a5\u7d9a\u3001\u30e9\u30d9\u30eb\u3001\u30b0\u30eb\u30fc\u30d7\u306f\u3059\u3079\u3066\u3001\u8907\u96d1\u306a\u8a2d\u5b9a\u306a\u3057\u306b\u57fa\u672c\u7684\u306a\u30c6\u30ad\u30b9\u30c8\u884c\u3067\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<\/div>\n<h2 style=\"font-size: 1.5rem; font-weight: bold; color: #1f2937; margin-top: 2rem; margin-bottom: 1rem; border-left: 4px solid #4f46e5; padding-left: 0.75rem;\">1. \u57fa\u672c\u7684\u306a\u56f3\u5f62\u3068\u63a5\u7d9a<\/h2>\n<p>\u56f3\u5f62\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u540d\u524d\u3092\u305d\u306e\u307e\u307e\u5165\u529b\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u56f3\u5f62\u3092\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001\u77e2\u5370\uff08<code>-&gt;<\/code> \u3067\u7247\u65b9\u5411\u3001<code>&lt;-&gt;<\/code> \u3067\u53cc\u65b9\u5411\uff09\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">D2<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNpdjLEKwkAQRPuD+4cFa7EPYhMRS8lFUm\/OgRzEje7tCf69iSCi1TAzj7eikK63EVRPIoiWJvHunKG03lGHngL0Aa3o2LYnanAvyObd91m4PRv3nFHRARaHd\/fus\/6bGlhRmSOX0fKPazujNccBC8WXTafJQOEp8QX5ZzbN\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>VPasCode\u3067D2\u3092\u7de8\u96c6<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">D2<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNptjTEKwkAURHshd1iw9gJBrC0tAvaCB9n\/Cy2MBhE1GhSRiASCNokGxBxm2E2OYTaNEG2GYZiZ1xbF\/aTcLWSk52GR7qwW+AJ+gdJKRacnhuMRKDERe5Xaou84A3AEuoGuoAw8tVqNlhmCJ\/VRDvZrk9nfTC3W6r0xtGbpL7NIPH0IQMsyX0H6v7yuAVIMPoMZ9ACHtiijGDLX+yekq7yZDo4f6z2N7w==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit D2 in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-d2\"><code class=\"language-d2\" data-language=\"d2\" class=\"language-d2\"># \u7c21\u5358\u306a\u63a5\u7d9a\r\n\u30e6\u30fc\u30b6\u30fc -&gt; Web\u30b5\u30fc\u30d0\u30fc: HTTP\u30ea\u30af\u30a8\u30b9\u30c8\r\nWeb\u30b5\u30fc\u30d0\u30fc -&gt; \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9: \u30c7\u30fc\u30bf\u53d6\u5f97\r\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 -&gt; Web\u30b5\u30fc\u30d0\u30fc: \u7d50\u679c\u3092\u8fd4\u3059\r\nWeb\u30b5\u30fc\u30d0\u30fc &lt;-&gt; \u30ad\u30e3\u30c3\u30b7\u30e5: \u8aad\u307f\u66f8\u304d\u540c\u671f<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNptjTEKwkAURHshd1iw9gJBrC0tAvaCB9n\/Cy2MBhE1GhSRiASCNokGxBxm2E2OYTaNEG2GYZiZ1xbF\/aTcLWSk52GR7qwW+AJ+gdJKRacnhuMRKDERe5Xaou84A3AEuoGuoAw8tVqNlhmCJ\/VRDvZrk9nfTC3W6r0xtGbpL7NIPH0IQMsyX0H6v7yuAVIMPoMZ9ACHtiijGDLX+yekq7yZDo4f6z2N7w==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit D2 in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNpdjLEKwkAQRPuD+4cFa7EPYhMRS8lFUm\/OgRzEje7tCf69iSCi1TAzj7eikK63EVRPIoiWJvHunKG03lGHngL0Aa3o2LYnanAvyObd91m4PRv3nFHRARaHd\/fus\/6bGlhRmSOX0fKPazujNccBC8WXTafJQOEp8QX5ZzbN\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>VPasCode\u3067D2\u3092\u7de8\u96c6<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"fTwbVMr\"><img fetchpriority=\"high\" alt=\"D2 simple connection diagram showing request and response flows between User, Web Server, Database, and Cache - Text to diagram editor - VPasCode\" class=\"alignnone wp-image-1923 size-full\" decoding=\"async\" fetchpriority=\"high\" height=\"642\" sizes=\"(max-width: 535px) 100vw, 535px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d37a7527.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d37a7527.png 535w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d37a7527-250x300.png 250w\" width=\"535\"\/><\/p>\n<h2 style=\"font-size: 1.5rem; font-weight: bold; color: #1f2937; margin-top: 2rem; margin-bottom: 1rem; border-left: 4px solid #4f46e5; padding-left: 0.75rem;\">2. \u56f3\u5f62\u306e\u7a2e\u985e\u3068\u30ab\u30b9\u30bf\u30e0\u30e9\u30d9\u30eb<\/h2>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u56f3\u5f62\u306f\u6a19\u6e96\u7684\u306a\u30dc\u30c3\u30af\u30b9\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u56f3\u5f62\u306e\u30a2\u30a4\u30b3\u30f3\u30bf\u30a4\u30d7\u3092\u7c21\u5358\u306b\u5909\u66f4\u3057\u305f\u308a\u3001\u30ab\u30b9\u30bf\u30e0\u30e9\u30d9\u30eb\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u3059\u308b\u306b\u306f\u3001<code>shape<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">D2<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNpdjkEKwjAQRfeB3OFTN7rwAlm40CwVWuIFpu1YB2JakigU8e4SKELdvv\/g\/Q0s3yRIGODuNDGu88RJq5MXDtngrRWQymIwcUxj0OqjVRHGZw\/H8SUdp7XYlW3xLiQB9vgnzF5Cz7EgTy17g6qO8qA4w1KmlhJjW48pD5Fdc95Vv2q5hf0B634hS+kLMeE\/Sw==\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>VPasCode\u3067D2\u3092\u7de8\u96c6<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">D2<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNpTVng6e\/PTvYseN657vmLdy4XzHjdNerpu1vN9K3m5Hjetf9y88nHTksdNix43b37c3GGlUM3LpaBQnJFYkGqlUJBaVJyfx8tVy8uFULzscXPn46atj5v3PG6e\/LhpJ6qW5Jz80hSYjuaFILObN7s4oSmqzMnMS0ktAgnlJCal5lgpKD1ung51S\/O8x82rHje3g2xo2v+4eSaYsVNBIyC\/uCS9KDU40EdTCc1RCB8o6Nop4HIqWA7hKACm+4yr\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit D2 in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-d2\"><code class=\"language-d2\" data-language=\"d2\" class=\"language-d2\"># \u56f3\u5f62\u306e\u7a2e\u985e\u3092\u5b9a\u7fa9\r\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8: {\r\n  shape: person\r\n}\r\n\r\n\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9: {\r\n  shape: cloud\r\n}\r\n\r\n\u30e1\u30a4\u30f3DB: {\r\n  shape: cylinder\r\n  label: \"\u30d7\u30e9\u30a4\u30de\u30ea\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 (PostgreSQL)\"\r\n}\r\n\r\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 -&gt; \u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9 -&gt; \u30e1\u30a4\u30f3DB<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNpTVng6e\/PTvYseN657vmLdy4XzHjdNerpu1vN9K3m5Hjetf9y88nHTksdNix43b37c3GGlUM3LpaBQnJFYkGqlUJBaVJyfx8tVy8uFULzscXPn46atj5v3PG6e\/LhpJ6qW5Jz80hSYjuaFILObN7s4oSmqzMnMS0ktAgnlJCal5lgpKD1ung51S\/O8x82rHje3g2xo2v+4eSaYsVNBIyC\/uCS9KDU40EdTCc1RCB8o6Nop4HIqWA7hKACm+4yr\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit D2 in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNpdjkEKwjAQRfeB3OFTN7rwAlm40CwVWuIFpu1YB2JakigU8e4SKELdvv\/g\/Q0s3yRIGODuNDGu88RJq5MXDtngrRWQymIwcUxj0OqjVRHGZw\/H8SUdp7XYlW3xLiQB9vgnzF5Cz7EgTy17g6qO8qA4w1KmlhJjW48pD5Fdc95Vv2q5hf0B634hS+kLMeE\/Sw==\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>VPasCode\u3067D2\u3092\u7de8\u96c6<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"GQAkWLQ\"><img alt=\"D2 custom shapes showing person, cloud, and database cylinder icons linked in sequence - Text to diagram editor - VPasCode\" class=\"alignnone wp-image-1924 size-full\" decoding=\"async\" height=\"670\" sizes=\"(max-width: 470px) 100vw, 470px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d444e3dd.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d444e3dd.png 470w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d444e3dd-210x300.png 210w\" width=\"470\"\/><\/p>\n<h2 style=\"font-size: 1.5rem; font-weight: bold; color: #1f2937; margin-top: 2rem; margin-bottom: 1rem; border-left: 4px solid #4f46e5; padding-left: 0.75rem;\">3. \u30af\u30e9\u30b9\u5b9a\u7fa9<\/h2>\n<p>D2\u306f\u3001<code>class<\/code>\u56f3\u5f62\u3092\u4f7f\u7528\u3057\u3066\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u69cb\u9020\u8a2d\u8a08\u3092\u30cd\u30a4\u30c6\u30a3\u30d6\u306b\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">D2<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNpFyTsKgDAMANC90Dtk1Ctkq07OniC0QQP9SFNdxLtLcXB9bz61lcTVeV\/O3BBuawB0p4MRfCRVa7rQ90tAWFuVvHXkRBJdCJVVf+8j6nyTi4cRYSolMmVrnheKDyJB\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>VPasCode\u3067D2\u3092\u7de8\u96c6<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">D2<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNp7uXD503WLHjcB0erHTcseN29+3NxhpVDNy6WgUJyRWJBqpZCck1hczMsFEklMTs4vzSvxTLFSeDat\/ena6U87poPEU3MTM3McU1KKUouLUaRAkpnFjsklmWWpGppWCo+bpz1u3vO4efXThiW8XLUATcc3mw==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit D2 in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-d2\"><code class=\"language-d2\" data-language=\"d2\" class=\"language-d2\">\u9867\u5ba2\u30a2\u30ab\u30a6\u30f3\u30c8: {\r\n  shape: class\r\n\r\n  accountId: \u6587\u5b57\u5217\r\n  emailAddress: \u6587\u5b57\u5217\r\n\r\n  isActive(): \u30d6\u30fc\u30eb\u5024\r\n}<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNp7uXD503WLHjcB0erHTcseN29+3NxhpVDNy6WgUJyRWJBqpZCck1hczMsFEklMTs4vzSvxTLFSeDat\/ena6U87poPEU3MTM3McU1KKUouLUaRAkpnFjsklmWWpGppWCo+bpz1u3vO4efXThiW8XLUATcc3mw==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit D2 in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNpFyTsKgDAMANC90Dtk1Ctkq07OniC0QQP9SFNdxLtLcXB9bz61lcTVeV\/O3BBuawB0p4MRfCRVa7rQ90tAWFuVvHXkRBJdCJVVf+8j6nyTi4cRYSolMmVrnheKDyJB\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>VPasCode\u3067D2\u3092\u7de8\u96c6<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"xQUTaiD\"><img alt=\"D2 class diagram displaying CustomerAccount properties and isActive method - Text to diagram editor - VPasCode\" class=\"alignnone wp-image-1925 size-full\" decoding=\"async\" height=\"432\" sizes=\"(max-width: 522px) 100vw, 522px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d4d8bc24.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d4d8bc24.png 522w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d4d8bc24-300x248.png 300w\" width=\"522\"\/><\/p>\n<h2 style=\"font-size: 1.5rem; font-weight: bold; color: #1f2937; margin-top: 2rem; margin-bottom: 1rem; border-left: 4px solid #4f46e5; padding-left: 0.75rem;\">4. \u30cd\u30b9\u30c8\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30ca\uff08\u30b0\u30eb\u30fc\u30d7\u5316\uff09<\/h2>\n<p>D2\u3067\u306f\u3001\u6a19\u6e96\u306e\u6ce2\u304b\u3063\u3053\uff08&#8221;\uff09\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u306b\u30a2\u30a4\u30c6\u30e0\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u306e\u304c\u7c21\u5358\u3067\u3059\u3002<code>{}<\/code>\uff09\u3002\u307e\u305f\u3001\u30c9\u30c3\u30c8\u8868\u8a18\u3092\u4f7f\u7528\u3057\u3066\u3001\u7570\u306a\u308b\u30b0\u30eb\u30fc\u30d7\u9593\u306e\u8981\u7d20\u3092\u30ea\u30f3\u30af\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">D2<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNptj8EKgkAQhu8L+w4DnvUBOgQmJR6k0HqAYZ1sSWZlXJOI3j03OlR4nOH\/5v8mglzc2FtuYbL+Apljj5ZJBq12Mg\/EDaR931mD3jpewUMrgIrQeDgVEK+h9ugJSmRsSbR6aqXVBs01kAWfBQcvo\/Gj0AdODwXkMzPhPfDpOPeW1ogbSG7W0EJmLw3JX+hdFEE2r4a4DV+AccxkgueyffLjGg4viyZf9SuotvURMuy6FxZ4Y5w=\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>VPasCode\u3067D2\u3092\u7de8\u96c6<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">D2<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNqVkb1qAlEQhfuFfYcL1vEBLIQUKexEzQOI+AZ2IcXOgNH4g7C4QgoLTeLqokZFo7Bvc8jGvEXmDhYWiSDcYrgz3zlzz00Z0AYspw5+hheBGqAW6AMcgWPw4KsduA64D57roPRDLZqgkfTBM9DKztIneCKtjHlwHWMK1XKlZu5z5iYrLge1iC3PQ3BHgT147DqPrmMdemAGLc\/kX7UQ56nyDS2WYE+wk8ltPgdan4TpHTQRzDoeZ51jGFsvkbHQHLTVOV\/ELqLJJkyCp\/9R3TdlzkP6CXx4i6T79r17uTKt9IVsNLorg0n\/+a6MKdwVS\/rZch\/9AqAsL3U=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit D2 in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-d2\"><code class=\"language-d2\" data-language=\"d2\" class=\"language-d2\"># \u30b3\u30f3\u30c6\u30ca\u306b\u3088\u308b\u30b0\u30eb\u30fc\u30d7\u5316\r\n\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3: {\r\n  React UI -&gt; \u30b9\u30c6\u30fc\u30c8\u30de\u30cd\u30fc\u30b8\u30e3\r\n}\r\n\r\n\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3: {\r\n  API\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4 -&gt; \u8a8d\u8a3c\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\r\n  API\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4 -&gt; \u6ce8\u6587\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\r\n}\r\n\r\n# \u30b0\u30eb\u30fc\u30d7\u9593\u306e\u63a5\u7d9a\r\n\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3.\u30b9\u30c6\u30fc\u30c8\u30de\u30cd\u30fc\u30b8\u30e3 -&gt; \u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3.API\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4: REST\u30b3\u30fc\u30eb<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNqVkb1qAlEQhfuFfYcL1vEBLIQUKexEzQOI+AZ2IcXOgNH4g7C4QgoLTeLqokZFo7Bvc8jGvEXmDhYWiSDcYrgz3zlzz00Z0AYspw5+hheBGqAW6AMcgWPw4KsduA64D57roPRDLZqgkfTBM9DKztIneCKtjHlwHWMK1XKlZu5z5iYrLge1iC3PQ3BHgT147DqPrmMdemAGLc\/kX7UQ56nyDS2WYE+wk8ltPgdan4TpHTQRzDoeZ51jGFsvkbHQHLTVOV\/ELqLJJkyCp\/9R3TdlzkP6CXx4i6T79r17uTKt9IVsNLorg0n\/+a6MKdwVS\/rZch\/9AqAsL3U=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit D2 in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNptj8EKgkAQhu8L+w4DnvUBOgQmJR6k0HqAYZ1sSWZlXJOI3j03OlR4nOH\/5v8mglzc2FtuYbL+Apljj5ZJBq12Mg\/EDaR931mD3jpewUMrgIrQeDgVEK+h9ugJSmRsSbR6aqXVBs01kAWfBQcvo\/Gj0AdODwXkMzPhPfDpOPeW1ogbSG7W0EJmLw3JX+hdFEE2r4a4DV+AccxkgueyffLjGg4viyZf9SuotvURMuy6FxZ4Y5w=\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>VPasCode\u3067D2\u3092\u7de8\u96c6<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"XvKRcme\"><img loading=\"lazy\" alt=\"D2 nested containers grouping Frontend Application and Backend Infrastructure modules - Text to diagram editor - VPasCode\" class=\"alignnone wp-image-1926 size-full\" decoding=\"async\" height=\"987\" loading=\"lazy\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d5828bfa.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d5828bfa.png 674w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d5828bfa-205x300.png 205w\" width=\"674\"\/><\/p>\n<h2 style=\"font-size: 1.5rem; font-weight: bold; color: #1f2937; margin-top: 2rem; margin-bottom: 1rem; border-left: 4px solid #4f46e5; padding-left: 0.75rem;\">5. \u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u3068\u8272<\/h2>\n<p>\u30ab\u30b9\u30bf\u30e0\u306e\u80cc\u666f\u8272\u3001\u7dda\u306e\u8272\u3001\u30d5\u30a9\u30f3\u30c8\u30b9\u30bf\u30a4\u30eb\u306f\u3001\u30d6\u30ed\u30c3\u30af\u5185\u3067\u3059\u3079\u3066\u76f4\u63a5\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<code>style<\/code>\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3002<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">D2<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNoLTi0qy0xOVXC0Uqjm5VJQKC6pzEmFshUU0jJzcqwUlJRTDVLN09KUIILFJUX52akgYRNjY4vkRKhwUn5RSmqRblFiSmZpsZWCBUi0lpcLiHi5gqG2OOG1JS01zTjZHMOWFEtzcwMzJWzmOSro2ikgGR6cmpei4JtaXJyYngoAKgc5Cw==\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>VPasCode\u3067D2\u3092\u7de8\u96c6<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">D2<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNp73LT1cfOex82THzftdLRSqOblUlAoLqnMSYWyFRTSMnNyrBSUlFMNUs3T0pQggsUlRfnZqSBhE2Nji+REqHBSflFKapFuUWJKZmmxlYIFSLSWlwuIeLkeI9nkhNemtNQ042RzDJtSLM3NDcyUcJnpqKBrp4BmyePmhY+bmx837QYJNu142dD4ZP9CAOYjWKE=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit D2 in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-d2\"><code class=\"language-d2\" data-language=\"d2\" class=\"language-d2\">\u30b5\u30fc\u30d3\u30b9A: {\r\n  style: {\r\n    fill: \"#e0e7ff\"\r\n    stroke: \"#4338ca\"\r\n    border-radius: 8\r\n  }\r\n}\r\n\r\n\u30b5\u30fc\u30d3\u30b9B: {\r\n  style: {\r\n    fill: \"#fef3c7\"\r\n    stroke: \"#d97706\"\r\n  }\r\n}\r\n\r\n\u30b5\u30fc\u30d3\u30b9A -&gt; \u30b5\u30fc\u30d3\u30b9B: \u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNp73LT1cfOex82THzftdLRSqOblUlAoLqnMSYWyFRTSMnNyrBSUlFMNUs3T0pQggsUlRfnZqSBhE2Nji+REqHBSflFKapFuUWJKZmmxlYIFSLSWlwuIeLkeI9nkhNemtNQ042RzDJtSLM3NDcyUcJnpqKBrp4BmyePmhY+bmx837QYJNu142dD4ZP9CAOYjWKE=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit D2 in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#d2:eNoLTi0qy0xOVXC0Uqjm5VJQKC6pzEmFshUU0jJzcqwUlJRTDVLN09KUIILFJUX52akgYRNjY4vkRKhwUn5RSmqRblFiSmZpsZWCBUi0lpcLiHi5gqG2OOG1JS01zTjZHMOWFEtzcwMzJWzmOSro2ikgGR6cmpei4JtaXJyYngoAKgc5Cw==\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>VPasCode\u3067D2\u3092\u7de8\u96c6<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"ZKCxIsS\"><img loading=\"lazy\" alt=\"D2 styled blocks showing custom background colors and border styles for Service A and Service B - Text to diagram editor - VPasCode\" class=\"alignnone wp-image-1927 size-full\" decoding=\"async\" height=\"455\" loading=\"lazy\" sizes=\"auto, (max-width: 313px) 100vw, 313px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d6582049.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d6582049.png 313w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d6582049-206x300.png 206w\" width=\"313\"\/><\/p>\n<h2 style=\"font-size: 1.5rem; font-weight: bold; color: #1f2937; margin-top: 2rem; margin-bottom: 1rem; border-left: 4px solid #4f46e5; padding-left: 0.75rem;\">6. \u30af\u30a4\u30c3\u30af\u69cb\u6587\u30c1\u30fc\u30c8\u30b7\u30fc\u30c8<\/h2>\n<table style=\"width: 100%; border-collapse: collapse; margin-bottom: 1.5rem;\">\n<thead>\n<tr style=\"background-color: #f9fafb;\">\n<th style=\"border: 1px solid #e5e7eb; padding: 0.75rem; text-align: left;\">\u6982\u5ff5<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 0.75rem; text-align: left;\">\u30b3\u30fc\u30c9\u4f8b<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 0.75rem; text-align: left;\">\u6a5f\u80fd<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\"><strong>\u65b9\u5411\u4ed8\u304d\u63a5\u7d9a<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\"><code>A -&gt; B<\/code><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\">A\u304b\u3089B\u3078\u5411\u304b\u3046\u77e2\u5370\u3092\u63cf\u753b\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\"><strong>\u7dda\u30e9\u30d9\u30eb<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\"><code>A -&gt; B: \u30c7\u30fc\u30bf\u9001\u4fe1<\/code><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\">\u63a5\u7d9a\u306e\u77e2\u5370\u306e\u4e0a\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\"><strong>\u53cc\u65b9\u5411\u77e2\u5370<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\"><code>A &lt;-&gt; B<\/code><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\">\u4e21\u65b9\u5411\u3092\u6307\u3059\u77e2\u5370\u3092\u63cf\u753b\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\"><strong>\u30b3\u30f3\u30c6\u30ca\uff0f\u30b0\u30eb\u30fc\u30d7<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\"><code>\u30b5\u30fc\u30d0\u30fc: { ... }<\/code><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\">\u8907\u6570\u306e\u5f62\u72b6\u30921\u3064\u306e\u30dc\u30c3\u30af\u30b9\u306b\u30b0\u30eb\u30fc\u30d7\u5316\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\"><strong>\u5f62\u72b6\u9078\u629e<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\"><code>\u5f62\u72b6: \u30b7\u30ea\u30f3\u30c0\u30fc<\/code><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\">\u6a19\u6e96\u306e\u30dc\u30c3\u30af\u30b9\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a2\u30a4\u30b3\u30f3\u3001\u4eba\u7269\u3001\u30af\u30e9\u30a6\u30c9\u3001\u30af\u30e9\u30b9\u306a\u3069\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\"><strong>\u30b3\u30e1\u30f3\u30c8<\/strong><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\"><code># \u79c1\u306e\u30b3\u30e1\u30f3\u30c8<\/code><\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 0.75rem;\">1\u884c\u30b3\u30e1\u30f3\u30c8\u306f\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u6642\u306b\u7121\u8996\u3055\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>D2\u306f\u3001\u660e\u78ba\u3067\u8aad\u307f\u3084\u3059\u3044\u56f3\u3092\u63cf\u304f\u305f\u3081\u306e\u73fe\u4ee3\u7684\u306a\u30c6\u30ad\u30b9\u30c8\u30d9\u30fc\u30b9\u306e\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u308c\u306f&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"template":"","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"ld_collection":[14],"class_list":["post-2024","ld_docs","type-ld_docs","status-publish","hentry","ld_collection-vpascode-docs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>D2 Syntax | Text to diagram tool - VPasCode<\/title>\n<meta name=\"description\" content=\"Master D2 declarative diagramming in VPasCode. Easily build cloud architecture diagrams, ERDs, and workflow charts directly from simple code snippets.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vpascode.com\/ja\/docs\/vpascode-docs\/d2-playbook\/d2-syntax-basics\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"D2 Syntax | Text to diagram tool - VPasCode\" \/>\n<meta property=\"og:description\" content=\"Master D2 declarative diagramming in VPasCode. Easily build cloud architecture diagrams, ERDs, and workflow charts directly from simple code snippets.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vpascode.com\/ja\/docs\/vpascode-docs\/d2-playbook\/d2-syntax-basics\/\" \/>\n<meta property=\"og:site_name\" content=\"VPasCode\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d37a7527.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data1\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/docs\\\/vpascode-docs\\\/d2-playbook\\\/d2-syntax-basics\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/docs\\\/vpascode-docs\\\/d2-playbook\\\/d2-syntax-basics\\\/\",\"name\":\"D2 Syntax | Text to diagram tool - VPasCode\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/docs\\\/vpascode-docs\\\/d2-playbook\\\/d2-syntax-basics\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/docs\\\/vpascode-docs\\\/d2-playbook\\\/d2-syntax-basics\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/img_6a742d37a7527.png\",\"datePublished\":\"2026-08-06T06:15:46+00:00\",\"description\":\"Master D2 declarative diagramming in VPasCode. Easily build cloud architecture diagrams, ERDs, and workflow charts directly from simple code snippets.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/docs\\\/vpascode-docs\\\/d2-playbook\\\/d2-syntax-basics\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/docs\\\/vpascode-docs\\\/d2-playbook\\\/d2-syntax-basics\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/docs\\\/vpascode-docs\\\/d2-playbook\\\/d2-syntax-basics\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/img_6a742d37a7527.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/img_6a742d37a7527.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/docs\\\/vpascode-docs\\\/d2-playbook\\\/d2-syntax-basics\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lean Docs\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/docs\\\/%ld_collection%\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"D2\u69cb\u6587\u306e\u57fa\u790e\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/#website\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/\",\"name\":\"VPasCode\",\"description\":\"by Visual Paradigm\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/#organization\",\"name\":\"VPasCode\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"width\":128,\"height\":138,\"caption\":\"VPasCode\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/ja\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"D2 Syntax | Text to diagram tool - VPasCode","description":"Master D2 declarative diagramming in VPasCode. Easily build cloud architecture diagrams, ERDs, and workflow charts directly from simple code snippets.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vpascode.com\/ja\/docs\/vpascode-docs\/d2-playbook\/d2-syntax-basics\/","og_locale":"ja_JP","og_type":"article","og_title":"D2 Syntax | Text to diagram tool - VPasCode","og_description":"Master D2 declarative diagramming in VPasCode. Easily build cloud architecture diagrams, ERDs, and workflow charts directly from simple code snippets.","og_url":"https:\/\/www.vpascode.com\/ja\/docs\/vpascode-docs\/d2-playbook\/d2-syntax-basics\/","og_site_name":"VPasCode","og_image":[{"url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d37a7527.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/ja\/docs\/vpascode-docs\/d2-playbook\/d2-syntax-basics\/","url":"https:\/\/www.vpascode.com\/ja\/docs\/vpascode-docs\/d2-playbook\/d2-syntax-basics\/","name":"D2 Syntax | Text to diagram tool - VPasCode","isPartOf":{"@id":"https:\/\/www.vpascode.com\/ja\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vpascode.com\/ja\/docs\/vpascode-docs\/d2-playbook\/d2-syntax-basics\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/ja\/docs\/vpascode-docs\/d2-playbook\/d2-syntax-basics\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d37a7527.png","datePublished":"2026-08-06T06:15:46+00:00","description":"Master D2 declarative diagramming in VPasCode. Easily build cloud architecture diagrams, ERDs, and workflow charts directly from simple code snippets.","breadcrumb":{"@id":"https:\/\/www.vpascode.com\/ja\/docs\/vpascode-docs\/d2-playbook\/d2-syntax-basics\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/ja\/docs\/vpascode-docs\/d2-playbook\/d2-syntax-basics\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.vpascode.com\/ja\/docs\/vpascode-docs\/d2-playbook\/d2-syntax-basics\/#primaryimage","url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d37a7527.png","contentUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/08\/img_6a742d37a7527.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vpascode.com\/ja\/docs\/vpascode-docs\/d2-playbook\/d2-syntax-basics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vpascode.com\/ja\/"},{"@type":"ListItem","position":2,"name":"Lean Docs","item":"https:\/\/www.vpascode.com\/ja\/docs\/%ld_collection%\/"},{"@type":"ListItem","position":3,"name":"D2\u69cb\u6587\u306e\u57fa\u790e"}]},{"@type":"WebSite","@id":"https:\/\/www.vpascode.com\/ja\/#website","url":"https:\/\/www.vpascode.com\/ja\/","name":"VPasCode","description":"by Visual Paradigm","publisher":{"@id":"https:\/\/www.vpascode.com\/ja\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vpascode.com\/ja\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.vpascode.com\/ja\/#organization","name":"VPasCode","url":"https:\/\/www.vpascode.com\/ja\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.vpascode.com\/ja\/#\/schema\/logo\/image\/","url":"https:\/\/www.vpascode.com\/ja\/wp-content\/uploads\/sites\/8\/2026\/06\/cropped-vp-online-logo-v1.png","contentUrl":"https:\/\/www.vpascode.com\/ja\/wp-content\/uploads\/sites\/8\/2026\/06\/cropped-vp-online-logo-v1.png","width":128,"height":138,"caption":"VPasCode"},"image":{"@id":"https:\/\/www.vpascode.com\/ja\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.vpascode.com\/ja\/wp-json\/wp\/v2\/ld_docs\/2024","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpascode.com\/ja\/wp-json\/wp\/v2\/ld_docs"}],"about":[{"href":"https:\/\/www.vpascode.com\/ja\/wp-json\/wp\/v2\/types\/ld_docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/ja\/wp-json\/wp\/v2\/users\/3"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/ja\/wp-json\/wp\/v2\/media?parent=2024"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/ja\/wp-json\/wp\/v2\/ld_collection?post=2024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}