{"id":2497,"date":"2025-07-28T01:48:05","date_gmt":"2025-07-28T01:48:05","guid":{"rendered":"https:\/\/satokotadesign.com\/blog\/?p=2497"},"modified":"2025-07-28T01:48:05","modified_gmt":"2025-07-28T01:48:05","slug":"css_property","status":"publish","type":"post","link":"https:\/\/satokotadesign.com\/blog\/css_property\/","title":{"rendered":"@property\u3067CSS\u5909\u6570\u306b\u578b\u3068\u521d\u671f\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\uff5c\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5bfe\u5fdc\u3068\u6d3b\u7528\u4e8b\u4f8b"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01\u9759\u5ca1\u770c\u6d5c\u677e\u5e02\u3067WEB\u30c7\u30b6\u30a4\u30ca\u30fc\u3092\u3057\u3066\u3044\u307e\u3059\u5c0f\u7027\u3067\u3059\u3002<br \/>\nCSS\u5909\u6570\uff08\u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\uff09\u3092\u4f7f\u3044\u3053\u306a\u3057\u3066\u3044\u308b\u65b9\u306f\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001<span class=\"sc_marker-animation\">\u300c\u5024\u306e\u578b\u300d\u3084\u300c\u521d\u671f\u5024\u300d\u307e\u3067\u7ba1\u7406\u3067\u304d\u308b\u3053\u3068\u306f\u3054\u5b58\u3058\u3067\u3059\u304b\uff1f<\/span><\/p>\n<p>\u5f93\u6765\u306eCSS\u5909\u6570\u306f\u81ea\u7531\u5ea6\u304c\u9ad8\u3044\u53cd\u9762\u3001\u60f3\u5b9a\u5916\u306e\u5024\u304c\u4ee3\u5165\u3055\u308c\u3066\u3082\u30a8\u30e9\u30fc\u306b\u306a\u3089\u306a\u3044\u3068\u3044\u3046\u8ab2\u984c\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3057\u304b\u3057\u3001@property\u30eb\u30fc\u30eb\u3092\u4f7f\u3048\u3070\u3001<span class=\"sc_marker-animation\">CSS\u5909\u6570\u306b\u578b\u3084\u521d\u671f\u5024\u3001\u7d99\u627f\u8a2d\u5b9a\u3092\u6301\u305f\u305b\u308b\u3053\u3068\u304c\u53ef\u80fd<\/span>\u306b\u306a\u308a\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3084\u30c6\u30fc\u30de\u5207\u308a\u66ff\u3048\u306e\u4fe1\u983c\u6027\u304c\u3050\u3063\u3068\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001@property\u306e\u57fa\u672c\u304b\u3089\u5b9f\u7528\u4f8b\u3001\u6ce8\u610f\u70b9\u307e\u3067\u3001\u5b9f\u6848\u4ef6\u3067\u4f7f\u3048\u308b\u30ec\u30d9\u30eb\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3 class=\"sc_heading bborder b blue\"><span class=\"sc_title\">@property\u3068\u306f\uff1f<\/span><\/h3>\n<p>@property\u306f\u3001CSS\u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u5bfe\u3057\u3066\u4ee5\u4e0b\u306e\u60c5\u5831\u3092\u5ba3\u8a00\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<div class=\"sc_designlist ul fa_check blue\">\n<ul>\n<li>\u5024\u306e\u578b\uff08color, length, number \u306a\u3069\uff09<\/li>\n<li>\u521d\u671f\u5024\uff08\u5909\u6570\u672a\u5b9a\u7fa9\u6642\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\uff09<\/li>\n<li>\u7d99\u627f\u3059\u308b\u304b\u3069\u3046\u304b\uff08inherit\uff09<\/li>\n<\/ul>\n<\/div>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u578b\u4ed8\u304dCSS\u5909\u6570\u3092\u6271\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3084\u8907\u96d1\u306aUI\u3067\u3082\u5b89\u5168\u306b\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3 class=\"sc_heading bborder b blue\"><span class=\"sc_title\">\u57fa\u672c\u69cb\u6587\u3068\u30b5\u30f3\u30d7\u30eb<\/span><\/h3>\n<pre class=\"line-numbers\"><code class=\"language-css\">@property --accent-color {\r\n  syntax: '&lt;color&gt;'; \r\n  inherits: false; \r\n  initial-value: #ff6347; \r\n}\r\n.box { \r\n  background: var(--accent-color); \r\n} <\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f --accent-color \u3068\u3044\u3046\u5909\u6570\u306b<br \/>\n\u8272\u578b\u30fb\u7d99\u627f\u306a\u3057\u30fb\u521d\u671f\u5024#ff6347 \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3 class=\"sc_heading bborder b blue\"><span class=\"sc_title\">\u578b\u6307\u5b9a\u306e\u30e1\u30ea\u30c3\u30c8<\/span><\/h3>\n<p>CSS\u5909\u6570\u306b\u578b\u3092\u4e0e\u3048\u308b\u3053\u3068\u3067\u3001\u30c8\u30e9\u30f3\u30b8\u30b7\u30e7\u30f3\u3084\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u8272\u3092\u30d5\u30a7\u30fc\u30c9\u3055\u305b\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3082\u7c21\u5358\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-css\">@keyframes colorFade { \r\nfrom { \r\n--accent-color: #ff6347; \r\n} \r\nto { \r\n--accent-color: #1e90ff;\r\n } \r\n} \r\n.box { \r\n animation: colorFade 3s infinite alternate;\r\n background: var(--accent-color); \r\n} <\/code><\/pre>\n<p>\u578b\u6307\u5b9a\u304c\u306a\u3044\u5834\u5408\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u88dc\u9593\u304c\u3067\u304d\u305a\u30b8\u30e3\u30f3\u30d7\u3059\u308b\u3060\u3051\u306e\u5909\u5316\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<h3 class=\"sc_heading bborder b blue\"><span class=\"sc_title\">\u578b\u306e\u7a2e\u985e\u3068\u5fdc\u7528<\/span><\/h3>\n<p>syntax \u3067\u306f\u4ee5\u4e0b\u306e\u578b\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"sc_designlist ol radius solid blue\">\n<ol>\n<li>&lt;length&gt;\uff1apx, em, rem \u306a\u3069\u306e\u9577\u3055<\/li>\n<li>&lt;color&gt;\uff1a\u8272\u6307\u5b9a\uff08#hex, rgb, hsl\uff09<\/li>\n<li>&lt;number&gt;\uff1a\u5358\u4f4d\u306a\u3057\u306e\u6570\u5024<\/li>\n<li>&lt;percentage&gt;\uff1a%\u5024<\/li>\n<li>&lt;angle&gt;\uff1adeg, rad \u306a\u3069\u306e\u89d2\u5ea6<\/li>\n<\/ol>\n<\/div>\n<p>\u3053\u306e\u4ed5\u7d44\u307f\u3092\u4f7f\u3048\u3070\u3001<\/p>\n<div class=\"sc_designlist ul fa_check blue\">\n<ul>\n<li>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u53ef\u80fd\u306a\u30c6\u30fc\u30de\u30ab\u30e9\u30fc<\/li>\n<li>\u30b9\u30e0\u30fc\u30ba\u306b\u5909\u5316\u3059\u308b\u89d2\u5ea6\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/li>\n<li>\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306b\u5909\u5316\u3059\u308b\u9577\u3055\u8abf\u6574<\/li>\n<\/ul>\n<\/div>\n<p>\u3068\u3044\u3063\u305f\u5b9f\u88c5\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"sc_heading bborder b blue\"><span class=\"sc_title\">\u30d6\u30e9\u30a6\u30b6\u5bfe\u5fdc\u3068\u30d5\u30a9\u30fc\u30eb\u30d0\u30c3\u30af<\/span><\/h3>\n<p>2025\u5e74\u73fe\u5728\u3001@property\u306fChrome\/Edge\/Safari\u3067\u5bfe\u5fdc\u6e08\u307f\u3067\u3059\u304c\u3001Firefox\u306f\u672a\u5bfe\u5fdc\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u30d5\u30a9\u30fc\u30eb\u30d0\u30c3\u30af\u3068\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u901a\u5e38\u306eCSS\u5909\u6570\u3068\u4f75\u7528\u3059\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-css\">:root { \r\n--accent-color: #ff6347; \/* fallback *\/ \r\n} \r\n@property --accent-color { \r\n\u3000syntax: '&lt;color&gt;'; \r\n\u3000inherits: false; \r\n\u3000initial-value: #ff6347;\r\n } <\/code><\/pre>\n<h2 class=\"sc_heading solid blue\"><span class=\"sc_title\">\u307e\u3068\u3081<\/span><\/h2>\n<p> \u578b\u4ed8\u304dCSS\u5909\u6570\u3067\u4fe1\u983c\u6027\u3068\u8868\u73fe\u529b\u3092\u30a2\u30c3\u30d7\uff01<br \/>\n<span class=\"fontbackground\" style=\"background:;\">@property <\/span>\u3092\u4f7f\u3048\u3070\u3001CSS\u5909\u6570\u306b\u578b\u3084\u521d\u671f\u5024\u3092\u6301\u305f\u305b\u3001 <span class=\"sc_marker-animation\">\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3084\u30c6\u30fc\u30de\u7ba1\u7406\u3092\u3088\u308a\u5b89\u5168\u304b\u3064\u67d4\u8edf\u306b\u5b9f\u88c5\u53ef\u80fd<\/span>\u3002<br \/>\n\u5c06\u6765\u7684\u306b\u5bfe\u5fdc\u30d6\u30e9\u30a6\u30b6\u304c\u5897\u3048\u308b\u3053\u3068\u3067\u3001Web\u30c7\u30b6\u30a4\u30f3\u306e\u8868\u73fe\u529b\u306f\u3055\u3089\u306b\u5e83\u304c\u308a\u307e\u3059\u3002\u65e9\u3081\u306b\u8a66\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u54c1\u8cea\u5411\u4e0a\u306b\u3082\u7e4b\u304c\u308a\u307e\u3059\u3002<br \/>\n<p>&nbsp;<\/p>\n<p><figure id=\"attachment_475\" aria-describedby=\"caption-attachment-475\" style=\"width: 1500px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/satokotadesign.com\/\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr.jpg\" alt=\"\u9759\u5ca1\u770c\u6d5c\u677e\u5e02\u3067\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u5236\u4f5c\u306a\u3089satokotadesign\" width=\"1500\" height=\"500\" class=\"size-full wp-image-475\" srcset=\"https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr.jpg 1500w, https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr-500x167.jpg 500w, https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr-1024x341.jpg 1024w, https:\/\/satokotadesign.com\/blog\/wp-content\/uploads\/2022\/10\/bnr-768x256.jpg 768w\" sizes=\"auto, (max-width: 1500px) 100vw, 1500px\" \/><\/a><figcaption id=\"caption-attachment-475\" class=\"wp-caption-text\"><a href=\"https:\/\/satokotadesign.com\/contact\/\" target=\"_blank\" rel=\"noopener\">\u9759\u5ca1\u770c\u6d5c\u677e\u5e02\u3067\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u5236\u4f5c\u306a\u3089satokotadesign<\/a><\/figcaption><\/figure><\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01\u9759\u5ca1\u770c\u6d5c\u677e\u5e02\u3067WEB\u30c7\u30b6\u30a4\u30ca\u30fc\u3092\u3057\u3066\u3044\u307e\u3059\u5c0f\u7027\u3067\u3059\u3002 CSS\u5909\u6570\uff08\u30ab\u30b9\u30bf\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3\uff09\u3092\u4f7f\u3044\u3053\u306a\u3057\u3066\u3044\u308b\u65b9\u306f\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u300c\u5024\u306e\u578b\u300d\u3084\u300c\u521d\u671f\u5024\u300d\u307e\u3067\u7ba1\u7406\u3067\u304d\u308b\u3053\u3068\u306f\u3054\u5b58\u3058\u3067\u3059\u304b\uff1f \u5f93\u6765\u306eCSS\u5909\u6570\u306f\u81ea\u7531\u5ea6\u304c\u9ad8\u3044\u53cd\u9762\u3001\u60f3\u5b9a\u5916\u306e\u2026<\/p>\n","protected":false},"author":1,"featured_media":2499,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[9],"class_list":["post-2497","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web","tag-css"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts\/2497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/comments?post=2497"}],"version-history":[{"count":1,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts\/2497\/revisions"}],"predecessor-version":[{"id":2498,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/posts\/2497\/revisions\/2498"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/media\/2499"}],"wp:attachment":[{"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/media?parent=2497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/categories?post=2497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/satokotadesign.com\/blog\/wp-json\/wp\/v2\/tags?post=2497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}