{"id":9112,"date":"2025-09-08T13:22:43","date_gmt":"2025-09-08T04:22:43","guid":{"rendered":"https:\/\/fastcoding.jp\/blog\/?p=9112"},"modified":"2025-09-19T14:59:30","modified_gmt":"2025-09-19T05:59:30","slug":"%e9%9b%a2%e8%84%b1%e7%8e%87%e3%82%92%e4%b8%8b%e3%81%92%e3%82%8b%ef%bc%81%e6%9c%80%e6%96%b0css%e3%81%a7%e5%ae%9f%e7%8f%be%e3%81%99%e3%82%8b%e8%aa%ad%e3%81%bf%e3%82%84%e3%81%99%e3%81%84web","status":"publish","type":"post","link":"https:\/\/fastcoding.jp\/blog\/all\/ui-ux\/%e9%9b%a2%e8%84%b1%e7%8e%87%e3%82%92%e4%b8%8b%e3%81%92%e3%82%8b%ef%bc%81%e6%9c%80%e6%96%b0css%e3%81%a7%e5%ae%9f%e7%8f%be%e3%81%99%e3%82%8b%e8%aa%ad%e3%81%bf%e3%82%84%e3%81%99%e3%81%84web\/","title":{"rendered":"\u96e2\u8131\u7387\u3092\u4e0b\u3052\u308b\uff01\u6700\u65b0CSS\u3067\u5b9f\u73fe\u3059\u308b\u201c\u8aad\u307f\u3084\u3059\u3044Web\u4f53\u9a13\u201d"},"content":{"rendered":"<div class=\"the_content\">\n<p>\u3053\u3093\u306b\u3061\u306f\uff01\u682a\u5f0f\u4f1a\u793e\u30d5\u30a1\u30b9\u30c8\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306eWeb\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u3001\u50cd\u304f\u304a\u304b\u3093\u3067\u3059\uff01<\/p>\n\n\n\n<p>\u6700\u8fd1\u3001Web\u30c7\u30b6\u30a4\u30f3\u306e\u6d41\u884c\u304c\u76ee\u307e\u3050\u308b\u3057\u304f\u5909\u308f\u3063\u3066\u3044\u307e\u3059\u3002\u7279\u306b\u3001AI\u304c\u691c\u7d22\u7d50\u679c\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u3001\u5358\u306b\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4e26\u3079\u308b\u3060\u3051\u3067\u306f\u901a\u7528\u3057\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002Web\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u306e\u7686\u3055\u3093\u3001\u3054\u81ea\u8eab\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u30e6\u30fc\u30b6\u30fc\u304c\u30da\u30fc\u30b8\u3092\u3059\u3050\u306b\u96e2\u308c\u3066\u3057\u307e\u3046\u60a9\u307f\u3092\u62b1\u3048\u3066\u3044\u307e\u305b\u3093\u304b\uff1f\u305d\u3093\u306a\u4e2d\u3001CSS\u3092\u4f7f\u3063\u305f\u53ef\u8aad\u6027\u306e\u5411\u4e0a\u304c\u3001UX\u306e\u6700\u9069\u5316\u3084\u96e2\u8131\u7387\u306e\u6539\u5584\u306b\u5f79\u7acb\u3064\u3053\u3068\u3092\u3054\u5b58\u3058\u3067\u3057\u3087\u3046\u304b\u3002\u4eca\u56de\u306f\u3001\u682a\u5f0f\u4f1a\u793e\u30d5\u30a1\u30b9\u30c8\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306eWeb\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u3067\u3042\u308b\u79c1\u304c\u3001\u6700\u65b0\u306eCSS\u6280\u8853\u3092\u6d3b\u7528\u3057\u3066\u4f5c\u308a\u51fa\u3059\u201c\u8aad\u307f\u3084\u3059\u3044Web\u4f53\u9a13\u201d\u3092\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u3053\u308c\u307e\u3067\u306e\u30c7\u30b6\u30a4\u30f3\u306e\u9650\u754c<\/h3>\n\n\n\n<p>Web\u5236\u4f5c\u306e\u73fe\u5834\u3067\u306f\u3001\u300c\u3082\u3063\u3068\u898b\u3084\u3059\u304f\u3057\u3066\u307b\u3057\u3044\u300d\u3068\u3044\u3046\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8981\u671b\u304c\u5897\u3048\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u4ee5\u524d\u306f\u7f8e\u3057\u3044\u30c7\u30b6\u30a4\u30f3\u3084\u52d5\u7684\u306a\u30a8\u30d5\u30a7\u30af\u30c8\u304c\u91cd\u8996\u3055\u308c\u307e\u3057\u305f\u304c\u3001\u305d\u308c\u3060\u3051\u3067\u306f\u30e6\u30fc\u30b6\u30fc\u3092\u5f15\u304d\u3064\u3051\u7d9a\u3051\u308b\u3053\u3068\u304c\u56f0\u96e3\u3067\u3059\u3002\u3084\u306f\u308a\u300c\u8aad\u307f\u3084\u3059\u3044\u300d\u3001\u300c\u30b3\u30f3\u30d0\u30fc\u30b8\u30e7\u30f3\u3057\u3084\u3059\u3044\u300d\u30da\u30fc\u30b8\u3067\u7121\u3051\u308c\u3070\u610f\u5473\u304c\u7121\u3044\u3067\u3059\u3088\u306d\u3002\u305d\u3053\u3067\u30c7\u30b6\u30a4\u30f3\u3092\u5927\u304d\u304f\u5909\u3048\u305a\u3001CSS\u3092\u6d3b\u7528\u3057\u305f\u53ef\u8aad\u6027\u306e\u5411\u4e0a\u304c\u91cd\u8981\u8996\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>CSS\u306e\u53ef\u8aad\u6027\u3092\u9ad8\u3081\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30b9\u30c8\u30ec\u30b9\u306a\u304f\u60c5\u5831\u3092\u53d7\u3051\u53d6\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u7d50\u679c\u3068\u3057\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u6c42\u3081\u308b\u30b3\u30f3\u30d0\u30fc\u30b8\u30e7\u30f3\u7387\u306e\u6539\u5584\u306b\u3082\u3064\u306a\u304c\u308a\u307e\u3059\u3002\u91cd\u8981\u306a\u306e\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u5feb\u9069\u306a\u4f53\u9a13\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u6539\u5584\u30dd\u30a4\u30f3\u30c8\u306e\u4e00\u4f8b\uff5e\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba\u3068\u884c\u9593<\/h3>\n\n\n\n<p>\u4f8b\u3048\u3070\u3042\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba\u3084\u884c\u9593\u3092\u52d5\u7684\u306b\u8abf\u6574\u3057\u307e\u3057\u305f\u3002\u30c7\u30b6\u30a4\u30f3\u306f\u5909\u3048\u305a\u306b\u3001\u3067\u3059\u3002\u305d\u306e\u7d50\u679c\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u3069\u306e\u30c7\u30d0\u30a4\u30b9\u304b\u3089\u898b\u3066\u3082\u540c\u69d8\u306b\u898b\u3084\u3059\u3044\u30da\u30fc\u30b8\u3092\u63d0\u4f9b\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">CSS\u898b\u76f4\u3057\u306e\u30b3\u30c4<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba\u3068\u884c\u9593\u306e\u898b\u76f4\u3057<\/strong><br>\u5c0f\u3055\u3059\u304e\u308b\u30d5\u30a9\u30f3\u30c8\u3084\u72ed\u3059\u304e\u308b\u884c\u9593\u306f\u8aad\u307f\u3065\u3089\u3055\u306e\u539f\u56e0\u3067\u3059\u3002rem\u5358\u4f4d\u3092\u5229\u7528\u3057\u305f\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba\u8a2d\u5b9a\u306f\u3001\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3\u306b\u6b20\u304b\u305b\u307e\u305b\u3093\u3002<br><\/li>\n\n\n\n<li><strong>\u6587\u5b57\u306e\u914d\u8272\u3068\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u306e\u8abf\u6574<\/strong><br>\u898b\u3084\u3059\u3044\u6587\u5b57\u8272\u306f\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3092\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002\u80cc\u666f\u8272\u3068\u30c6\u30ad\u30b9\u30c8\u8272\u306e\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u3092\u9069\u5207\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u8996\u8a8d\u6027\u3068\u8aad\u307f\u3084\u3059\u3055\u304c\u6539\u5584\u3055\u308c\u307e\u3059\u3002<br><\/li>\n\n\n\n<li><strong>\u4f59\u767d\u306e\u6d3b\u7528<\/strong><br>\u8a18\u4e8b\u3084\u30b3\u30f3\u30c6\u30f3\u30c4\u9593\u306b\u5341\u5206\u306a\u30b9\u30da\u30fc\u30b9\u3092\u8a2d\u3051\u308b\u3053\u3068\u3067\u3001\u8996\u899a\u7684\u306b\u4f59\u88d5\u3092\u6301\u305f\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u60c5\u5831\u304c\u6574\u7406\u3055\u308c\u3001\u4f1d\u308f\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">\u5177\u4f53\u7684\u306a\u66f8\u304d\u65b9\uff08\u4f8b\uff09<\/h4>\n\n\n\n<p>\u4ee5\u4e0b\u306b\u5177\u4f53\u7684\u306a\u5b9f\u88c5\u4f8b\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;article&gt;\n  &lt;h1&gt;\u8aad\u307f\u3084\u3059\u3044Web\u4f53\u9a13\u3092\u63d0\u4f9b\u3059\u308b\u65b9\u6cd5&lt;\/h1&gt;\n  &lt;p&gt;CSS\u3092\u6d3b\u7528\u3057\u3001\u52b9\u679c\u7684\u306b\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3092\u5411\u4e0a\u3055\u305b\u307e\u3057\u3087\u3046\u3002&lt;\/p&gt;\n&lt;\/article&gt;\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\narticle {\n  max-width: 600px;\n  margin: 0 auto;\n  padding: 1rem;\n  font-family: &#039;Segoe UI&#039;, Tahoma, Geneva, Verdana, sans-serif;\n  background-color: #f9f9f9;\n  color: #444;\n}\n\nh1 {\n  font-size: 2rem;\n  margin-bottom: 0.5rem;\n}\n\np {\n  font-size: 1rem;\n  line-height: 1.6;\n}\n<\/pre><\/div>\n\n\n<p>\u5b9f\u969b\u306b\u5f0a\u793e\u3067\u304a\u53d7\u3051\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a71\u3067\u3059\u304c\u3001\u3068\u3042\u308bEC\u30b5\u30a4\u30c8\u69d8\u306e\u6848\u4ef6\u3067\u306f\u3001\u5546\u54c1\u8aac\u660e\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u898b\u3084\u3059\u304f\u3059\u308b\u305f\u3081CSS\u3092\u898b\u76f4\u3057\u307e\u3057\u305f\u3002\u3082\u3068\u3082\u3068\u9ad8\u304b\u3063\u305f\u96e2\u8131\u7387\u304c\u3001\u30d5\u30a9\u30f3\u30c8\u3084\u8272\u5473\u3068\u884c\u9593\u3092\u6539\u5584\u3057\u305f\u7d50\u679c\u3001\u30b3\u30f3\u30d0\u30fc\u30b8\u30e7\u30f3\u7387\u304c15%\u5411\u4e0a\u3057\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u6ede\u5728\u6642\u9593\u308220%\u5ef6\u3073\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u6539\u5584\u30dd\u30a4\u30f3\u30c8\u306e\u4e00\u4f8b\uff5e\u914d\u8272\u3068\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8<\/h3>\n\n\n\n<p>\u300c\u306a\u3093\u3068\u306a\u304f\u8aad\u307f\u306b\u304f\u3044\u300d\u3092\u6700\u521d\u306b\u89e3\u6d88\u3059\u308b\u306e\u304c\u914d\u8272\u3067\u3059\u3002\u80cc\u666f\u3068\u6587\u5b57\u306e\u660e\u5ea6\u5dee\u304c\u8db3\u308a\u306a\u3044\u3068\u672c\u6587\u304c\u201c\u8584\u304f\u201d\u898b\u3048\u3001\u30ea\u30f3\u30af\u8272\u304c\u672c\u6587\u3068\u8fd1\u3044\u3068\u62bc\u305b\u308b\u5834\u6240\u304c\u5206\u304b\u308a\u307e\u305b\u3093\u3002\u307e\u305a\u306f\u672c\u6587\u30fb\u898b\u51fa\u3057\u30fb\u30ea\u30f3\u30af\u306e\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u3092\u6574\u3048\u3001<strong>\u201c\u8aad\u3080\u8ca0\u62c5\u3092\u8efd\u304f\u3059\u308b\u201d\u2192\u201c\u884c\u52d5\u306e\u8ff7\u3044\u3092\u6e1b\u3089\u3059\u201d<\/strong>\u306e\u9806\u306b\u5e95\u4e0a\u3052\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u203b\u3061\u306a\u307f\u306b\u304a\u5ba2\u69d8\u306b\u3088\u304f\u805e\u304b\u308c\u308b\u306e\u304c\u3001\u30da\u30fc\u30b8\u306e\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u306b\u306f\u3069\u3046\u3057\u305f\u3089\u3044\u3044\u306e\u304b\uff1f\u3068\u3044\u3046\u304a\u8a71\u3067\u3059\u3002\u5f0a\u793e\u306f\u3053\u3061\u3089\u306eChrome\u306e\u30c4\u30fc\u30eb\u3092\u304a\u52e7\u3081\u3057\u3066\u3044\u307e\u3059\u3002<br>Color Contrast Checker <a href=\"https:\/\/chromewebstore.google.com\/detail\/color-contrast-checker\/gbfgefkhkofclanlcgnhlbmfgjjomock?hl=en\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">https:\/\/chromewebstore.google.com\/detail\/color-contrast-checker\/gbfgefkhkofclanlcgnhlbmfgjjomock?hl=en<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">CSS\u898b\u76f4\u3057\u306e\u30b3\u30c4<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u306e\u76ee\u5b89\u306f <strong>\u672c\u6587 4.5:1 \u4ee5\u4e0a\uff0f\u898b\u51fa\u3057\u30fb\u5927\u6587\u5b57 3:1 \u4ee5\u4e0a<\/strong>\uff08WCAG \u306e\u4e00\u822c\u7684\u76ee\u5b89\uff09\u3002<\/li>\n\n\n\n<li>\u30ea\u30f3\u30af\u306f\u672c\u6587\u3068<strong>\u306f\u3063\u304d\u308a\u5dee<\/strong>\u3092\u3064\u3051\u3001hover\/focus \u3067\u201c\u62bc\u305b\u308b\u201d\u72b6\u614b\u3092\u4e00\u8cab\u3002<\/li>\n\n\n\n<li><code>prefers-color-scheme<\/code> \u3067\u30e9\u30a4\u30c8\uff0f\u30c0\u30fc\u30af\u3092\u5207\u66ff\u3048\u3002<\/li>\n\n\n\n<li>\u5f37\u8abf\u306f<strong>\u592a\u5b57\uff0b\u660e\u5ea6\u5dee<\/strong>\u304c\u57fa\u672c\u3002\u5f69\u5ea6\u3092\u4e0a\u3052\u3059\u304e\u308b\u3068\u75b2\u308c\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">\u5177\u4f53\u7684\u306a\u66f8\u304d\u65b9\uff08\u4f8b\uff09<\/h4>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n:root {\n  --bg: #fff; --text: #1b1b1b; --muted: #666;\n  --link: #0b66ff; --link-hover: #084bcc;\n}\n@media (prefers-color-scheme: dark) {\n  :root {\n    --bg: #111; --text: #e9e9e9; --muted: #aaa;\n    --link: #79a8ff; --link-hover: #a9c8ff;\n  }\n}\nbody { background: var(--bg); color: var(--text); }\nsmall, .meta { color: var(--muted); }\na {\n  color: var(--link);\n  text-decoration: underline;\n  text-underline-offset: 0.15em;\n  text-decoration-thickness: 0.08em;\n}\na:hover, a:focus {\n  color: var(--link-hover);\n  text-decoration-thickness: 0.12em;\n  outline: none;\n}\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\">\u5931\u6557\u3042\u308b\u3042\u308b<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5f69\u5ea6\u3092\u4e0a\u3052\u3059\u304e\u3066<strong>\u7729\u3057\u304f\u75b2\u308c\u308b<\/strong>\u914d\u8272\u306b\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30c7\u30b6\u30a4\u30f3\u3067\u898b\u3066\u3044\u308b\u3068\u304d\u306f\u304d\u308c\u3044\u3060\u306a\u30fc\u3063\u3066\u601d\u3063\u3066\u3082\u3001\u3084\u3063\u3071\u308a\u30da\u30fc\u30b8\u3067\u8aad\u3080\u3068\u306a\u308b\u3068\u9055\u3046\u3093\u3067\u3059\u3002<\/li>\n\n\n\n<li><code>:focus<\/code> \u306e\u53ef\u8996\u5316\u4e0d\u8db3\u3067<strong>\u30ad\u30fc\u30dc\u30fc\u30c9\u64cd\u4f5c\u3067\u8ff7\u5b50<\/strong>\u306b\u306a\u308b\u3053\u3068\u3082\u3088\u304f\u3042\u308b\u5931\u6557\u3067\u3059\u3002Web\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306b\u3001\u305f\u3068\u3048\u3070\u30b7\u30d5\u30c8\u30ad\u30fc\u3067\u30d5\u30a9\u30fc\u30ab\u30b9\u3092\u79fb\u52d5\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u308a\u3001\u30a8\u30f3\u30bf\u30fc\u3084\u30b9\u30da\u30fc\u30b9\u30ad\u30fc\u3067\u9078\u629e\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u306d\u3002\u3067\u3082\u4eca\u3069\u3053\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u3042\u308b\u304b\u3092\u660e\u78ba\u306b\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u64cd\u4f5c\u306e\u52a9\u3051\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u6539\u5584\u30dd\u30a4\u30f3\u30c8\u306e\u4e00\u4f8b\uff5e\u4f59\u767d\u3068\u60c5\u5831\u5bc6\u5ea6<\/h3>\n\n\n\n<p>\u6587\u5b57\u306e\u8a2d\u5b9a\u304c\u6574\u3063\u3066\u3044\u3066\u3082\u3001<strong>\u6bb5\u843d\u3084\u30d6\u30ed\u30c3\u30af\u9593\u306e\u201c\u9593\u201d<\/strong>\u304c\u8a70\u307e\u308a\u3059\u304e\u308b\u3068\u8996\u7dda\u306e\u4f11\u3080\u5834\u6240\u304c\u306a\u304f\u3001\u8aad\u307f\u98db\u3070\u3057\u304c\u5897\u3048\u307e\u3059\u3002\u9006\u306b\u5e83\u3059\u304e\u308b\u3068\u6563\u6f2b\u3067\u9060\u304f\u611f\u3058\u307e\u3059\u3002\u884c\u9577\u30fb\u6bb5\u843d\u9593\u30fb\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u9593\u306e\u4f59\u767d\u3092<strong>\u540c\u3058\u30b9\u30b1\u30fc\u30eb\u611f\u3067\u63c3\u3048\u308b<\/strong>\u3068\u3001\u81ea\u7136\u306a\u30c6\u30f3\u30dd\u3067\u8aad\u307f\u9032\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">CSS\u898b\u76f4\u3057\u306e\u30b3\u30c4<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u884c\u9577\u306f <strong>45\u201375ch<\/strong> \u3092\u76ee\u5b89\uff08\u65e5\u672c\u8a9e\u3067\u3082 <code>ch<\/code> \u57fa\u6e96\u306f\u6709\u52b9\uff09\u3002<\/li>\n\n\n\n<li>\u6bb5\u843d\u9593\u9694\u306f\u672c\u6587\u884c\u9593\u306e <strong>1.0\u20131.5\u500d<\/strong> \u3092\u76ee\u5b89\u3002<\/li>\n\n\n\n<li>\u898b\u51fa\u3057\u306f <strong>\u4e0a\u30de\u30fc\u30b8\u30f3\uff1e\u4e0b\u30de\u30fc\u30b8\u30f3<\/strong> \u3067\u584a\u306e\u5207\u308c\u76ee\u3092\u660e\u78ba\u306b\u3002<\/li>\n\n\n\n<li>8px \u7cfb\u306a\u3069<strong>\u30b9\u30da\u30fc\u30b9\u30b9\u30b1\u30fc\u30eb\u3092\u5909\u6570\u5316<\/strong>\u3057\u3066\u5168\u4f53\u7d71\u4e00\u3002<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">\u5177\u4f53\u7684\u306a\u66f8\u304d\u65b9\uff08\u4f8b\uff09<\/h4>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n:root {\n  --space-1: clamp(6px, .4vw, 8px);\n  --space-2: clamp(10px, .8vw, 16px);\n  --space-3: clamp(16px, 1.2vw, 24px);\n  --space-4: clamp(24px, 2vw, 32px);\n}\n.article {\n  max-width: 70ch;                 \/* \u884c\u9577\u3092\u201c\u6587\u5b57\u5e45\u201d\u57fa\u6e96\u3067\u5236\u5fa1 *\/\n  margin-inline: auto;\n  padding-inline: var(--space-2);\n}\np { margin-block: var(--space-2); }\nh2 { margin-block: var(--space-4) var(--space-2); }\nul, ol { margin-block: var(--space-2); padding-left: 1.1em; }\n.card + .card { margin-block-start: var(--space-3); }\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\"><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u5931\u6557\u3042\u308b\u3042\u308b<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f59\u767d\u3092\u5e83\u3052\u3059\u304e\u3066<strong>\u672c\u6587\u304c\u30d5\u30a1\u30fc\u30b9\u30c8\u30d3\u30e5\u30fc\u5916<\/strong>\u306b\u3067\u3061\u3083\u3046\u3002\u3002\u3002\u3002\u3053\u308c\u306f\u30c6\u30b9\u30c8\u3092\u91cd\u306d\u308b\u3057\u304b\u306a\u3044\u3093\u3067\u3059\u304c\u3001\u7279\u306b\u30d5\u30a1\u30fc\u30b9\u30c8\u30f4\u30e5\u30fc\u306e\u5909\u66f4\u306f\u30b5\u30a4\u30c8\u306e\u96e2\u8131\u7387\u306b\u3082\u5f71\u97ff\u3057\u3084\u3059\u3044\u306e\u3067\u6ce8\u610f\u3067\u3059\u3002<\/li>\n\n\n\n<li><code>max-width<\/code> \u3092 px \u56fa\u5b9a\u306b\u3057\u3066<strong>\u30c7\u30d0\u30a4\u30b9\u5dee\u3067\u5d29\u308c\u3066\u3057\u307e\u3046<\/strong>\u3002\u3053\u308c\u3082\u540c\u3058\u304f\u30c6\u30b9\u30c8\u3067\u78ba\u8a8d\u304c\u5fc5\u9808\u3067\u3059\u3002\u30c7\u30d0\u30a4\u30b9\u306b\u3088\u3063\u3066\u89e3\u50cf\u5ea6\u306f\u5168\u7136\u9055\u3046\u3057\u3001\u30d1\u30bd\u30b3\u30f3\u3060\u3063\u305f\u3089\u30a6\u30a3\u30f3\u30c9\u30a6\u30b5\u30a4\u30ba\u306e\u8abf\u6574\u3082\u3067\u304d\u308b\u307e\u3059\u304b\u3089\u306d\u3002\u3061\u306a\u307f\u306b\u3053\u3046\u3044\u3046\u6642\u306f\u3001<code>ch<\/code> \u3084 <code>clamp()<\/code> \u3068\u3044\u3063\u305f\u76f8\u5bfe\u7684\u306a\u5e45\u3092\u8a08\u7b97\u3059\u308bCSS\u3092\u4f7f\u3046\u3068\u4fbf\u5229\u3067\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u6539\u5584\u30dd\u30a4\u30f3\u30c8\u306e\u4e00\u4f8b\uff5e\u898b\u51fa\u3057\u968e\u5c64\u3068\u60c5\u5831\u8a2d\u8a08\uff08\u76ee\u6b21\/\u6bb5\u843d\u69cb\u9020\uff09<\/h3>\n\n\n\n<p>\u9577\u3044\u6587\u7ae0\u307b\u3069\u3001<strong>\u898b\u51fa\u3057\u306e\u968e\u5c64\u5dee<\/strong>\uff08H2\/H3\/H4\uff09\u3068<strong>\u5192\u982d\u306e\u8981\u70b9<\/strong>\u304c\u52b9\u304d\u307e\u3059\u3002\u7ae0\u306e\u6700\u521d\u306b\u8981\u70b9\u3092\u7f6e\u3044\u3066\u8f2a\u90ed\u3092\u898b\u305b\u3001\u672c\u6587\u306f\u77ed\u6bb5\u843d\uff0b\u7b87\u6761\u66f8\u304d\u3067\u30c6\u30f3\u30dd\u3088\u304f\u3002\u76ee\u6b21\u306f\u201c\u73fe\u5728\u5730\u201d\u3068\u201c\u79fb\u52d5\u5148\u201d\u304c\u5206\u304b\u308b\u30c7\u30b6\u30a4\u30f3\u306b\u3057\u3001<strong>\u8ff7\u3044\u306a\u304f\u8aad\u307f\u9032\u3081\u3089\u308c\u308b\u5c0e\u7dda<\/strong>\u3092\u6574\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">CSS\u898b\u76f4\u3057\u306e\u30b3\u30c4<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u898b\u51fa\u3057\u306f<strong>\u30b5\u30a4\u30ba\u30fb\u30a6\u30a8\u30a4\u30c8\u30fb\u4f59\u767d\u30fb\u7f6b\u7dda\/\u4e0b\u7dda<\/strong>\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u968e\u5c64\u5dee\u3092\u660e\u793a\u3002<\/li>\n\n\n\n<li>\u30bb\u30af\u30b7\u30e7\u30f3\u5192\u982d\u306b <strong>\u8981\u70b9\uff082\u20133\u6587\uff09<\/strong>\u3001\u672c\u6587\u306f\u77ed\u6bb5\u843d\uff0b\u7b87\u6761\u66f8\u304d\u4e2d\u5fc3\u3002<\/li>\n\n\n\n<li>\u76ee\u6b21\u30ea\u30f3\u30af\u306e hover\/focus \u3067<strong>\u8996\u8a8d\u6027\u3068\u64cd\u4f5c\u306e\u78ba\u4fe1<\/strong>\u3092\u9ad8\u3081\u308b\u3002<\/li>\n\n\n\n<li>\u898b\u51fa\u3057\u30d1\u30bf\u30fc\u30f3\u3092<strong>\u30c7\u30b6\u30a4\u30f3\u30b7\u30b9\u30c6\u30e0\u5316<\/strong>\u3057\u3066\u8a18\u4e8b\u9593\u306e\u30d6\u30ec\u3092\u9632\u6b62\u3002<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">\u5177\u4f53\u7684\u306a\u66f8\u304d\u65b9\uff08\u4f8b\uff09<\/h4>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nh2 {\n  font-size: clamp(22px, 2.2vw, 28px);\n  font-weight: 700;\n  border-bottom: 1px solid #eee;\n  padding-bottom: .35em;\n}\nh3 {\n  font-size: clamp(18px, 1.6vw, 22px);\n  font-weight: 700;\n  margin-block: 1.5em .75em;\n}\n.section-lead { color: #555; font-weight: 500; margin-block-end: .75em; }\n.toc a { display: block; padding: .4em .2em; text-decoration: none; }\n.toc a:hover, .toc a:focus { background: #f5f7ff; outline: none; }\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\"><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u5931\u6557\u3042\u308b\u3042\u308b<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>H2\/H3 \u306e\u5dee\u304c\u5c0f\u3055\u304f<strong>\u968e\u5c64\u304c\u5224\u5225\u3067\u304d\u306a\u3044<\/strong>\u554f\u984c\u3002\u30b9\u30bf\u30a4\u30eb\u3067\u3069\u3046\u898b\u305b\u308b\u304b\u306f\u8155\u306e\u898b\u305b\u6240\u306a\u304c\u3089\u3001H2\u3084H3\u30ec\u30d9\u30eb\u306f\u7d50\u69cb\u30d5\u30e9\u30c3\u30c8\u306b\u307f\u306a\u3055\u3093\u4f5c\u3089\u308c\u308b\u3053\u3068\u304c\u591a\u304f\u3066\u3001\u753b\u9762\u3067\u898b\u305f\u3068\u304d\u306b\u3069\u3063\u3061\u304c\u3069\u3063\u3061\uff1f\u307f\u305f\u3044\u306a\u3053\u3068\u304c\u7d50\u69cb\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u76ee\u6b21\u3060\u3051\u7528\u610f\u3057\u3066<strong>\u672c\u6587\u898b\u51fa\u3057\u306e\u8996\u8a8d\u6027<\/strong>\u304c\u5f31\u3044\u554f\u984c\u3002\u3053\u308c\u3082\u3088\u304f\u3042\u308b\u554f\u984c\u3067\u3001\u76ee\u6b21\u3092\u6700\u521d\u306b\u7f6e\u304d\u307e\u3057\u3087\u3046\u3068\u3044\u3046\u306e\u306fSEO\u3067\u3082AIO\u3067\u3082\u3088\u304f\u8a00\u308f\u308c\u308b\u6280\u3067\u3059\u304c\u3001\u305d\u3053\u306b\u6ce8\u76ee\u3057\u3059\u304e\u3066\u3001\u30da\u30fc\u30b8\u3092\u6700\u521d\u304b\u3089\u8aad\u3080\u4eba\u306e\u3053\u3068\u3092\u5fd8\u308c\u3061\u3083\u3046\u3001\u3001\u3001\u306a\u3093\u3066\u3053\u3068\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3002\u76ee\u6b21\u304c\u3042\u3063\u3066\u3082\u306a\u304f\u3066\u3082\u3001\u672c\u6587\u4e2d\u306e\u898b\u51fa\u3057\u306f\u3057\u3063\u304b\u308a\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h3>\n\n\n\n<p>CSS\u3092\u4f7f\u3063\u305f\u53ef\u8aad\u6027\u306e\u6539\u5584\u3068UX\u306e\u6700\u9069\u5316\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u96e2\u8131\u3092\u9632\u3050\u305f\u3081\u306b\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u30c7\u30b6\u30a4\u30f3\u5168\u4f53\u3092\u5909\u3048\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u3044\u307e\u3042\u308b\u30da\u30fc\u30b8\u306b\u3082\u6bd4\u8f03\u7684\u9069\u5fdc\u3057\u3084\u3059\u3044\u3093\u3067\u3059\u3002\u898b\u3084\u3059\u3044\u30c7\u30b6\u30a4\u30f3\u306f\u30e6\u30fc\u30b6\u30fc\u306b\u9577\u304f\u30b5\u30a4\u30c8\u306b\u3068\u3069\u307e\u308b\u6a5f\u4f1a\u3092\u63d0\u4f9b\u3057\u3001\u7d50\u679c\u3068\u3057\u3066\u30b3\u30f3\u30d0\u30fc\u30b8\u30e7\u30f3\u7387\u3092\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002\u65b0\u3057\u3044\u6b21\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u3001\u3044\u307e\u904b\u7528\u3057\u3066\u3044\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3082\u3001\u305c\u3072CSS\u3092\u898b\u76f4\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3069\u3046\u3084\u3063\u3066\u3084\u308b\u306e\uff1f\u3084\u308b\u6642\u9593\u304c\u7121\u3044\u3067\u3059\u3001\u3001\u3001\u3068\u304a\u60a9\u307f\u306e\u65b9\u306f\u3001\u3082\u3061\u308d\u3093\u5f0a\u793e\u307e\u3067<a href=\"https:\/\/fastcoding.jp\/contact\/?ad2=blog\" title=\"\">\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\uff01\uff01<\/a>\u3000\u5f0a\u793e\u306f\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u5c02\u9580\u5236\u4f5c\u4f1a\u793e\u3067\u3059\u306e\u3067\u3001\u4ed6\u306b\u3082\u3044\u308d\u3044\u308d\u3068\u30a2\u30a4\u30c7\u30a2\u304c\u3042\u308a\u307e\u3059\u3088\uff01<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\u30e6\u30fc\u30b6\u30fc\u304c\u96e2\u8131\u3059\u308b\u539f\u56e0\u306f\u300c\u8aad\u307f\u306b\u304f\u3055\u300d\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u672c\u8a18\u4e8b\u3067\u306fCSS\u3092\u6d3b\u7528\u3057\u3066\u53ef\u8aad\u6027\u3092\u9ad8\u3081\u3001UX\u3068\u30b3\u30f3\u30d0\u30fc\u30b8\u30e7\u30f3\u7387\u3092\u6539\u5584\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3002\u5b9f\u4f8b\u3084\u5177\u4f53\u7684\u306aCSS\u30b3\u30fc\u30c9\u3082\u63b2\u8f09\u3057\u3001\u3059\u3050\u306b\u5b9f\u8df5\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"author":12,"featured_media":9131,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[316,575],"tags":[33,317,31],"class_list":["post-9112","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ui-ux","category-html-css","tag-css","tag-ui-ux","tag-web"],"acf":[],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/09\/07ec8597827e06c2589fd66b3134ba6a.png","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/comments?post=9112"}],"version-history":[{"count":7,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9112\/revisions"}],"predecessor-version":[{"id":9146,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/9112\/revisions\/9146"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media\/9131"}],"wp:attachment":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media?parent=9112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/categories?post=9112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/tags?post=9112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}