{"id":16529,"date":"2026-07-09T07:38:17","date_gmt":"2026-07-09T07:38:17","guid":{"rendered":"https:\/\/withcode.tech\/media\/?p=16529"},"modified":"2026-07-10T07:32:49","modified_gmt":"2026-07-10T07:32:49","slug":"hamburger-menu-html-css","status":"publish","type":"post","link":"https:\/\/withcode.tech\/media\/hamburger-menu-html-css\/","title":{"rendered":"\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306e\u4f5c\u308a\u65b9\uff5cHTML\/CSS\u3060\u3051\u3067\u52d5\u304f\u5b9f\u88c5\u3092\u30b3\u30d4\u30da\u89e3\u8aac"},"content":{"rendered":"<div class=\"swell-block-balloon\">\n<div class=\"c-balloon -bln-left\" data-col=\"gray\">\n<div class=\"c-balloon__icon -square\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-14.40.37.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u751f\u5f92<\/span><\/div>\n<div class=\"c-balloon__body -speaking -border-none\">\n<div class=\"c-balloon__text\">\n<p><strong>\u30b9\u30de\u30db\u30b5\u30a4\u30c8\u3067\u3088\u304f\u898b\u308b\u3001\u3042\u306e3\u672c\u7dda\u306e\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3092\u81ea\u4f5c\u3057\u305f\u3044\u3093\u3067\u3059\u3002JavaScript\u306a\u3057\u3067\u3082\u4f5c\u308c\u307e\u3059\u304b\uff1f<\/strong><\/p>\n<p><span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"swell-block-balloon\">\n<div class=\"c-balloon -bln-right\" data-col=\"gray\">\n<div class=\"c-balloon__icon -square\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-15.11.23.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u30da\u30f3\u535a\u58eb<\/span><\/div>\n<div class=\"c-balloon__body -speaking -border-none\">\n<div class=\"c-balloon__text\">\n<p><strong>\u4f5c\u308c\u308b\u3088\uff01\u5b9f\u306fHTML\u3068CSS\u3060\u3051\u3067\u958b\u3044\u305f\u308a\u9589\u3058\u305f\u308a\u3067\u304d\u308b\u3093\u3060\u30023\u672c\u7dda\u304c\u00d7\u306b\u5909\u308f\u308b\u30a2\u30cb\u30e1\u3082\u3001\u30b9\u30e9\u30a4\u30c9\u30a4\u30f3\u3082\u5168\u90e8CSS\u3067OK\u3002\u3082\u3061\u308d\u3093JS\u3092\u4f7f\u3046\u672c\u683c\u7248\u3082\u3001\u3053\u306e\u8a18\u4e8b\u3067\u6700\u5f8c\u307e\u3067\u4e00\u7dd2\u306b\u4f5c\u3063\u3066\u3044\u304f\u306d\uff01<\/strong><\/p>\n<p><span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<p class=\"wp-block-paragraph\">\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3067Web\u30b5\u30a4\u30c8\u3092\u898b\u308b\u3068\u3001\u753b\u9762\u306e\u53f3\u4e0a\u3084\u5de6\u4e0a\u306b<strong><span class=\"swl-marker mark_yellow\">3\u672c\u306e\u6a2a\u7dda\u304c\u4e26\u3093\u3060\u30a2\u30a4\u30b3\u30f3<\/span><\/strong>\u304c\u7f6e\u3044\u3066\u3042\u308b\u3053\u3068\u304c\u307b\u3068\u3093\u3069\u3067\u3059\u3002\u30bf\u30c3\u30d7\u3059\u308b\u3068\u30e1\u30cb\u30e5\u30fc\u304c\u306b\u3085\u3063\u3068\u958b\u304f\u3001\u3042\u306e\u90e8\u54c1\u3092\u300c\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u300d\u3068\u547c\u3073\u307e\u3059\u3002\u30d1\u30f3\u306e\u30d0\u30f3\u30ba\u3068\u5177\u6750\u3092\u6a2a\u304b\u3089\u898b\u305f\u5f62\u306b\u4f3c\u3066\u3044\u308b\u3053\u3068\u304c\u540d\u524d\u306e\u7531\u6765\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u300c\u4f5c\u308b\u306e\u304c\u96e3\u3057\u305d\u3046\u300d\u300cJavaScript\u304c\u5fc5\u8981\u306a\u3093\u3067\u3057\u3087\u3046\uff1f\u300d\u3068\u8eab\u69cb\u3048\u3066\u3057\u307e\u3046\u65b9\u304c\u591a\u3044\u306e\u3067\u3059\u304c\u3001\u5b9f\u306f<strong><span class=\"swl-marker mark_yellow\">HTML\u3068CSS\u3060\u3051\u3067\u52d5\u304f\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3092\u4f5c\u308c\u307e\u3059<\/span><\/strong>\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u307e\u305aJavaScript\u3092\u4e00\u5207\u4f7f\u308f\u306a\u3044\u7d14CSS\u7248\u3092\u5b8c\u5168\u306a\u30b3\u30fc\u30c9\u3067\u7d44\u307f\u7acb\u3066\u3001\u305d\u306e\u3042\u3068\u30b9\u30e9\u30a4\u30c9\u30a4\u30f3\u3084\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u306a\u3069\u306e\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u3001\u3055\u3089\u306bJavaScript\u7248\u3001\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u5bfe\u5fdc\u3001\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5207\u308a\u66ff\u3048\u307e\u3067\u3001\u4e00\u3064\u305a\u3064\u30b3\u30d4\u30da\u3067\u304d\u308b\u5f62\u3067\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u30b3\u30fc\u30c9\u306f\u3059\u3079\u3066\u52d5\u304f\u72b6\u614b\u3067\u8f09\u305b\u3066\u3044\u307e\u3059\u3002\u307e\u305a\u306f\u4f55\u3082\u8003\u3048\u305a\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u52d5\u304b\u3057\u3001\u305d\u306e\u3042\u3068\u300c\u306a\u305c\u52d5\u304f\u306e\u304b\u300d\u3092\u8aad\u3093\u3067\u7406\u89e3\u3092\u6df1\u3081\u3066\u3044\u304f\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002\u624b\u3092\u52d5\u304b\u3057\u306a\u304c\u3089\u8aad\u307f\u9032\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u6700\u521d\u306b\u3001\u3053\u306e\u8a18\u4e8b\u306e\u7d50\u8ad6\u3092\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<ul class=\"wp-block-list\">\n<li><strong><span class=\"swl-marker mark_yellow\">\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306fJavaScript\u306a\u3057\u3067\u3082\u4f5c\u308c\u308b<\/span><\/strong>\u3002<code>&lt;input type=\"checkbox\"&gt;<\/code> \u3068 <code>&lt;label&gt;<\/code>\u3001\u305d\u3057\u3066 <code>:checked<\/code> \u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u300c\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u300d\u304c\u5b9a\u756a\u3067\u3059\u3002<\/li>\n<li><strong><span class=\"swl-marker mark_yellow\">3\u672c\u7dda\u306f\u8981\u7d201\u3064\uff0b\u64ec\u4f3c\u8981\u7d20\u3067\u4f5c\u308b<\/span><\/strong>\u3002<code>span<\/code> \u306e\u672c\u4f53\u3068 <code>::before<\/code> \/ <code>::after<\/code> \u30673\u672c\u306e\u7dda\u3092\u8868\u73fe\u3057\u3001\u958b\u3044\u305f\u3068\u304d\u306b\u00d7\u3078\u5909\u5f62\u3055\u305b\u307e\u3059\u3002<\/li>\n<li><strong><span class=\"swl-marker mark_yellow\">\u898b\u305f\u76ee\u306e\u5207\u308a\u66ff\u3048\u306f\u5168\u90e8CSS\u306e:checked\u3067\u5b8c\u7d50\u3059\u308b<\/span><\/strong>\u3002\u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u305f\u72b6\u614b\u3092\u57fa\u6e96\u306b\u3001\u30e1\u30cb\u30e5\u30fc\u3092\u8868\u793a\u3057\u305f\u308a\u7dda\u3092\u56de\u8ee2\u3055\u305b\u305f\u308a\u3057\u307e\u3059\u3002<\/li>\n<li><strong><span class=\"swl-marker mark_yellow\">\u672c\u683c\u7684\u306a\u30b5\u30a4\u30c8\u3067\u306fJavaScript\u7248\u306e\u307b\u3046\u304c\u6271\u3044\u3084\u3059\u3044<\/span><\/strong>\u3002<code>aria-expanded<\/code> \u306e\u5207\u308a\u66ff\u3048\u3084Esc\u30ad\u30fc\u3067\u9589\u3058\u308b\u3001\u5916\u5074\u30af\u30ea\u30c3\u30af\u3067\u9589\u3058\u308b\u3068\u3044\u3063\u305f\u914d\u616e\u3092\u5165\u308c\u3084\u3059\u3044\u305f\u3081\u3067\u3059\u3002<\/li>\n<li><strong><span class=\"swl-marker mark_yellow\">\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u3068\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306e\u8a2d\u8a08\u304c\u4ed5\u4e0a\u3052\u306e\u6c7a\u3081\u624b<\/span><\/strong>\u3002<code>button<\/code> \u8981\u7d20\u306e\u63a1\u7528\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u64cd\u4f5c\u3001PC\u3068\u30b9\u30de\u30db\u306e\u8868\u793a\u5207\u308a\u66ff\u3048\u307e\u3067\u6574\u3048\u3066\u521d\u3081\u3066\u5b9f\u52d9\u30ec\u30d9\u30eb\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3068\u306f\uff1f\u306a\u305c3\u672c\u7dda\u306a\u306e\u304b\u3092\u7406\u89e3\u3057\u3088\u3046<\/h2>\n<p class=\"wp-block-paragraph\">\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3068\u306f\u3001<strong><span class=\"swl-marker mark_yellow\">\u8907\u6570\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30ea\u30f3\u30af\u30921\u3064\u306e\u30a2\u30a4\u30b3\u30f3\u306e\u4e2d\u306b\u96a0\u3057\u3066\u304a\u304d\u3001\u30bf\u30c3\u30d7\uff08\u30af\u30ea\u30c3\u30af\uff09\u3067\u958b\u9589\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305fUI\u30d1\u30fc\u30c4<\/span><\/strong>\u306e\u3053\u3068\u3067\u3059\u3002\u4e3b\u306b\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306e\u3088\u3046\u306b\u753b\u9762\u304c\u72ed\u3044\u74b0\u5883\u3067\u3001\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u306e\u5834\u6240\u3092\u7bc0\u7d04\u3059\u308b\u76ee\u7684\u3067\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u30d1\u30bd\u30b3\u30f3\u306e\u753b\u9762\u306f\u6a2a\u306b\u5e83\u3044\u306e\u3067\u3001\u300c\u30db\u30fc\u30e0\u300d\u300c\u30b5\u30fc\u30d3\u30b9\u300d\u300c\u4f1a\u793e\u6982\u8981\u300d\u300c\u304a\u554f\u3044\u5408\u308f\u305b\u300d\u3068\u3044\u3063\u305f\u30e1\u30cb\u30e5\u30fc\u3092\u6a2a\u4e00\u5217\u306b\u4e26\u3079\u3089\u308c\u307e\u3059\u3002\u3057\u304b\u3057\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306e\u7e26\u9577\u3067\u72ed\u3044\u753b\u9762\u3067\u306f\u3001\u540c\u3058\u3088\u3046\u306b\u4e26\u3079\u308b\u3068\u7aae\u5c48\u306b\u306a\u308a\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8868\u793a\u3059\u308b\u5834\u6240\u304c\u6e1b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u305d\u3053\u3067<strong><span class=\"swl-marker mark_yellow\">\u666e\u6bb5\u306f\u30e1\u30cb\u30e5\u30fc\u3092\u96a0\u3057\u3066\u304a\u304d\u3001\u5fc5\u8981\u306a\u3068\u304d\u3060\u3051\u958b\u304f<\/span><\/strong>\u3068\u3044\u3046\u767a\u60f3\u304c\u751f\u307e\u308c\u307e\u3057\u305f\u3002\u305d\u308c\u304c\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u305f\u3068\u3048\u3070\u6a2a\u5e45375px\u307b\u3069\u306e\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3067\u3001\u30e1\u30cb\u30e5\u30fc\u9805\u76ee\u304c5\u3064\u30826\u3064\u3082\u3042\u308b\u3068\u3001\u305d\u308c\u3060\u3051\u3067\u753b\u9762\u306e\u4e0a\u90e8\u304c\u6587\u5b57\u3067\u57cb\u3081\u5c3d\u304f\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u304c\u672c\u5f53\u306b\u8aad\u307f\u305f\u3044\u306e\u306f\u8a18\u4e8b\u3084\u5546\u54c1\u306e\u60c5\u5831\u3067\u3042\u3063\u3066\u3001\u30e1\u30cb\u30e5\u30fc\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306f\u3001<strong><span class=\"swl-marker mark_yellow\">\u9650\u3089\u308c\u305f\u753b\u9762\u3092\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u305f\u3081\u306b\u6700\u5927\u9650\u3042\u3051\u308b<\/span><\/strong>\u305f\u3081\u306e\u3001\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u6642\u4ee3\u306e\u5408\u7406\u7684\u306a\u89e3\u6c7a\u7b56\u306a\u306e\u3067\u3059\u3002\u4eca\u3067\u306f\u307b\u3068\u3093\u3069\u306e\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u5411\u3051\u30b5\u30a4\u30c8\u3067\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u3001\u3044\u308f\u3070\u6a19\u6e96\u7684\u306aUI\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">3\u672c\u7dda\u304c\u300c\u30e1\u30cb\u30e5\u30fc\u300d\u3092\u610f\u5473\u3059\u308b\u7406\u7531<\/h3>\n<p class=\"wp-block-paragraph\">\u306a\u305c3\u672c\u306e\u6a2a\u7dda\u306a\u306e\u3067\u3057\u3087\u3046\u304b\u3002\u3053\u308c\u306f1980\u5e74\u4ee3\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bfUI\u306b\u3055\u304b\u306e\u307c\u308b\u6b74\u53f2\u306e\u3042\u308b\u30a2\u30a4\u30b3\u30f3\u3067\u3001<strong><span class=\"swl-marker mark_yellow\">\u30ea\u30b9\u30c8\u306e\u9805\u76ee\u304c\u4e26\u3093\u3067\u3044\u308b\u69d8\u5b50\u3092\u7dda\u3067\u62bd\u8c61\u5316\u3057\u305f\u3082\u306e<\/span><\/strong>\u3060\u3068\u8003\u3048\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u6587\u5b57\u3092\u66f8\u304b\u306a\u304f\u3066\u3082\u300c\u3053\u3053\u306b\u9805\u76ee\u306e\u30ea\u30b9\u30c8\u304c\u3042\u308b\u300d\u3068\u76f4\u611f\u7684\u306b\u4f1d\u308f\u308b\u305f\u3081\u3001\u4e16\u754c\u4e2d\u306e\u30b5\u30a4\u30c8\u3084\u30a2\u30d7\u30ea\u3067\u5171\u901a\u306e\u8a18\u53f7\u3068\u3057\u3066\u5b9a\u7740\u3057\u307e\u3057\u305f\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u7dda\u304c3\u672c\u306a\u306e\u306f\u3001\u5c11\u306a\u3059\u304e\u308b\u3068\u300c\u30e1\u30cb\u30e5\u30fc\u300d\u3060\u3068\u4f1d\u308f\u308a\u306b\u304f\u304f\u3001\u591a\u3059\u304e\u308b\u3068\u5225\u306e\u610f\u5473\uff08\u8a2d\u5b9a\u3084\u30ea\u30b9\u30c8\u306a\u3069\uff09\u306b\u898b\u3048\u3066\u3057\u307e\u3046\u305f\u3081\u3067\u3059\u30023\u672c\u304c\u3082\u3063\u3068\u3082\u30d0\u30e9\u30f3\u30b9\u3088\u304f\u300c\u958b\u304f\u30e1\u30cb\u30e5\u30fc\u300d\u3092\u8868\u305b\u308b\u672c\u6570\u3068\u3057\u3066\u4f7f\u308f\u308c\u7d9a\u3051\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u958b\u9589\u306e\u4ed5\u7d44\u307f\u306f\u300c\u72b6\u614b\u306e\u5207\u308a\u66ff\u3048\u300d\u3060\u3051<\/h3>\n<p class=\"wp-block-paragraph\">\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306e\u52d5\u4f5c\u3092\u5206\u89e3\u3059\u308b\u3068\u3001\u5b9f\u306f\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">\u300c\u9589\u3058\u3066\u3044\u308b\u72b6\u614b\u300d\u3068\u300c\u958b\u3044\u3066\u3044\u308b\u72b6\u614b\u300d\u306e2\u3064\u3092\u5207\u308a\u66ff\u3048\u3066\u3044\u308b\u3060\u3051<\/span><\/strong>\u3067\u3059\u3002\u9589\u3058\u3066\u3044\u308b\u3068\u304d\u306f\u30e1\u30cb\u30e5\u30fc\u3092\u96a0\u3057\u3001\u958b\u3044\u3066\u3044\u308b\u3068\u304d\u306f\u30e1\u30cb\u30e5\u30fc\u3092\u898b\u305b\u308b\u3002\u3053\u306e\u72b6\u614b\u306e\u5207\u308a\u66ff\u3048\u3092\u3001CSS\u3067\u3084\u308b\u304bJavaScript\u3067\u3084\u308b\u304b\u306e\u9055\u3044\u3060\u3051\u306a\u306e\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u307e\u305aCSS\u3060\u3051\u3067\u72b6\u614b\u3092\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5\u304b\u3089\u59cb\u3081\u307e\u3059\u3002\u72b6\u614b\u3092\u6301\u3064\u4ed5\u7d44\u307f\u3068\u3057\u3066\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u300c\u30aa\u30f3\u30fb\u30aa\u30d5\u300d\u3092\u5229\u7528\u3059\u308b\u306e\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u3053\u306e\u8a18\u4e8b\u3067\u4f5c\u308b\u3082\u306e\u306e\u5168\u4f53\u50cf<\/h3>\n<p class=\"wp-block-paragraph\">\u5148\u306b\u5b8c\u6210\u30a4\u30e1\u30fc\u30b8\u3092\u5171\u6709\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u3053\u308c\u304b\u3089\u4f5c\u308b\u306e\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u90e8\u54c1\u3067\u3059\u3002<\/p>\n<ul class=\"wp-block-list\">\n<li>\u753b\u9762\u53f3\u4e0a\u306b\u7f6e\u304f<strong><span class=\"swl-marker mark_yellow\">3\u672c\u7dda\u306e\u30a2\u30a4\u30b3\u30f3<\/span><\/strong>\uff08\u30bf\u30c3\u30d7\u3067\u304d\u308b\u30dc\u30bf\u30f3\uff09<\/li>\n<li>\u30bf\u30c3\u30d7\u3059\u308b\u3068\u958b\u304f<strong><span class=\"swl-marker mark_yellow\">\u30e1\u30cb\u30e5\u30fc\u30d1\u30cd\u30eb<\/span><\/strong>\uff08\u7e26\u306b\u30ea\u30f3\u30af\u304c\u4e26\u3076\uff09<\/li>\n<li>\u958b\u3044\u305f\u3068\u304d\u306b3\u672c\u7dda\u304c<strong><span class=\"swl-marker mark_yellow\">\u00d7\u5370\u306b\u5909\u5f62\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/span><\/strong><\/li>\n<li>\u3082\u3046\u4e00\u5ea6\u30bf\u30c3\u30d7\u3001\u307e\u305f\u306f\u5916\u5074\u3092\u30bf\u30c3\u30d7\u3067<strong><span class=\"swl-marker mark_yellow\">\u9589\u3058\u308b\u52d5\u4f5c<\/span><\/strong><\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3089\u3092\u3001\u307e\u305a\u306fCSS\u3060\u3051\u3067\u3001\u6b21\u306bJavaScript\u3067\u3082\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u9577\u6240\u3068\u77ed\u6240\u304c\u3042\u308b\u306e\u3067\u3001\u4e21\u65b9\u3092\u77e5\u3063\u3066\u304a\u304f\u3068\u73fe\u5834\u3067\u4f7f\u3044\u5206\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">JavaScript\u306a\u3057\u3067\u4f5c\u308b\u4ed5\u7d44\u307f\u300c\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u300d\u3068\u306f<\/h2>\n<p class=\"wp-block-paragraph\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u3068\u306f\u3001<strong><span class=\"swl-marker mark_yellow\">\u753b\u9762\u4e0a\u306b\u96a0\u3057\u305f\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u30aa\u30f3\u30fb\u30aa\u30d5\u72b6\u614b\u3092\u5229\u7528\u3057\u3066\u3001JavaScript\u3092\u4f7f\u308f\u305a\u306b\u958b\u9589\u3084\u30bf\u30d6\u5207\u308a\u66ff\u3048\u3092\u5b9f\u73fe\u3059\u308b\u30c6\u30af\u30cb\u30c3\u30af<\/span><\/strong>\u3067\u3059\u3002\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3092\u7d14CSS\u3067\u4f5c\u308b\u969b\u306e\u4e2d\u5fc3\u7684\u306a\u624b\u6cd5\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u4ed5\u7d44\u307f\u306e\u6838\u306b\u306a\u308b\u306e\u306f\u3001\u6b21\u306e3\u3064\u306e\u8981\u7d20\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u3059\u3002\u9806\u756a\u306b\u5f79\u5272\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u2460 \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\uff08\u72b6\u614b\u3092\u899a\u3048\u308b\u7bb1\uff09<\/h3>\n<p class=\"wp-block-paragraph\"><code>&lt;input type=\"checkbox\"&gt;<\/code> \u306f\u3001\u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u3066\u3044\u308b\u304b\u30fb\u3044\u306a\u3044\u304b\u3068\u3044\u3046<strong><span class=\"swl-marker mark_yellow\">\u30aa\u30f3\u3068\u30aa\u30d5\u306e2\u3064\u306e\u72b6\u614b\u3092\u81ea\u5206\u3067\u899a\u3048\u3066\u304f\u308c\u308b\u90e8\u54c1<\/span><\/strong>\u3067\u3059\u3002\u3053\u306e\u300c\u72b6\u614b\u3092\u899a\u3048\u308b\u300d\u6027\u8cea\u3092\u3001\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u958b\u3044\u3066\u3044\u308b\u30fb\u9589\u3058\u3066\u3044\u308b\u300d\u306b\u5bfe\u5fdc\u3055\u305b\u307e\u3059\u3002\u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u3066\u3044\u308c\u3070\u958b\u3044\u3066\u3044\u308b\u3001\u5165\u3063\u3066\u3044\u306a\u3051\u308c\u3070\u9589\u3058\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u5177\u5408\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u2461 \u30e9\u30d9\u30eb\uff08\u30af\u30ea\u30c3\u30af\u306e\u304d\u3063\u304b\u3051\u3092\u4f5c\u308b\uff09<\/h3>\n<p class=\"wp-block-paragraph\"><code>&lt;label&gt;<\/code> \u306f\u672c\u6765\u3001\u5165\u529b\u6b04\u306b\u8aac\u660e\u30e9\u30d9\u30eb\u3092\u4ed8\u3051\u308b\u305f\u3081\u306e\u8981\u7d20\u3067\u3059\u304c\u3001<strong><span class=\"swl-marker mark_yellow\">label\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u7d50\u3073\u3064\u3044\u305f\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u30aa\u30f3\u30fb\u30aa\u30d5\u304c\u5207\u308a\u66ff\u308f\u308b<\/span><\/strong>\u3068\u3044\u3046\u4fbf\u5229\u306a\u6027\u8cea\u304c\u3042\u308a\u307e\u3059\u3002<code>label<\/code> \u306e <code>for<\/code> \u5c5e\u6027\u306b\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e <code>id<\/code> \u3068\u540c\u3058\u5024\u3092\u6307\u5b9a\u3059\u308b\u3068\u4e21\u8005\u304c\u7d50\u3073\u3064\u304d\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u3053\u306e\u6027\u8cea\u3092\u4f7f\u3048\u3070\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u81ea\u4f53\u306f\u753b\u9762\u304b\u3089\u96a0\u3057\u3066\u304a\u304d\u3001\u4ee3\u308f\u308a\u306b3\u672c\u7dda\u306e\u30a2\u30a4\u30b3\u30f3\u3092 <code>label<\/code> \u306b\u3057\u3066\u300c\u30bf\u30c3\u30d7\u3067\u304d\u308b\u30dc\u30bf\u30f3\u300d\u306b\u898b\u305b\u3089\u308c\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306f\u30a2\u30a4\u30b3\u30f3\u3092\u30bf\u30c3\u30d7\u3057\u3066\u3044\u308b\u3064\u3082\u308a\u3067\u3082\u3001\u88cf\u3067\u306f\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u304c\u5207\u308a\u66ff\u308f\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u2462 :checked \u7591\u4f3c\u30af\u30e9\u30b9\uff08\u72b6\u614b\u306b\u5fdc\u3058\u3066\u898b\u305f\u76ee\u3092\u5909\u3048\u308b\uff09<\/h3>\n<p class=\"wp-block-paragraph\"><code>:checked<\/code> \u306f\u3001<strong><span class=\"swl-marker mark_yellow\">\u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u3066\u3044\u308b\u72b6\u614b\u306e\u3068\u304d\u3060\u3051\u30b9\u30bf\u30a4\u30eb\u3092\u5f53\u3066\u3089\u308c\u308bCSS\u306e\u7591\u4f3c\u30af\u30e9\u30b9<\/span><\/strong>\u3067\u3059\u3002\u3053\u308c\u3068\u3001\u96a3\u306e\u8981\u7d20\u3092\u6307\u3059\u300c\u5144\u5f1f\u7d50\u5408\u5b50\u300d\u3092\u7d44\u307f\u5408\u308f\u305b\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u305f\u3068\u304d\u3001\u305d\u306e\u5f8c\u308d\u306b\u3042\u308b\u30e1\u30cb\u30e5\u30fc\u3092\u8868\u793a\u3059\u308b *\/\n#menu-toggle:checked ~ .menu {\n  \/* \u3053\u3053\u306b\u300c\u958b\u3044\u305f\u72b6\u614b\u300d\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u66f8\u304f *\/\n}<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\"><code>~<\/code>\uff08\u30c1\u30eb\u30c0\uff09\u306f<strong><span class=\"swl-marker mark_yellow\">\u300c\u540c\u3058\u89aa\u3092\u6301\u3064\u3001\u5f8c\u308d\u306b\u3042\u308b\u5144\u5f1f\u8981\u7d20\u300d<\/span><\/strong>\u3092\u6307\u3059\u8a18\u53f7\u3067\u3059\u3002<code>+<\/code>\uff08\u30d7\u30e9\u30b9\uff09\u306f\u300c\u3059\u3050\u96a3\u306e\u5144\u5f1f\u300d\u3060\u3051\u3092\u6307\u3057\u307e\u3059\u304c\u3001<code>~<\/code> \u306f\u9593\u306b\u4ed6\u306e\u8981\u7d20\u304c\u631f\u307e\u3063\u3066\u3044\u3066\u3082\u5f8c\u308d\u306b\u3042\u308c\u3070\u5bfe\u8c61\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u7d50\u5408\u5b50\u306e\u304a\u304b\u3052\u3067\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u72b6\u614b\u306b\u5fdc\u3058\u3066\u96e2\u308c\u305f\u5834\u6240\u306e\u30e1\u30cb\u30e5\u30fc\u3092\u64cd\u4f5c\u3067\u304d\u308b\u306e\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u5c11\u3057\u6574\u7406\u3059\u308b\u3068\u3001CSS\u306b\u306f\u8981\u7d20\u3069\u3046\u3057\u306e\u4f4d\u7f6e\u95a2\u4fc2\u3092\u8868\u3059\u8a18\u53f7\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002<code>&gt;<\/code> \u306f\u300c\u76f4\u63a5\u306e\u5b50\u300d\u3001<code>+<\/code> \u306f\u300c\u3059\u3050\u6b21\u306e\u5144\u5f1f\u300d\u3001<code>~<\/code> \u306f\u300c\u5f8c\u308d\u306b\u7d9a\u304f\u3059\u3079\u3066\u306e\u5144\u5f1f\u300d\u3092\u6307\u3057\u307e\u3059\u3002\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3067\u306f\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u304b\u3089\u898b\u3066\u5f8c\u308d\u306b\u7f6e\u3044\u305f\u30a2\u30a4\u30b3\u30f3\u3084\u30e1\u30cb\u30e5\u30fc\u3092\u307e\u3068\u3081\u3066\u64cd\u4f5c\u3057\u305f\u3044\u306e\u3067\u3001<strong><span class=\"swl-marker mark_yellow\"><code>~<\/code>\uff08\u5f8c\u308d\u306e\u5144\u5f1f\u3059\u3079\u3066\uff09\u304c\u6700\u9069<\/span><\/strong>\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u3002\u3053\u3053\u3092 <code>+<\/code> \u306b\u3057\u3066\u3057\u307e\u3046\u3068\u3001\u9593\u306b\u5225\u306e\u8981\u7d20\u304c\u631f\u307e\u3063\u305f\u77ac\u9593\u306b\u52b9\u304b\u306a\u304f\u306a\u308b\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u8981\u7d20\u3092\u4e26\u3079\u308b\u9806\u756a\u304c\u8d85\u91cd\u8981<\/h3>\n<p class=\"wp-block-paragraph\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u306b\u306f1\u3064\u3060\u3051\u5b88\u308b\u3079\u304d\u30eb\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u306f<strong><span class=\"swl-marker mark_yellow\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u3001\u5f71\u97ff\u3092\u4e0e\u3048\u305f\u3044\u8981\u7d20\u3088\u308a\u524d\uff08\u4e0a\uff09\u306b\u7f6e\u304f\u3053\u3068<\/span><\/strong>\u3067\u3059\u3002CSS\u306e\u5144\u5f1f\u7d50\u5408\u5b50\u306f\u300c\u5f8c\u308d\u306e\u5144\u5f1f\u300d\u3057\u304b\u6307\u305b\u306a\u3044\u305f\u3081\u3001\u9806\u756a\u3092\u9006\u306b\u3059\u308b\u3068\u52d5\u304d\u307e\u305b\u3093\u3002HTML\u3067\u306f\u300c\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9 \u2192 \u30e9\u30d9\u30eb \u2192 \u30e1\u30cb\u30e5\u30fc\u300d\u306e\u9806\u306b\u4e26\u3079\u308b\u306e\u304c\u57fa\u672c\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u3053\u306e\u524d\u63d0\u3092\u982d\u306b\u5165\u308c\u305f\u3046\u3048\u3067\u3001\u6b21\u306e\u7ae0\u304b\u3089\u5b9f\u969b\u306b\u5b8c\u5168\u306a\u30b3\u30fc\u30c9\u3092\u7d44\u307f\u7acb\u3066\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">\u7d14CSS\u7248\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306e\u5b8c\u6210\u30b3\u30fc\u30c9\u3010HTML\u7de8\u3011<\/h2>\n<p class=\"wp-block-paragraph\">\u307e\u305a\u306fHTML\u306e\u5168\u4f53\u3092\u4f5c\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f<strong><span class=\"swl-marker mark_yellow\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30fb\u30e9\u30d9\u30eb\uff083\u672c\u7dda\uff09\u30fb\u30e1\u30cb\u30e5\u30fc\u672c\u4f53\u306e3\u70b9\u30bb\u30c3\u30c8<\/span><\/strong>\u3092\u3001\u6b63\u3057\u3044\u9806\u756a\u3067\u4e26\u3079\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;!-- \u2460 \u72b6\u614b\u3092\u899a\u3048\u308b\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\uff08\u753b\u9762\u4e0a\u306f\u96a0\u3059\uff09 --&gt;\n&lt;input type=\"checkbox\" id=\"menu-toggle\" class=\"menu-toggle\"&gt;\n\n&lt;!-- \u2461 3\u672c\u7dda\u306e\u30a2\u30a4\u30b3\u30f3\uff08label\u3067\u30bf\u30c3\u30d7\u53ef\u80fd\u306b\uff09 --&gt;\n&lt;label for=\"menu-toggle\" class=\"menu-btn\"&gt;\n  &lt;span class=\"menu-btn-line\"&gt;&lt;\/span&gt;\n&lt;\/label&gt;\n\n&lt;!-- \u2462 \u958b\u304f\u30e1\u30cb\u30e5\u30fc\u672c\u4f53 --&gt;\n&lt;nav class=\"menu\"&gt;\n  &lt;ul&gt;\n    &lt;li&gt;&lt;a href=\"#\"&gt;\u30db\u30fc\u30e0&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#\"&gt;\u30b5\u30fc\u30d3\u30b9&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#\"&gt;\u5b9f\u7e3e\u7d39\u4ecb&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#\"&gt;\u4f1a\u793e\u6982\u8981&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#\"&gt;\u304a\u554f\u3044\u5408\u308f\u305b&lt;\/a&gt;&lt;\/li&gt;\n  &lt;\/ul&gt;\n&lt;\/nav&gt;<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\">\u30dd\u30a4\u30f3\u30c8\u30921\u3064\u305a\u3064\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<ul class=\"wp-block-list\">\n<li><strong><span class=\"swl-marker mark_yellow\"><code>&lt;input&gt;<\/code> \u3092\u4e00\u756a\u4e0a\u306b\u7f6e\u304f<\/span><\/strong>\uff1a\u5f8c\u308d\u306e\u5144\u5f1f\u8981\u7d20\uff08\u30a2\u30a4\u30b3\u30f3\u3068\u30e1\u30cb\u30e5\u30fc\uff09\u306bCSS\u3067\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u305f\u3081\u3067\u3059\u3002\u9806\u756a\u3092\u9006\u306b\u3059\u308b\u3068\u52d5\u304d\u307e\u305b\u3093\u3002<\/li>\n<li><strong><span class=\"swl-marker mark_yellow\"><code>id<\/code> \u3068 <code>for<\/code> \u3092\u4e00\u81f4\u3055\u305b\u308b<\/span><\/strong>\uff1a<code>id=\"menu-toggle\"<\/code> \u3068 <code>for=\"menu-toggle\"<\/code> \u304c\u540c\u3058\u5024\u306a\u306e\u3067\u3001\u30e9\u30d9\u30eb\u3092\u30bf\u30c3\u30d7\u3059\u308b\u3068\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u304c\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002<\/li>\n<li><strong><span class=\"swl-marker mark_yellow\">3\u672c\u7dda\u306f <code>span<\/code> 1\u3064\u3067\u4f5c\u308b<\/span><\/strong>\uff1a\u672c\u4f53\u3092\u771f\u3093\u4e2d\u306e\u7dda\u306b\u3057\u3066\u3001\u6b8b\u308a2\u672c\u306f\u64ec\u4f3c\u8981\u7d20\u3067\u4f5c\u308a\u307e\u3059\u3002\u8a73\u3057\u304f\u306fCSS\u7de8\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<\/li>\n<li><strong><span class=\"swl-marker mark_yellow\">\u30e1\u30cb\u30e5\u30fc\u306f <code>&lt;nav&gt;<\/code> \u3067\u30de\u30fc\u30af\u30a2\u30c3\u30d7<\/span><\/strong>\uff1a\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308b\u3053\u3068\u3092\u610f\u5473\u7684\u306b\u793a\u3059\u305f\u3081\u306b <code>nav<\/code> \u3068 <code>ul<\/code>\/<code>li<\/code> \u3092\u4f7f\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">HTML\u306f\u3053\u308c\u3060\u3051\u3067\u3059\u3002\u3053\u306e\u6642\u70b9\u3067\u306f\u307e\u3060\u30b9\u30bf\u30a4\u30eb\u304c\u306a\u3044\u306e\u3067\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3082\u30ea\u30f3\u30af\u3082\u305d\u306e\u307e\u307e\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u6b21\u306eCSS\u7de8\u3067\u3001\u4e00\u6c17\u306b\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3089\u3057\u3044\u898b\u305f\u76ee\u3068\u52d5\u304d\u3092\u4ed8\u3051\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">\u7d14CSS\u7248\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306e\u5b8c\u6210\u30b3\u30fc\u30c9\u3010CSS\u7de8\u3011<\/h2>\n<p class=\"wp-block-paragraph\">\u3044\u3088\u3044\u3088CSS\u3067\u3059\u3002\u9577\u304f\u898b\u3048\u307e\u3059\u304c\u3001\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f<strong><span class=\"swl-marker mark_yellow\">\u300c\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u96a0\u3059\u300d\u300c3\u672c\u7dda\u3092\u4f5c\u308b\u300d\u300c\u958b\u3044\u305f\u3068\u304d\u306e\u898b\u305f\u76ee\u3092\u6307\u5b9a\u3059\u308b\u300d\u306e3\u30b9\u30c6\u30c3\u30d7<\/span><\/strong>\u3060\u3051\u3067\u3059\u3002\u307e\u305a\u5b8c\u6210\u5f62\u306e\u5168\u30b3\u30fc\u30c9\u3092\u8f09\u305b\u3001\u305d\u306e\u3042\u3068\u30d6\u30ed\u30c3\u30af\u3054\u3068\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* ===== \u2460 \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u672c\u4f53\u306f\u753b\u9762\u304b\u3089\u96a0\u3059 ===== *\/\n.menu-toggle {\n  display: none;\n}\n\n\/* ===== \u2461 3\u672c\u7dda\u30dc\u30bf\u30f3\uff08label\uff09===== *\/\n.menu-btn {\n  position: fixed;\n  top: 20px;\n  right: 20px;\n  z-index: 100;\n  width: 40px;\n  height: 40px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  cursor: pointer;\n}\n\n\/* \u771f\u3093\u4e2d\u306e\u7dda *\/\n.menu-btn-line,\n.menu-btn-line::before,\n.menu-btn-line::after {\n  content: \"\";\n  display: block;\n  width: 28px;\n  height: 3px;\n  background: #333;\n  border-radius: 2px;\n  transition: all 0.3s ease;\n}\n\n\/* \u4e0a\u4e0b\u306e\u7dda\u3092\u64ec\u4f3c\u8981\u7d20\u3067\u4f5c\u308a\u3001\u4e0a\u4e0b\u306b\u305a\u3089\u3059 *\/\n.menu-btn-line::before,\n.menu-btn-line::after {\n  position: absolute;\n}\n.menu-btn-line::before { transform: translateY(-9px); }\n.menu-btn-line::after  { transform: translateY(9px); }\n\n\/* ===== \u2462 \u30e1\u30cb\u30e5\u30fc\u672c\u4f53\uff08\u521d\u671f\u72b6\u614b\uff1d\u96a0\u308c\u3066\u3044\u308b\uff09===== *\/\n.menu {\n  position: fixed;\n  top: 0;\n  right: 0;\n  width: 260px;\n  height: 100%;\n  background: #1e293b;\n  padding: 80px 24px;\n  box-sizing: border-box;\n  transform: translateX(100%); \/* \u753b\u9762\u53f3\u306e\u5916\u3078\u96a0\u3059 *\/\n  transition: transform 0.3s ease;\n  z-index: 90;\n}\n.menu ul {\n  list-style: none;\n  margin: 0;\n  padding: 0;\n}\n.menu li { margin-bottom: 8px; }\n.menu a {\n  display: block;\n  padding: 12px 8px;\n  color: #fff;\n  text-decoration: none;\n  border-radius: 6px;\n  transition: background 0.2s;\n}\n.menu a:hover { background: rgba(255,255,255,0.1); }\n\n\/* ===== \u2463 \u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u305f\u3068\u304d\uff08\uff1d\u958b\u3044\u305f\u3068\u304d\uff09===== *\/\n\/* \u30e1\u30cb\u30e5\u30fc\u3092\u753b\u9762\u5185\u3078\u30b9\u30e9\u30a4\u30c9\u30a4\u30f3 *\/\n.menu-toggle:checked ~ .menu {\n  transform: translateX(0);\n}\n\n\/* \u771f\u3093\u4e2d\u306e\u7dda\u3092\u6d88\u3059 *\/\n.menu-toggle:checked ~ .menu-btn .menu-btn-line {\n  background: transparent;\n}\n\/* \u4e0a\u4e0b\u306e\u7dda\u3092\u56de\u8ee2\u3055\u305b\u3066\u00d7\u306b\u3059\u308b *\/\n.menu-toggle:checked ~ .menu-btn .menu-btn-line::before {\n  transform: translateY(0) rotate(45deg);\n}\n.menu-toggle:checked ~ .menu-btn .menu-btn-line::after {\n  transform: translateY(0) rotate(-45deg);\n}<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\">\u4e0a\u306e\u30b3\u30fc\u30c9\u3067\u3001\u30bf\u30c3\u30d7\u3059\u308b\u3068\u30e1\u30cb\u30e5\u30fc\u304c\u53f3\u304b\u3089\u30b9\u30e9\u30a4\u30c9\u30a4\u30f3\u3057\u30013\u672c\u7dda\u304c\u00d7\u306b\u5909\u308f\u308b\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u304c\u5b8c\u6210\u3057\u307e\u3059\u3002\u884c\u6570\u306f\u591a\u3044\u3067\u3059\u304c\u3001\u4e38\u6697\u8a18\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<strong><span class=\"swl-marker mark_yellow\">\u300c\u96a0\u3059\u300d\u300c\u7dda\u3092\u4f5c\u308b\u300d\u300c\u958b\u3044\u305f\u72b6\u614b\u3092\u66f8\u304f\u300d\u306e3\u30b9\u30c6\u30c3\u30d7\u306b\u5206\u3051\u3066\u773a\u3081\u308c\u3070\u3001\u610f\u5916\u3068\u5358\u7d14<\/span><\/strong>\u3060\u3068\u5206\u304b\u308b\u306f\u305a\u3067\u3059\u3002\u3053\u3053\u304b\u3089\u5404\u30d6\u30ed\u30c3\u30af\u3092\u5206\u89e3\u3057\u3066\u7406\u89e3\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u8aad\u3093\u3060\u3042\u3068\u306b\u3082\u3046\u4e00\u5ea6\u30b3\u30fc\u30c9\u5168\u4f53\u3092\u898b\u8fd4\u3059\u3068\u3001\u305d\u308c\u305e\u308c\u306e\u884c\u304c\u4f55\u3092\u3057\u3066\u3044\u308b\u304b\u304c\u306f\u3063\u304d\u308a\u3064\u304b\u3081\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u2460 \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u96a0\u3059<\/h3>\n<p class=\"wp-block-paragraph\"><code>.menu-toggle { display: none; }<\/code> \u3067<strong><span class=\"swl-marker mark_yellow\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u56db\u89d2\u3044\u898b\u305f\u76ee\u3092\u753b\u9762\u304b\u3089\u6d88\u3057\u3066\u3044\u307e\u3059<\/span><\/strong>\u3002\u305f\u3060\u3057\u8981\u7d20\u81ea\u4f53\u306f\u5b58\u5728\u3057\u7d9a\u3051\u308b\u306e\u3067\u3001\u30c1\u30a7\u30c3\u30af\u72b6\u614b\u306f\u5909\u308f\u3089\u305a\u8a18\u61b6\u3055\u308c\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306b\u306f\u898b\u3048\u306a\u304f\u3066\u3082\u3001\u88cf\u3067\u30aa\u30f3\u30fb\u30aa\u30d5\u306e\u30b9\u30a4\u30c3\u30c1\u3068\u3057\u3066\u50cd\u3044\u3066\u3044\u308b\u306e\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u306a\u304a <code>display: none;<\/code> \u3067\u5b8c\u5168\u306b\u6d88\u3059\u3068\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u306eTab\u30ad\u30fc\u3067\u9078\u3079\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u3092\u91cd\u8996\u3059\u308b\u5834\u5408\u306f\u5f8c\u8ff0\u306e\u65b9\u6cd5\u3067\u753b\u9762\u5916\u3078\u9003\u304c\u3059\u3084\u308a\u65b9\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u307e\u305a\u306f\u52d5\u304d\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u30b7\u30f3\u30d7\u30eb\u306b\u96a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u2461 3\u672c\u7dda\u30921\u3064\u306espan\u3067\u4f5c\u308b<\/h3>\n<p class=\"wp-block-paragraph\">\u3053\u3053\u304cCSS\u306e\u898b\u305b\u5834\u3067\u3059\u30023\u672c\u306e\u7dda\u3092\u3001\u305d\u308c\u305e\u308c\u5225\u306eHTML\u8981\u7d20\u3067\u7528\u610f\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001<strong><span class=\"swl-marker mark_yellow\">1\u3064\u306e<code>span<\/code>\u3092\u771f\u3093\u4e2d\u306e\u7dda\u306b\u3057\u3066\u3001\u4e0a\u4e0b\u306e\u7dda\u306f<code>::before<\/code>\u3068<code>::after<\/code>\u3068\u3044\u3046\u64ec\u4f3c\u8981\u7d20\u3067\u751f\u6210<\/span><\/strong>\u3057\u3066\u3044\u307e\u3059\u3002\u64ec\u4f3c\u8981\u7d20\u3068\u306f\u3001CSS\u3060\u3051\u3067\u300c\u898b\u3048\u306a\u3044\u8981\u7d20\u30921\u3064\u8ffd\u52a0\u3059\u308b\u300d\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\"><code>content: \"\";<\/code> \u3092\u6307\u5b9a\u3059\u308b\u3068\u64ec\u4f3c\u8981\u7d20\u304c\u5b9f\u4f53\u3092\u6301\u3061\u307e\u3059\u30023\u672c\u3068\u3082\u540c\u3058\u5e45\u30fb\u9ad8\u3055\u30fb\u8272\u306b\u3057\u3001\u4e0a\u306e\u7dda\u306f <code>translateY(-9px)<\/code> \u3067\u4e0a\u3078\u3001\u4e0b\u306e\u7dda\u306f <code>translateY(9px)<\/code> \u3067\u4e0b\u3078\u305a\u3089\u3059\u3053\u3068\u3067\u3001\u7b49\u9593\u9694\u306e3\u672c\u7dda\u304c\u5b8c\u6210\u3057\u307e\u3059\u3002<code>transition<\/code> \u3092\u5168\u4f53\u306b\u304b\u3051\u3066\u3044\u308b\u306e\u3067\u3001\u5f8c\u8ff0\u306e\u5909\u5f62\u304c\u306a\u3081\u3089\u304b\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3057\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u2462 \u30e1\u30cb\u30e5\u30fc\u3092\u753b\u9762\u306e\u5916\u3078\u96a0\u3059<\/h3>\n<p class=\"wp-block-paragraph\">\u30e1\u30cb\u30e5\u30fc\u672c\u4f53\u306f <code>position: fixed;<\/code> \u3067\u753b\u9762\u306b\u56fa\u5b9a\u3057\u3001<code>transform: translateX(100%);<\/code> \u3067<strong><span class=\"swl-marker mark_yellow\">\u81ea\u5206\u306e\u5e45\u306e\u3076\u3093\u3060\u3051\u53f3\u3078\u305a\u3089\u3057\u3066\u753b\u9762\u5916\u306b\u8ffd\u3044\u51fa\u3057\u3066\u3044\u307e\u3059<\/span><\/strong>\u3002<code>display: none;<\/code> \u3067\u306f\u306a\u304f <code>transform<\/code> \u3067\u5916\u306b\u51fa\u3059\u7406\u7531\u306f\u3001\u4f4d\u7f6e\u306e\u5909\u5316\u3092\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3055\u305b\u3089\u308c\u308b\u304b\u3089\u3067\u3059\u3002<code>display<\/code> \u306e\u5207\u308a\u66ff\u3048\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u2463 :checked\u3067\u958b\u3044\u305f\u72b6\u614b\u3092\u6307\u5b9a\u3059\u308b<\/h3>\n<p class=\"wp-block-paragraph\">\u6700\u5f8c\u306b\u3001\u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u305f\u3068\u304d\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u307e\u3068\u3081\u3066\u66f8\u304d\u307e\u3059\u3002<code>.menu-toggle:checked ~ .menu<\/code> \u3067<strong><span class=\"swl-marker mark_yellow\">\u30e1\u30cb\u30e5\u30fc\u306e<code>transform<\/code>\u3092<code>translateX(0)<\/code>\u306b\u623b\u3057\u3066\u753b\u9762\u5185\u3078\u6ed1\u308a\u8fbc\u307e\u305b<\/span><\/strong>\u3001\u540c\u6642\u306b\u771f\u3093\u4e2d\u306e\u7dda\u3092\u900f\u660e\u306b\u3057\u3001\u4e0a\u4e0b\u306e\u7dda\u3092 <code>rotate(45deg)<\/code> \u3068 <code>rotate(-45deg)<\/code> \u3067\u56de\u8ee2\u3055\u305b\u3066\u00d7\u5370\u3092\u4f5c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\"><code>translateY<\/code> \u3092 <code>0<\/code> \u306b\u623b\u3057\u3066\u304b\u3089\u56de\u8ee2\u3055\u305b\u308b\u306e\u304c\u30b3\u30c4\u3067\u3059\u3002\u3053\u308c\u3067\u4e0a\u4e0b\u306e\u7dda\u304c\u4e2d\u592e\u306b\u96c6\u307e\u308a\u300145\u5ea6\u3068-45\u5ea6\u3067\u4ea4\u5dee\u3057\u3066\u00d7\u306b\u306a\u308a\u307e\u3059\u3002<code>transition<\/code> \u306e\u304a\u304b\u3052\u3067\u3001\u7dda\u304c\u3050\u308b\u3063\u3068\u56de\u308a\u306a\u304c\u3089\u00d7\u306b\u5909\u308f\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">3\u672c\u7dda\u304c\u300c\u00d7\u300d\u306b\u5909\u308f\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u6df1\u6398\u308a\u3059\u308b<\/h2>\n<p class=\"wp-block-paragraph\">\u521d\u5fc3\u8005\u304c\u4e00\u756a\u300c\u304a\u3063\u300d\u3068\u611f\u3058\u308b\u306e\u304c\u30013\u672c\u7dda\u304c\u00d7\u306b\u5909\u308f\u308b\u52d5\u304d\u3067\u3059\u3002\u3053\u3053\u3067\u306f<strong><span class=\"swl-marker mark_yellow\">\u305d\u306e\u5909\u5f62\u304c\u8d77\u304d\u308b\u4ed5\u7d44\u307f\u3092\u5ea7\u6a19\u30ec\u30d9\u30eb\u3067\u7406\u89e3<\/span><\/strong>\u3057\u3001\u601d\u3044\u3069\u304a\u308a\u306b\u8abf\u6574\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u306a\u305c\u771f\u3093\u4e2d\u306e\u7dda\u3092\u300c\u900f\u660e\u300d\u306b\u3059\u308b\u306e\u304b<\/h3>\n<p class=\"wp-block-paragraph\">\u00d7\u5370\u306f2\u672c\u306e\u659c\u3081\u7dda\u3067\u3067\u304d\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a<strong><span class=\"swl-marker mark_yellow\">\u00d7\u3092\u4f5c\u308b\u306b\u306f\u7dda\u304c2\u672c\u3042\u308c\u3070\u8db3\u308a\u308b<\/span><\/strong>\u306e\u3067\u3059\u30023\u672c\u306e\u3046\u3061\u771f\u3093\u4e2d\u306e1\u672c\u306f\u4f59\u308b\u306e\u3067\u3001<code>background: transparent;<\/code> \u3067\u898b\u3048\u306a\u304f\u3057\u3066\u3044\u307e\u3059\u3002<code>display: none;<\/code> \u3067\u306f\u306a\u304f\u900f\u660e\u306b\u3059\u308b\u306e\u306f\u3001\u6d88\u3048\u308b\u77ac\u9593\u3082\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u3075\u308f\u3063\u3068\u898b\u305b\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u4e0a\u4e0b\u306e\u7dda\u3092\u4e2d\u592e\u306b\u96c6\u3081\u3066\u304b\u3089\u56de\u3059<\/h3>\n<p class=\"wp-block-paragraph\">\u9589\u3058\u3066\u3044\u308b\u72b6\u614b\u3067\u306f\u3001\u4e0a\u306e\u7dda\u306f <code>-9px<\/code>\u3001\u4e0b\u306e\u7dda\u306f <code>9px<\/code> \u306e\u4f4d\u7f6e\u306b\u3042\u308a\u307e\u3059\u3002\u958b\u3044\u305f\u77ac\u9593\u3001\u4e21\u65b9\u3092 <code>translateY(0)<\/code> \u306b\u3057\u3066<strong><span class=\"swl-marker mark_yellow\">\u3044\u3063\u305f\u3093\u4e2d\u592e\u306e\u540c\u3058\u9ad8\u3055\u306b\u91cd\u306d\u3066\u304b\u3089<\/span><\/strong>\u3001\u7247\u65b9\u3092 <code>+45\u5ea6<\/code>\u3001\u3082\u3046\u7247\u65b9\u3092 <code>-45\u5ea6<\/code> \u56de\u8ee2\u3055\u305b\u307e\u3059\u3002\u3059\u308b\u30682\u672c\u304c\u4ea4\u5dee\u3057\u3066\u00d7\u306b\u306a\u308b\u308f\u3051\u3067\u3059\u3002\u79fb\u52d5\u3068\u56de\u8ee2\u30921\u3064\u306e <code>transform<\/code> \u306b\u307e\u3068\u3081\u3066\u66f8\u304f\u306e\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u79fb\u52d5\u3068\u56de\u8ee2\u306f\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u540c\u6642\u306b\u6307\u5b9a\u3067\u304d\u308b *\/\n.menu-toggle:checked ~ .menu-btn .menu-btn-line::before {\n  transform: translateY(0) rotate(45deg);\n}<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\">\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001<code>transform<\/code> \u306f\u8907\u6570\u306e\u5024\u3092\u66f8\u304f\u3068<strong><span class=\"swl-marker mark_yellow\">\u53f3\u304b\u3089\u9806\u306b\u9069\u7528\u3055\u308c\u308b<\/span><\/strong>\u6027\u8cea\u304c\u3042\u308a\u307e\u3059\u3002<code>translateY(0) rotate(45deg)<\/code> \u306e\u5834\u5408\u306f\u300c\u56de\u8ee2\u3057\u3066\u304b\u3089\u79fb\u52d5\u300d\u3067\u306f\u306a\u304f\u300c\u79fb\u52d5\u3057\u3066\u304b\u3089\u56de\u8ee2\u300d\u306b\u898b\u3048\u307e\u3059\u304c\u3001\u5024\u306e\u9806\u5e8f\u3092\u5909\u3048\u308b\u3068\u8ef8\u306e\u305a\u308c\u65b9\u304c\u5909\u308f\u308b\u306e\u3067\u3001\u601d\u3044\u3069\u304a\u308a\u306b\u4ea4\u5dee\u3057\u306a\u3044\u3068\u304d\u306f\u9806\u5e8f\u3092\u5165\u308c\u66ff\u3048\u3066\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u30a2\u30cb\u30e1\u306e\u901f\u3055\u3068\u52d5\u304d\u3092\u8abf\u6574\u3059\u308b<\/h3>\n<p class=\"wp-block-paragraph\">\u52d5\u304d\u306e\u5370\u8c61\u306f <code>transition<\/code> \u306e\u5024\u3067\u6c7a\u307e\u308a\u307e\u3059\u3002<code>0.3s<\/code> \u306e\u90e8\u5206\u3092\u5927\u304d\u304f\u3059\u308b\u3068\u3086\u3063\u304f\u308a\u3001\u5c0f\u3055\u304f\u3059\u308b\u3068\u30ad\u30d3\u30ad\u30d3\u52d5\u304d\u307e\u3059\u3002<code>ease<\/code> \u306e\u90e8\u5206\u3092 <code>cubic-bezier()<\/code> \u306b\u5909\u3048\u308b\u3068\u3001\u8df3\u306d\u308b\u3088\u3046\u306a\u72ec\u7279\u306e\u52d5\u304d\u3082\u4f5c\u308c\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u3086\u3063\u304f\u308a\u30fb\u5f3e\u3080\u3088\u3046\u306a\u5909\u5f62\u306b\u3057\u305f\u3044\u3068\u304d *\/\n.menu-btn-line,\n.menu-btn-line::before,\n.menu-btn-line::after {\n  transition: all 0.45s cubic-bezier(0.68, -0.55, 0.27, 1.55);\n}<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\">\u52d5\u304d\u306b\u3053\u3060\u308f\u308a\u3059\u304e\u308b\u3068\u8aad\u307f\u8fbc\u307f\u304c\u91cd\u304f\u306a\u3063\u305f\u308a\u3001\u9154\u3044\u3084\u3059\u3044\u30e6\u30fc\u30b6\u30fc\u306b\u8ca0\u62c5\u3092\u304b\u3051\u305f\u308a\u3057\u307e\u3059\u3002\u901f\u3055\u306f <code>0.3s<\/code> \u524d\u5f8c\u3092\u57fa\u6e96\u306b\u3001\u63a7\u3048\u3081\u306b\u8a2d\u5b9a\u3059\u308b\u306e\u304c\u7121\u96e3\u3067\u3059\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">\u958b\u304d\u65b9\u306e\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f36\u7a2e\u3010\u5168\u3066\u30b3\u30d4\u30da\u53ef\u80fd\u3011<\/h2>\n<p class=\"wp-block-paragraph\">\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u958b\u304d\u65b9\u300d\u306f\u597d\u307f\u3084\u8a2d\u8a08\u306b\u5408\u308f\u305b\u3066\u9078\u3079\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u4ee3\u8868\u7684\u306a6\u30d1\u30bf\u30fc\u30f3\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">\u3069\u308c\u3082\u5148\u307b\u3069\u306eHTML\u306f\u305d\u306e\u307e\u307e\u4f7f\u3044\u3001<code>.menu<\/code>\u307e\u308f\u308a\u306eCSS\u3092\u5dee\u3057\u66ff\u3048\u308b\u3060\u3051<\/span><\/strong>\u3067\u5207\u308a\u66ff\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">1. \u53f3\u304b\u3089\u30b9\u30e9\u30a4\u30c9\u30a4\u30f3\uff08\u5148\u307b\u3069\u306e\u57fa\u672c\u5f62\uff09<\/h3>\n<p class=\"wp-block-paragraph\">\u3059\u3067\u306b\u4f5c\u3063\u305f\u3001\u753b\u9762\u306e\u53f3\u7aef\u304b\u3089\u30e1\u30cb\u30e5\u30fc\u304c\u6ed1\u308a\u8fbc\u3080\u30bf\u30a4\u30d7\u3067\u3059\u3002\u3082\u3063\u3068\u3082\u5b9a\u756a\u3067\u5931\u6557\u304c\u5c11\u306a\u3044\u306e\u3067\u3001\u8ff7\u3063\u305f\u3089\u3053\u308c\u3092\u9078\u3079\u3070\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.menu {\n  right: 0;\n  transform: translateX(100%);\n  transition: transform 0.3s ease;\n}\n.menu-toggle:checked ~ .menu {\n  transform: translateX(0);\n}<\/code><\/pre>\n<\/div>\n<h3 class=\"wp-block-heading\">2. \u5de6\u304b\u3089\u30b9\u30e9\u30a4\u30c9\u30a4\u30f3<\/h3>\n<p class=\"wp-block-paragraph\">\u5de6\u7aef\u304b\u3089\u51fa\u3057\u305f\u3044\u3068\u304d\u306f\u3001\u4f4d\u7f6e\u3092\u5de6\u306b\u5909\u3048\u3001\u96a0\u3059\u65b9\u5411\u3092\u9006\u306b\u3057\u307e\u3059\u3002<strong><span class=\"swl-marker mark_yellow\"><code>translateX(-100%)<\/code>\u3067\u5de6\u306e\u5916\u3078\u96a0\u3059<\/span><\/strong>\u306e\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.menu {\n  left: 0;\n  transform: translateX(-100%);\n  transition: transform 0.3s ease;\n}\n.menu-toggle:checked ~ .menu {\n  transform: translateX(0);\n}<\/code><\/pre>\n<\/div>\n<h3 class=\"wp-block-heading\">3. \u3075\u308f\u3063\u3068\u30d5\u30a7\u30fc\u30c9\u30a4\u30f3<\/h3>\n<p class=\"wp-block-paragraph\">\u30b9\u30e9\u30a4\u30c9\u3067\u306f\u306a\u304f\u3001\u305d\u306e\u5834\u3067<strong><span class=\"swl-marker mark_yellow\">\u900f\u660e\u5ea6\u3060\u3051\u3092\u5909\u3048\u3066\u6d6e\u304b\u3073\u4e0a\u304c\u3089\u305b\u308b<\/span><\/strong>\u843d\u3061\u7740\u3044\u305f\u6f14\u51fa\u3067\u3059\u3002<code>opacity<\/code> \u3068 <code>visibility<\/code> \u3092\u7d44\u307f\u5408\u308f\u305b\u307e\u3059\u3002<code>visibility<\/code> \u3092\u5207\u308a\u66ff\u3048\u308b\u306e\u306f\u3001\u900f\u660e\u3067\u3082\u30ea\u30f3\u30af\u3092\u62bc\u305b\u3066\u3057\u307e\u3046\u72b6\u614b\u3092\u9632\u3050\u305f\u3081\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.menu {\n  right: 0;\n  transform: none;\n  opacity: 0;\n  visibility: hidden;\n  transition: opacity 0.3s ease, visibility 0.3s ease;\n}\n.menu-toggle:checked ~ .menu {\n  opacity: 1;\n  visibility: visible;\n}<\/code><\/pre>\n<\/div>\n<h3 class=\"wp-block-heading\">4. \u753b\u9762\u5168\u4f53\u3092\u8986\u3046\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4<\/h3>\n<p class=\"wp-block-paragraph\">\u30e1\u30cb\u30e5\u30fc\u3067<strong><span class=\"swl-marker mark_yellow\">\u753b\u9762\u3044\u3063\u3071\u3044\u3092\u8986\u3046\u30a4\u30f3\u30d1\u30af\u30c8\u306e\u3042\u308b\u30bf\u30a4\u30d7<\/span><\/strong>\u3067\u3059\u3002\u30d6\u30e9\u30f3\u30c9\u30b5\u30a4\u30c8\u306a\u3069\u3067\u3088\u304f\u898b\u304b\u3051\u307e\u3059\u3002\u5e45\u3068\u9ad8\u3055\u3092100%\u306b\u3057\u3001\u30ea\u30f3\u30af\u3092\u4e2d\u592e\u306b\u5927\u304d\u304f\u914d\u7f6e\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.menu {\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background: rgba(15, 23, 42, 0.97);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  opacity: 0;\n  visibility: hidden;\n  transition: opacity 0.3s ease, visibility 0.3s ease;\n}\n.menu ul { text-align: center; }\n.menu a { font-size: 24px; }\n.menu-toggle:checked ~ .menu {\n  opacity: 1;\n  visibility: visible;\n}<\/code><\/pre>\n<\/div>\n<h3 class=\"wp-block-heading\">5. \u4e0a\u304b\u3089\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3<\/h3>\n<p class=\"wp-block-paragraph\">\u30d8\u30c3\u30c0\u30fc\u306e\u4e0b\u304b\u3089<strong><span class=\"swl-marker mark_yellow\">\u306b\u3085\u3063\u3068\u4e0b\u65b9\u5411\u306b\u964d\u308a\u3066\u304f\u308b<\/span><\/strong>\u30bf\u30a4\u30d7\u3067\u3059\u3002<code>translateY(-100%)<\/code> \u3067\u4e0a\u306e\u5916\u3078\u96a0\u3057\u3066\u304a\u304d\u3001\u958b\u3044\u305f\u3068\u304d\u306b <code>translateY(0)<\/code> \u3067\u964d\u308d\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.menu {\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: auto;\n  transform: translateY(-100%);\n  transition: transform 0.3s ease;\n}\n.menu-toggle:checked ~ .menu {\n  transform: translateY(0);\n}<\/code><\/pre>\n<\/div>\n<h3 class=\"wp-block-heading\">6. \u672c\u6587\u3092\u305a\u3089\u3059\u30d7\u30c3\u30b7\u30e5\u578b<\/h3>\n<p class=\"wp-block-paragraph\">\u30e1\u30cb\u30e5\u30fc\u304c\u672c\u6587\u306e\u4e0a\u306b\u91cd\u306a\u308b\u306e\u3067\u306f\u306a\u304f\u3001<strong><span class=\"swl-marker mark_yellow\">\u672c\u6587\u5168\u4f53\u3092\u6a2a\u306b\u62bc\u3057\u3084\u3063\u3066\u30e1\u30cb\u30e5\u30fc\u306e\u30b9\u30da\u30fc\u30b9\u3092\u7a7a\u3051\u308b<\/span><\/strong>\u30bf\u30a4\u30d7\u3067\u3059\u3002\u30da\u30fc\u30b8\u5168\u4f53\u3092\u5305\u3080\u30e9\u30c3\u30d1\u30fc\u8981\u7d20\u30921\u3064\u7528\u610f\u3057\u3001\u305d\u306e <code>transform<\/code> \u3092\u52d5\u304b\u3057\u307e\u3059\u3002HTML\u306e\u69cb\u9020\u3060\u3051\u5c11\u3057\u5909\u308f\u308b\u70b9\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;!-- \u30e1\u30cb\u30e5\u30fc\u4ee5\u5916\u306e\u5168\u30b3\u30f3\u30c6\u30f3\u30c4\u3092 .page \u3067\u5305\u3080 --&gt;\n&lt;input type=\"checkbox\" id=\"menu-toggle\" class=\"menu-toggle\"&gt;\n&lt;label for=\"menu-toggle\" class=\"menu-btn\"&gt;&lt;span class=\"menu-btn-line\"&gt;&lt;\/span&gt;&lt;\/label&gt;\n&lt;nav class=\"menu\"&gt; ... &lt;\/nav&gt;\n&lt;div class=\"page\"&gt;\n  &lt;!-- \u3053\u3053\u306b\u30da\u30fc\u30b8\u672c\u6587\u304c\u5165\u308b --&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.page {\n  transition: transform 0.3s ease;\n}\n.menu-toggle:checked ~ .page {\n  transform: translateX(-260px); \/* \u30e1\u30cb\u30e5\u30fc\u5e45\u3076\u3093\u5de6\u3078 *\/\n}<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\">\u30d7\u30c3\u30b7\u30e5\u578b\u306f\u52d5\u304d\u304c\u72ec\u7279\u3067\u5370\u8c61\u7684\u3067\u3059\u304c\u3001\u672c\u6587\u304c\u305a\u308c\u308b\u3076\u3093\u30ec\u30a4\u30a2\u30a6\u30c8\u5d29\u308c\u304c\u8d77\u304d\u3084\u3059\u3044\u306e\u3067\u3001\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u51fa\u306a\u3044\u3088\u3046 <code>body { overflow-x: hidden; }<\/code> \u3092\u6dfb\u3048\u3066\u304a\u304f\u3068\u5b89\u5168\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u306e\u9078\u3073\u65b9<\/h3>\n<p class=\"wp-block-paragraph\"><strong><span class=\"swl-marker mark_yellow\">\u6f14\u51fa\u304c\u6d3e\u624b\u306a\u307b\u3069\u826f\u3044\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093<\/span><\/strong>\u3002\u60c5\u5831\u3092\u7d20\u65e9\u304f\u898b\u305b\u305f\u3044\u30e1\u30c7\u30a3\u30a2\u3084\u30b3\u30fc\u30dd\u30ec\u30fc\u30c8\u30b5\u30a4\u30c8\u306a\u3089\u53f3\u30b9\u30e9\u30a4\u30c9\u3084\u30c9\u30ed\u30c3\u30d7\u304c\u7121\u96e3\u3067\u3001\u4e16\u754c\u89b3\u3092\u6253\u3061\u51fa\u3057\u305f\u3044\u30d6\u30e9\u30f3\u30c9\u30b5\u30a4\u30c8\u306a\u3089\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u304c\u6620\u3048\u307e\u3059\u3002\u7528\u9014\u306b\u5408\u308f\u305b\u3066\u9078\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>\u958b\u304d\u65b9<\/th>\n<th>\u5370\u8c61<\/th>\n<th>\u5411\u3044\u3066\u3044\u308b\u30b5\u30a4\u30c8<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u53f3\uff0f\u5de6\u30b9\u30e9\u30a4\u30c9<\/td>\n<td>\u5b9a\u756a\u30fb\u8efd\u5feb<\/td>\n<td>\u30b3\u30fc\u30dd\u30ec\u30fc\u30c8\u30fb\u30e1\u30c7\u30a3\u30a2<\/td>\n<\/tr>\n<tr>\n<td>\u30d5\u30a7\u30fc\u30c9<\/td>\n<td>\u843d\u3061\u7740\u304d\u30fb\u4e0a\u54c1<\/td>\n<td>\u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa\u30fb\u58eb\u696d<\/td>\n<\/tr>\n<tr>\n<td>\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3<\/td>\n<td>\u30a4\u30f3\u30d1\u30af\u30c8\u5927<\/td>\n<td>\u30d6\u30e9\u30f3\u30c9\u30fbLP<\/td>\n<\/tr>\n<tr>\n<td>\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3<\/td>\n<td>\u81ea\u7136\u30fb\u7d20\u76f4<\/td>\n<td>\u60c5\u5831\u91cf\u306e\u591a\u3044\u30b5\u30a4\u30c8<\/td>\n<\/tr>\n<tr>\n<td>\u30d7\u30c3\u30b7\u30e5<\/td>\n<td>\u72ec\u7279\u30fb\u904a\u3073<\/td>\n<td>\u500b\u6027\u3092\u51fa\u3057\u305f\u3044\u30b5\u30a4\u30c8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-white-color has-text-color has-background has-link-color wp-element-button\" href=\"https:\/\/withcode.tech\/reservation\/\" style=\"background-color:#ffbf00\"><strong>\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u7121\u6599\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u306b\u7533\u3057\u8fbc\u3080 \u2192<\/strong><\/a><\/div>\n<\/div>\n<h2 class=\"wp-block-heading\">\u958b\u3044\u305f\u3068\u304d\u306b\u80cc\u666f\u3092\u6697\u304f\u3059\u308b\u300c\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u300d\u3092\u8ffd\u52a0\u3059\u308b<\/h2>\n<p class=\"wp-block-paragraph\">\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u3044\u305f\u3068\u304d\u3001<strong><span class=\"swl-marker mark_yellow\">\u80cc\u5f8c\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u534a\u900f\u660e\u306e\u9ed2\u3067\u8986\u3046<\/span><\/strong>\u3068\u3001\u30e1\u30cb\u30e5\u30fc\u304c\u6d6e\u304d\u7acb\u3063\u3066\u30d7\u30ed\u3089\u3057\u3044\u4ed5\u4e0a\u304c\u308a\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u6697\u5e55\u306f\u300c\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u300d\u3068\u547c\u3070\u308c\u3001CSS\u3060\u3051\u3067\u3082\u4f5c\u308c\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u6697\u5e55\u7528\u306e\u8981\u7d20\u30921\u3064\u8db3\u3059<\/h3>\n<p class=\"wp-block-paragraph\">HTML\u306b\u3001\u80cc\u666f\u3092\u8986\u3046\u305f\u3081\u306e\u7a7a\u306e\u8981\u7d20\u30921\u3064\u52a0\u3048\u307e\u3059\u3002\u3053\u308c\u3082 <code>label<\/code> \u306b\u3057\u3066\u304a\u304f\u3068\u3001<strong><span class=\"swl-marker mark_yellow\">\u6697\u5e55\u3092\u30bf\u30c3\u30d7\u3057\u3066\u30e1\u30cb\u30e5\u30fc\u3092\u9589\u3058\u308b<\/span><\/strong>\u6a5f\u80fd\u307e\u3067\u540c\u6642\u306b\u624b\u306b\u5165\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;input type=\"checkbox\" id=\"menu-toggle\" class=\"menu-toggle\"&gt;\n&lt;label for=\"menu-toggle\" class=\"menu-btn\"&gt;&lt;span class=\"menu-btn-line\"&gt;&lt;\/span&gt;&lt;\/label&gt;\n&lt;label for=\"menu-toggle\" class=\"overlay\"&gt;&lt;\/label&gt; &lt;!-- \u6697\u5e55 --&gt;\n&lt;nav class=\"menu\"&gt; ... &lt;\/nav&gt;<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.overlay {\n  position: fixed;\n  inset: 0; \/* top\/right\/bottom\/left \u3092\u307e\u3068\u3081\u30660\u306b *\/\n  background: rgba(0, 0, 0, 0.5);\n  opacity: 0;\n  visibility: hidden;\n  transition: opacity 0.3s ease, visibility 0.3s ease;\n  z-index: 80; \/* \u30e1\u30cb\u30e5\u30fc\u3088\u308a\u4e0b\u3001\u672c\u6587\u3088\u308a\u4e0a *\/\n}\n.menu-toggle:checked ~ .overlay {\n  opacity: 1;\n  visibility: visible;\n}<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\"><code>inset: 0;<\/code> \u306f <code>top: 0; right: 0; bottom: 0; left: 0;<\/code> \u3092\u307e\u3068\u3081\u3066\u66f8\u3051\u308b\u4fbf\u5229\u306a\u6307\u5b9a\u3067\u3001\u753b\u9762\u3044\u3063\u3071\u3044\u306b\u5e83\u3052\u3089\u308c\u307e\u3059\u3002<code>z-index<\/code> \u306f<strong><span class=\"swl-marker mark_yellow\">\u30e1\u30cb\u30e5\u30fc(90)\u3088\u308a\u5c0f\u3055\u304f\u3001\u672c\u6587\u3088\u308a\u5927\u304d\u3044\u5024(80)<\/span><\/strong>\u306b\u3057\u3066\u3001\u6697\u5e55\u304c\u30e1\u30cb\u30e5\u30fc\u306e\u4e0b\u30fb\u672c\u6587\u306e\u4e0a\u306b\u91cd\u306a\u308b\u3088\u3046\u8abf\u6574\u3057\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u3053\u306e\u6697\u5e55\u306f\u300c\u958b\u3044\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u3084\u3059\u304f\u306a\u308b\u300d\u3060\u3051\u3067\u306a\u304f\u3001\u300c\u3069\u3053\u3092\u30bf\u30c3\u30d7\u3059\u308c\u3070\u9589\u3058\u3089\u308c\u308b\u304b\u300d\u3092\u30e6\u30fc\u30b6\u30fc\u306b\u76f4\u611f\u7684\u306b\u4f1d\u3048\u308b\u5f79\u5272\u3082\u679c\u305f\u3057\u307e\u3059\u3002\u7d14CSS\u7248\u3067\u3082 <code>label<\/code> \u3092\u4f7f\u3048\u3070\u5916\u5074\u30bf\u30c3\u30d7\u3067\u9589\u3058\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u306f\u5927\u304d\u306a\u5229\u70b9\u3067\u3059\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">\u7d14CSS\u7248\u3068JavaScript\u7248\u306f\u3069\u3046\u4f7f\u3044\u5206\u3051\u308b\uff1f<\/h2>\n<p class=\"wp-block-paragraph\">\u3053\u3053\u307e\u3067\u3067\u7d14CSS\u7248\u304c\u4e00\u901a\u308a\u5b8c\u6210\u3057\u307e\u3057\u305f\u3002\u6b21\u306e\u7ae0\u304b\u3089JavaScript\u7248\u306b\u9032\u307f\u307e\u3059\u304c\u3001\u305d\u306e\u524d\u306b<strong><span class=\"swl-marker mark_yellow\">2\u3064\u306e\u65b9\u5f0f\u306e\u9055\u3044\u3068\u4f7f\u3044\u5206\u3051\u306e\u57fa\u6e96<\/span><\/strong>\u3092\u306f\u3063\u304d\u308a\u3055\u305b\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u3069\u3061\u3089\u304c\u512a\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u8a71\u3067\u306f\u306a\u304f\u3001\u5834\u9762\u306b\u3088\u3063\u3066\u5411\u304d\u4e0d\u5411\u304d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u305d\u308c\u305e\u308c\u306e\u9577\u6240\u3068\u77ed\u6240<\/h3>\n<p class=\"wp-block-paragraph\">\u307e\u305a\u306f\u7279\u5fb4\u3092\u8868\u3067\u6bd4\u3079\u3066\u307f\u307e\u3059\u3002\u81ea\u5206\u304c\u4f5c\u308d\u3046\u3068\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u306b\u3001\u3069\u3061\u3089\u304c\u5408\u3046\u304b\u3092\u8003\u3048\u306a\u304c\u3089\u8aad\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>\u89b3\u70b9<\/th>\n<th>\u7d14CSS\u7248<\/th>\n<th>JavaScript\u7248<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u4f5c\u308a\u3084\u3059\u3055<\/td>\n<td>\u624b\u8efd\u30fb\u884c\u6570\u5c11\u306a\u3081<\/td>\n<td>\u30b3\u30fc\u30c9\u306f\u5897\u3048\u308b<\/td>\n<\/tr>\n<tr>\n<td>\u8868\u793a\u901f\u5ea6<\/td>\n<td>\u8efd\u3044\uff08JS\u8aad\u307f\u8fbc\u307f\u4e0d\u8981\uff09<\/td>\n<td>\u308f\u305a\u304b\u306b\u91cd\u3044<\/td>\n<\/tr>\n<tr>\n<td>Esc\u30ad\u30fc\u3067\u9589\u3058\u308b<\/td>\n<td>\u82e6\u624b<\/td>\n<td>\u5f97\u610f<\/td>\n<\/tr>\n<tr>\n<td>\u5916\u5074\u30af\u30ea\u30c3\u30af\u3067\u9589\u3058\u308b<\/td>\n<td>\u5de5\u592b\u304c\u5fc5\u8981<\/td>\n<td>\u5f97\u610f<\/td>\n<\/tr>\n<tr>\n<td>\u30ea\u30f3\u30af\u9078\u629e\u3067\u9589\u3058\u308b<\/td>\n<td>\u82e6\u624b<\/td>\n<td>\u5f97\u610f<\/td>\n<\/tr>\n<tr>\n<td>\u72b6\u614b\u306e\u8aad\u307f\u4e0a\u3052\u5bfe\u5fdc<\/td>\n<td>\u9650\u5b9a\u7684<\/td>\n<td>\u7d30\u304b\u304f\u5236\u5fa1\u3067\u304d\u308b<\/td>\n<\/tr>\n<tr>\n<td>\u5411\u3044\u3066\u3044\u308b\u898f\u6a21<\/td>\n<td>\u5c0f\u898f\u6a21\u30fb\u5b66\u7fd2\u7528<\/td>\n<td>\u672c\u683c\u7684\u306a\u30b5\u30a4\u30c8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p class=\"wp-block-paragraph\">\u8868\u3092\u898b\u308b\u3068\u3001<strong><span class=\"swl-marker mark_yellow\">\u30b7\u30f3\u30d7\u30eb\u3055\u306a\u3089\u7d14CSS\u7248\u3001\u6a5f\u80fd\u306e\u7d30\u304b\u3055\u306a\u3089JavaScript\u7248<\/span><\/strong>\u3068\u3044\u3046\u50be\u5411\u304c\u306f\u3063\u304d\u308a\u3057\u307e\u3059\u3002\u7d14CSS\u7248\u306fJavaScript\u30921\u884c\u3082\u66f8\u304b\u305a\u306b\u52d5\u304f\u306e\u3067\u3001\u5b66\u7fd2\u306e\u6700\u521d\u306e\u4e00\u6b69\u3084\u3001\u6a5f\u80fd\u304c\u6700\u5c0f\u9650\u3067\u3088\u3044\u500b\u4eba\u30b5\u30a4\u30c8\u306b\u5411\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u5224\u65ad\u306e\u30d5\u30ed\u30fc\u30c1\u30e3\u30fc\u30c8<\/h3>\n<p class=\"wp-block-paragraph\">\u8ff7\u3063\u305f\u3068\u304d\u306f\u3001\u6b21\u306e\u9806\u756a\u3067\u8003\u3048\u308b\u3068\u6c7a\u3081\u3084\u3059\u3044\u3067\u3059\u3002<\/p>\n<ol class=\"wp-block-list\">\n<li><strong><span class=\"swl-marker mark_yellow\">\u30ea\u30f3\u30af\u9078\u629e\u30fb\u5916\u5074\u30af\u30ea\u30c3\u30af\u30fbEsc\u3067\u9589\u3058\u305f\u3044\u304b<\/span><\/strong>\uff1f \u2192 \u306f\u3044\u306a\u3089JavaScript\u7248<\/li>\n<li><strong><span class=\"swl-marker mark_yellow\">\u8aad\u307f\u4e0a\u3052\u30bd\u30d5\u30c8\u5bfe\u5fdc\u3092\u3057\u3063\u304b\u308a\u3084\u308a\u305f\u3044\u304b<\/span><\/strong>\uff1f \u2192 \u306f\u3044\u306a\u3089JavaScript\u7248<\/li>\n<li>\u3069\u3061\u3089\u3082\u4e0d\u8981\u3067\u3001\u3068\u306b\u304b\u304f\u8efd\u304f\u624b\u65e9\u304f\u4f5c\u308a\u305f\u3044 \u2192 \u7d14CSS\u7248\u3067\u5341\u5206<\/li>\n<\/ol>\n<p class=\"wp-block-paragraph\">\u5b9f\u52d9\u3067\u7d0d\u54c1\u3059\u308b\u30b5\u30a4\u30c8\u306a\u3089\u3001\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u3068\u64cd\u4f5c\u6027\u3092\u512a\u5148\u3057\u3066JavaScript\u7248\u3092\u9078\u3076\u3053\u3068\u304c\u307b\u3068\u3093\u3069\u3067\u3059\u3002\u4e00\u65b9\u3001\u5b66\u7fd2\u4e2d\u306e\u65b9\u306f<strong><span class=\"swl-marker mark_yellow\">\u307e\u305a\u7d14CSS\u7248\u3067\u4ed5\u7d44\u307f\u3092\u7406\u89e3\u3057\u3066\u304b\u3089\u3001JavaScript\u7248\u3078\u767a\u5c55\u3055\u305b\u308b<\/span><\/strong>\u306e\u304c\u9060\u56de\u308a\u306b\u898b\u3048\u3066\u4e00\u756a\u306e\u8fd1\u9053\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u306e\u9806\u756a\u3069\u304a\u308a\u306b\u9032\u3081\u308c\u3070\u3001\u305d\u306e\u6d41\u308c\u3092\u81ea\u7136\u306b\u305f\u3069\u308c\u307e\u3059\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">JavaScript\u3067\u4f5c\u308b\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306e\u5b9f\u88c5<\/h2>\n<p class=\"wp-block-paragraph\">\u3053\u3053\u304b\u3089\u306fJavaScript\u7248\u3067\u3059\u3002\u7d14CSS\u7248\u306f\u624b\u8efd\u3067\u3059\u304c\u3001<strong><span class=\"swl-marker mark_yellow\">Esc\u30ad\u30fc\u3067\u9589\u3058\u308b\u30fb\u5916\u5074\u30af\u30ea\u30c3\u30af\u3067\u9589\u3058\u308b\u30fb\u72b6\u614b\u3092\u8aad\u307f\u4e0a\u3052\u30bd\u30d5\u30c8\u306b\u6b63\u3057\u304f\u4f1d\u3048\u308b\u3068\u3044\u3063\u305f\u7d30\u304b\u306a\u5236\u5fa1\u306fJavaScript\u306e\u307b\u3046\u304c\u5f97\u610f<\/span><\/strong>\u3067\u3059\u3002\u5b9f\u52d9\u3067\u306f\u3053\u3061\u3089\u3092\u4f7f\u3046\u5834\u9762\u304c\u591a\u3044\u306e\u3067\u3001\u3057\u3063\u304b\u308a\u62bc\u3055\u3048\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"wp-block-heading\">HTML\u306fbutton\u8981\u7d20\u3067\u4f5c\u308b<\/h3>\n<p class=\"wp-block-paragraph\">JS\u7248\u3067\u306f\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u4ee3\u308f\u308a\u306b<strong><span class=\"swl-marker mark_yellow\">\u672c\u7269\u306e\u30dc\u30bf\u30f3\u3067\u3042\u308b<code>&lt;button&gt;<\/code>\u8981\u7d20<\/span><\/strong>\u3092\u4f7f\u3044\u307e\u3059\u3002\u30dc\u30bf\u30f3\u306f\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u62bc\u305b\u308b\u3001\u8aad\u307f\u4e0a\u3052\u30bd\u30d5\u30c8\u304c\u300c\u30dc\u30bf\u30f3\u300d\u3068\u8a8d\u8b58\u3059\u308b\u306a\u3069\u3001\u6700\u521d\u304b\u3089\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u306b\u512a\u308c\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;button class=\"menu-btn\" aria-label=\"\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u304f\"\n        aria-expanded=\"false\" aria-controls=\"global-menu\"&gt;\n  &lt;span class=\"menu-btn-line\"&gt;&lt;\/span&gt;\n&lt;\/button&gt;\n\n&lt;nav class=\"menu\" id=\"global-menu\"&gt;\n  &lt;ul&gt;\n    &lt;li&gt;&lt;a href=\"#\"&gt;\u30db\u30fc\u30e0&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#\"&gt;\u30b5\u30fc\u30d3\u30b9&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#\"&gt;\u304a\u554f\u3044\u5408\u308f\u305b&lt;\/a&gt;&lt;\/li&gt;\n  &lt;\/ul&gt;\n&lt;\/nav&gt;<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\">\u5c5e\u6027\u306e\u610f\u5473\u306f\u5f8c\u534a\u306e\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u7ae0\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f <code>aria-expanded<\/code>\uff08\u958b\u3044\u3066\u3044\u308b\u304b\uff09\u3068 <code>aria-controls<\/code>\uff08\u3069\u306e\u30e1\u30cb\u30e5\u30fc\u3092\u64cd\u4f5c\u3059\u308b\u304b\uff09\u3092\u4ed8\u3051\u3066\u3044\u308b\u3001\u3068\u3060\u3051\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 class=\"wp-block-heading\">CSS\u306f\u300c.is-open\u300d\u30af\u30e9\u30b9\u3067\u5207\u308a\u66ff\u3048\u308b<\/h3>\n<p class=\"wp-block-paragraph\">JS\u7248\u3067\u306f\u3001<code>:checked<\/code> \u306e\u4ee3\u308f\u308a\u306b<strong><span class=\"swl-marker mark_yellow\"><code>.is-open<\/code>\u3068\u3044\u3046\u30af\u30e9\u30b9\u306e\u6709\u7121\u3067\u898b\u305f\u76ee\u3092\u5207\u308a\u66ff\u3048<\/span><\/strong>\u307e\u3059\u3002JavaScript\u304c\u3053\u306e\u30af\u30e9\u30b9\u3092\u4ed8\u3051\u305f\u308a\u5916\u3057\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.menu {\n  position: fixed;\n  top: 0; right: 0;\n  width: 260px;\n  height: 100%;\n  background: #1e293b;\n  transform: translateX(100%);\n  transition: transform 0.3s ease;\n}\n\/* \u30af\u30e9\u30b9\u304c\u4ed8\u3044\u305f\u3089\u958b\u304f *\/\n.menu.is-open {\n  transform: translateX(0);\n}\n\/* \u30dc\u30bf\u30f3\u5074\u306e\u00d7\u5909\u5f62\u3082\u540c\u3058\u304f\u30af\u30e9\u30b9\u3067 *\/\n.menu-btn.is-open .menu-btn-line { background: transparent; }\n.menu-btn.is-open .menu-btn-line::before { transform: translateY(0) rotate(45deg); }\n.menu-btn.is-open .menu-btn-line::after  { transform: translateY(0) rotate(-45deg); }<\/code><\/pre>\n<\/div>\n<h3 class=\"wp-block-heading\">\u57fa\u672c\u306eJavaScript\uff08classList.toggle\uff09<\/h3>\n<p class=\"wp-block-paragraph\">\u3044\u3088\u3044\u3088JavaScript\u3067\u3059\u3002\u4e2d\u5fc3\u306b\u306a\u308b\u306e\u306f<strong><span class=\"swl-marker mark_yellow\"><code>classList.toggle()<\/code><\/span><\/strong>\u3068\u3044\u3046\u547d\u4ee4\u3067\u3001\u30af\u30e9\u30b9\u304c\u4ed8\u3044\u3066\u3044\u306a\u3051\u308c\u3070\u4ed8\u3051\u3001\u4ed8\u3044\u3066\u3044\u308c\u3070\u5916\u3059\u3001\u3068\u3044\u3046\u5207\u308a\u66ff\u3048\u30921\u884c\u3067\u884c\u3048\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-javascript\" data-lang=\"JavaScript\"><code>const btn = document.querySelector(\".menu-btn\");\nconst menu = document.querySelector(\".menu\");\n\nbtn.addEventListener(\"click\", () =&gt; {\n  \/\/ \u30dc\u30bf\u30f3\u3068\u30e1\u30cb\u30e5\u30fc\u306e\u4e21\u65b9\u306b is-open \u3092\u4ed8\u3051\u5916\u3057\n  const isOpen = menu.classList.toggle(\"is-open\");\n  btn.classList.toggle(\"is-open\", isOpen);\n\n  \/\/ \u72b6\u614b\u3092\u652f\u63f4\u6280\u8853\u306b\u4f1d\u3048\u308b\n  btn.setAttribute(\"aria-expanded\", String(isOpen));\n  btn.setAttribute(\"aria-label\", isOpen ? \"\u30e1\u30cb\u30e5\u30fc\u3092\u9589\u3058\u308b\" : \"\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u304f\");\n});<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\"><code>toggle()<\/code> \u306f<strong><span class=\"swl-marker mark_yellow\">\u5b9f\u884c\u5f8c\u306b\u30af\u30e9\u30b9\u304c\u4ed8\u3044\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092<code>true<\/code>\uff0f<code>false<\/code>\u3067\u8fd4\u3057\u3066\u304f\u308c\u307e\u3059<\/span><\/strong>\u3002\u3053\u306e\u623b\u308a\u5024\u3092 <code>isOpen<\/code> \u306b\u53d7\u3051\u53d6\u308a\u3001<code>aria-expanded<\/code> \u306e\u5024\u3084\u30e9\u30d9\u30eb\u306e\u6587\u8a00\u3092\u540c\u6642\u306b\u66f4\u65b0\u3057\u3066\u3044\u308b\u306e\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u3053\u308c\u3067\u898b\u305f\u76ee\u3068\u300c\u610f\u5473\u300d\u306e\u4e21\u65b9\u304c\u6b63\u3057\u304f\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">Esc\u30ad\u30fc\u3067\u9589\u3058\u3089\u308c\u308b\u3088\u3046\u306b\u3059\u308b<\/h3>\n<p class=\"wp-block-paragraph\">\u30ad\u30fc\u30dc\u30fc\u30c9\u3060\u3051\u3067\u64cd\u4f5c\u3059\u308b\u4eba\u306e\u305f\u3081\u306b\u3001<strong><span class=\"swl-marker mark_yellow\">Esc\u30ad\u30fc\u3067\u30e1\u30cb\u30e5\u30fc\u3092\u9589\u3058\u3089\u308c\u308b<\/span><\/strong>\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u958b\u3044\u3066\u3044\u308b\u3068\u304d\u3060\u3051Esc\u3092\u53d7\u3051\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-javascript\" data-lang=\"JavaScript\"><code>document.addEventListener(\"keydown\", (e) =&gt; {\n  if (e.key === \"Escape\" &amp;&amp; menu.classList.contains(\"is-open\")) {\n    closeMenu();\n  }\n});\n\nfunction closeMenu() {\n  menu.classList.remove(\"is-open\");\n  btn.classList.remove(\"is-open\");\n  btn.setAttribute(\"aria-expanded\", \"false\");\n  btn.setAttribute(\"aria-label\", \"\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u304f\");\n  btn.focus(); \/\/ \u30d5\u30a9\u30fc\u30ab\u30b9\u3092\u30dc\u30bf\u30f3\u306b\u623b\u3059\n}<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\">\u9589\u3058\u308b\u51e6\u7406\u306f\u8907\u6570\u306e\u5834\u6240\uff08Esc\u30ad\u30fc\u30fb\u5916\u5074\u30af\u30ea\u30c3\u30af\u30fb\u30ea\u30f3\u30af\u9078\u629e\uff09\u304b\u3089\u547c\u3070\u308c\u308b\u306e\u3067\u3001<code>closeMenu()<\/code> \u3068\u3044\u3046<strong><span class=\"swl-marker mark_yellow\">\u95a2\u6570\u306b\u307e\u3068\u3081\u3066\u518d\u5229\u7528<\/span><\/strong>\u3057\u3066\u3044\u307e\u3059\u3002\u9589\u3058\u305f\u5f8c\u306b <code>btn.focus()<\/code> \u3067\u30d5\u30a9\u30fc\u30ab\u30b9\u3092\u30dc\u30bf\u30f3\u3078\u623b\u3059\u306e\u306f\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u5229\u7528\u8005\u304c\u64cd\u4f5c\u306e\u7d9a\u304d\u3092\u3057\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306e\u914d\u616e\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u5916\u5074\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3089\u9589\u3058\u308b<\/h3>\n<p class=\"wp-block-paragraph\">\u30e1\u30cb\u30e5\u30fc\u306e\u5916\u5074\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306b\u9589\u3058\u308b\u6319\u52d5\u3082\u3001\u591a\u304f\u306e\u30b5\u30a4\u30c8\u3067\u63a1\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u5834\u6240\u304c\u30e1\u30cb\u30e5\u30fc\u3067\u3082\u30dc\u30bf\u30f3\u3067\u3082\u306a\u3051\u308c\u3070\u9589\u3058\u308b<\/span><\/strong>\u3001\u3068\u3044\u3046\u5224\u5b9a\u3067\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-javascript\" data-lang=\"JavaScript\"><code>document.addEventListener(\"click\", (e) =&gt; {\n  const clickedInside = menu.contains(e.target) || btn.contains(e.target);\n  if (!clickedInside &amp;&amp; menu.classList.contains(\"is-open\")) {\n    closeMenu();\n  }\n});<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\"><code>contains()<\/code> \u306f\u300c\u305d\u306e\u8981\u7d20\u306e\u5185\u5074\u306b\u3001\u6307\u5b9a\u3057\u305f\u8981\u7d20\u304c\u542b\u307e\u308c\u308b\u304b\u300d\u3092\u5224\u5b9a\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<code>e.target<\/code>\uff08\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u5b9f\u969b\u306e\u8981\u7d20\uff09\u304c\u30e1\u30cb\u30e5\u30fc\u5185\u3067\u3082\u30dc\u30bf\u30f3\u5185\u3067\u3082\u306a\u3051\u308c\u3070\u3001\u5916\u5074\u3068\u307f\u306a\u3057\u3066\u9589\u3058\u307e\u3059\u3002\u30dc\u30bf\u30f3\u81ea\u8eab\u306e\u30af\u30ea\u30c3\u30af\u3092\u9664\u5916\u3057\u306a\u3044\u3068<strong><span class=\"swl-marker mark_yellow\">\u958b\u3044\u305f\u77ac\u9593\u306b\u5373\u9589\u3058\u3066\u3057\u307e\u3046<\/span><\/strong>\u306e\u3067\u3001\u5fc5\u305a\u30dc\u30bf\u30f3\u3082\u5224\u5b9a\u306b\u542b\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u5bfe\u5fdc\u3067\u300c\u8ab0\u3067\u3082\u4f7f\u3048\u308b\u30e1\u30cb\u30e5\u30fc\u300d\u306b\u3059\u308b<\/h2>\n<p class=\"wp-block-paragraph\">\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u3068\u306f\u3001<strong><span class=\"swl-marker mark_yellow\">\u76ee\u304c\u898b\u3048\u306b\u304f\u3044\u4eba\u30fb\u30de\u30a6\u30b9\u304c\u4f7f\u3048\u306a\u3044\u4eba\u30fb\u97f3\u58f0\u3067\u64cd\u4f5c\u3059\u308b\u4eba\u306a\u3069\u3001\u3042\u3089\u3086\u308b\u5229\u7528\u8005\u304c\u540c\u3058\u3088\u3046\u306b\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u914d\u616e<\/span><\/strong>\u306e\u3053\u3068\u3067\u3059\u3002\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306f\u64cd\u4f5c\u306e\u8d77\u70b9\u306b\u306a\u308b\u91cd\u8981\u306a\u90e8\u54c1\u306a\u306e\u3067\u3001\u3053\u3053\u3092\u4e01\u5be7\u306b\u4f5c\u308b\u3068\u4e00\u6c17\u306b\u30d7\u30ed\u3089\u3057\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u5fc5\u305abutton\u8981\u7d20\u3092\u4f7f\u3046<\/h3>\n<p class=\"wp-block-paragraph\">\u30af\u30ea\u30c3\u30af\u3067\u304d\u308b\u90e8\u54c1\u3092 <code>&lt;div&gt;<\/code> \u3084 <code>&lt;span&gt;<\/code> \u3067\u4f5c\u3063\u3066\u3057\u307e\u3046\u4eba\u304c\u591a\u3044\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u306fNG\u3067\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">\u958b\u9589\u3092\u5207\u308a\u66ff\u3048\u308b\u30dc\u30bf\u30f3\u306f\u5fc5\u305a<code>&lt;button&gt;<\/code>\u8981\u7d20\u3067\u4f5c\u308a\u307e\u3057\u3087\u3046<\/span><\/strong>\u3002<code>button<\/code> \u306f\u6b21\u306e\u6027\u8cea\u3092\u6700\u521d\u304b\u3089\u5099\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul class=\"wp-block-list\">\n<li>\u30ad\u30fc\u30dc\u30fc\u30c9\u306eTab\u30ad\u30fc\u3067\u9078\u3079\u3001Enter\uff0fSpace\u30ad\u30fc\u3067\u62bc\u305b\u308b<\/li>\n<li>\u8aad\u307f\u4e0a\u3052\u30bd\u30d5\u30c8\u304c\u300c\u30dc\u30bf\u30f3\u300d\u3068\u6b63\u3057\u304f\u8aad\u307f\u4e0a\u3052\u308b<\/li>\n<li>\u30d5\u30a9\u30fc\u30ab\u30b9\u3055\u308c\u305f\u3068\u304d\u306e\u67a0\uff08\u30d5\u30a9\u30fc\u30ab\u30b9\u30ea\u30f3\u30b0\uff09\u304c\u81ea\u52d5\u3067\u51fa\u308b<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\"><code>div<\/code> \u3067\u540c\u3058\u3053\u3068\u3092\u3084\u308d\u3046\u3068\u3059\u308b\u3068\u3001<code>tabindex<\/code> \u3084\u30ad\u30fc\u64cd\u4f5c\u306e\u51e6\u7406\u3092\u81ea\u5206\u3067\u66f8\u304b\u306a\u3051\u308c\u3070\u306a\u3089\u305a\u3001\u629c\u3051\u6f0f\u308c\u304c\u8d77\u304d\u304c\u3061\u3067\u3059\u3002\u6700\u521d\u304b\u3089 <code>button<\/code> \u3092\u4f7f\u3048\u3070\u3001\u3053\u308c\u3089\u304c\u3059\u3079\u3066\u7121\u6599\u3067\u624b\u306b\u5165\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">aria-controls \u3068 aria-expanded \u3092\u4ed8\u3051\u308b<\/h3>\n<p class=\"wp-block-paragraph\">\u8aad\u307f\u4e0a\u3052\u30bd\u30d5\u30c8\u306b\u300c\u3053\u306e\u30dc\u30bf\u30f3\u304c\u4f55\u3092\u64cd\u4f5c\u3057\u3001\u3044\u307e\u958b\u3044\u3066\u3044\u308b\u306e\u304b\u9589\u3058\u3066\u3044\u308b\u306e\u304b\u300d\u3092\u4f1d\u3048\u308b\u306e\u304c<strong><span class=\"swl-marker mark_yellow\"><code>aria-controls<\/code>\u3068<code>aria-expanded<\/code><\/span><\/strong>\u3067\u3059\u3002<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u5f79\u5272<\/th>\n<th>\u5024\u306e\u4f8b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>aria-controls<\/td>\n<td>\u64cd\u4f5c\u5bfe\u8c61\u306e\u30e1\u30cb\u30e5\u30fc\u306eid\u3092\u6307\u3059<\/td>\n<td>global-menu<\/td>\n<\/tr>\n<tr>\n<td>aria-expanded<\/td>\n<td>\u3044\u307e\u958b\u3044\u3066\u3044\u308b\u304b<\/td>\n<td>true \/ false<\/td>\n<\/tr>\n<tr>\n<td>aria-label<\/td>\n<td>\u30dc\u30bf\u30f3\u306e\u8aac\u660e\u6587<\/td>\n<td>\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u304f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p class=\"wp-block-paragraph\">\u91cd\u8981\u306a\u306e\u306f\u3001<code>aria-expanded<\/code> \u3092<strong><span class=\"swl-marker mark_yellow\">\u958b\u9589\u306b\u5408\u308f\u305b\u3066JavaScript\u3067\u5fc5\u305a\u66f4\u65b0\u3059\u308b<\/span><\/strong>\u3053\u3068\u3067\u3059\u3002\u898b\u305f\u76ee\u3060\u3051\u5909\u3048\u3066\u5c5e\u6027\u3092\u653e\u7f6e\u3059\u308b\u3068\u3001\u8aad\u307f\u4e0a\u3052\u30bd\u30d5\u30c8\u3092\u4f7f\u3046\u4eba\u306b\u306f\u300c\u9589\u3058\u305f\u307e\u307e\u300d\u306b\u805e\u3053\u3048\u3066\u3057\u307e\u3044\u3001\u72b6\u614b\u304c\u98df\u3044\u9055\u3044\u307e\u3059\u3002\u524d\u7ae0\u306e\u30b3\u30fc\u30c9\u3067 <code>setAttribute(\"aria-expanded\", ...)<\/code> \u3092\u5165\u308c\u3066\u3044\u305f\u306e\u306f\u3053\u306e\u305f\u3081\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u30ad\u30fc\u30dc\u30fc\u30c9\u3060\u3051\u3067\u5b8c\u7d50\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/h3>\n<p class=\"wp-block-paragraph\">\u30de\u30a6\u30b9\u3092\u4f7f\u308f\u306a\u3044\u5229\u7528\u8005\u306e\u305f\u3081\u306b\u3001<strong><span class=\"swl-marker mark_yellow\">\u30ad\u30fc\u30dc\u30fc\u30c9\u3060\u3051\u3067\u958b\u304f\u30fb\u9078\u3076\u30fb\u9589\u3058\u308b\u304c\u5b8c\u7d50\u3059\u308b<\/span><\/strong>\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30c1\u30a7\u30c3\u30af\u9805\u76ee\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul class=\"wp-block-list\">\n<li>Tab\u30ad\u30fc\u3067\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30dc\u30bf\u30f3\u306b\u305f\u3069\u308a\u7740\u3051\u308b\u304b<\/li>\n<li>Enter\uff0fSpace\u30ad\u30fc\u3067\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u3051\u308b\u304b\uff08<code>button<\/code>\u306a\u3089\u81ea\u52d5\u3067\u5bfe\u5fdc\uff09<\/li>\n<li>\u958b\u3044\u305f\u3042\u3068\u3001Tab\u30ad\u30fc\u3067\u30e1\u30cb\u30e5\u30fc\u5185\u306e\u30ea\u30f3\u30af\u3092\u9806\u306b\u305f\u3069\u308c\u308b\u304b<\/li>\n<li>Esc\u30ad\u30fc\u3067\u30e1\u30cb\u30e5\u30fc\u3092\u9589\u3058\u3089\u308c\u308b\u304b<\/li>\n<li>\u9589\u3058\u305f\u3042\u3068\u3001\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u30dc\u30bf\u30f3\u3078\u623b\u308b\u304b<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\">\u52d5\u304d\u3092\u63a7\u3048\u308b\u8a2d\u5b9a\uff08prefers-reduced-motion\uff09\u306b\u5bfe\u5fdc\u3059\u308b<\/h3>\n<p class=\"wp-block-paragraph\">\u753b\u9762\u306e\u52d5\u304d\u3067\u6c17\u5206\u304c\u60aa\u304f\u306a\u308b\u4eba\u306e\u305f\u3081\u306b\u3001OS\u306b\u306f\u300c\u8996\u5dee\u52b9\u679c\u3092\u6e1b\u3089\u3059\u300d\u3068\u3044\u3046\u8a2d\u5b9a\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u308b\u4eba\u306b\u306f<strong><span class=\"swl-marker mark_yellow\">\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u63a7\u3048\u308b<\/span><\/strong>\u306e\u304c\u89aa\u5207\u3067\u3059\u3002CSS\u306e <code>prefers-reduced-motion<\/code> \u3067\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>@media (prefers-reduced-motion: reduce) {\n  .menu,\n  .menu-btn-line,\n  .menu-btn-line::before,\n  .menu-btn-line::after {\n    transition: none;\n  }\n}<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\">\u3053\u306e\u6307\u5b9a\u3092\u5165\u308c\u3066\u304a\u304f\u3068\u3001\u52d5\u304d\u3092\u6e1b\u3089\u3059\u8a2d\u5b9a\u306e\u4eba\u306b\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306a\u3057\u3067\u5373\u5ea7\u306b\u5207\u308a\u66ff\u308f\u308a\u3001\u305d\u308c\u4ee5\u5916\u306e\u4eba\u306b\u306f\u3053\u308c\u307e\u3067\u3069\u304a\u308a\u306a\u3081\u3089\u304b\u306b\u52d5\u304d\u307e\u3059\u3002\u4e21\u65b9\u306b\u914d\u616e\u3067\u304d\u308b\u3001\u899a\u3048\u3066\u304a\u304d\u305f\u3044\u30c6\u30af\u30cb\u30c3\u30af\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u3044\u305f\u3089\u80cc\u666f\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u3092\u6b62\u3081\u308b<\/h3>\n<p class=\"wp-block-paragraph\">\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u3044\u305f\u307e\u307e\u80cc\u666f\u304c\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u3066\u3057\u307e\u3046\u3068\u64cd\u4f5c\u3057\u3065\u3089\u3044\u306e\u3067\u3001<strong><span class=\"swl-marker mark_yellow\">\u958b\u3044\u3066\u3044\u308b\u9593\u3060\u3051<code>body<\/code>\u306e\u30b9\u30af\u30ed\u30fc\u30eb\u3092\u56fa\u5b9a<\/span><\/strong>\u3057\u307e\u3059\u3002JavaScript\u3067 <code>body<\/code> \u306b\u30af\u30e9\u30b9\u3092\u4ed8\u3051\u3066\u5236\u5fa1\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* CSS\uff1a\u3053\u306e\u72b6\u614b\u306e\u3068\u304d\u30b9\u30af\u30ed\u30fc\u30eb\u3092\u6b62\u3081\u308b *\/\nbody.menu-open {\n  overflow: hidden;\n}<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-javascript\" data-lang=\"JavaScript\"><code>\/\/ JS\uff1a\u958b\u9589\u306b\u5408\u308f\u305b\u3066 body \u306e\u30af\u30e9\u30b9\u3082\u5207\u308a\u66ff\u3048\u308b\ndocument.body.classList.toggle(\"menu-open\", isOpen);<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\"><code>overflow: hidden;<\/code> \u3092 <code>body<\/code> \u306b\u4ed8\u3051\u308b\u3068\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u64cd\u4f5c\u3092\u53d7\u3051\u4ed8\u3051\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u9589\u3058\u308b\u3068\u304d\u306b\u30af\u30e9\u30b9\u3092\u5916\u3059\u306e\u3092\u5fd8\u308c\u308b\u3068<strong><span class=\"swl-marker mark_yellow\">\u30da\u30fc\u30b8\u5168\u4f53\u304c\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u306a\u304f\u306a\u308b<\/span><\/strong>\u306e\u3067\u3001\u958b\u9589\u306e\u4e21\u65b9\u3067\u78ba\u5b9f\u306b\u5207\u308a\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-white-color has-text-color has-background has-link-color wp-element-button\" href=\"https:\/\/withcode.tech\/reservation\/\" style=\"background-color:#ffbf00\"><strong>\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u7121\u6599\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u306b\u7533\u3057\u8fbc\u3080 \u2192<\/strong><\/a><\/div>\n<\/div>\n<h2 class=\"wp-block-heading\">\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\uff1aPC\u306f\u901a\u5e38\u30ca\u30d3\u3001\u30b9\u30de\u30db\u306f\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc<\/h2>\n<p class=\"wp-block-paragraph\">\u5b9f\u969b\u306e\u30b5\u30a4\u30c8\u3067\u306f\u3001<strong><span class=\"swl-marker mark_yellow\">PC\u3067\u306f\u6a2a\u4e26\u3073\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3001\u30b9\u30de\u30db\u3067\u306f\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc<\/span><\/strong>\u3068\u3044\u3046\u3088\u3046\u306b\u3001\u753b\u9762\u5e45\u3067\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002\u3053\u306e\u5207\u308a\u66ff\u3048\u306fCSS\u306e\u300c\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u300d\u3067\u884c\u3044\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u3067\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b<\/h3>\n<p class=\"wp-block-paragraph\">\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u3068\u306f\u3001<strong><span class=\"swl-marker mark_yellow\">\u753b\u9762\u5e45\u306a\u3069\u306e\u6761\u4ef6\u306b\u5fdc\u3058\u3066\u9069\u7528\u3059\u308bCSS\u3092\u5207\u308a\u66ff\u3048\u308b\u4ed5\u7d44\u307f<\/span><\/strong>\u3067\u3059\u3002<code>@media (max-width: 768px)<\/code> \u3068\u66f8\u304f\u3068\u300c\u753b\u9762\u5e45\u304c768px\u4ee5\u4e0b\u306e\u3068\u304d\u3060\u3051\u300d\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* --- PC\uff08\u521d\u671f\u72b6\u614b\uff09\uff1a\u30ca\u30d3\u306f\u6a2a\u4e26\u3073\u3001\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u306f\u96a0\u3059 --- *\/\n.menu {\n  position: static;\n  transform: none;\n  width: auto;\n  height: auto;\n  background: transparent;\n}\n.menu ul { display: flex; gap: 24px; }\n.menu a { color: #333; }\n.menu-btn { display: none; } \/* PC\u3067\u306f3\u672c\u7dda\u3092\u6d88\u3059 *\/\n\n\/* --- \u30b9\u30de\u30db\uff08768px\u4ee5\u4e0b\uff09\uff1a\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u8868\u793a\u306b\u5207\u308a\u66ff\u3048 --- *\/\n@media (max-width: 768px) {\n  .menu-btn { display: flex; } \/* 3\u672c\u7dda\u3092\u8868\u793a *\/\n  .menu {\n    position: fixed;\n    top: 0; right: 0;\n    width: 260px;\n    height: 100%;\n    background: #1e293b;\n    transform: translateX(100%);\n    transition: transform 0.3s ease;\n  }\n  .menu ul { display: block; }\n  .menu a { color: #fff; }\n  .menu.is-open { transform: translateX(0); }\n}<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\">\u8003\u3048\u65b9\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">PC\u7528\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u57fa\u672c\u3068\u3057\u3066\u66f8\u304d\u3001\u30b9\u30de\u30db\u7528\u306e\u5909\u66f4\u70b9\u3060\u3051\u3092\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u306e\u4e2d\u3067\u4e0a\u66f8\u304d<\/span><\/strong>\u3057\u3066\u3044\u307e\u3059\u3002PC\u3067\u306f\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30dc\u30bf\u30f3\u3092 <code>display: none;<\/code> \u3067\u96a0\u3057\u3001\u30e1\u30cb\u30e5\u30fc\u3092\u666e\u901a\u306e\u6a2a\u4e26\u3073\u30ca\u30d3\u3068\u3057\u3066\u898b\u305b\u307e\u3059\u3002\u30b9\u30de\u30db\u306b\u306a\u3063\u305f\u3089\u30dc\u30bf\u30f3\u3092\u8868\u793a\u3057\u3001\u30e1\u30cb\u30e5\u30fc\u3092\u753b\u9762\u5916\u3078\u96a0\u3059\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u4ed5\u69d8\u306b\u5207\u308a\u66ff\u3048\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u30d6\u30ec\u30a4\u30af\u30dd\u30a4\u30f3\u30c8\u306f\u4f55px\u306b\u3059\u3079\u304d\u304b<\/h3>\n<p class=\"wp-block-paragraph\">\u5207\u308a\u66ff\u3048\u308b\u5883\u76ee\u306e\u5e45\u3092\u300c\u30d6\u30ec\u30a4\u30af\u30dd\u30a4\u30f3\u30c8\u300d\u3068\u547c\u3073\u307e\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">768px\u304c\u5b9a\u756a<\/span><\/strong>\u3067\u3001\u30bf\u30d6\u30ec\u30c3\u30c8\u7e26\u5411\u304d\u306e\u5883\u76ee\u306b\u3042\u305f\u308a\u307e\u3059\u3002\u30ca\u30d3\u306e\u9805\u76ee\u304c\u591a\u304f\u3066\u6a2a\u4e26\u3073\u306b\u53ce\u307e\u3089\u306a\u3044\u5834\u5408\u306f\u3001900px\u30841024px\u306a\u3069\u5927\u304d\u3081\u306b\u3059\u308b\u306e\u3082\u624b\u3067\u3059\u3002\u5b9f\u969b\u306b\u30d6\u30e9\u30a6\u30b6\u306e\u5e45\u3092\u7e2e\u3081\u306a\u304c\u3089\u3001\u6a2a\u4e26\u3073\u304c\u7aae\u5c48\u306b\u306a\u308a\u59cb\u3081\u308b\u5e45\u3092\u63a2\u3057\u3066\u6c7a\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"wp-block-heading\">min-width\u3068max-width\u306e\u4f7f\u3044\u5206\u3051<\/h3>\n<p class=\"wp-block-paragraph\">\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u306b\u306f <code>max-width<\/code>\uff08\u301c\u4ee5\u4e0b\uff09\u3068 <code>min-width<\/code>\uff08\u301c\u4ee5\u4e0a\uff09\u306e2\u3064\u304c\u3042\u308a\u307e\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">\u300c\u30b9\u30de\u30db\u3092\u57fa\u672c\u306b\u3001PC\u3067\u4e0a\u66f8\u304d\u3059\u308b\u300d\u8a2d\u8a08\u306a\u3089<code>min-width<\/code>\u3001\u300cPC\u3092\u57fa\u672c\u306b\u30b9\u30de\u30db\u3067\u4e0a\u66f8\u304d\u3059\u308b\u300d\u8a2d\u8a08\u306a\u3089<code>max-width<\/code><\/span><\/strong>\u3092\u4f7f\u3044\u307e\u3059\u3002\u3069\u3061\u3089\u3067\u3082\u4f5c\u308c\u307e\u3059\u304c\u3001\u8fd1\u5e74\u306f\u8efd\u3044\u30b9\u30de\u30db\u8868\u793a\u3092\u57fa\u672c\u306b\u3059\u308b\u300c\u30e2\u30d0\u30a4\u30eb\u30d5\u30a1\u30fc\u30b9\u30c8\u300d\u306e\u8003\u3048\u65b9\u304b\u3089 <code>min-width<\/code> \u304c\u597d\u307e\u308c\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u30e2\u30d0\u30a4\u30eb\u30d5\u30a1\u30fc\u30b9\u30c8\uff1a\u30b9\u30de\u30db\u304c\u57fa\u672c\u3001PC\u3067\u4e0a\u66f8\u304d *\/\n.menu-btn { display: flex; } \/* \u30b9\u30de\u30db\uff1a\u30dc\u30bf\u30f3\u8868\u793a *\/\n\n@media (min-width: 769px) {\n  .menu-btn { display: none; } \/* PC\uff1a\u30dc\u30bf\u30f3\u3092\u96a0\u3059 *\/\n  .menu ul { display: flex; }  \/* PC\uff1a\u6a2a\u4e26\u3073 *\/\n}<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\">\u3069\u3061\u3089\u306e\u66f8\u304d\u65b9\u3067\u3082\u7d50\u679c\u306f\u540c\u3058\u306b\u3067\u304d\u307e\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u65b9\u91dd\u306b\u5408\u308f\u305b\u3001\u30c1\u30fc\u30e0\u5185\u3067\u7d71\u4e00\u3059\u308b\u306e\u304c\u4e00\u756a\u5927\u5207\u3067\u3059\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">\u4f7f\u3044\u3084\u3059\u304f\u898b\u305b\u308b\u30c7\u30b6\u30a4\u30f3\u306e\u30b3\u30c4\u3068\u3001\u30d8\u30c3\u30c0\u30fc\u3078\u306e\u7d44\u307f\u8fbc\u307f<\/h2>\n<p class=\"wp-block-paragraph\">\u30b3\u30fc\u30c9\u304c\u52d5\u304f\u3088\u3046\u306b\u306a\u3063\u305f\u3089\u3001\u6b21\u306f<strong><span class=\"swl-marker mark_yellow\">\u300c\u4f7f\u3044\u3084\u3059\u304f\u3001\u8ff7\u308f\u305b\u306a\u3044\u300d\u305f\u3081\u306e\u898b\u305f\u76ee\u306e\u8abf\u6574<\/span><\/strong>\u3067\u3059\u3002\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306f\u4fbf\u5229\u306a\u53cd\u9762\u3001\u4f7f\u3044\u65b9\u3092\u8aa4\u308b\u3068\u300c\u30e1\u30cb\u30e5\u30fc\u304c\u3069\u3053\u306b\u3042\u308b\u304b\u5206\u304b\u3089\u306a\u3044\u300d\u3068\u3044\u3046\u4e0d\u6e80\u3092\u751f\u307f\u3084\u3059\u3044\u90e8\u54c1\u3067\u3082\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u7ae0\u3067\u306f\u307e\u305aUX\u306e\u30b3\u30c4\u3092\u62bc\u3055\u3048\u3001\u5f8c\u534a\u3067\u5b9f\u6226\u7684\u306a\u30d8\u30c3\u30c0\u30fc\u306e\u5b8c\u6210\u4f8b\u307e\u3067\u7d44\u307f\u7acb\u3066\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u30a2\u30a4\u30b3\u30f3\u306b\u300c\u30e1\u30cb\u30e5\u30fc\u300d\u3068\u3044\u3046\u6587\u5b57\u3092\u6dfb\u3048\u308b<\/h3>\n<p class=\"wp-block-paragraph\">3\u672c\u7dda\u3060\u3051\u3060\u3068\u3001Web\u306b\u4e0d\u6163\u308c\u306a\u4eba\u306b\u306f\u300c\u3053\u308c\u304c\u30e1\u30cb\u30e5\u30fc\u3060\u300d\u3068\u4f1d\u308f\u308a\u306b\u304f\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">\u30a2\u30a4\u30b3\u30f3\u306e\u4e0b\u3084\u6a2a\u306b\u5c0f\u3055\u304f\u300cMENU\u300d\u3068\u6587\u5b57\u3092\u6dfb\u3048\u308b<\/span><\/strong>\u3060\u3051\u3067\u3001\u5206\u304b\u308a\u3084\u3059\u3055\u304c\u5927\u304d\u304f\u4e0a\u304c\u308a\u307e\u3059\u3002\u7814\u7a76\u3067\u3082\u3001\u6587\u5b57\u30e9\u30d9\u30eb\u4ed8\u304d\u306e\u307b\u3046\u304c\u30bf\u30c3\u30d7\u7387\u304c\u9ad8\u3044\u50be\u5411\u304c\u77e5\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;button class=\"menu-btn\" aria-label=\"\u30e1\u30cb\u30e5\u30fc\" aria-expanded=\"false\"&gt;\n  &lt;span class=\"menu-btn-line\"&gt;&lt;\/span&gt;\n  &lt;span class=\"menu-btn-text\"&gt;MENU&lt;\/span&gt;\n&lt;\/button&gt;<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.menu-btn {\n  flex-direction: column;\n  gap: 4px;\n}\n.menu-btn-text {\n  font-size: 10px;\n  letter-spacing: 0.05em;\n  color: #333;\n}<\/code><\/pre>\n<\/div>\n<h3 class=\"wp-block-heading\">\u30bf\u30c3\u30d7\u3067\u304d\u308b\u7bc4\u56f2\u3092\u5341\u5206\u306b\u5e83\u304f\u53d6\u308b<\/h3>\n<p class=\"wp-block-paragraph\">\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306f\u6307\u3067\u64cd\u4f5c\u3059\u308b\u305f\u3081\u3001<strong><span class=\"swl-marker mark_yellow\">\u30dc\u30bf\u30f3\u306e\u5f53\u305f\u308a\u5224\u5b9a\u306f\u6700\u4f4e44px\u56db\u65b9\u3092\u78ba\u4fdd\u3059\u308b<\/span><\/strong>\u306e\u304c\u76ee\u5b89\u3067\u3059\u30023\u672c\u7dda\u306e\u898b\u305f\u76ee\u306f\u7d30\u304f\u3066\u3082\u3001<code>button<\/code> \u306e <code>width<\/code>\uff0f<code>height<\/code> \u3084 <code>padding<\/code> \u3092\u5e83\u3052\u3066\u3001\u62bc\u3057\u3084\u3059\u3044\u5927\u304d\u3055\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u5f53\u305f\u308a\u5224\u5b9a\u304c\u5c0f\u3055\u3044\u3068\u300c\u62bc\u3057\u305f\u306e\u306b\u53cd\u5fdc\u3057\u306a\u3044\u300d\u3068\u3044\u3046\u30b9\u30c8\u30ec\u30b9\u306e\u539f\u56e0\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u958b\u3044\u3066\u3044\u308b\u72b6\u614b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u793a\u3059<\/h3>\n<p class=\"wp-block-paragraph\">\u30e1\u30cb\u30e5\u30fc\u304c\u958b\u3044\u305f\u3068\u304d\u3001<strong><span class=\"swl-marker mark_yellow\">3\u672c\u7dda\u304c\u00d7\u306b\u5909\u308f\u308b\u30fb\u80cc\u666f\u304c\u6697\u304f\u306a\u308b<\/span><\/strong>\u3068\u3044\u3063\u305f\u5909\u5316\u3092\u304d\u3061\u3093\u3068\u4ed8\u3051\u308b\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u300c\u3044\u307e\u958b\u3044\u3066\u3044\u308b\u300d\u300c\u3082\u3046\u4e00\u5ea6\u62bc\u305b\u3070\u9589\u3058\u308b\u300d\u3068\u76f4\u611f\u7684\u306b\u7406\u89e3\u3067\u304d\u307e\u3059\u3002\u958b\u9589\u306e\u72b6\u614b\u304c\u3072\u3068\u76ee\u3067\u5206\u304b\u3089\u306a\u3044\u3068\u3001\u540c\u3058\u30dc\u30bf\u30f3\u3092\u4f55\u5ea6\u3082\u62bc\u3057\u3066\u3057\u307e\u3046\u6df7\u4e71\u3092\u62db\u304d\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u4f5c\u3063\u305f\u00d7\u3078\u306e\u5909\u5f62\u3068\u6697\u5e55\u306f\u3001\u307e\u3055\u306b\u3053\u306e\u5206\u304b\u308a\u3084\u3059\u3055\u306e\u305f\u3081\u306e\u5de5\u592b\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u8272\u306e\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u3092\u78ba\u4fdd\u3059\u308b<\/h3>\n<p class=\"wp-block-paragraph\">3\u672c\u7dda\u3084\u30e1\u30cb\u30e5\u30fc\u5185\u306e\u6587\u5b57\u306f\u3001\u80cc\u666f\u3068\u306e<strong><span class=\"swl-marker mark_yellow\">\u660e\u308b\u3055\u306e\u5dee\uff08\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\uff09\u3092\u5341\u5206\u306b\u53d6\u308b<\/span><\/strong>\u3053\u3068\u304c\u5927\u5207\u3067\u3059\u3002\u8584\u3044\u30b0\u30ec\u30fc\u306e\u7dda\u3092\u767d\u3044\u80cc\u666f\u306b\u7f6e\u304f\u3068\u3001\u76ee\u304c\u75b2\u308c\u3066\u3044\u308b\u4eba\u3084\u660e\u308b\u3044\u5c4b\u5916\u3067\u306f\u898b\u3048\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002\u6587\u5b57\u3068\u80cc\u666f\u306e\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u6bd4\u306f\u3001\u4e00\u822c\u7684\u306a\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u6307\u91dd\u3067\u672c\u6587\u306a\u30894.5\u5bfe1\u4ee5\u4e0a\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u6fc3\u3044\u8272\u306e\u7dda\u30fb\u306f\u3063\u304d\u308a\u3057\u305f\u6587\u5b57\u8272\u3092\u9078\u3073\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u3084\u308a\u3059\u304e\u306a\u3044<\/h3>\n<p class=\"wp-block-paragraph\">\u51dd\u3063\u305f\u52d5\u304d\u306f\u697d\u3057\u3044\u3067\u3059\u304c\u3001<strong><span class=\"swl-marker mark_yellow\">\u958b\u9589\u306e\u305f\u3073\u306b\u6d3e\u624b\u306a\u30a2\u30cb\u30e1\u304c\u8d70\u308b\u3068\u3001\u304b\u3048\u3063\u3066\u64cd\u4f5c\u306e\u30c6\u30f3\u30dd\u3092\u640d\u306d\u307e\u3059<\/span><\/strong>\u3002\u30e1\u30cb\u30e5\u30fc\u306f\u300c\u7d20\u65e9\u304f\u958b\u3044\u3066\u3001\u7d20\u65e9\u304f\u4f7f\u3048\u308b\u300d\u3053\u3068\u304c\u6700\u512a\u5148\u3067\u3059\u3002<code>transition<\/code> \u306f0.3\u79d2\u524d\u5f8c\u3092\u57fa\u6e96\u306b\u3001\u63a7\u3048\u3081\u3067\u30ad\u30d3\u30ad\u30d3\u3057\u305f\u52d5\u304d\u306b\u307e\u3068\u3081\u308b\u3068\u3001\u4e0a\u54c1\u3067\u4f7f\u3044\u3084\u3059\u3044\u5370\u8c61\u306b\u306a\u308a\u307e\u3059\u3002\u524d\u8ff0\u306e <code>prefers-reduced-motion<\/code> \u5bfe\u5fdc\u3082\u5fd8\u308c\u305a\u306b\u5165\u308c\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u3053\u3053\u307e\u3067\u306f\u90e8\u54c1\u3092\u5358\u4f53\u3067\u4f5c\u3063\u3066\u304d\u307e\u3057\u305f\u3002\u3053\u3053\u304b\u3089\u306f\u3001<strong><span class=\"swl-marker mark_yellow\">\u30ed\u30b4\u30fb\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30dc\u30bf\u30f3\u30fb\u30e1\u30cb\u30e5\u30fc\u30921\u3064\u306e\u30d8\u30c3\u30c0\u30fc\u3068\u3057\u3066\u307e\u3068\u3081\u305f\u5b9f\u6226\u7684\u306a\u5b8c\u6210\u4f8b<\/span><\/strong>\u3092\u7d44\u307f\u7acb\u3066\u307e\u3059\u3002\u30b3\u30d4\u30fc\u3057\u3066\u81ea\u5206\u306e\u30b5\u30a4\u30c8\u306e\u571f\u53f0\u306b\u3067\u304d\u308b\u5f62\u306b\u3057\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u30d8\u30c3\u30c0\u30fc\u5168\u4f53\u306eHTML\u69cb\u9020<\/h3>\n<p class=\"wp-block-paragraph\">\u30d8\u30c3\u30c0\u30fc\u306f\u300c\u30ed\u30b4\u300d\u3068\u300c\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u300d\u306e2\u3064\u3067\u69cb\u6210\u3059\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002<strong><span class=\"swl-marker mark_yellow\"><code>&lt;header&gt;<\/code>\u306e\u4e2d\u306b\u3001\u5de6\u5074\u306b\u30ed\u30b4\u3001\u53f3\u5074\u306b\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30dc\u30bf\u30f3\u3068\u30e1\u30cb\u30e5\u30fc\u3092\u914d\u7f6e<\/span><\/strong>\u3057\u307e\u3059\u3002\u610f\u5473\u306e\u3042\u308bHTML\u30bf\u30b0\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u3084\u8aad\u307f\u4e0a\u3052\u30bd\u30d5\u30c8\u306b\u3082\u69cb\u9020\u304c\u6b63\u3057\u304f\u4f1d\u308f\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;header class=\"site-header\"&gt;\n  &lt;a href=\"\/\" class=\"logo\"&gt;WithCode&lt;\/a&gt;\n\n  &lt;button class=\"menu-btn\" aria-label=\"\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u304f\"\n          aria-expanded=\"false\" aria-controls=\"global-menu\"&gt;\n    &lt;span class=\"menu-btn-line\"&gt;&lt;\/span&gt;\n  &lt;\/button&gt;\n\n  &lt;nav class=\"menu\" id=\"global-menu\"&gt;\n    &lt;ul&gt;\n      &lt;li&gt;&lt;a href=\"\/\"&gt;\u30db\u30fc\u30e0&lt;\/a&gt;&lt;\/li&gt;\n      &lt;li&gt;&lt;a href=\"\/service\/\"&gt;\u30b5\u30fc\u30d3\u30b9&lt;\/a&gt;&lt;\/li&gt;\n      &lt;li&gt;&lt;a href=\"\/works\/\"&gt;\u5b9f\u7e3e\u7d39\u4ecb&lt;\/a&gt;&lt;\/li&gt;\n      &lt;li&gt;&lt;a href=\"\/about\/\"&gt;\u4f1a\u793e\u6982\u8981&lt;\/a&gt;&lt;\/li&gt;\n      &lt;li&gt;&lt;a href=\"\/contact\/\"&gt;\u304a\u554f\u3044\u5408\u308f\u305b&lt;\/a&gt;&lt;\/li&gt;\n    &lt;\/ul&gt;\n  &lt;\/nav&gt;\n&lt;\/header&gt;<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\"><code>&lt;header&gt;<\/code> \u306f\u30da\u30fc\u30b8\u306e\u898b\u51fa\u3057\u9818\u57df\u3092\u8868\u3059\u8981\u7d20\u3067\u3001<code>&lt;nav&gt;<\/code> \u306f\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u3059\u8981\u7d20\u3067\u3059\u3002\u3053\u306e2\u3064\u3092\u4f7f\u3046\u3060\u3051\u3067\u3001<strong><span class=\"swl-marker mark_yellow\">\u300c\u3053\u3053\u306f\u30d8\u30c3\u30c0\u30fc\u3067\u3001\u3053\u306e\u4e2d\u306b\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u304c\u3042\u308b\u300d\u3068\u3044\u3046\u610f\u5473<\/span><\/strong>\u304c\u6a5f\u68b0\u306b\u3082\u4f1d\u308f\u308a\u307e\u3059\u3002<code>class<\/code> \u540d\u306f\u81ea\u7531\u306b\u4ed8\u3051\u3066\u69cb\u3044\u307e\u305b\u3093\u304c\u3001\u5f79\u5272\u304c\u5206\u304b\u308b\u540d\u524d\u306b\u3057\u3066\u304a\u304f\u3068\u5f8c\u304b\u3089\u898b\u8fd4\u3057\u305f\u3068\u304d\u306b\u7406\u89e3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u30d8\u30c3\u30c0\u30fc\u306eCSS\uff08PC\u8868\u793a\uff09<\/h3>\n<p class=\"wp-block-paragraph\">\u307e\u305a\u306fPC\u3067\u306e\u898b\u305f\u76ee\u3092\u6574\u3048\u307e\u3059\u3002\u30ed\u30b4\u3092\u5de6\u3001\u30ca\u30d3\u3092\u53f3\u306b\u914d\u7f6e\u3057\u3001<strong><span class=\"swl-marker mark_yellow\"><code>display: flex;<\/code>\u3068<code>justify-content: space-between;<\/code>\u3067\u4e21\u7aef\u306b\u632f\u308a\u5206\u3051<\/span><\/strong>\u307e\u3059\u3002\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30dc\u30bf\u30f3\u306fPC\u3067\u306f\u4e0d\u8981\u306a\u306e\u3067\u96a0\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.site-header {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  padding: 16px 32px;\n  background: #fff;\n  box-shadow: 0 1px 6px rgba(0,0,0,0.08);\n  position: sticky;\n  top: 0;\n  z-index: 50;\n}\n.logo {\n  font-size: 22px;\n  font-weight: bold;\n  color: #1e293b;\n  text-decoration: none;\n}\n.menu ul {\n  display: flex;\n  gap: 28px;\n  list-style: none;\n  margin: 0;\n  padding: 0;\n}\n.menu a {\n  color: #333;\n  text-decoration: none;\n  font-weight: 600;\n}\n.menu a:hover { color: #2563eb; }\n.menu-btn { display: none; } \/* PC\u3067\u306f\u96a0\u3059 *\/<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\"><code>position: sticky; top: 0;<\/code> \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001<strong><span class=\"swl-marker mark_yellow\">\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3082\u30d8\u30c3\u30c0\u30fc\u304c\u753b\u9762\u4e0a\u90e8\u306b\u8cbc\u308a\u4ed8\u3044\u305f\u307e\u307e<\/span><\/strong>\u306b\u306a\u308a\u307e\u3059\u3002\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u304c\u5e38\u306b\u898b\u3048\u308b\u306e\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u3044\u3064\u3067\u3082\u30e1\u30cb\u30e5\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u4fbf\u5229\u3067\u3059\u3002\u30d8\u30c3\u30c0\u30fc\u306e <code>z-index<\/code> \u306f50\u306b\u3057\u3066\u3001\u672c\u6587\u3088\u308a\u624b\u524d\u30fb\u958b\u3044\u305f\u30e1\u30cb\u30e5\u30fc\u3088\u308a\u5965\u306b\u6765\u308b\u3088\u3046\u8abf\u6574\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u30d8\u30c3\u30c0\u30fc\u306eCSS\uff08\u30b9\u30de\u30db\u8868\u793a\uff09<\/h3>\n<p class=\"wp-block-paragraph\">\u6b21\u306b\u3001\u30b9\u30de\u30db\u5e45\u306b\u306a\u3063\u305f\u3068\u304d\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u3067\u4e0a\u66f8\u304d\u3057\u307e\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30dc\u30bf\u30f3\u3092\u8868\u793a\u3057\u3001\u30ca\u30d3\u3092\u753b\u9762\u5916\u3078\u96a0\u3059\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u4ed5\u69d8\u306b\u5207\u308a\u66ff\u3048<\/span><\/strong>\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>@media (max-width: 768px) {\n  .site-header { padding: 12px 20px; }\n  .menu-btn { display: flex; }\n  .menu {\n    position: fixed;\n    top: 0; right: 0;\n    width: 260px;\n    height: 100%;\n    background: #1e293b;\n    padding: 80px 24px;\n    box-sizing: border-box;\n    transform: translateX(100%);\n    transition: transform 0.3s ease;\n    z-index: 90;\n  }\n  .menu ul { display: block; }\n  .menu li { margin-bottom: 8px; }\n  .menu a {\n    display: block;\n    padding: 12px 8px;\n    color: #fff;\n    border-radius: 6px;\n  }\n  .menu.is-open { transform: translateX(0); }\n}<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3067\u3001PC\u3067\u306f\u6a2a\u4e26\u3073\u30ca\u30d3\u3001\u30b9\u30de\u30db\u3067\u306f\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3068\u3044\u3046<strong><span class=\"swl-marker mark_yellow\">1\u3064\u306e\u30d8\u30c3\u30c0\u30fc\u3067\u4e21\u5bfe\u5fdc\u3059\u308b\u5b8c\u6210\u5f62<\/span><\/strong>\u304c\u3067\u304d\u3042\u304c\u308a\u307e\u3059\u3002\u3042\u3068\u306f\u524d\u7ae0\u306eJavaScript\uff08<code>classList.toggle<\/code>\u3068<code>closeMenu<\/code>\uff09\u3092\u305d\u306e\u307e\u307e\u7d44\u307f\u5408\u308f\u305b\u308c\u3070\u3001\u958b\u9589\u30fbEsc\u30ad\u30fc\u30fb\u5916\u5074\u30af\u30ea\u30c3\u30af\u307e\u3067\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u30d1\u30fc\u30c4\u304c\u305d\u308d\u3063\u305f\u3089\u3001\u5b9f\u969b\u306b\u81ea\u5206\u306e\u30b5\u30a4\u30c8\u3078\u8cbc\u308a\u4ed8\u3051\u3066\u3001\u5e45\u3092\u5909\u3048\u306a\u304c\u3089\u52d5\u4f5c\u3092\u78ba\u304b\u3081\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u3088\u304f\u4f7f\u3046\u5fae\u8abf\u6574\u306e\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p class=\"wp-block-paragraph\">\u5b8c\u6210\u4f8b\u3092\u571f\u53f0\u306b\u3001\u73fe\u5834\u3067\u3088\u304f\u884c\u3046\u5fae\u8abf\u6574\u30923\u3064\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3069\u308c\u3082\u6570\u884c\u306e\u8ffd\u52a0\u3067\u5370\u8c61\u3092\u5909\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<ul class=\"wp-block-list\">\n<li><strong><span class=\"swl-marker mark_yellow\">\u30ed\u30b4\u3092\u4e2d\u592e\u306b\u7f6e\u304d\u305f\u3044<\/span><\/strong>\uff1a\u30d8\u30c3\u30c0\u30fc\u30923\u30ab\u30e9\u30e0\u306b\u3059\u308b\u304b\u3001<code>position: absolute; left: 50%; transform: translateX(-50%);<\/code> \u3067\u30ed\u30b4\u3092\u4e2d\u592e\u56fa\u5b9a\u306b\u3057\u307e\u3059\u3002<\/li>\n<li><strong><span class=\"swl-marker mark_yellow\">\u30e1\u30cb\u30e5\u30fc\u306e\u80cc\u666f\u3092\u307c\u304b\u3057\u305f\u3044<\/span><\/strong>\uff1a<code>backdrop-filter: blur(8px);<\/code> \u3068\u534a\u900f\u660e\u80cc\u666f\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u3001\u3059\u308a\u30ac\u30e9\u30b9\u98a8\u306e\u4eca\u3069\u304d\u306a\u898b\u305f\u76ee\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li><strong><span class=\"swl-marker mark_yellow\">\u958b\u3044\u305f\u3068\u304d\u306b\u30ea\u30f3\u30af\u3092\u9806\u756a\u306b\u51fa\u3057\u305f\u3044<\/span><\/strong>\uff1a\u5404 <code>li<\/code> \u306b <code>transition-delay<\/code> \u3092\u5c11\u3057\u305a\u3064\u305a\u3089\u3057\u3066\u4e0e\u3048\u308b\u3068\u3001\u30ea\u30f3\u30af\u304c1\u3064\u305a\u3064\u73fe\u308c\u308b\u6f14\u51fa\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306fSEO\u306b\u60aa\u5f71\u97ff\u304c\u3042\u308b\uff1f\u6b63\u3057\u3044\u4f5c\u308a\u65b9<\/h2>\n<p class=\"wp-block-paragraph\">\u300c\u30e1\u30cb\u30e5\u30fc\u3092\u96a0\u3059\u3068\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306b\u30ea\u30f3\u30af\u304c\u8aad\u307e\u308c\u305a\u9806\u4f4d\u304c\u4e0b\u304c\u308b\u306e\u3067\u306f\uff1f\u300d\u3068\u3044\u3046\u4e0d\u5b89\u3092\u3088\u304f\u805e\u304d\u307e\u3059\u3002\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u3001<strong><span class=\"swl-marker mark_yellow\">\u6b63\u3057\u304f\u4f5c\u3089\u308c\u305f\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306fSEO\u306b\u60aa\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u305b\u3093<\/span><\/strong>\u3002\u3053\u3053\u3067\u306f\u305d\u306e\u7406\u7531\u3068\u3001\u6c17\u3092\u3064\u3051\u308b\u3079\u304d\u30dd\u30a4\u30f3\u30c8\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u96a0\u308c\u3066\u3044\u3066\u3082HTML\u306b\u3042\u308c\u3070\u8aad\u307e\u308c\u308b<\/h3>\n<p class=\"wp-block-paragraph\">\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306e\u30af\u30ed\u30fc\u30e9\u30fc\uff08\u30da\u30fc\u30b8\u3092\u8aad\u307f\u53d6\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\uff09\u306f\u3001<strong><span class=\"swl-marker mark_yellow\">CSS\u3067\u898b\u305f\u76ee\u304c\u96a0\u308c\u3066\u3044\u308b\u3060\u3051\u306e\u30ea\u30f3\u30af\u3082\u3001HTML\u306b\u5b58\u5728\u3057\u3066\u3044\u308c\u3070\u304d\u3061\u3093\u3068\u8aad\u307f\u53d6\u308a\u307e\u3059<\/span><\/strong>\u3002\u3053\u306e\u8a18\u4e8b\u3067\u4f5c\u3063\u305f\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306f\u3001<code>&lt;nav&gt;<\/code> \u306e\u4e2d\u306b <code>&lt;a&gt;<\/code> \u30ea\u30f3\u30af\u304c\u6700\u521d\u304b\u3089HTML\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u72b6\u614b\u3067\u3059\u3002<code>transform<\/code> \u3067\u753b\u9762\u5916\u306b\u7f6e\u3044\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u30af\u30ed\u30fc\u30e9\u30fc\u306f\u30ea\u30f3\u30af\u3092\u554f\u984c\u306a\u304f\u305f\u3069\u308c\u307e\u3059\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u9006\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u306a\u306e\u306f\u3001<strong><span class=\"swl-marker mark_yellow\">JavaScript\u3067\u5f8c\u304b\u3089\u30ea\u30f3\u30af\u3092\u751f\u6210\u3059\u308b\u4f5c\u308a<\/span><\/strong>\u3067\u3059\u3002HTML\u306b\u6700\u521d\u306f\u30ea\u30f3\u30af\u304c\u7121\u304f\u3001\u30af\u30ea\u30c3\u30af\u3057\u3066\u521d\u3081\u3066\u30ea\u30f3\u30af\u304c\u4f5c\u3089\u308c\u308b\u5834\u5408\u3001\u30af\u30ed\u30fc\u30e9\u30fc\u304c\u8aad\u307f\u53d6\u308c\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u306e\u3088\u3046\u306b\u3001\u30ea\u30f3\u30af\u306f\u6700\u521d\u304b\u3089HTML\u306b\u66f8\u3044\u3066\u304a\u304f\u306e\u304c\u5b89\u5168\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u898b\u51fa\u3057\u30bf\u30b0\u3068\u30ca\u30d3\u306e\u69cb\u9020\u3092\u6574\u3048\u308b<\/h3>\n<p class=\"wp-block-paragraph\">SEO\u3067\u5927\u5207\u306a\u306e\u306f\u3001<strong><span class=\"swl-marker mark_yellow\">\u30da\u30fc\u30b8\u306e\u69cb\u9020\u304c\u610f\u5473\u7684\u306b\u6b63\u3057\u3044\u3053\u3068<\/span><\/strong>\u3067\u3059\u3002\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u306f <code>&lt;nav&gt;<\/code>\u3001\u30ea\u30b9\u30c8\u306f <code>&lt;ul&gt;<\/code>\uff0f<code>&lt;li&gt;<\/code>\u3001\u30ea\u30f3\u30af\u306f <code>&lt;a&gt;<\/code> \u3068\u3001\u5f79\u5272\u306b\u5408\u3063\u305f\u30bf\u30b0\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<code>&lt;div&gt;<\/code> \u3060\u3051\u3067\u7d44\u3080\u3088\u308a\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u304c\u69cb\u9020\u3092\u7406\u89e3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u306f\u3059\u3079\u3066\u3053\u306e\u539f\u5247\u306b\u6cbf\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u8868\u793a\u901f\u5ea6\u3078\u306e\u914d\u616e\u3082\u5fd8\u308c\u305a\u306b<\/h3>\n<p class=\"wp-block-paragraph\">\u691c\u7d22\u9806\u4f4d\u306b\u306f\u8868\u793a\u901f\u5ea6\u3082\u5f71\u97ff\u3057\u307e\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">\u7d14CSS\u7248\u306fJavaScript\u3092\u8aad\u307f\u8fbc\u307e\u306a\u3044\u3076\u3093\u3001\u308f\u305a\u304b\u306b\u901f\u3044<\/span><\/strong>\u3068\u3044\u3046\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002JavaScript\u7248\u3067\u3082\u3001\u30b3\u30fc\u30c9\u306f\u8efd\u91cf\u306a\u306e\u3067\u5927\u304d\u306a\u8ca0\u62c5\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u304c\u3001\u4e0d\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8aad\u307f\u8fbc\u307e\u305a\u3001\u3053\u306e\u8a18\u4e8b\u306e\u3088\u3046\u306a\u7d20\u306eJavaScript\u3067\u6e08\u307e\u305b\u308b\u3053\u3068\u304c\u3001\u901f\u5ea6\u306e\u9762\u3067\u3082\u30d7\u30e9\u30b9\u306b\u50cd\u304d\u307e\u3059\u3002\u88c5\u98fe\u7528\u306e\u5927\u304d\u306a\u753b\u50cf\u30a2\u30a4\u30b3\u30f3\u3088\u308a\u3001CSS\u3067\u7dda\u3092\u63cf\u304f\u307b\u3046\u304c\u8efd\u3044\u306e\u3082\u540c\u3058\u7406\u7531\u3067\u3059\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">\u5b9f\u52d9\u3067\u3064\u307e\u305a\u304f\u30dd\u30a4\u30f3\u30c8\u3068\u3088\u304f\u3042\u308b\u5931\u6557\u306e\u76f4\u3057\u65b9<\/h2>\n<p class=\"wp-block-paragraph\">\u6700\u5f8c\u306b\u3001\u5b9f\u969b\u306b\u4f5c\u3063\u3066\u3044\u308b\u3068\u5fc5\u305a\u3068\u8a00\u3063\u3066\u3044\u3044\u307b\u3069\u906d\u9047\u3059\u308b<strong><span class=\"swl-marker mark_yellow\">\u5931\u6557\u30d1\u30bf\u30fc\u30f3\u3068\u3001\u305d\u306e\u539f\u56e0\u30fb\u76f4\u3057\u65b9<\/span><\/strong>\u3092\u307e\u3068\u3081\u307e\u3059\u3002\u3053\u3053\u3092\u77e5\u3063\u3066\u304a\u304f\u3068\u3001\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u3068\u304d\u306e\u539f\u56e0\u5207\u308a\u5206\u3051\u304c\u4e00\u6c17\u306b\u901f\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u5931\u65571\uff1a\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u304c\u753b\u9762\u306b\u898b\u3048\u3066\u3057\u307e\u3046<\/h3>\n<p class=\"wp-block-paragraph\">\u7d14CSS\u7248\u3067\u3001\u56db\u89d2\u3044\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u304c\u305d\u306e\u307e\u307e\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3046\u30b1\u30fc\u30b9\u3067\u3059\u3002\u539f\u56e0\u306f<strong><span class=\"swl-marker mark_yellow\"><code>display: none;<\/code>\u3092\u66f8\u304d\u5fd8\u308c\u3066\u3044\u308b<\/span><\/strong>\u3053\u3068\u3002<code>.menu-toggle { display: none; }<\/code> \u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u3092\u91cd\u8996\u3057\u3066\u8981\u7d20\u3092\u6b8b\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u753b\u9762\u5916\u3078\u9003\u304c\u3059\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u898b\u305f\u76ee\u306f\u6d88\u3059\u304c\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u306f\u9078\u3079\u308b\u72b6\u614b\u3092\u4fdd\u3064 *\/\n.menu-toggle {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  opacity: 0;\n  overflow: hidden;\n}<\/code><\/pre>\n<\/div>\n<h3 class=\"wp-block-heading\">\u5931\u65572\uff1a\u30e1\u30cb\u30e5\u30fc\u304c\u4ed6\u306e\u8981\u7d20\u306e\u4e0b\u306b\u96a0\u308c\u308b<\/h3>\n<p class=\"wp-block-paragraph\">\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u3044\u305f\u306e\u306b\u3001\u30d8\u30c3\u30c0\u30fc\u3084\u753b\u50cf\u306e\u5f8c\u308d\u306b\u6f5c\u308a\u8fbc\u3093\u3067\u898b\u3048\u306a\u3044\u30b1\u30fc\u30b9\u3067\u3059\u3002\u539f\u56e0\u306f\u307b\u307c<strong><span class=\"swl-marker mark_yellow\"><code>z-index<\/code>\u306e\u6307\u5b9a\u4e0d\u8db3<\/span><\/strong>\u3067\u3059\u3002<code>z-index<\/code> \u306f\u8981\u7d20\u306e\u91cd\u306a\u308a\u9806\u3092\u6c7a\u3081\u308b\u5024\u3067\u3001\u5927\u304d\u3044\u307b\u3069\u624b\u524d\u306b\u6765\u307e\u3059\u3002\u30e1\u30cb\u30e5\u30fc\u3084\u30dc\u30bf\u30f3\u306b\u306f <code>z-index: 90<\/code> \u4ee5\u4e0a\u306a\u3069\u5341\u5206\u5927\u304d\u3044\u5024\u3092\u4e0e\u3048\u3001\u6697\u5e55\u306f\u305d\u308c\u3088\u308a\u5c11\u3057\u5c0f\u3055\u304f\u3057\u3066\u3001\u6b63\u3057\u3044\u91cd\u306a\u308a\u9806\u3092\u4f5c\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u306a\u304a <code>z-index<\/code> \u306f <code>position<\/code> \u304c <code>static<\/code> \u4ee5\u5916\uff08<code>fixed<\/code>\uff0f<code>absolute<\/code>\uff0f<code>relative<\/code> \u306a\u3069\uff09\u306e\u3068\u304d\u3060\u3051\u52b9\u304d\u307e\u3059\u3002\u52b9\u304b\u306a\u3044\u3068\u304d\u306f <code>position<\/code> \u306e\u6307\u5b9a\u3092\u898b\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u5931\u65573\uff1a\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u3044\u3066\u3082\u80cc\u666f\u304c\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3057\u307e\u3046<\/h3>\n<p class=\"wp-block-paragraph\">\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u3044\u305f\u307e\u307e\u80cc\u5f8c\u306e\u30da\u30fc\u30b8\u304c\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u3066\u3057\u307e\u3044\u3001\u64cd\u4f5c\u3057\u3065\u3089\u3044\u554f\u984c\u3067\u3059\u3002\u3053\u308c\u306f\u300c\u30b9\u30af\u30ed\u30fc\u30eb\u8cab\u901a\u300d\u3068\u547c\u3070\u308c\u307e\u3059\u3002\u524d\u8ff0\u306e\u3068\u304a\u308a\u3001<strong><span class=\"swl-marker mark_yellow\">\u958b\u3044\u3066\u3044\u308b\u9593\u3060\u3051<code>body<\/code>\u306b<code>overflow: hidden;<\/code>\u3092\u5f53\u3066\u308b<\/span><\/strong>\u3053\u3068\u3067\u89e3\u6c7a\u3057\u307e\u3059\u3002\u7d14CSS\u7248\u306a\u3089\u6b21\u306e\u3088\u3046\u306b\u66f8\u3051\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u7d14CSS\u7248\uff1a\u958b\u3044\u3066\u3044\u308b\u9593 html\/body \u306e\u30b9\u30af\u30ed\u30fc\u30eb\u3092\u6b62\u3081\u308b *\/\n.menu-toggle:checked ~ .menu {\n  overflow-y: auto; \/* \u30e1\u30cb\u30e5\u30fc\u81ea\u4f53\u306f\u4e2d\u8eab\u3092\u30b9\u30af\u30ed\u30fc\u30eb\u53ef *\/\n}<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\">\u7d14CSS\u3060\u3051\u3067\u306f <code>body<\/code> \u306e\u30b9\u30af\u30ed\u30fc\u30eb\u3092\u53b3\u5bc6\u306b\u6b62\u3081\u308b\u306e\u304c\u96e3\u3057\u3044\u5834\u9762\u3082\u3042\u308a\u307e\u3059\u3002\u30b9\u30af\u30ed\u30fc\u30eb\u5236\u5fa1\u307e\u3067\u78ba\u5b9f\u306b\u3084\u308a\u305f\u3044\u306a\u3089\u3001\u7d20\u76f4\u306bJavaScript\u7248\u3067 <code>body<\/code> \u306e\u30af\u30e9\u30b9\u3092\u5207\u308a\u66ff\u3048\u308b\u306e\u304c\u78ba\u5b9f\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u5931\u65574\uff1a\u00d7\u306b\u306a\u3089\u305a\u7dda\u304c\u305a\u308c\u308b\u3060\u3051<\/h3>\n<p class=\"wp-block-paragraph\">3\u672c\u7dda\u304c\u00d7\u306b\u306a\u3089\u305a\u3001\u7dda\u304c\u5909\u306a\u4f4d\u7f6e\u306b\u305a\u308c\u3066\u3057\u307e\u3046\u30b1\u30fc\u30b9\u3067\u3059\u3002\u539f\u56e0\u306e\u591a\u304f\u306f<strong><span class=\"swl-marker mark_yellow\">\u56de\u8ee2\u524d\u306b<code>translateY(0)<\/code>\u3067\u4e2d\u592e\u3078\u623b\u3057\u3066\u3044\u306a\u3044<\/span><\/strong>\u3053\u3068\u3067\u3059\u3002\u4e0a\u4e0b\u306e\u7dda\u3092\u56de\u8ee2\u3055\u305b\u308b\u524d\u306b\u3001\u3044\u3063\u305f\u3093\u4e2d\u592e\u306e\u540c\u3058\u9ad8\u3055\u306b\u96c6\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<code>transform: translateY(0) rotate(45deg);<\/code> \u306e\u3088\u3046\u306b\u3001\u79fb\u52d5\u3092\u5148\u306b\u66f8\u3044\u3066\u4e2d\u592e\u3078\u623b\u3057\u3066\u304b\u3089\u56de\u8ee2\u3055\u305b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u5931\u65575\uff1a\u30ea\u30f3\u30af\u3092\u30bf\u30c3\u30d7\u3057\u3066\u3082\u30e1\u30cb\u30e5\u30fc\u304c\u958b\u3044\u305f\u307e\u307e<\/h3>\n<p class=\"wp-block-paragraph\">\u30e1\u30cb\u30e5\u30fc\u5185\u306e\u30ea\u30f3\u30af\u3092\u30bf\u30c3\u30d7\u3057\u3066\u30da\u30fc\u30b8\u5185\u3092\u79fb\u52d5\u3057\u305f\u306e\u306b\u3001\u30e1\u30cb\u30e5\u30fc\u304c\u958b\u3044\u305f\u307e\u307e\u306b\u306a\u308b\u30b1\u30fc\u30b9\u3067\u3059\u3002JS\u7248\u306a\u3089<strong><span class=\"swl-marker mark_yellow\">\u30ea\u30f3\u30af\u3092\u30bf\u30c3\u30d7\u3057\u305f\u3068\u304d\u306b\u3082\u30e1\u30cb\u30e5\u30fc\u3092\u9589\u3058\u308b<\/span><\/strong>\u51e6\u7406\u3092\u8db3\u305b\u3070\u89e3\u6c7a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-javascript\" data-lang=\"JavaScript\"><code>\/\/ \u30e1\u30cb\u30e5\u30fc\u5185\u306e\u3059\u3079\u3066\u306e\u30ea\u30f3\u30af\u306b\u300c\u9589\u3058\u308b\u300d\u3092\u4ed5\u8fbc\u3080\nmenu.querySelectorAll(\"a\").forEach((link) =&gt; {\n  link.addEventListener(\"click\", closeMenu);\n});<\/code><\/pre>\n<\/div>\n<p class=\"wp-block-paragraph\">\u7d14CSS\u7248\u306e\u5834\u5408\u306f\u3001\u30ea\u30f3\u30af\u81ea\u4f53\u3092 <code>label for=\"menu-toggle\"<\/code> \u306b\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u3053\u306e\u6319\u52d5\u306f\u82e6\u624b\u3067\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">\u30ea\u30f3\u30af\u9078\u629e\u3067\u9589\u3058\u305f\u3044\u306a\u3089JS\u7248\u304c\u5411\u3044\u3066\u3044\u307e\u3059<\/span><\/strong>\u3002\u7528\u9014\u306b\u5fdc\u3058\u3066\u9078\u3073\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"wp-block-heading\">\u7de8\u96c6\u90e8\u306e\u5b9f\u88c5\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8<\/h3>\n<p class=\"wp-block-paragraph\">WithCode\u7de8\u96c6\u90e8\u3067\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3092\u5b9f\u88c5\u3059\u308b\u3068\u304d\u306b\u3001\u516c\u958b\u524d\u306b\u5fc5\u305a\u78ba\u8a8d\u3057\u3066\u3044\u308b\u72ec\u81ea\u306e\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8\u3092\u5171\u6709\u3057\u307e\u3059\u3002\u4f5c\u308a\u7d42\u3048\u305f\u30891\u3064\u305a\u3064\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ol class=\"wp-block-list\">\n<li>\u30b9\u30de\u30db\u5b9f\u6a5f\uff08\u3067\u304d\u308c\u3070iOS\u3068Android\u4e21\u65b9\uff09\u3067\u958b\u9589\u3092\u78ba\u8a8d\u3057\u305f\u304b<\/li>\n<li>\u958b\u3044\u305f\u3068\u304d\u306b\u80cc\u666f\u304c\u30b9\u30af\u30ed\u30fc\u30eb\u8cab\u901a\u3057\u3066\u3044\u306a\u3044\u304b<\/li>\n<li>3\u672c\u7dda\u304c\u00d7\u3078\u304d\u308c\u3044\u306b\u5909\u5f62\u3057\u3066\u3044\u308b\u304b\uff08\u7dda\u304c\u305a\u308c\u3066\u3044\u306a\u3044\u304b\uff09<\/li>\n<li>Tab\u30ad\u30fc\u3060\u3051\u3067\u30dc\u30bf\u30f3\u306b\u5230\u9054\u3057\u3001Enter\u3067\u958b\u3051\u308b\u304b<\/li>\n<li>Esc\u30ad\u30fc\u30fb\u5916\u5074\u30bf\u30c3\u30d7\u30fb\u30ea\u30f3\u30af\u9078\u629e\u306e\u3044\u305a\u308c\u3067\u3082\u9589\u3058\u3089\u308c\u308b\u304b<\/li>\n<li><code>aria-expanded<\/code>\u304c\u958b\u9589\u306b\u5408\u308f\u305b\u3066<code>true<\/code>\uff0f<code>false<\/code>\u306b\u5909\u308f\u308b\u304b<\/li>\n<li><code>z-index<\/code>\u306e\u91cd\u306a\u308a\u3067\u30e1\u30cb\u30e5\u30fc\u304c\u96a0\u308c\u3066\u3044\u306a\u3044\u304b<\/li>\n<li>\u753b\u9762\u5e45\u3092\u5909\u3048\u305f\u3068\u304d\u3001PC\u30ca\u30d3\u3068\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u304c\u6b63\u3057\u304f\u5207\u308a\u66ff\u308f\u308b\u304b<\/li>\n<\/ol>\n<p class=\"wp-block-paragraph\">\u3053\u306e8\u9805\u76ee\u3092\u901a\u305b\u3070\u3001\u898b\u305f\u76ee\u3060\u3051\u3067\u306a\u304f\u64cd\u4f5c\u6027\u30fb\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u307e\u3067\u542b\u3081\u3066\u300c\u5b9f\u52d9\u3067\u901a\u7528\u3059\u308b\u300d\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-white-color has-text-color has-background has-link-color wp-element-button\" href=\"https:\/\/withcode.tech\/reservation\/\" style=\"background-color:#ffbf00\"><strong>\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u7121\u6599\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u306b\u7533\u3057\u8fbc\u3080 \u2192<\/strong><\/a><\/div>\n<\/div>\n<h2 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n<p class=\"wp-block-paragraph\">\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u3092\u4f5c\u308b\u3068\u304d\u306b\u3001\u521d\u5fc3\u8005\u304b\u3089\u3088\u304f\u5bc4\u305b\u3089\u308c\u308b\u8cea\u554f\u3068\u56de\u7b54\u3092\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<h3 class=\"wp-block-heading\">Q. \u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306fJavaScript\u3068CSS\u3001\u3069\u3061\u3089\u3067\u4f5c\u308b\u3079\u304d\u3067\u3059\u304b\uff1f<\/h3>\n<p class=\"wp-block-paragraph\">A. <strong><span class=\"swl-marker mark_yellow\">\u5b66\u7fd2\u3084\u5c0f\u898f\u6a21\u306a\u30b5\u30a4\u30c8\u306a\u3089\u7d14CSS\u7248\u3001\u672c\u683c\u7684\u306a\u30b5\u30a4\u30c8\u306a\u3089JavaScript\u7248<\/span><\/strong>\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002\u7d14CSS\u7248\u306f\u624b\u8efd\u3067\u8efd\u304f\u3001JavaScript\u3092\u8aad\u307f\u8fbc\u307e\u306a\u3044\u3076\u3093\u8868\u793a\u3082\u901f\u3044\u3068\u3044\u3046\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u4e00\u65b9\u3067\u3001Esc\u30ad\u30fc\u3067\u9589\u3058\u308b\u30fb\u5916\u5074\u30af\u30ea\u30c3\u30af\u3067\u9589\u3058\u308b\u30fb\u30ea\u30f3\u30af\u9078\u629e\u3067\u9589\u3058\u308b\u30fb\u72b6\u614b\u3092\u8aad\u307f\u4e0a\u3052\u30bd\u30d5\u30c8\u306b\u6b63\u3057\u304f\u4f1d\u3048\u308b\u3068\u3044\u3063\u305f\u7d30\u304b\u306a\u5236\u5fa1\u306fJavaScript\u7248\u306e\u307b\u3046\u304c\u5727\u5012\u7684\u306b\u3084\u308a\u3084\u3059\u3044\u3067\u3059\u3002\u4ed5\u4e8b\u3068\u3057\u3066\u7d0d\u54c1\u3059\u308b\u30b5\u30a4\u30c8\u3067\u306f\u3001\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u3092\u6574\u3048\u3084\u3059\u3044JavaScript\u7248\u3092\u9078\u3076\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">Q. \u30e1\u30cb\u30e5\u30fc\u3092\u958b\u3044\u3066\u3082\u9589\u3058\u3066\u304f\u308c\u307e\u305b\u3093\u3002\u539f\u56e0\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n<p class=\"wp-block-paragraph\">A. \u7d14CSS\u7248\u306a\u3089\u3001\u591a\u304f\u306e\u5834\u5408<strong><span class=\"swl-marker mark_yellow\">\u30e9\u30d9\u30eb\u3068\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e<code>for<\/code>\u30fb<code>id<\/code>\u304c\u4e00\u81f4\u3057\u3066\u3044\u306a\u3044<\/span><\/strong>\u304b\u3001\u8981\u7d20\u306e\u4e26\u3073\u9806\u304c\u300c\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u2192\u30e9\u30d9\u30eb\u2192\u30e1\u30cb\u30e5\u30fc\u300d\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u539f\u56e0\u3067\u3059\u3002JS\u7248\u306a\u3089\u3001\u5916\u5074\u30af\u30ea\u30c3\u30af\u3067\u9589\u3058\u308b\u51e6\u7406\u3067\u30dc\u30bf\u30f3\u81ea\u8eab\u3092\u5224\u5b9a\u304b\u3089\u9664\u5916\u3067\u304d\u3066\u304a\u3089\u305a\u3001\u958b\u3044\u305f\u77ac\u9593\u306b\u5373\u9589\u3058\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u306f <code>for<\/code> \u3068 <code>id<\/code>\u3001\u8981\u7d20\u306e\u9806\u756a\u3001\u305d\u3057\u3066\u30af\u30ea\u30c3\u30af\u5224\u5b9a\u3092\u898b\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 class=\"wp-block-heading\">Q. 3\u672c\u7dda\u304c\u00d7\u5370\u306b\u306a\u308a\u307e\u305b\u3093\u3002\u3069\u3053\u3092\u76f4\u305b\u3070\u3044\u3044\u3067\u3059\u304b\uff1f<\/h3>\n<p class=\"wp-block-paragraph\">A. \u4e0a\u4e0b\u306e\u7dda\u3092\u56de\u8ee2\u3055\u305b\u308b\u524d\u306b\u3001<strong><span class=\"swl-marker mark_yellow\"><code>translateY(0)<\/code>\u3067\u3044\u3063\u305f\u3093\u4e2d\u592e\u306e\u9ad8\u3055\u3078\u623b\u305b\u3066\u3044\u308b\u304b<\/span><\/strong>\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u9589\u3058\u305f\u72b6\u614b\u3067\u306f\u4e0a\u4e0b\u306e\u7dda\u304c\u96e2\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u56de\u8ee2\u3055\u305b\u3066\u3082\u00d7\u306b\u306a\u308a\u307e\u305b\u3093\u3002<code>transform: translateY(0) rotate(45deg);<\/code> \u306e\u3088\u3046\u306b\u3001\u79fb\u52d5\u3067\u4e2d\u592e\u306b\u96c6\u3081\u3066\u304b\u3089\u56de\u8ee2\u3055\u305b\u308b\u306e\u304c\u6b63\u89e3\u3067\u3059\u3002\u771f\u3093\u4e2d\u306e\u7dda\u3092 <code>background: transparent;<\/code> \u3067\u6d88\u3057\u5fd8\u308c\u3066\u3044\u306a\u3044\u304b\u3082\u5408\u308f\u305b\u3066\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"wp-block-heading\">Q. \u30e1\u30cb\u30e5\u30fc\u3092\u958b\u304f\u3068\u5f8c\u308d\u306e\u30da\u30fc\u30b8\u304c\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u6b62\u3081\u3089\u308c\u307e\u3059\u304b\uff1f<\/h3>\n<p class=\"wp-block-paragraph\">A. \u6b62\u3081\u3089\u308c\u307e\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u3044\u3066\u3044\u308b\u9593\u3060\u3051<code>body<\/code>\u306b<code>overflow: hidden;<\/code>\u3092\u5f53\u3066\u308b<\/span><\/strong>\u306e\u304c\u5b9a\u756a\u306e\u65b9\u6cd5\u3067\u3059\u3002JavaScript\u7248\u306a\u3089\u3001\u958b\u304f\u3068\u304d\u306b <code>document.body.classList.add(\"menu-open\")<\/code>\u3001\u9589\u3058\u308b\u3068\u304d\u306b <code>remove<\/code> \u3057\u3001CSS\u3067 <code>body.menu-open { overflow: hidden; }<\/code> \u3068\u66f8\u3051\u3070\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u9589\u3058\u308b\u3068\u304d\u306b\u30af\u30e9\u30b9\u3092\u5916\u3057\u5fd8\u308c\u308b\u3068\u3001\u30da\u30fc\u30b8\u5168\u4f53\u304c\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u306a\u304f\u306a\u308b\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 class=\"wp-block-heading\">Q. \u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u306f\u6700\u4f4e\u9650\u3069\u3053\u307e\u3067\u3084\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f<\/h3>\n<p class=\"wp-block-paragraph\">A. \u307e\u305a\u306f<strong><span class=\"swl-marker mark_yellow\">\u2460\u30dc\u30bf\u30f3\u3092<code>&lt;button&gt;<\/code>\u8981\u7d20\u3067\u4f5c\u308b\u3001\u2461<code>aria-expanded<\/code>\u3092\u958b\u9589\u306b\u5408\u308f\u305b\u3066\u66f4\u65b0\u3059\u308b\u3001\u2462Esc\u30ad\u30fc\u3067\u9589\u3058\u3089\u308c\u308b\u3088\u3046\u306b\u3059\u308b<\/span><\/strong>\u306e3\u70b9\u3092\u62bc\u3055\u3048\u308c\u3070\u3001\u6700\u4f4e\u9650\u306e\u30e9\u30a4\u30f3\u306f\u30af\u30ea\u30a2\u3067\u304d\u307e\u3059\u3002\u4f59\u88d5\u304c\u3042\u308c\u3070\u3001\u9589\u3058\u305f\u3068\u304d\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3092\u30dc\u30bf\u30f3\u3078\u623b\u3059\u3001<code>prefers-reduced-motion<\/code>\u3067\u52d5\u304d\u3092\u63a7\u3048\u308b\u3001\u3068\u3044\u3063\u305f\u914d\u616e\u3082\u52a0\u3048\u308b\u3068\u3088\u308a\u4e01\u5be7\u3067\u3059\u3002\u5b8c\u74a7\u3092\u76ee\u6307\u3057\u3059\u304e\u3066\u624b\u304c\u6b62\u307e\u308b\u3088\u308a\u3001\u307e\u305a3\u70b9\u304b\u3089\u59cb\u3081\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">Q. \u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306fPC\u3067\u3082\u8868\u793a\u3057\u3066\u3044\u3044\u3067\u3059\u304b\uff1f<\/h3>\n<p class=\"wp-block-paragraph\">A. \u8868\u793a\u3057\u3066\u3082\u554f\u984c\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001<strong><span class=\"swl-marker mark_yellow\">PC\u3067\u306f\u6a2a\u4e26\u3073\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3092\u898b\u305b\u308b\u306e\u304c\u4e00\u822c\u7684<\/span><\/strong>\u3067\u3059\u3002PC\u306f\u753b\u9762\u304c\u5e83\u304f\u3001\u30e1\u30cb\u30e5\u30fc\u3092\u96a0\u3059\u5fc5\u8981\u304c\u306a\u3044\u305f\u3081\u3001\u3042\u3048\u3066\u96a0\u3059\u3068\u30e6\u30fc\u30b6\u30fc\u304c\u76ee\u7684\u306e\u30da\u30fc\u30b8\u3092\u63a2\u3057\u3065\u3089\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u3067\u3001PC\u306f\u6a2a\u4e26\u3073\u30ca\u30d3\u3001\u30b9\u30de\u30db\u306f\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u3001\u3068\u5207\u308a\u66ff\u3048\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002\u305f\u3060\u3057\u30e1\u30cb\u30e5\u30fc\u9805\u76ee\u304c\u975e\u5e38\u306b\u591a\u3044\u30b5\u30a4\u30c8\u3067\u306f\u3001PC\u3067\u3082\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u306b\u307e\u3068\u3081\u308b\u8a2d\u8a08\u3082\u3042\u308a\u5f97\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\">Q. \u30a2\u30a4\u30b3\u30f3\u306b\u753b\u50cf\u3084\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u3082\u3044\u3044\u3067\u3059\u304b\uff1f<\/h3>\n<p class=\"wp-block-paragraph\">A. \u4f7f\u3063\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u304c\u3001<strong><span class=\"swl-marker mark_yellow\">CSS\u30673\u672c\u7dda\u3092\u4f5c\u308b\u307b\u3046\u304c\u8efd\u304f\u3066\u8abf\u6574\u3057\u3084\u3059\u3044<\/span><\/strong>\u3067\u3059\u3002\u753b\u50cf\u3060\u3068\u00d7\u3078\u306e\u5909\u5f62\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u4f5c\u308a\u306b\u304f\u304f\u3001\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8\u306f\u8aad\u307f\u8fbc\u307f\u306e\u624b\u9593\u304c\u5897\u3048\u307e\u3059\u3002CSS\u306e\u64ec\u4f3c\u8981\u7d20\u3067\u4f5c\u308c\u3070\u3001\u8272\u30fb\u592a\u3055\u30fb\u9593\u9694\u30fb\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u307e\u3067\u81ea\u7531\u81ea\u5728\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f <code>span<\/code>\uff0b\u64ec\u4f3c\u8981\u7d20\u306e\u65b9\u6cd5\u3092\u307e\u305a\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 class=\"wp-block-heading\">Q. \u30b9\u30de\u30db\u3067\u30bf\u30c3\u30d7\u3057\u3066\u3082\u53cd\u5fdc\u304c\u920d\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u306a\u305c\u3067\u3059\u304b\uff1f<\/h3>\n<p class=\"wp-block-paragraph\">A. \u30bf\u30c3\u30d7\u3067\u304d\u308b\u7bc4\u56f2\u304c\u5c0f\u3055\u3059\u304e\u308b\u3053\u3068\u304c\u539f\u56e0\u306e\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">\u30dc\u30bf\u30f3\u306e\u5f53\u305f\u308a\u5224\u5b9a\u306f\u6700\u4f4e\u3067\u308244px\u56db\u65b9\u3092\u78ba\u4fdd\u3059\u308b<\/span><\/strong>\u306e\u304c\u76ee\u5b89\u3067\u3059\u30023\u672c\u7dda\u81ea\u4f53\u306f\u7d30\u304f\u3066\u3082\u3001<code>label<\/code> \u3084 <code>button<\/code> \u306e <code>width<\/code>\uff0f<code>height<\/code> \u3068 <code>padding<\/code> \u3092\u5e83\u3081\u306b\u53d6\u308a\u3001\u6307\u3067\u62bc\u3057\u3084\u3059\u3044\u5927\u304d\u3055\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u898b\u305f\u76ee\u306e\u7dda\u306f\u7d30\u3044\u307e\u307e\u3067\u3082\u3001\u62bc\u305b\u308b\u7bc4\u56f2\u3060\u3051\u5e83\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n<p class=\"wp-block-paragraph\">\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306f\u3001\u4e00\u898b\u3080\u305a\u304b\u3057\u305d\u3046\u306b\u898b\u3048\u3066\u3001\u4ed5\u7d44\u307f\u3092\u5206\u89e3\u3059\u308c\u3070\u300c\u958b\u3044\u3066\u3044\u308b\u72b6\u614b\u3068\u9589\u3058\u3066\u3044\u308b\u72b6\u614b\u3092\u5207\u308a\u66ff\u3048\u3066\u3044\u308b\u3060\u3051\u300d\u3068\u3044\u3046\u30b7\u30f3\u30d7\u30eb\u306a\u90e8\u54c1\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001JavaScript\u3092\u4f7f\u308f\u306a\u3044\u7d14CSS\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u304b\u3089\u59cb\u3081\u3066\u30013\u672c\u7dda\u304c\u00d7\u306b\u5909\u308f\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3001\u30b9\u30e9\u30a4\u30c9\u30a4\u30f3\u3084\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u306a\u3069\u306e\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u3001JavaScript\u7248\u3001\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u5bfe\u5fdc\u3001\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5207\u308a\u66ff\u3048\u3001\u305d\u3057\u3066\u3088\u304f\u3042\u308b\u5931\u6557\u306e\u76f4\u3057\u65b9\u307e\u3067\u3001\u30b3\u30d4\u30da\u3067\u52d5\u304f\u30b3\u30fc\u30c9\u3068\u3068\u3082\u306b\u4e00\u901a\u308a\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u307e\u305a\u306f\u7d14CSS\u7248\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u52d5\u304b\u3057\u3001\u4ed5\u7d44\u307f\u3092\u7406\u89e3\u3057\u305f\u3089\u3001\u5b9f\u52d9\u3067\u306fJavaScript\u7248\u3067Esc\u30ad\u30fc\u3084\u5916\u5074\u30af\u30ea\u30c3\u30af\u3001<code>aria-expanded<\/code>\u306e\u66f4\u65b0\u307e\u3067\u6574\u3048\u3066\u3044\u304f\u2014\u2014\u3053\u306e\u9806\u756a\u3067\u8eab\u306b\u3064\u3051\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<p class=\"is-style-big_icon_point wp-block-paragraph\"><strong>\u30fb\u72b6\u614b\u306e\u5207\u308a\u66ff\u3048<\/strong>\uff1a\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306f\u300c\u958b\u30fb\u9589\u300d2\u72b6\u614b\u306e\u5207\u308a\u66ff\u3048\u3002CSS\u306a\u3089<code>:checked<\/code>\u3001JS\u306a\u3089<code>.is-open<\/code>\u30af\u30e9\u30b9\u3067\u5b9f\u73fe\u3059\u308b<br \/><strong>\u30fb3\u672c\u7dda\u3068\u00d7<\/strong>\uff1a<code>span<\/code>1\u3064\uff0b<code>::before<\/code>\uff0f<code>::after<\/code>\u30673\u672c\u7dda\u3092\u4f5c\u308a\u3001\u4e2d\u592e\u3078\u96c6\u3081\u3066\u304b\u3089\u56de\u8ee2\u3055\u305b\u3066\u00d7\u306b\u5909\u5f62\u3055\u305b\u308b<br \/><strong>\u30fb\u4ed5\u4e0a\u3052\u306e\u6c7a\u3081\u624b<\/strong>\uff1a<code>button<\/code>\u8981\u7d20\u30fb<code>aria-expanded<\/code>\u30fb\u30ad\u30fc\u30dc\u30fc\u30c9\u64cd\u4f5c\u30fb\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5207\u308a\u66ff\u3048\u307e\u3067\u6574\u3048\u3066\u521d\u3081\u3066\u5b9f\u52d9\u30ec\u30d9\u30eb\u306b\u306a\u308b<\/p>\n<p class=\"wp-block-paragraph\">\u3053\u3053\u307e\u3067\u8aad\u3093\u3067\u300c\u30b3\u30fc\u30c9\u306e\u610f\u5473\u306f\u5206\u304b\u3063\u305f\u3051\u308c\u3069\u3001\u81ea\u5206\u306e\u30b5\u30a4\u30c8\u306b\u7d44\u307f\u8fbc\u3080\u3068\u9014\u7aef\u306b\u52d5\u304b\u306a\u304f\u306a\u308b\u300d\u300cHTML\u30fbCSS\u30fbJavaScript\u306e\u3064\u306a\u304c\u308a\u3092\u3001\u4f53\u7cfb\u7acb\u3066\u3066\u57fa\u790e\u304b\u3089\u5b66\u3073\u76f4\u3057\u305f\u3044\u300d\u3068\u611f\u3058\u305f\u65b9\u3082\u3044\u308b\u306f\u305a\u3067\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">WithCode\u306a\u3089\u3001\u3053\u3046\u3057\u305fUI\u90e8\u54c1\u3092\u81ea\u5206\u306e\u624b\u3067\u4f5c\u308a\u306a\u304c\u3089\u3001\u73fe\u5f79\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u53d7\u3051\u3066\u3064\u307e\u305a\u304d\u3092\u6700\u77ed\u3067\u89e3\u6d88\u3067\u304d\u307e\u3059<\/span><\/strong>\u3002\u72ec\u5b66\u3067\u6b62\u307e\u3063\u3066\u3057\u307e\u3044\u304c\u3061\u306a\u30dd\u30a4\u30f3\u30c8\u3092\u3001\u4f34\u8d70\u578b\u3067\u4e57\u308a\u8d8a\u3048\u3066\u3044\u3051\u308b\u306e\u304c\u7279\u9577\u3067\u3059\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 class=\"wp-block-heading\">WithCode\u3092\u4f53\u9a13\u3067\u304d\u308b\u521d\u7d1a\u30b3\u30fc\u30b9\u516c\u958b\u4e2d\uff01<\/h2>\n<figure class=\"wp-block-image alignleft size-full\"><img decoding=\"async\" width=\"600\" height=\"500\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/\u30d0\u30ca\u30fc_300\u00d7250_20240425.png\" alt=\"\" class=\"wp-image-2650\"\/><\/figure>\n<h3 class=\"wp-block-heading\">\u521d\u7d1a\u30b3\u30fc\u30b9(\u00a549,800)\u304c\u5b8c\u5168\u7121\u6599\u306b\uff01<\/h3>\n<ul class=\"wp-block-list\">\n<li><strong>\u671f\u9593\uff1a1\u9031\u9593<\/strong><\/li>\n<li><strong>\u5b66\u7fd2\u5185\u5bb9\uff1a<\/strong><br \/><strong>\u30ed\u30fc\u30c9\u30de\u30c3\u30d7\/\u57fa\u790e\u77e5\u8b58\/\u74b0\u5883\u69cb\u7bc9\/HTML\/CSS\/LP\u30fb\u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa\u4f5c\u6210<\/strong><br \/><strong>\u2192 <span class=\"swl-marker mark_yellow\">\u6b63\u3057\u3044\u5b66\u7fd2\u65b9\u6cd5\u3067\u300c\u78ba\u304b\u306a\u6210\u9577\u300d\u3092\u5b9f\u611f\u3067\u304d\u308b\u30ab\u30ea\u30ad\u30e5\u30e9\u30e0\u3002<\/span><\/strong><\/li>\n<\/ul>\n<p>\u526f\u696d\u30fb\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u304c\u4e3b\u6d41\u306b\u306a\u3063\u3066\u3044\u308b\u4eca\u3053\u305d\u3001\u81ea\u3089\u306e\u30b9\u30ad\u30eb\u3067\u7a3c\u3052\u308b\u4eba\u6750\u3092\u76ee\u6307\u3057\u3066\u307f\u307e\u305b\u3093\u304b\uff1f<\/p>\n<p>\u672a\u7d4c\u9a13\u3067\u3082\u5fc3\u914d\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u521d\u7d1a\u30b3\u30fc\u30b9\u3092\u53d7\u8b1b\u3055\u308c\u308b\u65b9\u306e\u5927\u591a\u6570\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u672a\u7d4c\u9a13\u3067\u3059\u3002\u307e\u305a\u306f\u7121\u6599\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u3067\u3001\u60a9\u307f\u3084\u4e0d\u5b89\u3092\u304a\u805e\u304b\u305b\u304f\u3060\u3055\u3044\uff01<\/p>\n<div class=\"wp-block-buttons\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-white-color has-text-color has-background has-link-color wp-element-button\" href=\"https:\/\/withcode.tech\/reservation\/\" style=\"background-color:#ffbf00\"><strong>\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u7121\u6599\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u306b\u7533\u3057\u8fbc\u3080 \u2192<\/strong><\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30cf\u30f3\u30d0\u30fc\u30ac\u30fc\u30e1\u30cb\u30e5\u30fc\u306e\u4f5c\u308a\u65b9\u3092\u3001JavaScript\u306a\u3057\u306eHTML\/CSS\u3060\u3051\u3067\u52d5\u304f\u5b8c\u5168\u7248\u304b\u3089\u89e3\u8aac\u3057\u307e\u3059\u3002\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30cf\u30c3\u30af\u3067\u306e\u958b\u9589\u30013\u672c\u7dda\u304c\u00d7\u306b\u5909\u308f\u308b\u30a2\u30cb\u30e1\u3001\u30b9\u30e9\u30a4\u30c9\u30a4\u30f3\u3084\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u306a\u3069\u306e\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u3001JS\u7248\u3001\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u3001\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5207\u308a\u66ff\u3048\u307e\u3067\u3001\u3059\u3079\u3066\u30b3\u30d4\u30da\u3067\u4f7f\u3048\u308b\u30b3\u30fc\u30c9\u4ed8\u304d\u3067\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":18,"featured_media":16586,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"swell_btn_cv_data":"","footnotes":"","vk-ltc-link":"","vk-ltc-target":""},"categories":[361],"tags":[],"class_list":["post-16529","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/16529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/comments?post=16529"}],"version-history":[{"count":2,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/16529\/revisions"}],"predecessor-version":[{"id":16570,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/16529\/revisions\/16570"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/media\/16586"}],"wp:attachment":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/media?parent=16529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/categories?post=16529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/tags?post=16529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}