{"id":2329567,"date":"2024-12-19T23:40:19","date_gmt":"2024-12-19T23:40:19","guid":{"rendered":"https:\/\/www.wacoca.com\/news\/2329567\/"},"modified":"2024-12-19T23:40:19","modified_gmt":"2024-12-19T23:40:19","slug":"cascade-sorting-order-css%e3%81%ae%e9%81%a9%e7%94%a8%e9%a0%86%e5%ba%8f%e3%82%92%e5%ad%a6%e3%81%b3%e7%9b%b4%e3%81%99-%ef%bc%bbcss-modern-features-no-6%ef%bc%bd","status":"publish","type":"post","link":"https:\/\/www.wacoca.com\/news\/2329567\/","title":{"rendered":"Cascade Sorting Order\/CSS\u306e\u9069\u7528\u9806\u5e8f\u3092\u5b66\u3073\u76f4\u3059 \uff3bCSS Modern Features no.6\uff3d"},"content":{"rendered":"<p id=\"gh2YJkGchK\">\u3053\u3093\u306b\u3061\u306f\uff01 \u30b5\u30a4\u30dc\u30a6\u30ba \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u30c1\u30fc\u30e0\u306e\u9ea6\u5cf6\u3067\u3059\u3002<\/p>\n<p id=\"gh4EPg2SZe\">CSS Modern Features\u3001\u6700\u7d42\u56de\u3068\u306a\u308b\u4eca\u56de\u306e\u30c6\u30fc\u30de\u306fCascade Sorting Order\u3067\u3059\u3002<\/p>\n<p>CSS\u9069\u7528\u9806\u5e8f\u3092\u69cb\u6210\u3059\u308b\u4ed5\u69d8\u306e\u5897\u52a0<\/p>\n<p id=\"gh3z4yh6_R\">\u7a81\u7136\u3067\u3059\u304c\u3001\u300c\u2060CSS\u306e\u9069\u7528\u9806\u5e8f\u300d\u3068\u8a00\u308f\u308c\u308b\u3068\u3001\u3069\u3053\u307e\u3067\u8aac\u660e\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p id=\"gh9JqEi_aB\">\u6b21\u306e\u3088\u3046\u306a\u3082\u306e\u306f\u5e83\u304f\u77e5\u3089\u308c\u3066\u304a\u308a\u3001\u30a4\u30e1\u30fc\u30b8\u3057\u3084\u3059\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u8a73\u7d30\u5ea6\u304c\u3088\u308a\u9ad8\u3044\u307b\u3046\u304c\u512a\u5148\u3055\u308c\u308b<br \/>\n\u540c\u3058\u8a73\u7d30\u5ea6\u306e\u5834\u5408\u306f\u3001\u5f8c\u306b\u8a18\u8ff0\u3055\u308c\u305f\u5ba3\u8a00\u304c\u512a\u5148\u3055\u308c\u308b<br \/>\nstyle\u5c5e\u6027\u306b\u3088\u308b\u5ba3\u8a00\u306f\u8a73\u7d30\u5ea6\u3088\u308a\u3082\u512a\u5148\u3055\u308c\u308b<br \/>\n!important\u3092\u4ed8\u4e0e\u3059\u308b\u3068\u3001\u8a73\u7d30\u5ea6\u3084style\u5c5e\u6027\u3088\u308a\u512a\u5148\u3055\u308c\u308b<\/p>\n<p id=\"gh3AwdTGu4\">\u3057\u304b\u3057\u3001\u6628\u4eca\u3067\u306f\u9069\u7528\u9806\u5e8f\u306b\u95a2\u9023\u3059\u308bCSS\u306e\u6a5f\u80fd\u306f\u5897\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p id=\"gh6XUpRzap\">\u305f\u3068\u3048\u3070\u3001\u958b\u767a\u6642\u306b\u6b21\u306e\u3088\u3046\u306a\u554f\u3044\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u8003\u3048\u3089\u308c\u3001\u5f93\u6765\u306e\u77e5\u8b58\u3060\u3051\u3067\u306f\u3053\u308c\u3089\u306b\u56de\u7b54\u3059\u308b\u3053\u3068\u306f\u96e3\u3057\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>Cascade Layers\u3068Scoped Styles\u3092\u4f75\u7528\u3057\u305f\u5834\u5408\u306b\u3069\u3061\u3089\u304c\u512a\u5148\u3055\u308c\u308b\u304b<br \/>\nCascade Layers\u3092\u5229\u7528\u3057\u305f\u5834\u5408\u3068\u5229\u7528\u3057\u306a\u3044\u5834\u5408\u3067\u3069\u3061\u3089\u304c\u512a\u5148\u3055\u308c\u308b\u304b<br \/>\nstyle\u5c5e\u6027\u3068\u7d44\u307f\u5408\u308f\u305b\u305f\u5834\u5408\u306e\u512a\u5148\u9806\u4f4d\u306f\u3069\u3046\u306a\u308b\u304b<br \/>\n\u8a73\u7d30\u5ea6\u304c\u540c\u3058\u5834\u5408\u306bScoped Styles\u306f\u3069\u3046\u51e6\u7406\u3055\u308c\u308b\u304b<br \/>\n!important\u3092\u4ed8\u4e0e\u3057\u305f\u5834\u5408\u306e\u512a\u5148\u9806\u4f4d\u306f\u3069\u3046\u306a\u308b\u304b<\/p>\n<p id=\"ghemSpqYvj\">\u3053\u308c\u3089\u3059\u3079\u3066\u3092\u628a\u63e1\u3057\u3066\u3044\u306a\u3044\u3068\u3059\u3050\u306b\u958b\u767a\u3067\u304d\u306a\u304f\u306a\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u306f\u306a\u3044\u3068\u601d\u308f\u308c\u307e\u3059\u304c\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u3088\u308a\u30e2\u30c0\u30f3\u306a\u6a5f\u80fd\u3092\u5c0e\u5165\u3059\u308b\u30b1\u30fc\u30b9\u3082\u3042\u308a\u3001\u77e5\u3089\u305a\u77e5\u3089\u305a\u306e\u9593\u306b\u65b0\u3057\u3044\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u3048\u307e\u3059\u3002\u305d\u3046\u3044\u3063\u305f\u5834\u5408\u306b\u9069\u7528\u9806\u5e8f\u3092\u628a\u63e1\u3057\u3066\u3044\u306a\u3044\u3068\u3001\u671f\u5f85\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u3092\u5b9f\u73fe\u3067\u304d\u306a\u304b\u3063\u305f\u308a\u3001\u601d\u308f\u306c\u4e0d\u5177\u5408\u306b\u3064\u306a\u304c\u308b\u53ef\u80fd\u6027\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p id=\"gh8rmj6dq6\">\u5f93\u6765\u306e\u77e5\u8b58\u306b\u52a0\u3048\u3066\u3001\u672c\u9023\u8f09\u3067\u3053\u3053\u307e\u3067\u53d6\u308a\u4e0a\u3052\u305f\u6a5f\u80fd\u3082\u542b\u3081\u305fCSS\u306e\u9069\u7528\u9806\u5e8f\u306b\u95a2\u3059\u308b\u4ed5\u69d8\u3092\u3044\u307e\u4e00\u5ea6\u518d\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Cascade Sorting Order<\/p>\n<p id=\"gh1wWGqT4F\">CSS\u306e\u9069\u7528\u9806\u5e8f\u306fCascade Sorting Order\u3068\u547c\u3070\u308c\u308b\u4ed5\u69d8\u306b\u57fa\u3065\u304d\u307e\u3059\u3002\u4e00\u3064\u306e\u8981\u7d20\u306b\u5bfe\u3057\u30662\u3064\u4ee5\u4e0a\u306eCSS\u5ba3\u8a00\u304c\u3042\u3063\u305f\u3068\u304d\u306b\u3001\u3069\u308c\u3092\u512a\u5148\u3057\u3066\u9069\u7528\u3059\u308b\u304b\u306f\u3053\u306e\u30eb\u30fc\u30eb\u306b\u5f93\u3063\u3066\u5224\u65ad\u3055\u308c\u307e\u3059\u3002<\/p>\n<p id=\"gh6n1FeGSd\">\u73fe\u5728\u52e7\u544a\u3055\u308c\u3066\u3044\u308bCascade Sorting Order\u306b\u95a2\u3059\u308b\u4ed5\u69d8\u306f\u3001W3C\u306eCSS Cascading and Inheritance Level 4\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002CSS\u306e\u4ed5\u69d8\u306f\u66f4\u65b0\u306e\u305f\u3073\u306bLevel\u3068\u547c\u3070\u308c\u308b\u6570\u5024\u304c\u4e0a\u304c\u3063\u3066\u3044\u304d\u3001\u672c\u9023\u8f09\u3067\u3082\u7d39\u4ecb\u3057\u305fCascade Layers\u3084Scoped Styles\u3068\u3044\u3063\u305f\u6a5f\u80fd\u3092\u3059\u3079\u3066\u542b\u3081\u305f\u4ed5\u69d8\u306fLevel 6\u306b\u3066\u7b56\u5b9a\u304c\u9032\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p id=\"gh6GhtjJ8d\">\u672c\u8a18\u4e8b\u3067\u306fLevel 6\u306e\u5185\u5bb9\u3092\u30d9\u30fc\u30b9\u306b\u89e3\u8aac\u3057\u307e\u3059\uff08\u672c\u8a18\u4e8b\u306e\u63b2\u8f09\u6642\u70b9\u3067\u306f\u3001Level 6\u306e\u4ed5\u69d8\u306fWorking Draft\u3067\u3042\u308a\u3001\u4eca\u5f8c\u5185\u5bb9\u304c\u5909\u66f4\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u70b9\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u2060\uff09\u2060\u3002<\/p>\n<p>Cascade Sorting Order\u306e\u69cb\u6210\u8981\u7d20<\/p>\n<p id=\"gh5FvtD0fc\">Cascade Sorting Order\u3067\u306f\u3001\u6b21\u306e\u57fa\u6e96\u306b\u6cbf\u3063\u3066\u3001\u4e0a\u304b\u3089\u9806\u306b\u5224\u65ad\u3057\u3066\u9069\u7528\u9806\u5e8f\u3092\u4e26\u3073\u66ff\u3048\u308b\u4ed5\u69d8\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Origin and Importance\/CSS\u306e\u8d77\u6e90\u3068!important\u306e\u4ed8\u4e0e<br \/>\nContext\/Shadow DOM\u5185\u306e\u30b9\u30bf\u30a4\u30eb<br \/>\nThe Style Attribute\/style\u5c5e\u6027\u3067\u306e\u5ba3\u8a00<br \/>\nLayers\/Cascade Layers\u306e\u9806\u5e8f<br \/>\nSpecificity\/\u8a73\u7d30\u5ea6<br \/>\nScope Proximity\/\u30b9\u30b3\u30fc\u30d7\u306e\u8fd1\u63a5\u6027<br \/>\nOrder of Appearance\/\u5ba3\u8a00\u3055\u308c\u305f\u9806\u5e8f<\/p>\n<p id=\"ghdFyfwHY5\">\u3042\u308b\u30b9\u30bf\u30a4\u30eb\u304c2\u7b87\u6240\u3067\u5ba3\u8a00\u3055\u308c\u3066\u3044\u305f\u5834\u5408\u306e\u9069\u7528\u9806\u5e8f\u306e\u5224\u5b9a\u3092\u4f8b\u306b\u8003\u3048\u3066\u307f\u308b\u3068\u3001\u307e\u305a\u306fOrigin and Importance\u304c\u30c1\u30a7\u30c3\u30af\u3055\u308c\u3001Origin and Importance\u5185\u3067\u512a\u52a3\u304c\u3064\u304b\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u6b21\u306bContext\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u3069\u3053\u304b\u3067\u512a\u52a3\u304c\u3064\u304f\u307e\u3067\u7e70\u308a\u8fd4\u3057\u3001\u3044\u305a\u308c\u3067\u3082\u5224\u65ad\u304c\u3064\u304b\u306a\u3044\u5834\u5408\u306b\u306f\u6700\u7d42\u7684\u306bOrder of Appearance\u306b\u5f93\u3044\u3001\u3088\u308a\u5f8c\u306b\u5ba3\u8a00\u3055\u308c\u305f\u30b9\u30bf\u30a4\u30eb\u304c\u512a\u5148\u3055\u308c\u308b\u3001\u3068\u3044\u3063\u305f\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<p id=\"gh7iaq5CSJ\">\u5f93\u6765CSS\u306e\u9069\u7528\u9806\u5e8f\u3068\u3044\u3048\u3070\u8a73\u7d30\u5ea6\u304c\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3055\u308c\u308b\u30b1\u30fc\u30b9\u304c\u591a\u304b\u3063\u305f\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001Cascade Sorting Order\u5168\u4f53\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u8a73\u7d30\u5ea6\u306f\u9069\u7528\u9806\u5e8f\u3092\u6c7a\u3081\u308b\u4e2d\u3067\u306e\u4e00\u90e8\u5206\u3067\u3057\u304b\u306a\u304f\u3001\u8a73\u7d30\u5ea6\u4ee5\u5916\u306b\u3082\u591a\u304f\u306e\u8981\u7d20\u304c\u95a2\u308f\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p id=\"gh24Pj8hHu\">\u4ee5\u964d\u306f\u3001Cascade Sorting Order\u306b\u5b9a\u7fa9\u3055\u308c\u308b\u500b\u3005\u306e\u8981\u7d20\u306b\u3064\u3044\u3066\u3001\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Origin and Importance\/CSS \u306e\u8d77\u6e90\u3068!important\u306e\u4ed8\u4e0e<\/p>\n<p id=\"ghc4UgsnXe\">Cascade Sorting Order\u306e\u5148\u982d\u306b\u4f4d\u7f6e\u3057\u3001\u6700\u3082\u512a\u5148\u3057\u3066\u5224\u65ad\u3055\u308c\u308b\u306e\u304cOrigin and Importance\u3067\u3059\u3002\u540d\u524d\u306e\u901a\u308a\u3001Origin\u3068Importance\u306e2\u3064\u306e\u6982\u5ff5\u304c\u542b\u307e\u308c\u308b\u305f\u3081\u3001\u305d\u308c\u305e\u308c\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Origin\/CSS\u306e\u8d77\u6e90\u2060\u30fb\u5b9a\u7fa9\u5143<\/p>\n<p id=\"gh5C8mZkog\">CSS\u306b\u306f\u3001\u305d\u306e\u5b9a\u7fa9\u304c\u3069\u3053\u304b\u3089\u6765\u305f\u3082\u306e\u304b\u8d77\u6e90\u3092\u8868\u3059Origin\uff08\u30aa\u30ea\u30b8\u30f3\uff09\u3068\u547c\u3070\u308c\u308b\u6982\u5ff5\u304c\u3042\u308a\u3001\u3059\u3079\u3066\u306eCSS\u306f\u3044\u305a\u308c\u304b\u306eOrigin\u306b\u5c5e\u3057\u307e\u3059\u3002Origin\u306e\u4e2d\u3067\u3082\u7279\u306b\u628a\u63e1\u3057\u3066\u304a\u304d\u305f\u3044\u306e\u304c\u3001Author Origin\u30fbUser Origin\u30fbUser-Agent Origin\u306e3\u3064\u3067\u3059\uff08\u53b3\u5bc6\u306b\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306b\u95a2\u4fc2\u3059\u308bAnimation Origin\u3068Transition Origin\u3082\u5b58\u5728\u3057\u307e\u3059\u304c\u3001\u3053\u306e\u8aac\u660e\u306b\u3064\u3044\u3066\u306f\u5f8c\u8ff0\u3057\u307e\u3059\u2060\uff09\u2060\u3002<\/p>\n<p id=\"ghdqIDCYFf\">\u305d\u308c\u305e\u308c\u6b21\u306e\u3088\u3046\u306b\u5206\u985e\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>Author Origin: \u30da\u30fc\u30b8\u4f5c\u6210\u8005\u304c\u63d0\u4f9b\u3059\u308b\u3082\u306e\u3002\u666e\u6bb5\u6211\u3005\u304c\u66f8\u304fCSS\u306f\u3059\u3079\u3066\u3053\u3053\u306b\u5c5e\u3057\u307e\u3059\u3002<br \/>\nUser Origin: \u30d6\u30e9\u30a6\u30b6\u5229\u7528\u8005\u304c\u72ec\u81ea\u3067\u8a2d\u5b9a\u3057\u305f\u30b9\u30bf\u30a4\u30eb\u3002\u30d6\u30e9\u30a6\u30b6\u306e\u62e1\u5f35\u6a5f\u80fd\u306a\u3069\u3067\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002<br \/>\nUser-Agent Origin: \u30d6\u30e9\u30a6\u30b6\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u63d0\u4f9b\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u3002<\/p>\n<p id=\"gh9jo2Ti8J\">\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u304c\u3001Origin\u9593\u306e\u512a\u5148\u9806\u4f4d\u3082\u3053\u306e\u9806\u756a\u3068\u540c\u3058\u3067\u6b21\u306e\u3088\u3046\u306b\u306a\u308b\u70b9\u3067\u3059\u3002<\/p>\n<p>Author Origin<br \/>\nUser Origin<br \/>\nUser-Agent Origin<\/p>\n<p id=\"gh7_n3SWz3\">\u3053\u308c\u3092\u5b9f\u611f\u3067\u304d\u308b\u4f8b\u3068\u3057\u3066\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u30b9\u30bf\u30a4\u30eb\u306e\u4e0a\u66f8\u304d\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002\u6b21\u306e\u3088\u3046\u306a\u7121\u52b9\u5316\u3055\u308c\u305f\u30dc\u30bf\u30f3\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>button disabled&gt;\u30dc\u30bf\u30f3button&gt;<\/p>\n<p id=\"gh1auyXWZR\">Google Chrome\u3067\u78ba\u8a8d\u3057\u305f\u5834\u5408\u3001User-Agent Origin\u306b\u5c5e\u3059\u308b\u30d6\u30e9\u30a6\u30b6\u6a19\u6e96\u306e\u30b9\u30bf\u30a4\u30eb\u306b\u3088\u308a\u3001\u30b0\u30ec\u30fc\u30a2\u30a6\u30c8\u3055\u308c\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u56f31 \u7121\u52b9\u5316\u3055\u308c\u305f\u30dc\u30bf\u30f3\u306e\u30d6\u30e9\u30a6\u30b6\u6a19\u6e96\u3067\u306e\u8868\u793a<br \/>\n<img src=\"https:\/\/www.wacoca.com\/news\/wp-content\/uploads\/2024\/12\/button-default.png\" alt=\"\" decoding=\"async\" loading=\"lazy\" width=\"130\" height=\"67\"\/><\/p>\n<p id=\"gh4gg8TLmd\">\u3053\u306e\u30b9\u30bf\u30a4\u30eb\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u5074\u3067\u6b21\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059[1]\u3002<\/p>\n<p>button:disabled {<br \/>\n  background-color: light-dark(rgba(239, 239, 239, 0.3), rgba(19, 1, 1, 0.3));<br \/>\n  border-color: light-dark(rgba(118, 118, 118, 0.3), rgba(195, 195, 195, 0.3));<br \/>\n  color: light-dark(rgba(16, 16, 16, 0.3), rgba(255, 255, 255, 0.3));<br \/>\n}<\/p>\n<p id=\"gh9ILAwmxz\">[1] https:\/\/github.com\/chromium\/chromium\/blob\/133.0.6875.1\/third_party\/blink\/renderer\/core\/html\/resources\/html.css#L763-L767<\/p>\n<p id=\"gh8yOfVui9\">\u3053\u3053\u3067\u3001button\u306b\u5bfe\u3057\u3066\u6b21\u306e\u3088\u3046\u306a\u30b9\u30bf\u30a4\u30eb\u3092\u72ec\u81ea\u3067\u5b9a\u7fa9\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>button {<br \/>\n  background-color: black;<br \/>\n  color: white;<br \/>\n}<\/p>\n<p id=\"gh2hqLQS3C\">\u5b9f\u969b\u306b\u898b\u305f\u76ee\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u72ec\u81ea\u3067\u5b9a\u7fa9\u3057\u305f\u30b9\u30bf\u30a4\u30eb\u304c\u512a\u5148\u3055\u308c\u3001\u30d6\u30e9\u30a6\u30b6\u6a19\u6e96\u306e\u30b9\u30bf\u30a4\u30eb\u304c\u4e0a\u66f8\u304d\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u56f32 \u72ec\u81ea\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u8db3\u3057\u305f\u5f8c\u306e\u7121\u52b9\u5316\u3055\u308c\u305f\u30dc\u30bf\u30f3\u306e\u8868\u793a<br \/>\n<img src=\"https:\/\/www.wacoca.com\/news\/wp-content\/uploads\/2024\/12\/button-override.png\" alt=\"\" decoding=\"async\" loading=\"lazy\" width=\"131\" height=\"68\"\/><\/p>\n<p id=\"gh8z0QoV3s\">\u666e\u6bb5CSS\u3092\u66f8\u3044\u3066\u3044\u308c\u3070\u3001\u3053\u306e\u3088\u3046\u306a\u6319\u52d5\u306f\u5f53\u305f\u308a\u524d\u306e\u3088\u3046\u306b\u611f\u3058\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p id=\"gh6OTptWuG\">\u3057\u304b\u3057\u3001\u3088\u304f\u8003\u3048\u3066\u307f\u308b\u3068\u3001\u30d6\u30e9\u30a6\u30b6\u5074\u306eCSS\u306fbutton:disabled\u3068\u5ba3\u8a00\u3055\u308c\u3066\u304a\u308a\u3001\u3053\u308c\u306f\u8a73\u7d30\u5ea6\u3067\u8868\u3059\u30680-1-1\u3067\u3059\u3002\u4e00\u65b9\u3001\u72ec\u81ea\u3067\u5b9a\u7fa9\u3057\u305f\u30b9\u30bf\u30a4\u30eb\u306fbutton\u306e\u307f\u3092\u5bfe\u8c61\u306b\u5ba3\u8a00\u3057\u3066\u3044\u308b\u305f\u3081\u8a73\u7d30\u5ea6\u306f0-0-1\u3068\u306a\u308a\u3001\u30d6\u30e9\u30a6\u30b6\u5074\u306e\u30b9\u30bf\u30a4\u30eb\u3088\u308a\u3082\u8a73\u7d30\u5ea6\u304c\u4f4e\u304f\u3001\u8a73\u7d30\u5ea6\u3060\u3051\u3067\u6bd4\u8f03\u3057\u305f\u5834\u5408\u3067\u306f\u30b9\u30bf\u30a4\u30eb\u3092\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u306f\u305a\u3067\u3059\u3002\u305d\u308c\u3067\u3082\u78ba\u5b9f\u306b\u4e0a\u66f8\u304d\u3067\u304d\u308b\u306e\u306f\u3001Cascade Sorting Order\u306b\u304a\u3044\u3066Specificity\uff08\u8a73\u7d30\u5ea6\uff09\u3088\u308a\u3082Origin and Importance\u306e\u307b\u3046\u304c\u5148\u306b\u5224\u5b9a\u3055\u308c\u3001\u305d\u306e\u4e0a\u3067Origin\u9593\u306e\u512a\u5148\u9806\u4f4d\u3067\u4e0a\u56de\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>Importance\/!important\u306e\u6709\u7121<\/p>\n<p id=\"ghahAdfJgU\">Origin and Importance\u306e\u3046\u3061Importance\u306b\u8a72\u5f53\u3059\u308b\u306e\u304c!important\u4ed8\u4e0e\u306e\u6709\u7121\u3067\u3059\u3002<\/p>\n<p id=\"gh3fqsbDiM\">!important\u306b\u3064\u3044\u3066\u306f\u300c\u4ed8\u4e0e\u3059\u308c\u3070\u554f\u7b54\u7121\u7528\u3067\u512a\u5148\u3055\u308c\u308b\u3082\u306e\u300d\u3068\u3044\u3063\u305f\u8a8d\u8b58\u306e\u65b9\u3082\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u306a\u305c!important\u3092\u4ed8\u4e0e\u3059\u308b\u3068\u512a\u5148\u3055\u308c\u308b\u304b\u3092\u6398\u308a\u4e0b\u3052\u3066\u307f\u308b\u3068\u3001!important\u304c\u8a72\u5f53\u3059\u308bOrigin and Importance\u306e\u5224\u5b9a\u304cCascade Sorting Order\u306e\u4e2d\u3067\u6700\u4e0a\u4f4d\u306b\u4f4d\u7f6e\u3059\u308b\u304b\u3089\u3001\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p id=\"ghcivhkweb\">\u3053\u308c\u3092\u628a\u63e1\u3057\u3066\u3044\u308c\u3070\u3001\u305f\u3068\u3048\u3070\u300cCascade Layers\u306b\u304a\u3044\u3066\u512a\u5148\u9806\u4f4d\u304c\u4f4e\u3044\u30ec\u30a4\u30e4\u30fc\u3067\u3082!important\u304c\u4ed8\u4e0e\u3055\u308c\u305f\u30b9\u30bf\u30a4\u30eb\u306f\u512a\u5148\u3055\u308c\u308b\u304b\uff1f\u300d\u3068\u3044\u3046\u554f\u3044\u306b\u3082\u7b54\u3048\u3089\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u304c\u3001\u5b9f\u969b\u306e\u5b9f\u884c\u4f8b\u3067\u3059\u3002<\/p>\n<p>@layer layer1 {<br \/>\n  .text-a {<br \/>\n    color: red;<br \/>\n  }<br \/>\n  .text-b {<br \/>\n    color: red !important;<br \/>\n  }<br \/>\n}<br \/>\n@layer layer2 {<br \/>\n  .text-a {<br \/>\n    color: blue;<br \/>\n  }<br \/>\n  .text-b {<br \/>\n    color: blue;<br \/>\n  }<br \/>\n}<\/p>\n<p>div class=&#8221;text-a&#8221;&gt;\u30c6\u30ad\u30b9\u30c8div&gt;<br \/>\ndiv class=&#8221;text-b&#8221;&gt;\u30c6\u30ad\u30b9\u30c8div&gt;<\/p>\n<p>\u56f33 Cascade Layers\u3068<br \/>!important\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u5834\u5408\u306e\u8868\u793a<br \/>\n<img src=\"https:\/\/www.wacoca.com\/news\/wp-content\/uploads\/2024\/12\/layer-and-important.png\" alt=\"\" decoding=\"async\" loading=\"lazy\" width=\"128\" height=\"82\"\/><\/p>\n<p id=\"gha3dLYHNS\">!important\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u30b9\u30bf\u30a4\u30eb\u306f\u3001\u30ec\u30a4\u30e4\u30fc\u306e\u512a\u5148\u9806\u4f4d\u304c\u4e0b\u56de\u3063\u3066\u3044\u3066\u3082\u9069\u7528\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u3053\u308c\u3082\u3001Cascade Sorting Order\u306e\u4e2d\u3067\u3001Origin and Importance\u306e\u5224\u5b9a\u304cLayers\u3088\u308a\u3082\u4e0a\u306b\u4f4d\u7f6e\u3059\u308b\u304b\u3089\u3001\u3068\u8003\u3048\u308b\u3068\u7d0d\u5f97\u306e\u884c\u304f\u6319\u52d5\u3067\u3059\u306d\u3002<\/p>\n<p id=\"gh8kXvnEvX\">\u306a\u304a\u3001!important\u304c\u4ed8\u4e0e\u3055\u308c\u305f\u30b9\u30bf\u30a4\u30eb\u540c\u58eb\u306e\u9069\u7528\u9806\u5e8f\u306b\u304a\u3044\u3066\u306f\u3001Origin\u3084Cascade Layers\u306a\u3069\u306b\u3088\u3063\u3066\u5c11\u3057\u7279\u6b8a\u306a\u52d5\u4f5c\u3092\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u672c\u8a18\u4e8b\u306e\u5f8c\u534a\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Context\/Shadow DOM\u5185\u306e\u30b9\u30bf\u30a4\u30eb<\/p>\n<p id=\"gh8VurQS0J\">Origin and Importance\u3067\u5224\u65ad\u304c\u3064\u304b\u306a\u304b\u3063\u305f\u5834\u5408\u3001\u6b21\u306fContext\u304c\u5224\u5b9a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p id=\"ghaRLhdnJf\">Context\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u306f\u3001Shadow DOM\u3067\u306e\u30b9\u30bf\u30a4\u30eb\u5b9a\u7fa9\u306b\u3064\u3044\u3066\u77e5\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p id=\"ghbeDuAVtn\">Shadow DOM\u306fWeb Components\u3092\u69cb\u6210\u3059\u308b\u8981\u7d20\u306e\u3072\u3068\u3064\u3067\u3001DOM\u30c4\u30ea\u30fc\u3092\u30e1\u30a4\u30f3\u306eDOM\u30c4\u30ea\u30fc\u3068\u306f\u5207\u308a\u96e2\u3057\u3066\u30ab\u30d7\u30bb\u30eb\u5316\u3057\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001CSS\u306b\u3064\u3044\u3066\u3082\u5b8c\u5168\u306b\u5206\u96e2\u3055\u308c\u307e\u3059\u3002<\/p>\n<p id=\"gh7UwEjO8T\">\u6b21\u306e\u4f8b\u3067\u306f\u3001Shadow DOM\u306e\u5185\u5916\u3067\u30b9\u30bf\u30a4\u30eb\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u305e\u308c\u4e92\u3044\u306b\u5e72\u6e09\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>div {<br \/>\n  color: red !important;<br \/>\n}<\/p>\n<p>my-element&gt;<br \/>\n  template shadowrootmode=&#8221;closed&#8221;&gt;<br \/>\n    style&gt;<br \/>\n      div {<br \/>\n        color: blue;<br \/>\n      }<br \/>\n    style&gt;<br \/>\n    div&gt;Shadow DOM TEXTdiv&gt;<br \/>\n  template&gt;<br \/>\nmy-element&gt;<\/p>\n<p>div&gt;DOM TEXTdiv&gt;<\/p>\n<p>\u56f34 Shadow DOM\u3067\u30b9\u30bf\u30a4\u30eb\u304c\u9589\u3058\u3089\u308c\u3066\u3044\u308b\u8868\u793a\u4f8b<br \/>\n<img src=\"https:\/\/www.wacoca.com\/news\/wp-content\/uploads\/2024\/12\/shadow-dom.png\" alt=\"\" title=\"resize: 50%\" decoding=\"async\" loading=\"lazy\" width=\"241\" height=\"73\"\/><\/p>\n<p id=\"gh9P5du50E\">\u3053\u306e\u3068\u304d\u3001Shadow DOM\u304c\u30a2\u30bf\u30c3\u30c1\u3055\u308c\u3066\u3044\u308b\u8981\u7d20\u306fShadow Host\u3068\u547c\u3070\u308c\u3001\u901a\u5e38\u306e\u8981\u7d20\u3068\u540c\u3058\u3088\u3046\u306b\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u304c\u53ef\u80fd\u3067\u3059\u3002\u6b21\u306e\u4f8b\u3067\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u8868\u793a\u3059\u308b\u3060\u3051\u306eShadow DOM\u3092\u6301\u3064\u30ab\u30b9\u30bf\u30e0\u8981\u7d20\u306b\u5bfe\u3057\u3066\u3001\u30dc\u30fc\u30c0\u30fc\u3084\u4f59\u767d\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>my-element {<br \/>\n  display: inline-block;<br \/>\n  border: 1px solid black;<br \/>\n  padding: 8px;<br \/>\n}<\/p>\n<p>my-element&gt;<br \/>\n  template shadowrootmode=&#8221;closed&#8221;&gt;<br \/>\n    div&gt;Shadow DOM TEXTdiv&gt;<br \/>\n  template&gt;<br \/>\nmy-element&gt;<\/p>\n<p id=\"ghcoNwwK6r\">\u3057\u304b\u3057\u3001Shadow DOM\u5074\u3067\u300c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u5b9a\u7fa9\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u30b1\u30fc\u30b9\u3082\u3042\u308a\u3048\u308b\u3067\u3057\u3087\u3046\u3002\u305d\u3046\u3044\u3063\u305f\u30b1\u30fc\u30b9\u3067\u306f\u3001Shadow DOM\u5185\u3067\u306e\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u6642\u306b:host\u64ec\u4f3c\u30af\u30e9\u30b9\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p id=\"ghbQ2fgfUE\">\u5148\u307b\u3069\u3068\u540c\u3058\u30b9\u30bf\u30a4\u30eb\u3092:host\u64ec\u4f3c\u30af\u30e9\u30b9\u3092\u5229\u7528\u3057\u3066\u518d\u73fe\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>my-element&gt;<br \/>\n  template shadowrootmode=&#8221;closed&#8221;&gt;<br \/>\n    style&gt;<br \/>\n      :host {<br \/>\n        display: inline-block;<br \/>\n        border: 1px solid black;<br \/>\n        padding: 8px;<br \/>\n      }<br \/>\n    style&gt;<br \/>\n    div&gt;Shadow DOM TEXTdiv&gt;<br \/>\n  template&gt;<br \/>\nmy-element&gt;<\/p>\n<p>\u56f35 Shadow Host\u3078\u306e\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u4f8b<br \/>\n<img src=\"https:\/\/www.wacoca.com\/news\/wp-content\/uploads\/2024\/12\/shadow-dom-2.png\" alt=\"\" title=\"resize: 50%\" decoding=\"async\" loading=\"lazy\" width=\"267\" height=\"76\"\/><\/p>\n<p id=\"ghbb9kxZAZ\">Shadow Host\u306b\u5bfe\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u6307\u5b9a\u306e\u65b9\u6cd5\u30922\u30d1\u30bf\u30fc\u30f3\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u3053\u3067\u300c\u30ab\u30b9\u30bf\u30e0\u8981\u7d20\u3078\u306e\u76f4\u63a5\u306e\u30b9\u30bf\u30a4\u30eb\u6307\u5b9a\u3068:host\u64ec\u4f3c\u30af\u30e9\u30b9\u306e\u30b9\u30bf\u30a4\u30eb\u6307\u5b9a\u304c\u4e21\u65b9\u5b58\u5728\u3057\u3066\u3044\u305f\u5834\u5408\u3001\u3069\u3061\u3089\u304c\u512a\u5148\u3055\u308c\u308b\u304b\uff1f\u300d\u3068\u3044\u3046\u7591\u554f\u304c\u751f\u3058\u307e\u3059\u3002\u524d\u7f6e\u304d\u304c\u9577\u304f\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u3069\u3061\u3089\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u304b\u304cCascade Sorting Order\u306b\u304a\u3051\u308bContext\u306b\u8a72\u5f53\u3057\u307e\u3059\u3002<\/p>\n<p id=\"gh9MtN6a0y\">Context\u306e\u6bd4\u8f03\u304c\u751f\u3058\u305f\u5834\u5408\u3001\u901a\u5e38\u3067\u306f\u5916\u5074\u304b\u3089\u306e\u5ba3\u8a00\u304c\u512a\u5148\u3055\u308c\u307e\u3059\u3002\u3064\u307e\u308a\u3001:host\u64ec\u4f3c\u30af\u30e9\u30b9\u306e\u6307\u5b9a\u3088\u308a\u3082\u3001\u5916\u90e8\u304b\u3089\u306e\u30b9\u30bf\u30a4\u30eb\u6307\u5b9a\u304c\u512a\u5148\u3055\u308c\u307e\u3059\u3002<\/p>\n<p id=\"gh5TvhVoRJ\">\u6b21\u306e\u4f8b\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u5916\u90e8\u304b\u3089\u306e\u30b9\u30bf\u30a4\u30eb\u304c\u9069\u7528\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>my-element {<br \/>\n  display: inline-block;<br \/>\n  border: 5px dashed blue;<br \/>\n  padding: 16px;<br \/>\n}<\/p>\n<p>template shadowrootmode=&#8221;closed&#8221;&gt;<br \/>\n  style&gt;<br \/>\n    :host {<br \/>\n      display: inline-block;<br \/>\n      border: 1px solid black;<br \/>\n      padding: 8px;<br \/>\n    }<br \/>\n  style&gt;<br \/>\n  div&gt;Shadow DOM TEXTdiv&gt;<br \/>\ntemplate&gt;<\/p>\n<p>\u56f36 Shadow Host\u3078\u306e\u30b9\u30bf\u30a4\u30eb\u6307\u5b9a\u3067\u5916\u90e8\u304b\u3089\u306e\u30b9\u30bf\u30a4\u30eb\u304c\u512a\u5148\u3055\u308c\u308b\u4f8b<br \/>\n<img src=\"https:\/\/www.wacoca.com\/news\/wp-content\/uploads\/2024\/12\/shadow-dom-3.png\" alt=\"\" title=\"resize: 50%\" decoding=\"async\" loading=\"lazy\" width=\"288\" height=\"108\"\/><\/p>\n<p id=\"gh7ZLck84W\">:host\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u304d\u3001\u5229\u7528\u5074\u3067\u67d4\u8edf\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3001\u3068\u7406\u89e3\u3057\u3066\u304a\u304f\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>The Style Attribute\/style\u5c5e\u6027\u3067\u306e\u5ba3\u8a00<\/p>\n<p id=\"gh8ayWxRNC\">\u7d9a\u3044\u3066\u5224\u5b9a\u3055\u308c\u308b\u306e\u304cThe Style Attribute = style\u5c5e\u6027\u3067\u306e\u5ba3\u8a00\u3067\u3059\u3002<\/p>\n<p>div style=&#8221;color: red;&#8221;&gt;\u30c6\u30ad\u30b9\u30c8div&gt;<\/p>\n<p id=\"ghPRMZaVNF\">style\u5c5e\u6027\u81ea\u4f53\u306b\u3064\u3044\u3066\u306f\u5f93\u6765\u304b\u3089\u5b58\u5728\u3059\u308b\u305f\u3081\u89e3\u8aac\u3092\u7701\u304d\u307e\u3059\u304c\u3001Cascade Layers\u3088\u308a\u3082\u512a\u5148\u3055\u308c\u308b\u70b9\u306f\u899a\u3048\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p id=\"gh6aAtTdtz\">\u306a\u304a\u4f59\u8ac7\u3067\u3059\u304c\u3001\u4ed5\u69d8\u306eLevel 4\u4ee5\u524d\u3067\u306fCascade Sorting Order\u4e0a\u306bThe Style Attribute\u3068\u3044\u3046\u9805\u76ee\u306f\u306a\u304f\u3001\u4ee3\u308f\u308a\u306bSpecificity\uff08\u8a73\u7d30\u5ea6\uff09\u306e\u4e2d\u3067\u300cstyle\u5c5e\u6027\u3067\u306e\u5ba3\u8a00\u306f\u3069\u306e\u30bb\u30ec\u30af\u30bf\u3088\u308a\u3082\u9ad8\u3044\u8a73\u7d30\u5ea6\u3092\u6301\u3064\u3068\u307f\u306a\u3055\u308c\u308b\u300d\u3068\u3044\u3063\u305f\u65e8\u306e\u8a18\u8ff0\u304c\u3042\u308a\u307e\u3057\u305f[2]\u3002<\/p>\n<p id=\"gh5ZiLEt_q\">[2] https:\/\/www.w3.org\/TR\/css-cascade-4\/#cascade-specificity<\/p>\n<p id=\"ghbl6K7M_v\">\u3057\u304b\u3057\u3001Level 5\u4ee5\u964d\u306b\u304a\u3044\u3066style\u5c5e\u6027\u3068\u8a73\u7d30\u5ea6\u306e\u9593\u306b\u4f4d\u7f6e\u3059\u308b\u5f62\u3067Cascade Layers\u304c\u767b\u5834\u3057\u305f\u3053\u3068\u3067\u3001\u5f93\u6765\u306e\u5f62\u3067\u4ed5\u69d8\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u306f\u4e0d\u53ef\u80fd\u3068\u306a\u308a\u307e\u3057\u305f\u3002\u7d50\u679c\u3068\u3057\u3066\u3001Cascade Sorting Order\u5185\u306b\u304a\u3051\u308bstyle\u5c5e\u6027\u306b\u95a2\u3059\u308b\u4ed5\u69d8\u306fThe Style Attribute\u3068\u3057\u3066\u72ec\u7acb\u3057\u3066\u5b9a\u7fa9\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f[3]\u3002<\/p>\n<p id=\"ghRKY657FL\">[3] https:\/\/www.w3.org\/TR\/css-cascade-6\/#additions-l5<\/p>\n<p>Layers\/Cascade Layers\u306e\u9806\u5e8f<\/p>\n<p id=\"ghec8Qar4l\">The Style Attribute\uff08style\u5c5e\u6027\uff09\u3068Specificity\uff08\u8a73\u7d30\u5ea6\uff09\u306e\u9593\u306b\u4f4d\u7f6e\u3059\u308b\u306e\u304c\u3001Layers = Cascade Layers\u3067\u3059\u3002<\/p>\n<p id=\"ghelTx0AWx\">Cascade Layers\u305d\u306e\u3082\u306e\u306b\u3064\u3044\u3066\u306f\u3001\u672c\u9023\u8f09\u306e\u300cCascade Layers\/\u30ec\u30a4\u30e4\u30fc\u306b\u3088\u308b\u512a\u5148\u9806\u4f4d\u306e\u5236\u5fa1\u300d\u3082\u3042\u308f\u305b\u3066\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3088\u308a\u5f8c\u306b\u5ba3\u8a00\u3055\u308c\u305f\u30ec\u30a4\u30e4\u30fc\u304c\u512a\u5148\u3055\u308c\u308b<\/p>\n<p id=\"gh1N1Ra4bU\">Cascade Layers\u3067\u899a\u3048\u3066\u304a\u304d\u305f\u3044\u30dd\u30a4\u30f3\u30c8\u306f\u6b21\u306e2\u70b9\u3067\u3059\u3002<\/p>\n<p>\u3088\u308a\u5f8c\u306b\u5ba3\u8a00\u3055\u308c\u305f\u30ec\u30a4\u30e4\u30fc\u304c\u512a\u5148\u3055\u308c\u308b<br \/>\n\u30ec\u30a4\u30e4\u30fc\u306b\u5c5e\u3055\u306a\u3044\u30b9\u30bf\u30a4\u30eb\u306f\u3001\u660e\u793a\u7684\u306b\u30ec\u30a4\u30e4\u30fc\u306b\u542b\u3081\u305f\u30b9\u30bf\u30a4\u30eb\u3088\u308a\u512a\u5148\u3055\u308c\u308b<\/p>\n<p id=\"gheYA25wHs\">\u30ec\u30a4\u30e4\u30fc\u306f\u5ba3\u8a00\u9806\u304c\u91cd\u8981\u3067\u3001\u3088\u308a\u5f8c\u306b\u5ba3\u8a00\u3055\u308c\u305f\u30ec\u30a4\u30e4\u30fc\u306e\u307b\u3046\u304c\u512a\u5148\u3055\u308c\u307e\u3059\u3002Cascade Sorting Order\u306b\u304a\u3044\u3066Layers\u306fSpecificity\uff08\u8a73\u7d30\u5ea6\uff09\u3088\u308a\u3082\u4e0a\u306b\u4f4d\u7f6e\u3059\u308b\u305f\u3081\u3001\u8a73\u7d30\u5ea6\u304c\u4e0b\u56de\u3063\u3066\u3044\u305f\u3068\u3057\u3066\u3082\u3001\u30ec\u30a4\u30e4\u30fc\u306e\u512a\u5148\u9806\u4f4d\u304c\u9ad8\u3051\u308c\u3070\u305d\u3061\u3089\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p id=\"gheg_2GLsZ\">\u307e\u305f\u3001\u30ec\u30a4\u30e4\u30fc\u306b\u542b\u3081\u305a\u306b\u5ba3\u8a00\u3057\u305f\u30b9\u30bf\u30a4\u30eb\u306b\u95a2\u3057\u3066\u306f\u3001\u3059\u3079\u3066\u300c\u6697\u9ed9\u306e\u30ec\u30a4\u30e4\u30fc\u300d\u3068\u547c\u3070\u308c\u308b\u30ec\u30a4\u30e4\u30fc\u306b\u5c5e\u3057\u307e\u3059\u3002\u6697\u9ed9\u306e\u30ec\u30a4\u30e4\u30fc\u306f\u6700\u3082\u5f8c\u306b\u5ba3\u8a00\u3055\u308c\u305f\u30ec\u30a4\u30e4\u30fc\u3068\u307f\u306a\u3055\u308c\u308b\u305f\u3081\u3001\u7d50\u679c\u3068\u3057\u3066\u3001\u660e\u793a\u7684\u306b\u5ba3\u8a00\u3057\u305f\u30ec\u30a4\u30e4\u30fc\u306e\u30b9\u30bf\u30a4\u30eb\u3088\u308a\u3082\u512a\u5148\u3055\u308c\u307e\u3059\u3002<\/p>\n<p id=\"gh2BhYULXX\">\u6b21\u306e\u4f8b\u306e\u5834\u5408\u3001.text\u30af\u30e9\u30b9\u304c\u4ed8\u4e0e\u3055\u308c\u305f\u8981\u7d20\u306e\u30ab\u30e9\u30fc\u306f&#8221;black&#8221;\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>@layer layer1, layer2, layer3;<\/p>\n<p>.text {<br \/>\n  color: black;<br \/>\n}<\/p>\n<p>@layer layer1 {<br \/>\n  .text {<br \/>\n    color: red;<br \/>\n  }<br \/>\n}<br \/>\n@layer layer2 {<br \/>\n  .text {<br \/>\n    color: blue;<br \/>\n  }<br \/>\n}<br \/>\n@layer layer3 {<br \/>\n  .text {<br \/>\n    color: green;<br \/>\n  }<br \/>\n}<\/p>\n<p>\u30b5\u30d6\u30ec\u30a4\u30e4\u30fc\u3092\u542b\u3081\u305f\u9069\u7528\u9806\u5e8f<\/p>\n<p id=\"gh6L3H6l2_\">Cascade Layer\u3067\u306f\u3001\u30ec\u30a4\u30e4\u30fc\u914d\u4e0b\u306b\u30ec\u30a4\u30e4\u30fc\u3092\u542b\u3081\u308b\u30b5\u30d6\u30ec\u30a4\u30e4\u30fc\u3092\u5229\u7528\u3067\u304d\u3001\u3053\u308c\u3082\u9069\u7528\u9806\u5e8f\u306b\u95a2\u4e0e\u3057\u307e\u3059\u3002\u30b5\u30d6\u30ec\u30a4\u30e4\u30fc\u306f\u89aa\u30ec\u30a4\u30e4\u30fc\u3054\u3068\u306b\u30b0\u30eb\u30fc\u30d7\u5316\u3055\u308c\u305f\u4e2d\u3067\u9806\u5e8f\u304c\u5224\u65ad\u3055\u308c\u307e\u3059\u304c\u3001\u901a\u5e38\u306e\u30ec\u30a4\u30e4\u30fc\u3068\u540c\u69d8\u3001\u3053\u3061\u3089\u3082\u3088\u308a\u5f8c\u306b\u5ba3\u8a00\u3055\u308c\u305f\u307b\u3046\u304c\u512a\u5148\u3055\u308c\u307e\u3059\u3002<\/p>\n<p id=\"gha9Am8eac\">\u307e\u305f\u3001\u300c\u2060\u89aa\u30ec\u30a4\u30e4\u30fc\u306b\u542b\u307e\u308c\u308b\u304c\u30b5\u30d6\u30ec\u30a4\u30e4\u30fc\u306b\u542b\u307e\u308c\u306a\u3044\u30b9\u30bf\u30a4\u30eb\u300d\u306b\u3064\u3044\u3066\u306f\u3001\u30b5\u30d6\u30ec\u30a4\u30e4\u30fc\u3088\u308a\u3082\u512a\u5148\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u901a\u5e38\u306e\u30ec\u30a4\u30e4\u30fc\u306b\u304a\u3051\u308b\u6697\u9ed9\u306e\u30ec\u30a4\u30e4\u30fc\u306e\u3088\u3046\u306b\u3001\u6697\u9ed9\u306e\u30b5\u30d6\u30ec\u30a4\u30e4\u30fc\u306b\u5b9a\u7fa9\u3055\u308c\u3001\u6700\u5f8c\u306b\u5ba3\u8a00\u3055\u308c\u305f\u30b5\u30d6\u30ec\u30a4\u30e4\u30fc\u3067\u3042\u308b\u3068\u307f\u306a\u3055\u308c\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p id=\"gh1Bb4j3Sk\">\u6b21\u306e\u30b9\u30bf\u30a4\u30eb\u3067\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>@layer parent1 {<br \/>\n  .text {<br \/>\n    color: black;<br \/>\n  }<\/p>\n<p>  @layer sub1 {<br \/>\n    .text {<br \/>\n      color: red;<br \/>\n    }<br \/>\n  }<br \/>\n  @layer sub2 {<br \/>\n    .text {<br \/>\n      color: blue;<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<p>@layer parent2 {<br \/>\n  .text {<br \/>\n    color: gray;<br \/>\n  }<\/p>\n<p>  @layer sub1 {<br \/>\n    .text {<br \/>\n      color: yellow;<br \/>\n    }<br \/>\n  }<br \/>\n  @layer sub2 {<br \/>\n    .text {<br \/>\n      color: green;<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<p id=\"gh3GHpzgqg\">\u3053\u306e\u5834\u5408\u3001\u30ec\u30a4\u30e4\u30fc\u306e\u512a\u5148\u9806\u4f4d\u306f\u6b21\u306e\u901a\u308a\u3068\u306a\u308a\u3001.text\u30af\u30e9\u30b9\u304c\u4ed8\u4e0e\u3055\u308c\u305f\u8981\u7d20\u306e\u30ab\u30e9\u30fc\u306f&#8221;gray&#8221;\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6697\u9ed9\u306e\u30ec\u30a4\u30e4\u30fc\uff08\u4eca\u56de\u306e\u4f8b\u3067\u306f\u30b9\u30bf\u30a4\u30eb\u306f\u672a\u5b9a\u7fa9\uff09<br \/>\nparent2\uff08\u5f8c\u306b\u5ba3\u8a00\u3055\u308c\u305f\u89aa\u30ec\u30a4\u30e4\u5185\u306e\u6697\u9ed9\u306e\u30b5\u30d6\u30ec\u30a4\u30e4\u30fc\uff09<br \/>\nparent2.sub2\uff08\u5f8c\u306b\u5ba3\u8a00\u3055\u308c\u305f\u89aa\u30ec\u30a4\u30e4\u5185\u306e\u6700\u5f8c\u306e\u30ec\u30a4\u30e4\u30fc\uff09<br \/>\nparent2.sub1\uff08\u5f8c\u306b\u5ba3\u8a00\u3055\u308c\u305f\u89aa\u30ec\u30a4\u30e4\u5185\u306e\u6700\u521d\u306e\u30ec\u30a4\u30e4\u30fc\uff09<br \/>\nparent1\uff08\u5148\u306b\u5ba3\u8a00\u3055\u308c\u305f\u89aa\u30ec\u30a4\u30e4\u5185\u306e\u6697\u9ed9\u306e\u30b5\u30d6\u30ec\u30a4\u30e4\u30fc\uff09<br \/>\nparent1.sub2\uff08\u5148\u306b\u5ba3\u8a00\u3055\u308c\u305f\u89aa\u30ec\u30a4\u30e4\u5185\u306e\u6700\u5f8c\u306e\u30ec\u30a4\u30e4\u30fc\uff09<br \/>\nparent1.sub1\uff08\u5148\u306b\u5ba3\u8a00\u3055\u308c\u305f\u89aa\u30ec\u30a4\u30e4\u5185\u306e\u6700\u521d\u306e\u30ec\u30a4\u30e4\u30fc\uff09<\/p>\n<p id=\"gh4JTRy7uD\">\u306a\u304a\u3001\u3053\u306e\u9069\u7528\u9806\u5e8f\u306fGoogle Chrome\u3067\u306eDevTools\u3067\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff08\u6570\u5b57\u304c\u5927\u304d\u3044\u307b\u3046\u304c\u3088\u308a\u512a\u5148\u3055\u308c\u308b\u30ec\u30a4\u30e4\u30fc\u3067\u3059\u2060\uff09\u2060\u3002<\/p>\n<p>\u56f37 Cascade Layers\u306e\u9069\u7528\u9806\u5e8f\u3092DevTools\u3067\u78ba\u8a8d\u3057\u305f\u969b\u306e\u8868\u793a\u4f8b<br \/>\n<img src=\"https:\/\/www.wacoca.com\/news\/wp-content\/uploads\/2024\/12\/sublayer.png\" alt=\"\" decoding=\"async\" loading=\"lazy\" width=\"897\" height=\"258\"\/><\/p>\n<p>Specificity\/\u8a73\u7d30\u5ea6<\/p>\n<p id=\"gheizuv0ws\">\u3053\u3053\u307e\u3067\u3067\u9069\u7528\u9806\u5e8f\u304c\u78ba\u5b9a\u3057\u306a\u304b\u3063\u305f\u5834\u5408\u3001\u3044\u3088\u3044\u3088Specificity\uff08\u8a73\u7d30\u5ea6\uff09\u3067\u5224\u5b9a\u3055\u308c\u307e\u3059[4]\u3002<\/p>\n<p id=\"gh9ClR6uTQ\">[4] \u8a73\u7d30\u5ea6\u305d\u306e\u3082\u306e\u306b\u3064\u3044\u3066\u306e\u8a73\u7d30\u306a\u8aac\u660e\u306f\u3053\u3053\u3067\u306f\u5272\u611b\u3057\u307e\u3059\u3002\u6539\u3081\u3066\u77e5\u308a\u305f\u3044\u5834\u5408\u306fMDN\u306e\u8a18\u4e8b\u306a\u3069\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001\u672c\u9023\u8f09\u306e\u300c\u65b0\u3057\u3044\u64ec\u4f3c\u30af\u30e9\u30b9:has()\u2060\u2060\u3001:is()\u2060\u2060\u3001:where()\u3092\u4f7f\u3044\u3053\u306a\u305d\u3046\u300d\u3067\u3082\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p id=\"gh3794ZQjQ\">CSS\u30bb\u30ec\u30af\u30bf\u306b\u542b\u307e\u308c\u308b\u5185\u5bb9\u304b\u3089\u91cd\u307f\u4ed8\u3051\u304c\u884c\u308f\u308c\u3001\u8a73\u7d30\u5ea6\u304c\u9ad8\u3044\u3082\u306e\u304b\u3089\u9806\u306b\u512a\u5148\u5ea6\u3082\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>#id {<br \/>\n  color: red;<br \/>\n}<\/p>\n<p>.class {<br \/>\n  color: blue;<br \/>\n}<\/p>\n<p>div {<br \/>\n  color: green;<br \/>\n}<\/p>\n<p id=\"ghbKhwhM9B\">\u4eee\u306b2\u3064\u306eCSS\u5b9a\u7fa9\u3067\u512a\u5148\u5ea6\u3092\u5224\u65ad\u3059\u308b\u30b1\u30fc\u30b9\u3092Cascade Sorting Order\u5168\u4f53\u3067\u8003\u3048\u3066\u307f\u308b\u3068\u3001\u8a73\u7d30\u5ea6\u3092\u7528\u3044\u305f\u6bd4\u8f03\u304c\u884c\u308f\u308c\u308b\u307e\u3067\u306b\u306f\u3001\u3053\u3053\u307e\u3067\u306b\u7d39\u4ecb\u3057\u305f\u5185\u5bb9\u304b\u3089\u6b21\u306e\u5224\u65ad\u304c\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3068\u3082\u306b!important\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u3001\u3042\u308b\u3044\u306f\u3068\u3082\u306b\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u306a\u3044<br \/>\n\u5ba3\u8a00\u3055\u308c\u3066\u3044\u308bOrigin\u304c\u540c\u3058\u3067\u3042\u308b<br \/>\nShadow DOM\u3092\u8003\u616e\u3057\u305f\u5ba3\u8a00\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u304c\u540c\u3058\u3067\u3042\u308b<br \/>\n\u3068\u3082\u306bstyle\u5c5e\u6027\u3067\u306e\u5ba3\u8a00\u3067\u3042\u308b\u3001\u3042\u308b\u3044\u306f\u3068\u3082\u306bstyle\u5c5e\u6027\u3067\u306e\u5ba3\u8a00\u3067\u306f\u306a\u3044<br \/>\nCascade Layers\u306b\u304a\u3044\u3066\u5ba3\u8a00\u304c\u5c5e\u3059\u308b\u30ec\u30a4\u30e4\u30fc\u304c\u540c\u4e00\u3067\u3042\u308b<\/p>\n<p id=\"gh5yCdXi6B\">CSS\u306e\u9069\u7528\u9806\u5e8f\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b\u305f\u3081\u306e\u4e2d\u5fc3\u7684\u306a\u4f4d\u7f6e\u4ed8\u3051\u3068\u3057\u3066\u5e83\u304f\u5229\u7528\u3055\u308c\u308b\u8a73\u7d30\u5ea6\u3067\u3059\u304c\u3001\u305d\u308c\u3088\u308a\u3082\u5148\u306b\u591a\u304f\u306e\u57fa\u6e96\u306b\u3088\u3063\u3066\u5224\u65ad\u304c\u3055\u308c\u305f\u4e0a\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u628a\u63e1\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>Scope Proximity\/\u30b9\u30b3\u30fc\u30d7\u306e\u8fd1\u63a5\u6027<\/p>\n<p id=\"ghcRtO43WX\">\u8a73\u7d30\u5ea6\u3082\u4e00\u81f4\u3057\u305f\u5834\u5408\u306b\u306f\u3001Scope Proximity = \u30b9\u30b3\u30fc\u30d7\u306e\u8fd1\u63a5\u6027\u306e\u5224\u5b9a\u304c\u884c\u308f\u308c\u307e\u3059\u3002\u30b9\u30b3\u30fc\u30d7\u306e\u8fd1\u63a5\u6027\u3068\u306fScoped Styles\uff08@scope\uff09\u3067\u7528\u3044\u3089\u308c\u308b\u4ed5\u69d8\u3067\u3042\u308a\u3001\u30b9\u30bf\u30a4\u30eb\u304c\u8907\u6570\u306e\u30b9\u30bf\u30a4\u30eb\u306b\u8a72\u5f53\u3057\u305f\u5834\u5408\u306b\u3001\u3088\u308a\u30b9\u30b3\u30fc\u30d7\u306e\u30eb\u30fc\u30c8\u306b\u8fd1\u3044\u30b9\u30bf\u30a4\u30eb\u304c\u512a\u5148\u3057\u3066\u9069\u7528\u3055\u308c\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>@scope (.parent) {<br \/>\n  p {<br \/>\n    color: red;<br \/>\n  }<br \/>\n}<br \/>\n@scope (.child) {<br \/>\n  p {<br \/>\n    color: blue;<br \/>\n  }<br \/>\n}<\/p>\n<p>div class=&#8221;parent&#8221;&gt;<\/p>\n<p>  p&gt;Parent Textp&gt;<br \/>\n  div class=&#8221;child&#8221;&gt;<\/p>\n<p>    p&gt;Child Textp&gt;<br \/>\n  div&gt;<br \/>\ndiv&gt;<\/p>\n<p>\u56f38 \u30b9\u30b3\u30fc\u30d7\u306e\u8fd1\u63a5\u6027\u304c\u7570\u306a\u308b2\u3064\u306e\u30b9\u30bf\u30a4\u30eb\u306e\u8868\u793a\u4f8b<br \/>\n<img src=\"https:\/\/www.wacoca.com\/news\/wp-content\/uploads\/2024\/12\/scope.png\" alt=\"\" decoding=\"async\" loading=\"lazy\" width=\"207\" height=\"116\"\/><\/p>\n<p id=\"ghrC4MG_AW\">Cascade Sorting Order\u3067\u306e\u89b3\u70b9\u3067\u91cd\u8981\u3068\u306a\u308b\u306e\u306f\u3001\u30b9\u30b3\u30fc\u30d7\u306e\u8fd1\u63a5\u6027\u3088\u308a\u3082\u8a73\u7d30\u5ea6\u306e\u307b\u3046\u304c\u512a\u5148\u5ea6\u304c\u9ad8\u3044\u70b9\u3067\u3057\u3087\u3046\u3002\u8a72\u5f53\u306e\u30dd\u30a4\u30f3\u30c8\u3082\u542b\u3081\u3066Scoped Styles\u81ea\u4f53\u306e\u4ed5\u69d8\u306b\u3064\u3044\u3066\u306f\u672c\u9023\u8f09\u306e\u300cScoped Styles\/\u30b9\u30b3\u30fc\u30d7\u4ed8\u304d\u30b9\u30bf\u30a4\u30eb\u30eb\u30fc\u30eb\u300d\u306b\u3066\u8a73\u7d30\u306b\u89e3\u8aac\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u3042\u308f\u305b\u3066\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>!important\u306b\u3088\u308b\u512a\u5148\u9806\u4f4d\u306e\u9006\u8ee2<\/p>\n<p id=\"gh8iMi1Q_O\">!important\u306fOrigin and Importance\u3068\u3057\u3066Cascade Sorting Order\u306e\u5148\u982d\u3067\u5224\u65ad\u3055\u308c\u308b\u65e8\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001!important\u306f\u5358\u7d14\u306b\u9069\u7528\u9806\u4f4d\u304c\u4e0a\u304c\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u5229\u7528\u3055\u308c\u308b\u30b7\u30c1\u30e5\u30a8\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u306f\u512a\u5148\u9806\u4f4d\u3092\u9006\u8ee2\u3055\u305b\u308b\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p id=\"gh8L5oDD4B\">\u4e00\u822c\u7684\u306a\u958b\u767a\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u3057\u3066!important\u306e\u6feb\u7528\u306f\u907f\u3051\u308b\u3079\u304d\u3068\u8a00\u308f\u308c\u308b\u3053\u3068\u3082\u3042\u308a\u3001\u65e5\u5e38\u306e\u958b\u767a\u3067\u306f\u983b\u7e41\u306b\u51fa\u4f1a\u3046\u6319\u52d5\u3067\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u305f\u3060\u3001\u7279\u6b8a\u306a\u6319\u52d5\u3067\u3042\u308b\u304c\u3086\u3048\u306b\u3001\u610f\u56f3\u305b\u305a\u906d\u9047\u3059\u308b\u3068\u5224\u65ad\u3084\u5bfe\u51e6\u304c\u96e3\u3057\u3044\u90e8\u5206\u3067\u3082\u3042\u308b\u305f\u3081\u3001\u8a73\u7d30\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Origin\u3068!important<\/p>\n<p id=\"ghd8EFSqve\">Origin and Importance\u306e\u89e3\u8aac\u306b\u304a\u3044\u3066\u3001\u6b21\u306e3\u3064\u306eOrigin\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>Author Origin<br \/>\nUser Origin<br \/>\nUser-Agent Origin<\/p>\n<p id=\"gh3ePFeSdO\">\u901a\u5e38\u306e\u512a\u5148\u9806\u4f4d\u306fAuthor Origin \u2192 User Origin \u2192 User-Agent Origin\u3067\u3042\u308a\u3001\u8a73\u7d30\u5ea6\u306a\u3069\u3092\u6c17\u306b\u3059\u308b\u3053\u3068\u306a\u304f\u30d6\u30e9\u30a6\u30b6\u6a19\u6e96\u306e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3092\u4e0a\u66f8\u304d\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u3001!important\u304c\u4ed8\u4e0e\u3055\u308c\u305f\u5ba3\u8a00\u3067\u306f\u512a\u5148\u9806\u4f4d\u304c\u9006\u8ee2\u3057\u3001User-Agent Origin \u2192 User Origin \u2192 Author Origin\u306e\u9806\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p id=\"gh5iW20ik2\">\u3064\u307e\u308a\u3001\u30d6\u30e9\u30a6\u30b6\u6a19\u6e96\u306e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3067!important\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u3068\u3001\u30da\u30fc\u30b8\u4f5c\u6210\u8005\u304c\u63d0\u4f9b\u3059\u308bCSS\u3067\u306e\u4e0a\u66f8\u304d\u306f\u4e0d\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p id=\"ghsKDvixIi\">\u3072\u3068\u3064\u4f8b\u3092\u6319\u3052\u308b\u3068\u3001CSS\u306eoverlay\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u8a72\u5f53\u3057\u307e\u3059\u3002overlay\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u30dd\u30c3\u30d7\u30aa\u30fc\u30d0\u30fc\u3084\u30c0\u30a4\u30a2\u30ed\u30b0\u3068\u3044\u3063\u305f\u8981\u7d20\u3067\u7528\u3044\u3089\u308c\u3001\u5024\u306bauto\u3092\u6307\u5b9a\u3059\u308b\u3068\u8981\u7d20\u306e\u91cd\u306a\u308a\u306b\u304a\u3044\u3066\u6700\u4e0a\u4f4d\u306b\u63cf\u753b\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002Chromium\u3067\u306eUser-Agent Origin\u306b\u76f8\u5f53\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3001\u8981\u7d20\u306e\u30e2\u30fc\u30c0\u30eb\u72b6\u614b\u3067\u306e\u8868\u793a\u6642\u306e\u30b9\u30bf\u30a4\u30eb\u3068\u3057\u3066\u6b21\u306e\u5ba3\u8a00\u304c\u542b\u307e\u308c\u3001auto\u306b\u5bfe\u3057\u3066!important\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u307e\u3059[5]\u3002<\/p>\n<p>dialog:modal {<br \/>\n  overlay: auto !important;<br \/>\n}<\/p>\n<p id=\"ghaZ3TQD71\">[5] https:\/\/github.com\/chromium\/chromium\/blob\/133.0.6875.1\/third_party\/blink\/renderer\/core\/html\/resources\/html.css#L1542-L1544<\/p>\n<p id=\"gh6ZcNOZom\">\u3053\u306e\u6307\u5b9a\u306b\u3088\u308a\u3001\u3092\u30e2\u30fc\u30c0\u30eb\u72b6\u614b\u3067\u5229\u7528\u3059\u308b\u3068\u3001\u6700\u4e0a\u4f4d\u306b\u8868\u793a\u3055\u308c\u30c0\u30a4\u30a2\u30ed\u30b0\u4ee5\u5916\u306e\u64cd\u4f5c\u304c\u30d6\u30ed\u30c3\u30af\u3055\u308c\u307e\u3059\u3002\u305d\u3057\u3066\u3053\u306e\u30b9\u30bf\u30a4\u30eb\u306fUser-Agent Origin\u4e0a\u3067!important\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u4e0a\u66f8\u304d\u3067\u304d\u305a\u3001\u30d6\u30e9\u30a6\u30b6\u5074\u3067\u52d5\u4f5c\u304c\u4fdd\u8a3c\u3055\u308c\u3066\u3044\u308b\u90e8\u5206\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p id=\"gh6opS_OFZ\">\u4f8b\u5916\u7684\u306boverlay\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066transition\u306b\u3088\u308b\u72b6\u614b\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002\u306e\u975e\u8868\u793a\u6642\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u305f\u3044\u30b1\u30fc\u30b9\u306b\u304a\u3044\u3066\u3001transition\u306b\u3088\u3063\u3066overlay\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5909\u5316\u3092\u9045\u5ef6\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u5b8c\u4e86\u3059\u308b\u307e\u3067\u78ba\u5b9f\u306b\u6700\u4e0a\u4f4d\u306b\u63cf\u753b\u3057\u3066\u304a\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p id=\"gh4zSSiBlY\">\u305d\u3057\u3066\u3001\u3053\u306etransition\u306b\u3088\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5236\u5fa1\u3082\u3001\u5b9f\u306fCascade Sorting Order\u3067\u8aac\u660e\u3067\u304d\u307e\u3059\u3002Origin and Importance\u306b\u304a\u3051\u308bOrigin\u306b\u306f\u3001\u5148\u306b\u6319\u3052\u305fAuthor Origin\u30fbUser Origin\u30fbUser-Agent Origin\u4ee5\u5916\u306b\u3082\u6b21\u306e\u3082\u306e\u304c\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n<p>Animation Origin<br \/>\nTransition Origin<\/p>\n<p id=\"ghbD2IHPvN\">\u305d\u3057\u3066\u3001\u3053\u308c\u30892\u3064\u306eOrigin\u3068\u3001\u5148\u306b\u8ff0\u3079\u305f!important\u4ed8\u4e0e\u306e\u6709\u7121\u3082\u3059\u3079\u3066\u8003\u616e\u3057\u305fOrigin\u306e\u512a\u5148\u9806\u4f4d\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\uff08\u4e0a\u306e\u307b\u3046\u304c\u512a\u5148\u3055\u308c\u307e\u3059\u2060\uff09\u2060\u3002<\/p>\n<p>Transition Origin<br \/>\nUser-Agent Origin\uff08!important\uff09<br \/>\nUser Origin\uff08!important\uff09<br \/>\nAuthor Origin\uff08!important\uff09<br \/>\nAnimation Origin<br \/>\nAuthor Origin<br \/>\nUser Origin<br \/>\nUser-Agent Origin<\/p>\n<p id=\"gh1T5x57K9\">transition\u3078\u306e\u6307\u5b9a\u306fTransition Origin\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002Transition Origin\u306f!important\u304c\u4ed8\u4e0e\u3055\u308c\u305f\u3069\u306eOrigin\u3088\u308a\u3082\u512a\u5148\u9806\u4f4d\u3067\u4e0a\u56de\u308b\u305f\u3081\u3001\u4f8b\u5916\u7684\u306b\u5236\u5fa1\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p id=\"ghLi5XgomS\">\u666e\u6bb5\u306e\u958b\u767a\u306b\u304a\u3044\u3066User-Agent Origin\u306e\u30b9\u30bf\u30a4\u30eb\u3067\u4ed8\u4e0e\u3055\u308c\u305f!important\u3092\u610f\u8b58\u3059\u308b\u3053\u3068\u306f\u305d\u308c\u307b\u3069\u591a\u304f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30d6\u30e9\u30a6\u30b6\u5074\u304c\u6319\u52d5\u3092\u62c5\u4fdd\u3057\u305f\u3044\u3082\u306e\u306b\u3064\u3044\u3066\u306f!important\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u70b9\u3092\u899a\u3048\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>Context\u3068!important<\/p>\n<p id=\"ghebLYXSrj\">Context\u306b\u304a\u3044\u3066\u3001:host\u64ec\u4f3c\u30af\u30e9\u30b9\u3067\u306e\u30b9\u30bf\u30a4\u30eb\u6307\u5b9a\u3088\u308a\u3082\u3001\u5916\u90e8\u304b\u3089\u306e\u30b9\u30bf\u30a4\u30eb\u6307\u5b9a\u304c\u512a\u5148\u3055\u308c\u308b\u65e8\u306e\u89e3\u8aac\u3092\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u3053\u3067\u3082!important\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u306f\u512a\u5148\u9806\u4f4d\u304c\u9006\u8ee2\u3057\u307e\u3059\u3002<\/p>\n<p id=\"ghbgMCjq7Z\">Context\u306e\u4f8b\u3067\u6319\u3052\u305f\u30b3\u30fc\u30c9\u3092\u30d9\u30fc\u30b9\u306b\u3001\u3059\u3079\u3066\u306e\u30b9\u30bf\u30a4\u30eb\u306b!important\u3092\u4ed8\u4e0e\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>my-element {<br \/>\n  display: inline-block !important;<br \/>\n  border: 5px dashed blue !important;<br \/>\n  padding: 16px !important;<br \/>\n}<\/p>\n<p>my-element&gt;<br \/>\n  template shadowrootmode=&#8221;closed&#8221;&gt;<br \/>\n    style&gt;<br \/>\n      :host {<br \/>\n        display: inline-block !important;<br \/>\n        border: 1px solid black !important;<br \/>\n        padding: 8px !important;<br \/>\n      }<br \/>\n    style&gt;<br \/>\n    div&gt;Shadow DOM TEXTdiv&gt;<br \/>\n  template&gt;<br \/>\nmy-element&gt;<\/p>\n<p>\u56f39 Shadow Host\u3078\u306e\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u306b!important\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u4f8b<br \/>\n<img src=\"https:\/\/www.wacoca.com\/news\/wp-content\/uploads\/2024\/12\/shadow-dom-4.png\" alt=\"\" decoding=\"async\" loading=\"lazy\" width=\"580\" height=\"178\"\/><\/p>\n<p id=\"gh9eyLVjLl\">\u3068\u3082\u306b!important\u3092\u4ed8\u4e0e\u3057\u307e\u3057\u305f\u304c\u3001:host\u64ec\u4f3c\u30af\u30e9\u30b9\u306e\u30b9\u30bf\u30a4\u30eb\u304c\u512a\u5148\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u3064\u307e\u308a\u3001:host\u64ec\u4f3c\u30af\u30e9\u30b9\u3067\u306e\u30b9\u30bf\u30a4\u30eb\u6307\u5b9a\u306b\u304a\u3044\u3066!important\u3092\u4ed8\u4e0e\u3059\u308b\u3068\u3001\u5916\u90e8\u304b\u3089\u306e\u30b9\u30bf\u30a4\u30eb\u6307\u5b9a\u3092\u7121\u52b9\u5316\u3067\u304d\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<p id=\"gh23u9JjSD\">Shadow DOM\u306b\u304a\u3044\u3066\u78ba\u5b9f\u306b\u4fdd\u8a3c\u3057\u305f\u3044\u8981\u4ef6\u304c\u3042\u308b\u5834\u5408\u306b\u3001:host\u64ec\u4f3c\u30af\u30e9\u30b9\u3068!important\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u5916\u90e8\u304b\u3089\u306e\u4e0a\u66f8\u304d\u3092\u6291\u5236\u3057\u3001\u63d0\u4f9b\u6642\u306b\u671f\u5f85\u3059\u308b\u8868\u793a\u3092\u62c5\u4fdd\u3059\u308b\u3001\u3068\u3044\u3063\u305f\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>Cascade Layers\u3068!important<\/p>\n<p id=\"gh9saLvFUV\">Cascade Layers\u306b\u304a\u3044\u3066\u3082\u3001!important\u304c\u4ed8\u4e0e\u3055\u308c\u305f\u30b9\u30bf\u30a4\u30eb\u306b\u304a\u3044\u3066\u306f\u30ec\u30a4\u30e4\u30fc\u306e\u512a\u5148\u9806\u4f4d\u304c\u9006\u8ee2\u3057\u307e\u3059\u3002<\/p>\n<p id=\"ghclwjyQz5\">Cascade Layers\u306f\u305d\u3082\u305d\u3082\u300cOrigin\u9593\u306e\u512a\u5148\u9806\u4f4d\u76f8\u5f53\u306e\u4ed5\u7d44\u307f\u3092\u3001\u5358\u4e00\u306eOrigin\u5185\u3067\u72ec\u81ea\u306b\u5b9a\u7fa9\u53ef\u80fd\u3068\u3059\u308b\u300d\u3068\u3044\u3063\u305f\u6a5f\u80fd\u3067\u3042\u308b\u5074\u9762\u3092\u6301\u3061\u3001\u4ed5\u69d8\u306b\u304a\u3044\u3066\u3082\u6b21\u306e\u3088\u3046\u306b\u8a00\u53ca\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p id=\"gh7dREN0qL\">In the same way that cascade origins provide a balance of power between user and author styles, cascade layers provide a structured way to organize and balance concerns within a single origin.<\/p>\n<p id=\"ghe6XMkg6_\">Origin\u306e\u4ed5\u69d8\u306b\u304a\u3044\u3066!important\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u306f\u512a\u5148\u9806\u4f4d\u304c\u9006\u8ee2\u3057\u3001\u30d9\u30fc\u30b9\u3068\u306a\u308bUser-Agent Origin\u304c\u512a\u5148\u3055\u308c\u308b\u65e8\u306e\u89e3\u8aac\u3092\u3057\u307e\u3057\u305f\u304c\u3001Cascade Layers\u306b\u304a\u3044\u3066\u3082\u3053\u308c\u3092\u8e0f\u8972\u3059\u308b\u3088\u3046\u306a\u4ed5\u69d8\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p id=\"gh7hVuhRaS\">\u901a\u5e38\u3001\u3088\u308a\u5f8c\u306b\u5ba3\u8a00\u3055\u308c\u305f\u30ec\u30a4\u30e4\u30fc\u304c\u512a\u5148\u3055\u308c\u307e\u3059\u304c\u3001!important\u304c\u4ed8\u4e0e\u3055\u308c\u305f\u30b9\u30bf\u30a4\u30eb\u306b\u304a\u3044\u3066\u306f\u3001\u3088\u308a\u5148\u306b\u5ba3\u8a00\u3055\u308c\u305f\u30ec\u30a4\u30e4\u30fc\u306e\u307b\u3046\u304c\u512a\u5148\u3055\u308c\u307e\u3059\u3002\u6697\u9ed9\u306e\u30ec\u30a4\u30e4\u30fc\u306a\u3069\u3082\u52a0\u5473\u3057\u3066\u3059\u3079\u3066\u3092\u5217\u6319\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u512a\u5148\u9806\u4f4d\u3068\u306a\u308a\u307e\u3059\uff08\u4e0a\u306e\u307b\u3046\u304c\u512a\u5148\u3055\u308c\u307e\u3059\u2060\uff09\u2060\u3002<\/p>\n<p>\u3088\u308a\u5148\u306b\u5ba3\u8a00\u3055\u308c\u305f\u30ec\u30a4\u30e4\u30fc\uff08!important\uff09<br \/>\n\u3088\u308a\u5f8c\u306b\u5ba3\u8a00\u3055\u308c\u305f\u30ec\u30a4\u30e4\u30fc\uff08!important\uff09<br \/>\n\u6697\u9ed9\u306e\u30ec\u30a4\u30e4\u30fc\uff08!important\uff09<br \/>\n\u6697\u9ed9\u306e\u30ec\u30a4\u30e4\u30fc<br \/>\n\u3088\u308a\u5f8c\u306b\u5ba3\u8a00\u3055\u308c\u305f\u30ec\u30a4\u30e4\u30fc<br \/>\n\u3088\u308a\u5148\u306b\u5ba3\u8a00\u3055\u308c\u305f\u30ec\u30a4\u30e4\u30fc<\/p>\n<p id=\"gh5lj1wKNx\">\u6b21\u306e\u3088\u3046\u306a.text\u30af\u30e9\u30b9\u304c\u4ed8\u4e0e\u3055\u308c\u305f\u8981\u7d20\u306e\u30b9\u30bf\u30a4\u30eb\u5b9a\u7fa9\u3092\u4f8b\u306b\u8003\u3048\u3066\u307f\u308b\u3068\u3001\u6587\u5b57\u30ab\u30e9\u30fc\u306f\u901a\u5e38\u306e\u30ec\u30a4\u30e4\u30fc\u306e\u512a\u5148\u9806\u306b\u5f93\u3044black\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u304c\u3001\u6587\u5b57\u30b5\u30a4\u30ba\u306b\u3064\u3044\u3066\u306f!important\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u30ec\u30a4\u30e4\u30fc\u306e\u512a\u5148\u9806\u4f4d\u304c\u9006\u8ee2\u3057\u3001\u6700\u3082\u6700\u521d\u306b\u5ba3\u8a00\u3055\u308c\u305f\u30ec\u30a4\u30e4\u30fc\u5185\u306e14px\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>@layer layer1, layer2, layer3;<\/p>\n<p>.text {<br \/>\n  color: black;<br \/>\n  font-size: 12px !important;<br \/>\n}<\/p>\n<p>@layer layer1 {<br \/>\n  .text {<br \/>\n    color: red;<br \/>\n    font-size: 14px !important;<br \/>\n  }<br \/>\n}<br \/>\n@layer layer2 {<br \/>\n  .text {<br \/>\n    color: blue;<br \/>\n    font-size: 16px !important;<br \/>\n  }<br \/>\n}<br \/>\n@layer layer3 {<br \/>\n  .text {<br \/>\n    color: green;<br \/>\n    font-size: 18px !important;<br \/>\n  }<br \/>\n}<\/p>\n<p id=\"gh4M4nUY18\">\u5229\u7528\u30b1\u30fc\u30b9\u3068\u3057\u3066\u306f\u3001User-Agent Origin\u3067\u306e!important\u5ba3\u8a00\u306e\u3088\u3046\u306b\u3001\u5f8c\u7d9a\u306e\u30ec\u30a4\u30e4\u30fc\u306b\u4e0a\u66f8\u304d\u3055\u308c\u305f\u304f\u306a\u3044\u30b9\u30bf\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u306e!important\u306e\u4ed8\u4e0e\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<p id=\"gh35Dp8NYk\">\u3057\u304b\u3057\u3001\u3053\u308c\u306f\u9069\u7528\u9806\u5e8f\u306e\u4e2d\u3067\u3082\u304b\u306a\u308a\u5f37\u3044\u5ba3\u8a00\u3068\u306a\u308a\u307e\u3059\u3002\u3082\u3068\u3082\u3068!important\u81ea\u4f53\u3001\u3080\u3084\u307f\u306b\u5229\u7528\u3059\u3079\u304d\u3082\u306e\u3067\u306f\u306a\u3044\u3067\u3059\u304c\u3001Cascade Layers\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u5834\u5408\u306f\u3055\u3089\u306b\u614e\u91cd\u306b\u3059\u3079\u304d\u3067\u3057\u3087\u3046\u3002\u4eee\u306b\u3001\u6700\u521d\u306b\u660e\u793a\u7684\u306b\u5ba3\u8a00\u3057\u305f\u30d9\u30fc\u30b9\u3068\u306a\u308b\u30ec\u30a4\u30e4\u30fc\u4e0a\u3067!important\u3092\u4ed8\u4e0e\u3057\u3066\u3057\u307e\u3046\u3068\u3001\u6697\u9ed9\u7684\u306a\u30ec\u30a4\u30e4\u30fc\u3092\u542b\u3080\u4ed6\u306e\u3044\u305a\u308c\u306e\u30ec\u30a4\u30e4\u30fc\u3067\u3082\u512a\u5148\u9806\u4f4d\u3067\u4e0a\u56de\u308b\u3053\u3068\u306f\u4e0d\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>@layer layer1, layer2, layer3;<\/p>\n<p>.text {<br \/>\n  color: black;<br \/>\n}<\/p>\n<p>@layer layer1 {<br \/>\n  .text {<\/p>\n<p>    color: red !important;<br \/>\n  }<br \/>\n}<br \/>\n@layer layer2 {<br \/>\n  .text {<br \/>\n    color: blue;<br \/>\n  }<br \/>\n}<br \/>\n@layer layer3 {<br \/>\n  .text {<br \/>\n    color: green;<br \/>\n  }<br \/>\n}<\/p>\n<p id=\"gheLTXstJ0\">\u3053\u308c\u3092\u4e0a\u66f8\u304d\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u540c\u3058\u30ec\u30a4\u30e4\u30fc\u5185\u3067\u5148\u306b!important\u3092\u4ed8\u4e0e\u3057\u3066\u5ba3\u8a00\u3059\u308b\u304b\u3001\u65b0\u3057\u304f\u5148\u306b\u5ba3\u8a00\u3059\u308b\u30ec\u30a4\u30e4\u30fc\u3092\u8ffd\u52a0\u3057\u3066!important\u3092\u4ed8\u4e0e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u5bb9\u6613\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3082\u3057!important\u3092\u4ed8\u4e0e\u3057\u305f\u304f\u306a\u3063\u305f\u969b\u306b\u306f\u3001\u4eca\u307e\u3067\u4ee5\u4e0a\u306b\u300c\u672c\u5f53\u306b\u5fc5\u8981\u304b\uff1f\u300d\u3092\u843d\u3061\u7740\u3044\u3066\u691c\u8a0e\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u3068\u3081<\/p>\n<p id=\"ghdTt4ubRk\">\u5b9f\u969b\u306e\u3068\u3053\u308dCSS\u306e\u9069\u7528\u9806\u5e8f\u306b\u3064\u3044\u3066\u306f\u96f0\u56f2\u6c17\u3067\u7406\u89e3\u3057\u3066\u3044\u305f\u65b9\u3082\u591a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u6398\u308a\u4e0b\u3052\u3066\u307f\u308b\u3068\u69d8\u3005\u306a\u4ed5\u69d8\u304c\u7d61\u307f\u5408\u3044\u5224\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u5e83\u304f\u77e5\u3089\u308c\u3066\u3044\u308b\u8a73\u7d30\u5ea6\u306a\u3069\u306e\u77e5\u8b58\u306f\u3001\u9069\u7528\u9806\u5e8f\u306b\u304a\u3044\u3066\u3082\u3054\u304f\u4e00\u90e8\u306e\u8a71\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002\u307e\u305f\u3001!important\u306e\u7279\u6b8a\u306a\u6319\u52d5\u3092\u77e5\u3089\u305a\u306b\u5229\u7528\u3059\u308b\u3068\u3001\u610f\u56f3\u305b\u305a\u4e0a\u66f8\u304d\u4e0d\u53ef\u80fd\u306a\u30b9\u30bf\u30a4\u30eb\u3092\u751f\u307f\u51fa\u3057\u3066\u3057\u307e\u3046\u306a\u3069\u3001\u5384\u4ecb\u306a\u3053\u3068\u306b\u306a\u308a\u304b\u306d\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001Cascade Sorting Order\u306e\u4ed5\u69d8\u304b\u3089\u7406\u89e3\u3057\u3066\u3044\u308b\u3068\u3001\u30c8\u30ea\u30c3\u30ad\u30fc\u306a\u6319\u52d5\u306b\u51fa\u4f1a\u3063\u305f\u3068\u3057\u3066\u3082\u9a5a\u304f\u3053\u3068\u306a\u304f\u5bfe\u51e6\u3067\u304d\u305f\u308a\u3001\u305d\u3082\u305d\u3082\u554f\u984c\u81ea\u4f53\u3092\u56de\u907f\u3067\u304d\u308b\u8a2d\u8a08\u3092\u884c\u3046\u3053\u3068\u3082\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p id=\"gh2h93ebmQ\">\u79c1\u500b\u4eba\u304cCascade Sorting Order\u306b\u3064\u3044\u3066\u8abf\u3079\u305f\u6700\u521d\u306e\u304d\u3063\u304b\u3051\u306f\u300c!important\u3067\u3082\u4e0a\u66f8\u304d\u3067\u304d\u306a\u3044\u30b9\u30bf\u30a4\u30eb\u3063\u3066\u3042\u308b\u306e\u3060\u308d\u3046\u304b\uff1f\u300d\u3068\u3044\u3046\u5358\u7d14\u306a\u7591\u554f\u304b\u3089\u3067\u3057\u305f\u304c\u3001\u305d\u306e\u5f8cCSS Cascading and Inheritance Level 6\u3092\u8aad\u3093\u3067\u3044\u308b\u3046\u3061\u306b\u3001\u4eca\u307e\u3067\u81ea\u5206\u304c\u77e5\u3089\u306a\u304b\u3063\u305f\u4ed5\u69d8\u304c\u591a\u304f\u3042\u308b\u3053\u3068\u306b\u6c17\u3065\u304d\u307e\u3057\u305f\u3002\u4ed5\u69d8\u3092\u8aad\u3080\u3053\u3068\u3067\u5f97\u3089\u308c\u308b\u65b0\u3057\u3044\u77e5\u898b\u306f\u78ba\u5b9f\u306b\u5b58\u5728\u3057\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u8208\u5473\u304c\u3042\u308b\u6a5f\u80fd\u304c\u3042\u308c\u3070\u3001\u307f\u306a\u3055\u3093\u5c11\u3057\u6df1\u304f\u307e\u3067\u6f5c\u3063\u3066\u4ed5\u69d8\u3092\u8fbf\u3063\u3066\u307f\u308b\u306e\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p id=\"ghaHIyWpJb\">\u3055\u3066\u3001\u51686\u56de\u3067\u304a\u9001\u308a\u3057\u3066\u304d\u307e\u3057\u305fCSS Modern Features\u3067\u3059\u304c\u3001\u3053\u308c\u306b\u3066\u7d42\u4e86\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u307e\u3067\u304a\u4ed8\u304d\u5408\u3044\u9802\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\uff01<\/p>\n<p id=\"ghe0W0Or5M\">\u6b21\u56de\u304b\u3089\u306e\u300c\u4e57\u308a\u3053\u306a\u305b\uff01\u30e2\u30c0\u30f3\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u300d\u306f\u3001\u79c1\u3068\u540c\u3058\u30b5\u30a4\u30dc\u30a6\u30ba \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u30c1\u30fc\u30e0\u306e\u30e1\u30f3\u30d0\u30fc\u304b\u3089\u3001\u30c6\u30fc\u30de\u3092\u5909\u3048\u3066JavaScript\u306e\u30e2\u30c0\u30f3\u6a5f\u80fd\u3092\u4e2d\u5fc3\u306b\u65b0\u30b7\u30ea\u30fc\u30ba\u3067\u306e\u9023\u8f09\u304a\u5c4a\u3051\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002\u3059\u3053\u3057\u6642\u9593\u3092\u304a\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u304a\u697d\u3057\u307f\u306b\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01 \u30b5\u30a4\u30dc\u30a6\u30ba \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u30c1\u30fc\u30e0\u306e\u9ea6\u5cf6\u3067\u3059\u3002 CSS Modern Features\u3001\u6700\u7d42\u56de\u3068\u306a\u308b\u4eca\u56de\u306e\u30c6\u30fc\u30de\u306fCascade Sorting Order\u3067\u3059\u3002 CSS\u9069\u7528\u9806\u5e8f\u3092\u69cb\u6210\u3059\u308b\u4ed5\u69d8\u306e\u5897<\/p>\n","protected":false},"author":2,"featured_media":2329568,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[762827],"tags":[250430,770288,763397,762834,762833,521918,162246,770289,763396,2662,762832],"class_list":{"0":"post-2329567","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-science-technology","8":"tag-css","9":"tag-front-end","10":"tag-gihyo-jp","11":"tag-science-technology","12":"tag-science-news","13":"tag-technology-news","14":"tag-162246","15":"tag-770289","16":"tag-763396","17":"tag-2662","18":"tag-762832"},"share_on_mastodon":{"url":"https:\/\/wakoka.com\/@news\/113682141741139067","error":""},"_links":{"self":[{"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/posts\/2329567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/comments?post=2329567"}],"version-history":[{"count":0,"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/posts\/2329567\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/media\/2329568"}],"wp:attachment":[{"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/media?parent=2329567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/categories?post=2329567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/tags?post=2329567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}