{"id":1105,"date":"2025-05-24T00:46:34","date_gmt":"2025-05-23T15:46:34","guid":{"rendered":"https:\/\/www.nonki.coffeebittersweet.net\/?page_id=1105"},"modified":"2025-06-01T18:00:39","modified_gmt":"2025-06-01T09:00:39","slug":"svg%e3%81%ae%e6%8e%a2%e6%b1%82","status":"publish","type":"page","link":"https:\/\/www.nonki.coffeebittersweet.net\/?page_id=1105","title":{"rendered":"SVG\u306e\u63a2\u6c42"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"ja\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>SVG: \u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3068\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u63a2\u6c42<\/title>\n    <script src=\"https:\/\/cdn.tailwindcss.com\"><\/script>\n    <!-- Visualization & Content Choices:\n- Report Info: SVG definition and benefits (Sec I) -> Goal: Inform -> Viz\/Presentation Method: Textual summary -> Interaction: None -> Justification: Foundational knowledge -> Library\/Method: HTML text.\n- Report Info: JS DOM manipulation (Sec II.A) -> Goal: Demonstrate -> Viz\/Presentation Method: SVG rect + Button + JS code snippet -> Interaction: Button click changes rect color\/size -> Justification: Concrete example of JS control -> Library\/Method: Vanilla JS, HTML SVG.\n- Report Info: JS practical examples (map, graph, drawing tool) (Sec II.B) -> Goal: Illustrate applications -> Viz\/Presentation Method: Textual descriptions with Unicode icons (\ud83d\uddfa\ufe0f, \ud83d\udcca, \u270f\ufe0f) -> Interaction: None -> Justification: Briefly show breadth without complex demos -> Library\/Method: HTML text + Unicode.\n- Report Info: SMIL basics & techniques (Sec III.A, III.B) -> Goal: Demonstrate -> Viz\/Presentation Method: Embedded SVG with SMIL animation (rect width, circle on path) + Code snippets -> Interaction: Animations play automatically -> Justification: Show SMIL in action -> Library\/Method: HTML SVG with SMIL tags.\n- Report Info: SMIL vs. CSS vs. JS comparison (Sec III.C) -> Goal: Compare -> Viz\/Presentation Method: HTML Table -> Interaction: None -> Justification: Clear side-by-side comparison -> Library\/Method: HTML table.\n- Report Info: JS Animation Libraries (D3, Snap, GSAP) (Sec II.C \/ SPA Sec 4) -> Goal: Inform about tools -> Viz\/Presentation Method: Textual descriptions, logos (Unicode\/CSS shapes if simple), key features -> Interaction: None -> Justification: Overview of popular libraries -> Library\/Method: HTML text.\n- Report Info: Conclusion (Sec IV) -> Goal: Summarize -> Viz\/Presentation Method: Textual summary -> Interaction: None -> Justification: Reinforce key takeaways -> Library\/Method: HTML text.\nCONFIRMATION: NO SVG graphics used (except for direct demonstration of SVG code itself). NO Mermaid JS used. Chart.js\/Plotly.js are NOT used as the report is about SVG technology, not data display requiring these chart libraries.\n-->\n    <style>\n        body { font-family: 'Inter', sans-serif; background-color: #F5F5DC; color: #333333; }\n        .nav-link { padding: 0.5rem 1rem; border-radius: 0.375rem; transition: background-color 0.3s, color 0.3s; }\n        .nav-link:hover, .nav-link.active { background-color: #4A90E2; color: white; }\n        .section-title { color: #4A90E2; border-bottom: 2px solid #50C878; padding-bottom: 0.5rem; margin-bottom: 1rem; }\n        .code-block { background-color: #2d2d2d; color: #f0f0f0; padding: 1rem; border-radius: 0.375rem; overflow-x: auto; font-family: 'Courier New', Courier, monospace; font-size: 0.9em; margin-top:0.5rem; margin-bottom:0.5rem;}\n        .interactive-demo-container { background-color: #ffffff; padding: 1.5rem; border-radius: 0.5rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); margin-bottom:1rem; }\n        .demo-svg { border: 1px solid #e0e0e0; border-radius: 0.375rem; margin-left: auto; margin-right: auto; display: block; }\n        .control-button { background-color: #50C878; color: white; font-weight: bold; padding: 0.5rem 1rem; border-radius: 0.375rem; transition: background-color 0.3s; }\n        .control-button:hover { background-color: #3E9A62; }\n        table { width: 100%; border-collapse: collapse; margin-top: 1rem; margin-bottom: 1rem; }\n        th, td { border: 1px solid #cccccc; padding: 0.75rem; text-align: left; }\n        th { background-color: #e0e0e0; color: #333333; }\n        .accent-text { color: #50C878; font-weight: bold; }\n        .sub-section-title { color: #4A90E2; margin-top: 1.5rem; margin-bottom: 0.75rem; font-size: 1.25em; font-weight: 600;}\n        .icon-style { font-size: 1.5em; margin-right: 0.5rem; color: #50C878;}\n    <\/style>\n<\/head>\n<body class=\"antialiased\">\n    <header class=\"bg-white shadow-md sticky top-0 z-50\">\n        <nav class=\"container mx-auto px-6 py-3 flex justify-between items-center\">\n            <div class=\"text-2xl font-bold text-[#4A90E2]\">SVG\u306e\u63a2\u6c42<\/div>\n            <div class=\"space-x-1 md:space-x-2\">\n                <a href=\"#intro\" class=\"nav-link\">\u306f\u3058\u3081\u306b<\/a>\n                <a href=\"#js-svg\" class=\"nav-link\">JS + SVG<\/a>\n                <a href=\"#smil-svg\" class=\"nav-link\">SMIL + SVG<\/a>\n                <a href=\"#libs\" class=\"nav-link\">JS\u30e9\u30a4\u30d6\u30e9\u30ea<\/a>\n                <a href=\"#conclusion\" class=\"nav-link\">\u307e\u3068\u3081<\/a>\n            <\/div>\n        <\/nav>\n    <\/header>\n\n    <main class=\"container mx-auto px-6 py-8\">\n        <section id=\"intro\" class=\"mb-12 pt-16 -mt-16\">\n            <h2 class=\"text-3xl font-bold section-title\">\u306f\u3058\u3081\u306b: SVG\u306e\u4e16\u754c\u3078\u3088\u3046\u3053\u305d<\/h2>\n            <p class=\"mb-4\">\u3053\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30da\u30fc\u30b8\u3067\u306f\u3001\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u30fb\u30d9\u30af\u30bf\u30fc\u30fb\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\uff08SVG\uff09\u306e\u9b45\u529b\u7684\u306a\u4e16\u754c\u3092\u6398\u308a\u4e0b\u3052\u307e\u3059\u3002SVG\u306fXML\u30d9\u30fc\u30b9\u306e\u30d9\u30af\u30bf\u30fc\u753b\u50cf\u5f62\u5f0f\u3067\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3067\u306e\u5229\u7528\u306b\u975e\u5e38\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u30ed\u30b4\u3001\u30a2\u30a4\u30b3\u30f3\u3001\u56f3\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u5730\u56f3\u3084\u30b0\u30e9\u30d5\u3001\u305d\u3057\u3066\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u307e\u3067\u3001\u305d\u306e\u7528\u9014\u306f\u591a\u5c90\u306b\u308f\u305f\u308a\u307e\u3059\u3002<\/p>\n            <p class=\"mb-4\">SVG\u306e\u4e3b\u306a\u5229\u70b9\u306f\u3001\u3069\u3093\u306a\u30b5\u30a4\u30ba\u3067\u3082\u9bae\u660e\u306b\u8868\u793a\u3067\u304d\u308b<span class=\"accent-text\">\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3<\/span>\u3001JavaScript\u3092\u4ecb\u3057\u3066DOM\uff08Document Object Model\uff09\u3092<span class=\"accent-text\">\u52d5\u7684\u306b\u64cd\u4f5c\u3067\u304d\u308b\u67d4\u8edf\u6027<\/span>\u3001\u305d\u3057\u3066SMIL\uff08Synchronized Multimedia Integration Language\uff09\u306b\u3088\u308b<span class=\"accent-text\">\u5ba3\u8a00\u7684\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u6a5f\u80fd<\/span>\u3067\u3059\u3002<\/p>\n            <p>\u3053\u306e\u30da\u30fc\u30b8\u3092\u901a\u3058\u3066\u3001SVG\u3068JavaScript\u306e\u9023\u643a\u3001SMIL\u3092\u7528\u3044\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u4f5c\u6210\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3001\u305d\u3057\u3066\u95a2\u9023\u3059\u308bJavaScript\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3064\u3044\u3066\u3001\u5177\u4f53\u7684\u306a\u30c7\u30e2\u3092\u4ea4\u3048\u306a\u304c\u3089\u7406\u89e3\u3092\u6df1\u3081\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n        <\/section>\n\n        <section id=\"js-svg\" class=\"mb-12 pt-16 -mt-16\">\n            <h2 class=\"text-3xl font-bold section-title\">JavaScript + SVG: \u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306e\u5b9f\u73fe<\/h2>\n            <p class=\"mb-4\">JavaScript\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001SVG\u8981\u7d20\u3092\u52d5\u7684\u306b\u64cd\u4f5c\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u306b\u5fdc\u3058\u305f\u30ea\u30c3\u30c1\u306a\u8868\u73fe\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002SVG\u306fXML\u30d9\u30fc\u30b9\u3067\u3042\u308b\u305f\u3081\u3001HTML\u3068\u540c\u69d8\u306eDOM\u69cb\u9020\u3092\u6301\u3061\u3001JavaScript\u304b\u3089\u5bb9\u6613\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n\n            <div class=\"interactive-demo-container\">\n                <h3 class=\"sub-section-title\">DOM\u64cd\u4f5c\u3068\u5c5e\u6027\u5909\u66f4\u306e\u30c7\u30e2<\/h3>\n                <p class=\"mb-2\">\u4e0b\u306e\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001SVG\u306e\u56db\u89d2\u5f62\u306e\u8272\u3068\u5e45\u304cJavaScript\u306b\u3088\u3063\u3066\u52d5\u7684\u306b\u5909\u66f4\u3055\u308c\u307e\u3059\u3002<\/p>\n                <svg id=\"demoSvgJs\" width=\"150\" height=\"100\" class=\"demo-svg mb-4\">\n                    <rect id=\"demoRectJs\" x=\"10\" y=\"25\" width=\"50\" height=\"50\" fill=\"#4A90E2\" \/>\n                <\/svg>\n                <button id=\"changeSvgAttrBtn\" class=\"control-button\">\u5c5e\u6027\u3092\u5909\u66f4<\/button>\n                <p class=\"mt-3 text-sm\">\u3053\u306e\u30c7\u30e2\u306f\u3001<code>document.getElementById()<\/code>\u3067SVG\u8981\u7d20\u3092\u53d6\u5f97\u3057\u3001<code>setAttribute()<\/code>\u3067\u305d\u306e\u5c5e\u6027\uff08<code>fill<\/code>\u3084<code>width<\/code>\uff09\u3092\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n                <div class=\"code-block\">\n\/\/ JavaScript\u30b3\u30fc\u30c9\u4f8b:\nconst rectElement = document.getElementById(&#8216;demoRectJs&#8217;);\nconst colors = [&#8220;#50C878&#8221;, &#8220;#E94E77&#8221;, &#8220;#F9A602&#8221;, &#8220;#3498DB&#8221;];\nlet currentColorIndex = 0;\nlet currentWidth = 50;\n\ndocument.getElementById(&#8216;changeSvgAttrBtn&#8217;).addEventListener(&#8216;click&#8217;, () => {\n  currentColorIndex = (currentColorIndex + 1) % colors.length;\n  currentWidth = currentWidth === 50 ? 100 : 50;\n  rectElement.setAttribute(&#8216;fill&#8217;, colors[currentColorIndex]);\n  rectElement.setAttribute(&#8216;width&#8217;, currentWidth.toString());\n});\n                <\/div>\n            <\/div>\n\n            <h3 class=\"sub-section-title\">SVG\u8981\u7d20\u306e\u8ffd\u52a0\u3068\u524a\u9664<\/h3>\n            <p class=\"mb-4\">JavaScript\u3067\u306f\u3001<code>document.createElementNS()<\/code> (SVG\u8981\u7d20\u306f\u540d\u524d\u7a7a\u9593\u304c\u5fc5\u8981\u306a\u305f\u3081) \u3068 <code>appendChild()<\/code> \u3092\u4f7f\u3063\u3066\u65b0\u3057\u3044SVG\u56f3\u5f62\u3092\u52d5\u7684\u306b\u8ffd\u52a0\u3057\u305f\u308a\u3001<code>removeChild()<\/code> \u3084 <code>element.remove()<\/code> \u3067\u65e2\u5b58\u306e\u8981\u7d20\u3092\u524a\u9664\u3057\u305f\u308a\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u3066\u30b0\u30e9\u30d5\u3092\u52d5\u7684\u306b\u751f\u6210\u3057\u305f\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u306b\u5fdc\u3058\u3066\u56f3\u5f62\u3092\u5897\u6e1b\u3055\u305b\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n            <div class=\"code-block\">\n\/\/ SVG\u8981\u7d20\u3092\u52d5\u7684\u306b\u8ffd\u52a0\u3059\u308b\u4f8b (\u6982\u5ff5)\nconst svgNS = &#8220;http:\/\/www.w3.org\/2000\/svg&#8221;;\nconst svgContainer = document.getElementById(&#8220;someSvgContainer&#8221;); \/\/ \u65e2\u5b58\u306eSVG\u8981\u7d20\n\nconst newCircle = document.createElementNS(svgNS, &#8220;circle&#8221;);\nnewCircle.setAttribute(&#8220;cx&#8221;, &#8220;50&#8221;);\nnewCircle.setAttribute(&#8220;cy&#8221;, &#8220;50&#8221;);\nnewCircle.setAttribute(&#8220;r&#8221;, &#8220;20&#8221;);\nnewCircle.setAttribute(&#8220;fill&#8221;, &#8220;orange&#8221;);\n\/\/ svgContainer.appendChild(newCircle); \/\/ \u5b9f\u969b\u306b\u8ffd\u52a0\u3059\u308b\u5834\u5408\n            <\/div>\n\n            <h3 class=\"sub-section-title\">\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<\/h3>\n            <p class=\"mb-4\">SVG\u8981\u7d20\u306b\u306f\u3001HTML\u8981\u7d20\u3068\u540c\u69d8\u306b\u30a4\u30d9\u30f3\u30c8\u30ea\u30b9\u30ca\u30fc\u3092\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<code>addEventListener()<\/code> \u3092\u4f7f\u3063\u3066\u3001<code>click<\/code>\u3001<code>mouseover<\/code>\u3001<code>mouseout<\/code> \u306a\u3069\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u88dc\u8db3\u3057\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u52d5\u4f5c\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n            <div class=\"interactive-demo-container\">\n                 <p class=\"mb-2\">\u4e0b\u306e\u5186\u306b\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3057\u305f\u308a\u3001\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n                <svg id=\"eventDemoSvg\" width=\"100\" height=\"100\" class=\"demo-svg\">\n                    <circle id=\"interactiveCircle\" cx=\"50\" cy=\"50\" r=\"30\" fill=\"#50C878\" style=\"cursor: pointer; transition: opacity 0.3s, r 0.3s;\" \/>\n                <\/svg>\n                <p id=\"eventDemoMsg\" class=\"mt-2 text-sm text-center h-5\"><\/p>\n            <\/div>\n\n\n            <h3 class=\"sub-section-title\">\u5b9f\u8df5\u7684\u306a\u5fdc\u7528\u4f8b<\/h3>\n            <p class=\"mb-2\">JavaScript\u3068SVG\u306e\u7d44\u307f\u5408\u308f\u305b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u591a\u69d8\u306a\u30a6\u30a7\u30d6\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u5fdc\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n            <ul class=\"list-disc list-inside space-y-2\">\n                <li><span class=\"icon-style\">\ud83d\uddfa\ufe0f<\/span><strong>\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u5730\u56f3:<\/strong> \u5404\u5730\u57df\u306b\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3067\u60c5\u5831\u3092\u8868\u793a\u3057\u305f\u308a\u3001\u30af\u30ea\u30c3\u30af\u3067\u8a73\u7d30\u30da\u30fc\u30b8\u3078\u9077\u79fb\u3055\u305b\u305f\u308a\u3067\u304d\u307e\u3059\u3002<\/li>\n                <li><span class=\"icon-style\">\ud83d\udcca<\/span><strong>\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30b0\u30e9\u30d5\u30fb\u30c1\u30e3\u30fc\u30c8:<\/strong> \u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u3066\u52d5\u7684\u306b\u30b0\u30e9\u30d5\u3092\u751f\u6210\u30fb\u66f4\u65b0\u3057\u3001\u30c4\u30fc\u30eb\u30c1\u30c3\u30d7\u3084\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u6a5f\u80fd\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/li>\n                <li><span class=\"icon-style\">\u270f\ufe0f<\/span><strong>\u63cf\u753b\u30c4\u30fc\u30eb:<\/strong> \u30e6\u30fc\u30b6\u30fc\u306e\u30de\u30a6\u30b9\u64cd\u4f5c\u306b\u5fdc\u3058\u3066SVG\u306e\u30d1\u30b9\u3084\u56f3\u5f62\u3092\u52d5\u7684\u306b\u751f\u6210\u3057\u3001\u30a6\u30a7\u30d6\u4e0a\u3067\u63cf\u753b\u6a5f\u80fd\u3092\u63d0\u4f9b\u3067\u304d\u307e\u3059\u3002<\/li>\n            <\/ul>\n        <\/section>\n\n        <section id=\"smil-svg\" class=\"mb-12 pt-16 -mt-16\">\n            <h2 class=\"text-3xl font-bold section-title\">SMIL + SVG: \u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/h2>\n            <p class=\"mb-4\">SMIL\uff08Synchronized Multimedia Integration Language\uff09\u306f\u3001SVG\u30cd\u30a4\u30c6\u30a3\u30d6\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308bXML\u30d9\u30fc\u30b9\u306e\u8a00\u8a9e\u3067\u3059\u3002JavaScript\u3084CSS\u3068\u306f\u7570\u306a\u308a\u3001\u5ba3\u8a00\u7684\u306bSVG\u8981\u7d20\u306e\u5c5e\u6027\u3092\u6642\u9593\u3068\u3068\u3082\u306b\u5909\u5316\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n            <div class=\"interactive-demo-container\">\n                <h3 class=\"sub-section-title\">SMIL\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u57fa\u672c\u30c7\u30e2<\/h3>\n                <p class=\"mb-2\">\u4e0b\u306e\u56db\u89d2\u5f62\u306f\u3001SMIL\u306e<code>&lt;animate&gt;<\/code>\u8981\u7d20\u306b\u3088\u3063\u3066\u5e45\u304c\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n                <svg width=\"200\" height=\"70\" class=\"demo-svg mb-4\">\n                    <rect x=\"10\" y=\"10\" width=\"50\" height=\"50\" fill=\"#4A90E2\">\n                        <animate attributeName=\"width\" from=\"50\" to=\"180\" dur=\"3s\" repeatCount=\"indefinite\" begin=\"0s\" fill=\"freeze\" \/>\n                    <\/rect>\n                <\/svg>\n                <div class=\"code-block\">\n&lt;svg width=&#8221;200&#8243; height=&#8221;70&#8243;&gt;\n  &lt;rect x=&#8221;10&#8243; y=&#8221;10&#8243; width=&#8221;50&#8243; height=&#8221;50&#8243; fill=&#8221;#4A90E2&#8243;&gt;\n    &lt;animate attributeName=&#8221;width&#8221; from=&#8221;50&#8243; to=&#8221;180&#8243; dur=&#8221;3s&#8221; \n             repeatCount=&#8221;indefinite&#8221; begin=&#8221;0s&#8221; fill=&#8221;freeze&#8221; \/&gt;\n  &lt;\/rect&gt;\n&lt;\/svg&gt;\n                <\/div>\n            <\/div>\n            \n            <div class=\"interactive-demo-container\">\n                <h3 class=\"sub-section-title\">\u30d1\u30b9\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30c7\u30e2 (`&lt;animateMotion&gt;`)<\/h3>\n                <p class=\"mb-2\">\u4e0b\u306e\u5186\u306f\u3001SMIL\u306e<code>&lt;animateMotion&gt;<\/code>\u3068<code>&lt;mpath&gt;<\/code>\u8981\u7d20\u306b\u3088\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u305f\u66f2\u7dda\u30d1\u30b9\u306b\u6cbf\u3063\u3066\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n                <svg width=\"250\" height=\"100\" class=\"demo-svg mb-4\">\n                    <path id=\"smilPathDemo\" d=\"M20,50 C60,10 150,90 230,50\" stroke=\"#cccccc\" stroke-width=\"2\" fill=\"none\"\/>\n                    <circle cx=\"0\" cy=\"0\" r=\"6\" fill=\"#E94E77\">\n                        <animateMotion dur=\"5s\" repeatCount=\"indefinite\" rotate=\"auto\">\n                            <mpath xlink:href=\"#smilPathDemo\"\/>\n                        <\/animateMotion>\n                    <\/circle>\n                <\/svg>\n                <div class=\"code-block\">\n&lt;svg width=&#8221;250&#8243; height=&#8221;100&#8243;&gt;\n  &lt;path id=&#8221;smilPathDemo&#8221; d=&#8221;M20,50 C60,10 150,90 230,50&#8243; \n        stroke=&#8221;#cccccc&#8221; stroke-width=&#8221;2&#8243; fill=&#8221;none&#8221;\/&gt;\n  &lt;circle cx=&#8221;0&#8243; cy=&#8221;0&#8243; r=&#8221;6&#8243; fill=&#8221;#E94E77&#8243;&gt;\n    &lt;animateMotion dur=&#8221;5s&#8221; repeatCount=&#8221;indefinite&#8221; rotate=&#8221;auto&#8221;&gt;\n      &lt;mpath xlink:href=&#8221;#smilPathDemo&#8221;\/&gt;\n    &lt;\/animateMotion&gt;\n  &lt;\/circle&gt;\n&lt;\/svg&gt;\n                <\/div>\n            <\/div>\n\n            <h3 class=\"sub-section-title\">SMIL\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3068\u8003\u616e\u4e8b\u9805<\/h3>\n            <p class=\"mb-2\">SMIL\u3067\u6ed1\u3089\u304b\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u8981\u7d20\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n            <ul class=\"list-disc list-inside space-y-1 mb-4\">\n                <li><strong>\u88dc\u9593\u3068\u30da\u30fc\u30b7\u30f3\u30b0 (<code>calcMode<\/code>):<\/strong> <code>linear<\/code>, <code>discrete<\/code>, <code>paced<\/code>, <code>spline<\/code> \u3092\u6307\u5b9a\u3057\u3001\u5024\u306e\u5909\u5316\u65b9\u6cd5\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002<\/li>\n                <li><strong>\u30ab\u30b9\u30bf\u30e0\u30a4\u30fc\u30b8\u30f3\u30b0 (<code>keyTimes<\/code>, <code>keySplines<\/code>):<\/strong> <code>calcMode=\"spline\"<\/code> \u3068\u5171\u306b\u4f7f\u7528\u3057\u3001\u8907\u96d1\u306a\u52a0\u901f\u30fb\u6e1b\u901f\u52b9\u679c\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/li>\n                <li><strong>\u30bf\u30a4\u30df\u30f3\u30b0\u5236\u5fa1:<\/strong> <code>begin<\/code>, <code>dur<\/code>, <code>end<\/code>, <code>repeatCount<\/code>, <code>fill<\/code> \u5c5e\u6027\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u59cb\u3001\u671f\u9593\u3001\u7e70\u308a\u8fd4\u3057\u3001\u7d42\u4e86\u5f8c\u306e\u72b6\u614b\u3092\u7d30\u304b\u304f\u5236\u5fa1\u3057\u307e\u3059\u3002<\/li>\n            <\/ul>\n\n            <h4 class=\"text-xl font-semibold mb-2 mt-4 text-[#333333]\">SMIL vs CSS vs JavaScript\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/h4>\n            <p class=\"mb-2\">SVG\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5316\u3059\u308b\u4e3b\u306a3\u3064\u306e\u6280\u8853\u306e\u6bd4\u8f03\u3067\u3059\u3002<\/p>\n            <div class=\"overflow-x-auto\">\n                <table>\n                    <thead>\n                        <tr>\n                            <th>\u7279\u5fb4\/\u5074\u9762<\/th>\n                            <th>SMIL<\/th>\n                            <th>CSS\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/th>\n                            <th>JavaScript (\u4f8b: GSAP)<\/th>\n                        <\/tr>\n                    <\/thead>\n                    <tbody>\n                        <tr>\n                            <td>\u30d1\u30b9\u30e2\u30fc\u30d5\u30a3\u30f3\u30b0 (`d`\u5c5e\u6027)<\/td>\n                            <td class=\"text-green-600 font-bold\">\u25ce \u53ef\u80fd<\/td>\n                            <td class=\"text-red-600 font-bold\">\u00d7 \u4e0d\u53ef<\/td>\n                            <td class=\"text-green-600 font-bold\">\u25ce \u53ef\u80fd (\u30e9\u30a4\u30d6\u30e9\u30ea)<\/td>\n                        <\/tr>\n                        <tr>\n                            <td>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30a2\u30af\u30bb\u30e9\u30ec\u30fc\u30b7\u30e7\u30f3<\/td>\n                            <td>\u25b3 \u9650\u5b9a\u7684<\/td>\n                            <td>\u25ce \u4e00\u822c\u7684\u306b\u826f\u597d<\/td>\n                            <td>\u25ce \u826f\u597d<\/td>\n                        <\/tr>\n                        <tr>\n                            <td>\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3088\u308b\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3<\/td>\n                            <td>\u25b3 \u5ba3\u8a00\u7684\u30a4\u30d9\u30f3\u30c8\u306e\u307f<\/td>\n                            <td>\u25b3 \u30af\u30e9\u30b9\u30d9\u30fc\u30b9\u7b49<\/td>\n                            <td>\u25ce \u9ad8\u5ea6\u306a\u5236\u5fa1\u304c\u53ef\u80fd<\/td>\n                        <\/tr>\n                        <tr>\n                            <td><code>&lt;img&gt;<\/code>\u30bf\u30b0\u5185\u3067\u306e\u81ea\u5df1\u5b8c\u7d50\u30a2\u30cb\u30e1<\/td>\n                            <td class=\"text-green-600 font-bold\">\u25ce \u53ef\u80fd<\/td>\n                            <td>\u00d7 \u4e0d\u53ef<\/td>\n                            <td>\u00d7 \u4e0d\u53ef<\/td>\n                        <\/tr>\n                        <tr>\n                            <td>\u8907\u96d1\u306a\u30b7\u30fc\u30b1\u30f3\u30b9\u5236\u5fa1<\/td>\n                            <td>\u25cb \u5ba3\u8a00\u7684\u306b\u53ef\u80fd<\/td>\n                            <td>\u25b3 \u8907\u96d1\u5316\u3057\u3084\u3059\u3044<\/td>\n                            <td>\u25ce \u9ad8\u5ea6\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u5236\u5fa1<\/td>\n                        <\/tr>\n                         <tr>\n                            <td>SVG\u56fa\u6709\u5c5e\u6027\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/td>\n                            <td class=\"text-green-600 font-bold\">\u25ce<\/td>\n                            <td>\u25b3 \u4e00\u90e8\u306e\u307f<\/td>\n                            <td>\u25cb (\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3088\u308b)<\/td>\n                        <\/tr>\n                    <\/tbody>\n                <\/table>\n            <\/div>\n            <p class=\"mt-4\"><strong>SMIL\u306e\u4e3b\u306a\u4f7f\u3044\u3069\u3053\u308d:<\/strong> SVG\u30d1\u30b9\u306e\u30e2\u30fc\u30d5\u30a3\u30f3\u30b0\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092SVG\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u5b8c\u5168\u306b\u81ea\u5df1\u5b8c\u7d50\u3055\u305b\u305f\u3044\u5834\u5408\uff08\u4f8b: <code>&lt;img&gt;<\/code>\u30bf\u30b0\u3067\u306e\u4f7f\u7528\uff09\u3002<\/p>\n            <p class=\"text-sm mt-2\">\u6ce8\u610f: SMIL\u306e\u30d6\u30e9\u30a6\u30b6\u30b5\u30dd\u30fc\u30c8\u306f\u826f\u597d\u3067\u3059\u304c\u3001Internet Explorer\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u307e\u305f\u3001\u8907\u96d1\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n        <\/section>\n\n        <section id=\"libs\" class=\"mb-12 pt-16 -mt-16\">\n            <h2 class=\"text-3xl font-bold section-title\">SVG\u64cd\u4f5c\u30fb\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u305f\u3081\u306eJS\u30e9\u30a4\u30d6\u30e9\u30ea<\/h2>\n            <p class=\"mb-4\">SVG\u306e\u64cd\u4f5c\u3084\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u3088\u308a\u52b9\u7387\u7684\u304b\u3064\u9ad8\u5ea6\u306b\u884c\u3046\u305f\u3081\u306b\u3001\u591a\u304f\u306eJavaScript\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u958b\u767a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u8907\u96d1\u306a\u51e6\u7406\u3092\u62bd\u8c61\u5316\u3057\u3001\u958b\u767a\u3092\u652f\u63f4\u3057\u307e\u3059\u3002<\/p>\n            \n            <div class=\"grid md:grid-cols-3 gap-6\">\n                <div class=\"bg-white p-6 rounded-lg shadow-lg\">\n                    <h3 class=\"text-2xl font-semibold mb-2 text-[#4A90E2]\">D3.js<\/h3>\n                    <p class=\"text-sm mb-2\">Data-Driven Documents<\/p>\n                    <p>\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u3066\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\uff08SVG\u542b\u3080\uff09\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3002\u7279\u306b\u30c7\u30fc\u30bf\u8996\u899a\u5316\u306b\u512a\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n                    <ul class=\"list-disc list-inside text-sm mt-2 space-y-1\">\n                        <li>\u30c7\u30fc\u30bf\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0<\/li>\n                        <li>\u5f37\u529b\u306a\u30bb\u30ec\u30af\u30b7\u30e7\u30f3<\/li>\n                        <li>\u30c8\u30e9\u30f3\u30b8\u30b7\u30e7\u30f3\u3068\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/li>\n                        <li>\u8ef8\u3084\u5f62\u72b6\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf<\/li>\n                    <\/ul>\n                <\/div>\n                <div class=\"bg-white p-6 rounded-lg shadow-lg\">\n                    <h3 class=\"text-2xl font-semibold mb-2 text-[#4A90E2]\">Snap.svg<\/h3>\n                     <p class=\"text-sm mb-2\">Adobe\u767a<\/p>\n                    <p>\u73fe\u4ee3\u7684\u306aSVG\u6a5f\u80fd\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u3002\u76f4\u611f\u7684\u306aAPI\u3067\u3001\u30de\u30b9\u30ad\u30f3\u30b0\u3001\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u3001\u30d1\u30bf\u30fc\u30f3\u306a\u3069\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n                     <ul class=\"list-disc list-inside text-sm mt-2 space-y-1\">\n                        <li>\u8c4a\u5bcc\u306aSVG\u6a5f\u80fd\u30b5\u30dd\u30fc\u30c8<\/li>\n                        <li>jQuery\u30e9\u30a4\u30af\u306aAPI<\/li>\n                        <li>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u6a5f\u80fd<\/li>\n                        <li>\u5916\u90e8SVG\u30d5\u30a1\u30a4\u30eb\u306e\u64cd\u4f5c<\/li>\n                    <\/ul>\n                <\/div>\n                <div class=\"bg-white p-6 rounded-lg shadow-lg\">\n                    <h3 class=\"text-2xl font-semibold mb-2 text-[#4A90E2]\">GSAP<\/h3>\n                    <p class=\"text-sm mb-2\">GreenSock Animation Platform<\/p>\n                    <p>\u9ad8\u6027\u80fd\u3067\u591a\u6a5f\u80fd\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3002SVG\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u3082\u512a\u308c\u3001\u8907\u96d1\u306a\u30b7\u30fc\u30b1\u30f3\u30b9\u3084\u30e2\u30fc\u30d5\u30a3\u30f3\u30b0\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n                    <ul class=\"list-disc list-inside text-sm mt-2 space-y-1\">\n                        <li>\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9<\/li>\n                        <li>\u8c4a\u5bcc\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb<\/li>\n                        <li>SVG\u7279\u5316\u30d7\u30e9\u30b0\u30a4\u30f3 (MorphSVG, DrawSVG)<\/li>\n                        <li>\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u5236\u5fa1<\/li>\n                    <\/ul>\n                <\/div>\n            <\/div>\n            <p class=\"mt-6\">\u3053\u308c\u3089\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u3084\u958b\u767a\u8005\u306e\u597d\u307f\u306b\u5fdc\u3058\u3066\u9078\u629e\u3055\u308c\u307e\u3059\u3002\u30c7\u30fc\u30bf\u8996\u899a\u5316\u306a\u3089D3.js\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u306a\u3089Snap.svg\u3001\u9ad8\u5ea6\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306a\u3089GSAP\u304c\u6709\u529b\u306a\u9078\u629e\u80a2\u3067\u3059\u3002<\/p>\n        <\/section>\n\n        <section id=\"conclusion\" class=\"pt-16 -mt-16\">\n            <h2 class=\"text-3xl font-bold section-title\">\u307e\u3068\u3081: SVG\u306e\u53ef\u80fd\u6027\u3092\u6700\u5927\u9650\u306b<\/h2>\n            <p class=\"mb-4\">\u3053\u306e\u30da\u30fc\u30b8\u3067\u306f\u3001SVG\u3092JavaScript\u3068\u9023\u643a\u3055\u305b\u3066\u52d5\u7684\u306a\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3001\u304a\u3088\u3073SMIL\u3092\u7528\u3044\u3066\u6ed1\u3089\u304b\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u624b\u6cd5\u306b\u3064\u3044\u3066\u6982\u89b3\u3057\u307e\u3057\u305f\u3002<\/p>\n            <p class=\"mb-4\">JavaScript\u306b\u3088\u308bDOM\u64cd\u4f5c\u306fSVG\u306b\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3092\u3082\u305f\u3089\u3057\u3001SMIL\u306f\u5ba3\u8a00\u7684\u306a\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u3055\u3089\u306b\u3001D3.js\u3001Snap.svg\u3001GSAP\u306e\u3088\u3046\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u3088\u308a\u9ad8\u5ea6\u3067\u52b9\u7387\u7684\u306a\u958b\u767a\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/p>\n            <p class=\"mb-4\">SVG\u304c\u6301\u3064\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u64cd\u4f5c\u53ef\u80fd\u306aDOM\u69cb\u9020\u3068\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u8a00\u8a9e\u3068\u3044\u3046\u4e8c\u91cd\u306e\u80fd\u529b\u306f\u3001SVG\u3092\u5358\u306a\u308b\u9759\u7684\u306a\u753b\u50cf\u304b\u3089\u3001\u30ea\u30c3\u30c1\u3067\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u306a\u30a6\u30a7\u30d6\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u305f\u3081\u306e\u591a\u7528\u9014\u306a\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3078\u3068\u9032\u5316\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n            <p>\u6700\u7d42\u7684\u306a\u6280\u8853\u9078\u629e\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u8907\u96d1\u3055\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8981\u6c42\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306e\u30ec\u30d9\u30eb\u306b\u3088\u3063\u3066\u6c7a\u307e\u308a\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u6280\u8853\u7279\u6027\u3092\u7406\u89e3\u3057\u3001\u9069\u5207\u306b\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u304c\u3001SVG\u306e\u53ef\u80fd\u6027\u3092\u6700\u5927\u9650\u306b\u5f15\u304d\u51fa\u3059\u9375\u3068\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n            <p class=\"mt-6 text-center text-gray-600\">\u3053\u306e\u30da\u30fc\u30b8\u304c\u3001\u3042\u306a\u305f\u306eSVG\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4e00\u52a9\u3068\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n        <\/section>\n    <\/main>\n\n    <footer class=\"bg-gray-800 text-white text-center p-4 mt-12\">\n        <p>&copy; 2024 SVG Interactive Explorer. All rights reserved.<\/p>\n    <\/footer>\n\n    <script>\n        \/\/ Smooth scrolling for navigation links\n        document.querySelectorAll('a[href^=\"#\"]').forEach(anchor => {\n            anchor.addEventListener('click', function (e) {\n                e.preventDefault();\n                const targetId = this.getAttribute('href');\n                const targetElement = document.querySelector(targetId);\n                if (targetElement) {\n                    \/\/ Offset for fixed header\n                    const headerOffset = document.querySelector('header').offsetHeight;\n                    const elementPosition = targetElement.getBoundingClientRect().top;\n                    const offsetPosition = elementPosition + window.pageYOffset - headerOffset;\n    \n                    window.scrollTo({\n                        top: offsetPosition,\n                        behavior: \"smooth\"\n                    });\n\n                    \/\/ Update active link\n                    document.querySelectorAll('.nav-link').forEach(link => link.classList.remove('active'));\n                    this.classList.add('active');\n                }\n            });\n        });\n\n        \/\/ Set initial active link based on hash or default to intro\n        function setActiveNav() {\n            const hash = window.location.hash || '#intro';\n            document.querySelectorAll('.nav-link').forEach(link => {\n                if (link.getAttribute('href') === hash) {\n                    link.classList.add('active');\n                } else {\n                    link.classList.remove('active');\n                }\n            });\n        }\n        window.addEventListener('DOMContentLoaded', setActiveNav);\n        window.addEventListener('hashchange', setActiveNav);\n\n\n        \/\/ JavaScript for SVG attribute change demo\n        const rectElementJs = document.getElementById('demoRectJs');\n        const changeSvgAttrBtn = document.getElementById('changeSvgAttrBtn');\n        if (rectElementJs && changeSvgAttrBtn) {\n            const colors = [\"#50C878\", \"#E94E77\", \"#F9A602\", \"#3498DB\", \"#4A90E2\"];\n            let currentColorIndex = 0;\n            let currentWidth = 50;\n\n            changeSvgAttrBtn.addEventListener('click', () => {\n              currentColorIndex = (currentColorIndex + 1) % colors.length;\n              currentWidth = currentWidth === 50 ? 130 : 50; \/\/ Adjusted width for visibility\n              rectElementJs.setAttribute('fill', colors[currentColorIndex]);\n              rectElementJs.setAttribute('width', currentWidth.toString());\n            });\n        }\n\n        \/\/ JavaScript for SVG event handling demo\n        const interactiveCircle = document.getElementById('interactiveCircle');\n        const eventDemoMsg = document.getElementById('eventDemoMsg');\n        if (interactiveCircle && eventDemoMsg) {\n            interactiveCircle.addEventListener('mouseover', () => {\n                interactiveCircle.setAttribute('opacity', '0.7');\n                interactiveCircle.setAttribute('r', '35');\n                eventDemoMsg.textContent = '\u30de\u30a6\u30b9\u304c\u4e57\u308a\u307e\u3057\u305f\uff01';\n            });\n            interactiveCircle.addEventListener('mouseout', () => {\n                interactiveCircle.setAttribute('opacity', '1.0');\n                interactiveCircle.setAttribute('r', '30');\n                eventDemoMsg.textContent = '';\n            });\n            interactiveCircle.addEventListener('click', () => {\n                const currentFill = interactiveCircle.getAttribute('fill');\n                interactiveCircle.setAttribute('fill', currentFill === '#50C878' ? '#E94E77' : '#50C878');\n                eventDemoMsg.textContent = '\u30af\u30ea\u30c3\u30af\u3055\u308c\u307e\u3057\u305f\uff01\u8272\u304c\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\u3002';\n            });\n        }\n\n    <\/script>\n<\/body>\n<\/html>\n\n","protected":false},"excerpt":{"rendered":"<p>SVG: \u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3068\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u63a2\u6c42 SVG\u306e\u63a2\u6c42 \u306f\u3058\u3081\u306b JS + SVG SMIL + SVG JS\u30e9\u30a4\u30d6\u30e9\u30ea \u307e\u3068\u3081 \u306f\u3058\u3081\u306b: SVG\u306e\u4e16\u754c\u3078\u3088\u3046\u3053\u305d \u3053\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30da\u30fc\u30b8\u3067\u306f\u3001\u30b9\u30b1\u30fc\u30e9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"wp-custom-template-svg","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-1105","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SVG\u306e\u63a2\u6c42 - \u306e\u3093\u304d\u306e\u65e5\u8a18<\/title>\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.nonki.coffeebittersweet.net\/?page_id=1105\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SVG\u306e\u63a2\u6c42 - \u306e\u3093\u304d\u306e\u65e5\u8a18\" \/>\n<meta property=\"og:description\" content=\"SVG: \u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3068\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u63a2\u6c42 SVG\u306e\u63a2\u6c42 \u306f\u3058\u3081\u306b JS + SVG SMIL + SVG JS\u30e9\u30a4\u30d6\u30e9\u30ea \u307e\u3068\u3081 \u306f\u3058\u3081\u306b: SVG\u306e\u4e16\u754c\u3078\u3088\u3046\u3053\u305d \u3053\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30da\u30fc\u30b8\u3067\u306f\u3001\u30b9\u30b1\u30fc\u30e9 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.nonki.coffeebittersweet.net\/?page_id=1105\" \/>\n<meta property=\"og:site_name\" content=\"\u306e\u3093\u304d\u306e\u65e5\u8a18\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-01T09:00:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mlla7u9wd2ab.i.optimole.com\/w:auto\/h:auto\/q:mauto\/ig:avif\/https:\/\/www.nonki.coffeebittersweet.net\/wp-content\/uploads\/2025\/06\/20250524-02.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1004\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/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=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.nonki.coffeebittersweet.net\\\/?page_id=1105\",\"url\":\"https:\\\/\\\/www.nonki.coffeebittersweet.net\\\/?page_id=1105\",\"name\":\"SVG\u306e\u63a2\u6c42 - \u306e\u3093\u304d\u306e\u65e5\u8a18\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.nonki.coffeebittersweet.net\\\/#website\"},\"datePublished\":\"2025-05-23T15:46:34+00:00\",\"dateModified\":\"2025-06-01T09:00:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.nonki.coffeebittersweet.net\\\/?page_id=1105#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.nonki.coffeebittersweet.net\\\/?page_id=1105\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.nonki.coffeebittersweet.net\\\/?page_id=1105#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/www.nonki.coffeebittersweet.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SVG\u306e\u63a2\u6c42\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.nonki.coffeebittersweet.net\\\/#website\",\"url\":\"https:\\\/\\\/www.nonki.coffeebittersweet.net\\\/\",\"name\":\"\u306e\u3093\u304d\u306e\u65e5\u8a18\",\"description\":\"\u65e5\u5e38\u3067\u3001\u601d\u3063\u305f\u4e8b\u3001\u611f\u3058\u305f\u4e8b\u3092\u8a18\u9332\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.nonki.coffeebittersweet.net\\\/#\\\/schema\\\/person\\\/a54ab33d75d0ea64f384d5277bd56ad7\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.nonki.coffeebittersweet.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.nonki.coffeebittersweet.net\\\/#\\\/schema\\\/person\\\/a54ab33d75d0ea64f384d5277bd56ad7\",\"name\":\"cbs@nonki\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\/\\/www.nonki.coffeebittersweet.net\\/wp-content\\/uploads\\/2025\\/06\\/20250524-02.png\",\"url\":\"https:\\/\\/www.nonki.coffeebittersweet.net\\/wp-content\\/uploads\\/2025\\/06\\/20250524-02.png\",\"contentUrl\":\"https:\\/\\/www.nonki.coffeebittersweet.net\\/wp-content\\/uploads\\/2025\\/06\\/20250524-02.png\",\"width\":1004,\"height\":1024,\"caption\":\"cbs@nonki\"},\"logo\":{\"@id\":\"https:\\/\\/www.nonki.coffeebittersweet.net\\/wp-content\\/uploads\\/2025\\/06\\/20250524-02.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SVG\u306e\u63a2\u6c42 - \u306e\u3093\u304d\u306e\u65e5\u8a18","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.nonki.coffeebittersweet.net\/?page_id=1105","og_locale":"ja_JP","og_type":"article","og_title":"SVG\u306e\u63a2\u6c42 - \u306e\u3093\u304d\u306e\u65e5\u8a18","og_description":"SVG: \u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3068\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u63a2\u6c42 SVG\u306e\u63a2\u6c42 \u306f\u3058\u3081\u306b JS + SVG SMIL + SVG JS\u30e9\u30a4\u30d6\u30e9\u30ea \u307e\u3068\u3081 \u306f\u3058\u3081\u306b: SVG\u306e\u4e16\u754c\u3078\u3088\u3046\u3053\u305d \u3053\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30da\u30fc\u30b8\u3067\u306f\u3001\u30b9\u30b1\u30fc\u30e9 [&hellip;]","og_url":"https:\/\/www.nonki.coffeebittersweet.net\/?page_id=1105","og_site_name":"\u306e\u3093\u304d\u306e\u65e5\u8a18","article_modified_time":"2025-06-01T09:00:39+00:00","og_image":[{"url":"https:\/\/mlla7u9wd2ab.i.optimole.com\/w:auto\/h:auto\/q:mauto\/ig:avif\/https:\/\/www.nonki.coffeebittersweet.net\/wp-content\/uploads\/2025\/06\/20250524-02.png","width":1004,"height":1024,"type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.nonki.coffeebittersweet.net\/?page_id=1105","url":"https:\/\/www.nonki.coffeebittersweet.net\/?page_id=1105","name":"SVG\u306e\u63a2\u6c42 - \u306e\u3093\u304d\u306e\u65e5\u8a18","isPartOf":{"@id":"https:\/\/www.nonki.coffeebittersweet.net\/#website"},"datePublished":"2025-05-23T15:46:34+00:00","dateModified":"2025-06-01T09:00:39+00:00","breadcrumb":{"@id":"https:\/\/www.nonki.coffeebittersweet.net\/?page_id=1105#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.nonki.coffeebittersweet.net\/?page_id=1105"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.nonki.coffeebittersweet.net\/?page_id=1105#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/www.nonki.coffeebittersweet.net\/"},{"@type":"ListItem","position":2,"name":"SVG\u306e\u63a2\u6c42"}]},{"@type":"WebSite","@id":"https:\/\/www.nonki.coffeebittersweet.net\/#website","url":"https:\/\/www.nonki.coffeebittersweet.net\/","name":"\u306e\u3093\u304d\u306e\u65e5\u8a18","description":"\u65e5\u5e38\u3067\u3001\u601d\u3063\u305f\u4e8b\u3001\u611f\u3058\u305f\u4e8b\u3092\u8a18\u9332\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002","publisher":{"@id":"https:\/\/www.nonki.coffeebittersweet.net\/#\/schema\/person\/a54ab33d75d0ea64f384d5277bd56ad7"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.nonki.coffeebittersweet.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":["Person","Organization"],"@id":"https:\/\/www.nonki.coffeebittersweet.net\/#\/schema\/person\/a54ab33d75d0ea64f384d5277bd56ad7","name":"cbs@nonki","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/mlla7u9wd2ab.i.optimole.com\/w:auto\/h:auto\/q:mauto\/ig:avif\/https:\/\/www.nonki.coffeebittersweet.net\/wp-content\/uploads\/2025\/06\/20250524-02.png","url":"https:\/\/mlla7u9wd2ab.i.optimole.com\/w:auto\/h:auto\/q:mauto\/ig:avif\/https:\/\/www.nonki.coffeebittersweet.net\/wp-content\/uploads\/2025\/06\/20250524-02.png","contentUrl":"https:\/\/mlla7u9wd2ab.i.optimole.com\/w:auto\/h:auto\/q:mauto\/ig:avif\/https:\/\/www.nonki.coffeebittersweet.net\/wp-content\/uploads\/2025\/06\/20250524-02.png","width":1004,"height":1024,"caption":"cbs@nonki"},"logo":{"@id":"https:\/\/mlla7u9wd2ab.i.optimole.com\/w:auto\/h:auto\/q:mauto\/ig:avif\/https:\/\/www.nonki.coffeebittersweet.net\/wp-content\/uploads\/2025\/06\/20250524-02.png"}}]}},"_links":{"self":[{"href":"https:\/\/www.nonki.coffeebittersweet.net\/index.php?rest_route=\/wp\/v2\/pages\/1105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nonki.coffeebittersweet.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.nonki.coffeebittersweet.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.nonki.coffeebittersweet.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nonki.coffeebittersweet.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1105"}],"version-history":[{"count":1,"href":"https:\/\/www.nonki.coffeebittersweet.net\/index.php?rest_route=\/wp\/v2\/pages\/1105\/revisions"}],"predecessor-version":[{"id":1510,"href":"https:\/\/www.nonki.coffeebittersweet.net\/index.php?rest_route=\/wp\/v2\/pages\/1105\/revisions\/1510"}],"wp:attachment":[{"href":"https:\/\/www.nonki.coffeebittersweet.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}