{"id":1832,"date":"2025-09-09T12:15:16","date_gmt":"2025-09-09T03:15:16","guid":{"rendered":"https:\/\/route-zero.com\/recruit\/?post_type=route&#038;p=1832"},"modified":"2026-01-09T12:15:29","modified_gmt":"2026-01-09T03:15:29","slug":"css-position%ef%bd%9crelative%e3%81%a8absolute%e3%81%ae%e9%81%95%e3%81%84","status":"publish","type":"route","link":"https:\/\/route-zero.com\/recruit\/route\/1832\/","title":{"rendered":"CSS position\uff5crelative\u3068absolute\u306e\u9055\u3044"},"content":{"rendered":"<div>\n<h2>\u306a\u305cCSS position\u306f\u300c\u5206\u304b\u3063\u305f\u3064\u3082\u308a\u300d\u306b\u306a\u308a\u3084\u3059\u3044\u306e\u304b\uff1f<\/h2>\n<p>\n    <strong>position: absolute;<\/strong> \u3092\u6307\u5b9a\u3057\u305f\u3089\u3001\u8981\u7d20\u304c\u753b\u9762\u306e\u5de6\u4e0a\u306b\u98db\u3093\u3060\u2026<br \/>\n    \u3053\u3093\u306a\u7d4c\u9a13\u3001\u79c1\u305f\u3061\u306a\u3089\u4e00\u5ea6\u306f\u3042\u308a\u307e\u3059\u3088\u306d\u3002<br \/>\n    <strong>CSS position<\/strong> \u306f\u3001\u6587\u6cd5\u81ea\u4f53\u306f\u30b7\u30f3\u30d7\u30eb\u306a\u306e\u306b\u3001\u5b9f\u88c5\u3067\u30cf\u30de\u308a\u3084\u3059\u3044\u4ee3\u8868\u683c\u3067\u3059\u3002<br \/>\n    \u3088\u304f\u3042\u308b\u3064\u307e\u305a\u304d\u306f\u3001\u6b21\u306e3\u3064\u3067\u3059\u3002\n  <\/p>\n<p>\n    \uff08CSS\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u57fa\u790e\u3084Flexbox\u30fbGrid\u3068\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1777\/\" target=\"_blank\" rel=\"noopener\">CSS Grid\u3068Flexbox\u5fb9\u5e95\u6bd4\u8f03\uff01\u9055\u3044\u30fb\u4f7f\u3044\u5206\u3051\u30fb\u9078\u3073\u65b9\u5b8c\u5168\u30ac\u30a4\u30c9\u30102025\u5e74\u7248\u3011<\/a\n    >\u300f\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n  <\/p>\n<ul>\n<li><strong>absolute<\/strong> \u3092\u4f7f\u3063\u305f\u3089\u8981\u7d20\u304c\u6d88\u3048\u305f<\/li>\n<li>\u89aa\u8981\u7d20\u3092\u57fa\u6e96\u306b\u3057\u305f\u3064\u3082\u308a\u304c\u3001\u610f\u56f3\u3057\u306a\u3044\u4f4d\u7f6e\u306b\u306a\u308b<\/li>\n<li><strong>z-index<\/strong> \u3092\u6307\u5b9a\u3057\u3066\u3082\u524d\u9762\u306b\u6765\u306a\u3044<\/li>\n<\/ul>\n<p>\n    \u4e00\u898b\u30d0\u30e9\u30d0\u30e9\u306a\u554f\u984c\u306b\u898b\u3048\u307e\u3059\u304c\u3001<br \/>\n    <strong>\u539f\u56e0\u306f\u3059\u3079\u3066\u5171\u901a\u3057\u3066\u3044\u307e\u3059\u3002<\/strong>\n  <\/p>\n<blockquote><p>\n    <strong>position\u306f\u300c\u57fa\u6e96\u70b9\u300d\u3068\u300c\u6587\u66f8\u30d5\u30ed\u30fc\u300d\u3092\u7406\u89e3\u3057\u306a\u3044\u3068\u5fc5\u305a\u5d29\u308c\u307e\u3059\u3002<\/strong><\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1aposition<\/strong><br \/>\n      CSS\u3067\u8981\u7d20\u306e\u914d\u7f6e\u65b9\u6cd5\u3092\u6307\u5b9a\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3002relative, absolute, fixed, sticky, static\u306e5\u7a2e\u985e\u304c\u3042\u308b\u3002\n    <\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u57fa\u6e96\u70b9<\/strong><br \/>\n      \u8981\u7d20\u3092\u914d\u7f6e\u3059\u308b\u969b\u306e\u300c\u57fa\u6e96\u3068\u306a\u308b\u4f4d\u7f6e\u300d\u3002absolute\u306f\u89aa\u8981\u7d20\u3001relative\u306f\u81ea\u5206\u81ea\u8eab\u306e\u5143\u306e\u4f4d\u7f6e\u304c\u57fa\u6e96\u70b9\u306b\u306a\u308b\u3002\n    <\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u6587\u66f8\u30d5\u30ed\u30fc<\/strong><br \/>\n      HTML\u8981\u7d20\u304c\u901a\u5e38\u3069\u304a\u308a\u4e26\u3076\u6d41\u308c\u3002absolute\u3084fixed\u306f\u3053\u306e\u6d41\u308c\u304b\u3089\u5916\u308c\u3066\u81ea\u7531\u306b\u914d\u7f6e\u3055\u308c\u308b\u3002\n    <\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1az-index<\/strong><br \/>\n      \u8981\u7d20\u306e\u91cd\u306a\u308a\u9806\u3092\u6307\u5b9a\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3002position\u304cstatic\u4ee5\u5916\u3067\u306a\u3044\u3068\u52b9\u679c\u304c\u51fa\u306a\u3044\u3002\n    <\/p>\n<\/blockquote>\n<hr \/>\n<h2>\u3010\u7d50\u8ad6\u5148\u51fa\u3057\u3011relative\u3068absolute\u306e\u9055\u3044\u306f\u3053\u308c\u3060\u3051<\/h2>\n<p>\u307e\u305a\u306f\u7d50\u8ad6\u304b\u3089\u62bc\u3055\u3048\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\n    \uff08position\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4f7f\u3044\u5206\u3051\u3084\u5931\u6557\u4f8b\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1707\/\" target=\"_blank\" rel=\"noopener\">CSS padding margin\u4f7f\u3044\u5206\u3051\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u5931\u6557\u4f8b\u3068\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/a\n    >\u300f\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n  <\/p>\n<h3>\u4e00\u767a\u3067\u5206\u304b\u308b\u6bd4\u8f03\u8868<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u9805\u76ee<\/th>\n<th>relative<\/th>\n<th>absolute<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u57fa\u6e96\u70b9<\/td>\n<td>\u81ea\u5206\u81ea\u8eab\u306e\u5143\u306e\u4f4d\u7f6e<\/td>\n<td><strong>static<\/strong>\u4ee5\u5916\u306e\u89aa\u8981\u7d20<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u66f8\u30d5\u30ed\u30fc<\/td>\n<td>\u7dad\u6301\u3055\u308c\u308b<\/td>\n<td>\u5207\u308a\u96e2\u3055\u308c\u308b<\/td>\n<\/tr>\n<tr>\n<td>\u4e3b\u306a\u5f79\u5272<\/td>\n<td><strong>\u57fa\u6e96\u70b9\u3092\u4f5c\u308b<\/strong><\/td>\n<td><strong>\u81ea\u7531\u306b\u914d\u7f6e\u3059\u308b<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u9ec4\u91d1\u30eb\u30fc\u30eb<\/h3>\n<blockquote><p>\n    <strong>absolute\u306e\u5b50\u306b\u306f\u3001relative\u306e\u89aa<\/strong><\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1arelative<\/strong><br \/>\n      \u81ea\u5206\u81ea\u8eab\u306e\u5143\u306e\u4f4d\u7f6e\u3092\u57fa\u6e96\u306b\u3001\u4f4d\u7f6e\u3092\u8abf\u6574\u3067\u304d\u308b\u3002absolute\u306e\u57fa\u6e96\u70b9\u306b\u3082\u306a\u308b\u3002\n    <\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1aabsolute<\/strong><br \/>\n      \u89aa\u8981\u7d20\uff08static\u4ee5\u5916\uff09\u3092\u57fa\u6e96\u306b\u3001\u6587\u66f8\u30d5\u30ed\u30fc\u304b\u3089\u5207\u308a\u96e2\u3057\u3066\u81ea\u7531\u306b\u914d\u7f6e\u3067\u304d\u308b\u3002\n    <\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1astatic<\/strong><br \/>\n      position\u306e\u521d\u671f\u5024\u3002\u7279\u5225\u306a\u914d\u7f6e\u306f\u3055\u308c\u305a\u3001z-index\u3082\u52b9\u304b\u306a\u3044\u3002\n    <\/p>\n<\/blockquote>\n<p>\n    \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u3053\u306e\u30eb\u30fc\u30eb\u3092<br \/>\n    <strong>\u300c\u5b9f\u52d9\u3067\u8ff7\u308f\u305a\u4f7f\u3048\u308b\u72b6\u614b\u300d\u307e\u3067\u843d\u3068\u3057\u8fbc\u307f\u307e\u3059\u3002<\/strong>\n  <\/p>\n<hr \/>\n<h2>position\u30d7\u30ed\u30d1\u30c6\u30a35\u7a2e\u3092\u300c\u4f7f\u3044\u9053\u300d\u3067\u7406\u89e3\u3059\u308b<\/h2>\n<h3>static \/ relative \/ absolute<\/h3>\n<ul>\n<li><strong>static<\/strong><br \/>\u521d\u671f\u72b6\u614b\u3002\u57fa\u6e96\u70b9\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002<\/li>\n<li><strong>relative<\/strong><br \/>\u81ea\u5206\u306f\u52d5\u304b\u3055\u305a\u3001<strong>\u5b50\u306eabsolute\u306e\u57fa\u6e96\u70b9\u306b\u306a\u308b<\/strong>\u3002<\/li>\n<li><strong>absolute<\/strong><br \/>\u89aa\u3092\u57fa\u6e96\u306b\u3001\u6587\u66f8\u30d5\u30ed\u30fc\u3092\u7121\u8996\u3057\u3066\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<h3>fixed \/ sticky<\/h3>\n<ul>\n<li><strong>fixed<\/strong><br \/>\u753b\u9762\uff08\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\uff09\u57fa\u6e96\u3002\u56fa\u5b9a\u30d8\u30c3\u30c0\u30fc\u306a\u3069\u3002<\/li>\n<li><strong>sticky<\/strong><br \/>\u89aa\u8981\u7d20\u306e\u7bc4\u56f2\u5185\u3067\u306e\u307f\u56fa\u5b9a\u3002\u76ee\u6b21\u5411\u304d\u3002<\/li>\n<\/ul>\n<blockquote>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1afixed<\/strong><br \/>\n      \u753b\u9762\uff08\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\uff09\u3092\u57fa\u6e96\u306b\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3082\u5e38\u306b\u540c\u3058\u4f4d\u7f6e\u306b\u8868\u793a\u3055\u308c\u308b\u3002\n    <\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1asticky<\/strong><br \/>\n      \u89aa\u8981\u7d20\u306e\u7bc4\u56f2\u5185\u3067\u306e\u307f\u56fa\u5b9a\u3055\u308c\u308b\u3002\u30b9\u30af\u30ed\u30fc\u30eb\u306b\u5fdc\u3058\u3066\u52d5\u304d\u3001\u76ee\u6b21\u3084\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u4f7f\u308f\u308c\u308b\u3002\n    <\/p>\n<\/blockquote>\n<hr \/>\n<h2>\u30b3\u30d4\u30da\u3067\u4f7f\u3048\u308b\uff01position\u30ec\u30a4\u30a2\u30a6\u30c8\u5224\u65ad\u30c6\u30f3\u30d7\u30ec3\u7a2e\u3010\u6700\u91cd\u8981\u3011<\/h2>\n<h3>\u30c6\u30f3\u30d7\u30ec\u2460\uff1a\u89aa\u57fa\u6e96\u3067\u914d\u7f6e\u3057\u305f\u3044\u3068\u304d<\/h3>\n<pre><code>.parent {\r\n  position: relative;\r\n}\r\n\r\n.child {\r\n  position: absolute;\r\n  top: 0;\r\n  right: 0;\r\n}\r\n<\/code><\/pre>\n<p>\n    <strong>if<\/strong> \u89aa\u306e\u4e2d\u3067\u914d\u7f6e\u3057\u305f\u3044<br \/>\n    <strong>then<\/strong> \u89aa\uff1a<strong>relative<\/strong> \/ \u5b50\uff1a<strong>absolute<\/strong>\n  <\/p>\n<hr \/>\n<h3>\u30c6\u30f3\u30d7\u30ec\u2461\uff1a\u8981\u7d20\u3092\u5b8c\u5168\u4e2d\u592e\u63c3\u3048\u3057\u305f\u3044\u3068\u304d<\/h3>\n<pre><code>.parent {\r\n  position: relative;\r\n}\r\n\r\n.child {\r\n  position: absolute;\r\n  top: 50%;\r\n  left: 50%;\r\n  transform: translate(-50%, -50%);\r\n}\r\n<\/code><\/pre>\n<p>Flexbox\u304c\u4f7f\u3048\u306a\u3044\u5834\u9762\u3067\u306e<strong>\u6700\u7d42\u89e3<\/strong>\u3067\u3059\u3002<\/p>\n<hr \/>\n<h3>\u30c6\u30f3\u30d7\u30ec\u2462\uff1az-index\u3092\u52b9\u304b\u305b\u305f\u3044\u3068\u304d<\/h3>\n<pre><code>.layer {\r\n  position: relative;\r\n  z-index: 10;\r\n}\r\n<\/code><\/pre>\n<p><strong>position: static<\/strong> \u306e\u307e\u307e\u3067\u306f <strong>z-index\u306f\u4e00\u5207\u52b9\u304d\u307e\u305b\u3093\u3002<\/strong><\/p>\n<hr \/>\n<h2>\u3010\u691c\u8a3c\u7528\u3011HTML\u3067\u52d5\u304b\u3057\u3066\u7406\u89e3\u3059\u308bposition\u30b5\u30f3\u30d7\u30eb10\u9078<\/h2>\n<p>\n    \u4ee5\u4e0b\u306f\u3001<strong>\u3059\u3079\u3066\u5358\u4f53HTML\u3068\u3057\u3066\u4fdd\u5b58\u30fb\u5b9f\u884c\u53ef\u80fd<\/strong>\u3067\u3059\u3002<br \/>\n    \u79c1\u305f\u3061\u304c\u5b9f\u52d9\u3067\u3088\u304f\u4f7f\u3046\u30d1\u30bf\u30fc\u30f3\u3060\u3051\u3092\u53b3\u9078\u3057\u3066\u3044\u307e\u3059\u3002\n  <\/p>\n<p>\n    \uff08CSS\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3084\u52d5\u7684\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1091\/\" target=\"_blank\" rel=\"noopener\">Web\u5236\u4f5c\u3067\u4f7f\u3048\u308bCSS\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f310\u9078\uff5c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\uff06\u4f7f\u3044\u65b9\u89e3\u8aac<\/a\n    >\u300f\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n  <\/p>\n<hr \/>\n<h3>\u30b5\u30f3\u30d7\u30eb\u2460\uff1arelative + absolute \u57fa\u672c\u5f62<\/h3>\n<pre><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n&lt;style&gt;\r\n.parent { position: relative; width: 300px; height: 200px; border: 2px solid #333; }\r\n.child { position: absolute; bottom: 10px; right: 10px; background: orange; padding: 8px; }\r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div class=\"parent\"&gt;\r\n  \u89aa\u8981\u7d20\r\n  &lt;div class=\"child\"&gt;\u53f3\u4e0b&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<hr \/>\n<h3>\u30b5\u30f3\u30d7\u30eb\u2461\uff1arelative\u7121\u3057\u3067\u5de6\u4e0a\u306b\u98db\u3076\u5931\u6557\u4f8b<\/h3>\n<pre><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n&lt;style&gt;\r\n.child { position: absolute; top: 0; left: 0; background: red; padding: 8px; }\r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div class=\"child\"&gt;\u753b\u9762\u5de6\u4e0a&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<hr \/>\n<h3>\u30b5\u30f3\u30d7\u30eb\u2462\uff1aabsolute\u5b8c\u5168\u4e2d\u592e\u63c3\u3048<\/h3>\n<pre><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n&lt;style&gt;\r\n.parent { position: relative; width: 400px; height: 200px; border: 2px solid #333; }\r\n.child { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: lightblue; padding: 10px; }\r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div class=\"parent\"&gt;\r\n  &lt;div class=\"child\"&gt;\u4e2d\u592e&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<hr \/>\n<h3>\u30b5\u30f3\u30d7\u30eb\u2463\uff1a\u753b\u50cf\uff0b\u30c6\u30ad\u30b9\u30c8\u91cd\u306d\uff08LP\u5b9a\u756a\uff09<\/h3>\n<pre><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n&lt;style&gt;\r\n.container { position: relative; width: 400px; }\r\n.container img { width: 100%; }\r\n.text { position: absolute; bottom: 10px; left: 10px; color: white; background: rgba(0,0,0,.6); padding: 5px; }\r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div class=\"container\"&gt;\r\n  &lt;img src=\"https:\/\/via.placeholder.com\/400x200\"&gt;\r\n  &lt;div class=\"text\"&gt;\u30ad\u30e3\u30c3\u30c1\u30b3\u30d4\u30fc&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<hr \/>\n<h3>\u30b5\u30f3\u30d7\u30eb\u2464\uff1az-index\u304c\u52b9\u304f\u4f8b<\/h3>\n<pre><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n&lt;style&gt;\r\n.box { position: absolute; width: 150px; height: 150px; }\r\n.red { background: red; top: 20px; left: 20px; z-index: 1; }\r\n.blue { background: blue; top: 60px; left: 60px; z-index: 2; }\r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div class=\"box red\"&gt;&lt;\/div&gt;\r\n&lt;div class=\"box blue\"&gt;&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<hr \/>\n<h3>\u30b5\u30f3\u30d7\u30eb\u2465\uff1az-index\u304c\u52b9\u304b\u306a\u3044\u5931\u6557\u4f8b<\/h3>\n<pre><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n&lt;style&gt;\r\n.box { width: 150px; height: 150px; }\r\n.red { background: red; z-index: 2; }\r\n.blue { background: blue; margin-top: -100px; z-index: 1; }\r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div class=\"box red\"&gt;&lt;\/div&gt;\r\n&lt;div class=\"box blue\"&gt;&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<hr \/>\n<h3>\u30b5\u30f3\u30d7\u30eb\u2466\uff1afixed\u30d8\u30c3\u30c0\u30fc<\/h3>\n<pre><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n&lt;style&gt;\r\nheader { position: fixed; top: 0; width: 100%; background: black; color: white; padding: 10px; }\r\nmain { margin-top: 60px; }\r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;header&gt;\u56fa\u5b9a\u30d8\u30c3\u30c0\u30fc&lt;\/header&gt;\r\n&lt;main style=\"height:2000px\"&gt;&lt;\/main&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<hr \/>\n<h3>\u30b5\u30f3\u30d7\u30eb\u2467\uff1asticky\u76ee\u6b21<\/h3>\n<pre><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n&lt;style&gt;\r\n.sidebar { position: sticky; top: 10px; background: #eee; padding: 10px; }\r\n.container { display: flex; }\r\n.content { height: 2000px; margin-left: 20px; }\r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div class=\"container\"&gt;\r\n  &lt;div class=\"sidebar\"&gt;\u76ee\u6b21&lt;\/div&gt;\r\n  &lt;div class=\"content\"&gt;&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<hr \/>\n<h3>\u30b5\u30f3\u30d7\u30eb\u2468\uff1a\u30ab\u30fc\u30c9\u53f3\u4e0a\u30d0\u30c3\u30b8<\/h3>\n<pre><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n&lt;style&gt;\r\n.card { position: relative; width: 200px; padding: 20px; border: 1px solid #333; }\r\n.badge { position: absolute; top: -10px; right: -10px; background: red; color: white; padding: 5px; }\r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div class=\"card\"&gt;\r\n  &lt;div class=\"badge\"&gt;NEW&lt;\/div&gt;\r\n  \u30ab\u30fc\u30c9\r\n&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<hr \/>\n<h3>\u30b5\u30f3\u30d7\u30eb\u2469\uff1a\u30e2\u30fc\u30c0\u30eb\u4e2d\u592e\u914d\u7f6e\uff08\u5b8c\u6210\u5f62\uff09<\/h3>\n<pre><code>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n&lt;style&gt;\r\n.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); }\r\n.modal { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; padding: 20px; }\r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div class=\"overlay\"&gt;\r\n  &lt;div class=\"modal\"&gt;\u30e2\u30fc\u30c0\u30eb&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<hr \/>\n<h2>position\u304c\u52b9\u304b\u306a\u3044\u3068\u304d\u306e\u5373\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8\u3010\u4fdd\u5b58\u7248\u3011<\/h2>\n<pre><code>\u25a1 \u89aa\u8981\u7d20\u306b position: relative \u304c\u3042\u308b\u304b\r\n\u25a1 \u57fa\u6e96\u70b9\u306f\u610f\u56f3\u3057\u305f\u89aa\u304b\r\n\u25a1 top \/ left \u3092\u6307\u5b9a\u3057\u3066\u3044\u308b\u304b\r\n\u25a1 z-index \u3092\u4f7f\u3046\u8981\u7d20\u304c static \u3067\u306a\u3044\u304b\r\n\u25a1 \u5e45\u30fb\u9ad8\u3055\u304c 0 \u306b\u306a\u3063\u3066\u3044\u306a\u3044\u304b\r\n<\/code><\/pre>\n<hr \/>\n<h2>Flexbox \/ Grid \/ position\u306e\u4f7f\u3044\u5206\u3051\u7d50\u8ad6<\/h2>\n<ul>\n<li><strong>\u4e26\u3079\u308b\u30fb\u4e2d\u592e\u63c3\u3048<\/strong> \u2192 Flexbox<\/li>\n<li><strong>\u30da\u30fc\u30b8\u5168\u4f53\u30ec\u30a4\u30a2\u30a6\u30c8<\/strong> \u2192 Grid<\/li>\n<li><strong>\u91cd\u306d\u308b\u30fb\u57fa\u6e96\u6307\u5b9a<\/strong> \u2192 position<\/li>\n<\/ul>\n<blockquote><p>position\u306f\u300c\u6700\u5f8c\u306b\u9078\u3076\u304b\u3089\u5f37\u3044\u300d<\/p><\/blockquote>\n<blockquote>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1aFlexbox<\/strong><br \/>\n      \u8981\u7d20\u3092\u6a2a\u4e26\u3073\u30fb\u7e26\u4e26\u3073\u30fb\u4e2d\u592e\u63c3\u3048\u306a\u3069\u67d4\u8edf\u306b\u914d\u7f6e\u3067\u304d\u308bCSS\u30ec\u30a4\u30a2\u30a6\u30c8\u624b\u6cd5\u3002\n    <\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1aGrid<\/strong><br \/>\n      \u30da\u30fc\u30b8\u5168\u4f53\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3084\u8907\u96d1\u306a\u914d\u7f6e\u3092\u7c21\u5358\u306b\u5b9f\u73fe\u3067\u304d\u308bCSS\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u624b\u6cd5\u3002\n    <\/p>\n<\/blockquote>\n<hr \/>\n<h2>\u307e\u3068\u3081\uff5cposition\u306f\u6016\u304f\u306a\u3044\u3002\u4f7f\u3044\u3069\u3053\u308d\u3092\u9593\u9055\u3048\u306a\u3051\u308c\u3070\u6700\u5f37<\/h2>\n<ul>\n<li><strong>relative<\/strong> \u306f\u300c\u57fa\u6e96\u70b9\u4f5c\u6210\u88c5\u7f6e\u300d<\/li>\n<li><strong>absolute<\/strong> \u306f\u300c\u81ea\u7531\u914d\u7f6e\u30c4\u30fc\u30eb\u300d<\/li>\n<\/ul>\n<p>\n    \u8ff7\u3063\u305f\u3089\u3001<br \/>\n    <strong>absolute\u306e\u5b50\u306b\u306frelative\u306e\u89aa<\/strong>\u3002\n  <\/p>\n<p><\/p>\n<p>\n    \u305c\u3072\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30da\u3057\u3066\u3001\u307e\u305a\u306f\u52d5\u304b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n    \u79c1\u305f\u3061\u304c\u4e00\u756a\u65e9\u304f\u7406\u89e3\u3067\u304d\u308b\u306e\u306f\u3001\u3084\u306f\u308a\u300c\u624b\u3092\u52d5\u304b\u3057\u305f\u77ac\u9593\u300d\u3067\u3059\u3002&#x2705;\n  <\/p>\n<hr \/>\n<\/div>\n","protected":false},"featured_media":1833,"template":"","_links":{"self":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route\/1832"}],"collection":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route"}],"about":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/types\/route"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media\/1833"}],"wp:attachment":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media?parent=1832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}