{"id":1863,"date":"2025-11-12T11:00:13","date_gmt":"2025-11-12T02:00:13","guid":{"rendered":"https:\/\/route-zero.com\/recruit\/?post_type=route&#038;p=1863"},"modified":"2026-01-23T11:00:37","modified_gmt":"2026-01-23T02:00:37","slug":"%e3%83%a1%e3%83%87%e3%82%a3%e3%82%a2%e3%82%af%e3%82%a8%e3%83%aa%e9%a0%86%e7%95%aa%e3%81%afmin-width%ef%bc%9fmax-width%ef%bc%9f%e5%ae%9f%e8%a3%85%e4%be%8b%e3%81%a8%e6%af%94%e8%bc%83%e3%82%ac%e3%82%a4","status":"publish","type":"route","link":"https:\/\/route-zero.com\/recruit\/route\/1863\/","title":{"rendered":"\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u9806\u756a\u306fmin-width\uff1fmax-width\uff1f\u5b9f\u88c5\u4f8b\u3068\u6bd4\u8f03\u30ac\u30a4\u30c9"},"content":{"rendered":"<div>\n<h2>\u306f\u3058\u3081\u306b\uff5c\u3053\u306e\u8a18\u4e8b\u3067\u5f97\u3089\u308c\u308b\u4fa1\u5024<\/h2>\n<p>\n    \u300c\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u306e\u9806\u756a\u3001min-width\u3068max-width\u306f\u3069\u3061\u3089\u304c\u6b63\u89e3\uff1f\u300d\u300c\u30ec\u30d3\u30e5\u30fc\u3067\u8a18\u8ff0\u9806\u3092\u6307\u6458\u3055\u308c\u305f\u2026\u306a\u305c\u9806\u756a\u304c\u91cd\u8981\u306a\u306e\uff1f\u300d<br \/>\n    Web\u5236\u4f5c\u306e\u73fe\u5834\u3067\u3001\u3053\u3046\u3057\u305f\u60a9\u307f\u306b\u76f4\u9762\u3057\u3066\u3044\u307e\u305b\u3093\u304b\uff1f<br \/>\n    \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u66f8\u304d\u65b9\u304c\u30d0\u30e9\u30d0\u30e9\u3001<strong>min-width<\/strong>\u3068<strong>max-width<\/strong>\u304c\u6df7\u5728\u3057\u3001CSS\u304c\u610f\u56f3\u305b\u305a\u7834\u7dbb\u2015\u2015\u79c1\u305f\u3061\u304c\u3088\u304f\u201c\u3064\u307e\u3065\u304f\u201d\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<br \/>\n    \u3067\u3082\u3001\u3054\u5b89\u5fc3\u3092\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u300c\u306a\u305c\u9806\u756a\u304c\u5927\u5207\u306a\u306e\u304b\uff1f\u300d\u304b\u3089<strong>\u5b9f\u8df5\u7684\u306a\u30b3\u30fc\u30c9\u4f8b<\/strong>\u3001<strong>\u5931\u6557\u3057\u306a\u3044\u66f8\u304d\u65b9\u306e\u30eb\u30fc\u30eb<\/strong>\u307e\u3067\u3001\u73fe\u5834\u76ee\u7dda\u3067\u5fb9\u5e95\u89e3\u8aac\u3057\u307e\u3059\u3002\n  <\/p>\n<p>\n    \uff08CSS\u8a2d\u8a08\u3084\u547d\u540d\u898f\u5247\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1642\/\" target=\"_blank\" rel=\"noopener\">CSS\u8a2d\u8a08\u3067\u4fdd\u5b88\u6027\u3068\u62e1\u5f35\u6027\u3092\u9ad8\u3081\u308b\u65b9\u6cd5\uff5cBEM\u30fbOOCSS\u30fbSMACSS\u5fb9\u5e95\u6bd4\u8f03<\/a\n    >\u300f\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n  <\/p>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aCSS<\/strong><br \/>Web\u30da\u30fc\u30b8\u306e\u898b\u305f\u76ee\uff08\u8272\u30fb\u30ec\u30a4\u30a2\u30a6\u30c8\u30fb\u30b5\u30a4\u30ba\u306a\u3069\uff09\u3092\u6307\u5b9a\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u8a00\u8a9e\u3002HTML\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3046\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea<\/strong><br \/>\u753b\u9762\u30b5\u30a4\u30ba\u3084\u30c7\u30d0\u30a4\u30b9\u306e\u7a2e\u985e\u306b\u5fdc\u3058\u3066CSS\u3092\u5207\u308a\u66ff\u3048\u308b\u4ed5\u7d44\u307f\u3002\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3\u306e\u8981\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1amin-width \/ max-width<\/strong><br \/>CSS\u306e\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u3067\u4f7f\u3046\u6761\u4ef6\u3002min-width\u306f\u300c\u4ee5\u4e0a\u300d\u3001max-width\u306f\u300c\u4ee5\u4e0b\u300d\u3092\u610f\u5473\u3057\u3001\u3069\u3061\u3089\u3092\u57fa\u6e96\u306b\u3059\u308b\u304b\u3067\u8a2d\u8a08\u65b9\u91dd\u304c\u5909\u308f\u308b\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3<\/strong><br \/>PC\u30fb\u30b9\u30de\u30db\u306a\u3069\u69d8\u3005\u306a\u753b\u9762\u30b5\u30a4\u30ba\u306b\u81ea\u52d5\u5bfe\u5fdc\u3059\u308bWeb\u30c7\u30b6\u30a4\u30f3\u624b\u6cd5\u3002<\/p>\n<\/blockquote>\n<hr \/>\n<h2>1. \u306a\u305cCSS\u306e\u201c\u9806\u756a\u201d\u304c\u3059\u3079\u3066\uff1f\u2014 \u30ab\u30b9\u30b1\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u539f\u5247<\/h2>\n<h3>\u25a0 \u30ab\u30b9\u30b1\u30fc\u30c7\u30a3\u30f3\u30b0\uff08Cascading\uff09\u3068\u306f\uff1f<\/h3>\n<p>\n    \u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u3067\u9806\u756a\u304c\u91cd\u8981\u306a\u7406\u7531\u3001\u305d\u308c\u306f<strong>\u30ab\u30b9\u30b1\u30fc\u30c7\u30a3\u30f3\u30b0\uff08Cascading\uff09<\/strong>\u3068\u3044\u3046CSS\u306e\u5927\u539f\u5247\u306b\u3042\u308a\u307e\u3059\u3002<br \/>\n    \u540c\u3058\u30bb\u30ec\u30af\u30bf\u306b\u8907\u6570\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u3001<strong>\u5f8c\u304b\u3089\u66f8\u304b\u308c\u305f\u6307\u5b9a\u304c\u512a\u5148\uff08\u5f8c\u52dd\u3061\uff09<\/strong>\u3067\u3059\u3002\n  <\/p>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30ab\u30b9\u30b1\u30fc\u30c7\u30a3\u30f3\u30b0<\/strong><br \/>CSS\u306e\u300c\u5f8c\u52dd\u3061\u300d\u30eb\u30fc\u30eb\u3002\u8907\u6570\u306e\u30b9\u30bf\u30a4\u30eb\u304c\u540c\u3058\u8981\u7d20\u306b\u6307\u5b9a\u3055\u308c\u305f\u5834\u5408\u3001\u5f8c\u304b\u3089\u66f8\u304b\u308c\u305f\u3082\u306e\u304c\u512a\u5148\u3055\u308c\u308b\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30bb\u30ec\u30af\u30bf<\/strong><br \/>CSS\u3067\u30b9\u30bf\u30a4\u30eb\u3092\u9069\u7528\u3059\u308b\u5bfe\u8c61\uff08\u8981\u7d20\uff09\u3092\u6307\u5b9a\u3059\u308b\u8a18\u8ff0\u65b9\u6cd5\u3002\u4f8b\uff1a.container, p, #header \u306a\u3069\u3002<\/p>\n<\/blockquote>\n<pre><code>p {\r\n  color: blue;\r\n}\r\np {\r\n  color: red;\r\n}\r\n<\/code><\/pre>\n<p>\n    \u3053\u306e\u5834\u5408\u3001<code>red<\/code>\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002<br \/>\n    \u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u3082\u540c\u3058\u3002\u300c\u9806\u756a\u300d\u306b\u4e00\u8cab\u6027\u304c\u306a\u3044\u3068\u3001\u3069\u306e\u30b9\u30bf\u30a4\u30eb\u304c\u6700\u7d42\u7684\u306b\u6709\u52b9\u306a\u306e\u304b\u304c\u4e88\u6e2c\u3067\u304d\u305a\u3001\u7834\u7dbb\u306e\u6e29\u5e8a\u306b\u3002\n  <\/p>\n<p><strong>\u60aa\u3044\u4f8b\uff1a\u9806\u756a\u30fb\u8a18\u8ff0\u6cd5\u304c\u30d0\u30e9\u30d0\u30e9<\/strong><\/p>\n<pre><code>@media (min-width: 1024px) {\r\n  .container { background-color: lightblue; }\r\n}\r\n@media (max-width: 767px) {\r\n  .container { background-color: lightpink; }\r\n}\r\n<\/code><\/pre>\n<p><strong>\u610f\u56f3\u305b\u306c\u4e0a\u66f8\u304d<\/strong>\u304c\u767a\u751f\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr \/>\n<h2>2. \u3069\u3063\u3061\u3092\u9078\u3076\uff1f\u2014 \u30e2\u30d0\u30a4\u30eb\u30d5\u30a1\u30fc\u30b9\u30c8\u3068\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30d5\u30a1\u30fc\u30b9\u30c8<\/h2>\n<h3>\u25a0 \u8a3a\u65ad\u30c1\u30e3\u30fc\u30c8\u3067\u6700\u9069\u306a\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u9078\u3076<\/h3>\n<ol>\n<li>\n      \u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\uff1f<\/p>\n<ul>\n<li>\u306f\u3044 \u2192 <strong>min-width\uff08\u30e2\u30d0\u30a4\u30eb\u30d5\u30a1\u30fc\u30b9\u30c8\uff09<\/strong>\u304c\u5f37\u304f\u63a8\u5968<\/li>\n<li>\u3044\u3044\u3048 \u2192 2\u3078<\/li>\n<\/ul>\n<\/li>\n<li>\n      \u65e2\u5b58\u30b3\u30fc\u30c9\u304cmax-width\u4e2d\u5fc3\uff1f<\/p>\n<ul>\n<li>\u306f\u3044 \u2192 \u7121\u7406\u306a\u79fb\u884c\u306f\u305b\u305a<strong>max-width\uff08\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30d5\u30a1\u30fc\u30b9\u30c8\uff09<\/strong>\u3067\u7d71\u4e00<\/li>\n<li>\u3044\u3044\u3048 \u2192 3\u3078<\/li>\n<\/ul>\n<\/li>\n<li>\n      \u30b9\u30de\u30db\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u304c\u591a\u3044\uff1f<\/p>\n<ul>\n<li>\u306f\u3044 \u2192 <strong>\u30e2\u30d0\u30a4\u30eb\u30d5\u30a1\u30fc\u30b9\u30c8<\/strong>\u6700\u9069<\/li>\n<li>\u3044\u3044\u3048 \u2192 \u7ba1\u7406\u3057\u3084\u3059\u3055\u91cd\u8996\u3067<strong>\u30e2\u30d0\u30a4\u30eb\u30d5\u30a1\u30fc\u30b9\u30c8<\/strong>\u63a8\u5968<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr \/>\n<h2>3. min-width\uff08\u30e2\u30d0\u30a4\u30eb\u30d5\u30a1\u30fc\u30b9\u30c8\uff09\u306e\u66f8\u304d\u65b9\u30fb\u30e1\u30ea\u30c3\u30c8<\/h2>\n<h3>\u25a0 \u30e2\u30d0\u30a4\u30eb\u30d5\u30a1\u30fc\u30b9\u30c8\u306e\u57fa\u672c<\/h3>\n<p>\n    <strong>\u30e2\u30d0\u30a4\u30eb\u30d5\u30a1\u30fc\u30b9\u30c8<\/strong>\u306f\u300c\u5c0f\u3055\u3044\u753b\u9762\u300d\u3092\u57fa\u6e96\u306b\u3001\u753b\u9762\u304c\u5e83\u304c\u308b\u307b\u3069\u8ffd\u52a0\u3067\u4e0a\u66f8\u304d\u3057\u3066\u3044\u304f\u65b9\u5f0f\u3067\u3059\u3002<br \/>\n    \u8a18\u8ff0\u9806\u306f<strong>min-width\u3092\u6607\u9806<\/strong>\u306b\u4e26\u3079\u307e\u3059\u3002\n  <\/p>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30e2\u30d0\u30a4\u30eb\u30d5\u30a1\u30fc\u30b9\u30c8<\/strong><br \/>\u30b9\u30de\u30db\u306a\u3069\u5c0f\u3055\u3044\u753b\u9762\u3092\u57fa\u6e96\u306b\u8a2d\u8a08\u3057\u3001\u753b\u9762\u304c\u5e83\u304c\u308b\u307b\u3069\u30b9\u30bf\u30a4\u30eb\u3092\u8ffd\u52a0\u3059\u308b\u624b\u6cd5\u3002\u73fe\u4ee3Web\u306e\u4e3b\u6d41\u3002<\/p>\n<\/blockquote>\n<pre><code>.container {\r\n  width: 100%;\r\n}\r\n@media (min-width: 768px) {\r\n  .container { width: 750px; }\r\n}\r\n@media (min-width: 1024px) {\r\n  .container { width: 980px; }\r\n}\r\n<\/code><\/pre>\n<ul>\n<li>\u30b3\u30fc\u30c9\u304c\u30b7\u30f3\u30d7\u30eb\u3067<strong>\u4fdd\u5b88\u3057\u3084\u3059\u3044<\/strong><\/li>\n<li>\u73fe\u4ee3\u306e\u30a2\u30af\u30bb\u30b9\u5b9f\u614b\u306b\u6700\u9069<\/li>\n<li>\u30e2\u30d0\u30a4\u30eb\u7aef\u672b\u3067\u7121\u99c4\u306a\u30b9\u30bf\u30a4\u30eb\u3092\u8aad\u307e\u306a\u3044\u305f\u3081<strong>\u8868\u793a\u304c\u901f\u3044<\/strong><\/li>\n<\/ul>\n<p>\n    \uff08CSS\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306e\u57fa\u790e\u3084\u30b5\u30f3\u30d7\u30eb\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1287\" target=\"_blank\" rel=\"noopener\">\u521d\u5fc3\u8005\u5411\u3051CSS\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u89e3\u8aac\uff5c2025\u5e74\u5bfe\u5fdc\u30fb\u30b5\u30f3\u30d7\u30eb\u4ed8\u304d\u3067\u30b9\u30de\u30db\u5bfe\u5fdc\u3092\u30de\u30b9\u30bf\u30fc<\/a\n    >\u300f\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n  <\/p>\n<hr \/>\n<h2>4. max-width\uff08\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30d5\u30a1\u30fc\u30b9\u30c8\uff09\u306e\u66f8\u304d\u65b9\u30fb\u6ce8\u610f\u70b9<\/h2>\n<h3>\u25a0 \u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30d5\u30a1\u30fc\u30b9\u30c8\u306e\u57fa\u672c<\/h3>\n<p>\n    <strong>\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30d5\u30a1\u30fc\u30b9\u30c8<\/strong>\u306f\u300c\u5927\u304d\u3044\u753b\u9762\u300d\u3092\u57fa\u6e96\u306b\u3001\u72ed\u304f\u306a\u3063\u305f\u6642\u306b\u4e0a\u66f8\u304d\u3057\u307e\u3059\u3002<br \/>\n    <strong>max-width\u3092\u964d\u9806<\/strong>\u3067\u4e26\u3079\u307e\u3059\u3002\n  <\/p>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30d5\u30a1\u30fc\u30b9\u30c8<\/strong><br \/>PC\u306a\u3069\u5927\u304d\u3044\u753b\u9762\u3092\u57fa\u6e96\u306b\u8a2d\u8a08\u3057\u3001\u753b\u9762\u304c\u72ed\u304f\u306a\u308b\u307b\u3069\u30b9\u30bf\u30a4\u30eb\u3092\u4e0a\u66f8\u304d\u3059\u308b\u624b\u6cd5\u3002\u53e4\u3044\u6848\u4ef6\u3067\u591a\u3044\u3002<\/p>\n<\/blockquote>\n<pre><code>.container {\r\n  width: 980px;\r\n}\r\n@media (max-width: 1023px) {\r\n  .container { width: 750px; }\r\n}\r\n@media (max-width: 767px) {\r\n  .container { width: 100%; }\r\n}\r\n<\/code><\/pre>\n<ul>\n<li>\u30b9\u30bf\u30a4\u30eb\u306e\u300c\u6253\u3061\u6d88\u3057\u300d\u8a18\u8ff0\u304c\u5897\u3048\u3084\u3059\u3044<\/li>\n<li>\u53e4\u3044\u6848\u4ef6\u3067\u591a\u3044\u304c\u3001\u65b0\u898f\u306a\u3089\u975e\u63a8\u5968<\/li>\n<\/ul>\n<hr \/>\n<h2>5. \u30e2\u30d0\u30a4\u30eb\u30d5\u30a1\u30fc\u30b9\u30c8\u3067\u306e\u5b9f\u88c53\u30b9\u30c6\u30c3\u30d7<\/h2>\n<h3>\u25a0 1. \u30d9\u30fc\u30b9\u30b9\u30bf\u30a4\u30eb\uff08\u30b9\u30de\u30db\u7528\uff09\u3092\u5b9a\u7fa9<\/h3>\n<pre><code>body { font-family: sans-serif; line-height: 1.6; }\r\n.header, .footer { padding: 1rem; }\r\n.main-contents { padding: 1rem; }\r\n<\/code><\/pre>\n<h3>\u25a0 2. \u30bf\u30d6\u30ec\u30c3\u30c8\u7528\uff08min-width: 768px\uff09<\/h3>\n<pre><code>@media (min-width: 768px) {\r\n  .main-contents { display: flex; gap: 2rem; }\r\n  .article { flex: 2; }\r\n  .sidebar { flex: 1; }\r\n}\r\n<\/code><\/pre>\n<h3>\u25a0 3. PC\u7528\uff08min-width: 1024px\uff09<\/h3>\n<pre><code>@media (min-width: 1024px) {\r\n  .container { max-width: 1200px; margin: 0 auto; }\r\n  .header { padding: 2rem; }\r\n}\r\n<\/code><\/pre>\n<p><strong>\u30dd\u30a4\u30f3\u30c8\uff1a<\/strong>\u9806\u756a\u306f\u5fc5\u305a\u6607\u9806\uff01<br \/>\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<\/p>\n<hr \/>\n<h2>6. \u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u304c\u52b9\u304b\u306a\u30444\u5927\u539f\u56e0\u3068\u5bfe\u51e6<\/h2>\n<ul>\n<li><strong>min-width\u3068max-width\u304c\u6df7\u5728\u30fb\u9806\u756a\u304c\u9006<\/strong><br \/>\u66f8\u304d\u65b9\u304c\u7d71\u4e00\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u610f\u56f3\u3057\u306a\u3044\u4e0a\u66f8\u304d\u304c\u767a\u751f<\/li>\n<li><strong>viewport\u30e1\u30bf\u30bf\u30b0\u306e\u629c\u3051<\/strong><br \/><strong>&lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1.0&#8243;&gt;<\/strong>\u3092\u5fc5\u305a&lt;head&gt;\u306b<\/li>\n<li><strong>\u30bb\u30ec\u30af\u30bf\u306e\u8a73\u7d30\u5ea6\u8ca0\u3051<\/strong><br \/>\u8a73\u7d30\u5ea6\u306e\u9ad8\u3044\u5916\u90e8\u30b9\u30bf\u30a4\u30eb\u304c\u512a\u5148\u3055\u308c\u3066\u3044\u308b\u53ef\u80fd\u6027<\/li>\n<li><strong>\u30d6\u30e9\u30a6\u30b6\u306e\u30ad\u30e3\u30c3\u30b7\u30e5<\/strong><br \/>Ctrl+F5\u3084Cmd+Shift+R\u3067\u300c\u30b9\u30fc\u30d1\u30fc\u30ea\u30ed\u30fc\u30c9\u300d\u3092<\/li>\n<\/ul>\n<hr \/>\n<h2>7. \u30c1\u30fc\u30e0\u3067\u5dee\u304c\u3064\u304f\uff01Sass(SCSS)\u3067\u306eMixin\u904b\u7528<\/h2>\n<p><strong>\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u5024\u3092\u4e00\u5143\u7ba1\u7406\uff0b\u5171\u901a\u5316\u3067\u30df\u30b9\u524a\u6e1b<\/strong><\/p>\n<pre><code>$breakpoints: ('md': 768px, 'lg': 1024px, 'xl': 1280px);\r\n\r\n@mixin mq($breakpoint) {\r\n  @if map-has-key($breakpoints, $breakpoint) {\r\n    @media (min-width: map-get($breakpoints, $breakpoint)) {\r\n      @content;\r\n    }\r\n  }\r\n}\r\n<\/code><\/pre>\n<p><strong>\u4f7f\u3044\u65b9\uff1a<\/strong><\/p>\n<pre><code>.card {\r\n  width: 100%;\r\n  @include mq('md') { width: 50%; }\r\n  @include mq('lg') { width: 33.3%; }\r\n}\r\n<\/code><\/pre>\n<ul>\n<li>\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u4fee\u6b63\u3082\u4e00\u7b87\u6240\u3067OK<\/li>\n<li>\u5c5e\u4eba\u6027\u3092\u306a\u304f\u3057\u30c1\u30fc\u30e0\u306e\u54c1\u8cea\u304c\u4e0a\u304c\u308b<\/li>\n<\/ul>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aSass(SCSS)<\/strong><br \/>CSS\u3092\u3088\u308a\u52b9\u7387\u7684\u306b\u66f8\u304f\u305f\u3081\u306e\u62e1\u5f35\u8a00\u8a9e\u3002\u5909\u6570\u3084\u95a2\u6570\uff08Mixin\uff09\u306a\u3069\u304c\u4f7f\u3048\u308b\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aMixin<\/strong><br \/>Sass\u3067\u4f7f\u3048\u308b\u300c\u5171\u901a\u51e6\u7406\u306e\u90e8\u54c1\u300d\u3002\u8907\u6570\u7b87\u6240\u3067\u540c\u3058\u30b9\u30bf\u30a4\u30eb\u3092\u4f7f\u3044\u56de\u305b\u308b\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8<\/strong><br \/>\u753b\u9762\u30b5\u30a4\u30ba\u306e\u533a\u5207\u308a\u3068\u306a\u308b\u5024\u3002\u4f8b\uff1a768px, 1024px \u306a\u3069\u3002<\/p>\n<\/blockquote>\n<hr \/>\n<h2>8. \u3088\u304f\u3042\u308b\u8cea\u554fQ&#038;A<\/h2>\n<ul>\n<li><strong>Q1. \u5358\u4f4d\u306fpx\uff1fem\uff1frem\uff1f<\/strong><br \/>\u2192 <strong>rem<\/strong>\u63a8\u5968\u3002\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u5bfe\u5fdc\u3057\u3084\u3059\u3044\u3002<\/li>\n<li><strong>Q2. \u8907\u96d1\u306a\u6761\u4ef6\u6307\u5b9a\u306e\u66f8\u304d\u65b9\u306f\uff1f<\/strong><br \/>\u2192 <strong>@media (min-width: 768px) and (max-width: 1023px)<\/strong>\u3002\u300cor\u300d\u306f\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u3002<\/li>\n<li><strong>Q3. \u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u306f\u53e4\u3044\uff1f@container\u3068\u306e\u9055\u3044\u306f\uff1f<\/strong><br \/>\u2192 \u76ee\u7684\u304c\u9055\u3046\u3002\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u306f<strong>\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8<\/strong>\u3001\u30b3\u30f3\u30c6\u30ca\u30af\u30a8\u30ea\u306f<strong>\u89aa\u8981\u7d20<\/strong>\u57fa\u6e96\u3002<\/li>\n<li><strong>Q4. JavaScript\u3067\u5224\u5b9a\u3057\u305f\u3044<\/strong><br \/>\u2192 <strong>window.matchMedia(&#8216;(min-width: 1024px)&#8217;).matches<\/strong>\u3067\u5224\u5b9a\u53ef\u80fd\u3002<\/li>\n<li><strong>Q5. \u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u3067\u6c17\u3092\u3064\u3051\u308b\u3053\u3068\u306f\uff1f<\/strong><br \/>\u2192 <strong>rem<\/strong>\u5358\u4f4d\u4f7f\u7528\u3084<strong>prefers-reduced-motion<\/strong>\u306b\u3088\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u6291\u5236\u306a\u3069\u3002<\/li>\n<\/ul>\n<p>\n    \uff08CSS\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u4ed5\u7d44\u307f\u3084\u5b9f\u88c5\u4f8b\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1091\/\" target=\"_blank\" rel=\"noopener\">\u3010\u4fdd\u5b58\u7248\u3011Web\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\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n  <\/p>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3<\/strong><br \/>\u8ab0\u3067\u3082\u4f7f\u3044\u3084\u3059\u3044Web\u3092\u76ee\u6307\u3059\u8003\u3048\u65b9\u3002\u6587\u5b57\u30b5\u30a4\u30ba\u3084\u8272\u3001\u52d5\u304d\u306e\u6291\u5236\u306a\u3069\u304c\u30dd\u30a4\u30f3\u30c8\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1arem \/ em \/ px<\/strong><br \/>CSS\u306e\u5358\u4f4d\u3002rem\u306f\u30eb\u30fc\u30c8\u8981\u7d20\u57fa\u6e96\u3001em\u306f\u89aa\u8981\u7d20\u57fa\u6e96\u3001px\u306f\u7d76\u5bfe\u5024\u3002rem\u306f\u62e1\u5927\u30fb\u7e2e\u5c0f\u306b\u5f37\u3044\u3002<\/p>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1aprefers-reduced-motion<\/strong><br \/>\u30e6\u30fc\u30b6\u30fc\u304c\u300c\u52d5\u304d\u3092\u6e1b\u3089\u3057\u305f\u3044\u300d\u3068\u8a2d\u5b9a\u3057\u305f\u5834\u5408\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u6291\u5236\u3059\u308bCSS\u30e1\u30c7\u30a3\u30a2\u7279\u6027\u3002<\/p>\n<\/blockquote>\n<hr \/>\n<h2>9. \u307e\u3068\u3081\u2014\u300c\u9806\u756a\u300d\u3067\u8ff7\u308f\u306a\u3044\u3001\u4fdd\u5b88\u6027\u306e\u9ad8\u3044CSS\u3092<\/h2>\n<ul>\n<li><strong>CSS\u306f\u5f8c\u52dd\u3061\u3001\u9806\u756a\u3067\u610f\u56f3\u305b\u306c\u4e0a\u66f8\u304d\u306b\u6ce8\u610f<\/strong><\/li>\n<li><strong>\u30e2\u30d0\u30a4\u30eb\u30d5\u30a1\u30fc\u30b9\u30c8\uff08min-width\u6607\u9806\uff09\u304c\u73fe\u4ee3\u306e\u4e3b\u6d41\u30fb\u63a8\u5968<\/strong><\/li>\n<li><strong>\u56f0\u3063\u305f\u3089\u300c\u9806\u756a\u6df7\u5728\u300d\u300cviewport\u30bf\u30b0\u300d\u300c\u8a73\u7d30\u5ea6\u300d\u300c\u30ad\u30e3\u30c3\u30b7\u30e5\u300d\u3092\u30c1\u30a7\u30c3\u30af<\/strong><\/li>\n<li><strong>Sass\u306eMixin\u6d3b\u7528\u3067\u52b9\u7387UP\u3001\u30c1\u30fc\u30e0\u958b\u767a\u306b\u3082\u5f37\u3044<\/strong><\/li>\n<\/ul>\n<p>\n    \u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u306f\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u8a2d\u8a08\u306e\u6839\u5e79\u3067\u3059\u3002<br \/>\n    \u300c\u4e00\u65b9\u5411\u306b\u66f8\u304f\u300d\u539f\u5247\u3060\u3051\u3067\u3001\u4fdd\u5b88\u6027\u30fb\u62e1\u5f35\u6027\u304c\u683c\u6bb5\u306b\u5411\u4e0a\u3057\u307e\u3059\u3002<br \/>\n    \u305c\u3072\u624b\u5143\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3001\u66f8\u304d\u65b9\u3092\u7d71\u4e00\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\n  <\/p>\n<hr \/>\n<\/div>\n","protected":false},"featured_media":1864,"template":"","_links":{"self":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route\/1863"}],"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\/1864"}],"wp:attachment":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media?parent=1863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}