{"id":18765,"date":"2026-07-21T11:36:38","date_gmt":"2026-07-21T11:36:38","guid":{"rendered":"https:\/\/withcode.tech\/media\/?p=18765"},"modified":"2026-09-20T16:57:45","modified_gmt":"2026-09-20T16:57:45","slug":"css-modal-popup","status":"publish","type":"post","link":"https:\/\/withcode.tech\/media\/css-modal-popup\/","title":{"rendered":"CSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3092\u4f5c\u308b\u65b9\u6cd5\uff5cJavaScript\u4e0d\u8981\u306e\u30b3\u30d4\u30da\u5b9f\u88c5"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Web\u30da\u30fc\u30b8\u3067\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u753b\u9762\u4e2d\u592e\u306b\u3075\u308f\u3063\u3068\u73fe\u308c\u308b\u300c\u30e2\u30fc\u30c0\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u300d\u306f\u3001\u304a\u77e5\u3089\u305b\u30fb\u78ba\u8a8d\u30c0\u30a4\u30a2\u30ed\u30b0\u30fb\u753b\u50cf\u62e1\u5927\u306a\u3069\u591a\u304f\u306e\u5834\u9762\u3067\u4f7f\u308f\u308c\u307e\u3059\u3002\u591a\u304f\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306fJavaScript\u3092\u4f7f\u3063\u305f\u5b9f\u88c5\u304c\u7d39\u4ecb\u3055\u308c\u307e\u3059\u304c\u3001\u5b9f\u306fCSS\u3060\u3051\u3067\u3082\u5341\u5206\u306b\u52d5\u4f5c\u3059\u308b\u30e2\u30fc\u30c0\u30eb\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306fCSS\u306e\u307f\u3067\u5b9f\u73fe\u3067\u304d\u308b\u4e3b\u8981\u306a2\u3064\u306e\u65b9\u6cd5\uff08<code>:target<\/code>\u7591\u4f3c\u30af\u30e9\u30b9\u3092\u4f7f\u3046\u65b9\u6cd5\u3068\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u3092\u4f7f\u3046\u65b9\u6cd5\uff09\u3092\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002\u3055\u3089\u306b\u3001HTML\u306e\u6a19\u6e96\u8981\u7d20\u3067\u3042\u308b<code>&lt;dialog&gt;<\/code>\u3092\u4f7f\u3063\u305f\u3088\u308a\u73fe\u4ee3\u7684\u306a\u30a2\u30d7\u30ed\u30fc\u30c1\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u4ed5\u7d44\u307f\u30fb\u30e1\u30ea\u30c3\u30c8\u30fb\u30c7\u30e1\u30ea\u30c3\u30c8\u3092\u7406\u89e3\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u5408\u3063\u305f\u65b9\u6cd5\u3092\u9078\u3079\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u300cJavaScript\u3092\u899a\u3048\u308b\u307e\u3067\u306fCSS\u3060\u3051\u3067\u3084\u308a\u305f\u3044\u300d\u300c\u8efd\u91cf\u306a\u5b9f\u88c5\u306b\u3057\u305f\u3044\u300d\u300c\u6a19\u6e96\u4ed5\u69d8\u306b\u6cbf\u3063\u305f\u30a2\u30af\u30bb\u30b7\u30d6\u30eb\u306a\u30e2\u30fc\u30c0\u30eb\u3092\u4f5c\u308a\u305f\u3044\u300d\u2014\u2014\u3069\u306e\u30cb\u30fc\u30ba\u306b\u3082\u5bfe\u5fdc\u3067\u304d\u308b\u77e5\u8b58\u3092\u3001\u30b3\u30d4\u30fc\u3057\u3066\u4f7f\u3048\u308b\u30b3\u30fc\u30c9\u4f8b\u3068\u3068\u3082\u306b\u4e01\u5be7\u306b\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u5b66\u3079\u308b\u3053\u3068\u306f\u6b21\u306e4\u70b9\u3067\u3059\u3002<\/p>\n<ul class=\"wp-block-list\">\n<li>CSS\u3060\u3051\u3067\u52d5\u304f\u30e2\u30fc\u30c0\u30eb\u306e2\u5927\u624b\u6cd5\uff08<code>:target<\/code>\u7591\u4f3c\u30af\u30e9\u30b9\u30fb\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\uff09\u306e\u4ed5\u7d44\u307f\u3068\u5b9f\u88c5\u624b\u9806<\/li>\n<li>\u80cc\u666f\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u30fb\u4e2d\u592e\u5bc4\u305b\u30fb\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u898b\u305f\u76ee\u3092\u6574\u3048\u308bCSS\u30c6\u30af\u30cb\u30c3\u30af<\/li>\n<li><code>&lt;dialog&gt;<\/code>\u8981\u7d20\u3068\u6700\u5c0f\u9650\u306eJavaScript\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u30a2\u30af\u30bb\u30b7\u30d6\u30eb\u306a\u7b2c3\u306e\u9078\u629e\u80a2<\/li>\n<li>\u30e2\u30fc\u30c0\u30eb\u304c\u958b\u304b\u306a\u3044\u30fb\u9589\u3058\u306a\u3044\u3068\u304d\u306e\u539f\u56e0\u3068\u5bfe\u51e6\u6cd5<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\">\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3068\u306f\uff1f\u4f5c\u308a\u65b9\u306e3\u3064\u306e\u9078\u629e\u80a2<\/h2>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1672\" height=\"941\" alt=\"\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3068\u306f\uff1f\u4f5c\u308a\u65b9\u306e3\u3064\u306e\u9078\u629e\u80a2\" class=\"wp-image-20660\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-01.jpg\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-01.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-01-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-01-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\">\u30e2\u30fc\u30c0\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u3068\u306f\u3001\u30da\u30fc\u30b8\u306e\u4e0a\u306b\u91cd\u306a\u3063\u3066\u8868\u793a\u3055\u308c\u308b\u5c0f\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u3053\u3068\u3067\u3059\u3002\u80cc\u666f\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u308a\u300c\u9589\u3058\u308b\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u308a\u3059\u308b\u307e\u3067\u64cd\u4f5c\u3067\u304d\u306a\u3044\u300c\u96c6\u4e2d\u3055\u305b\u308b\u300dUI\u3068\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0\u30fb\u78ba\u8a8d\u30c0\u30a4\u30a2\u30ed\u30b0\u30fb\u304a\u77e5\u3089\u305b\u8868\u793a\u306a\u3069\u3067\u5e45\u5e83\u304f\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3068\u547c\u3070\u308c\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u6280\u8853\u7684\u306b\u306f\u30e2\u30fc\u30c0\u30eb\u3068\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u306f\u7570\u306a\u308b\u3082\u306e\u306e\u3001CSS\u306e\u5b9f\u88c5\u6587\u8108\u3067\u306f\u307b\u307c\u540c\u7fa9\u3068\u3057\u3066\u6271\u308f\u308c\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">CSS\u3067\u30e2\u30fc\u30c0\u30eb\u3092\u4f5c\u308b\u4e3b\u306a\u65b9\u6cd5\u306f\u6b21\u306e3\u3064\u3067\u3059\u3002\u305d\u308c\u305e\u308c\u306bJavaScript\u304c\u5fc5\u8981\u304b\u3069\u3046\u304b\u3001\u96e3\u6613\u5ea6\u3001\u63a8\u5968\u5ea6\u304c\u7570\u306a\u308a\u307e\u3059\u3002\u3069\u308c\u3092\u9078\u3076\u304b\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u3084\u81ea\u5206\u306e\u30b9\u30ad\u30eb\u306b\u3088\u3063\u3066\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u65b9\u5f0f<\/th><th>JS\u8981\u5426<\/th><th>\u96e3\u6613\u5ea6<\/th><th>\u304a\u3059\u3059\u3081\u5ea6<\/th><th>\u4e3b\u306a\u7279\u5fb4<\/th><\/tr><\/thead><tbody>\n<tr><td><code>:target<\/code>\u7591\u4f3c\u30af\u30e9\u30b9<\/td><td>\u4e0d\u8981<\/td><td>\u2605\u2605\u2606\u2606\u2606<\/td><td>\u2605\u2605\u2605\u2605\u2606<\/td><td>URL\u306e\u30cf\u30c3\u30b7\u30e5\uff08#\uff09\u3092\u5229\u7528\u3057\u3066\u958b\u9589\u3002\u30b7\u30f3\u30d7\u30eb\u3067\u899a\u3048\u3084\u3059\u3044<\/td><\/tr>\n<tr><td>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af<\/td><td>\u4e0d\u8981<\/td><td>\u2605\u2605\u2605\u2606\u2606<\/td><td>\u2605\u2605\u2605\u2606\u2606<\/td><td>\u975e\u8868\u793a\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e<code>:checked<\/code>\u72b6\u614b\u3092\u5229\u7528\u3002URL\u304c\u5909\u308f\u3089\u306a\u3044<\/td><\/tr>\n<tr><td><code>&lt;dialog&gt;<\/code>\u8981\u7d20<\/td><td>\u6700\u5c0f\u9650\u5fc5\u8981<\/td><td>\u2605\u2605\u2606\u2606\u2606<\/td><td>\u2605\u2605\u2605\u2605\u2605<\/td><td>HTML\u6a19\u6e96\u8981\u7d20\u3002\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u304c\u9ad8\u304f\u3001ESC\u30ad\u30fc\u3067\u9589\u3058\u308b\u6a5f\u80fd\u3082\u6a19\u6e96\u642d\u8f09<\/td><\/tr>\n<\/tbody><\/table><\/figure>\n<p class=\"wp-block-paragraph\"><code>:target<\/code>\u65b9\u5f0f\u306fURL\u306b\u30cf\u30c3\u30b7\u30e5\u304c\u4ed8\u304f\uff08\u4f8b\uff1a<code>page.html#modal<\/code>\uff09\u305f\u3081\u3001\u30e2\u30fc\u30c0\u30eb\u3092\u958b\u3044\u305f\u72b6\u614b\u304c\u30d6\u30e9\u30a6\u30b6\u5c65\u6b74\u306b\u6b8b\u308a\u307e\u3059\u3002\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u306fURL\u304c\u5909\u308f\u3089\u306a\u3044\u4ee3\u308f\u308a\u306bHTML\u306e\u69cb\u9020\u306b\u5236\u7d04\u304c\u3042\u308a\u307e\u3059\u3002<code>&lt;dialog&gt;<\/code>\u8981\u7d20\u306f\u73fe\u4ee3\u30d6\u30e9\u30a6\u30b6\u3067\u5e83\u304f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u304a\u308a\u3001<code>showModal()<\/code>\u3068\u3044\u30461\u884c\u306eJavaScript\u3067\u52d5\u304b\u305b\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u3053\u308c\u4ee5\u964d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u5404\u65b9\u6cd5\u3092\u9806\u756a\u306b\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u307e\u305a\u306fCSS\u306e\u307f\u3067\u5b8c\u7d50\u3059\u308b2\u3064\u306e\u65b9\u6cd5\u304b\u3089\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 class=\"wp-block-heading\"><code>:target<\/code>\u7591\u4f3c\u30af\u30e9\u30b9\u3067\u4f5c\u308b\u30e2\u30fc\u30c0\u30eb<\/h2><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" alt=\":target \u7591\u4f3c\u30af\u30e9\u30b9\u3067\u4f5c\u308b\u30e2\u30fc\u30c0\u30eb\" class=\"wp-image-24408\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-02-v2.jpg\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-02-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-02-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-02-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<p class=\"wp-block-paragraph\"><code>:target<\/code>\u306fCSS\u306e\u7591\u4f3c\u30af\u30e9\u30b9\u306e\u3072\u3068\u3064\u3067\u3001\u300cURL\u306e\u30cf\u30c3\u30b7\u30e5\uff08<code>#<\/code>\u4ee5\u964d\u306e\u6587\u5b57\u5217\uff09\u3068\u4e00\u81f4\u3059\u308b<code>id<\/code>\u3092\u6301\u3064\u8981\u7d20\u300d\u306b\u30b9\u30bf\u30a4\u30eb\u3092\u5f53\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070URL\u304c<code>page.html#modal-sample<\/code>\u306b\u306a\u3063\u305f\u3068\u304d\u3001<code>id=\"modal-sample\"<\/code>\u306e\u8981\u7d20\u304c<code>:target<\/code>\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u5229\u7528\u3057\u3066\u3001\u30e2\u30fc\u30c0\u30eb\u3092\u300c\u30cf\u30c3\u30b7\u30e5\u304c\u4e00\u81f4\u3057\u305f\u3089\u8868\u793a\u3001\u305d\u308c\u4ee5\u5916\u306f\u975e\u8868\u793a\u300d\u3068\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u4ed5\u7d44\u307f\u306e\u6982\u8981<\/h3>\n<p class=\"wp-block-paragraph\">HTML\u306b\u306f\u300c\u30e2\u30fc\u30c0\u30eb\u3092\u958b\u304f\u30ea\u30f3\u30af\u300d\u3068\u300c\u30e2\u30fc\u30c0\u30eb\u672c\u4f53\u300d\u306e2\u3064\u304c\u5fc5\u8981\u3067\u3059\u3002\u958b\u304f\u30ea\u30f3\u30af\u306e<code>href<\/code>\u306b\u30e2\u30fc\u30c0\u30eb\u306e<code>id<\/code>\u3092\u30cf\u30c3\u30b7\u30e5\u4ed8\u304d\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u304c\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068URL\u304c\u5909\u308f\u308a\u3001<code>:target<\/code>\u304c\u767a\u52d5\u3057\u3066\u30e2\u30fc\u30c0\u30eb\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u9589\u3058\u308b\u30ea\u30f3\u30af\u306e<code>href<\/code>\u306f<code>#!<\/code>\u306a\u3069\u306e\u30cf\u30c3\u30b7\u30e5\u306e\u306a\u3044\u5024\u306b\u3059\u308b\u3053\u3068\u3067\u3001<code>:target<\/code>\u304c\u89e3\u9664\u3055\u308c\u3066\u30e2\u30fc\u30c0\u30eb\u304c\u975e\u8868\u793a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">HTML<\/h3>\n<p class=\"wp-block-paragraph\">\u307e\u305a\u958b\u304f\u30ea\u30f3\u30af\u3068\u30e2\u30fc\u30c0\u30eb\u672c\u4f53\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<code>id<\/code>\u3068<code>href<\/code>\u306e<code>#<\/code>\u4ee5\u964d\u306e\u6587\u5b57\u5217\u304c\u5b8c\u5168\u306b\u4e00\u81f4\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;!-- \u30e2\u30fc\u30c0\u30eb\u3092\u958b\u304f\u30ea\u30f3\u30af --&gt;\n&lt;a href=\"#modal-sample\" class=\"btn-open\"&gt;\u30e2\u30fc\u30c0\u30eb\u3092\u958b\u304f&lt;\/a&gt;\n\n&lt;!-- \u30e2\u30fc\u30c0\u30eb\u672c\u4f53\uff08id \u304c href \u306e # \u3068\u4e00\u81f4\u3059\u308b\uff09 --&gt;\n&lt;div id=\"modal-sample\" class=\"modal-overlay\"&gt;\n  &lt;div class=\"modal-content\"&gt;\n    &lt;h2&gt;\u30e2\u30fc\u30c0\u30eb\u306e\u30bf\u30a4\u30c8\u30eb&lt;\/h2&gt;\n    &lt;p&gt;\u3053\u3053\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u66f8\u304d\u307e\u3059\u3002&lt;\/p&gt;\n    &lt;!-- \u9589\u3058\u308b\u30ea\u30f3\u30af\uff08\u5225\u306e ID \u307e\u305f\u306f\u30da\u30fc\u30b8\u5916\u306e # \u3092\u6307\u3059\uff09 --&gt;\n    &lt;a href=\"#!\" class=\"btn-close\"&gt;\u2715 \u9589\u3058\u308b&lt;\/a&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre><\/div>\n<h3 class=\"wp-block-heading\">CSS<\/h3>\n<p class=\"wp-block-paragraph\">\u6b21\u306bCSS\u3067\u975e\u8868\u793a\u30fb\u8868\u793a\u306e\u5207\u308a\u66ff\u3048\u3092\u884c\u3044\u307e\u3059\u3002\u521d\u671f\u72b6\u614b\u306f<code>display: none<\/code>\u3068\u3057\u3001<code>:target<\/code>\u304c\u4ed8\u3044\u305f\u3068\u304d\u3060\u3051<code>display: block<\/code>\u306b\u3057\u307e\u3059\u3002<code>position: fixed; inset: 0<\/code>\u3067\u753b\u9762\u5168\u4f53\u3092\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u3057\u3001<code>z-index<\/code>\u3067\u4ed6\u306e\u8981\u7d20\u306e\u4e0a\u306b\u91cd\u306d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u2500\u2500 \u30e2\u30fc\u30c0\u30eb\u306e\u57fa\u672c\u69cb\u9020\uff08:target \u3092\u4f7f\u3063\u305f\u8868\u793a\u5207\u308a\u66ff\u3048\uff09 \u2500\u2500 *\/\n\n\/* \u521d\u671f\u72b6\u614b\uff1a\u975e\u8868\u793a *\/\n.modal-overlay {\n  display: none;\n}\n\n\/* #modal-sample \u304c\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u306a\u3063\u305f\u3068\u304d\uff08URL\u304c #modal-sample \u306b\u306a\u3063\u305f\u3068\u304d\uff09\u8868\u793a *\/\n.modal-overlay:target {\n  display: block;\n  position: fixed;\n  inset: 0;                    \/* top\/right\/bottom\/left \u3092\u4e00\u62ec\u6307\u5b9a *\/\n  background-color: rgba(0, 0, 0, 0.55);\n  z-index: 1000;\n}\n\n\/* \u30e2\u30fc\u30c0\u30eb\u306e\u4e2d\u592e\u30dc\u30c3\u30af\u30b9 *\/\n.modal-content {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  background: #fff;\n  border-radius: 8px;\n  padding: 2rem;\n  width: min(90%, 480px);\n  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);\n}\n\n\/* \u9589\u3058\u308b\u30dc\u30bf\u30f3 *\/\n.btn-close {\n  display: inline-block;\n  margin-top: 1rem;\n  color: #555;\n  text-decoration: none;\n}\n.btn-close:hover {\n  color: #d16176;\n}<\/code><\/pre><\/div>\n<h3 class=\"wp-block-heading\">:target\u65b9\u5f0f\u306e\u30e1\u30ea\u30c3\u30c8\u30fb\u30c7\u30e1\u30ea\u30c3\u30c8<\/h3>\n<ul class=\"wp-block-list\">\n<li><strong>\u30e1\u30ea\u30c3\u30c8<\/strong>\uff1aJavaScript\u304c\u4e00\u5207\u4e0d\u8981\u3002HTML\u3068CSS\u3060\u3051\u3067\u5b8c\u7d50\u3059\u308b\u3002\u5b9f\u88c5\u304c\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb\u3067\u7406\u89e3\u3057\u3084\u3059\u3044\u3002<\/li>\n<li><strong>\u30c7\u30e1\u30ea\u30c3\u30c8<\/strong>\uff1a\u30e2\u30fc\u30c0\u30eb\u3092\u958b\u304f\u3068URL\u306e\u30cf\u30c3\u30b7\u30e5\u304c\u5909\u308f\u308a\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u300c\u623b\u308b\u300d\u30dc\u30bf\u30f3\u306e\u6319\u52d5\u306b\u5f71\u97ff\u304c\u51fa\u308b\u3002\u30da\u30fc\u30b8\u5185\u306b\u30a2\u30f3\u30ab\u30fc\u30ea\u30f3\u30af\u304c\u591a\u3044\u5834\u5408\u306f\u7af6\u5408\u306b\u6ce8\u610f\u3002<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">URL\u306e\u5909\u5316\u304c\u6c17\u306b\u306a\u3089\u306a\u3044\u7528\u9014\uff08\u30e9\u30f3\u30c7\u30a3\u30f3\u30b0\u30da\u30fc\u30b8\u306e\u554f\u3044\u5408\u308f\u305b\u30e2\u30fc\u30c0\u30eb\u306a\u3069\uff09\u3067\u306f<code>:target<\/code>\u65b9\u5f0f\u304c\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u304a\u3059\u3059\u3081\u3067\u3059\u3002URL\u3092\u5909\u3048\u305f\u304f\u306a\u3044\u5834\u5408\u306f\u6b21\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u3067\u4f5c\u308b\u30e2\u30fc\u30c0\u30eb<\/h2><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" alt=\"\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u3067\u4f5c\u308b\u30e2\u30fc\u30c0\u30eb\" class=\"wp-image-24409\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-03-v2.jpg\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-03-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-03-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-03-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<p class=\"wp-block-paragraph\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u3068\u306f\u3001\u975e\u8868\u793a\u306b\u3057\u305f<code>&lt;input type=\"checkbox\"&gt;<\/code>\u3068<code>&lt;label&gt;<\/code>\u3092\u7d44\u307f\u5408\u308f\u305b\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e<code>:checked<\/code>\u72b6\u614b\u3092CSS\u3067\u691c\u77e5\u3057\u3066\u30b9\u30bf\u30a4\u30eb\u3092\u5207\u308a\u66ff\u3048\u308b\u30c6\u30af\u30cb\u30c3\u30af\u3067\u3059\u3002URL\u304c\u5909\u308f\u3089\u306a\u3044\u305f\u3081\u3001<code>:target<\/code>\u65b9\u5f0f\u3088\u308a\u3082\u5e45\u5e83\u3044\u5834\u9762\u3067\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u4ed5\u7d44\u307f\u306e\u6982\u8981<\/h3>\n<p class=\"wp-block-paragraph\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e<code>id<\/code>\u3068<code>&lt;label&gt;<\/code>\u306e<code>for<\/code>\u5c5e\u6027\u3092\u4e00\u81f4\u3055\u305b\u308b\u3068\u3001\u30e9\u30d9\u30eb\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3060\u3051\u3067\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u30aa\u30f3\u30fb\u30aa\u30d5\u304c\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002CSS\u306e\u96a3\u63a5\u5144\u5f1f\u7d50\u5408\u5b50\uff08<code>+<\/code>\uff09\u3092\u4f7f\u3063\u3066\u300c\u30c1\u30a7\u30c3\u30af\u3055\u308c\u3066\u3044\u308b\u3068\u304d\u3060\u3051\u30e2\u30fc\u30c0\u30eb\u3092\u8868\u793a\u300d\u3068\u3044\u3046\u6307\u5b9a\u304c\u3067\u304d\u307e\u3059\u3002\u9589\u3058\u308b\u30dc\u30bf\u30f3\u3082\u540c\u3058<code>label<\/code>\u3067\u4f5c\u308b\u3053\u3068\u3067\u3001\u3082\u3046\u4e00\u5ea6\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30c1\u30a7\u30c3\u30af\u304c\u5916\u308c\u3066\u30e2\u30fc\u30c0\u30eb\u304c\u975e\u8868\u793a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u91cd\u8981\u306a\u5236\u7d04\u3068\u3057\u3066\u3001<strong>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\uff08<code>input<\/code>\uff09\u3068\u30e2\u30fc\u30c0\u30eb\u672c\u4f53\uff08<code>.modal-overlay<\/code>\uff09\u306f\u540c\u3058\u89aa\u8981\u7d20\u306e\u76f4\u63a5\u306e\u5b50\u8981\u7d20\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059<\/strong>\u3002\u96a3\u63a5\u5144\u5f1f\u7d50\u5408\u5b50<code>+<\/code>\u306fDOM\u306e\u9806\u5e8f\u306b\u4f9d\u5b58\u3059\u308b\u305f\u3081\u3001HTML\u69cb\u9020\u3092\u304d\u3061\u3093\u3068\u6574\u3048\u308b\u3053\u3068\u304c\u6b63\u5e38\u52d5\u4f5c\u306e\u9375\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">HTML<\/h3>\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;!-- \u2460 \u975e\u8868\u793a\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\uff08id \u304c label \u306e for \u3068\u4e00\u81f4\uff09 --&gt;\n&lt;input type=\"checkbox\" id=\"modal-toggle\" class=\"modal-input\" \/&gt;\n\n&lt;!-- \u2461 \u958b\u304f\u30dc\u30bf\u30f3\uff08label \u3067 #modal-toggle \u3092\u64cd\u4f5c\uff09 --&gt;\n&lt;label for=\"modal-toggle\" class=\"btn-open\"&gt;\u30e2\u30fc\u30c0\u30eb\u3092\u958b\u304f&lt;\/label&gt;\n\n&lt;!-- \u2462 \u30e2\u30fc\u30c0\u30eb\u672c\u4f53\uff08input \u306e\u76f4\u5f8c\u306e\u5144\u5f1f\u8981\u7d20\u306b\u3059\u308b\uff09 --&gt;\n&lt;div class=\"modal-overlay\"&gt;\n  &lt;div class=\"modal-content\"&gt;\n    &lt;h2&gt;\u30e2\u30fc\u30c0\u30eb\u306e\u30bf\u30a4\u30c8\u30eb&lt;\/h2&gt;\n    &lt;p&gt;\u3053\u3053\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u66f8\u304d\u307e\u3059\u3002&lt;\/p&gt;\n    &lt;!-- \u9589\u3058\u308b\u30dc\u30bf\u30f3\u3082 label \u3067\u540c\u3058 input \u3092\u64cd\u4f5c --&gt;\n    &lt;label for=\"modal-toggle\" class=\"btn-close\"&gt;\u2715 \u9589\u3058\u308b&lt;\/label&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre><\/div>\n<h3 class=\"wp-block-heading\">CSS<\/h3>\n<p class=\"wp-block-paragraph\"><code>.modal-input:checked + .modal-overlay<\/code>\u3068\u3044\u3046\u8a18\u6cd5\u3067\u300c\u30c1\u30a7\u30c3\u30af\u3055\u308c\u305f input \u306e\u76f4\u5f8c\u306e .modal-overlay\u300d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u2500\u2500 \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u306b\u3088\u308b\u30e2\u30fc\u30c0\u30eb\u5207\u308a\u66ff\u3048 \u2500\u2500 *\/\n\n\/* \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u81ea\u4f53\u306f\u753b\u9762\u306b\u8868\u793a\u3057\u306a\u3044 *\/\n.modal-input {\n  display: none;\n}\n\n\/* \u521d\u671f\u72b6\u614b\uff1a\u30e2\u30fc\u30c0\u30eb\u975e\u8868\u793a *\/\n.modal-overlay {\n  display: none;\n}\n\n\/* \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u304c :checked \u306e\u3068\u304d\u3001\u76f4\u5f8c\u306e\u5144\u5f1f\uff08.modal-overlay\uff09\u3092\u8868\u793a *\/\n\/* \u203b input \u3068 .modal-overlay \u304c\u540c\u3058\u89aa\u306e\u76f4\u63a5\u306e\u5b50\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308b *\/\n.modal-input:checked + .modal-overlay {\n  display: block;\n  position: fixed;\n  inset: 0;\n  background-color: rgba(0, 0, 0, 0.55);\n  z-index: 1000;\n}\n\n\/* \u30e2\u30fc\u30c0\u30eb\u306e\u4e2d\u592e\u30dc\u30c3\u30af\u30b9 *\/\n.modal-content {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  background: #fff;\n  border-radius: 8px;\n  padding: 2rem;\n  width: min(90%, 480px);\n  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);\n}\n\n\/* \u958b\u304f\u30dc\u30bf\u30f3\uff08label\uff09 *\/\n.btn-open {\n  display: inline-block;\n  padding: 0.6rem 1.4rem;\n  background: #d16176;\n  color: #fff;\n  border-radius: 4px;\n  cursor: pointer;\n}\n\n\/* \u9589\u3058\u308b\u30dc\u30bf\u30f3\uff08label\uff09 *\/\n.btn-close {\n  display: inline-block;\n  margin-top: 1rem;\n  color: #555;\n  cursor: pointer;\n}\n.btn-close:hover {\n  color: #d16176;\n}<\/code><\/pre><\/div>\n<h3 class=\"wp-block-heading\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u306e\u30e1\u30ea\u30c3\u30c8\u30fb\u30c7\u30e1\u30ea\u30c3\u30c8<\/h3>\n<ul class=\"wp-block-list\">\n<li><strong>\u30e1\u30ea\u30c3\u30c8<\/strong>\uff1aJavaScript\u304c\u4e0d\u8981\u3002URL\u304c\u5909\u5316\u3057\u306a\u3044\u306e\u3067<code>:target<\/code>\u65b9\u5f0f\u306e\u5f31\u70b9\u3092\u88dc\u3048\u308b\u3002<\/li>\n<li><strong>\u30c7\u30e1\u30ea\u30c3\u30c8<\/strong>\uff1aHTML\u306e\u69cb\u9020\uff08input\u3068\u30e2\u30fc\u30c0\u30eb\u3092\u96a3\u63a5\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\uff09\u306b\u5236\u7d04\u304c\u751f\u307e\u308c\u308b\u3002\u30b9\u30af\u30ea\u30fc\u30f3\u30ea\u30fc\u30c0\u30fc\u304c\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3068\u3057\u3066\u8aad\u307f\u4e0a\u3052\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u3001\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u4e0a\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3002<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">CSS\u306e\u307f\u3067\u5b9f\u88c5\u3057\u305f\u3044\u3001\u304b\u3064URL\u3092\u5909\u3048\u305f\u304f\u306a\u3044\u5834\u5408\u306f\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u304c\u6709\u52b9\u306a\u9078\u629e\u80a2\u3067\u3059\u3002\u305f\u3060\u3057\u8907\u6570\u306e\u30e2\u30fc\u30c0\u30eb\u3092\u6301\u3064\u30da\u30fc\u30b8\u3067\u306fHTML\u304c\u8907\u96d1\u306b\u306a\u308a\u3084\u3059\u3044\u305f\u3081\u3001\u305d\u306e\u5834\u5408\u306f<code>&lt;dialog&gt;<\/code>\u8981\u7d20\u306e\u5229\u7528\u3092\u691c\u8a0e\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u898b\u305f\u76ee\u3092\u6574\u3048\u308b\uff1a\u80cc\u666f\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u30fb\u4e2d\u592e\u5bc4\u305b\u30fb\u9589\u3058\u308b\u30dc\u30bf\u30f3<\/h2>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1672\" height=\"941\" alt=\"\u898b\u305f\u76ee\u3092\u6574\u3048\u308b\uff1a\u80cc\u666f\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u30fb\u4e2d\u592e\u5bc4\u305b\u30fb\u9589\u3058\u308b\u30dc\u30bf\u30f3\" class=\"wp-image-20661\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-02.jpg\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-02.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-02-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-02-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\">\u958b\u9589\u306e\u4ed5\u7d44\u307f\u304c\u3067\u304d\u305f\u3089\u6b21\u306f\u898b\u305f\u76ee\u3092\u78e8\u304d\u307e\u3057\u3087\u3046\u3002\u30e2\u30fc\u30c0\u30eb\u306b\u5fc5\u8981\u306a\u30d3\u30b8\u30e5\u30a2\u30eb\u8981\u7d20\u306f\u5927\u304d\u304f4\u3064\uff1a\uff081\uff09\u80cc\u666f\u3092\u6697\u304f\u3059\u308b\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u3001\uff082\uff09\u30b3\u30f3\u30c6\u30f3\u30c4\u30dc\u30c3\u30af\u30b9\u306e\u4e2d\u592e\u5bc4\u305b\u3001\uff083\uff09\u89d2\u4e38\u3084\u5f71\u306b\u3088\u308b\u30ab\u30fc\u30c9\u611f\u3001\uff084\uff09\u5206\u304b\u308a\u3084\u3059\u3044\u9589\u3058\u308b\u30dc\u30bf\u30f3\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u4e2d\u592e\u5bc4\u305b\u306e\u4ed5\u7d44\u307f<\/h3>\n<p class=\"wp-block-paragraph\">\u30e2\u30fc\u30c0\u30eb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u753b\u9762\u4e2d\u592e\u306b\u914d\u7f6e\u3059\u308b\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u65b9\u6cd5\u306f\u3001<code>position: absolute<\/code>\u3068<code>transform: translate(-50%, -50%)<\/code>\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u3059\u3002<code>top: 50%; left: 50%<\/code>\u3067\u30dc\u30c3\u30af\u30b9\u306e\u5de6\u4e0a\u7aef\u3092\u753b\u9762\u4e2d\u592e\u306b\u7f6e\u3044\u3066\u304b\u3089\u3001<code>transform<\/code>\u3067\u81ea\u5206\u306e\u30b5\u30a4\u30ba\u306e\u534a\u5206\u3060\u3051\u4e0a\u30fb\u5de6\u306b\u305a\u3089\u3059\u3053\u3068\u3067\u3001\u30dc\u30c3\u30af\u30b9\u306e\u4e2d\u5fc3\u304c\u753b\u9762\u4e2d\u592e\u306b\u306a\u308a\u307e\u3059\u3002\u6a2a\u5e45\u306f<code>width: min(90vw, 520px)<\/code>\u3068\u3059\u308b\u3068\u3001\u5c0f\u3055\u3044\u753b\u9762\u3067\u3082\u5de6\u53f3\u306b\u4f59\u767d\u304c\u4fdd\u305f\u308c\u308b\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">CSS\uff08\u898b\u305f\u76ee\u306e\u6574\u3048\u65b9\u307e\u3068\u3081\uff09<\/h3>\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u2500\u2500 \u30e2\u30fc\u30c0\u30eb\u306e\u898b\u305f\u76ee\u3092\u6574\u3048\u308b\u5171\u901aCSS \u2500\u2500 *\/\n\n\/* \u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\uff08\u80cc\u666f\u306e\u6697\u5e55\uff09 *\/\n.modal-overlay {\n  position: fixed;\n  inset: 0;\n  background-color: rgba(0, 0, 0, 0.55);  \/* \u534a\u900f\u660e\u306e\u9ed2 *\/\n  z-index: 1000;\n}\n\n\/* \u30e2\u30fc\u30c0\u30eb\u672c\u4f53\u30dc\u30c3\u30af\u30b9 *\/\n.modal-content {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);  \/* \u6b63\u78ba\u306a\u4e2d\u592e\u5bc4\u305b *\/\n\n  background: #fff;\n  border-radius: 12px;               \/* \u89d2\u4e38 *\/\n  padding: 2rem 2.5rem;\n  width: min(90vw, 520px);           \/* \u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc *\/\n  max-height: 85vh;                  \/* \u7e26\u306b\u9577\u3044\u30b3\u30f3\u30c6\u30f3\u30c4\u306f\u5185\u90e8\u30b9\u30af\u30ed\u30fc\u30eb *\/\n  overflow-y: auto;\n  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);\n}\n\n\/* \u30e2\u30fc\u30c0\u30eb\u5185\u306e\u898b\u51fa\u3057 *\/\n.modal-content h2 {\n  margin-top: 0;\n  font-size: 1.25rem;\n  color: #333;\n}\n\n\/* \u9589\u3058\u308b\u30dc\u30bf\u30f3\uff08\u53f3\u4e0a\u306b\u7d76\u5bfe\u914d\u7f6e\uff09 *\/\n.btn-close-x {\n  position: absolute;\n  top: 0.75rem;\n  right: 1rem;\n  font-size: 1.5rem;\n  line-height: 1;\n  color: #888;\n  text-decoration: none;\n  cursor: pointer;\n  background: none;\n  border: none;\n  padding: 0.25rem;\n}\n.btn-close-x:hover {\n  color: #d16176;  \/* \u30d6\u30e9\u30f3\u30c9\u30ab\u30e9\u30fc\u3067\u30db\u30d0\u30fc\u5909\u5316 *\/\n}\n\n\/* \u958b\u304f\u30dc\u30bf\u30f3 *\/\n.btn-open {\n  display: inline-block;\n  padding: 0.7rem 1.6rem;\n  background: #d16176;\n  color: #fff;\n  border-radius: 6px;\n  text-decoration: none;\n  font-weight: bold;\n  cursor: pointer;\n  border: none;\n  font-size: 1rem;\n}\n.btn-open:hover {\n  background: #b84f63;\n}<\/code><\/pre><\/div>\n<h3 class=\"wp-block-heading\">\u9589\u3058\u308b\u30dc\u30bf\u30f3\u306e\u914d\u7f6e\u306b\u3064\u3044\u3066<\/h3>\n<p class=\"wp-block-paragraph\">\u9589\u3058\u308b\u30dc\u30bf\u30f3\u306f<code>.modal-content<\/code>\u306b<code>position: relative<\/code>\u3092\u8ffd\u52a0\u3057\u3001\u30dc\u30bf\u30f3\u3092<code>position: absolute; top: 0.75rem; right: 1rem<\/code>\u3067\u53f3\u4e0a\u306b\u56fa\u5b9a\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u306a\u30c7\u30b6\u30a4\u30f3\u3067\u3059\u3002<code>:target<\/code>\u65b9\u5f0f\u3067\u306f<code>&lt;a href=\"#!\"&gt;<\/code>\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u3067\u306f<code>&lt;label for=\"...\"&gt;<\/code>\u3001<code>&lt;dialog&gt;<\/code>\u3067\u306f<code>&lt;button&gt;<\/code>\u3068\u3001\u65b9\u5f0f\u306b\u3088\u3063\u3066\u4f7f\u3046HTML\u8981\u7d20\u304c\u5909\u308f\u308b\u70b9\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u80cc\u666f\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\uff08\u6697\u5e55\u90e8\u5206\uff09\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306b\u30e2\u30fc\u30c0\u30eb\u3092\u9589\u3058\u305f\u3044\u5834\u5408\u306f\u3001<code>:target<\/code>\u65b9\u5f0f\u306a\u3089<code>.modal-overlay<\/code>\u5168\u4f53\u3092\u9589\u3058\u308b\u30ea\u30f3\u30af\u306b\u3057\u3066<code>.modal-content<\/code>\u306e\u30af\u30ea\u30c3\u30af\u304c\u4f1d\u64ad\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u304b\u3001\u5f8c\u8ff0\u306e<code>&lt;dialog&gt;<\/code>\u8981\u7d20\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u691c\u8a0e\u3057\u307e\u3057\u3087\u3046\u3002CSS\u306e\u307f\u3067\u306f\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u30af\u30ea\u30c3\u30af\u306b\u3088\u308b\u30af\u30ed\u30fc\u30ba\u306f\u96e3\u6613\u5ea6\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2 class=\"wp-block-heading\">transition\u3067\u3075\u308f\u3063\u3068\u958b\u9589\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/h2><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" alt=\"transition\u3067\u3075\u308f\u3063\u3068\u958b\u9589\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\" class=\"wp-image-24410\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-05-v2.jpg\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-05-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-05-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-05-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<p class=\"wp-block-paragraph\"><code>display: none<\/code>\u304b\u3089<code>display: block<\/code>\u3078\u306e\u5207\u308a\u66ff\u3048\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u304d\u306a\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u306fCSS\u3092\u5b66\u3076\u4e0a\u3067\u3088\u304f\u906d\u9047\u3059\u308b\u58c1\u3067\u3059\u3002<code>display<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u96e2\u6563\u5024\u306e\u305f\u3081\u3001<code>transition<\/code>\u3092\u8a2d\u5b9a\u3057\u3066\u3082\u88dc\u9593\u304c\u884c\u308f\u308c\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001\u30d5\u30a7\u30fc\u30c9\u30a4\u30f3\u30fb\u30d5\u30a7\u30fc\u30c9\u30a2\u30a6\u30c8\u3092\u5b9f\u73fe\u3059\u308b\u306b\u306f<code>opacity<\/code>\u3068<code>visibility<\/code>\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u65b9\u6cd5\u304c\u5b9a\u756a\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">opacity \u3068 visibility \u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u7406\u7531<\/h3>\n<p class=\"wp-block-paragraph\"><code>opacity: 0<\/code>\u3060\u3051\u306b\u3059\u308b\u3068\u8981\u7d20\u306f\u898b\u3048\u306a\u304f\u306a\u308a\u307e\u3059\u304c\u3001\u30af\u30ea\u30c3\u30af\u306a\u3069\u306e\u30a4\u30d9\u30f3\u30c8\u306f\u4f9d\u7136\u3068\u3057\u3066\u53d7\u3051\u4ed8\u3051\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u305d\u3053\u3067<code>visibility: hidden<\/code>\u3082\u540c\u6642\u306b\u4f7f\u3044\u307e\u3059\u3002<code>visibility<\/code>\u306f<code>transition<\/code>\u3067\u88dc\u9593\u3067\u304d\u308b\uff08\u96e2\u6563\u7684\u306b\u5207\u308a\u66ff\u308f\u308b\uff09\u30d7\u30ed\u30d1\u30c6\u30a3\u306a\u306e\u3067\u3001<code>opacity<\/code>\u306e\u30d5\u30a7\u30fc\u30c9\u3068\u540c\u671f\u3055\u305b\u308b\u3053\u3068\u3067\u300c\u898b\u3048\u306a\u304f\u306a\u3063\u305f\u3089\u30af\u30ea\u30c3\u30af\u3082\u53d7\u3051\u4ed8\u3051\u306a\u3044\u300d\u72b6\u614b\u3092\u4f5c\u308c\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001\u30e2\u30fc\u30c0\u30eb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5c11\u3057\u4e0b\u304b\u3089\u30b9\u30e9\u30a4\u30c9\u3057\u3066\u767b\u5834\u3055\u305b\u308b\u3068\u3001\u3088\u308a\u6d17\u7df4\u3055\u308c\u305f\u5370\u8c61\u306b\u306a\u308a\u307e\u3059\u3002<code>transform: translate(-50%, -48%)<\/code>\uff08\u5c11\u3057\u4e0a\u306b\u305a\u308c\u305f\u4f4d\u7f6e\uff09\u2192 <code>:target<\/code>\u6642\u306b<code>translate(-50%, -50%)<\/code>\uff08\u6b63\u4f4d\u7f6e\uff09\u3078\u5909\u5316\u3055\u305b\u308b\u3053\u3068\u3067\u30b9\u30e9\u30a4\u30c9\u30a2\u30c3\u30d7\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">CSS\uff08\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u8fbc\u307f\u306e\u5b8c\u6210\u7248\uff09<\/h3>\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u2500\u2500 opacity\u3068visibility\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u30d5\u30a7\u30fc\u30c9\u30a4\u30f3\u30fb\u30a2\u30a6\u30c8 \u2500\u2500 *\/\n\n\/* :target \u65b9\u5f0f\u306e\u5834\u5408\uff08\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u306f .modal-input:checked + .modal-overlay \u306b\u8aad\u307f\u66ff\u3048\u308b\uff09 *\/\n\n\/* \u521d\u671f\u72b6\u614b\uff1a\u900f\u660e + \u975e\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\uff08display:none \u3088\u308a\u67d4\u8edf\uff09 *\/\n.modal-overlay {\n  position: fixed;\n  inset: 0;\n  background-color: rgba(0, 0, 0, 0.55);\n  z-index: 1000;\n\n  opacity: 0;\n  visibility: hidden;  \/* \u30af\u30ea\u30c3\u30af\u306a\u3069\u3092\u53d7\u3051\u4ed8\u3051\u306a\u3044 *\/\n  transition: opacity 0.3s ease, visibility 0.3s ease;\n}\n\n\/* :target \u72b6\u614b\uff1a\u30d5\u30a7\u30fc\u30c9\u30a4\u30f3\u3067\u8868\u793a *\/\n.modal-overlay:target {\n  opacity: 1;\n  visibility: visible;\n}\n\n\/* \u30e2\u30fc\u30c0\u30eb\u30b3\u30f3\u30c6\u30f3\u30c4\u3082\u5c11\u3057\u4e0b\u304b\u3089\u30b9\u30e9\u30a4\u30c9\u3057\u3066\u767b\u5834 *\/\n.modal-content {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -48%);  \/* \u5c11\u3057\u4e0a\u306b\u4f4d\u7f6e\u3092\u305a\u3089\u3057\u3066\u304a\u304f *\/\n  background: #fff;\n  border-radius: 12px;\n  padding: 2rem 2.5rem;\n  width: min(90vw, 520px);\n  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);\n\n  transition: transform 0.3s ease;\n}\n\n\/* :target \u6642\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u6b63\u4f4d\u7f6e\uff08\u4e2d\u592e\uff09\u306b\u623b\u3059 *\/\n.modal-overlay:target .modal-content {\n  transform: translate(-50%, -50%);\n}<\/code><\/pre><\/div>\n<h3 class=\"wp-block-heading\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u3078\u306e\u9069\u7528<\/h3>\n<p class=\"wp-block-paragraph\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u306b\u540c\u3058\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u9069\u7528\u3059\u308b\u5834\u5408\u306f\u3001<code>.modal-overlay:target<\/code>\u3092<code>.modal-input:checked + .modal-overlay<\/code>\u306b\u3001<code>.modal-overlay:target .modal-content<\/code>\u3092<code>.modal-input:checked + .modal-overlay .modal-content<\/code>\u306b\u66f8\u304d\u63db\u3048\u308b\u3060\u3051\u3067\u3059\u3002CSS\u306e\u30bb\u30ec\u30af\u30bf\u30fc\u90e8\u5206\u3060\u3051\u5909\u3048\u308c\u3070\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u4ed5\u7d44\u307f\u306f\u307e\u3063\u305f\u304f\u540c\u3058\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">2024\u5e74\u4ee5\u964d\u3001Chrome\u30fbFirefox\u30fbSafari\u306e\u6700\u65b0\u7248\u3067\u306f<code>@starting-style<\/code>\u30eb\u30fc\u30eb\u3068<code>display<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u59cb\u3081\u3066\u3044\u307e\u3059\uff08\u300c\u96e2\u6563\u7684\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u300d\uff09\u3002\u305f\u3060\u3057\u3001\u307e\u3060\u666e\u53ca\u9014\u4e0a\u306e\u305f\u3081\u3001\u73fe\u72b6\u3067\u306f<code>opacity<\/code>\uff0b<code>visibility<\/code>\u306e\u7d44\u307f\u5408\u308f\u305b\u304c\u6700\u3082\u5b89\u5168\u306a\u5b9f\u88c5\u3067\u3059\u3002<\/p>\n<h2 class=\"wp-block-heading\">HTML\u6a19\u6e96\u306e<code>&lt;dialog&gt;<\/code>\u8981\u7d20\u3092\u4f7f\u3046\u65b9\u6cd5<\/h2>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1672\" height=\"941\" alt=\"HTML\u6a19\u6e96\u306e&lt;dialog&gt;\u8981\u7d20\u3092\u4f7f\u3046\u65b9\u6cd5\" class=\"wp-image-20662\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-03.jpg\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-03.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-03-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-03-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\"><code>&lt;dialog&gt;<\/code>\u306fHTML\u306b\u6a19\u6e96\u3067\u7528\u610f\u3055\u308c\u305f\u30e2\u30fc\u30c0\u30eb\u30fb\u30c0\u30a4\u30a2\u30ed\u30b0\u7528\u306e\u8981\u7d20\u3067\u3059\u3002Chrome\u30fbFirefox\u30fbSafari\u30fbEdge\u306e\u6700\u65b0\u7248\u3059\u3079\u3066\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u304a\u308a\u3001\u73fe\u5728\u3067\u306f\u5b9f\u52d9\u3067\u306e\u4f7f\u7528\u304c\u5341\u5206\u306b\u73fe\u5b9f\u7684\u3067\u3059\u3002\u6700\u5c0f\u9650\u306eJavaScript\uff081\u884c\u306e<code>showModal()<\/code>\uff09\u304c\u5fc5\u8981\u3067\u3059\u304c\u3001\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u30fbESC\u30ad\u30fc\u5bfe\u5fdc\u30fb\u80cc\u666f\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u304c\u6a19\u6e96\u3067\u5099\u308f\u3063\u3066\u3044\u308b\u305f\u3081\u3001<strong>3\u3064\u306e\u65b9\u6cd5\u306e\u4e2d\u3067\u6700\u3082\u304a\u3059\u3059\u3081\u3067\u304d\u308b\u9078\u629e\u80a2<\/strong>\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\"><code>showModal()<\/code>\u3068<code>show()<\/code>\u306e\u9055\u3044<\/h3>\n<p class=\"wp-block-paragraph\"><code>&lt;dialog&gt;<\/code>\u3092\u958b\u304f\u30e1\u30bd\u30c3\u30c9\u306f2\u3064\u3042\u308a\u307e\u3059\u3002<code>show()<\/code>\u306f\u30e2\u30fc\u30c9\u30ec\u30b9\u30c0\u30a4\u30a2\u30ed\u30b0\u3068\u3057\u3066\u958b\u304d\u3001\u80cc\u666f\u306e\u64cd\u4f5c\u304c\u53ef\u80fd\u3067\u3059\u3002<code>showModal()<\/code>\u306f\u30e2\u30fc\u30c0\u30eb\u3068\u3057\u3066\u958b\u304d\u3001\u80cc\u666f\u304c<code>::backdrop<\/code>\u3067\u30ab\u30d0\u30fc\u3055\u308c\u3001\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u30c0\u30a4\u30a2\u30ed\u30b0\u5185\u306b\u9589\u3058\u8fbc\u3081\u3089\u308c\u307e\u3059\u3002\u30e2\u30fc\u30c0\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u308b\u76ee\u7684\u3067\u306f<strong>\u5fc5\u305a<code>showModal()<\/code>\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044<\/strong>\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u9589\u3058\u65b9\uff1a<code>&lt;form method=\"dialog\"&gt;<\/code><\/h3>\n<p class=\"wp-block-paragraph\">\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u9589\u3058\u308b\u306e\u306b\u4fbf\u5229\u306aHTML\u306e\u4ed5\u7d44\u307f\u304c<code>&lt;form method=\"dialog\"&gt;<\/code>\u3067\u3059\u3002\u3053\u306e<code>form<\/code>\u306e\u4e2d\u306b<code>&lt;button&gt;<\/code>\u3092\u7f6e\u304f\u3068\u3001\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306b<code>dialog.close()<\/code>\u304c\u81ea\u52d5\u7684\u306b\u547c\u3070\u308c\u307e\u3059\u3002JavaScript\u3092\u8ffd\u52a0\u3067\u66f8\u304b\u306a\u304f\u3066\u3082\u9589\u3058\u308b\u52d5\u4f5c\u304c\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">HTML<\/h3>\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;!-- dialog \u8981\u7d20\uff08\u6700\u521d\u306f\u975e\u8868\u793a\uff09 --&gt;\n&lt;dialog id=\"my-dialog\" class=\"modal-dialog\"&gt;\n  &lt;h2&gt;\u30e2\u30fc\u30c0\u30eb\u306e\u30bf\u30a4\u30c8\u30eb&lt;\/h2&gt;\n  &lt;p&gt;\u3053\u3053\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u66f8\u304d\u307e\u3059\u3002&lt;\/p&gt;\n  &lt;!-- \u9589\u3058\u308b\u30dc\u30bf\u30f3\uff08form[method=\"dialog\"]\u3092\u4f7f\u3046\u3068JS\u306a\u3057\u3067\u9589\u3058\u3089\u308c\u308b\uff09 --&gt;\n  &lt;form method=\"dialog\"&gt;\n    &lt;button class=\"btn-close-dialog\"&gt;\u9589\u3058\u308b&lt;\/button&gt;\n  &lt;\/form&gt;\n&lt;\/dialog&gt;\n\n&lt;!-- \u958b\u304f\u30dc\u30bf\u30f3 --&gt;\n&lt;button id=\"open-dialog\" class=\"btn-open\"&gt;\u30e2\u30fc\u30c0\u30eb\u3092\u958b\u304f&lt;\/button&gt;<\/code><\/pre><\/div>\n<h3 class=\"wp-block-heading\">JavaScript\uff08\u6700\u5c0f\u9650\uff09<\/h3>\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-javascript\" data-lang=\"JavaScript\"><code>const dialog = document.getElementById('my-dialog');\nconst openBtn = document.getElementById('open-dialog');\n\n\/\/ showModal() \u3067\u30e2\u30fc\u30c0\u30eb\u3068\u3057\u3066\u958b\u304f\uff08::backdrop \u304c\u6709\u52b9\u306b\u306a\u308b\uff09\nopenBtn.addEventListener('click', () =&gt; {\n  dialog.showModal();\n});\n\n\/\/ \u203b \u9589\u3058\u308b\u306f &lt;form method=\"dialog\"&gt; \u304c\u62c5\u5f53\u3059\u308b\u305f\u3081\u3001\u8ffd\u52a0\u306e JS \u306f\u4e0d\u8981<\/code><\/pre><\/div>\n<h3 class=\"wp-block-heading\">CSS<\/h3>\n<p class=\"wp-block-paragraph\"><code>&lt;dialog&gt;<\/code>\u306b\u306f\u30d6\u30e9\u30a6\u30b6\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30b9\u30bf\u30a4\u30eb\uff08<code>margin: auto<\/code>\u30fb<code>border<\/code>\u306a\u3069\uff09\u304c\u3042\u308b\u305f\u3081\u30ea\u30bb\u30c3\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3002<code>::backdrop<\/code>\u64ec\u4f3c\u8981\u7d20\u3067\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<code>[open]<\/code>\u5c5e\u6027\u30bb\u30ec\u30af\u30bf\u3067\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u958b\u3044\u3066\u3044\u308b\u3068\u304d\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u5f53\u3066\u3089\u308c\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u2500\u2500 dialog \u8981\u7d20\u306e\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0 \u2500\u2500 *\/\n\n\/* dialog \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30b9\u30bf\u30a4\u30eb\u3092\u30ea\u30bb\u30c3\u30c8\u3057\u3001\u4e2d\u592e\u914d\u7f6e *\/\n.modal-dialog {\n  position: fixed;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  margin: 0;          \/* \u30d6\u30e9\u30a6\u30b6\u30c7\u30d5\u30a9\u30eb\u30c8\u306e margin \u3092\u9664\u53bb *\/\n  padding: 2rem 2.5rem;\n  border: none;       \/* \u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u67a0\u7dda\u3092\u9664\u53bb *\/\n  border-radius: 12px;\n  width: min(90vw, 520px);\n  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);\n\n  \/* \u30d5\u30a7\u30fc\u30c9\u30a4\u30f3\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3 *\/\n  opacity: 0;\n  transition: opacity 0.3s ease;\n}\n\n\/* [open] \u5c5e\u6027\u304c\u4ed8\u3044\u305f\u3068\u304d\uff08showModal()\u5f8c\uff09\u306b\u8868\u793a *\/\n.modal-dialog[open] {\n  opacity: 1;\n}\n\n\/* \u80cc\u666f\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\uff08::backdrop \u64ec\u4f3c\u8981\u7d20\u3067\u30cd\u30a4\u30c6\u30a3\u30d6\u5bfe\u5fdc\uff09 *\/\n.modal-dialog::backdrop {\n  background-color: rgba(0, 0, 0, 0.55);\n  backdrop-filter: blur(2px);  \/* \u307c\u304b\u3057\u52b9\u679c\uff08\u4efb\u610f\uff09 *\/\n}\n\n\/* \u9589\u3058\u308b\u30dc\u30bf\u30f3 *\/\n.btn-close-dialog {\n  display: inline-block;\n  margin-top: 1rem;\n  padding: 0.5rem 1.2rem;\n  background: #eee;\n  border: none;\n  border-radius: 4px;\n  cursor: pointer;\n  font-size: 0.95rem;\n}\n.btn-close-dialog:hover {\n  background: #d16176;\n  color: #fff;\n}<\/code><\/pre><\/div>\n<h3 class=\"wp-block-heading\">ESC\u30ad\u30fc\u3067\u9589\u3058\u308b<\/h3>\n<p class=\"wp-block-paragraph\"><code>showModal()<\/code>\u3067\u958b\u3044\u305f<code>&lt;dialog&gt;<\/code>\u306f\u30d6\u30e9\u30a6\u30b6\u304cESC\u30ad\u30fc\u3092\u81ea\u52d5\u7684\u306b\u51e6\u7406\u3057\u3001\u62bc\u3059\u3068\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u9589\u3058\u307e\u3059\u3002<code>:target<\/code>\u65b9\u5f0f\u3084\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u306b\u306f\u3053\u306e\u6a5f\u80fd\u304c\u306a\u3044\u305f\u3081\u3001\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u306e\u89b3\u70b9\u3067\u306f<code>&lt;dialog&gt;<\/code>\u304c\u5727\u5012\u7684\u306b\u512a\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u3068\u5b9f\u52d9\u4e0a\u306e\u6ce8\u610f<\/h2><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" alt=\"\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u3068\u5b9f\u52d9\u4e0a\u306e\u6ce8\u610f\" class=\"wp-image-24411\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-07-v2.jpg\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-07-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-07-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-07-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<p class=\"wp-block-paragraph\">\u30e2\u30fc\u30c0\u30eb\u306f\u8996\u899a\u7684\u306aUI\u3068\u3057\u3066\u5e83\u304f\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u30b9\u30af\u30ea\u30fc\u30f3\u30ea\u30fc\u30c0\u30fc\u3084\ud0a4\ubcf4\ub4dc\u64cd\u4f5c\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u3068\u3063\u3066\u306f\u6271\u3044\u306b\u304f\u3044\u8981\u7d20\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3002\u5b9f\u52d9\u3067\u30e2\u30fc\u30c0\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306b\u306f\u3001\u6b21\u306e\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u4e0a\u306e\u8003\u616e\u70b9\u3092\u8e0f\u307e\u3048\u305f\u4e0a\u3067\u5b9f\u88c5\u65b9\u6cd5\u3092\u9078\u3073\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u30d5\u30a9\u30fc\u30ab\u30b9\u7ba1\u7406<\/h3>\n<p class=\"wp-block-paragraph\">\u30e2\u30fc\u30c0\u30eb\u304c\u958b\u3044\u305f\u3068\u304d\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u30d5\u30a9\u30fc\u30ab\u30b9\u306f\u30e2\u30fc\u30c0\u30eb\u5185\u306e\u6700\u521d\u306e\u30d5\u30a9\u30fc\u30ab\u30b9\u53ef\u80fd\u306a\u8981\u7d20\uff08\u30dc\u30bf\u30f3\u3084\u5165\u529b\u6b04\uff09\u306b\u79fb\u52d5\u3059\u3079\u304d\u3067\u3059\u3002<code>&lt;dialog&gt;<\/code>\u8981\u7d20\u306b<code>showModal()<\/code>\u3092\u4f7f\u3063\u305f\u5834\u5408\u306f\u30d6\u30e9\u30a6\u30b6\u304c\u3053\u308c\u3092\u81ea\u52d5\u3067\u884c\u3044\u307e\u3059\u3002<code>:target<\/code>\u65b9\u5f0f\u3084\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u3067\u306f\u81ea\u52d5\u79fb\u52d5\u306f\u884c\u308f\u308c\u306a\u3044\u305f\u3081\u3001\u672c\u683c\u7684\u306a\u904b\u7528\u3067\u306fJavaScript\u3067<code>element.focus()<\/code>\u3092\u547c\u3076\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u30e2\u30fc\u30c0\u30eb\u304c\u958b\u3044\u3066\u3044\u308b\u9593\u306f\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u30e2\u30fc\u30c0\u30eb\u306e\u5916\u306b\u79fb\u3089\u306a\u3044\u3088\u3046\u300c\u30d5\u30a9\u30fc\u30ab\u30b9\u30c8\u30e9\u30c3\u30d7\u300d\u3092\u5b9f\u88c5\u3059\u308b\u306e\u304c\u7406\u60f3\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">ESC\u30ad\u30fc\u3068\u30ad\u30fc\u30dc\u30fc\u30c9\u64cd\u4f5c<\/h3>\n<p class=\"wp-block-paragraph\">WCAG\uff08\u30a6\u30a7\u30d6\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u6307\u91dd\uff09\u3067\u306f\u30e2\u30fc\u30c0\u30eb\u3092ESC\u30ad\u30fc\u3067\u9589\u3058\u3089\u308c\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002<code>&lt;dialog&gt;<\/code>\u306e<code>showModal()<\/code>\u306f\u3053\u308c\u3092\u6a19\u6e96\u3067\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002\u4ed6\u306e2\u65b9\u5f0f\u3067\u306f\u5225\u9014JavaScript\u3067\u30ad\u30fc\u30a4\u30d9\u30f3\u30c8\u3092\u76e3\u8996\u3059\u308b\u5b9f\u88c5\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">ARIA\u306e\u4ed8\u4e0e<\/h3>\n<p class=\"wp-block-paragraph\"><code>:target<\/code>\u65b9\u5f0f\u30fb\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u3067\u306f<code>&lt;div&gt;<\/code>\u3092\u4f7f\u3046\u305f\u3081\u3001\u30b9\u30af\u30ea\u30fc\u30f3\u30ea\u30fc\u30c0\u30fc\u304c\u30e2\u30fc\u30c0\u30eb\u3068\u8a8d\u8b58\u3057\u307e\u305b\u3093\u3002<code>role=\"dialog\"<\/code>\u30fb<code>aria-modal=\"true\"<\/code>\u30fb<code>aria-labelledby<\/code>\uff08\u30bf\u30a4\u30c8\u30eb\u306eID\u3092\u53c2\u7167\uff09\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u3067\u3001\u30b9\u30af\u30ea\u30fc\u30f3\u30ea\u30fc\u30c0\u30fc\u304c\u30c0\u30a4\u30a2\u30ed\u30b0\u3068\u3057\u3066\u9069\u5207\u306b\u8aad\u307f\u4e0a\u3052\u307e\u3059\u3002<code>&lt;dialog&gt;<\/code>\u8981\u7d20\u306f<code>role=\"dialog\"<\/code>\u3092\u6697\u9ed9\u7684\u306b\u6301\u3064\u305f\u3081\u3001\u8ffd\u52a0\u4e0d\u8981\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u80cc\u666f\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u6291\u5236<\/h3>\n<p class=\"wp-block-paragraph\">\u30e2\u30fc\u30c0\u30eb\u304c\u958b\u3044\u3066\u3044\u308b\u3068\u304d\u3001\u80cc\u666f\u306e\u30da\u30fc\u30b8\u304c\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002CSS\u306e\u307f\u3067\u306f\u3053\u308c\u3092\u5b8c\u5168\u306b\u5236\u5fa1\u3059\u308b\u3053\u3068\u304c\u96e3\u3057\u304f\u3001JavaScript\u3067<code>document.body.style.overflow = 'hidden'<\/code>\u3092\u8a2d\u5b9a\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u306a\u5bfe\u51e6\u6cd5\u3067\u3059\u3002<code>&lt;dialog&gt;<\/code>\u306e<code>showModal()<\/code>\u306f\u30d6\u30e9\u30a6\u30b6\u306b\u3088\u3063\u3066\u306f\u81ea\u52d5\u3067\u80cc\u666f\u30b9\u30af\u30ed\u30fc\u30eb\u3092\u6291\u5236\u3057\u307e\u3059\u304c\u3001\u6319\u52d5\u306f\u30d6\u30e9\u30a6\u30b6\u9593\u3067\u5dee\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u5b9f\u52d9\u3067\u306e\u63a8\u5968\u65b9\u91dd<\/h3>\n<p class=\"wp-block-paragraph\">\u500b\u4eba\u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa\u3084\u5b66\u7fd2\u76ee\u7684\u306a\u3069\u8efd\u91cf\u306a\u5b9f\u88c5\u306b\u306f<code>:target<\/code>\u65b9\u5f0f\u304c\u624b\u8efd\u3067\u304a\u3059\u3059\u3081\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u4e0d\u7279\u5b9a\u591a\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u4f7f\u3046\u30b5\u30fc\u30d3\u30b9\u3084\u3001\u4f01\u696d\u306eWeb\u30b5\u30a4\u30c8\u306a\u3069\u672c\u683c\u7684\u306a\u904b\u7528\u3067\u306f<code>&lt;dialog&gt;<\/code>\u8981\u7d20\uff0b\u6700\u5c0f\u9650\u306eJavaScript\u3092\u4f7f\u3046\u3053\u3068\u3092\u5f37\u304f\u63a8\u5968\u3057\u307e\u3059\u3002CSS\u306e\u307f\u3067\u300c\u30bc\u30edJS\u300d\u3092\u5b9f\u73fe\u3059\u308b\u3053\u3068\u306b\u3053\u3060\u308f\u308a\u3059\u304e\u308b\u3068\u3001\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u9762\u3067\u591a\u304f\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u4e0d\u4fbf\u3092\u5f37\u3044\u308b\u7d50\u679c\u306b\u306a\u308a\u304b\u306d\u307e\u305b\u3093\u3002<\/p>\n<ul class=\"wp-block-list\">\n<li>\u5b66\u7fd2\u30fb\u8efd\u91cf\u5b9f\u88c5 \u2192 <code>:target<\/code>\u7591\u4f3c\u30af\u30e9\u30b9\u65b9\u5f0f<\/li>\n<li>URL\u3092\u5909\u3048\u305f\u304f\u306a\u3044\u30fbCSS\u306e\u307f\u7e1b\u308a \u2192 \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af<\/li>\n<li>\u5b9f\u52d9\u30fb\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u91cd\u8996 \u2192 <code>&lt;dialog&gt;<\/code> + <code>showModal()<\/code><\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\">\u30e2\u30fc\u30c0\u30eb\u304c\u958b\u304b\u306a\u3044\u30fb\u9589\u3058\u306a\u3044\u3068\u304d\u306e\u539f\u56e0\u3068\u5bfe\u51e6<\/h2>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1672\" height=\"941\" alt=\"\u30e2\u30fc\u30c0\u30eb\u304c\u958b\u304b\u306a\u3044\u30fb\u9589\u3058\u306a\u3044\u3068\u304d\u306e\u539f\u56e0\u3068\u5bfe\u51e6\" class=\"wp-image-20663\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-04.jpg\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-04.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-04-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-section-04-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<p class=\"wp-block-paragraph\">CSS\u30e2\u30fc\u30c0\u30eb\u304c\u601d\u3044\u901a\u308a\u306b\u52d5\u304b\u306a\u3044\u3068\u304d\u3001\u539f\u56e0\u306f\u307b\u307c\u6c7a\u307e\u3063\u3066\u3044\u307e\u3059\u3002\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u3068\u5bfe\u51e6\u6cd5\u3092\u4e00\u89a7\u3067\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u75c7\u72b6<\/th><th>\u4e3b\u306a\u539f\u56e0<\/th><th>\u5bfe\u51e6\u6cd5<\/th><\/tr><\/thead><tbody>\n<tr><td>\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3082\u30e2\u30fc\u30c0\u30eb\u304c\u8868\u793a\u3055\u308c\u306a\u3044\uff08<code>:target<\/code>\u65b9\u5f0f\uff09<\/td><td><code>href=\"#...\"<\/code>\u306e\u5024\u3068\u8981\u7d20\u306e<code>id<\/code>\u304c\u4e00\u81f4\u3057\u3066\u3044\u306a\u3044<\/td><td>\u30b9\u30da\u30eb\u30fb\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3092\u63c3\u3048\u308b\u3002\u958b\u767a\u30c4\u30fc\u30eb\u3067URL\u30cf\u30c3\u30b7\u30e5\u3092\u78ba\u8a8d<\/td><\/tr>\n<tr><td>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u3067\u958b\u304b\u306a\u3044<\/td><td><code>input<\/code>\u3068<code>.modal-overlay<\/code>\u304c\u96a3\u63a5\u3057\u3066\u3044\u306a\u3044\uff08DOM\u69cb\u9020\u306e\u554f\u984c\uff09<\/td><td><code>input + .modal-overlay<\/code>\u304c\u6210\u7acb\u3059\u308b\u3088\u3046HTML\u3092\u4fee\u6b63\u3059\u308b<\/td><\/tr>\n<tr><td>\u30e2\u30fc\u30c0\u30eb\u304c\u4ed6\u306e\u8981\u7d20\u306e\u5f8c\u308d\u306b\u96a0\u308c\u308b<\/td><td><code>z-index<\/code>\u304c\u4f4e\u3044\u30fb\u307e\u305f\u306f\u89aa\u8981\u7d20\u306b<code>overflow: hidden<\/code>\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b<\/td><td><code>z-index<\/code>\u3092\u5341\u5206\u5927\u304d\u306a\u5024\u306b\u3059\u308b\u3002<code>position: fixed<\/code>\u306e\u89aa\u8981\u7d20\u30c1\u30a7\u30c3\u30af<\/td><\/tr>\n<tr><td>\u80cc\u666f\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u304c\u753b\u9762\u5168\u4f53\u306b\u5e83\u304c\u3089\u306a\u3044<\/td><td><code>position: fixed; inset: 0<\/code>\u304c\u52b9\u3044\u3066\u3044\u306a\u3044<\/td><td>CSS\u3092\u78ba\u8a8d\u3002<code>inset<\/code>\u975e\u5bfe\u5fdc\u30d6\u30e9\u30a6\u30b6\u3067\u306f<code>top: 0; right: 0; bottom: 0; left: 0<\/code>\u3068\u66f8\u304f<\/td><\/tr>\n<tr><td>\u9589\u3058\u308b\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3082\u9589\u3058\u306a\u3044\uff08<code>:target<\/code>\u65b9\u5f0f\uff09<\/td><td><code>href=\"#!\"<\/code>\u304c<code>id=\"!\"<\/code>\u306e\u8981\u7d20\u3092\u898b\u3064\u3051\u3066\u3057\u307e\u3063\u3066\u3044\u308b<\/td><td><code>href=\"javascript:void(0)\"<\/code>\u3084\u7a7a\u30da\u30fc\u30b8\u306eURL\u306b\u3059\u308b\u304b\u3001\u5225\u306e\u65b9\u5f0f\u3092\u691c\u8a0e<\/td><\/tr>\n<tr><td><code>dialog<\/code>\u306e<code>showModal()<\/code>\u304c\u52d5\u304b\u306a\u3044<\/td><td>\u30da\u30fc\u30b8\u306b<code>id<\/code>\u304c\u91cd\u8907\u3057\u3066\u3044\u308b\u3001\u307e\u305f\u306f\u8981\u7d20\u304c\u5b58\u5728\u3057\u306a\u3044\u72b6\u614b\u3067JS\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b<\/td><td><code>DOMContentLoaded<\/code>\u5f8c\u306bJS\u5b9f\u884c\u3059\u308b\u3002<code>console.log(dialog)<\/code>\u3067<code>null<\/code>\u3067\u306a\u3044\u304b\u78ba\u8a8d<\/td><\/tr>\n<tr><td>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u52d5\u304b\u306a\u3044\uff08\u30d5\u30a7\u30fc\u30c9\u3057\u306a\u3044\uff09<\/td><td><code>display: none<\/code>\u3092\u4f7f\u3063\u3066\u3044\u3066transition\u304c\u52b9\u304b\u306a\u3044<\/td><td><code>opacity<\/code>\uff0b<code>visibility<\/code>\u65b9\u5f0f\u306b\u5909\u66f4\u3059\u308b<\/td><\/tr>\n<tr><td>\u30b9\u30de\u30db\u3067\u30e2\u30fc\u30c0\u30eb\u304c\u753b\u9762\u304b\u3089\u306f\u307f\u51fa\u308b<\/td><td><code>width<\/code>\u56fa\u5b9a\u5024\uff08px\uff09\u306e\u305b\u3044\u3067\u5c0f\u3055\u3044\u753b\u9762\u3067\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc<\/td><td><code>width: min(90vw, 520px)<\/code>\u306a\u3069\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306a\u5024\u306b\u5909\u66f4\u3059\u308b<\/td><\/tr>\n<\/tbody><\/table><\/figure>\n<h3 class=\"wp-block-heading\">\u30c7\u30d0\u30c3\u30b0\u306e\u57fa\u672c\u624b\u9806<\/h3>\n<p class=\"wp-block-paragraph\">\u307e\u305a\u30d6\u30e9\u30a6\u30b6\u306e\u958b\u767a\u30c4\u30fc\u30eb\uff08F12\uff09\u3067CSS\u304c\u6b63\u3057\u304f\u5f53\u305f\u3063\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<code>:target<\/code>\u65b9\u5f0f\u306a\u3089\u958b\u767a\u30c4\u30fc\u30eb\u306e\u300c\u8981\u7d20\u300d\u30bf\u30d6\u3067<code>:target<\/code>\u3092\u5f37\u5236\u7684\u306b\u6709\u52b9\u5316\u3057\u3066\u30b9\u30bf\u30a4\u30eb\u304c\u9069\u7528\u3055\u308c\u308b\u304b\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff08Chrome\u3067\u306f\u8981\u7d20\u3092\u53f3\u30af\u30ea\u30c3\u30af\u2192\u300cForce state\u300d\u2192\u300c:target\u300d\uff09\u3002\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u306a\u3089<code>:checked<\/code>\u3092\u5f37\u5236\u6709\u52b9\u5316\u3057\u3066\u52d5\u4f5c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\"><code>&lt;dialog&gt;<\/code>\u65b9\u5f0f\u3067JavaScript\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u306f\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5fc5\u305a\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<code>Cannot read properties of null<\/code>\u306f\u8981\u7d20\u304c\u898b\u3064\u304b\u3063\u3066\u3044\u306a\u3044\u30b5\u30a4\u30f3\u3067\u3059\u3002<code>getElementById<\/code>\u3067\u6307\u5b9a\u3057\u305fID\u3068\u5b9f\u969b\u306eHTML\u306eID\u304c\u4e00\u81f4\u3057\u3066\u3044\u308b\u304b\u518d\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u305d\u308c\u3067\u3082\u89e3\u6c7a\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u6700\u5c0f\u69cb\u6210\uff08HTML\u30d5\u30a1\u30a4\u30eb1\u679a\u30fb\u30b9\u30bf\u30a4\u30eb\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u3059\u3079\u3066\u30a4\u30f3\u30e9\u30a4\u30f3\u306b\u66f8\u3044\u305f\u72b6\u614b\uff09\u3067\u52d5\u4f5c\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u5916\u90e8CSS\u3068\u306e\u7af6\u5408\u3084\u8aad\u307f\u8fbc\u307f\u9806\u306e\u554f\u984c\u3092\u5207\u308a\u5206\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n<!-- withmedia-faq -->\n<h2 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u8cea\u554f\uff08FAQ\uff09<\/h2><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" alt=\"\u3088\u304f\u3042\u308b\u8cea\u554f\uff08FAQ\uff09\" class=\"wp-image-24412\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-09-v2.jpg\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-09-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-09-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-09-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<h3 class=\"wp-block-heading\">CSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\u3092\u4f5c\u308b\u3068\u304d\u3001:target\u3068\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u306e\u3069\u3061\u3089\u3092\u9078\u3079\u3070\u3088\u3044\u3067\u3059\u304b\uff1f<\/h3>\n<p class=\"wp-block-paragraph\">URL\u304c\u5909\u308f\u3063\u3066\u3082\u3088\u3044\u5834\u5408\u3084\u5b9f\u88c5\u3092\u3068\u306b\u304b\u304f\u30b7\u30f3\u30d7\u30eb\u306b\u3057\u305f\u3044\u5834\u5408\u306f:target\u65b9\u5f0f\u304c\u5411\u3044\u3066\u3044\u307e\u3059\u3002URL\u3092\u5909\u3048\u305f\u304f\u306a\u3044\u5834\u5408\u3084\u3001\u30da\u30fc\u30b8\u5185\u306b\u8907\u6570\u306e\u30e2\u30fc\u30c0\u30eb\u3092\u8a2d\u7f6e\u3057\u305f\u3044\u5834\u5408\u306f\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u304c\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3044\u305a\u308c\u306e\u65b9\u5f0f\u3082\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u306b\u306f\u9650\u754c\u304c\u3042\u308b\u305f\u3081\u3001\u5b9f\u52d9\u3067\u306fdialog\u8981\u7d20\uff0bshowModal()\u306e\u5229\u7528\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 class=\"wp-block-heading\">CSS\u306e\u30e2\u30fc\u30c0\u30eb\u306b\u30d5\u30a7\u30fc\u30c9\u30a4\u30f3\u30fb\u30a2\u30a6\u30c8\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u3051\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u3067\u3059\u304b\uff1f<\/h3>\n<p class=\"wp-block-paragraph\">display:none\u3068display:block\u306e\u5207\u308a\u66ff\u3048\u306ftransition\u304c\u52b9\u304d\u307e\u305b\u3093\u3002\u4ee3\u308f\u308a\u306bopacity\u3068visibility\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3044\u307e\u3059\u3002\u521d\u671f\u72b6\u614b\u3092opacity:0\u30fbvisibility:hidden\u306b\u3057\u3001\u958b\u3044\u305f\u72b6\u614b\u3092opacity:1\u30fbvisibility:visible\u306b\u3057\u3066\u3001\u4e21\u30d7\u30ed\u30d1\u30c6\u30a3\u306btransition\u3092\u8a2d\u5b9a\u3059\u308b\u306e\u304c\u5b9a\u756a\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">JavaScript\u306a\u3057\u3067CSS\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u306f\u3042\u308a\u307e\u3059\u304b\uff1f<\/h3>\n<p class=\"wp-block-paragraph\">\u306f\u3044\u3001:target\u7591\u4f3c\u30af\u30e9\u30b9\u3092\u4f7f\u3046\u65b9\u6cd5\u3068\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u3092\u4f7f\u3046\u65b9\u6cd5\u306e2\u3064\u304c\u3042\u308a\u307e\u3059\u3002:target\u65b9\u5f0f\u306fURL\u306e\u30cf\u30c3\u30b7\u30e5(#)\u3092\u5229\u7528\u3057\u3066\u958b\u9589\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u306f\u975e\u8868\u793a\u306b\u3057\u305finput\u8981\u7d20\u306e:checked\u72b6\u614b\u3092CSS\u306e\u30bb\u30ec\u30af\u30bf\u3067\u691c\u77e5\u3057\u3066\u8868\u793a\u30fb\u975e\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002\u3069\u3061\u3089\u3082JavaScript\u306f\u4e00\u5207\u4e0d\u8981\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">dialog\u8981\u7d20\u306eshowModal()\u306f\u5168\u30d6\u30e9\u30a6\u30b6\u3067\u52d5\u304d\u307e\u3059\u304b\uff1f<\/h3>\n<p class=\"wp-block-paragraph\">2022\u5e74\u4ee5\u964d\u3001Chrome\u30fbFirefox\u30fbSafari\u30fbEdge\u306e\u4e3b\u8981\u30d6\u30e9\u30a6\u30b6\u3059\u3079\u3066\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002Internet Explorer\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001IE\u5bfe\u5fdc\u304c\u4e0d\u8981\u306a\u73fe\u4ee3\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3042\u308c\u3070\u5b9f\u52d9\u3067\u306e\u4f7f\u7528\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002dialog\u8981\u7d20\u306f\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u3082\u512a\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e\u63a1\u7528\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">CSS\u30e2\u30fc\u30c0\u30eb\u5b9f\u88c5\u3067z-index\u304c\u52b9\u304b\u306a\u3044\u306e\u306f\u306a\u305c\u3067\u3059\u304b\uff1f<\/h3>\n<p class=\"wp-block-paragraph\">z-index\u306fposition:static\u4ee5\u5916(relative\u30fbabsolute\u30fbfixed\u30fbsticky)\u306e\u8981\u7d20\u306b\u3057\u304b\u52b9\u304d\u307e\u305b\u3093\u3002\u307e\u305aposition:fixed\u307e\u305f\u306fposition:absolute\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001\u89aa\u8981\u7d20\u306btransform\u30fbfilter\u30fbwill-change\u306a\u3069\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3068\u3001\u65b0\u3057\u3044\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u304c\u751f\u6210\u3055\u308c\u3001z-index\u306e\u52b9\u679c\u304c\u89aa\u8981\u7d20\u306e\u7bc4\u56f2\u5185\u306b\u9650\u5b9a\u3055\u308c\u307e\u3059\u3002\u30e2\u30fc\u30c0\u30eb\u306fbody\u306e\u76f4\u4e0b\u306b\u914d\u7f6e\u3059\u308b\u306e\u304c\u6700\u3082\u5b89\u5168\u3067\u3059\u3002<\/p>\n\n<!-- withmedia-faq-schema -->\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"CSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\u3092\u4f5c\u308b\u3068\u304d\u3001:target\u3068\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u306e\u3069\u3061\u3089\u3092\u9078\u3079\u3070\u3088\u3044\u3067\u3059\u304b\uff1f\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"URL\u304c\u5909\u308f\u3063\u3066\u3082\u3088\u3044\u5834\u5408\u3084\u5b9f\u88c5\u3092\u3068\u306b\u304b\u304f\u30b7\u30f3\u30d7\u30eb\u306b\u3057\u305f\u3044\u5834\u5408\u306f:target\u65b9\u5f0f\u304c\u5411\u3044\u3066\u3044\u307e\u3059\u3002URL\u3092\u5909\u3048\u305f\u304f\u306a\u3044\u5834\u5408\u3084\u3001\u30da\u30fc\u30b8\u5185\u306b\u8907\u6570\u306e\u30e2\u30fc\u30c0\u30eb\u3092\u8a2d\u7f6e\u3057\u305f\u3044\u5834\u5408\u306f\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u304c\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3044\u305a\u308c\u306e\u65b9\u5f0f\u3082\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u306b\u306f\u9650\u754c\u304c\u3042\u308b\u305f\u3081\u3001\u5b9f\u52d9\u3067\u306fdialog\u8981\u7d20\uff0bshowModal()\u306e\u5229\u7528\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\"}}, {\"@type\": \"Question\", \"name\": \"CSS\u306e\u30e2\u30fc\u30c0\u30eb\u306b\u30d5\u30a7\u30fc\u30c9\u30a4\u30f3\u30fb\u30a2\u30a6\u30c8\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u3051\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u3067\u3059\u304b\uff1f\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"display:none\u3068display:block\u306e\u5207\u308a\u66ff\u3048\u306ftransition\u304c\u52b9\u304d\u307e\u305b\u3093\u3002\u4ee3\u308f\u308a\u306bopacity\u3068visibility\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3044\u307e\u3059\u3002\u521d\u671f\u72b6\u614b\u3092opacity:0\u30fbvisibility:hidden\u306b\u3057\u3001\u958b\u3044\u305f\u72b6\u614b\u3092opacity:1\u30fbvisibility:visible\u306b\u3057\u3066\u3001\u4e21\u30d7\u30ed\u30d1\u30c6\u30a3\u306btransition\u3092\u8a2d\u5b9a\u3059\u308b\u306e\u304c\u5b9a\u756a\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3067\u3059\u3002\"}}, {\"@type\": \"Question\", \"name\": \"JavaScript\u306a\u3057\u3067CSS\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u306f\u3042\u308a\u307e\u3059\u304b\uff1f\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"\u306f\u3044\u3001:target\u7591\u4f3c\u30af\u30e9\u30b9\u3092\u4f7f\u3046\u65b9\u6cd5\u3068\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u3092\u4f7f\u3046\u65b9\u6cd5\u306e2\u3064\u304c\u3042\u308a\u307e\u3059\u3002:target\u65b9\u5f0f\u306fURL\u306e\u30cf\u30c3\u30b7\u30e5(#)\u3092\u5229\u7528\u3057\u3066\u958b\u9589\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u306f\u975e\u8868\u793a\u306b\u3057\u305finput\u8981\u7d20\u306e:checked\u72b6\u614b\u3092CSS\u306e\u30bb\u30ec\u30af\u30bf\u3067\u691c\u77e5\u3057\u3066\u8868\u793a\u30fb\u975e\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002\u3069\u3061\u3089\u3082JavaScript\u306f\u4e00\u5207\u4e0d\u8981\u3067\u3059\u3002\"}}, {\"@type\": \"Question\", \"name\": \"dialog\u8981\u7d20\u306eshowModal()\u306f\u5168\u30d6\u30e9\u30a6\u30b6\u3067\u52d5\u304d\u307e\u3059\u304b\uff1f\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"2022\u5e74\u4ee5\u964d\u3001Chrome\u30fbFirefox\u30fbSafari\u30fbEdge\u306e\u4e3b\u8981\u30d6\u30e9\u30a6\u30b6\u3059\u3079\u3066\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002Internet Explorer\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001IE\u5bfe\u5fdc\u304c\u4e0d\u8981\u306a\u73fe\u4ee3\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3042\u308c\u3070\u5b9f\u52d9\u3067\u306e\u4f7f\u7528\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002dialog\u8981\u7d20\u306f\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u3082\u512a\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e\u63a1\u7528\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002\"}}, {\"@type\": \"Question\", \"name\": \"CSS\u30e2\u30fc\u30c0\u30eb\u5b9f\u88c5\u3067z-index\u304c\u52b9\u304b\u306a\u3044\u306e\u306f\u306a\u305c\u3067\u3059\u304b\uff1f\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"z-index\u306fposition:static\u4ee5\u5916(relative\u30fbabsolute\u30fbfixed\u30fbsticky)\u306e\u8981\u7d20\u306b\u3057\u304b\u52b9\u304d\u307e\u305b\u3093\u3002\u307e\u305aposition:fixed\u307e\u305f\u306fposition:absolute\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001\u89aa\u8981\u7d20\u306btransform\u30fbfilter\u30fbwill-change\u306a\u3069\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3068\u3001\u65b0\u3057\u3044\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u304c\u751f\u6210\u3055\u308c\u3001z-index\u306e\u52b9\u679c\u304c\u89aa\u8981\u7d20\u306e\u7bc4\u56f2\u5185\u306b\u9650\u5b9a\u3055\u308c\u307e\u3059\u3002\u30e2\u30fc\u30c0\u30eb\u306fbody\u306e\u76f4\u4e0b\u306b\u914d\u7f6e\u3059\u308b\u306e\u304c\u6700\u3082\u5b89\u5168\u3067\u3059\u3002\"}}]}<\/script>\n\n\n<!-- withmedia-related -->\n<h2 class=\"wp-block-heading\">\u95a2\u9023\u8a18\u4e8b<\/h2><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" alt=\"\u95a2\u9023\u8a18\u4e8b\" class=\"wp-image-24413\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-10-v2.jpg\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-10-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-10-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-10-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/withcode.tech\/media\/css-tab-ui\/\">CSS\u3060\u3051\u3067\u30bf\u30d6\u5207\u308a\u66ff\u3048UI\u3092\u4f5c\u308b\u65b9\u6cd5\uff5cJavaScript\u4e0d\u8981\u306e\u30b3\u30d4\u30da\u5b9f\u88c5<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/css-modern-ui-components-30\/\">\u3010\u30b3\u30d4\u30da\u53ef\u3011CSS\u3060\u3051\u3067\u4f5c\u308b\u30e2\u30c0\u30f3UI\u30d1\u30fc\u30c430\u9078\uff5c\u5b9f\u88c5\u30b3\u30fc\u30c9\u5168\u90e8\u8f09\u305b<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/css-transition\/\">\u30102026\u5e74\u7248\u3011CSS transition\u306e\u4f7f\u3044\u65b9\uff5chover\u306e\u52d5\u304d\u3092\u306a\u3081\u3089\u304b\u306b<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/css-z-index\/\">\u30102026\u5e74\u7248\u3011CSS z-index\u306e\u4f7f\u3044\u65b9\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u91cd\u306a\u308a\u9806\u30fb\u52b9\u304b\u306a\u3044\u539f\u56e0<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/hamburger-menu-html-css\/\">\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306e\u4f5c\u308a\u65b9\uff5cHTML\/CSS\u3060\u3051\u3067\u52d5\u304f\u5b9f\u88c5\u3092\u30b3\u30d4\u30da\u89e3\u8aac<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/details-summary\/\">details\u30fbsummary\u30bf\u30b0\u5b8c\u5168\u30ac\u30a4\u30c9\u30102026\u5e74\u7248\u3011\u30a2\u30af\u30bb\u30b7\u30d6\u30eb\u306a\u958b\u9589<\/a><\/li>\n<\/ul>\n\n<h2 class=\"wp-block-heading\">CSS\u30fbWeb\u30c7\u30b6\u30a4\u30f3\u5b9f\u88c5\u306e\u7dcf\u307e\u3068\u3081<\/h2><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" alt=\"CSS\u30fbWeb\u30c7\u30b6\u30a4\u30f3\u5b9f\u88c5\u306e\u7dcf\u307e\u3068\u3081\" class=\"wp-image-24414\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-11-v2.jpg\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-11-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-11-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-11-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<p class=\"wp-block-paragraph\">CSS\u306e\u5b9f\u88c5\u30c6\u30af\u30cb\u30c3\u30af\u3092\u300c\u30ec\u30a4\u30a2\u30a6\u30c8\u30fb\u88c5\u98fe\u30fb\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30fb\u57fa\u790e\u30fb\u30c8\u30e9\u30d6\u30eb\u89e3\u6c7a\u300d\u306e\u76ee\u7684\u5225\u306b\u63a2\u305b\u308b\u7dcf\u307e\u3068\u3081\u30da\u30fc\u30b8\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u88c5\u3067\u8ff7\u3063\u305f\u3068\u304d\u306e\u7d22\u5f15\u3068\u3057\u3066\u3069\u3046\u305e\u3002<\/p>\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/withcode.tech\/media\/css-webdesign-technique-map\/\">\u3010CSS\u5b9f\u88c5\u30c6\u30af\u30cb\u30c3\u30af\u5b8c\u5168\u30de\u30c3\u30d7\u3011\u30b3\u30d4\u30da\u3067\u4f7f\u3048\u308bWeb\u30c7\u30b6\u30a4\u30f3\u5b9f\u88c5\u30ac\u30a4\u30c9\u7dcf\u307e\u3068\u3081<\/a><\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\">AI\u30b9\u30ad\u30eb\u3067\u3001\u672a\u6765\u306e\u81ea\u5206\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\uff01<\/h2>\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/s.lmes.jp\/landing-qr\/2010578884-C5To3Fmv?uLand=phzKXf\" rel=\"noopener noreferrer\" target=\"_blank\"><img decoding=\"async\" width=\"1672\" height=\"941\" alt=\"AI\u30b9\u30ad\u30eb\u3067\u3001\u672a\u6765\u306e\u81ea\u5206\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\uff01\" class=\"wp-image-24415\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-12-v2.jpg\" style=\"max-width:600px;width:100%;height:auto\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-12-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-12-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-modal-popup-h2-12-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/a><\/figure>\n<h3 class=\"wp-block-heading\">\u4eca\u306a\u3089\u5b8c\u5168\u7121\u6599\u3067AI\u3092\u5b66\u3079\u308b\uff01<\/h3>\n<ul class=\"wp-block-list\">\n<li><strong>\u52d5\u753b\u3084\u5b9f\u8df5\u3067\u697d\u3057\u304f\u5b66\u3079\u308b<\/strong>\uff1a\u521d\u5fc3\u8005\u3067\u3082\u5b89\u5fc3\u306e\u30ab\u30ea\u30ad\u30e5\u30e9\u30e0<\/li>\n<li><strong>\u30b9\u30de\u30db\u30fbPC\u3069\u3061\u3089\u3067\u3082OK<\/strong>\uff1a\u597d\u304d\u306a\u6642\u9593\u306b\u5b66\u7fd2\u3067\u304d\u308b<\/li>\n<li><strong>\u6599\u91d1\u306f\u4e00\u5207\u30ca\u30b7<\/strong>\uff1a<span class=\"swl-marker mark_yellow\">0\u5186\u3067AI\u30b9\u30ad\u30eb\u304c\u8eab\u306b\u3064\u304f<\/span><\/li>\n<\/ul>\n<p>\u76ee\u7684\u306b\u5408\u308f\u305b\u3066\u9078\u3079\u308b\u300cAI\u526f\u696d\u300d\u300cAI\u8ee2\u8077\u300d\u300cAI\u6d3b\u7528\u300d\u306e3\u30b3\u30fc\u30b9\u3092\u7528\u610f\u3002\u526f\u53ce\u5165\u30fb\u30ad\u30e3\u30ea\u30a2\u30c1\u30a7\u30f3\u30b8\u30fb\u65e5\u5e38\u306e\u751f\u7523\u6027\u30a2\u30c3\u30d7\u307e\u3067\u3001\u3042\u306a\u305f\u306e\u30b4\u30fc\u30eb\u306b\u5408\u308f\u305b\u3066AI\u3092\u5b66\u3079\u307e\u3059\u3002<\/p>\n<p>\u4f1a\u54e1\u767b\u9332\u306f\u30ab\u30f3\u30bf\u30f330\u79d2\u3067\u5b8c\u4e86\u3057\u307e\u3059\u3002\u307e\u305a\u306f\u516c\u5f0fLINE\u304b\u3089\u3001\u7121\u6599\u3067AI\u5b66\u7fd2\u3092\u30b9\u30bf\u30fc\u30c8\u3057\u307e\u3057\u3087\u3046\uff01<\/p>\n<div class=\"wp-block-buttons\"><div class=\"wp-block-button\"><a class=\"wp-block-button__link has-white-color has-text-color has-background has-link-color wp-element-button\" href=\"https:\/\/s.lmes.jp\/landing-qr\/2010578884-C5To3Fmv?uLand=phzKXf\" rel=\"noopener noreferrer\" style=\"background-color:#06c755\" target=\"_blank\"><strong>\u516c\u5f0fLINE\u304b\u3089\u5b66\u7fd2\u3092\u30b9\u30bf\u30fc\u30c8<\/strong><\/a><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>CSS\u3060\u3051\u3067\u4f5c\u308b\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u89e3\u8aac\u3002:target\u7591\u4f3c\u30af\u30e9\u30b9\u30fb\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u30fbdialog\u8981\u7d20\u306e3\u65b9\u5f0f\u3092\u6bd4\u8f03\u3057\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30fb\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u30fb\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u5bfe\u51e6\u307e\u3067\u4e01\u5be7\u306b\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":18,"featured_media":20659,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"swell_btn_cv_data":"","footnotes":"","vk-ltc-link":"","vk-ltc-target":""},"categories":[361],"tags":[],"class_list":["post-18765","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"CSS\u3060\u3051\u3067\u4f5c\u308b\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u89e3\u8aac\u3002:target\u7591\u4f3c\u30af\u30e9\u30b9\u30fb\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u30fbdialog\u8981\u7d20\u306e3\u65b9\u5f0f\u3092\u6bd4\u8f03\u3057\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30fb\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u30fb\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u5bfe\u51e6\u307e\u3067\u4e01\u5be7\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u7530\u4e2d\u8aa0\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/withcode.tech\/media\/css-modal-popup\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"WithMedia\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"CSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3092\u4f5c\u308b\u65b9\u6cd5\uff5cJavaScript\u4e0d\u8981\u306e\u30b3\u30d4\u30da\u5b9f\u88c5\" \/>\n\t\t<meta property=\"og:description\" content=\"CSS\u3060\u3051\u3067\u4f5c\u308b\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u89e3\u8aac\u3002:target\u7591\u4f3c\u30af\u30e9\u30b9\u30fb\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u30fbdialog\u8981\u7d20\u306e3\u65b9\u5f0f\u3092\u6bd4\u8f03\u3057\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30fb\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u30fb\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u5bfe\u51e6\u307e\u3067\u4e01\u5be7\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/withcode.tech\/media\/css-modal-popup\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/withcode.tech_-scaled.webp\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/withcode.tech_-scaled.webp\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-07-21T11:36:38+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-09-20T16:57:45+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@withcode_tech\" \/>\n\t\t<meta name=\"twitter:title\" content=\"CSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3092\u4f5c\u308b\u65b9\u6cd5\uff5cJavaScript\u4e0d\u8981\u306e\u30b3\u30d4\u30da\u5b9f\u88c5\" \/>\n\t\t<meta name=\"twitter:description\" content=\"CSS\u3060\u3051\u3067\u4f5c\u308b\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u89e3\u8aac\u3002:target\u7591\u4f3c\u30af\u30e9\u30b9\u30fb\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u30fbdialog\u8981\u7d20\u306e3\u65b9\u5f0f\u3092\u6bd4\u8f03\u3057\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30fb\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u30fb\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u5bfe\u51e6\u307e\u3067\u4e01\u5be7\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@withcode_tech\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/withcode.tech_-scaled.webp\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-modal-popup\\\/#blogposting\",\"name\":\"CSS\\u3060\\u3051\\u3067\\u30e2\\u30fc\\u30c0\\u30eb\\uff08\\u30dd\\u30c3\\u30d7\\u30a2\\u30c3\\u30d7\\uff09\\u3092\\u4f5c\\u308b\\u65b9\\u6cd5\\uff5cJavaScript\\u4e0d\\u8981\\u306e\\u30b3\\u30d4\\u30da\\u5b9f\\u88c5\",\"headline\":\"CSS\\u3060\\u3051\\u3067\\u30e2\\u30fc\\u30c0\\u30eb\\uff08\\u30dd\\u30c3\\u30d7\\u30a2\\u30c3\\u30d7\\uff09\\u3092\\u4f5c\\u308b\\u65b9\\u6cd5\\uff5cJavaScript\\u4e0d\\u8981\\u306e\\u30b3\\u30d4\\u30da\\u5b9f\\u88c5\",\"author\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/author\\\/tanaka_editor\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/modal-popup-eyecatch.jpg\",\"width\":1672,\"height\":941},\"datePublished\":\"2026-07-21T11:36:38+00:00\",\"dateModified\":\"2026-09-20T16:57:45+00:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-modal-popup\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-modal-popup\\\/#webpage\"},\"articleSection\":\"CSS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-modal-popup\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/withcode.tech\\\/media\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/programming\\\/#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/programming\\\/#listItem\",\"position\":2,\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\",\"item\":\"https:\\\/\\\/withcode.tech\\\/media\\\/programming\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/category\\\/programming\\\/css\\\/#listItem\",\"name\":\"CSS\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/category\\\/programming\\\/css\\\/#listItem\",\"position\":3,\"name\":\"CSS\",\"item\":\"https:\\\/\\\/withcode.tech\\\/media\\\/category\\\/programming\\\/css\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-modal-popup\\\/#listItem\",\"name\":\"CSS\\u3060\\u3051\\u3067\\u30e2\\u30fc\\u30c0\\u30eb\\uff08\\u30dd\\u30c3\\u30d7\\u30a2\\u30c3\\u30d7\\uff09\\u3092\\u4f5c\\u308b\\u65b9\\u6cd5\\uff5cJavaScript\\u4e0d\\u8981\\u306e\\u30b3\\u30d4\\u30da\\u5b9f\\u88c5\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/programming\\\/#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-modal-popup\\\/#listItem\",\"position\":4,\"name\":\"CSS\\u3060\\u3051\\u3067\\u30e2\\u30fc\\u30c0\\u30eb\\uff08\\u30dd\\u30c3\\u30d7\\u30a2\\u30c3\\u30d7\\uff09\\u3092\\u4f5c\\u308b\\u65b9\\u6cd5\\uff5cJavaScript\\u4e0d\\u8981\\u306e\\u30b3\\u30d4\\u30da\\u5b9f\\u88c5\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/category\\\/programming\\\/css\\\/#listItem\",\"name\":\"CSS\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#organization\",\"name\":\"WithCode\",\"description\":\"\\u6848\\u4ef6\\u7372\\u5f97\\u738798.4\\uff05\\u306eWithGroup\\u304c\\u904b\\u55b6\\u3059\\u308bIT\\u30e1\\u30c7\\u30a3\\u30a2\\u3002\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u30fbAI\\u30fbWeb\\u5236\\u4f5c\\u306e\\u5b66\\u7fd2\\u304b\\u3089\\u526f\\u696d\\u30fb\\u30ad\\u30e3\\u30ea\\u30a2\\u30c1\\u30a7\\u30f3\\u30b8\\u307e\\u3067\\u5b9f\\u8df5\\u7684\\u306a\\u60c5\\u5831\\u3092\\u767a\\u4fe1\\u3002\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/\",\"telephone\":\"+81120526731\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/IMG_4237.png\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-modal-popup\\\/#organizationLogo\",\"width\":1000,\"height\":1000},\"image\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-modal-popup\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/twitter.com\\\/withcode_tech\\\/\",\"https:\\\/\\\/www.instagram.com\\\/withcode_officials\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@withcode_tech\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@withcode8004\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/author\\\/tanaka_editor\\\/#author\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/author\\\/tanaka_editor\\\/\",\"name\":\"\\u7530\\u4e2d\\u8aa0\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-modal-popup\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9f7a6e2c32d8658dcf9941decf32bc52f0dc424014a9ef5b3f92635c3f04ff60?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"\\u7530\\u4e2d\\u8aa0\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-modal-popup\\\/#webpage\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-modal-popup\\\/\",\"name\":\"CSS\\u3060\\u3051\\u3067\\u30e2\\u30fc\\u30c0\\u30eb\\uff08\\u30dd\\u30c3\\u30d7\\u30a2\\u30c3\\u30d7\\uff09\\u3092\\u4f5c\\u308b\\u65b9\\u6cd5\\uff5cJavaScript\\u4e0d\\u8981\\u306e\\u30b3\\u30d4\\u30da\\u5b9f\\u88c5\",\"description\":\"CSS\\u3060\\u3051\\u3067\\u4f5c\\u308b\\u30e2\\u30fc\\u30c0\\u30eb\\uff08\\u30dd\\u30c3\\u30d7\\u30a2\\u30c3\\u30d7\\uff09\\u306e\\u5b9f\\u88c5\\u65b9\\u6cd5\\u3092\\u89e3\\u8aac\\u3002:target\\u7591\\u4f3c\\u30af\\u30e9\\u30b9\\u30fb\\u30c1\\u30a7\\u30c3\\u30af\\u30dc\\u30c3\\u30af\\u30b9\\u30cf\\u30c3\\u30af\\u30fbdialog\\u8981\\u7d20\\u306e3\\u65b9\\u5f0f\\u3092\\u6bd4\\u8f03\\u3057\\u3001\\u30a2\\u30cb\\u30e1\\u30fc\\u30b7\\u30e7\\u30f3\\u30fb\\u30a2\\u30af\\u30bb\\u30b7\\u30d3\\u30ea\\u30c6\\u30a3\\u30fb\\u3088\\u304f\\u3042\\u308b\\u30c8\\u30e9\\u30d6\\u30eb\\u5bfe\\u51e6\\u307e\\u3067\\u4e01\\u5be7\\u306b\\u8aac\\u660e\\u3057\\u307e\\u3059\\u3002\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-modal-popup\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/author\\\/tanaka_editor\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/author\\\/tanaka_editor\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/modal-popup-eyecatch.jpg\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-modal-popup\\\/#mainImage\",\"width\":1672,\"height\":941},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-modal-popup\\\/#mainImage\"},\"datePublished\":\"2026-07-21T11:36:38+00:00\",\"dateModified\":\"2026-09-20T16:57:45+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#website\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/\",\"name\":\"WithCode Media\",\"description\":\"\\u6848\\u4ef6\\u7372\\u5f97\\u738798.4\\uff05\\u306eWithGroup\\u304c\\u904b\\u55b6\\u3059\\u308bIT\\u30e1\\u30c7\\u30a3\\u30a2\\u3002\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u30fbAI\\u30fbWeb\\u5236\\u4f5c\\u306e\\u5b66\\u7fd2\\u304b\\u3089\\u526f\\u696d\\u30fb\\u30ad\\u30e3\\u30ea\\u30a2\\u30c1\\u30a7\\u30f3\\u30b8\\u307e\\u3067\\u5b9f\\u8df5\\u7684\\u306a\\u60c5\\u5831\\u3092\\u767a\\u4fe1\\u3002\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"CSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3092\u4f5c\u308b\u65b9\u6cd5\uff5cJavaScript\u4e0d\u8981\u306e\u30b3\u30d4\u30da\u5b9f\u88c5","description":"CSS\u3060\u3051\u3067\u4f5c\u308b\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u89e3\u8aac\u3002:target\u7591\u4f3c\u30af\u30e9\u30b9\u30fb\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u30fbdialog\u8981\u7d20\u306e3\u65b9\u5f0f\u3092\u6bd4\u8f03\u3057\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30fb\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u30fb\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u5bfe\u51e6\u307e\u3067\u4e01\u5be7\u306b\u8aac\u660e\u3057\u307e\u3059\u3002","canonical_url":"https:\/\/withcode.tech\/media\/css-modal-popup\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/withcode.tech\/media\/css-modal-popup\/#blogposting","name":"CSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3092\u4f5c\u308b\u65b9\u6cd5\uff5cJavaScript\u4e0d\u8981\u306e\u30b3\u30d4\u30da\u5b9f\u88c5","headline":"CSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3092\u4f5c\u308b\u65b9\u6cd5\uff5cJavaScript\u4e0d\u8981\u306e\u30b3\u30d4\u30da\u5b9f\u88c5","author":{"@id":"https:\/\/withcode.tech\/media\/author\/tanaka_editor\/#author"},"publisher":{"@id":"https:\/\/withcode.tech\/media\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-eyecatch.jpg","width":1672,"height":941},"datePublished":"2026-07-21T11:36:38+00:00","dateModified":"2026-09-20T16:57:45+00:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/withcode.tech\/media\/css-modal-popup\/#webpage"},"isPartOf":{"@id":"https:\/\/withcode.tech\/media\/css-modal-popup\/#webpage"},"articleSection":"CSS"},{"@type":"BreadcrumbList","@id":"https:\/\/withcode.tech\/media\/css-modal-popup\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/withcode.tech\/media\/","nextItem":{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/programming\/#listItem","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"}},{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/programming\/#listItem","position":2,"name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","item":"https:\/\/withcode.tech\/media\/programming\/","nextItem":{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/category\/programming\/css\/#listItem","name":"CSS"},"previousItem":{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/category\/programming\/css\/#listItem","position":3,"name":"CSS","item":"https:\/\/withcode.tech\/media\/category\/programming\/css\/","nextItem":{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/css-modal-popup\/#listItem","name":"CSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3092\u4f5c\u308b\u65b9\u6cd5\uff5cJavaScript\u4e0d\u8981\u306e\u30b3\u30d4\u30da\u5b9f\u88c5"},"previousItem":{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/programming\/#listItem","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"}},{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/css-modal-popup\/#listItem","position":4,"name":"CSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3092\u4f5c\u308b\u65b9\u6cd5\uff5cJavaScript\u4e0d\u8981\u306e\u30b3\u30d4\u30da\u5b9f\u88c5","previousItem":{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/category\/programming\/css\/#listItem","name":"CSS"}}]},{"@type":"Organization","@id":"https:\/\/withcode.tech\/media\/#organization","name":"WithCode","description":"\u6848\u4ef6\u7372\u5f97\u738798.4\uff05\u306eWithGroup\u304c\u904b\u55b6\u3059\u308bIT\u30e1\u30c7\u30a3\u30a2\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30fbAI\u30fbWeb\u5236\u4f5c\u306e\u5b66\u7fd2\u304b\u3089\u526f\u696d\u30fb\u30ad\u30e3\u30ea\u30a2\u30c1\u30a7\u30f3\u30b8\u307e\u3067\u5b9f\u8df5\u7684\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3002","url":"https:\/\/withcode.tech\/media\/","telephone":"+81120526731","logo":{"@type":"ImageObject","url":"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/IMG_4237.png","@id":"https:\/\/withcode.tech\/media\/css-modal-popup\/#organizationLogo","width":1000,"height":1000},"image":{"@id":"https:\/\/withcode.tech\/media\/css-modal-popup\/#organizationLogo"},"sameAs":["https:\/\/twitter.com\/withcode_tech\/","https:\/\/www.instagram.com\/withcode_officials\/","https:\/\/www.tiktok.com\/@withcode_tech\/","https:\/\/www.youtube.com\/@withcode8004\/"]},{"@type":"Person","@id":"https:\/\/withcode.tech\/media\/author\/tanaka_editor\/#author","url":"https:\/\/withcode.tech\/media\/author\/tanaka_editor\/","name":"\u7530\u4e2d\u8aa0","image":{"@type":"ImageObject","@id":"https:\/\/withcode.tech\/media\/css-modal-popup\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/9f7a6e2c32d8658dcf9941decf32bc52f0dc424014a9ef5b3f92635c3f04ff60?s=96&d=mm&r=g","width":96,"height":96,"caption":"\u7530\u4e2d\u8aa0"}},{"@type":"WebPage","@id":"https:\/\/withcode.tech\/media\/css-modal-popup\/#webpage","url":"https:\/\/withcode.tech\/media\/css-modal-popup\/","name":"CSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3092\u4f5c\u308b\u65b9\u6cd5\uff5cJavaScript\u4e0d\u8981\u306e\u30b3\u30d4\u30da\u5b9f\u88c5","description":"CSS\u3060\u3051\u3067\u4f5c\u308b\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u89e3\u8aac\u3002:target\u7591\u4f3c\u30af\u30e9\u30b9\u30fb\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u30fbdialog\u8981\u7d20\u306e3\u65b9\u5f0f\u3092\u6bd4\u8f03\u3057\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30fb\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u30fb\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u5bfe\u51e6\u307e\u3067\u4e01\u5be7\u306b\u8aac\u660e\u3057\u307e\u3059\u3002","inLanguage":"ja","isPartOf":{"@id":"https:\/\/withcode.tech\/media\/#website"},"breadcrumb":{"@id":"https:\/\/withcode.tech\/media\/css-modal-popup\/#breadcrumblist"},"author":{"@id":"https:\/\/withcode.tech\/media\/author\/tanaka_editor\/#author"},"creator":{"@id":"https:\/\/withcode.tech\/media\/author\/tanaka_editor\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/modal-popup-eyecatch.jpg","@id":"https:\/\/withcode.tech\/media\/css-modal-popup\/#mainImage","width":1672,"height":941},"primaryImageOfPage":{"@id":"https:\/\/withcode.tech\/media\/css-modal-popup\/#mainImage"},"datePublished":"2026-07-21T11:36:38+00:00","dateModified":"2026-09-20T16:57:45+00:00"},{"@type":"WebSite","@id":"https:\/\/withcode.tech\/media\/#website","url":"https:\/\/withcode.tech\/media\/","name":"WithCode Media","description":"\u6848\u4ef6\u7372\u5f97\u738798.4\uff05\u306eWithGroup\u304c\u904b\u55b6\u3059\u308bIT\u30e1\u30c7\u30a3\u30a2\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30fbAI\u30fbWeb\u5236\u4f5c\u306e\u5b66\u7fd2\u304b\u3089\u526f\u696d\u30fb\u30ad\u30e3\u30ea\u30a2\u30c1\u30a7\u30f3\u30b8\u307e\u3067\u5b9f\u8df5\u7684\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3002","inLanguage":"ja","publisher":{"@id":"https:\/\/withcode.tech\/media\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"WithMedia","og:type":"article","og:title":"CSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3092\u4f5c\u308b\u65b9\u6cd5\uff5cJavaScript\u4e0d\u8981\u306e\u30b3\u30d4\u30da\u5b9f\u88c5","og:description":"CSS\u3060\u3051\u3067\u4f5c\u308b\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u89e3\u8aac\u3002:target\u7591\u4f3c\u30af\u30e9\u30b9\u30fb\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u30fbdialog\u8981\u7d20\u306e3\u65b9\u5f0f\u3092\u6bd4\u8f03\u3057\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30fb\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u30fb\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u5bfe\u51e6\u307e\u3067\u4e01\u5be7\u306b\u8aac\u660e\u3057\u307e\u3059\u3002","og:url":"https:\/\/withcode.tech\/media\/css-modal-popup\/","og:image":"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/withcode.tech_-scaled.webp","og:image:secure_url":"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/withcode.tech_-scaled.webp","article:published_time":"2026-07-21T11:36:38+00:00","article:modified_time":"2026-09-20T16:57:45+00:00","twitter:card":"summary_large_image","twitter:site":"@withcode_tech","twitter:title":"CSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3092\u4f5c\u308b\u65b9\u6cd5\uff5cJavaScript\u4e0d\u8981\u306e\u30b3\u30d4\u30da\u5b9f\u88c5","twitter:description":"CSS\u3060\u3051\u3067\u4f5c\u308b\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u89e3\u8aac\u3002:target\u7591\u4f3c\u30af\u30e9\u30b9\u30fb\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u30fbdialog\u8981\u7d20\u306e3\u65b9\u5f0f\u3092\u6bd4\u8f03\u3057\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30fb\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u30fb\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u5bfe\u51e6\u307e\u3067\u4e01\u5be7\u306b\u8aac\u660e\u3057\u307e\u3059\u3002","twitter:creator":"@withcode_tech","twitter:image":"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/withcode.tech_-scaled.webp"},"aioseo_meta_data":{"post_id":"18765","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2026-08-24 12:09:48","updated":"2026-09-02 23:55:54","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/withcode.tech\/media\/\" title=\"\u30db\u30fc\u30e0\">\u30db\u30fc\u30e0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u203a<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/withcode.tech\/media\/programming\/\" title=\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u203a<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/withcode.tech\/media\/category\/programming\/css\/\" title=\"CSS\">CSS<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u203a<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3092\u4f5c\u308b\u65b9\u6cd5\uff5cJavaScript\u4e0d\u8981\u306e\u30b3\u30d4\u30da\u5b9f\u88c5\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u30db\u30fc\u30e0","link":"https:\/\/withcode.tech\/media\/"},{"label":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","link":"https:\/\/withcode.tech\/media\/programming\/"},{"label":"CSS","link":"https:\/\/withcode.tech\/media\/category\/programming\/css\/"},{"label":"CSS\u3060\u3051\u3067\u30e2\u30fc\u30c0\u30eb\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3092\u4f5c\u308b\u65b9\u6cd5\uff5cJavaScript\u4e0d\u8981\u306e\u30b3\u30d4\u30da\u5b9f\u88c5","link":"https:\/\/withcode.tech\/media\/css-modal-popup\/"}],"_links":{"self":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/18765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/comments?post=18765"}],"version-history":[{"count":6,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/18765\/revisions"}],"predecessor-version":[{"id":24416,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/18765\/revisions\/24416"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/media\/20659"}],"wp:attachment":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/media?parent=18765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/categories?post=18765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/tags?post=18765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}