{"id":1076,"date":"2024-08-19T16:15:41","date_gmt":"2024-08-19T07:15:41","guid":{"rendered":"https:\/\/route-zero.com\/recruit\/route\/1076\/"},"modified":"2025-03-14T13:53:24","modified_gmt":"2025-03-14T04:53:24","slug":"1076","status":"publish","type":"route","link":"https:\/\/route-zero.com\/recruit\/route\/1076\/","title":{"rendered":"\u3010CSS\u306e\u57fa\u672c\u3011\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u7c21\u5358\u306b\u4e2d\u592e\u306b\u914d\u7f6e\u3059\u308b\u65b9\u6cd5\u3092\u5fb9\u5e95\u89e3\u8aac"},"content":{"rendered":"<div>\n<div id=\"js-contents\" class=\"p-tableOfContents\">\n<p class=\"p-tableOfContents__title cFadeIn\">\u76ee\u6b21<\/p>\n<ul>\n<li class=\"p-tableOfContents__links\">\n<p class=\"p-tableOfContents__link cFadeIn\"><a href=\"#sec01\" class=\"js-link\">\u306f\u3058\u3081\u306b<\/a><\/p>\n<\/li>\n<li class=\"p-tableOfContents__links\">\n<p class=\"p-tableOfContents__link cFadeIn\"><a href=\"#sec02\" class=\"js-link\">CSS\u3067\u4e2d\u592e\u63c3\u3048\u3092\u884c\u3046\u7406\u7531<\/a><\/p>\n<\/li>\n<li class=\"p-tableOfContents__links\">\n<p class=\"p-tableOfContents__link cFadeIn\"><a href=\"#sec03\" class=\"js-link\">\u914d\u7f6e\u65b9\u6cd5\u306e\u5fb9\u5e95\u89e3\u8aac\uff01<\/a><\/p>\n<\/li>\n<li class=\"p-tableOfContents__links\">\n<p class=\"p-tableOfContents__link cFadeIn\"><a href=\"#sec04\" class=\"js-link\">\u5de6\u53f3\u30fb\u4e0a\u4e0b\u914d\u7f6e\u306b\u95a2\u9023\u3057\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u89e3\u8aac<\/a><\/p>\n<\/li>\n<li class=\"p-tableOfContents__links\">\n<p class=\"p-tableOfContents__link cFadeIn\"><a href=\"#sec05\" class=\"js-link\">\u3088\u304f\u3042\u308b\u554f\u984c\u3068\u305d\u306e\u89e3\u6c7a\u7b56<\/a><\/p>\n<\/li>\n<li class=\"p-tableOfContents__links\">\n<p class=\"p-tableOfContents__link cFadeIn\"><a href=\"#sec06\" class=\"js-link\">\u307e\u3068\u3081<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<h2 id=\"sec01\">\u306f\u3058\u3081\u306b<\/h2>\n<p>\u30a6\u30a7\u30d6\u30c7\u30b6\u30a4\u30f3\u306b\u304a\u3044\u3066\u3001\u8981\u7d20\u3092\u30da\u30fc\u30b8\u4e0a\u3067\u9069\u5207\u306b\u914d\u7f6e\u3059\u308b\u3053\u3068\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\u7279\u306b\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30da\u30fc\u30b8\u306e\u4e2d\u592e\u306b\u914d\u7f6e\u3059\u308b\u65b9\u6cd5\u306f\u3001\u8996\u899a\u7684\u306b\u9b45\u529b\u7684\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u3068\u3063\u3066\u4f7f\u3044\u3084\u3059\u3044\u30c7\u30b6\u30a4\u30f3\u3092\u4f5c\u308a\u4e0a\u3052\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u30c6\u30af\u30cb\u30c3\u30af\u306e1\u3064\u3067\u3059\u3002<\/p>\n<p>\u300c\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u592e\u306b\u914d\u7f6e\u3057\u305f\u3044\u300d\u3068\u601d\u3063\u305f\u3068\u304d\u3001CSS\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306b\u5b9f\u73fe\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u308c\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u521d\u5fc3\u8005\u306e\u65b9\u5411\u3051\u306b\u3001CSS\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5de6\u53f3\u4e2d\u592e\u3001\u307e\u305f\u306f\u4e0a\u4e0b\u4e2d\u592e\u306b\u914d\u7f6e\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<hr>\n<h2 id=\"sec02\">CSS\u3067\u4e2d\u592e\u63c3\u3048\u3092\u884c\u3046\u7406\u7531<\/h2>\n<p>\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306b\u304a\u3051\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u914d\u7f6e\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u306b\u76f4\u63a5\u5f71\u97ff\u3057\u307e\u3059\u3002\u4e2d\u592e\u63c3\u3048\u3092\u4f7f\u3046\u7406\u7531\u3068\u3057\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\uff1a<\/p>\n<ul>\n<li>\n<p><strong>\u8996\u899a\u7684\u306a\u30d0\u30e9\u30f3\u30b9<\/strong>: \u4e2d\u592e\u63c3\u3048\u306f\u3001\u30c7\u30b6\u30a4\u30f3\u5168\u4f53\u306b\u30d0\u30e9\u30f3\u30b9\u3068\u8abf\u548c\u3092\u3082\u305f\u3089\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u30e6\u30fc\u30b6\u30d3\u30ea\u30c6\u30a3<\/strong>: \u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u4e2d\u592e\u306b\u914d\u7f6e\u3055\u308c\u3066\u3044\u308b\u3068\u3001\u8996\u899a\u7684\u306b\u8a8d\u8b58\u3057\u3084\u3059\u304f\u306a\u308a\u3001\u30da\u30fc\u30b8\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3<\/strong>: \u4e2d\u592e\u914d\u7f6e\u306f\u3001\u30c7\u30d0\u30a4\u30b9\u3084\u753b\u9762\u30b5\u30a4\u30ba\u306b\u95a2\u308f\u3089\u305a\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u304d\u308c\u3044\u306b\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u3082\u6709\u52b9\u3067\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u3053\u308c\u304b\u3089\u3001\u5de6\u53f3\u4e2d\u592e\u3001\u4e0a\u4e0b\u4e2d\u592e\u3001\u305d\u308c\u305e\u308c\u306e\u914d\u7f6e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5177\u4f53\u7684\u306a\u4f8b\u3092\u4ea4\u3048\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<hr>\n<h2 id=\"sec03\">\u914d\u7f6e\u65b9\u6cd5\u306e\u5fb9\u5e95\u89e3\u8aac\uff01<\/h2>\n<h3>1. \u5de6\u53f3\u4e2d\u592e\u306b\u914d\u7f6e\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u307e\u305a\u306f\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u6a2a\u65b9\u5411\u306b\u4e2d\u592e\u63c3\u3048\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306f\u305d\u306e\u305f\u3081\u306e\u57fa\u672c\u7684\u306aCSS\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre><code>&lt;div <span><span>class<\/span>=\"<span>container<\/span>\"&gt;\r\n  &lt;p&gt;\u3053\u308c\u306f\u5de6\u53f3\u4e2d\u592e\u306b\u914d\u7f6e\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u3067\u3059\u3002&lt;\/p&gt;\r\n&lt;\/div&gt;<\/span><\/code><\/pre>\n<pre><code><span>.container<\/span> {\r\n  <span>width<\/span>: <span>50%<\/span>; <span>\/* \u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u5e45\u3092\u6307\u5b9a *\/<\/span>\r\n  <span>margin-left<\/span>: auto; <span>\/* \u5de6\u306e\u4f59\u767d\u3092\u81ea\u52d5\u8abf\u6574 *\/<\/span>\r\n  <span>margin-right<\/span>: auto; <span>\/* \u53f3\u306e\u4f59\u767d\u3092\u81ea\u52d5\u8abf\u6574 *\/<\/span>\r\n}<\/code><\/pre>\n<p>\u3053\u306e\u65b9\u6cd5\u3067\u306f\u3001margin-left\u3068margin-right\u3092auto\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u89aa\u8981\u7d20\u306e\u5e45\u5185\u3067\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u592e\u306b\u914d\u7f6e\u3067\u304d\u307e\u3059\u3002width\u309250%\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u5e45\u306f\u30da\u30fc\u30b8\u306e50%\u3068\u306a\u308a\u3001\u5de6\u53f3\u306e\u4f59\u767d\u304c\u81ea\u52d5\u3067\u8abf\u6574\u3055\u308c\u3001\u4e2d\u592e\u306b\u914d\u7f6e\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>2. \u4e0a\u4e0b\u4e2d\u592e\u306b\u914d\u7f6e\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u6b21\u306b\u3001\u7e26\u65b9\u5411\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u592e\u306b\u914d\u7f6e\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u5834\u5408\u306f\u3001display: flex\u3092\u4f7f\u7528\u3057\u3066\u3001\u89aa\u8981\u7d20\u5185\u3067\u5b50\u8981\u7d20\u3092\u4e2d\u592e\u306b\u914d\u7f6e\u3059\u308b\u306e\u304c\u7c21\u5358\u3067\u52b9\u679c\u7684\u3067\u3059\u3002<\/p>\n<pre><code>&lt;div <span><span>class<\/span>=\"<span>wrapper<\/span>\"&gt;\r\n  &lt;div class=\"content\"&gt;\r\n    &lt;p&gt;\u3053\u308c\u306f\u4e0a\u4e0b\u4e2d\u592e\u306b\u914d\u7f6e\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u3067\u3059\u3002&lt;\/p&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;<\/span><\/code><\/pre>\n<pre><code><span>.wrapper<\/span> {\r\n  <span>display<\/span>: flex;\r\n  <span>justify-content<\/span>: center; <span>\/* \u6c34\u5e73\u65b9\u5411\u306b\u4e2d\u592e\u63c3\u3048 *\/<\/span>\r\n  <span>align-items<\/span>: center; <span>\/* \u5782\u76f4\u65b9\u5411\u306b\u4e2d\u592e\u63c3\u3048 *\/<\/span>\r\n  <span>height<\/span>: <span>100vh<\/span>; <span>\/* \u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u306e\u9ad8\u3055\u3092\u6307\u5b9a *\/<\/span>\r\n}\r\n\r\n<span>.content<\/span> {\r\n  <span>width<\/span>: <span>50%<\/span>; <span>\/* \u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u5e45\u3092\u6307\u5b9a *\/<\/span>\r\n}<\/code><\/pre>\n<p>\u3053\u3053\u3067\u306f\u3001wrapper\u306bdisplay: flex\u3092\u4f7f\u7528\u3057\u3066\u3001justify-content\u3067\u6c34\u5e73\u65b9\u5411\u3001align-items\u3067\u5782\u76f4\u65b9\u5411\u306b\u4e2d\u592e\u63c3\u3048\u3092\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002height: 100vh\u306b\u3088\u308a\u3001\u89aa\u8981\u7d20\u306e\u9ad8\u3055\u3092\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u306e\u9ad8\u3055\u306b\u8a2d\u5b9a\u3057\u3066\u3001\u4e2d\u592e\u306b\u914d\u7f6e\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u30da\u30fc\u30b8\u5168\u4f53\u306b\u53ce\u307e\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>3. \u5b8c\u5168\u306b\u4e0a\u4e0b\u5de6\u53f3\u4e2d\u592e\u306b\u914d\u7f6e\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u5de6\u53f3\u304a\u3088\u3073\u4e0a\u4e0b\u306e\u4e21\u65b9\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3057\u305f\u3044\u5834\u5408\u3001\u6b21\u306e\u3088\u3046\u306bflexbox\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>&lt;div <span><span>class<\/span>=\"<span>centered<\/span>-<span>container<\/span>\"&gt;\r\n  &lt;p&gt;\u3053\u308c\u306f\u5b8c\u5168\u306b\u4e2d\u592e\u306b\u914d\u7f6e\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u3067\u3059\u3002&lt;\/p&gt;\r\n&lt;\/div&gt;<\/span><\/code><\/pre>\n<pre><code><span>.centered-container<\/span> {\r\n  <span>display<\/span>: flex;\r\n  <span>justify-content<\/span>: center; <span>\/* \u6c34\u5e73\u65b9\u5411\u306b\u4e2d\u592e\u63c3\u3048 *\/<\/span>\r\n  <span>align-items<\/span>: center; <span>\/* \u5782\u76f4\u65b9\u5411\u306b\u4e2d\u592e\u63c3\u3048 *\/<\/span>\r\n  <span>height<\/span>: <span>100vh<\/span>; <span>\/* \u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u306e\u9ad8\u3055\u3092\u6307\u5b9a *\/<\/span>\r\n}<\/code><\/pre>\n<p>\u3053\u308c\u3067\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u306f\u5b8c\u5168\u306b\u4e0a\u4e0b\u5de6\u53f3\u306e\u4e2d\u592e\u306b\u914d\u7f6e\u3055\u308c\u307e\u3059\u3002flexbox\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u975e\u5e38\u306b\u5c11\u306a\u3044\u30b3\u30fc\u30c9\u3067\u3053\u306e\u914d\u7f6e\u304c\u53ef\u80fd\u306b\u306a\u308b\u305f\u3081\u3001\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<h3>4. \u53e4\u5178\u7684\u306a\u65b9\u6cd5\uff1a\u30c6\u30fc\u30d6\u30eb\u30bb\u30eb\u3092\u4f7f\u3063\u305f\u4e2d\u592e\u914d\u7f6e<\/h3>\n<p>flexbox\u304c\u767b\u5834\u3059\u308b\u524d\u3001CSS\u3067\u4e2d\u592e\u914d\u7f6e\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u3001display: table\u3084display: table-cell\u3092\u4f7f\u3046\u65b9\u6cd5\u304c\u4e00\u822c\u7684\u3067\u3057\u305f\u3002\u3053\u308c\u3082\u7d39\u4ecb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre><code>&lt;div <span><span>class<\/span>=\"<span>table<\/span>-<span>container<\/span>\"&gt;\r\n  &lt;div class=\"table-cell\"&gt;\r\n    &lt;p&gt;\u3053\u308c\u306f\u30c6\u30fc\u30d6\u30eb\u30bb\u30eb\u3092\u4f7f\u3063\u3066\u4e2d\u592e\u306b\u914d\u7f6e\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u3067\u3059\u3002&lt;\/p&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;<\/span><\/code><\/pre>\n<pre><code><span>.table-container<\/span> {\r\n  <span>display<\/span>: table;\r\n  <span>width<\/span>: <span>100%<\/span>;\r\n  <span>height<\/span>: <span>100vh<\/span>;\r\n}\r\n\r\n<span>.table-cell<\/span> {\r\n  <span>display<\/span>: table-cell;\r\n  <span>vertical-align<\/span>: middle; <span>\/* \u5782\u76f4\u65b9\u5411\u306b\u4e2d\u592e\u63c3\u3048 *\/<\/span>\r\n  <span>text-align<\/span>: center; <span>\/* \u6c34\u5e73\u65b9\u5411\u306b\u4e2d\u592e\u63c3\u3048 *\/<\/span>\r\n}<\/code><\/pre>\n<p>\u3053\u306e\u65b9\u6cd5\u3067\u306f\u3001\u89aa\u8981\u7d20\u306bdisplay: table\u3092\u8a2d\u5b9a\u3057\u3001\u5b50\u8981\u7d20\u306bdisplay: table-cell\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u3088\u3046\u306b\u52d5\u4f5c\u3055\u305b\u3001vertical-align: middle\u3067\u5782\u76f4\u4e2d\u592e\u3001text-align: center\u3067\u6c34\u5e73\u65b9\u5411\u306b\u4e2d\u592e\u63c3\u3048\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\n<hr>\n<h2 id=\"sec04\">\u5de6\u53f3\u30fb\u4e0a\u4e0b\u914d\u7f6e\u306b\u95a2\u9023\u3057\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u89e3\u8aac<\/h2>\n<h3>display\u306e\u57fa\u672c\u7684\u306a\u7406\u89e3<\/h3>\n<p>display\u306f\u3001\u8981\u7d20\u306e\u8868\u793a\u65b9\u6cd5\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002\u7279\u306b\u3001flex\u3084block\u3001inline\u306a\u3069\u3092\u4f7f\u3063\u3066\u3001\u8981\u7d20\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002display: flex\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u89aa\u8981\u7d20\u5185\u3067\u5b50\u8981\u7d20\u3092\u7c21\u5358\u306b\u914d\u7f6e\u3067\u304d\u308b\u305f\u3081\u3001\u975e\u5e38\u306b\u4fbf\u5229\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002<\/p>\n<ul>\n<li>\n<p>display: block: \u8981\u7d20\u3092\u30d6\u30ed\u30c3\u30af\u30ec\u30d9\u30eb\u3067\u8868\u793a\u3057\u3001\u5168\u5e45\u3092\u5360\u3081\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p>display: inline: \u8981\u7d20\u3092\u30a4\u30f3\u30e9\u30a4\u30f3\u3067\u8868\u793a\u3057\u3001\u5468\u308a\u306e\u30c6\u30ad\u30b9\u30c8\u3068\u540c\u3058\u30e9\u30a4\u30f3\u306b\u4e26\u3073\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p>display: flex: \u30d5\u30ec\u30c3\u30af\u30b9\u30b3\u30f3\u30c6\u30ca\u306b\u8a2d\u5b9a\u3057\u3001\u5b50\u8981\u7d20\u306e\u914d\u7f6e\u3092\u81ea\u7531\u306b\u5236\u5fa1\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>justify-content\u306e\u5fdc\u7528\u4f8b<\/h3>\n<p>justify-content\u306f\u3001flex\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30a2\u30a4\u30c6\u30e0\u3092\u6c34\u5e73\u65b9\u5411\u306b\u914d\u7f6e\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002justify-content\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30a2\u30a4\u30c6\u30e0\u306e\u9593\u9694\u3084\u914d\u7f6e\u65b9\u6cd5\u3092\u8abf\u6574\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code><span>.wrapper<\/span> {\r\n  <span>display<\/span>: flex;\r\n  <span>justify-content<\/span>: space-between; <span>\/* \u30a2\u30a4\u30c6\u30e0\u9593\u306b\u5747\u7b49\u306a\u30b9\u30da\u30fc\u30b9\u3092\u914d\u7f6e *\/<\/span>\r\n  <span>width<\/span>: <span>100%<\/span>;\r\n}<\/code><\/pre>\n<ul>\n<li>\n<p>flex-start: \u30a2\u30a4\u30c6\u30e0\u3092\u5de6\u5bc4\u305b\u306b\u914d\u7f6e<\/p>\n<\/li>\n<li>\n<p>flex-end: \u30a2\u30a4\u30c6\u30e0\u3092\u53f3\u5bc4\u305b\u306b\u914d\u7f6e<\/p>\n<\/li>\n<li>\n<p>center: \u30a2\u30a4\u30c6\u30e0\u3092\u4e2d\u592e\u306b\u914d\u7f6e<\/p>\n<\/li>\n<li>\n<p>space-between: \u30a2\u30a4\u30c6\u30e0\u9593\u306b\u5747\u7b49\u306b\u30b9\u30da\u30fc\u30b9\u3092\u914d\u7f6e<\/p>\n<\/li>\n<li>\n<p>space-around: \u30a2\u30a4\u30c6\u30e0\u9593\u3068\u4e21\u7aef\u306b\u5747\u7b49\u306b\u30b9\u30da\u30fc\u30b9\u3092\u914d\u7f6e<\/p>\n<\/li>\n<\/ul>\n<h3>align-items\u306e\u5fdc\u7528\u4f8b<\/h3>\n<p>align-items\u306f\u3001flex\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30a2\u30a4\u30c6\u30e0\u3092\u5782\u76f4\u65b9\u5411\u306b\u914d\u7f6e\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code><span>.wrapper<\/span> {\r\n  <span>display<\/span>: flex;\r\n  <span>align-items<\/span>: stretch; <span>\/* \u9ad8\u3055\u3092\u89aa\u8981\u7d20\u3068\u540c\u3058\u306b\u3057\u3066\u30a2\u30a4\u30c6\u30e0\u3092\u5f15\u304d\u4f38\u3070\u3059 *\/<\/span>\r\n  <span>height<\/span>: <span>100vh<\/span>;\r\n}<\/code><\/pre>\n<ul>\n<li>\n<p>flex-start: \u30a2\u30a4\u30c6\u30e0\u3092\u4e0a\u306b\u63c3\u3048\u308b<\/p>\n<\/li>\n<li>\n<p>flex-end: \u30a2\u30a4\u30c6\u30e0\u3092\u4e0b\u306b\u63c3\u3048\u308b<\/p>\n<\/li>\n<li>\n<p>center: \u30a2\u30a4\u30c6\u30e0\u3092\u4e2d\u592e\u306b\u63c3\u3048\u308b<\/p>\n<\/li>\n<li>\n<p>stretch: \u30a2\u30a4\u30c6\u30e0\u3092\u89aa\u8981\u7d20\u306e\u9ad8\u3055\u306b\u5408\u308f\u305b\u3066\u5f15\u304d\u4f38\u3070\u3059<\/p>\n<\/li>\n<\/ul>\n<h3>flex-direction\u306b\u3088\u308b\u7e26\u3001\u6a2a\u306e\u65b9\u5411\u8ee2\u63db<\/h3>\n<p>flex-direction\u306f\u3001\u30a2\u30a4\u30c6\u30e0\u306e\u914d\u7f6e\u65b9\u5411\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001flex\u306f\u6c34\u5e73\u65b9\u5411\u306b\u30a2\u30a4\u30c6\u30e0\u3092\u914d\u7f6e\u3057\u307e\u3059\u304c\u3001flex-direction\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u7e26\u65b9\u5411\u306b\u914d\u7f6e\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code><span>.wrapper<\/span> {\r\n  <span>display<\/span>: flex;\r\n  <span>flex-direction<\/span>: column; <span>\/* \u30a2\u30a4\u30c6\u30e0\u3092\u7e26\u65b9\u5411\u306b\u4e26\u3079\u308b *\/<\/span>\r\n}<\/code><\/pre>\n<ul>\n<li>\n<p>row: \u30a2\u30a4\u30c6\u30e0\u3092\u6c34\u5e73\u65b9\u5411\u306b\u4e26\u3079\u308b\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\uff09<\/p>\n<\/li>\n<li>\n<p>column: \u30a2\u30a4\u30c6\u30e0\u3092\u7e26\u65b9\u5411\u306b\u4e26\u3079\u308b<\/p>\n<\/li>\n<li>\n<p>row-reverse: \u30a2\u30a4\u30c6\u30e0\u3092\u9006\u9806\u306b\u6c34\u5e73\u65b9\u5411\u306b\u4e26\u3079\u308b<\/p>\n<\/li>\n<li>\n<p>column-reverse: \u30a2\u30a4\u30c6\u30e0\u3092\u9006\u9806\u306b\u7e26\u65b9\u5411\u306b\u4e26\u3079\u308b<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h2 id=\"sec05\">\u3088\u304f\u3042\u308b\u554f\u984c\u3068\u305d\u306e\u89e3\u6c7a\u7b56<\/h2>\n<p>\u300cCSS\u3067\u4e2d\u592e\u63c3\u3048\u3092\u3059\u308b\u3068\u304d\u306b\u3001\u306a\u305c\u304b\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u300d\u3068\u3044\u3046\u5834\u5408\u3001\u8003\u3048\u3089\u308c\u308b\u554f\u984c\u3068\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u89aa\u8981\u7d20\u306e\u9ad8\u3055\u304c\u4e0d\u5341\u5206<\/strong>: \u89aa\u8981\u7d20\u306e\u9ad8\u3055\u304c\u5341\u5206\u3067\u306a\u3044\u5834\u5408\u3001\u5782\u76f4\u65b9\u5411\u306e\u4e2d\u592e\u63c3\u3048\u304c\u6b63\u3057\u304f\u6a5f\u80fd\u3057\u307e\u305b\u3093\u3002height\u3092\u6307\u5b9a\u3057\u3066\u3001\u89aa\u8981\u7d20\u304c\u5341\u5206\u306a\u9ad8\u3055\u3092\u6301\u3064\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5e45\u3084\u9ad8\u3055\u306e\u6307\u5b9a\u304c\u629c\u3051\u3066\u3044\u308b<\/strong>: \u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u5e45\u3084\u9ad8\u3055\u3092\u660e\u793a\u7684\u306b\u6307\u5b9a\u3057\u3066\u3044\u306a\u3044\u3068\u3001\u4e2d\u592e\u63c3\u3048\u304c\u3046\u307e\u304f\u6a5f\u80fd\u3057\u307e\u305b\u3093\u3002\u7279\u306bwidth\u3084height\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u30d5\u30ed\u30fc\u30c8\u8981\u7d20\u306e\u4f7f\u7528<\/strong>: float\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u89aa\u8981\u7d20\u304c\u9ad8\u3055\u3092\u6301\u305f\u306a\u304f\u306a\u308a\u3001\u4e2d\u592e\u63c3\u3048\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002float\u3092\u4f7f\u3046\u5834\u5408\u306fclearfix\u3092\u4f7f\u3046\u304b\u3001flexbox\u306b\u5207\u308a\u66ff\u3048\u305f\u307b\u3046\u304c\u7c21\u5358\u3067\u3059\u3002<\/p>\n<\/li>\n<\/ol>\n<hr>\n<h2 id=\"sec06\">\u307e\u3068\u3081<\/h2>\n<p>CSS\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u592e\u63c3\u3048\u306b\u3059\u308b\u3053\u3068\u306f\u3001\u30a6\u30a7\u30d6\u30c7\u30b6\u30a4\u30f3\u306b\u304a\u3051\u308b\u57fa\u672c\u7684\u306a\u30b9\u30ad\u30eb\u3067\u3059\u3002flexbox\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u304c\u6700\u3082\u7c21\u5358\u3067\u3042\u308a\u3001\u7279\u306b\u521d\u5fc3\u8005\u306b\u306f\u304a\u3059\u3059\u3081\u3067\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u65b9\u6cd5\u3092\u7406\u89e3\u3057\u3001\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u6700\u9069\u306a\u65b9\u6cd5\u3092\u9078\u3076\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<h2>\u3010\u95a2\u9023\u30ea\u30f3\u30af\u3011<\/h2>\n<ul>\n<li>\n<p><a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/CSS\/\">CSS: \u30ab\u30b9\u30b1\u30fc\u30c7\u30a3\u30f3\u30b0\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8<\/a><\/p>\n<\/li>\n<\/ul>\n<h2>\u3010\u5185\u90e8\u30ea\u30f3\u30af\u3011<\/h2>\n<ul>\n<li>\n<p><a href=\"https:\/\/route-zero.com\/recruit\/route\/901\/\">\u3010\u7c21\u5358\u306b\u8a66\u305b\u308b\u3011CSS\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u4ed5\u7d44\u307f\u3092\u5fb9\u5e95\u89e3\u8aac\uff01\u521d\u5fc3\u8005\u3067\u3082\u308f\u304b\u308b\u52d5\u304d\u306e\u4f5c\u308a\u65b9<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/route-zero.com\/recruit\/route\/951\/\">\u3010\u30b3\u30d4\u30da\u3067OK\u3011\u7acb\u4f53\u611f\u30fb3D\u30fb\u30b9\u30b1\u30fc\u30eb\u5909\u5316\uff01Swiper\u306e\u30e6\u30cb\u30fc\u30af\u306a\u30a8\u30d5\u30a7\u30af\u30c8\u96c6<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/route-zero.com\/recruit\/route\/976\/\">\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011Swiper\u3068Slick\u306e\u9055\u3044\u3092\u89e3\u8aac\uff01\u4f7f\u3044\u65b9\uff06\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306e\u30dd\u30a4\u30f3\u30c8<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n","protected":false},"featured_media":1077,"template":"","_links":{"self":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route\/1076"}],"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\/1077"}],"wp:attachment":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media?parent=1076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}