{"id":8782,"date":"2025-05-02T12:33:26","date_gmt":"2025-05-02T03:33:26","guid":{"rendered":"https:\/\/fastcoding.jp\/blog\/?p=8782"},"modified":"2025-05-02T12:33:29","modified_gmt":"2025-05-02T03:33:29","slug":"web-direction-guide03","status":"publish","type":"post","link":"https:\/\/fastcoding.jp\/blog\/all\/info\/web-direction-guide03\/","title":{"rendered":"\u300cWeb\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u5fc5\u643a \u2500 \u73fe\u5834\u7d4c\u9a13\u304b\u3089\u5c0e\u3044\u305f\u201c\u30d5\u30ed\u30f3\u30c8\u5236\u4f5c \u5b8c\u5168\u30ac\u30a4\u30c9\u201d\u300d\u3000Vol.3\u3000CSS\u304c\u52b9\u304b\u306a\u3044\uff1f\u30d0\u30b0\u3058\u3083\u306a\u304f\u3066\u201c\u4ed5\u69d8\u901a\u308a\u201d\u306a\u6319\u52d5\u3068\u305d\u306e\u6b63\u4f53"},"content":{"rendered":"<div class=\"the_content\">\n<h2 class=\"wp-block-heading\">1. \u306f\u3058\u3081\u306b\uff1a\u300cCSS\u304c\u52b9\u3044\u3066\u306a\u3044\uff1f\u300d\u3068\u611f\u3058\u305f\u3068\u304d\u306b\u77e5\u3063\u3066\u307b\u3057\u3044\u3053\u3068<\/h2>\n\n\n\n<p>Web\u5236\u4f5c\u306e\u73fe\u5834\u3067\u306f\u3001\u3053\u3093\u306a\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u3088\u304f\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u300c\u3053\u306e\u8981\u7d20\u3001\u524d\u9762\u306b\u51fa\u3066\u3053\u306a\u3044\u3093\u3067\u3059\u304c\u300d<br>\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3082\u56fa\u5b9a\u3055\u308c\u306a\u3044\u3067\u3059\u3088\u306d\uff1f\u300d<br>\u300c\u4e2d\u592e\u63c3\u3048\u306b\u3057\u305f\u3063\u3066\u805e\u3044\u3066\u305f\u3051\u3069\u3001\u3061\u3087\u3063\u3068\u30ba\u30ec\u3066\u307e\u305b\u3093\u304b\uff1f\u300d<\/p>\n<\/blockquote>\n\n\n\n<p>\u4e00\u898b\u3059\u308b\u3068\u300cCSS\u304c\u3061\u3083\u3093\u3068\u66f8\u304b\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u306f\uff1f\u300d\u3068\u601d\u308f\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br>\u3067\u3059\u304c\u3001\u5b9f\u88c5\u8005\u306e\u7acb\u5834\u304b\u3089\u898b\u308b\u3068\u3001\u3053\u308c\u3089\u306f<strong>CSS\u306e\u8a18\u8ff0\u30df\u30b9\u3067\u306f\u306a\u304f\u3001\u201c\u4ed5\u69d8\u901a\u308a\u306b\u52d5\u3044\u3066\u3044\u308b\u7d50\u679c\u201d\u3067\u3042\u308b\u3053\u3068\u304c\u975e\u5e38\u306b\u591a\u3044<\/strong>\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u88c5\u5074\u304c\u5411\u304d\u5408\u3063\u3066\u3044\u308b\u306e\u306f\u300cCSS\u306e\u843d\u3068\u3057\u7a74\u300d<\/h3>\n\n\n\n<p>\u79c1\u81ea\u8eab\u3001\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u4ee3\u884c\u3092\u901a\u3058\u3066\u3055\u307e\u3056\u307e\u306a\u6848\u4ef6\u3092\u62c5\u5f53\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u3001<br>\u898b\u305f\u76ee\u306b\u95a2\u3059\u308b\u4e0d\u5177\u5408\u306e\u4e2d\u306b\u306f\u300c\u610f\u56f3\u901a\u308a\u306b\u898b\u3048\u306a\u3044\u3051\u3069\u3001\u5b9f\u306f\u4ed5\u69d8\u901a\u308a\u300d\u3068\u3044\u3046\u30b1\u30fc\u30b9\u304c\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-medium\"><a href=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-1-300x225.jpg\" alt=\"\" class=\"wp-image-8790\" srcset=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-1-300x225.jpg 300w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-1.jpg 600w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>\u7279\u306b\u3001<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>z-index<\/strong><\/li>\n\n\n\n<li><strong>position: sticky<\/strong><\/li>\n\n\n\n<li><strong>flex\u30ec\u30a4\u30a2\u30a6\u30c8<\/strong><\/li>\n\n\n\n<li><strong>overflow: hidden<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u306a\u3069\u306f\u3001<strong>\u898b\u305f\u76ee\u306b\u76f4\u7d50\u3059\u308b\u306e\u306b\u8aa4\u89e3\u3055\u308c\u3084\u3059\u3044CSS\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4ee3\u8868\u683c<\/strong>\u3067\u3059\u3002<br>\u3057\u304b\u3082\u3001\u5c11\u3057\u74b0\u5883\u3084\u89aa\u8981\u7d20\u306e\u6761\u4ef6\u304c\u5909\u308f\u308b\u3060\u3051\u3067\u52d5\u4f5c\u304c\u30ac\u30e9\u30c3\u3068\u5909\u308f\u308b\u305f\u3081\u3001\u5b9f\u88c5\u8005\u3082\u614e\u91cd\u306b\u6271\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001\u5b9f\u88c5\u306e\u73fe\u5834\u3067\u5b9f\u969b\u306b\u8d77\u304d\u305f\u4e8b\u4f8b\u3092\u30d9\u30fc\u30b9\u306b\u3001<br>\u300c\u306a\u305c\u52b9\u304b\u306a\u3044\u3088\u3046\u306b\u898b\u3048\u308b\u306e\u304b\uff1f\u300d\u300c\u4f55\u304c\u80cc\u666f\u306b\u3042\u308b\u306e\u304b\uff1f\u300d\u3092\u3001<strong>\u6280\u8853\u7528\u8a9e\u3092\u3067\u304d\u308b\u3060\u3051\u4f7f\u308f\u305a\u306b<\/strong>\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\uff01<\/p>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">2. \u30b1\u30fc\u30b91\uff1az-index\u304c\u52b9\u304b\u306a\u3044 \u2192 \u89aa\u8981\u7d20\u306eposition\u8a2d\u5b9a\u304c\u5f71\u97ff\u3057\u3066\u3044\u308b<\/h2>\n\n\n\n<p>\u300c\u3053\u306e\u8981\u7d20\u3092\u4e00\u756a\u4e0a\u306b\u51fa\u3057\u305f\u306f\u305a\u306a\u306e\u306b\u3001\u96a0\u308c\u3066\u898b\u3048\u306a\u3044\u300d\u2500\u2500\u3053\u308c\u306f\u3001Web\u5236\u4f5c\u306e\u73fe\u5834\u3067\u975e\u5e38\u306b\u3088\u304f\u3042\u308b\u73fe\u8c61\u3067\u3059\u3002<br>\u305f\u3068\u3048\u3070\u30e2\u30fc\u30c0\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u3001\u30c4\u30fc\u30eb\u30c1\u30c3\u30d7\u3001\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u306a\u3069\u3001<strong>\u524d\u9762\u306b\u51fa\u3066\u307b\u3057\u3044\u8981\u7d20\u304c\u5f8c\u308d\u306b\u96a0\u308c\u3066\u3057\u307e\u3046<\/strong>\u3068\u3044\u3046\u30c8\u30e9\u30d6\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">z-index\u306f\u300c\u6570\u5b57\u304c\u5927\u304d\u3051\u308c\u3070\u52dd\u3061\u300d\u3067\u306f\u306a\u3044<\/h3>\n\n\n\n<p>\u591a\u304f\u306e\u4eba\u304c\u8aa4\u89e3\u3057\u3084\u3059\u3044\u306e\u304c\u3001<code>z-index: 9999<\/code>\u306e\u3088\u3046\u306b\u5927\u304d\u306a\u6570\u5024\u3092\u6307\u5b9a\u3059\u308c\u3070\u6700\u524d\u9762\u306b\u306a\u308b\u3001\u3068\u3044\u3046\u8a8d\u8b58\u3067\u3059\u3002<br>\u3057\u304b\u3057\u5b9f\u969b\u306b\u306f\u3001<strong>z-index\u306f\u201c\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u201d\u3068\u3044\u3046\u30eb\u30fc\u30eb\u306e\u4e2d\u3067\u3057\u304b\u52b9\u679c\u3092\u6301\u3061\u307e\u305b\u3093<\/strong>\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3068\u306f\uff1f<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-medium\"><a href=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-2.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-2-300x225.jpg\" alt=\"\" class=\"wp-image-8792\" srcset=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-2-300x225.jpg 300w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-2.jpg 600w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\uff08stacking context\uff09\u3068\u306f\u3001\u3056\u3063\u304f\u308a\u8a00\u3048\u3070\u300cz-index\u306e\u7af6\u4e89\u304c\u8d77\u304d\u308b\u30b0\u30eb\u30fc\u30d7\u300d\u306e\u3053\u3068\u3002<br>\u305d\u3057\u3066\u3001\u3053\u306e\u30b0\u30eb\u30fc\u30d7\u306f\u3001\u89aa\u8981\u7d20\u306b<code>position: relative<\/code>\u3084<code>position: absolute<\/code>\u306a\u3069\u304c\u6307\u5b9a\u3055\u308c\u308b\u3053\u3068\u3067<strong>\u65b0\u3057\u304f\u4f5c\u3089\u308c\u308b<\/strong>\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3064\u307e\u308a\u3001<strong>z-index\u3092\u52b9\u304b\u305b\u305f\u3044\u8981\u7d20\u306e\u5916\u5074\u306e\u89aa\u8981\u7d20\u304c\u201c\u58c1\u201d\u306b\u306a\u3063\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b<\/strong>\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u969b\u306b\u3042\u3063\u305f\u4f8b\uff08\u4f53\u9a13\u8ac7\uff09<\/h3>\n\n\n\n<p>\u3042\u308b\u6848\u4ef6\u3067\u3001\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u306e\u30e2\u30fc\u30c0\u30eb\u304c\u4ed6\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u4e0b\u306b\u96a0\u308c\u3066\u8868\u793a\u3055\u308c\u306a\u3044\u3001\u3068\u3044\u3046\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<br>\u539f\u56e0\u3092\u8ffd\u3063\u3066\u3044\u304f\u3068\u3001\u30e2\u30fc\u30c0\u30eb\u306e\u89aa\u8981\u7d20\u306b<code>position: relative<\/code>\u304c\u6307\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001<br>\u3055\u3089\u306b\u305d\u306e\u5916\u5074\u306e\u8981\u7d20\u306b\u3082<code>z-index: 1<\/code>\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u305f\u3053\u3068\u3067\u3001<strong>\u30e2\u30fc\u30c0\u30eb\u304c\u305d\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u5916\u306b\u51fa\u3089\u308c\u306a\u3044\u72b6\u614b<\/strong>\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u3001<strong>\u300c\u524d\u306b\u51fa\u3057\u305f\u3044\u306e\u306b\u51fa\u306a\u3044\u300d\u554f\u984c\u306e\u591a\u304f\u306f\u3001\u89aa\u306e\u5f71\u97ff\u306b\u3088\u308b\u201c\u69cb\u9020\u306e\u554f\u984c\u201d<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">point!<\/mark> \u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u304c\u899a\u3048\u3066\u304a\u304f\u3068\u4fbf\u5229\u306a\u8996\u70b9<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>z-index<\/code>\u304c\u52b9\u304b\u306a\u3044\u3068\u304d\u306f\u3001<strong>\u89aa\u8981\u7d20\u304c\u300c\u90aa\u9b54\u3057\u3066\u3044\u306a\u3044\u304b\uff1f\u300d\u3092\u7591\u3046<\/strong><\/li>\n\n\n\n<li>\u8868\u793a\u306e\u512a\u5148\u9806\u4f4d\u306f\u3001<strong>HTML\u69cb\u9020\u3084\u89aa\u5b50\u95a2\u4fc2\u306b\u3082\u5de6\u53f3\u3055\u308c\u308b<\/strong><\/li>\n\n\n\n<li>\u4fee\u6b63\u306b\u306f\u300c\u69cb\u9020\u306e\u898b\u76f4\u3057\u300d\u304c\u5fc5\u8981\u3067\u3001\u5358\u306b\u6570\u5024\u3092\u5909\u3048\u308b\u3060\u3051\u3067\u306f\u89e3\u6c7a\u3057\u306a\u3044\u3053\u3068\u3082\u591a\u3044<\/li>\n<\/ul>\n\n\n\n<div style=\"height:39px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">3. \u30b1\u30fc\u30b92\uff1aposition: sticky\u304c\u52b9\u304b\u306a\u3044 \u2192 \u6307\u5b9a\u6761\u4ef6\u304c\u63c3\u3063\u3066\u3044\u306a\u3044<\/h2>\n\n\n\n<p>\u300c\u30d8\u30c3\u30c0\u30fc\u3092\u30b9\u30af\u30ed\u30fc\u30eb\u306b\u8ffd\u5f93\u3055\u305b\u305f\u3044\u300d\u300c\u30b5\u30a4\u30c9\u30e1\u30cb\u30e5\u30fc\u3092\u9014\u4e2d\u307e\u3067\u56fa\u5b9a\u306b\u3057\u305f\u3044\u300d<br>\u2500\u2500\u3053\u3046\u3057\u305f\u8981\u4ef6\u3067\u3088\u304f\u4f7f\u308f\u308c\u308b\u306e\u304c\u3001<code>position: sticky<\/code> \u3067\u3059\u3002<br>\u3067\u3059\u304c\u3001\u5b9f\u88c5\u5f8c\u306b\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u3055\u3093\u304b\u3089\u3053\u3046\u8a00\u308f\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u300cSticky\u6307\u5b9a\u3057\u305f\u3063\u3066\u805e\u3044\u3066\u308b\u3051\u3069\u3001\u52d5\u3044\u3066\u306a\u304f\u306a\u3044\u3067\u3059\u304b\uff1f\u300d<\/p>\n<\/blockquote>\n\n\n\n<p>\u5b9f\u306f\u3053\u308c\u3082\u3001<strong>CSS\u306e\u8a18\u8ff0\u30df\u30b9\u3067\u306f\u306a\u304f\u3001\u201csticky\u304c\u52b9\u304f\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u3066\u3044\u306a\u3044\u201d\u3060\u3051<\/strong>\u3068\u3044\u3046\u30b1\u30fc\u30b9\u304c\u3068\u3066\u3082\u591a\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">sticky\u306f\u300c\u6307\u5b9a\u3059\u308c\u3070\u52b9\u304f\u300d\u3082\u306e\u3067\u306f\u306a\u3044<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-medium\"><a href=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-3.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-3-300x225.jpg\" alt=\"\" class=\"wp-image-8793\" srcset=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-3-300x225.jpg 300w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-3.jpg 600w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p><code>position: sticky<\/code> \u306f\u3001<code>top: 0<\/code> \u3084 <code>left: 0<\/code> \u306a\u3069\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3046\u3053\u3068\u3067\u3001<strong>\u8981\u7d20\u304c\u4e00\u5b9a\u4f4d\u7f6e\u306b\u9054\u3057\u305f\u6642\u306b\u56fa\u5b9a\u3055\u308c\u308b<\/strong>\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002<br>\u305f\u3060\u3057\u3001<strong>\u6761\u4ef6\u304c\u6574\u3063\u3066\u3044\u306a\u3051\u308c\u3070\u4e00\u5207\u52b9\u304d\u307e\u305b\u3093<\/strong>\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">sticky\u304c\u7121\u52b9\u306b\u306a\u308b\u4e3b\u306a\u539f\u56e0\uff08\u5b9f\u52d9\u3067\u3082\u983b\u51fa\uff09<\/h3>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u3001\u79c1\u304c\u5b9f\u969b\u306b\u906d\u9047\u3057\u305fsticky\u7121\u52b9\u5316\u306e\u539f\u56e0\u30d9\u30b9\u30c83\u3067\u3059\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u89aa\u8981\u7d20\u306b <code>overflow: hidden<\/code> \/ <code>scroll<\/code> \/ <code>auto<\/code> \u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b<\/strong><br>\u2192 Sticky\u306f\u89aa\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u9818\u57df\u306b\u4f9d\u5b58\u3059\u308b\u305f\u3081\u3001<code>overflow<\/code>\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3068\u53cd\u5fdc\u3057\u307e\u305b\u3093\u3002<\/li>\n\n\n\n<li><strong>\u89aa\u8981\u7d20\u306e\u9ad8\u3055\u304c\u8db3\u308a\u306a\u3044<\/strong><br>\u2192 Sticky\u306f\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u9818\u57df\u300d\u304c\u3042\u3063\u3066\u521d\u3081\u3066\u52d5\u4f5c\u3059\u308b\u305f\u3081\u3001\u89aa\u306e\u9ad8\u3055\u304c\u8db3\u308a\u306a\u3044\u3068\u30b9\u30af\u30ed\u30fc\u30eb\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u305b\u305a\u3001\u56fa\u5b9a\u4f4d\u7f6e\u306b\u3082\u9054\u3057\u307e\u305b\u3093\u3002<\/li>\n\n\n\n<li><strong>top \/ bottom \u306e\u6307\u5b9a\u304c\u306a\u3044<\/strong><br>\u2192 sticky\u306b\u306f\u201c\u3044\u3064\u56fa\u5b9a\u3055\u308c\u308b\u304b\u201d\u3092\u793a\u3059\u57fa\u6e96\u304c\u5fc5\u8981\u3067\u3059\u3002<code>top: 0<\/code>\u306a\u3069\u306e\u6307\u5b9a\u304c\u306a\u3051\u308c\u3070\u6a5f\u80fd\u3057\u307e\u305b\u3093\u3002<\/li>\n<\/ol>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u88c5\u73fe\u5834\u3067\u306e\u4f8b<\/h3>\n\n\n\n<p>\u904e\u53bb\u306b\u3001\u5546\u54c1\u7d39\u4ecb\u30da\u30fc\u30b8\u3067\u300c\u30b9\u30de\u30db\u7248\u3060\u3051sticky\u304c\u52b9\u3044\u3066\u3044\u306a\u3044\u300d\u3068\u3044\u3046\u5831\u544a\u3092\u53d7\u3051\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<br>\u8abf\u67fb\u3057\u3066\u307f\u308b\u3068\u3001\u30b9\u30de\u30db\u8868\u793a\u6642\u306b\u3060\u3051\u30e1\u30a4\u30f3\u30e9\u30c3\u30d1\u30fc\u8981\u7d20\u306b <code>overflow-x: hidden<\/code> \u304c\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001<br><strong>\u3053\u308c\u304csticky\u306e\u767a\u706b\u3092\u963b\u5bb3\u3057\u3066\u3044\u305f<\/strong>\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002PC\u3067\u306f\u52b9\u3044\u3066\u3044\u305f\u305f\u3081\u3001\u6c17\u3065\u304f\u306e\u304c\u9045\u308c\u305f\u30b1\u30fc\u30b9\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">point!<\/mark> \u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u304c\u77e5\u3063\u3066\u304a\u304f\u3068\u5f79\u7acb\u3064\u8996\u70b9<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>sticky\u306f\u300c\u8868\u793a\u4e0a\u306e\u30c6\u30af\u30cb\u30c3\u30af\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u69cb\u9020\u300d\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b<\/li>\n\n\n\n<li>\u8868\u793a\u304c\u52d5\u304b\u306a\u3044\u3068\u304d\u306f\u3001\u300c\u89aa\u306eCSS\u3084\u9ad8\u3055\u3082\u78ba\u8a8d\u3059\u3079\u304d\u300d<\/li>\n\n\n\n<li>PC\u3068\u30b9\u30de\u30db\u3067\u6319\u52d5\u304c\u9055\u3046\u5834\u5408\u3001<strong>\u753b\u9762\u5e45\u3060\u3051\u3067\u306a\u304f\u3001CSS\u5168\u4f53\u306e\u69cb\u9020\u5dee\u7570\u3092\u7591\u3046<\/strong>\u306e\u304c\u30dd\u30a4\u30f3\u30c8<\/li>\n<\/ul>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">4. \u30b1\u30fc\u30b93\uff1aflex\u3067\u601d\u3063\u305f\u901a\u308a\u306b\u63c3\u308f\u306a\u3044 \u2192 \u521d\u671f\u5024\u3084\u5e45\u6307\u5b9a\u306e\u843d\u3068\u3057\u7a74<\/h2>\n\n\n\n<p>\u300c\u8981\u7d20\u3092\u4e2d\u592e\u306b\u63c3\u3048\u305f\u306f\u305a\u306a\u306e\u306b\u30ba\u30ec\u3066\u308b\u300d<br>\u300c\u6a2a\u4e26\u3073\u306b\u3057\u305f\u306e\u306b\u3001\u30dc\u30bf\u30f3\u306e\u5e45\u304c\u52dd\u624b\u306b\u5909\u308f\u3063\u3066\u308b\u300d<br>\u2500\u2500Flexbox\uff08flex\u30ec\u30a4\u30a2\u30a6\u30c8\uff09\u3092\u4f7f\u3063\u305fUI\u3067\u3001\u3053\u3093\u306a\u30ba\u30ec\u3092\u611f\u3058\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f<\/p>\n\n\n\n<p>\u3053\u308c\u3082CSS\u306e\u30d0\u30b0\u3067\u306f\u306a\u304f\u3001<strong>Flexbox\u7279\u6709\u306e\u201c\u521d\u671f\u5024\u201d\u3084\u201c\u4ed5\u69d8\u306b\u3088\u308b\u632f\u308b\u821e\u3044\u201d\u304c\u539f\u56e0<\/strong>\u306e\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u30ba\u30ec\u306e\u539f\u56e0\u3068\u5b9f\u88c5\u8005\u304c\u30cf\u30de\u308b\u30dd\u30a4\u30f3\u30c8<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. <code>align-items<\/code>\u3068<code>justify-content<\/code>\u306e\u6df7\u540c<\/h4>\n\n\n\n<p>\u7e26\u65b9\u5411\u306e\u63c3\u3048\uff08<code>align-items<\/code>\uff09\u3068\u6a2a\u65b9\u5411\u306e\u63c3\u3048\uff08<code>justify-content<\/code>\uff09\u304c\u6df7\u540c\u3055\u308c\u308b\u3053\u3068\u3067\u3001<br>\u300c\u4e2d\u592e\u63c3\u3048\u306b\u3057\u305f\u3064\u3082\u308a\u304c\u3001\u4e0a\u4e0b\u3069\u3061\u3089\u304b\u306b\u30ba\u30ec\u3066\u3044\u305f\u300d\u3068\u3044\u3046\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u2705 \u6a2a\u65b9\u5411\u306b\u4e2d\u592e\u914d\u7f6e\u3057\u305f\u3044 \u2192 <code>justify-content: center<\/code><br>\u2705 \u7e26\u65b9\u5411\u306b\u4e2d\u592e\u914d\u7f6e\u3057\u305f\u3044 \u2192 <code>align-items: center<\/code><\/p>\n<\/blockquote>\n\n\n\n<p>\u5b9f\u969b\u306e\u6848\u4ef6\u3067\u3082\u3001\u300c\u30c6\u30ad\u30b9\u30c8\u304c\u4e0a\u4e0b\u306b\u5bc4\u3063\u3066\u308b\u300d\u3068\u6307\u6458\u3055\u308c\u3001\u3088\u304f\u898b\u308b\u3068\u6307\u5b9a\u304c\u9006\u306b\u306a\u3063\u3066\u3044\u305f\u3068\u3044\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">2. <code>min-width<\/code>\u3084<code>flex-shrink<\/code>\u306b\u3088\u308b\u81ea\u52d5\u7e2e\u5c0f<\/h4>\n\n\n\n<p>Flexbox\u306f\u3001\u5b50\u8981\u7d20\u306e\u30b5\u30a4\u30ba\u306b\u5fdc\u3058\u3066\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u67d4\u8edf\u306b\u5909\u308f\u308a\u307e\u3059\u304c\u3001<strong>\u3068\u304d\u306b\u610f\u56f3\u3057\u306a\u3044\u201c\u7e2e\u307f\u201d\u304c\u767a\u751f\u3059\u308b<\/strong>\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001\u30dc\u30bf\u30f32\u3064\u3092\u6a2a\u4e26\u3073\u306b\u3057\u305f\u3068\u304d\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>display: flex;\njustify-content: space-between;\n<\/code><\/code><\/pre>\n\n\n\n<p>\u3060\u3051\u3060\u3068\u3001<strong>\u30dc\u30bf\u30f3\u306e\u6587\u5b57\u6570\u306b\u3088\u3063\u3066\u5e45\u304c\u30d0\u30e9\u30d0\u30e9<\/strong>\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<br>\u3053\u306e\u3068\u304d\u3001<code>min-width<\/code>\u3084<code>flex: 1<\/code>\u306e\u6307\u5b9a\u304c\u306a\u3044\u3068\u3001\u7247\u65b9\u3060\u3051\u6975\u7aef\u306b\u5c0f\u3055\u304f\u898b\u3048\u308b\u306a\u3069\u3001<strong>\u30d0\u30e9\u30f3\u30b9\u304c\u5d29\u308c\u305f\u898b\u305f\u76ee\u306b\u306a\u308b<\/strong>\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u88c5\u73fe\u5834\u3067\u306e\u3088\u304f\u3042\u308b\u4f8b<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-medium\"><a href=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-4.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-4-300x225.jpg\" alt=\"\" class=\"wp-image-8794\" srcset=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-4-300x225.jpg 300w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-4.jpg 600w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>LP\u3067\u300c2\u3064\u306e\u30dc\u30bf\u30f3\u3092\u540c\u3058\u5e45\u306b\u63c3\u3048\u3066\u4e26\u3079\u3066\u307b\u3057\u3044\u300d\u3068\u3044\u3046\u6307\u793a\u3092\u3044\u305f\u3060\u3044\u305f\u969b\u3001Figma\u3067\u306f\u7b49\u5e45\u306b\u898b\u3048\u3066\u3044\u305f\u306e\u306b\u3001\u5b9f\u88c5\u5f8c\u306b\u5d29\u308c\u305f\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br>\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u7247\u65b9\u306e\u30dc\u30bf\u30f3\u306e\u30c6\u30ad\u30b9\u30c8\u304c\u9577\u304f\u3001\u3082\u3046\u7247\u65b9\u304c\u77ed\u3044\u305f\u3081\u3001<strong>flex\u306e\u81ea\u52d5\u8a08\u7b97\u3067\u5747\u7b49\u306b\u306a\u3063\u3066\u3044\u306a\u304b\u3063\u305f<\/strong>\u306e\u304c\u539f\u56e0\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u5bfe\u51e6\u6cd5\u3068\u3057\u3066\u306f\u3001<code>flex: 1<\/code> \u3084 <code>width: 100%<\/code> \u3092\u6307\u5b9a\u3057\u3066\u300c\u5f37\u5236\u7684\u306b\u63c3\u3048\u308b\u300d\u5b9f\u88c5\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">point!<\/mark> \u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u304c\u77e5\u3063\u3066\u304a\u304f\u3068\u5f79\u7acb\u3064\u8996\u70b9<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Flexbox\u306f\u300c\u67d4\u8edf\u3060\u3051\u3069\u610f\u5916\u3068\u30af\u30bb\u304c\u3042\u308b\u300d\u30ec\u30a4\u30a2\u30a6\u30c8\u65b9\u5f0f<\/li>\n\n\n\n<li>\u5b50\u8981\u7d20\u306e\u30c6\u30ad\u30b9\u30c8\u91cf\u30fb\u521d\u671f\u30b5\u30a4\u30ba\u30fb\u7e2e\u5c0f\u8a31\u53ef\u306e\u6709\u7121\u3067\u898b\u305f\u76ee\u304c\u5927\u304d\u304f\u5909\u308f\u308b<\/li>\n\n\n\n<li>Figma\u3067\u6574\u3063\u3066\u898b\u3048\u3066\u3082\u3001<strong>\u5b9f\u30c7\u30fc\u30bf\u3067\u30ba\u30ec\u308b\u3053\u3068\u304c\u524d\u63d0\u306e\u3064\u304f\u308a<\/strong>\u3060\u3068\u7406\u89e3\u3057\u3066\u304a\u304f\u3068\u25ce<\/li>\n<\/ul>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">5. \u30b1\u30fc\u30b94\uff1aoverflow: hidden\u304c\u60f3\u5b9a\u5916\u306e\u526f\u4f5c\u7528\u3092\u751f\u3080<\/h2>\n\n\n\n<p>\u8981\u7d20\u306e\u306f\u307f\u51fa\u3057\u3092\u9632\u3050\u305f\u3081\u306b\u3001<code>overflow: hidden<\/code> \u3092\u4f7f\u3046\u306e\u306fCSS\u306e\u5b9a\u756a\u30c6\u30af\u30cb\u30c3\u30af\u306e\u3072\u3068\u3064\u3067\u3059\u3002<br>\u3057\u304b\u3057\u5b9f\u88c5\u306e\u73fe\u5834\u3067\u306f\u3001\u3053\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c**\u201c\u601d\u308f\u306cCSS\u30c8\u30e9\u30d6\u30eb\u201d\u306e\u5f15\u304d\u91d1\u306b\u306a\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059**\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u4fbf\u5229\u306a\u306f\u305a\u304c\u3001\u9006\u306b\u201c\u52b9\u304b\u306a\u304f\u306a\u308b\u201d\u3053\u3068\u3082<\/h3>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u73fe\u8c61\u3092\u898b\u305f\u3053\u3068\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30db\u30d0\u30fc\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u9014\u4e2d\u3067\u9014\u5207\u308c\u308b<\/li>\n\n\n\n<li>\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3082 <code>sticky<\/code> \u304c\u52b9\u304b\u306a\u3044<\/li>\n\n\n\n<li>\u5b50\u8981\u7d20\u304c\u898b\u3048\u306a\u304f\u306a\u3063\u3066\u64cd\u4f5c\u3067\u304d\u306a\u3044<\/li>\n<\/ul>\n\n\n\n<p>\u5b9f\u306f\u3053\u308c\u3001\u3059\u3079\u3066 <code>overflow: hidden<\/code> \u304c\u539f\u56e0\u3067\u8d77\u304d\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u88c5\u8005\u8996\u70b9\u3067\u306e\u300c\u3084\u308a\u304c\u3061\u30fb\u8d77\u3053\u308a\u304c\u3061\u300d<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. hover\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u5207\u308c\u308b<\/h4>\n\n\n\n<p>\u30dc\u30bf\u30f3\u306b\u30db\u30d0\u30fc\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\uff08\u5916\u67a0\u304c\u62e1\u5927\u3059\u308b\u3088\u3046\u306a\u52d5\u304d\uff09\u3092\u3064\u3051\u305f\u306e\u306b\u3001<strong>\u67a0\u304c\u9014\u4e2d\u3067\u5207\u308c\u3066\u3057\u307e\u3046<\/strong>\u3068\u3044\u3046\u30b1\u30fc\u30b9\u3002<br>\u3053\u308c\u306f\u3001\u89aa\u8981\u7d20\u306b <code>overflow: hidden<\/code> \u304c\u3064\u3044\u3066\u3044\u305f\u305f\u3081\u3001<strong>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u4e00\u90e8\u304c\u201c\u306f\u307f\u51fa\u3057\u6271\u3044\u201d\u3068\u306a\u3063\u3066\u898b\u3048\u306a\u304f\u306a\u308b<\/strong>\u305f\u3081\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. sticky\u304c\u7121\u52b9\u306b\u306a\u308b<\/h4>\n\n\n\n<p>\u7b2c3\u7ae0\u3067\u3082\u89e6\u308c\u307e\u3057\u305f\u304c\u3001<code>position: sticky<\/code> \u306f<strong>\u89aa\u8981\u7d20\u306e<code>overflow<\/code>\u304c<code>visible<\/code>\u3067\u306a\u3044\u3068\u52b9\u304b\u306a\u3044<\/strong>\u4ed5\u69d8\u3067\u3059\u3002<br>\u89aa\u304c <code>overflow: hidden<\/code> \u3092\u6301\u3063\u3066\u3044\u308b\u3060\u3051\u3067\u3001\u5b50\u306esticky\u306f\u4e00\u5207\u6a5f\u80fd\u3057\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3. \u30b9\u30af\u30ed\u30fc\u30eb\u304c\u3067\u304d\u306a\u3044<\/h4>\n\n\n\n<p>\u30e2\u30fc\u30c0\u30eb\u3084\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u4e2d\u8eab\u3092\u30b9\u30af\u30ed\u30fc\u30eb\u53ef\u80fd\u306b\u3057\u305f\u306f\u305a\u304c\u3001\u306a\u305c\u304b\u52d5\u304b\u306a\u3044\u2500\u2500\u3068\u3044\u3046\u3068\u304d\u3001<br>\u89aa\u8981\u7d20\u306b <code>overflow: hidden<\/code> \u304c\u3064\u3044\u3066\u3044\u305f\u3053\u3068\u3067\u3001<strong>\u30b9\u30af\u30ed\u30fc\u30eb\u30a4\u30d9\u30f3\u30c8\u304c\u201c\u906e\u65ad\u201d\u3055\u308c\u3066\u3044\u305f<\/strong>\u3068\u3044\u3046\u306e\u3082\u5b9f\u969b\u306b\u3042\u3063\u305f\u4e8b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u306a\u305c\u3053\u3046\u306a\u308b\u306e\u304b\uff1f<\/h3>\n\n\n\n<p><code>overflow: hidden<\/code> \u306f\u300c\u306f\u307f\u51fa\u3057\u90e8\u5206\u3092\u5207\u308a\u6368\u3066\u308b\u300d\u3068\u3044\u3046\u6027\u8cea\u3092\u6301\u3064\u305f\u3081\u3001<br><strong>\u898b\u305f\u76ee\u3060\u3051\u3067\u306a\u304f\u3001\u5185\u90e8\u3067\u306e\u63cf\u753b\u3084\u30b9\u30af\u30ed\u30fc\u30eb\u306e\u6319\u52d5\u306b\u3082\u5f71\u97ff\u3092\u4e0e\u3048\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\u3064\u307e\u308a\u3001\u300c\u4f59\u767d\u3092\u6574\u3048\u308b\u305f\u3081\u306e\u8efd\u3044\u8abf\u6574\u300d\u306e\u3064\u3082\u308a\u304c\u3001<strong>\u4ed6\u306eCSS\u3068\u5e72\u6e09\u3057\u3066\u601d\u308f\u306c\u526f\u4f5c\u7528\u3092\u8d77\u3053\u3057\u3066\u3057\u307e\u3046<\/strong>\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">point!<\/mark> \u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u304c\u77e5\u3063\u3066\u304a\u304f\u3068\u5f79\u7acb\u3064\u8996\u70b9<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>overflow\u7cfb\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u300c\u898b\u3048\u65b9\u300d\u3060\u3051\u3067\u306a\u304f\u300c\u52d5\u304d\u300d\u306b\u3082\u5f71\u97ff\u3059\u308b<\/li>\n\n\n\n<li>hover\u3084\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u52b9\u304b\u306a\u3044\u3068\u304d\u306f\u3001\u300cCSS\u306e\u4ed5\u69d8\u5e72\u6e09\u300d\u3092\u7591\u3046<\/li>\n\n\n\n<li>\u898b\u305f\u76ee\u304c\u6b63\u3057\u304f\u3066\u3082\u3001\u300c\u52d5\u4f5c\u78ba\u8a8d\u300d\u307e\u3067\u542b\u3081\u305f\u30ec\u30d3\u30e5\u30fc\u304c\u91cd\u8981<\/li>\n<\/ul>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">6. \u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u306b\u77e5\u3063\u3066\u304a\u3044\u3066\u307b\u3057\u30443\u3064\u306e\u8996\u70b9<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-medium\"><a href=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-5.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-5-300x225.jpg\" alt=\"\" class=\"wp-image-8795\" srcset=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-5-300x225.jpg 300w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-5.jpg 600w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>\u5b9f\u88c5\u8005\u3068\u3057\u3066\u3055\u307e\u3056\u307e\u306a\u6848\u4ef6\u306b\u95a2\u308f\u3063\u3066\u304d\u305f\u4e2d\u3067\u611f\u3058\u308b\u306e\u306f\u3001<br><strong>CSS\u306e\u201c\u52b9\u304d\u65b9\u201d\u3092\u7406\u89e3\u3057\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u306f\u3001\u30ec\u30d3\u30e5\u30fc\u3084\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u306e\u8cea\u304c\u5727\u5012\u7684\u306b\u9ad8\u3044<\/strong>\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3061\u3087\u3063\u3068\u3057\u305f\u8996\u70b9\u306e\u9055\u3044\u3067\u3001\u5b9f\u88c5\u3068\u306e\u9023\u643a\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u306a\u308a\u3001\u4fee\u6b63\u306e\u56de\u6570\u3082\u6e1b\u3089\u305b\u307e\u3059\u3002<br>\u4ee5\u4e0b\u306e3\u3064\u306f\u7279\u306b\u610f\u8b58\u3057\u3066\u3082\u3089\u3048\u308b\u3068\u73fe\u5834\u304c\u52a9\u304b\u308b\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u300cCSS\u304c\u52b9\u304b\u306a\u3044\uff1d\u30d0\u30b0\u300d\u3068\u306f\u9650\u3089\u306a\u3044<\/h3>\n\n\n\n<p>\u898b\u305f\u76ee\u304c\u5d29\u308c\u3066\u3044\u305f\u308a\u3001\u610f\u56f3\u901a\u308a\u306e\u52d5\u304d\u306b\u306a\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u308a\u3057\u3066\u3082\u3001<br>\u305d\u308c\u306f<strong>\u5358\u306a\u308b\u8a18\u8ff0\u30df\u30b9\u3067\u306f\u306a\u304f\u3001\u201cCSS\u306e\u4ed5\u69d8\u306b\u3088\u308b\u5236\u9650\u201d\u3067\u3042\u308b\u53ef\u80fd\u6027<\/strong>\u304c\u9ad8\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u2192\u300c\u52b9\u3044\u3066\u3044\u306a\u3044\u300d\u3068\u3044\u3046\u8a00\u8449\u3067\u306f\u306a\u304f\u3001<br><strong>\u300c\u3053\u306e\u3088\u3046\u306a\u898b\u305f\u76ee\u306b\u3057\u305f\u3044\uff0f\u3053\u3046\u3044\u3046\u52d5\u304d\u306b\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u201c\u610f\u56f3\u201d\u3067\u4f1d\u3048\u3066\u3044\u305f\u3060\u304f\u3068\u975e\u5e38\u306b\u52a9\u304b\u308a\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u8907\u6570\u306e\u30b9\u30bf\u30a4\u30eb\u304c\u201c\u9023\u52d5\u201d\u3057\u3066\u6210\u308a\u7acb\u3063\u3066\u3044\u308b<\/h3>\n\n\n\n<p>UI\u306e\u898b\u305f\u76ee\u3084\u52d5\u4f5c\u306f\u3001<strong>\u500b\u5225\u306eCSS\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u7a4d\u307f\u91cd\u306d\u3067\u306f\u306a\u304f\u3001\u69cb\u9020\u3084\u6587\u8108\u306e\u4e2d\u3067\u6210\u308a\u7acb\u3063\u3066\u3044\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>z-index<\/code>\u304c\u52b9\u304b\u306a\u3044 \u2192 \u89aa\u8981\u7d20\u306eposition\u306e\u5f71\u97ff<\/li>\n\n\n\n<li><code>sticky<\/code>\u304c\u52d5\u304b\u306a\u3044 \u2192 overflow\u3068\u9ad8\u3055\u306e\u95a2\u4fc2<\/li>\n\n\n\n<li><code>flex<\/code>\u3067\u30ba\u30ec\u308b \u2192 \u8981\u7d20\u306e\u521d\u671f\u5e45\u3084\u4e26\u3073\u9806\u306e\u5f71\u97ff<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u3001<strong>\u539f\u56e0\u304c\u8981\u7d20\u81ea\u8eab\u3067\u306f\u306a\u304f\u201c\u5468\u56f2\u306e\u8a2d\u5b9a\u201d\u306b\u3042\u308b\u3053\u3068\u304c\u591a\u3044<\/strong>\u305f\u3081\u3001<br>\u300c\u3053\u306e\u898b\u305f\u76ee\u306e\u4ed5\u7d44\u307f\u306f\u3069\u3046\u306a\u3063\u3066\u308b\uff1f\u300d\u3068\u3044\u3046\u8996\u70b9\u3067\u78ba\u8a8d\u3057\u3066\u3082\u3089\u3048\u308b\u3068\u3001\u7684\u78ba\u306a\u4fee\u6b63\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u610f\u56f3\u3092\u5171\u6709\u3057\u3066\u3082\u3089\u3048\u308b\u3068\u3001\u5b9f\u88c5\u5074\u3067\u6700\u9069\u306a\u65b9\u6cd5\u3092\u9078\u3079\u308b<\/h3>\n\n\n\n<p>CSS\u306f1\u3064\u306e\u898b\u305f\u76ee\u3092\u4f5c\u308b\u306e\u306b<strong>\u8907\u6570\u306e\u65b9\u6cd5\u304c\u5b58\u5728\u3059\u308b<\/strong>\u305f\u3081\u3001<br>\u300c\u3069\u3046\u66f8\u304f\u304b\u300d\u3088\u308a\u3082\u300c\u3069\u3046\u898b\u305b\u305f\u3044\u304b\u300d\u3092\u660e\u78ba\u306b\u3057\u3066\u3082\u3089\u3048\u308b\u3068\u3001\u5b9f\u88c5\u8005\u3068\u3057\u3066\u3082<strong>\u6700\u9069\u306a\u624b\u6bb5\u3092\u9078\u3073\u3084\u3059\u304f\u306a\u308a\u307e\u3059<\/strong>\u3002<\/p>\n\n\n\n<p>\u2192 \u305f\u3068\u3048\u3070\u3001\u300c\u30dc\u30bf\u30f3\u306f\u4e2d\u592e\u306b\u56fa\u5b9a\u300d\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u4e2d\u306f\u30d8\u30c3\u30c0\u30fc\u3092\u5e38\u306b\u8868\u793a\u3057\u305f\u3044\u300d\u3068\u3044\u3063\u305f<strong>\u52d5\u4f5c\u306e\u76ee\u7684\u30d9\u30fc\u30b9\u306e\u6307\u793a<\/strong>\u306f\u3001\u975e\u5e38\u306b\u3042\u308a\u304c\u305f\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u8996\u70b9\u3092\u6301\u3063\u3066\u3044\u305f\u3060\u3051\u308b\u3060\u3051\u3067\u3001CSS\u306e\u201c\u898b\u305f\u76ee\u30c8\u30e9\u30d6\u30eb\u201d\u306f\u6e1b\u308a\u3001<br>\u7d50\u679c\u3068\u3057\u3066\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b9\u30d4\u30fc\u30c9\u3068\u54c1\u8cea\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">7. \u307e\u3068\u3081\uff1aCSS\u306f\u201c\u5358\u72ec\u3067\u306f\u52d5\u304b\u306a\u3044\u201d\u4ed5\u69d8\u306e\u7a4d\u307f\u91cd\u306d<\/h2>\n\n\n\n<p>\u300cCSS\u304c\u52b9\u304b\u306a\u3044\u3088\u3046\u306b\u898b\u3048\u308b\u300d\u73fe\u8c61\u306e\u591a\u304f\u306f\u3001<strong>\u30d0\u30b0\u3067\u306f\u306a\u304f\u3001\u4ed5\u69d8\u306b\u3088\u308b\u5236\u7d04\u3084\u524d\u63d0\u6761\u4ef6\u306e\u4e0d\u8db3<\/strong>\u304c\u539f\u56e0\u3067\u3059\u3002<\/p>\n\n\n\n<p>z-index\u3001sticky\u3001flex\u3001overflow\u2500\u2500\u3069\u308c\u3082\u4fbf\u5229\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u304c\u3001<strong>\u305d\u308c\u5358\u4f53\u3067\u306f\u601d\u3044\u901a\u308a\u306b\u52d5\u304b\u305a\u3001\u4ed6\u306e\u8a2d\u5b9a\u3068\u9023\u52d5\u3057\u3066\u521d\u3081\u3066\u6210\u7acb\u3057\u307e\u3059<\/strong>\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-medium\"><a href=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-6.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-6-300x225.jpg\" alt=\"\" class=\"wp-image-8796\" srcset=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-6-300x225.jpg 300w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/image_3-6.jpg 600w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>Web\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u3068\u3057\u3066\u3001\u300c\u52b9\u3044\u3066\u3044\u306a\u3044\uff1f\u300d\u3068\u611f\u3058\u305f\u3068\u304d\u306f\u3001<br><strong>\u201c\u30df\u30b9\u201d\u3067\u306f\u306a\u304f\u201c\u4ed5\u7d44\u307f\u201d\u3092\u7591\u3046\u8996\u70b9<\/strong>\u3092\u6301\u3063\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u3001\u5b9f\u88c5\u5074\u3068\u306e\u9023\u643a\u304c\u3050\u3063\u3068\u30b9\u30e0\u30fc\u30ba\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5c0f\u3055\u306a\u77e5\u8b58\u306e\u7a4d\u307f\u91cd\u306d\u304c\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5168\u4f53\u306e\u54c1\u8cea\u3092\u5e95\u4e0a\u3052\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u6b21\u56de\u306eVol.4\u3067\u306f\u3001\u300c\u201c\u7c21\u5358\u306b\u76f4\u305b\u308b\u3067\u3057\u3087\uff1f\u201d\u304c\u7c21\u5358\u3058\u3083\u306a\u3044\u7406\u7531\u300d\u3092\u30c6\u30fc\u30de\u306b\u3001\u8efd\u5fae\u306a\u4fee\u6b63\u304c\u5b9f\u88c5\u306b\u4e0e\u3048\u308b\u5f71\u97ff\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Vol.4\u3082\u3001\u304a\u697d\u3057\u307f\u306b\uff01<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Web\u5236\u4f5c\u3067\u3088\u304f\u3042\u308b\u300cCSS\u304c\u52b9\u304b\u306a\u3044\u300d\u306e\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u306f\u3001\u3060\u3044\u305f\u3044\u304cCSS\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u8d77\u304d\u308b\u30d0\u30b0\u3067\u3059\u3002HTML\u304cz-index\u3084position: sticky\u3001flex\u306e\u5f71\u97ff\u3092\u53d7\u3051\u3066\u3001\u89aa\u5b50\u95a2\u4fc2\u3084\u4ed6\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u3088\u3063\u3066\u30b9\u30bf\u30a4\u30eb\u304c\u5909\u308f\u308a\u307e\u3059\u3002\u3053\u306e\u3042\u305f\u308a\u6291\u3048\u3066\u304a\u304f\u3060\u3051\u3067\u3001\u30d0\u30b0\u306f\u304b\u306a\u308a\u5c11\u306a\u304f\u306a\u308a\u307e\u3059\u3088\uff01<\/p>\n","protected":false},"author":12,"featured_media":8789,"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","enabled":false},"version":2}},"categories":[13,5,14],"tags":[317,18,592,593],"class_list":["post-8782","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-frontend","category-info","category-direction","tag-ui-ux","tag-18","tag-592","tag-593"],"acf":[],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2025\/05\/title_image_3.jpg","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/8782","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=8782"}],"version-history":[{"count":10,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/8782\/revisions"}],"predecessor-version":[{"id":8811,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/8782\/revisions\/8811"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media\/8789"}],"wp:attachment":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media?parent=8782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/categories?post=8782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/tags?post=8782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}