{"id":27769,"date":"2026-02-11T11:45:48","date_gmt":"2026-02-11T02:45:48","guid":{"rendered":"https:\/\/motoki-design.co.jp\/wordpress\/?p=27769"},"modified":"2026-10-04T08:10:50","modified_gmt":"2026-10-03T23:10:50","slug":"swell-table-fix-second-column","status":"publish","type":"post","link":"https:\/\/motoki-design.co.jp\/wordpress\/swell-table-fix-second-column\/","title":{"rendered":"SWELL\u2502\u30c6\u30fc\u30d6\u30eb\u306e2\u5217\u76ee\u3082\u56fa\u5b9a\u306b\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">SWELL\u306e\u30c6\u30fc\u30d6\u30eb\u30d6\u30ed\u30c3\u30af\u306b\u306f\u300c\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u300d\u3068\u300c1\u5217\u76ee\u306e\u56fa\u5b9a\u300d\u6a5f\u80fd\u304c\u6a19\u6e96\u642d\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img decoding=\"async\" width=\"269\" height=\"219\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2026-02-11_11h19_01.png\" alt=\"SWELL\u306e\u30c6\u30fc\u30d6\u30eb\u30d6\u30ed\u30c3\u30af\u3067\u5229\u7528\u3067\u304d\u308b\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u30841\u5217\u76ee\u306e\u56fa\u5b9a\u6a5f\u80fd\u306e\u8a2d\u5b9a\u753b\u9762\u3002\" class=\"wp-image-27770\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3057\u304b\u3057\u3001<strong>2\u5217\u76ee\u307e\u3067\u56fa\u5b9a\u3059\u308b\u6a5f\u80fd\u306f\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30e9\u30f3\u30ad\u30f3\u30b0\u8a18\u4e8b\u3084\u30b5\u30fc\u30d3\u30b9\u6bd4\u8f03\u8a18\u4e8b\u3067\u306f\u300c1\u5217\u76ee\u306b\u9806\u4f4d\u30012\u5217\u76ee\u306b\u88fd\u54c1\u540d\u300d\u306e\u3088\u3046\u306b\u3001\u5de62\u5217\u3092\u56fa\u5b9a\u3057\u3066\u30b9\u30af\u30ed\u30fc\u30eb\u3055\u305b\u305f\u3044\u30b1\u30fc\u30b9\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u8a18\u4e8b\u3067\u306f\u3001<strong>\u8ffd\u52a0CSS\u30af\u30e9\u30b9\u3068CSS\u30b3\u30fc\u30c9\u3060\u3051\u30672\u5217\u76ee\u3082\u56fa\u5b9a\u3059\u308b\u65b9\u6cd5<\/strong>\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-border_left wp-block-paragraph\">\u30b5\u30f3\u30d7\u30eb<\/p>\n\n\n<div class=\"c-scrollHint\"><span>\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059 <i class=\"icon-more_arrow\"><\/i><\/span><\/div>\n<figure data-table-scrollable=\"both\" data-cell1-fixed=\"both\" class=\"wp-block-table waza-cell2-fixed\"><table style=\"--table-width:1200px;\"><thead><tr><th>\u9806\u4f4d<\/th><th>\u30b5\u30fc\u30d3\u30b9\u540d<\/th><th>\u6708\u984d\u6599\u91d1<\/th><th>\u7121\u6599\u671f\u9593<\/th><th>\u5bb9\u91cf<\/th><th>\u7279\u5fb4<\/th><\/tr><\/thead><tbody><tr><td>1\u4f4d<\/td><td>\u30b5\u30fc\u30d3\u30b9A<\/td><td>990\u5186<\/td><td>30\u65e5\u9593<\/td><td>300GB<\/td><td>\u9ad8\u901f\u8868\u793a\u30fb\u30b5\u30dd\u30fc\u30c8\u5145\u5b9f<\/td><\/tr><tr><td>2\u4f4d<\/td><td>\u30b5\u30fc\u30d3\u30b9B<\/td><td>1,100\u5186<\/td><td>14\u65e5\u9593<\/td><td>400GB<\/td><td>WordPress\u7c21\u5358\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5bfe\u5fdc<\/td><\/tr><tr><td>3\u4f4d<\/td><td>\u30b5\u30fc\u30d3\u30b9C<\/td><td>880\u5186<\/td><td>10\u65e5\u9593<\/td><td>200GB<\/td><td>\u30b3\u30b9\u30d1\u91cd\u8996\u30fb\u521d\u5fc3\u8005\u5411\u3051<\/td><\/tr><tr><td>4\u4f4d<\/td><td>\u30b5\u30fc\u30d3\u30b9D<\/td><td>1,320\u5186<\/td><td>30\u65e5\u9593<\/td><td>500GB<\/td><td>\u6cd5\u4eba\u5229\u7528\u30fb\u5927\u898f\u6a21\u30b5\u30a4\u30c8\u5411\u3051<\/td><\/tr><tr><td>5\u4f4d<\/td><td>\u30b5\u30fc\u30d3\u30b9E<\/td><td>550\u5186<\/td><td>\u306a\u3057<\/td><td>100GB<\/td><td>\u6700\u5b89\u30fb\u500b\u4eba\u30d6\u30ed\u30b0\u5411\u3051<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">SWELL\u30c6\u30fc\u30d6\u30eb\u306e1\u5217\u76ee\u56fa\u5b9a\u306e\u4ed5\u7d44\u307f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">SWELL\u306e\u30c6\u30fc\u30d6\u30eb\u30d6\u30ed\u30c3\u30af\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3059\u308b\u30681\u5217\u76ee\u304c\u56fa\u5b9a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c6\u30fc\u30d6\u30eb\u30d6\u30ed\u30c3\u30af\u306e\u53f3\u30b5\u30a4\u30c9\u30d0\u30fc\u304b\u3089\u300c\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\uff08PC\u30fb\u30b9\u30de\u30db\u4e21\u65b9\uff09\u300d\u3068\u300c1\u5217\u76ee\u3092\u56fa\u5b9a\uff08PC\u30fb\u30b9\u30de\u30db\u4e21\u65b9\uff09\u300d\u3092ON\u306b\u3059\u308b\u3068\u3001figure\u30bf\u30b0\u306b\u6b21\u306edata\u5c5e\u6027\u304c\u4ed8\u4e0e\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>&lt;figure data-table-scrollable=&quot;both&quot; data-cell1-fixed=&quot;both&quot; class=&quot;wp-block-table&quot;&gt;<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5185\u90e8\u7684\u306b\u306f\u30011\u5217\u76ee\u306b<code>position: sticky<\/code>\u3068<code>left: 0<\/code>\u304c\u9069\u7528\u3055\u308c\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u6642\u306b\u30821\u5217\u76ee\u304c\u753b\u9762\u5de6\u7aef\u306b\u56fa\u5b9a\u3055\u308c\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PC\u3060\u3051\u30b9\u30af\u30ed\u30fc\u30eb\u3059\u308b\u5834\u5408\u306f<code>pc<\/code>\u3001PC\u3082\u30b9\u30de\u30db\u3082\u306e\u5834\u5408\u306f<code>both<\/code>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2\u5217\u76ee\u3082\u56fa\u5b9a\u3057\u305f\u3044\u5834\u9762<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306a\u30e9\u30f3\u30ad\u30f3\u30b0\u30fb\u6bd4\u8f03\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u308b\u5834\u5408\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u5217\u76ee\u304c\u300c\u9806\u4f4d\u300d\u30012\u5217\u76ee\u304c\u300c\u88fd\u54c1\u540d\u300d\u306e\u30c6\u30fc\u30d6\u30eb\u3067\u306f\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3082\u9806\u4f4d\u3068\u88fd\u54c1\u540d\u304c\u898b\u3048\u3066\u3044\u306a\u3044\u3068\u3001\u3069\u306e\u884c\u3092\u898b\u3066\u3044\u308b\u306e\u304b\u308f\u304b\u3089\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">SWELL\u306e\u6a19\u6e96\u6a5f\u80fd\u3067\u306f1\u5217\u76ee\u3057\u304b\u56fa\u5b9a\u3067\u304d\u306a\u3044\u305f\u3081\u3001CSS\u3092\u8ffd\u52a0\u3057\u30662\u5217\u76ee\u3082\u56fa\u5b9a\u306b\u5bfe\u5fdc\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SWELL\u306e\u30c6\u30fc\u30d6\u30eb\u306e2\u5217\u76ee\u3092\u56fa\u5b9a\u3059\u308b\u624b\u9806<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">STEP1\uff1a\u8ffd\u52a0CSS\u30af\u30e9\u30b9\u3092\u4ed8\u4e0e\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c6\u30fc\u30d6\u30eb\u30d6\u30ed\u30c3\u30af\u3092\u9078\u629e\u3057\u3001\u53f3\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u300c\u9ad8\u5ea6\u306a\u8a2d\u5b9a\u300d\u2192\u300c\u8ffd\u52a0CSS\u30af\u30e9\u30b9\u300d\u306b <code><strong>waza-cell2-fixed<\/strong><\/code> \u3068\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-border\"><img decoding=\"async\" width=\"812\" height=\"221\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2026-02-11_11h19_43-812x221.png\" alt=\"\u30c6\u30fc\u30d6\u30eb\u30d6\u30ed\u30c3\u30af\u306e\u9ad8\u5ea6\u306a\u8a2d\u5b9a\u306b\u3042\u308b\u8ffd\u52a0CSS\u30af\u30e9\u30b9\u3078\u30af\u30e9\u30b9\u540d\u3092\u5165\u529b\u3059\u308b\u624b\u9806\u3002\" class=\"wp-image-27771\" srcset=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2026-02-11_11h19_43-812x221.png 812w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2026-02-11_11h19_43-382x104.png 382w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2026-02-11_11h19_43-768x209.png 768w, https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/2026-02-11_11h19_43.png 924w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u306b\u3088\u308a\u3001figure\u30bf\u30b0\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>&lt;figure data-table-scrollable=&quot;both&quot; data-cell1-fixed=&quot;both&quot; class=&quot;wp-block-table waza-cell2-fixed&quot;&gt;<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">STEP2\uff1aCSS\u3092\u8ffd\u52a0\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c\u5916\u89b3\u300d\u2192\u300c\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u300d\u2192\u300c\u8ffd\u52a0CSS\u300d\u3001\u307e\u305f\u306f\u5b50\u30c6\u30fc\u30de\u306estyle.css\u306b\u4ee5\u4e0b\u306eCSS\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>figure.waza-cell2-fixed[data-cell1-fixed=&quot;both&quot;] &gt; table {\n  --swl-cell1-width: 60px;\n  --waza-cell2-width: 140px;\n  table-layout: fixed;\n}\nfigure.waza-cell2-fixed[data-cell1-fixed=&quot;both&quot;] tr &gt; :first-child {\n  box-sizing: border-box;\n  width: var(--swl-cell1-width);\n}\nfigure.waza-cell2-fixed[data-cell1-fixed=&quot;both&quot;] tr &gt; :nth-child(2) {\n  box-sizing: border-box;\n  width: var(--waza-cell2-width);\n  min-width: var(--waza-cell2-width) !important;\n  position: sticky !important;\n  left: var(--swl-cell1-width) !important;\n  z-index: 2;\n  background: var(--color_content_bg, #fff);\n  overflow-wrap: anywhere;\n}\nfigure.waza-cell2-fixed[data-cell1-fixed=&quot;both&quot;] thead tr &gt; :nth-child(2) {\n  background: var(--thead-color--bg, var(--color_main));\n}<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u306f\u300c\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u300d\u3068\u300c1\u5217\u76ee\u56fa\u5b9a\u300d\u3092PC\u30fb\u30b9\u30de\u30db\u4e21\u65b9\u306b\u8a2d\u5b9a\u3057\u305f\u8868\u304c\u5bfe\u8c61\u3067\u3059\u3002\u7d50\u5408\u30bb\u30eb\uff08rowspan\u30fbcolspan\uff09\u306e\u306a\u3044\u8868\u3067\u4f7f\u7528\u3057\u307e\u3059\u30021\u5217\u76ee\u306e\u5e45\u30682\u5217\u76ee\u306eleft\u3092\u540c\u3058\u5909\u6570\u306b\u305d\u308d\u3048\u3001\u56fa\u5b9a\u5e45\u306e\u30c6\u30fc\u30d6\u30eb\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u305a\u308c\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u304a\u307e\u3051\uff1a1\u5217\u76ee\u30682\u5217\u76ee\u306e\u5e45\u3092\u6307\u5b9a\u3059\u308b<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>figure.waza-cell2-fixed.waza-cell2-wide[data-cell1-fixed=&quot;both&quot;] &gt; table {\n  --swl-cell1-width: 70px;\n  --waza-cell2-width: 150px;\n}<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8ffd\u52a0\u6307\u5b9a\u306f\u57fa\u672cCSS\u3088\u308a\u5f8c\u306b\u7f6e\u304d\u3001\u5e45\u3092\u5909\u3048\u305f\u3044\u30c6\u30fc\u30d6\u30eb\u3060\u3051\u306b <code>waza-cell2-wide<\/code> \u3082\u4ed8\u3051\u307e\u3059\u3002\u8ffd\u52a0CSS\u30af\u30e9\u30b9\u6b04\u306f <code>waza-cell2-fixed waza-cell2-wide<\/code> \u3068\u3057\u307e\u3059\u3002\u6b21\u306e\u898b\u672c\u306f1\u5217\u76ee70px\u30fb2\u5217\u76ee150px\u3067\u3059\u3002\u6a2a\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u30822\u5217\u76ee\u306e\u5de6\u7aef\u306f70px\u306e\u4f4d\u7f6e\u306b\u305d\u308d\u3044\u307e\u3059\u3002<\/p>\n<div class=\"c-scrollHint\"><span>\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059 <i class=\"icon-more_arrow\"><\/i><\/span><\/div>\n<figure data-table-scrollable=\"both\" data-cell1-fixed=\"both\" class=\"wp-block-table waza-cell2-fixed waza-cell2-wide waza-cell2-narrow\"><table style=\"--table-width:620px;\"><thead><tr><th>\u756a\u53f7<\/th><th>\u9805\u76ee<\/th><th>\u8aac\u660e<\/th><th>\u78ba\u8a8d\u65b9\u6cd5<\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td>\u9577\u3044\u9805\u76ee\u540d\u306e\u6298\u308a\u8fd4\u3057\u3092\u78ba\u8a8d\u3059\u308b<\/td><td>361px\u4ee5\u4e0a\u3067\u306f\u5de62\u5217\u3092\u56fa\u5b9a\u3057\u3001360px\u4ee5\u4e0b\u3067\u306f\u756a\u53f7\u3060\u3051\u3092\u56fa\u5b9a\u3057\u307e\u3059\u3002<\/td><td>361px\u4ee5\u4e0a\u3067\u306f\u756a\u53f7\u3068\u9805\u76ee\u304c\u6b8b\u308a\u3001360px\u4ee5\u4e0b\u3067\u306f\u756a\u53f7\u304c\u6b8b\u308a\u307e\u3059\u3002<\/td><\/tr><tr><td>2<\/td><td>\u5e45\u3092\u5909\u66f4\u3057\u305f\u898b\u672c<\/td><td>\u3053\u306e\u8868\u3060\u3051\u5e45\u309270px\u30fb150px\u306b\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002<\/td><td>\u4e0a\u306e\u8868\u306e\u5e45\u306f60px\u30fb140px\u306e\u307e\u307e\u3067\u3059\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<p class=\"wp-block-paragraph\">390px\u5e45\u306e\u898b\u672c\u3067\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u305f\u3068\u304d\u3082\u3001\u756a\u53f7\u5217\u306f\u5de6\u7aef\u3001\u9805\u76ee\u5217\u306f\u5de6\u7aef\u304b\u308970px\u306e\u4f4d\u7f6e\u306b\u56fa\u5b9a\u3055\u308c\u307e\u3059\u3002\u56fa\u5b9a\u3057\u305f2\u5217\u306e\u53f3\u5074\u304c\u72ed\u3044\u5834\u5408\u306f\u3001\u8868\u306e\u4e2d\u3092\u6a2a\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u8aac\u660e\u5217\u3092\u8aad\u307f\u307e\u3059\u3002<\/p>\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"375\" height=\"812\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-waza-ui-mobile-next-20261002-table-mobile.jpg\" alt=\"\u30b9\u30de\u30db\u5e45390px\u3067\u8868\u3092120px\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u305fWAZA\u516c\u958b\u898b\u672c\u3002\u756a\u53f7\u521770px\u3068\u9805\u76ee\u5217150px\u304c\u5de6\u5074\u306b\u56fa\u5b9a\u3055\u308c\u3066\u3044\u308b\" class=\"wp-image-30107\"\/><figcaption class=\"wp-element-caption\">2026\u5e7410\u67082\u65e5\u64ae\u5f71\u3002\u30b9\u30de\u30db\u5e45390px\u3067120px\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3082\u3001\u756a\u53f7\u5217\u3068\u9805\u76ee\u5217\u306f\u5de6\u5074\u306b\u6b8b\u3063\u3066\u3044\u307e\u3059\u3002<\/figcaption><\/figure>\n\n\n<h2 class=\"wp-block-heading\">\u72ed\u3044\u753b\u9762\u3067\u306f1\u5217\u76ee\u3060\u3051\u3092\u56fa\u5b9a\u3059\u308b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u56fa\u5b9a\u3059\u308b2\u5217\u306e\u5408\u8a08\u5e45\u304c\u5927\u304d\u3044\u3068\u3001\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3082\u53f3\u5074\u3092\u5c11\u3057\u305a\u3064\u3057\u304b\u8aad\u3081\u307e\u305b\u3093\u3002\u4e0a\u306e\u5e45\u5909\u66f4\u898b\u672c\u3067\u306f\u3001320px\u5e45\u3067\u53f3\u5074\u306e\u95b2\u89a7\u5e45\u304c53px\u306b\u306a\u308a\u307e\u3059\u3002\u5c0f\u3055\u3044\u753b\u9762\u3067\u8aac\u660e\u5217\u3092\u8aad\u307f\u3084\u3059\u304f\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u5bfe\u8c61\u306e\u8868\u3060\u3051\u306b<code>waza-cell2-narrow<\/code>\u3082\u8ffd\u52a0\u3057\u3001\u6b21\u306eCSS\u3092\u57fa\u672cCSS\u3088\u308a\u5f8c\u306b\u7f6e\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>@media (max-width: 360px) {\n  figure.waza-cell2-fixed.waza-cell2-narrow[data-cell1-fixed=&quot;both&quot;] tr &gt; :nth-child(2) {\n    position: static !important;\n    left: auto !important;\n  }\n}<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u8ffd\u52a0CSS\u30af\u30e9\u30b9\u6b04\u306f<code>waza-cell2-fixed waza-cell2-wide waza-cell2-narrow<\/code>\u3067\u3059\u3002\u3053\u306e\u898b\u672c\u306b\u3082\u4ed8\u3051\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u30014\u5217\u306e\u898b\u672c\u306e\u300c\u8868\u306e\u6a2a\u5e45\u300d\u306f620px\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u5e45\u5909\u66f4\u898b\u672c\u306e\u8aac\u660e\u6587\u306f\u30012\u5217\u76ee\u3092\u89e3\u9664\u3057\u305f320px\u5e45\u3067\u53f3\u7aef\u306e\u5217\u307e\u3067\u8aad\u3081\u308b\u5e45\u3067\u3059\u3002\u8868\u306e\u6a2a\u5e45\u3084\u5404\u5217\u306e\u5e45\u306f\u3001\u5b9f\u969b\u306e\u6587\u7ae0\u91cf\u306b\u5408\u308f\u305b\u3066\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u753b\u9762\u5e45360px\u4ee5\u4e0b\u3067\u306f2\u5217\u76ee\u306e\u56fa\u5b9a\u3092\u89e3\u9664\u3057\u3001\u756a\u53f7\u5217\u3060\u3051\u3092\u6b8b\u3057\u307e\u3059\u3002361px\u4ee5\u4e0a\u306f2\u5217\u56fa\u5b9a\u3067\u3059\u3002\u5883\u754c\u306e360px\u306f\u56fa\u5b9a\u5217\u306e\u5e45\u306b\u5408\u308f\u305b\u3066\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u623b\u3059\u5834\u5408\u306f\u3001\u3053\u306e\u8ffd\u52a0CSS\u3068<code>waza-cell2-narrow<\/code>\u3060\u3051\u3092\u53d6\u308a\u9664\u304d\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u8868\u3078Tab\u3067\u79fb\u52d5\u3067\u304d\u306a\u3044\u30d6\u30e9\u30a6\u30b6\u30fc\u3067\u306f\u3001\u6b21\u306eJavaScript\u30821\u56de\u3060\u3051\u30ab\u30b9\u30bf\u30e0HTML\u30d6\u30ed\u30c3\u30af\u306b\u8cbc\u308a\u307e\u3059\u3002\u5bfe\u8c61\u306f<code>waza-cell2-narrow<\/code>\u3092\u4ed8\u3051\u305f\u8868\u3060\u3051\u3067\u3059\u3002\u8868\u3092Tab\u79fb\u52d5\u306e\u5bfe\u8c61\u306b\u3057\u3001\u5de6\u53f3\u306e\u77e2\u5370\u30ad\u30fc\u3067\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002End\u30ad\u30fc\u3067\u6a2a\u65b9\u5411\u306e\u672b\u5c3e\u3078\u79fb\u52d5\u3059\u308b\u4ed5\u69d8\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u6700\u5f8c\u306e\u5217\u307e\u3067\u8aad\u3081\u308b\u3053\u3068\u3092\u516c\u958b\u753b\u9762\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<style>@media (max-width: 360px) {\n  figure.waza-cell2-fixed.waza-cell2-narrow[data-cell1-fixed=\"both\"] tr > :nth-child(2) {\n    position: static !important;\n    left: auto !important;\n  }\n}<\/style>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;script&gt;\n(() =&gt; {\n  const init = () =&gt; {\n    document.querySelectorAll(&#x27;figure.waza-cell2-narrow[data-table-scrollable=&quot;both&quot;]&#x27;).forEach(figure =&gt; {\n      if (!figure.hasAttribute(&#x27;tabindex&#x27;)) figure.tabIndex = 0;\n      if (!figure.hasAttribute(&#x27;role&#x27;)) figure.setAttribute(&#x27;role&#x27;, &#x27;region&#x27;);\n      if (!figure.hasAttribute(&#x27;aria-label&#x27;)) figure.setAttribute(&#x27;aria-label&#x27;, &#x27;\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u8aad\u3080\u8868&#x27;);\n    });\n  };\n  if (document.readyState === &#x27;loading&#x27;) document.addEventListener(&#x27;DOMContentLoaded&#x27;, init, { once: true });\n  else init();\n})();\n&lt;\/script&gt;<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u8868\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u3042\u308b\u3068\u304d\u306e\u67a0\u7dda\u306f\u3001\u6b21\u306eCSS\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u8868\u306b\u65e2\u5b58\u306e<code>tabindex<\/code>\u30fb<code>role<\/code>\u30fb<code>aria-label<\/code>\u304c\u3042\u308c\u3070\u4e0a\u66f8\u304d\u3057\u307e\u305b\u3093\u3002\u8868\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u3001\u8aad\u307f\u624b\u304c\u533a\u5225\u3067\u304d\u308b\u540d\u524d\u3092\u5404\u8868\u306e<code>aria-label<\/code>\u3078\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u623b\u3059\u3068\u304d\u306f\u8ffd\u52a0\u3057\u305fJS\u306e\u30ab\u30b9\u30bf\u30e0HTML\u30d6\u30ed\u30c3\u30af\u3068\u67a0\u7ddaCSS\u3092\u5916\u3057\u307e\u3059\u3002JS\u3092\u5916\u3059\u3068\u81ea\u52d5\u3067\u4ed8\u3051\u305f\u5c5e\u6027\u306f\u6b21\u306e\u30da\u30fc\u30b8\u8aad\u307f\u8fbc\u307f\u3067\u6d88\u3048\u307e\u3059\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>figure.waza-cell2-narrow:focus-visible { outline: 2px solid var(--color_link, #1769aa); outline-offset: 3px; }<\/code><\/pre><\/div>\n\n\n<style>figure.waza-cell2-narrow:focus-visible { outline: 2px solid var(--color_link, #1769aa); outline-offset: 3px; }<\/style><script>(() => {\n  const init = () => {\n    document.querySelectorAll('figure.waza-cell2-narrow[data-table-scrollable=\"both\"]').forEach(figure => {\n      if (!figure.hasAttribute('tabindex')) figure.tabIndex = 0;\n      if (!figure.hasAttribute('role')) figure.setAttribute('role', 'region');\n      if (!figure.hasAttribute('aria-label')) figure.setAttribute('aria-label', '\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u8aad\u3080\u8868');\n    });\n  };\n  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', init, { once: true });\n  else init();\n})();<\/script>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"305\" height=\"804\" src=\"https:\/\/motoki-design.co.jp\/wordpress\/wp-content\/uploads\/waza-waza-navigation-focus-next-20261002-table-320-keyboard.jpg\" alt=\"320px\u5e45\u3067\u77e2\u5370\u30ad\u30fc\u306b\u3088\u308a\u8868\u306e\u672b\u5c3e\u307e\u3067\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3001\u756a\u53f7\u5217\u3068\u78ba\u8a8d\u65b9\u6cd5\u306e\u6587\u7ae0\u304c\u8aad\u3081\u308b\u5b9f\u753b\u9762\" class=\"wp-image-30120\"\/><figcaption class=\"wp-element-caption\">2026\u5e7410\u67082\u65e5\u64ae\u5f71\u3002SWELL 2.19.0\u3001320px\u5e45\u3002Tab\u3067\u8868\u306b\u79fb\u52d5\u3057\u3001\u53f3\u77e2\u5370\u30ad\u30fc\u3067\u672b\u5c3e\u307e\u3067\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u305f\u72b6\u614b\u3067\u3059\u3002\u756a\u53f7\u5217\u306e\u307f\u3092\u56fa\u5b9a\u3057\u3001\u53f3\u7aef\u306e\u5217\u3092\u5168\u5e45\u3067\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">SWELL\u306e\u30c6\u30fc\u30d6\u30eb\u30672\u5217\u76ee\u3082\u56fa\u5b9a\u3059\u308b\u306b\u306f\u3001\u8ffd\u52a0CSS\u30af\u30e9\u30b9<code>waza-cell2-fixed<\/code>\u3092\u4ed8\u4e0e\u3057\u3001CSS\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30dd\u30a4\u30f3\u30c8\u3092\u304a\u3055\u3089\u3044\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>position: sticky<\/code>\u3068<code>left: var(--swl-cell1-width)<\/code>\u30672\u5217\u76ee\u3092\u56fa\u5b9a\u3057\u3001\u80cc\u666f\u8272\u3068<code>z-index<\/code>\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u6642\u306e\u900f\u904e\u3068\u91cd\u306a\u308a\u3092\u9632\u6b62\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30dc\u30fc\u30c0\u30fc\u304c\u6d88\u3048\u308b\u5834\u5408\u306f<code>border-collapse: separate<\/code>\u306b\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30e9\u30f3\u30ad\u30f3\u30b0\u8a18\u4e8b\u3084\u30b5\u30fc\u30d3\u30b9\u6bd4\u8f03\u30c6\u30fc\u30d6\u30eb\u3067\u3001\u305c\u3072\u6d3b\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n\n\n<style>figure.waza-cell2-fixed[data-cell1-fixed=\"both\"] > table {\n  --swl-cell1-width: 60px;\n  --waza-cell2-width: 140px;\n  table-layout: fixed;\n}\nfigure.waza-cell2-fixed[data-cell1-fixed=\"both\"] tr > :first-child {\n  box-sizing: border-box;\n  width: var(--swl-cell1-width);\n}\nfigure.waza-cell2-fixed[data-cell1-fixed=\"both\"] tr > :nth-child(2) {\n  box-sizing: border-box;\n  width: var(--waza-cell2-width);\n  min-width: var(--waza-cell2-width) !important;\n  position: sticky !important;\n  left: var(--swl-cell1-width) !important;\n  z-index: 2;\n  background: var(--color_content_bg, #fff);\n  overflow-wrap: anywhere;\n}\nfigure.waza-cell2-fixed[data-cell1-fixed=\"both\"] thead tr > :nth-child(2) {\n  background: var(--thead-color--bg, var(--color_main));\n}<\/style>\n\n<p class=\"wp-block-paragraph\">60px\u3068140px\u306f\u5148\u982d2\u5217\u306e\u5e45\u3067\u3059\u3002\u72ed\u3044\u753b\u9762\u3067\u56fa\u5b9a\u5217\u3060\u3051\u304c\u753b\u9762\u3092\u5360\u3081\u306a\u3044\u3088\u3046\u3001\u6b8b\u308a\u306e\u5217\u3082\u8aad\u3081\u308b\u5e45\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30b5\u30f3\u30d7\u30eb\u306e\u30b5\u30fc\u30d3\u30b9\u540d\u30fb\u91d1\u984d\u306f\u67b6\u7a7a\u306e\u30c7\u30fc\u30bf\u3067\u3059\u3002\u5143\u3078\u623b\u3059\u5834\u5408\u306f\u4eca\u56de\u8ffd\u52a0\u3057\u305fCSS\u3068waza-cell2-fixed\u30af\u30e9\u30b9\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u901a\u5e38\u306eSWELL\u306e1\u5217\u76ee\u56fa\u5b9a\u8a2d\u5b9a\u306f\u5225\u306b\u6b8b\u308a\u307e\u3059\u3002<\/p>\n\n<style>figure.waza-cell2-fixed.waza-cell2-wide[data-cell1-fixed=\"both\"] > table { --swl-cell1-width: 70px; --waza-cell2-width: 150px; }<\/style>\n","protected":false},"excerpt":{"rendered":"<p>SWELL\u306e\u30c6\u30fc\u30d6\u30eb\u30d6\u30ed\u30c3\u30af\u306b\u306f\u300c\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u300d\u3068\u300c1\u5217\u76ee\u306e\u56fa\u5b9a\u300d\u6a5f\u80fd\u304c\u6a19\u6e96\u642d\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u3057\u304b\u3057\u30012\u5217\u76ee\u307e\u3067\u56fa\u5b9a\u3059\u308b\u6a5f\u80fd\u306f\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002 \u30e9\u30f3\u30ad\u30f3\u30b0\u8a18\u4e8b\u3084\u30b5\u30fc\u30d3\u30b9\u6bd4\u8f03\u8a18\u4e8b\u3067\u306f\u300c1\u5217\u76ee\u306b\u9806\u4f4d\u30012\u5217\u76ee\u306b\u88fd\u54c1\u540d\u300d\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":27783,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","book_review_data":"","footnotes":"","ssp_meta_title":"SWELL\u30c6\u30fc\u30d6\u30eb\u306e2\u5217\u76ee\u3092\u56fa\u5b9a\u3059\u308b\u65b9\u6cd5","ssp_meta_description":"SWELL\u306e\u30c6\u30fc\u30d6\u30eb\u30d6\u30ed\u30c3\u30af\u30672\u5217\u76ee\u307e\u3067\u6a2a\u30b9\u30af\u30ed\u30fc\u30eb\u56fa\u5b9a\u3059\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3092\u89e3\u8aac\u3002\u8ffd\u52a0CSS\u30af\u30e9\u30b9\u306e\u4ed8\u4e0e\u3068CSS\u8ffd\u52a0\u306e2\u30b9\u30c6\u30c3\u30d7\u3067\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u30021\u5217\u76ee\u30682\u5217\u76ee\u306e\u5e45\u3092\u6307\u5b9a\u3059\u308bCSS\u30b3\u30fc\u30c9\u3082\u63b2\u8f09\u3057\u3066\u3044\u307e\u3059\u3002"},"categories":[110],"tags":[],"area":[],"class_list":["post-27769","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-swell-customize"],"_links":{"self":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/27769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=27769"}],"version-history":[{"count":13,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/27769\/revisions"}],"predecessor-version":[{"id":30781,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/27769\/revisions\/30781"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media\/27783"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=27769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=27769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=27769"},{"taxonomy":"area","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/area?post=27769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}