<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rriver</title>
	<atom:link href="https://parashuto.com/rriver/feed" rel="self" type="application/rss+xml" />
	<link>https://parashuto.com/rriver</link>
	<description>明日のウェブ制作に役立つアイディア</description>
	<lastBuildDate>Wed, 03 May 2023 02:15:35 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.8</generator>
	<item>
		<title>まるで黒のM2 MacBook Air! MacBookとiPadをdbrandの黒スキンでデコってみた</title>
		<link>https://parashuto.com/rriver/gadget/macbook-and-ipad-dbrand-skins</link>
		
		<dc:creator><![CDATA[ryo]]></dc:creator>
		<pubDate>Wed, 04 Jan 2023 05:08:38 +0000</pubDate>
				<category><![CDATA[IT・ガジェット]]></category>
		<category><![CDATA[dbrand]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[ipad pro]]></category>
		<category><![CDATA[macbook pro]]></category>
		<guid isPermaLink="false">https://parashuto.com/rriver/?p=11789</guid>

					<description><![CDATA[いままでApple製品は素のままで使うことが多かったんですが、MacBook Pro 16-inchにカナダのdbrandという会社 の真っ黒スキンをつけてみました。マットな感じでなかなかいい感じでしょ？笑 実はM2 M [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>いままでApple製品は素のままで使うことが多かったんですが、MacBook Pro 16-inchに<a href="https://dbrand.com" target="_blank" rel="noopener">カナダのdbrandという会社 <span class="icon-windows"></span></a> の真っ黒スキンをつけてみました。マットな感じでなかなかいい感じでしょ？笑</p>
<img fetchpriority="high" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-title.jpg" alt="閉じた状態のMacBook Pro 16インチがdbrandのマットブラックのスキンが貼られた状態で木目の見えるテーブルに置いてある。右上にはNuPhy Air75のカラフルなキーボードが見切れている" width="1466" height="880" class="wp-image-11792" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-title.jpg 1466w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-title-300x180.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-title-1024x615.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-title-768x461.jpg 768w" sizes="(max-width: 1466px) 100vw, 1466px" />
<p>実は<a href="https://amzn.to/3WXM3n4" target="_blank" rel="noopener noreferrer">M2 MacBook Airの黒モデル <span class="icon-windows"></span></a> が発表された時に、「めっちゃかっこいい！」と思って衝動的にAppleオンラインストアで予約までしてたんですが、待っている間に冷静になっちゃって、迷いに迷ってキャンセルして代わりに<a href="https://amzn.to/3vBGy1K" target="_blank" rel="noopener noreferrer">M1 Pro MacBook Pro 16-inch <span class="icon-windows"></span></a> を買いました。</p>
<p>そんな経緯もあって、あの黒いM2 MacBook Airに憧れて、人生で初めてApple製品にスキンをつけてみました。</p>
<img decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-02.jpg" alt="閉じた状態のMacBook Pro 16インチ。ほぼ真上の正面手前から撮った写真。Appleロゴ部分には切り抜きが入っているため綺麗に反射している" width="1600" height="1200" class="wp-image-11795" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-02.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-02-300x225.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-02-1024x768.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-02-768x576.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-02-1536x1152.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>結果、手垢はあまり目立たないし、スクリーンはでっかいし、ポートはたくさんあるしで、自分にとっては良い選択だったんじゃないかと思っています。めっちゃデカくて持ち運びには向いてませんけど（笑）、逆にこのデカさが魅力でもあるんですよね、16インチは。</p>
<img decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-01.jpg" alt="スクリーンを開いた状態のMacBook Pro 16インチをAppleロゴの見える方から撮った写真。マットな黒で覆われた表面だが、Appleロゴ部分には切り抜きが入っているため綺麗に反射している" width="1600" height="1200" class="wp-image-11798" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-01.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-01-300x225.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-01-1024x768.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-01-768x576.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-01-1536x1152.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<h2>気に入ったのでiPad Proにもスキンを貼ってみた</h2>
<p>そして、MBPのスキンがなかなか良かったので、今度はiPadにもマットな黒のスキンをつけてみました。MacBookのは無地のマットブラックでロゴの部分に切り抜きが入ったものですが、iPadでは六角形模様のついたMatrixスキンで、あえてAppleロゴを隠すタイプのものにしてみました。</p>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-03.jpg" alt="マットブラックのスキンが貼られたMacBook Pro 16インチの上に、マットブラック（Matrix）のスキンが貼られたiPad Pro 12.9インチが背面を上にして置かれている。iPadにはオレンジと黒のスキンでデコったApple Pencilがくっついている" width="1600" height="1200" class="wp-image-11800" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-03.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-03-300x225.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-03-1024x768.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-03-768x576.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-03-1536x1152.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>側面にはボタンやスピーカー穴が切り抜かれたスキンが用意されています。</p>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-04.jpg" alt="dbrandのスキンが貼られたiPadのUSB-Cの接続部とスピーカーの穴が見えている側面。スキンはUSB-Cとスピーカーの穴がピッタリサイズで切り抜かれている" width="1600" height="1200" class="wp-image-11801" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-04.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-04-300x225.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-04-1024x768.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-04-768x576.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2023/01/macbook-and-ipad-skins-04-1536x1152.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>iPadはこの圧倒的な薄さが魅力でもあるので、スキンを貼って端末の表面を（それなりに）守りつつ使うのもありかなと思ってます。これならMagic Keyboardの脱着も楽ですし。<a href="https://amzn.to/3vvM0Dn" target="_blank" rel="noopener noreferrer">PITAKA MagEZ Case2 <span class="icon-windows"></span></a>のような極薄ケースも良さそうですけど、片側がプロテクションなしなのが気になるんですよね。</p>
<p>あとは、iPhoneも黒いスキンにすれば全部揃うけど、スマホはポケットに入れて持ち歩くので、傷をつけるのが心配で<a href="https://amzn.to/3ZgVtfF" target="_blank" rel="noopener noreferrer">ちゃんとしたケース <span class="icon-windows"></span></a>を使ってます。</p>
<h2>剥がす際に接着剤が残らないか心配</h2>
<p>ちなみに、dbrandウェブサイトの説明には、スキンを剥がす際には接着剤が全く残らないことを保証すると書いてあるんですが、実際はどうなんでしょうね？数カ月後ならまだしも、2年くらい経っても本当に綺麗に剥がれるのかどうか？実はちょっと疑っていて覚悟はしています。まぁ、最終的には綺麗に拭き取れるんだろうなと楽観視してます。</p>
<h2>さいごに</h2>
<p>MacBookやiPadにスキンを貼るのは初めてでしたが、なかなか楽しい体験でした。Apple製品は綺麗にデザインされているので、そのまま使うのがいいなんて思ったりしますが、元のデザインがいいだけに、デコって遊んでみるのも楽しいですね。</p>
<p>ということで、今回はMacやiPadのスキンのご紹介でした！<br />
Let&#8217;s enjoy Apple life!</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>picture要素で使うsourceタグにもwidthとheight属性を書くといいらしい</title>
		<link>https://parashuto.com/rriver/development/picture-source-size-attributes</link>
		
		<dc:creator><![CDATA[ryo]]></dc:creator>
		<pubDate>Mon, 18 Jul 2022 09:34:06 +0000</pubDate>
				<category><![CDATA[ウェブ制作・運営ノウハウ]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[html & css basics]]></category>
		<category><![CDATA[responsive image]]></category>
		<category><![CDATA[responsive images]]></category>
		<guid isPermaLink="false">https://parashuto.com/rriver/?p=11750</guid>

					<description><![CDATA[突然ですが、picture要素を使ってアスペクト比が違う画像を読み込む場合でも、imgとsourceにwidthとheightを記述すれば、レイアウトシフトが起こらなくなるって知ってました？ &#60;picture&#038;gt [&#8230;]]]></description>
										<content:encoded><![CDATA[<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2022/07/picture-source-size-attributes.svg" alt="" width="1123" height="590" class="wp-image-11760" onerror="this.src='https://parashuto.com/rriver/wp/wp-content/uploads/2022/07/picture-source-size-attributes.png'; this.onerror=null;" role="img" />
<p>突然ですが、<code>picture</code>要素を使ってアスペクト比が違う画像を読み込む場合でも、<code>img</code>と<code>source</code>に<code>width</code>と<code>height</code>を記述すれば、レイアウトシフトが起こらなくなるって知ってました？</p>
<pre class="language-html"><code>&lt;picture&gt;
  &lt;source srcset=&quot;img/img-800x480px.jpg&quot; media=&quot;(min-width: 820px)&quot; width=&quot;800&quot; height=&quot;480&quot;&gt;
  &lt;img src=&quot;img/img-480x480px.jpg&quot; width=&quot;480&quot; height=&quot;480&quot; alt=&quot;画像の説明&quot;&gt;
&lt;/picture&gt;</code></pre>
<p>実は1年以上前に公開されたChrome 90からサポートされていたそうで（僕はつい先日知りました）、上のコードのように<code>img</code>と<code>source</code>の両方に<code>width</code>と<code>height</code>を記述すれば、ブラウザがそれらの値を認識して画像ファイルを読み込む前から適切なスペースを確保してくれるので、レイアウトシフトが起こらなくなります。</p>
<p>ということで、<a href="https://parashuto.com/rriver/development/img-size-attributes-are-back">2020年夏にはimg要素について書きました</a>が、<code>picture</code>要素で複数の異なるアスペクト比の画像を読み込む際は、レイアウトシフトを避けるために<code>source</code>要素にも<code>width</code>と<code>height</code>属性を記述しておくのが良さそうです。</p>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2>ブラウザの対応状況</h2>
<p class="bm-10px">2022年7月18日現在、ブラウザの対応状況は以下の通りです：</p>
<ul class="ul-deco">
<li>Chrome 103（Mac）とEdge 103（Win 10）で動作を確認しました</li>
<li>デスクトップ版Safari 15.5で動作を確認しました</li>
<li>Firefox 102の時点ではバグがあって、<code>source</code>で読み込まれる画像にも<code>img</code>要素に記述した<code>width</code>/<code>height</code>属性の値が使われてしまいます</li>
</ul>
<h3>いつから対応していたの？</h3>
<p>Chrome 90から対応していたことは<a href="https://chromestatus.com/feature/5737185317748736">明記されてる</a>んですが、Safariではいつからサポートされてるのか情報を見つけられませんでした。<a href="https://caniuse.com/mdn-api_htmlsourceelement_width">たぶん15から</a>のようなんですが&#8230;。あと、関係ないかもしれないですが、CSS aspect-ratioがSafariでサポートされたのは15からでした。Safari 14で確認できる方がいたら教えていただきたいです。</p>
<p>Firefoxでは<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1694741">バグは認識されてるっぽい</a>んですが修正はまだのようです。Firefoxでの実装時期も見つけられませんでした。</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2>参考資料</h2>
<p class="bm-10px">はっきりとした仕様やブラウザの対応状況などが書かれている資料を見つけられませんでしたが、参考になりそうな関連情報は以下のとおりです。</p>
<ul class="custom-recommend">
<li><a href="https://github.com/whatwg/html/pull/5894">機能追加のプルリク</a></li>
<li><a href="https://html.spec.whatwg.org/#the-source-element">Living Standardに書いてあるsource要素の説明</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-height">MDN Web Docsの説明</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement">HTMLSourceElement &#8211; Web APIs | MDN</a></li>
<li><a href="https://caniuse.com/mdn-api_htmlsourceelement_width">Can I use（HTMLSourceElement API width）</a></li>
</ul>
<h3>MDN Web Docsでの説明</h3>
<p>MDN Web Docsの<code>source</code>要素の<code>height</code>と<code>width</code>属性の説明は<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-height">こちらの英語版</a>には書いてあって、日本語版では翻訳がまだ追加されていない模様です。</p>
<blockquote>
<p class="bm-10px">height<br />
Allowed if the source element&#8217;s parent is a &lt;picture&gt; element, but not allowed if the source element&#8217;s parent is an &lt;audio&gt; or &lt;video&gt; element.</p>
<p>The intrinsic height of the image, in pixels. Must be an integer without a unit.</p>
</blockquote>
<p>意訳は以下の通り。</p>
<blockquote>
<p class="bm-10px">height<br />
source要素の親要素が&lt;picture&gt;要素の場合は許可されるが、&lt;audio&gt;や&lt;video&gt;要素が親要素の場合は許可されない。</p>
<p>ピクセル単位での画像の内在する高さ。単位なしの整数でなければならない。</p>
</blockquote>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2>参考記事</h2>
<p class="bm-10px">上述した参考資料のほかに以下の記事を参考にさせてもらいました。</p>
<ul class="custom-recommend">
<li><a href="https://www.mitsue.co.jp/knowledge/blog/frontend/202105/31_1512.html">source要素にwidth/height属性を指定して各画像のアスペクト比の維持とCLSの改善を図る | ミツエーリンクス</a></li>
<li><a href="https://jakearchibald.com/2022/img-aspect-ratio/#width--height-presentational-hints">Avoiding &lt;img&gt; layout shifts: aspect-ratio vs width &amp; height attributes &#8211; JakeArchibald.com</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2>さいごに</h2>
<p>2020年夏にレイアウトシフトを避けるために<code>img</code>要素には<code>width</code>と<code>height</code>属性を記述するのが良いという<a href="https://parashuto.com/rriver/development/img-size-attributes-are-back">記事を書いた</a>んですが、その時点では、<code>picture</code>と<code>source</code>要素を使って画面幅にあわせてアスペクト比が違う画像を読み込む場合はレイアウトシフトが起こってしまう状態でした。</p>
<p>少し時間はかかりましたが、いろいろな課題が解決されてきて、レスポンシブなサイトもいい感じに作れるようになってきましたねぇ（遠い目）。IE対応もなくなり、ユーザにさらに良い体験を届けるために時間を使えるようになりますからね<img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f4aa-1f3fc.png" alt="💪🏼" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>そろそろContainer Queriesあたりも試してみないとなぁ〜。</p>
<p>ということで、久々のブログ記事でした！</p>
<p>Until the next time, enjoy responsive coding!</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Local（macOS）のSSLのFirefoxの警告を回避する方法</title>
		<link>https://parashuto.com/rriver/tools/local-ssl-on-macos</link>
		
		<dc:creator><![CDATA[ryo]]></dc:creator>
		<pubDate>Wed, 23 Feb 2022 03:23:43 +0000</pubDate>
				<category><![CDATA[制作・効率化ツール]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[mkcert]]></category>
		<category><![CDATA[ssl]]></category>
		<guid isPermaLink="false">https://parashuto.com/rriver/?p=11722</guid>

					<description><![CDATA[WordPressのローカル環境構築ツール「Local 」のSSL設定がmacOSでうまくいかない場合の対処法を見つけたのでメモっておきます。 LocalのウェブサイトにSSL設定についての特設ページ（英語） があって、 [&#8230;]]]></description>
										<content:encoded><![CDATA[<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/local-ssl-on-macos.svg" alt="" width="1123" height="590" class="wp-image-11726" onerror="this.src='https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/local-ssl-on-macos.png'; this.onerror=null;"  role="img" />
<p>WordPressのローカル環境構築ツール「<a href="https://localwp.com/" target="_blank" rel="noopener noreferrer">Local <span class="icon-windows"></span></a>」のSSL設定がmacOSでうまくいかない場合の対処法を見つけたのでメモっておきます。</p>
<p>Localのウェブサイトに<a href="https://localwp.com/help-docs/ssl/managing-local-sites-ssl-certificate-in-macos/" target="_blank" rel="noopener noreferrer">SSL設定についての特設ページ（英語） <span class="icon-windows"></span></a> があって、macOS Big Sur以降での設定方法が書かれているんですが、この設定をしてもFirefoxでは「潜在的なセキュリティリスクあり」という警告が出てしまいます。</p>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/firefox-warning-on-insecure-ssl.png" alt="macOS版Firefox 97.0.1のセキュリティ警告画面のキャプチャ。「警告：潜在的なセキュリティリスクあり。Firefoxはセキュリティ上の潜在的な脅威を検知したため、blockme.localへの接続を中止しました。...」との説明があり「戻る（推奨）」ボタンと「詳細情報...」ボタンが表示されている" width="2092" height="1180" class="wp-image-11727" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/firefox-warning-on-insecure-ssl.png 2092w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/firefox-warning-on-insecure-ssl-300x169.png 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/firefox-warning-on-insecure-ssl-1024x578.png 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/firefox-warning-on-insecure-ssl-768x433.png 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/firefox-warning-on-insecure-ssl-1536x866.png 1536w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/firefox-warning-on-insecure-ssl-2048x1155.png 2048w" sizes="(max-width: 2092px) 100vw, 2092px" />
<p>以下は、この警告を回避するための設定方法です。</p>
<p>以前<a href="https://parashuto.com/rriver/tools/mkcert-for-local-ssl-dev-env">このブログで紹介したmkcertというコマンドラインツール</a>を使って証明書と鍵を発行して、それらをLocalで使う方法です。</p>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="env">環境</h2>
<p>以下の環境で設定と動作確認をしました。違うバージョンでは設定やフォルダの場所などが異なる場合があるのでご注意ください。</p>
<ul class="ul-deco">
<li>macOS Monterey 12.2.1 (Mac mini, M1 2020)</li>
<li>Local 6.3.0+5756</li>
<li>Firefox 97.0.1</li>
<li>mkcert 1.4.3 (Homebrewでインストール）</li>
<li>Localでドメインが「blockme.local」というサイトを作成</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="install-mkcert-ca">mkcertでローカル認証局（CA）をインストールする</h2>
<p>まずはmkcertというコマンドラインツールをインストールします。僕はHomebrewを使ってインストールしました。他にもMacPortsを使う方法が<a href="https://github.com/FiloSottile/mkcert" target="_blank" rel="noopener noreferrer">mkcertのGitHubページ <span class="icon-windows"></span></a> に書いてあります。</p>
<h3 id="install-mkcert">1. mkcertのインストール</h3>
<p class="bm-10px">mkcertと一緒にFirefox用にnssというツールもインストールします。</p>
<pre class="language-bash"><code>brew install mkcert
brew install nss</code></pre>
<h3 id="install-local-ca">2. ローカル認証局のインストール</h3>
<p>以下のコマンドで証明書と鍵の発行元となるローカル認証局（CA）をインストールします。</p>
<p class="bm-10px"><strong>重要：</strong> <a href="https://github.com/FiloSottile/mkcert" target="_blank" rel="noopener noreferrer">mkcertのGitHubページ <span class="icon-windows"></span></a> にも書いてありますが、このコマンドで作成された鍵ファイルは絶対にシェアしないようにしてください！</p>
<pre class="language-bash"><code>mkcert -install</code></pre>
<h2 id="generate-cert-and-key">証明書と鍵の作成</h2>
<p>Localでドメイン名を「blockme.local」に設定したサイト用の証明書と鍵を作成します。ドメイン名は自分が設定したものに変更してコマンドを実行してください。</p>
<h3 id="move-to-dir">1. 証明書を保存するディレクトリに移動</h3>
<p>Local 6.3.0で作成したサイトの証明書と鍵は<code>~/Library/Application Support/Local/run/router/nginx/certs</code>に保存されています。</p>
<p class="bm-10px">まずは、そのディレクトリに移動します。</p>
<pre class="language-bash"><code>cd ~/Library/Application Support/Local/run/router/nginx/certs</code></pre>
<h3 id="make-cert-and-key">2. 証明書と鍵を作成</h3>
<p class="bm-10px">以下のコマンドで、mkcertを使ってblockme.local用の証明書と鍵を作成します。「blockme.local」の部分は自分が設定したドメイン名に置き換えてコマンドを実行してください。</p>
<pre class="language-bash"><code>mkcert blockme.local</code></pre>
<p>これで、<code>blockme.local.pem</code>と<code>blockme.local-key.pem</code>という2つのファイルが作成されます。</p>
<p class="bm-10px">次に、これら2つのファイル名を変更します。</p>
<pre class="language-bash"><code>mv blockme.local-key.pem blockme.local.key
mv blockme.local.pem blockme.local.crt</code></pre>
<p>Localを再起動してサイトを開始（START SITE）すれば完了です！</p>
<p>これで、Firefoxで「https」のURLにアクセスしても警告が出ないようになります。もちろん、ChromeとSafariでも問題なくSSLで接続できます。</p>
<p>以上、macOS Monterey（Big Sur以降）で、WordPressのローカル開発環境ツール「Local」のSSL設定をする方法でした！</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>iPhone Xのバッテリーを交換してみた</title>
		<link>https://parashuto.com/rriver/gadget/iphone-x-battery-replacement</link>
		
		<dc:creator><![CDATA[ryo]]></dc:creator>
		<pubDate>Fri, 18 Feb 2022 06:33:51 +0000</pubDate>
				<category><![CDATA[IT・ガジェット]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[ガジェット]]></category>
		<guid isPermaLink="false">https://parashuto.com/rriver/?p=11701</guid>

					<description><![CDATA[テスト機として使っているiPhone Xのバッテリーがすぐに赤表示になるようになったので、自分でバッテリーを交換してみました。僕のiPhone Xは保証対象外なのでApple Storeでは8,140円で交換してくれる  [&#8230;]]]></description>
										<content:encoded><![CDATA[<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-yourself.svg" alt="" width="1123" height="590" class="wp-image-11714" onerror="this.src='https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-yourself.png'; this.onerror=null;" role="img" />
<p>テスト機として使っているiPhone Xのバッテリーがすぐに赤表示になるようになったので、自分でバッテリーを交換してみました。僕のiPhone Xは保証対象外なので<a href="https://support.apple.com/ja-jp/iphone/repair/service/battery-power" target="_blank" rel="noopener noreferrer">Apple Storeでは8,140円で交換してくれる<span class="icon-windows"></span></a> ので高くはないんですが。一度、自分でiPhoneを分解してみたいなぁと思っていたので、<a href="https://amzn.to/34H0MO0" target="_blank" rel="noopener noreferrer">Amazon.co.jpで探した3,380円の交換キット <span class="icon-windows"></span></a> でやってみました。</p>
<p>バッテリー固定用の両面テープをはがすのに苦労しましたが、キットに含まれるツールと説明書がしっかりしていて比較的スムーズに交換できました。大まかな流れを<a href="https://jp.ifixit.com/Guide/iPhone+X+%E3%81%AE%E3%83%90%E3%83%83%E3%83%86%E3%83%AA%E3%83%BC%E3%81%AE%E4%BA%A4%E6%8F%9B/103390" target="_blank" rel="noopener noreferrer">iFixitのビデオ <span class="icon-windows"></span></a> などで確認してから作業するのをお勧めします。</p>
<p>以下、かなりざっくりですが交換した際の写真を載せておきます。素人でもできたぞ！という証拠&#8230;というか&#8230;笑</p>
</div>
</div>
</div>
<div class="c-dark">
<div class="content dark">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<p>こんな感じの箱に入って送られてきます</p>
<img decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-01.jpg" alt="DIGIFORCEのiPhone X交換用バッテリーの箱" width="1600" height="1200" class="wp-image-11706" loading="lazy" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-01.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-01-300x225.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-01-1024x768.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-01-768x576.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-01-1536x1152.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>キットには交換用バッテリーと必要なツールと交換手順の説明書がついてきます。説明書に従って作業を進めれば、こういう作業にあまり慣れていない自分でも無事にバッテリーを交換できました。</p>
<img decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-02.jpg" alt="交換キットに入っているバッテリー、ツールや説明書などの写真" width="1600" height="1200" class="wp-image-11707" loading="lazy" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-02.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-02-300x225.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-02-1024x768.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-02-768x576.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-02-1536x1152.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>ネジを外して水色のギターピックのようなツールを使ってディスプレーをこじ開けると、中身はこんな感じになってます（下の写真）。交換キットには本体を開けた状態に保つためにボトルにくくりつける輪ゴムまで入っています！「UXがしっかり考えられてるなぁ」と、心底感心しました。笑</p>
<img decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-03.jpg" alt="iPhone Xを開いた状態の写真" width="1600" height="1200" class="wp-image-11708" loading="lazy" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-03.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-03-300x225.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-03-1024x768.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-03-768x576.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-03-1536x1152.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>ディスプレーとバッテリーのコネクタを外した状態（下の写真）。ここまでの作業は結構スムーズに行きました。</p>
<img decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-04.jpg" alt="" width="1600" height="1200" class="wp-image-11709" loading="lazy" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-04.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-04-300x225.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-04-1024x768.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-04-768x576.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-04-1536x1152.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>下の写真のピロっとはみ出た白い部分（オレンジの線で囲われた部分）がバッテリーを固定する両面テープで、これをピンセットで巻き取って引っ張り出すのに苦労しました。写真の側は比較的大きめでピンセットを入れるスペースもあるので簡単だったんですが、反対側はピンセットを入れるスペースもなく、自分にとってはほとんど不可能に思えました。<a href="https://youtu.be/2GfBOlJEW10?t=85" target="_blank" rel="noopener noreferrer">iFixitのビデオ <span class="icon-windows"></span></a> ではうまくできてるんだえけどね&#8230;</p>
<img decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-05.jpg" alt="" width="1600" height="1200" class="wp-image-11710" loading="lazy" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-05.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-05-300x225.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-05-1024x768.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-05-768x576.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-05-1536x1152.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>新しいバッテリーを付属の両面テープで固定してディスプレーとバッテリーのコネクタを付け直した状態（下の写真）</p>
<img decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-06.jpg" alt="" width="1600" height="1200" class="wp-image-11711" loading="lazy" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-06.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-06-300x225.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-06-1024x768.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-06-768x576.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-06-1536x1152.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>テストで電源を入れてみたら無事に起動しました！良かった〜<img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f602.png" alt="😂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<img decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-07.jpg" alt="" width="1600" height="1200" class="wp-image-11712" loading="lazy" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-07.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-07-300x225.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-07-1024x768.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-07-768x576.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2022/02/replacing-iphone-x-battery-07-1536x1152.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<p>ということで、無事にiPhone Xのバッテリーを交換してバッテリーが生き返りました。新品のバッテリーだとやっぱり違いますね〜</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Safari 11でlinear-gradientが表示されない問題</title>
		<link>https://parashuto.com/rriver/development/safari-11-linear-gradient-problem</link>
		
		<dc:creator><![CDATA[ryo]]></dc:creator>
		<pubDate>Fri, 24 Sep 2021 01:57:55 +0000</pubDate>
				<category><![CDATA[ウェブ制作・運営ノウハウ]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[safari bugs]]></category>
		<guid isPermaLink="false">https://parashuto.com/rriver/?p=11666</guid>

					<description><![CDATA[Safari 11でlinear-gradientが表示されない問題に出くわしたのでメモっておきます。ググっても情報が出てこなかったので、同じ問題に出くわした方のお役に立てば幸いです。 対処法 以下のCSSのようにwhi [&#8230;]]]></description>
										<content:encoded><![CDATA[<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2021/09/safari11-linear-gradient-problem.svg" alt="" width="1123" height="590" class="wp-image-11673" onerror="this.src='https://parashuto.com/rriver/wp/wp-content/uploads/2021/09/safari11-linear-gradient-problem.png'; this.onerror=null;"  role="img" />
<p>Safari 11でlinear-gradientが表示されない問題に出くわしたのでメモっておきます。ググっても情報が出てこなかったので、同じ問題に出くわした方のお役に立てば幸いです。</p>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2>Safari 11ではDouble-position Color Stopsがサポートされていない</h2>
<p>linear-gradientには一つの色に複数の色経由点を指定する「Double-position color stops」という<a href="https://developer.mozilla.org/ja/docs/Web/CSS/gradient/linear-gradient()#gradient_with_multi-position_color_stops" target="_blank" rel="noopener noreferrer">書き方 <span class="icon-windows"></span></a> があります。以下の例では<code>white</code>を指定した部分に複数の色経由点（33%と66%）を指定しています。</p>
<pre class="language-css"><code>.gradient-multi-position {
  background: linear-gradient(to right, #002395 33%, white 33% 66%, #ed2939 66%);
}</code></pre>
<p>ところが、SafariではDouble-position color stopsのサポートが12.1からとのことで、この書き方だとSafari 11では何も表示されません（OH NO！<img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f631.png" alt="😱" class="wp-smiley" style="height: 1em; max-height: 1em;" />）。下のキャプチャ画像は<a href="https://www.browserstack.com/" target="_blank" rel="noopener noreferrer">Browserstack <span class="icon-windows"></span></a> を使ってSafari 11で表示した<a href="https://parashuto.com/playground/safari-bugs/bug-linear-gradient-multi-position.html" target="_blank" rel="noopener noreferrer">デモページ <span class="icon-windows"></span></a> なんですが、「Multi-position Color Stopを使用したlinear-gradient」の下のグラデーションが表示されていません。</p>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2021/09/safari11-linear-gradient-problem-demo.jpg" alt="Browserstackでテストした際のキャプチャ画像。Safari 11で見るとdouble-position color stopを使ったlinear-gradientが表示されない" width="1600" height="688" class="wp-image-11668" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2021/09/safari11-linear-gradient-problem-demo.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/09/safari11-linear-gradient-problem-demo-300x129.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/09/safari11-linear-gradient-problem-demo-1024x440.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/09/safari11-linear-gradient-problem-demo-768x330.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/09/safari11-linear-gradient-problem-demo-1536x660.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>本来であれば、その下にあるフランス国旗の縞と同じものが表示されるはずです。Safari 14やその他の最新版のFirefoxやChromeでは問題なく表示されます。</p>
<p class="text-center"><a href="https://parashuto.com/playground/safari-bugs/bug-linear-gradient-multi-position.html" class="btn-normal" target="_blank" rel="noopener noreferrer">デモはこちら <span class="icon-windows"></span></a></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2>対処法</h2>
<p>以下のCSSのように<code>white</code>の部分を2回書くことで解決しました。</p>
<pre class="language-css"><code>.gradient-multi-position {
  background: linear-gradient(to right, #002395 33%, white 33%, white 66%, #ed2939 66%);
}</code></pre>
<p>現場からは以上です！</p>
<h2>さいごにひとこと</h2>
<p>linear-gradientでダブルポジションを指定する書き方はコードを短くできるしシンプルで良いと思ったんですが、思わぬところに落とし穴がありました。</p>
<p>Safari 11はmacOS SierraとOS X El Capitan向けに<a href="https://www.macrumors.com/2017/09/19/safari-11-released-macos-sierra-os-x-el-capitan/" target="_blank" rel="noopener noreferrer">2017年9月17日にリリース <span class="icon-windows"></span></a> され、最終のアップデート（11.1.2）が2018年7月9日に行われています（<a href="https://en.wikipedia.org/wiki/Safari_version_history" target="_blank" rel="noopener noreferrer">Safariのバージョン履歴参照 <span class="icon-windows"></span></a> ）。</p>
<p>これをサポート対象とするかはプロジェクトごとの判断になると思いますが&#8230;サポートが必要な場合は要注意ですね。プロジェクトの開始時からサポート対象とするブラウザをクライアントとしっかり確認して、必要に応じてテスト環境の準備やそのための費用をしっかり見積もっておくことも忘れずにやっておきたいですね（自戒&#8230;）。</p>
<p>今後、Safariはますます手強い相手になってきそーだなー<img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f4a6.png" alt="💦" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ウェブデザインにおけるline-heightについて</title>
		<link>https://parashuto.com/rriver/development/line-height-in-web-design</link>
		
		<dc:creator><![CDATA[ryo]]></dc:creator>
		<pubDate>Fri, 23 Apr 2021 09:45:50 +0000</pubDate>
				<category><![CDATA[ウェブ制作・運営ノウハウ]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[line-height]]></category>
		<guid isPermaLink="false">https://parashuto.com/rriver/?p=11598</guid>

					<description><![CDATA[ウェブデザインにおけるline-heightってけっこう曲者で、CSSを理解してデザインしないと「空き」の設計が破綻したりコーディングで苦労することになります。FigmaやAdobe XD、Affinity Design [&#8230;]]]></description>
										<content:encoded><![CDATA[<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/css-line-height.svg" alt="" width="1123" height="590" class="wp-image-11616" onerror="this.src='https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/css-line-height.png'; this.onerror=null;"  role="img" />
<p>ウェブデザインにおける<code>line-height</code>ってけっこう曲者で、CSSを理解してデザインしないと「空き」の設計が破綻したりコーディングで苦労することになります。FigmaやAdobe XD、Affinity Designerなどのグラフィックアプリでline heightの扱いが異なるので、使うツールの挙動を理解するのも大切です。</p>
<p>ということで、今回はCSSの<code>line-height</code>についてまとめてみます。</p>
<p>実は調べれば調べるほど奥が深いCSSの<code>line-height</code>の世界ですが、まずは基礎からまとめていこうと思います。</p>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2>目次</h2>
<p>以下はページ内のセクションへのリンクです。</p>
<ul class="custom-recommend">
<li><a href="#css-line-height">CSSのline-heightでは文字の上下にスペースができる</a></li>
<li><a href="#half-leading">ウェブで使われるハーフ・レディングとは</a></li>
<li><a href="#difference-in-print-and-web">印刷とウェブにおけるレディングの違い</a></li>
<li><a href="#line-height-in-various-tools">デザインツールでのline heightの扱いの違い</a></li>
<li><a href="#coding-method">上下のハーフ・レディングを帳消しにするコーディング</a></li>
<li><a href="#line-height-normal">line-heightのnormalとは</a></li>
<li><a href="#line-height-100-percent">line-heightの100%ってなんの100%？</a></li>
<li><a href="#unitless-line-height">line-heightの値は単位なしで記述するのがいい</a></li>
<li><a href="#line-height-and-accessibility">line-heightとアクセシビリティ</a></li>
<li><a href="#readable-line-height">読みやすいline-heightについて考える</a></li>
<li><a href="#lastly">さいごにひとこと</a></li>
<li><a href="#references">参考情報</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="css-line-height">CSSのline-heightでは文字の上下にスペースができる</h2>
<p>CSSで<code>line-height</code>を指定すると文字の上下にスペースができます。</p>
<p>たとえば、文字サイズを<code>16px</code>、行の高さを<code>32px</code>に指定すると、(32 &#8211; 16) ÷ 2 = 8で、上下にそれぞれ<code>8px</code>のスペースができます。</p>
<pre class="language-css"><code>p {
  font-size: 16px;
  line-height: 32px;
}</code></pre>
<p>下の図のような感じですね（わかりやすいように倍の大きさにしてます）。</p>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/how-css-line-height-is-added.png" alt="CSS line-heightの仕組みを表した図" width="1600" height="440" class="wp-image-11619" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/how-css-line-height-is-added.png 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/how-css-line-height-is-added-300x83.png 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/how-css-line-height-is-added-1024x282.png 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/how-css-line-height-is-added-768x211.png 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/how-css-line-height-is-added-1536x422.png 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="half-leading">ウェブで使われるハーフ・レディングとは</h2>
<p><a href="https://www.w3.org/TR/CSS1/#the-height-of-lines" target="_blank" rel="noopener noreferrer">CSSの定義 <span class="icon-windows"></span></a> では文字サイズと行の高さの差をleading（レディング）と呼び、その半分をhalf-leading（ハーフ・レディング）と呼びます。CSSで<code>line-height</code>を指定すると、そのハーフ・レディングが文字の上と下に追加される仕組みなんですね。</p>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/css-half-leading.png" alt="CSS half-leadingを表した図" width="1600" height="440" class="wp-image-11620" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/css-half-leading.png 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/css-half-leading-300x83.png 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/css-half-leading-1024x282.png 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/css-half-leading-768x211.png 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/css-half-leading-1536x422.png 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>ちなみに、レディングは活版印刷で行間にスペースを入れる際に鉛（lead = レッドと発音する）のプレートを使っていたことに由来していて発音は「リーディング」ではなくて「レディング」です。</p>
<p>そして、このハーフ・レディングがマイナスの数値になると行が重なります。下の例の場合、(2 &#8211; 16) ÷ 2 = -7になるので、行が重なります。</p>
<pre class="language-css"><code>p {
  font-size: 16px;
  line-height: 2px;
}</code></pre>
<p>意図的にすることはあまりないと思いますが挙動は知っておくと良いですね。</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="difference-in-print-and-web">印刷とウェブにおけるレディングの違い</h2>
<p>上述した「レディング」の定義はウェブ特有のもので、タイポグラフィや印刷の世界では、文字のベースラインから次の行の文字のベースラインまでの距離のことをレディングと呼びます。</p>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/leading-in-typography-term.png" alt="タイポグラフィにおけるleadingを表した図" width="1600" height="440" class="wp-image-11621" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/leading-in-typography-term.png 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/leading-in-typography-term-300x83.png 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/leading-in-typography-term-1024x282.png 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/leading-in-typography-term-768x211.png 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/04/leading-in-typography-term-1536x422.png 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>そして、レディングは「line height」や「line spacing」と同じ意味で使われたりもするそうで（厳密には違うはずだけど&#8230;）。なんだか、ややこしいですね。</p>
<p>レディングやline heightの話をする際は、文脈によって定義が異なる場合があるので、厳密にどの数値を意味して使っているのか確認したほうが安心です。</p>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="line-height-in-various-tools">デザインツールでのline heightの扱いの違い</h2>
<p>FigmaやAdobe XD、Affinity DesignerやAdobe Illustratorなど、デザインツールによってline heightの扱いは異なります。CSS <code>line-height</code>と違うことも多いので注意が必要です。</p>
<p>CSSの<code>line-height</code>の仕組みとデザインツールのline heightの扱いの違いを理解しているとデザインの精度が上がって実装の効率化にもつながります。デザインと実装（コーディング）は分業することが多いと思うので、デザインの引き渡しの際のチェックポイントとして<code>line-height</code>についてしっかりコミュニケーションしておくと、スムーズに実装を進められるかもしれませんね。</p>
<p>僕は1人チームでデザインもコーディングもしますが、コーディングの際にデザインで吸収できなかった細かい空きの設計を調整したり整理し直すこともあります。</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="coding-method">上下のハーフ・レディングを帳消しにするコーディング</h2>
<p>後述する問題があるので注意が必要ですが、CSSの<code>line-height</code>とデザインツールのline heightの違いを比較的シンプルに調整するコーディングの方法があります。</p>
<p>それはネガティブ・マージンを使ってCSSの<code>line-height</code>によって生じるテキストブロックの上下のハーフ・レディングを帳消しにする方法です。</p>
<p>たとえば、文字サイズが<code>16px</code>、行の高さが<code>24px</code>の段落の場合、上下に<code>-4px</code>のマージンを追加すれば、段落の上下のハーフ・レディングを帳消しにできます。</p>
<pre class="language-css"><code>p {
  font-size: 16px;
  line-height: 24px;
  margin: -4px 0;
}</code></pre>
<p>上の例のように<code>4px</code>程度なら違和感がないかもしれません。でも、たとえばフォントサイズが<code>48px</code>の見出しで<code>1.5</code>の<code>line-height</code>だと、上下に<code>12px</code>のハーフ・レディングができるので、他の要素との空きのバランスがけっこう変わってきます。</p>
<p>これを帳消しにしておくことで、要素間の空きの指定を比較的シンプルに実装できます。</p>
<h3>文字の上下が隠れてしまうこともあるので要注意</h3>
<p><code>line-height</code>と上下のネガティブ・マージンの計算は間違っていないのに、最初の行と最後の行の文字の上下が隠れてしまう場合があるので要注意です。特に欧文書体の場合は<code>font-size</code>で指定したサイズをフォント自体がはみ出している場合があるので要注意です。この手法を使うときはしっかり検証して数値を調整する必要があることを覚えておいた方が良いです。</p>
<p>※CSSの仕様とフォント・メトリクスによるものだと思われますが、厳密な原因は調べられていません。</p>
<h3 id="negative-margin-tools">ネガティブ・マージンを自動計算してくれるツール</h3>
<p>フォントにあったネガティブ・マージンを計算してCSSやSCSSのMixinを書き出してくれるツールを見つけました。参考までにリンクしておきます。</p>
<ul class="custom-recommend">
<li><a href="http://text-crop.eightshapes.com/" target="_blank" rel="noopener noreferrer">Text Crop <span class="icon-windows"></span></a></li>
<li><a href="https://seek-oss.github.io/capsize/" target="_blank" rel="noopener noreferrer">Capsize <span class="icon-windows"></span></a></li>
</ul>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="line-height-normal">line-heightのnormalとは</h2>
<p><code>line-height</code>のデフォルトは<code>normal</code>という値なんですが、これはユーザエージェントに依存する値だそうです。<a href="https://developer.mozilla.org/ja/docs/Web/CSS/line-height" target="_blank" rel="noopener noreferrer">MDN Web Docsのline-heightの説明 <span class="icon-windows"></span></a> は以下のようになっています。</p>
<blockquote>
<p>ユーザーエージェントに依存します。デスクトップブラウザー (Firefox を含む) は 要素の font-family によって決まる、おおよそ 1.2 という既定値を使います。</p>
</blockquote>
<p>おぉ、なんとも曖昧な&#8230;感じではあるのですが、CSSで指定したフォント（font-family）に設定されたメトリクス（フォント・パーツのサイズ）に従うということのようです。「おおよそ1.2&#8230;」というのは、一般的にフォント・メトリクスによるline heightがおおよそ1.2だということを意味するのでしょうか。ちょっとわかりづらいですね&#8230;</p>
<p><code>font-family</code>に依存するということは、フォント編集アプリなどを使ってメトリクスを見るか実際にHTML/CSSで実装してブラウザで確認しないとわからないということです。和文フォントではそこまで数値の振れ幅は大きくない印象ですが、2017年2月に書かれた<a href="https://iamvdo.me/en/blog/css-font-metrics-line-height-and-vertical-align" target="_blank" rel="noopener noreferrer">Vincent De Oliveiraさんのこの記事 <span class="icon-windows"></span></a> によると、Google Fontsでインストールした1059のフォントのうち95%は<code>line-height</code>は1より大きい数値で、0.618〜3.378だとのことで、欧文では振れ幅が結構大きいようです。</p>
<p>結局、各OS・ブラウザでの検証は欠かせないですね。</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="line-height-100-percent">line-heightの100%ってなんの100%？</h2>
<p>これは<code>font-size</code>の100%です。</p>
<p>デザインツールによってはフォント自体に設定されたline heightの100%を意味する場合もあるので注意が必要です。たとえば、<a href="https://www.figma.com/blog/line-height-changes/#_3-font-size-percentage" target="_blank" rel="noopener noreferrer">Figmaの以前のバージョンではそのような扱いだった <span class="icon-windows"></span></a> そうです。</p>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="unitless-line-height">line-heightの値は単位なしで記述するのがいい</h2>
<p><code>line-height</code>の指定には単位なしの数値を使うことが推奨されています。</p>
<pre class="language-css"><code>p { line-height: 1.5; }</code></pre>
<p>というのも、親要素にフォントサイズが指定されていて<code>line-height</code>に<code>%</code>や<code>em</code>を使った値を指定すると、<code>font-size</code>から<code>line-height</code>を計算した値が継承されるからです。これが直感的じゃないんですね。</p>
<p>どういうことかというと、たとえば、以下のように<code>div</code>の中に<code>h1</code>が入っているHTMLがあるとします。</p>
<pre class="language-html"><code>&lt;div class="box">
  &lt;h1>ここの行間が予期せぬ値に！&lt;/h1>
&lt;/div></code></pre>
<p>このHTMLに対して以下のCSSを指定すると<code>h1</code>の<code>line-height</code>はいくつになると思いますか？</p>
<pre class="language-css"><code>.box {
  font-size: 16px;
  line-height: 150%;
}
h1 {
  font-size: 32px;
}</code></pre>
<p>32px x 150% = 48pxになると思いそうですよね？</p>
<p>ところが実際は24px（=16px x 150%）が<code>h1</code>のスタイルに継承されます。</p>
<p>これは<code>em</code>を使った場合でも同じですが、単位なしの数値を指定すると、その数値がそのまま<code>h1</code>に継承されるので、<code>h1</code>の<code>line-height</code>は48px（32px x 1.5）になります。なんで？と疑問に思いますが、それが仕様なんですね。はい。</p>
<p>上記の例について「こんなCSSの書き方するかなぁ？」と、若干懐疑的な自分ではありますが、未知の問題は避けたいので<code>line-height</code>は単位なしの数値で指定するのがよさそうです。逆に単位なしの数値の指定のみで困ることも想像できません（あったらぜひ教えて欲しいです）。</p>
<h3>ブラウザでの文字サイズ変更にも対応できる</h3>
<p><code>line-height</code>に単位なしの数値を使うと文字サイズにあわせた行間の指定になるので、ユーザがブラウザの設定で文字サイズを変更した場合、それにあわせて行間も変わります。<code>line-height</code>を<code>px</code>や<code>em</code>、<code>rem</code>で指定するメリットは特になさそうなので、僕は単位なしの数値で記述しています。</p>
<p>あと、レスポンシブで文字サイズを可変させるデザインだと、行間が文字サイズと連動していた方がCSSが書きやすいです。</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="line-height-and-accessibility">line-heightとアクセシビリティ</h2>
<p>Webアクセシビリティのガイドライン「<a href="https://www.w3.org/TR/WCAG21/" target="_blank" rel="noopener noreferrer">WCAG（Web Content Accessibility Guideline） 2.1 <span class="icon-windows"></span></a>」では、達成基準の1つの「1.4.8 視覚的提示」で以下を推奨しています。</p>
<blockquote>
<p>段落中の行送りは、少なくとも 1.5 文字分ある。そして、段落の間隔は、その行送りの少なくとも 1.5 倍以上ある。</p>
<p><cite class="bm-none">&ndash; <a href="https://waic.jp/docs/WCAG21/#visual-presentation" target="_blank" rel="noopener noreferrer">Web Content Accessibility Guidelines (WCAG) 2.1の日本語訳 <span class="icon-windows"></span></a> より引用</cite></p>
</blockquote>
<p>認知障害を持つ方にとって、行間が狭すぎると文字を追うのが難しくなる可能性があるそうです。たとえば、以下のようなCSSをベースに考えると良いかもしれません。</p>
<pre class="language-css"><code>p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 36px;
}

/* remで書く場合 */
html { font-size: 16px; }
p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 2.25rem;
}</code></pre>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="readable-line-height">読みやすいline-heightについて考える</h2>
<p>欧文と和文では読みやすい<code>line-height</code>は若干違いますし、フォントの種類や文字サイズ、行の長さによっても異なります。あくまで個人的な意見ですが、僕が考える読みやすい<code>line-height</code>の目安をご紹介します。</p>
<h3>本文のline-height</h3>
<ul class="ul-deco">
<li>和文は1.8 &#8211; 2.0</li>
<li>欧文は1.5 &#8211; 1.8</li>
<li>和文は欧文より若干広めの行間を設定するのが良い</li>
<li>欧文はフォントによって行間の余白部分の大きさが変わるので要注意</li>
</ul>
<p>参考までに、ウェブの欧文タイポグラフィについて詳しい本「<a href="https://amzn.to/3awYDEa" target="_blank" rel="noopener noreferrer">ウェブタイポグラフィ &mdash; 美しく効果的でレスポンシブな欧文タイポグラフィの設計 <span class="icon-windows"></span></a>」では、「1.4に設定するところからスタート」することを勧めています（p46）。和文は「1.7程度から始めると良いでしょう（p200）」と書いています。</li>
<h3>本文のline-heightの例</h3>
<ul class="ul-deco">
<li>和文の例として、<a href="https://www.axismag.jp/" target="_blank" rel="noopener noreferrer">AXIS <span class="icon-windows"></span></a> や<a href="https://casabrutus.com/" target="_blank" rel="noopener noreferrer">Casa BRUTUS <span class="icon-windows"></span></a> のようなデザイン系雑誌のウェブサイトの本文は2.0相当の<code>line-height</code>を使っています。<a href="https://note.com/" target="_blank" rel="noopener noreferrer">note <span class="icon-windows"></span></a> では1.875で、<a href="https://zenn.dev/" target="_blank" rel="noopener noreferrer">Zenn <span class="icon-windows"></span></a> や<a href="https://qiita.com" target="_blank" rel="noopener noreferrer">Qiita <span class="icon-windows"></span></a> は1.9にしてますね。</li>
<li>欧文の例として、<a href="https://www.figma.com/blog/line-height-changes/" target="_blank" rel="noopener noreferrer">FigmaのBlog <span class="icon-windows"></span></a> の本文は1.5、<a href="https://alistapart.com/article/responsive-web-design/" target="_blank" rel="noopener noreferrer">A List Apartの記事 <span class="icon-windows"></span></a> の本文は1.7を使っています。<a href="https://web.dev/" target="_blank" rel="noopener noreferrer">web.dev <span class="icon-windows"></span></a> では1.7777777778ですね。</li>
<li>ニュースサイトでは、<a href="https://www.nytimes.com/" target="_blank" rel="noopener noreferrer">New York Times <span class="icon-windows"></span></a> が1.5相当、<a href="https://www.bbc.com/" target="_blank" rel="noopener noreferrer">BBC <span class="icon-windows"></span></a> が1.375相当、<a href="https://www.nikkei.com" target="_blank" rel="noopener noreferrer">日経新聞 <span class="icon-windows"></span></a> が1.8、<a href="https://www.asahi.com/" target="_blank" rel="noopener noreferrer">朝日新聞 <span class="icon-windows"></span></a> が1.6に設定しています。</li>
</ul>
<h3>レスポンシブなline-heightの調整は必要？</h3>
<p>個人的に端末や画面サイズによって<code>line-height</code>を変える必要はないと思っています。</p>
<p>上で紹介したウェブサイトでは、web.dev以外は端末に関係なく同じ<code>line-height</code>を使っているようですね。web.devの場合、横幅が<code>320px</code>以下のスクリーンで文字サイズを<code>18px</code>から<code>15px</code>に、行間を<code>1.7777777778</code>から<code>1.8666666667</code>に調整しています。</p>
<p>より小さいスマホ画面では、文字を小さくして表示できる文字数を増やしつつ、可読性を担保するために行間のスペースを多めにとっているのが読みとれます。面白いですね。</p>
<h3>見出しのline-height</h3>
<p>文字サイズが大きい見出しでは、本文と同じ<code>line-height</code>だと行間のスペースが空きすぎて逆に読みにくくなってしまいます。文字の大きさやフォントによるのでレイアウトをして確認することをお勧めしますが、僕の場合、欧文ば1.2〜1.3程度、和文は1.4〜1.5程度を使っています。</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="lastly">さいごにひとこと</h2>
<p>Line height（行の高さ）は、文章の読みやすさを変えるだけでなくページが醸し出す雰囲気にも影響を与えます。<code>line-height</code>のデザインはすごく基本的なことですが、情報の伝達を目的とするウェブサイトでは、すごく大切ですよね。ユーザにウェブサイトを気持ちよく使ってもらうための第一歩として<code>line-height</code>もしっかりデザインしていきたいですね。</p>
<h2 id="references">参考情報</h2>
<h3>ウェブサイト</h3>
<ul class="custom-recommend">
<li><a href="https://www.figma.com/blog/line-height-changes/" target="_blank" rel="noopener noreferrer">Getting to the bottom of line height in Figma <span class="icon-windows"></span></a></li>
<li><a href="https://iamvdo.me/en/blog/css-font-metrics-line-height-and-vertical-align" target="_blank" rel="noopener noreferrer">Deep dive CSS: font metrics, line-height and vertical-align <span class="icon-windows"></span></a></li>
<li><a href="http://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/" target="_blank" rel="noopener noreferrer">Unitless line-heights <span class="icon-windows"></span></a></li>
<li><a href="http://text-crop.eightshapes.com/" target="_blank" rel="noopener noreferrer">Text Crop <span class="icon-windows"></span></a></li>
<li><a href="https://seek-oss.github.io/capsize/" target="_blank" rel="noopener noreferrer">Capsize <span class="icon-windows"></span></a></li>
<li><a href="https://material.io/archive/guidelines/style/typography.html#typography-styles" target="_blank" rel="noopener noreferrer">Material Design Typography Style <span class="icon-windows"></span></a></li>
</ul>
<h3>参考図書</h3>
<ul class="custom-recommend">
<li><a href="https://amzn.to/3awYDEa" target="_blank" rel="noopener noreferrer">ウェブタイポグラフィ &mdash; 美しく効果的でレスポンシブな欧文タイポグラフィの設計 <span class="icon-windows"></span></a></li>
<li><a href="https://amzn.to/3gwtioI" target="_blank" rel="noopener noreferrer">オンスクリーン タイポグラフィ &mdash; 事例と論説から考えるウェブの文字表現 <span class="icon-windows"></span></a></li>
<li><a href="https://amzn.to/32D8tQu" target="_blank" rel="noopener noreferrer">欧文書体 &mdash; その背景と使い方 <span class="icon-windows"></span></a></li>
<li><a href="https://amzn.to/3tLkpeT" target="_blank" rel="noopener noreferrer">欧文書体のつくり方 美しいカーブと心地よい字並びのために <span class="icon-windows"></span></a>
<li><a href="https://amzn.to/2RZalkF" target="_blank" rel="noopener noreferrer">欧文組版: タイポグラフィの基礎とマナー <span class="icon-windows"></span></a></li>
<li><a href="https://amzn.to/2QNPAYe" target="_blank" rel="noopener noreferrer">日本語組版入門: その構造とアルゴリズム <span class="icon-windows"></span></a></li>
<li><a href="https://amzn.to/2TRD5N1" target="_blank" rel="noopener noreferrer">Designing Type <span class="icon-windows"></span></a></li>
<li><a href="https://amzn.to/34YgL6B" target="_blank" rel="noopener noreferrer">デザインワークにすぐ役立つ欧文書体のルール <span class="icon-windows"></span></a></li>
</ul>
<div class="box-reference">
<h2>更新情報</h2>
<ul>
<li><a href="#references">参考情報の参考図書一覧に「Designing Type」とその邦訳版の「デザインワークにすぐ役立つ欧文書体のルール」へのリンクを追加しました。僕は先日英語版を購入して読み進めてるところです（2021年6月8日）</a></li>
<li><a href="#references">参考情報のウェブサイト一覧にMaterial Designのタイポグラフィ・スタイルのセクションへのリンクを追加しました（2021年6月8日）</a></li>
<li><a href="#negative-margin-tools">ネガティブ・マージンを自動計算してくれるツール</a>の情報を追加しました（2021年4月28日）</li>
<li><a href="#coding-method">上下のハーフ・レディングを帳消しにするコーディング</a>の部分で上下の文字が欠けてしまう原因を更新しました（2021年4月27日）</li>
<li><a href="#line-height-normal">line-height: normalについての説明</a>を修正しました（2021年4月26日）</li>
</ul>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ローカル開発環境にSSLを設定できるmkcertがめちゃくちゃ便利だった</title>
		<link>https://parashuto.com/rriver/tools/mkcert-for-local-ssl-dev-env</link>
		
		<dc:creator><![CDATA[ryo]]></dc:creator>
		<pubDate>Sun, 07 Mar 2021 05:09:12 +0000</pubDate>
				<category><![CDATA[制作・効率化ツール]]></category>
		<category><![CDATA[MAMP]]></category>
		<guid isPermaLink="false">https://parashuto.com/rriver/?p=11570</guid>

					<description><![CDATA[以前、MAMPでSSLを設定した際には手間のかかるプロセスを経てサーバー証明書と鍵を作成したんですが、mkcertというローカル環境に認証局（CA）をインストールするコマンドラインツールを使うと一瞬で作成できました。 鍵 [&#8230;]]]></description>
										<content:encoded><![CDATA[<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2021/03/mkcert-for-local-dev-env-ssl.svg" alt="" width="1123" height="590" class="wp-image-11580" onerror="this.src='https://parashuto.com/rriver/wp/wp-content/uploads/2021/03/mkcert-for-local-dev-env-ssl.png'; this.onerror=null;"  role="img" />
<p>以前、<a href="https://parashuto.com/rriver/tools/https-localhost-ssl-with-mac-mamp">MAMPでSSLを設定</a>した際には手間のかかるプロセスを経てサーバー証明書と鍵を作成したんですが、mkcertというローカル環境に認証局（CA）をインストールするコマンドラインツールを使うと一瞬で作成できました。</p>
<p>鍵をしっかり管理しないとセキュリティリスクになるので注意が必要ですが、ローカル開発環境でSSLを手軽に設定できるめちゃくちゃありがたいツールです。</p>
<p>以下、mkcertでサーバー証明書と鍵を作って、MAMP 6.3のApache 2.4に設定するところまでをご紹介します。</p>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2>Macのバージョンなど</h2>
<p>以下の環境で設定、動作確認を行いました。</p>
<ul class="ul-deco">
<li>macOS Big Sur 11.2.2（Mac mini, M1 2020）</li>
<li>MAMP 6.3</li>
<li>mkcert 1.4.3（Homebrew 3.0.4でインストール）</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="creating-crt-and-key">証明書と鍵の作成の設定</h2>
<h3>1. mkcertのインストール</h3>
<p class="bm-none">Homebrewを使って<a href="https://github.com/FiloSottile/mkcert" target="_blank" rel="noopener noreferrer">mkcert <span class="icon-windows"></span></a> をインストールします。※僕の場合Homebrewを使ってインストールしましたが、mkcertの<a href="https://github.com/FiloSottile/mkcert" target="_blank" rel="noopener noreferrer">GitHubページ <span class="icon-windows"></span></a> に他のインストール方法も書いてあります。</p>
<pre class="language-bash"><code>brew install mkcert</code></pre>
<p class="bm-none">僕はFirefoxをメインに使っているのでnssというツールもインストールしました。</p>
<pre class="language-bash"><code>brew install nss</code></pre>
<h3>2. ローカル認証局（CA）のインストール</h3>
<p class="bm-none">インストールしたmkcertを使って、以下のコマンドでローカル認証局（CA）を設定します。</p>
<pre class="language-bash"><code>mkcert -install</code></pre>
<h3>3. 証明書と鍵の作成</h3>
<p class="bm-none">次に証明書と鍵を作成します。まずは、証明書と鍵を保存するディレクトリに移動します。僕の場合はMAMPのApache用に以下のディレクトリにしました。</p>
<pre class="language-bash"><code>cd /Applications/MAMP/conf/apache/keys/</code></pre>
<p class="bm-none">以下のコマンドで<code>localhost</code>用の証明書と鍵を作成します。以下のコマンドを打つと<code>localhost.pem</code>と<code>localhost-key.pem</code>というファイルが作成されます。</p>
<pre class="language-bash"><code>mkcert localhost</code></pre>
<p>これでローカル認証局の設定と証明書と鍵の作成が完了です。めちゃくちゃ簡単ですね！</p>
<p class="bm-none">余談になりますが<code>mkcert -install</code>で作成された鍵ファイルのありかは以下のコマンドで確認できます。セキュリティに関わるのでしっかり管理しましょう！</p>
<pre class="language-bash"><code>mkcert -CAROOT</code></pre>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="mamp-settings">MAMPの設定（v6.3時点）</h2>
<h3>1. ポートの設定</h3>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2021/03/mamp-6-3-preferences-ports.png" alt="MAMP 6.3のPreferences画面のPortsタブのキャプチャ。Apache Portは80、MySQL Portは3306に変更されている" width="1072" height="868" class="wp-image-11573" style="max-width: 536px;" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2021/03/mamp-6-3-preferences-ports.png 1072w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/03/mamp-6-3-preferences-ports-300x243.png 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/03/mamp-6-3-preferences-ports-1024x829.png 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/03/mamp-6-3-preferences-ports-768x622.png 768w" sizes="(max-width: 1072px) 100vw, 1072px" />
<p>MAMPのPreferencesのPortsタブでApacheとMySQLのPort番号を変更します。上の画像にある「80 &#038; 3306」のボタンをクリックすると両方とも一気に変更されます。</p>
<h3>2. httpd.confの設定変更</h3>
<p class="bm-none"><code>/Applications/MAMP/conf/apache/</code>の中にある<code>httpd.conf</code>ファイルのSSL設定がコメントアウトされてるので「#」を削除して有効にします。<code>httpd.conf</code>の設定がおかしくなるとサーバーが動かなくなるので、変更前にバックアップを取っておくことをお勧めします（MAMPの場合は<code>/Applications/MAMP/conf/apache/original</code>にオリジナル・ファイルが入っています）。</p>
<pre class="language-bash"><code># Secure (SSL/TLS) connections
#Include /Applications/MAMP/conf/apache/extra/httpd-ssl.conf</code></pre>
<p class="bm-none">以下に変更：</p>
<pre class="language-bash"><code># Secure (SSL/TLS) connections
Include /Applications/MAMP/conf/apache/extra/httpd-ssl.conf</code></pre>
<h3>3. httpd-ssl.confの設定変更</h3>
<p class="bm-none"><code>/Applications/MAMP/conf/apache/extra/</code>にある<code>httpd-ssl.conf</code>ファイルの以下の部分を変更します。注意）MAMP 5.xを使っている場合はこの変更の必要はありません。</p>
<pre class="language-bash"><code>#   Semaphore:
#   Configure the path to the mutual exclusion semaphore the
#   SSL engine uses internally for inter-process synchronization.
SSLMutex  &quot;file:/Applications/MAMP/Library/logs/ssl_mutex&quot;</code></pre>
<p class="bm-none">以下に変更：</p>
<pre class="language-bash"><code>#   Semaphore:
#   Configure the path to the mutual exclusion semaphore the
#   SSL engine uses internally for inter-process synchronization.
Mutex default</code></pre>
<p>さらに、httpd-ssl.confの以下の4つの項目を変更します。</p>
<ol>
<li>DocumentRoot</li>
<li>ServerName</li>
<li>SSLCertificateFile</li>
<li>SSLCertificateKeyFile</li>
</ol>
<p class="bm-none">以下のDocumentRootとServerNameを変更します。</p>
<pre class="language-bash"><code>##
## SSL Virtual Host Context
##

&lt;VirtualHost _default_:443&gt;

#   General setup for the virtual host
DocumentRoot &quot;/Applications/MAMP/Library/htdocs&quot;
ServerName www.example.com:443
ServerAdmin you@example.com
ErrorLog &quot;/Applications/MAMP/Library/logs/error_log&quot;
TransferLog &quot;/Applications/MAMP/Library/logs/access_log&quot;</code></pre>
<p class="bm-none">僕の場合は以下のように変更しました：</p>
<pre class="language-bash"><code>DocumentRoot &quot;/Users/rriver/Sites/parashuto.com/site&quot;
ServerName localhost</code></pre>
<p class="bm-none">さらにSSLCertificateFileとSSLCertificateKeyFileの値を先ほど作成した証明書と鍵に更新します。</p>
<pre class="language-bash"><code>#   Server Certificate:
#   Point SSLCertificateFile at a PEM encoded certificate.  If
#   the certificate is encrypted, then you will be prompted for a
#   pass phrase.  Note that a kill -HUP will prompt again.  Keep
#   in mind that if you have both an RSA and a DSA certificate you
#   can configure both in parallel (to also allow the use of DSA
#   ciphers, etc.)
#   Some ECC cipher suites (http://www.ietf.org/rfc/rfc4492.txt)
#   require an ECC certificate which can also be configured in
#   parallel.
SSLCertificateFile &quot;/Applications/MAMP/conf/apache/server.crt&quot;
#SSLCertificateFile &quot;/Applications/MAMP/conf/apache/server-dsa.crt&quot;
#SSLCertificateFile &quot;/Applications/MAMP/conf/apache/server-ecc.crt&quot;

#   Server Private Key:
#   If the key is not combined with the certificate, use this
#   directive to point at the key file.  Keep in mind that if
#   you've both a RSA and a DSA private key you can configure
#   both in parallel (to also allow the use of DSA ciphers, etc.)
#   ECC keys, when in use, can also be configured in parallel
SSLCertificateKeyFile &quot;/Applications/MAMP/conf/apache/server.key&quot;
#SSLCertificateKeyFile &quot;/Applications/MAMP/conf/apache/server-dsa.key&quot;
#SSLCertificateKeyFile &quot;/Applications/MAMP/conf/apache/server-ecc.key&quot;</code></pre>
<p class="bm-none">僕の場合、変更後は以下の通り：</p>
<pre class="language-bash"><code>#   Server Certificate:
#   Point SSLCertificateFile at a PEM encoded certificate.  If
#   the certificate is encrypted, then you will be prompted for a
#   pass phrase.  Note that a kill -HUP will prompt again.  Keep
#   in mind that if you have both an RSA and a DSA certificate you
#   can configure both in parallel (to also allow the use of DSA
#   ciphers, etc.)
#   Some ECC cipher suites (http://www.ietf.org/rfc/rfc4492.txt)
#   require an ECC certificate which can also be configured in
#   parallel.

SSLCertificateFile &quot;/Applications/MAMP/conf/apache/keys/localhost.pem&quot;
#SSLCertificateFile &quot;/Applications/MAMP/conf/apache/server-dsa.crt&quot;
#SSLCertificateFile &quot;/Applications/MAMP/conf/apache/server-ecc.crt&quot;

#   Server Private Key:
#   If the key is not combined with the certificate, use this
#   directive to point at the key file.  Keep in mind that if
#   you've both a RSA and a DSA private key you can configure
#   both in parallel (to also allow the use of DSA ciphers, etc.)
#   ECC keys, when in use, can also be configured in parallel

SSLCertificateKeyFile &quot;/Applications/MAMP/conf/apache/keys/localhost-key.pem&quot;
#SSLCertificateKeyFile &quot;/Applications/MAMP/conf/apache/server-dsa.key&quot;
#SSLCertificateKeyFile &quot;/Applications/MAMP/conf/apache/server-ecc.key&quot;</code></pre>
<p>これでMAMP 6.3で無事にhttps://localhostが動くようになりました！</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="lastly">さいごにひとこと</h2>
<p>mkcertはクロスプラットフォームのツールで、MacだけでなくLinuxやWindows版も提供されているそうです。なので、知っておくと便利なツールですね。開発環境の整備などは極力楽に済ませたいですもんね〜。</p>
<p>では、Happy local SSL development environment!</p>
<h2>参考にさせてもらったサイト</h2>
<p>英語ですが、以下のページでmkcertの使い方だけでなく、認証局についてなど詳しく説明されていました。すごく勉強になりました。</p>
<ul class="custom-recommend">
<li><a href="https://web.dev/how-to-use-local-https/" target="_blank" rel="noopener noreferrer">How to use HTTPS for local development <span class="icon-windows"></span></a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>各OSの標準搭載フォント一覧へのリンク集</title>
		<link>https://parashuto.com/rriver/development/preinstalled-font-list-by-operating-system</link>
		
		<dc:creator><![CDATA[ryo]]></dc:creator>
		<pubDate>Mon, 18 Jan 2021 02:09:44 +0000</pubDate>
				<category><![CDATA[ウェブ制作・運営ノウハウ]]></category>
		<category><![CDATA[html & css basics]]></category>
		<guid isPermaLink="false">https://parashuto.com/rriver/?p=11528</guid>

					<description><![CDATA[最近あらためてウェブサイトの本文の文字の読みやすさの大切さを実感していてfont-familyの指定を見直しています。そこで、まずは基本に戻って各OSに標準で搭載されているフォントの一覧を探してみたんですが、けっこう情報 [&#8230;]]]></description>
										<content:encoded><![CDATA[<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/preinstalled-fonts-by-os-3.svg" alt="" width="1123" height="590" class="wp-image-11548" onerror="this.src='https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/preinstalled-fonts-by-os-2.png'; this.onerror=null;"  role="img" />
<p>最近あらためてウェブサイトの本文の文字の読みやすさの大切さを実感していてfont-familyの指定を見直しています。そこで、まずは基本に戻って各OSに標準で搭載されているフォントの一覧を探してみたんですが、けっこう情報を見つけるのに苦労しました。</p>
<p>ということで、今後のためにWondows、Mac、iOSの標準搭載フォント一覧へのリンク集を作ってみました。Androidは一覧が見つけられず、基本情報だけ載せておきました。</p>
<p>おすすめのfont-familyの指定は、ありがたい<a href="https://qiita.com/tsuka-rinorino/items/4181efd43d072e246519" target="_blank" rel="noopener noreferrer">こんな記事 <span class="icon-windows"></span></a> や<a href="https://ics.media/entry/200317/" target="_blank" rel="noopener noreferrer">あんな記事 <span class="icon-windows"></span></a> や<a href="https://willcloud.jp/knowhow/font-family/" target="_blank" rel="noopener noreferrer">そんな記事 <span class="icon-windows"></span></a> で詳しく説明されてるんですが、自分でも特定のプロジェクトにあったfont-family指定ができるように、各OSの標準搭載フォント一覧にはさくっとアクセスできるようにしておきたいです。</p>
<p>ついでに、各OSのバージョンごとのマーケットシェアへのリンクもはっておきました。</p>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2>目次</h2>
<p>以下はページ内のセクションへのリンクです。</p>
<ul class="custom-recommend">
<li><a href="#win">Windowsに標準搭載のフォント一覧</a></li>
<li><a href="#mac">Macに標準搭載のフォント一覧</a></li>
<li><a href="#ios">iOSに標準搭載のフォント一覧</a></li>
<li><a href="#android">Androidに標準搭載のフォント</a></li>
<li><a href="#other-info">その他の情報</a></li>
<li><a href="#os-marketshare">各OSのバージョンごとの日本でのマーケットシェア</a></li>
<li><a href="#on-font-family">font-family指定の参考記事</a></li>
<li><a href="#lastly">さいごにひとこと</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="win">Windowsに標準搭載のフォント一覧</h2>
<p>Microsoft Docsウェブサイトの情報とAdobeさんがまとめた情報があります。ほぼ同じ内容ですが、一覧されているフォントに一部違うところがありました。参考までに両方へのリンクを貼っておきます。</p>
<h3>Microsoft</h3>
<ul class="custom-recommend">
<li><a href="https://learn.microsoft.com/en-us/typography/fonts/windows_11_font_list" target="_blank" rel="noopener noreferrer">Font List Windows 11 <span class="icon-windows"></span></a></li>
<li><a href="https://docs.microsoft.com/en-us/typography/fonts/windows_10_font_list" target="_blank" rel="noopener noreferrer">Windows 10 font list <span class="icon-windows"></span></a></li>
<li><a href="https://docs.microsoft.com/en-us/typography/fonts/windows_81_font_list" target="_blank" rel="noopener noreferrer">Windows 8.1 font list <span class="icon-windows"></span></a></li>
<li><a href="https://docs.microsoft.com/en-us/typography/fonts/windows_7_font_list" target="_blank" rel="noopener noreferrer">Windows 7 font list <span class="icon-windows"></span></a></li>
</ul>
<h3>Adobe</h3>
<ul class="custom-recommend">
<li><a href="https://helpx.adobe.com/jp/x-productkb/global/cq08041028.html" target="_blank" rel="noopener noreferrer">Windows 10 によってインストールされるフォント <span class="icon-windows"></span></a></li>
<li><a href="https://helpx.adobe.com/jp/x-productkb/global/cq013018331.html" target="_blank" rel="noopener noreferrer">Windows 8.1 によってインストールされるフォント <span class="icon-windows"></span></a></li>
<li><a href="https://helpx.adobe.com/jp/x-productkb/global/236469.html" target="_blank" rel="noopener noreferrer">Windows 7 によってインストールされるフォント <span class="icon-windows"></span></a></li>
</ul>
<p>※Windows 8のフォント一覧もありますが、シェアがあまりなかったのでリンクしてません。</p>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="mac">Macに標準搭載のフォント一覧</h2>
<p>Appleのサポートウェブサイトに掲載されている各OSバージョンに組み込まれているフォントの一覧です。</p>
<ul class="custom-recommend">
<li><a href="https://support.apple.com/ja-jp/HT213266" target="_blank" rel="noopener noreferrer">macOS Ventura に組み込まれているフォント <span class="icon-windows"></span></a></li>
<li><a href="https://support.apple.com/ja-jp/HT212587" target="_blank" rel="noopener noreferrer">macOS Monterey に組み込まれているフォント <span class="icon-windows"></span></a></li>
<li><a href="https://support.apple.com/ja-jp/HT211240" target="_blank" rel="noopener noreferrer">macOS Big Sur に組み込まれているフォント <span class="icon-windows"></span></a></li>
<li><a href="https://support.apple.com/ja-jp/HT210192" target="_blank" rel="noopener noreferrer">macOS Catalina に組み込まれているフォント <span class="icon-windows"></span></a></li>
<li><a href="https://support.apple.com/ja-jp/HT208968" target="_blank" rel="noopener noreferrer">macOS Mojave に組み込まれているフォント <span class="icon-windows"></span></a></li>
<li><a href="https://support.apple.com/ja-jp/HT206872" target="_blank" rel="noopener noreferrer">macOS Sierra に組み込まれているフォント <span class="icon-windows"></span></a></li>
</ul>
<p>これらのページでは「○○でダウンロード可能なフォント」というセクションがあって、ここに一覧されてるフォントはあたかも標準ではインストールされていない印象を持たされます（僕は勘違いしました）。ところが、言語が日本語に設定されているMacで、たとえばCatalinaでは、このセクションに記載されている游ゴシックや筑紫A丸ゴシックは標準でインストールされているようです。</p>
<p>購入したばかりのM1 Mac miniのFont Bookで確認したら、游ゴシックや筑紫A丸ゴシックは有効になっていました。自分で変更してないのでデフォルトで入ってたはずです（Adobe CCやMS Officeなどを入れてから確認したので、OSがまっさらな状態ではなかったですが&#8230;）。</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="ios">iOSに標準搭載のフォント一覧</h2>
<p>iOS（とMac）のフォント一覧はAppleの開発者サイトにあります。</p>
<ul class="custom-recommend">
<li><a href="https://developer.apple.com/fonts/system-fonts/" target="_blank" rel="noopener noreferrer">System Fonts (iOS 13とmacOS Catalina &#8211; 2021年1月18日現在) <span class="icon-windows"></span></a></li>
<li><a href="https://web.archive.org/web/20190327161605/https://developer.apple.com/fonts/system-fonts/" target="_blank" rel="noopener noreferrer">System Fonts (iOS 12とmacOS Mojave &#8211; WayBack Machine) <span class="icon-windows"></span></a></li>
</ul>
<p>2021年1月18日現在、iOS 13とmacOS Catalinaの情報が掲載されていますが、近い将来、更新される可能性ありです。</p>
<p>その他のバージョンのiOSのフォント情報はいまのところ見つけられていません。</p>
<p>公式の情報が公開されてないとすると、以下のページに書かれているような方法で自分で調べるしかないんですかね？</p>
<ul class="custom-recommend">
<li><a href="https://qiita.com/justin999/items/2e6e2354580e7ffaec59" target="_blank" rel="noopener noreferrer">iOSで使えるフォント一覧 <span class="icon-windows"></span></a></li>
</ul>
<p>以下のページでもiOSのフォントの情報がまとめられていますが、iOS 9までの情報しか載っていません。</p>
<ul class="custom-recommend">
<li><a href="http://iosfonts.com/" target="_blank" rel="noopener noreferrer">iOS Fonts <span class="icon-windows"></span></a></li>
</ul>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="android">Androidに標準搭載のフォント</h2>
<p>Androidでは端末メーカーによってデフォルトフォントが変更されている可能性があるので注意が必要ですが、和文はNoto Sans CJK JP、欧文はRobotoが標準搭載のフォントとのことです。ただ、公式（Android DeveloperやMaterial Designウェブサイト）での情報は見つけられませんでした。</p>
<p>ちなみに、和文フォントがNoto Sans CJK JPになったのはAndroid 6.0からで、それ以前はモトヤフォントが標準でした。また、欧文はAndroid 4.0からRobotoが、それ以前はDroidが標準フォントでした。</p>
<h3>参考情報</h3>
<ul class="custom-recommend">
<li><a href="https://en.wikipedia.org/wiki/Roboto" target="_blank" rel="noopener noreferrer">RobotoのWikipediaでの情報 <span class="icon-windows"></span></a></li>
<li><a href="https://en.wikipedia.org/wiki/Noto_fonts" target="_blank" rel="noopener noreferrer">Noto fontsのWikipediaでの情報 <span class="icon-windows"></span></a></li>
<li><a href="https://en.wikipedia.org/wiki/Droid_fonts" target="_blank" rel="noopener noreferrer">DroidのWikipediaでの情報 <span class="icon-windows"></span></a></li>
<li><a href="https://ibis.studio/blog/20200524-6/" target="_blank" rel="noopener noreferrer">Webサイト制作に欠かせない標準フォントの知識とは？（スマホサイト編） <span class="icon-windows"></span></a></li>
<li><a href="http://www.phenomena.co.jp/blog/2015/10/16/android-6-0marshmallow%E3%81%AE%E6%A8%99%E6%BA%96%E3%83%95%E3%82%A9%E3%83%B3%E3%83%88%E3%81%AB%E9%96%A2%E3%81%99%E3%82%8B%E6%B3%A8%E6%84%8F/" target="_blank" rel="noopener noreferrer">Android 6.0(Marshmallow)の標準フォントに関する注意 <span class="icon-windows"></span></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="other-info">その他の情報</h2>
<p>MacとWindowsに搭載の標準フォントをまとめてくれてる方がいて、下記ページで一覧がみられます。ありがたいですね〜。</p>
<ul class="custom-recommend">
<li><a href="https://mimi.moe.in/nmp/fonts/allfonts" target="_blank" rel="noopener noreferrer">VentureとWindows 11 (22H2) （2023年5月3日時点での最新OSバージョン）<span class="icon-windows"></span></a></li>
<li><a href="https://mimi.moe.in/nmp/fonts/allfonts-15" target="_blank" rel="noopener noreferrer">MontereyとWindows 11 (21H2) <span class="icon-windows"></span></a></li>
<li><a href="https://mimi.moe.in/nmp/fonts/allfonts-14" target="_blank" rel="noopener noreferrer"> Big SurとWindows 10 (1809) <span class="icon-windows"></span></a></li>
<li><a href="https://mimi.moe.in/nmp/fonts/allfonts-13" target="_blank" rel="noopener noreferrer">CatalinaとWindows 10 (1809) <span class="icon-windows"></span></a></li>
<li><a href="https://mimi.moe.in/nmp/fonts/allfonts-12" target="_blank" rel="noopener noreferrer">High SierraとWindows 10 (1709) <span class="icon-windows"></span></a></li>
<li><a href="https://mimi.moe.in/nmp/fonts/allfonts9" target="_blank" rel="noopener noreferrer">MavericksとWindows 8.1 <span class="icon-windows"></span></a></li>
<li><a href="https://mimi.moe.in/nmp/fonts/allfonts6" target="_blank" rel="noopener noreferrer">Snow LeopardとWindows 7 <span class="icon-windows"></span></a></li>
</ul>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="os-marketshare">各OSのバージョンごとの日本でのマーケットシェア</h2>
<p>GlobalStats statcounterのそれぞれのデータページへのリンクです。</p>
<ul class="custom-recommend">
<li><a href="https://gs.statcounter.com/windows-version-market-share/desktop/japan/" target="_blank" rel="noopener noreferrer">Windows <span class="icon-windows"></span></a></li>
<li><a href="https://gs.statcounter.com/os-version-market-share/ios/mobile-tablet/japan" target="_blank" rel="noopener noreferrer">iOS <span class="icon-windows"></span></a></li>
<li><a href="https://gs.statcounter.com/os-version-market-share/android/mobile-tablet/japan" target="_blank" rel="noopener noreferrer">Android <span class="icon-windows"></span></a></li>
<li><a href="https://gs.statcounter.com/macos-version-market-share/desktop/japan/" target="_blank" rel="noopener noreferrer">Mac <span class="icon-windows"></span></a></li>
</ul>
<p>あと、日本でのOSマーケットシェアはこちらです。</p>
<ul class="custom-recommend">
<li><a href="https://gs.statcounter.com/os-market-share/all/japan" target="_blank" rel="noopener noreferrer">OS Market Share Japan <span class="icon-windows"></span></a></li>
</ul>
<p>世界だとAndroidが圧倒的なシェアを誇るんですが、日本では1. Windows、2. iOS、3. Androidという順になっているのが面白いですね。世界と日本のマーケットって、やっぱりちょっとずれてるんですね。</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="on-font-family">font-family指定の参考記事</h2>
<p>以下の記事を参考にさせていただきました。ありがとうございます。</p>
<ul class="custom-recommend">
<li><a href="https://willcloud.jp/knowhow/font-family/" target="_blank" rel="noopener noreferrer">【2020年版】font-familyの正しい指定方法・タイプ別おすすめフォント設定例 <span class="icon-windows"></span></a></li>
<li><a href="https://ics.media/entry/200317/" target="_blank" rel="noopener noreferrer">2020年に最適なfont-familyの書き方 &#8211; ICS MEDIA <span class="icon-windows"></span></a></li>
<li><a href="https://qiita.com/tsuka-rinorino/items/4181efd43d072e246519" target="_blank" rel="noopener noreferrer">2020年まで使えるfont-familyおすすめゴシック体 <span class="icon-windows"></span></a></li>
</ul>
<h2 id="lastly">さいごにひとこと</h2>
<p>font-familyの指定には意外と注意することが多くて気を使うんですよね。OSやブラウザの更新で設定が変更されることもあるし、けっこう厄介です。でも、だからこそ、基本となるOS標準搭載のフォント一覧はいつでも確認できるようにしておきたいなと思っています。ウェブフォントを使うにしてもフォールバック用のフォントの指定があったほうがいいですしね。</p>
<p>新しいOSが出たらここの情報もきちんと更新しないとな&#8230;。</p>
<div class="box-reference">
<h3>更新情報</h3>
<ul>
<li>「<a href="#win">Windowsに標準搭載のフォント一覧</a>」にWindows 11のフォント一覧のページへのリンクを追加しました（2023/05/03）</li>
<li>「<a href="#other-info">その他の情報</a>」のフォント一覧のページへのリンクを修正しました（2023/05/03）</li>
<li>macOS MontereyとVenturaに組み込まれているフォント一覧のページへのリンクを追加しました（2022/12/17）</li>
</ul>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>VSCodeの複数端末の同期設定機能で特定の設定を除外する方法</title>
		<link>https://parashuto.com/rriver/tools/vscode-settings-sync-ignored-settings</link>
		
		<dc:creator><![CDATA[ryo]]></dc:creator>
		<pubDate>Wed, 13 Jan 2021 07:13:23 +0000</pubDate>
				<category><![CDATA[制作・効率化ツール]]></category>
		<category><![CDATA[vscode]]></category>
		<guid isPermaLink="false">https://parashuto.com/rriver/?p=11495</guid>

					<description><![CDATA[Visual Studio Codeの公式の設定同期機能を使う際に、特定の設定だけ同期しないようにする方法です。僕の場合、2つの端末でターミナルのディレクトリが違っているので、その設定を非同期に設定しました。 検索しても [&#8230;]]]></description>
										<content:encoded><![CDATA[<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-settings-sync-ignored-settings-1.svg" alt="Visual Studio Code - Settings Sync: Ignored Settings" width="800" height="480" class="wp-image-11524" onerror="this.src='https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-settings-sync-ignored-settings.png'; this.onerror=null;"  role="img" />
<p>Visual Studio Codeの公式の設定同期機能を使う際に、特定の設定だけ同期しないようにする方法です。僕の場合、2つの端末でターミナルのディレクトリが違っているので、その設定を非同期に設定しました。</p>
<p>検索してもなかなか良い情報が出て来なかったので書き留めておきます。同じようなことで困っている方のお役に立てば幸いです。では、行ってみましょう！</p>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2>目次</h2>
<p>以下はページ内のセクションへのリンクです。</p>
<ul class="custom-recommend">
<li><a href="#env">設定をした端末とVSCodeのバージョン</a></li>
<li><a href="#basic-setting">設定同期機能の基本設定</a></li>
<li><a href="#ignored-settings">非同期の設定</a></li>
<li><a href="#lastly">さいごにひとこと</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="env">設定をした端末とVSCodeのバージョン</h2>
<p>今回、VSCodeの公式の設定同期機能を試したのは、以下の2台です。GitHubを使って同期の設定をしました。いまのところ、問題なく同期設定が動いています。</p>
<ol>
<li>MacBook ProのVisual Studio Code（1.52.1）</li>
<li>M1 Mac miniのVisual Studio Code &#8211; Insiders（1.53.0-insider）</li>
</ol>
<p>MacBook ProとMac miniではTerminalのディレクトリが違っているので、この部分だけ同期しないように設定をしました。</p>
<div class="box-reference">
<h3>要注意！</h3>
<p>公式版と同じ名前の拡張機能「Settings Sync（Shan Khan）」があるので間違えないようにご注意ください！まったく同じ名前なので、僕は混同してしまってかなり無駄な時間を費やしてしまいました。</p>
</div>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="basic-setting">設定同期機能の基本設定</h2>
<p>同期機能の設定は、英語ですが公式ウェブサイトの情報が参考になります。</p>
<ul class="custom-recommend">
<li><a href="https://code.visualstudio.com/docs/editor/settings-sync" target="_blank" rel="noopener noreferer noreferrer">Settings Sync <span class="icon-windows"></span></a></li>
</ul>
<p>あと、下記ブログの「設定方法」のセクションがわかりやすかったです。</p>
<ul class="custom-recommend">
<li><a href="https://serip39.hatenablog.com/entry/2020/08/18/173000" target="_blank" rel="noopener noreferer noreferrer">【VSCode】公式版の設定同期機能 Settings Sync を早速使ってみた <span class="icon-windows"></span></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="ignored-settings">非同期の設定</h2>
<p>まずは設定ボタン（ギア・アイコン）から「Settings Sync is On（設定の同期がオン）」を選びます。</p>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-setting-menu.png" alt="VSCodeの設定メニューが表示された画面" width="1600" height="784" class="wp-image-11514" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-setting-menu.png 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-setting-menu-300x147.png 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-setting-menu-1024x502.png 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-setting-menu-768x376.png 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-setting-menu-1536x753.png 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>コマンドパレットが出てくるので「Settings Sync: Show Settings（設定の同期: 設定を表示する）」を選びます。</p>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-command-settings-sync.png" alt="コマンドパレットに表示されたSettings Syncの設定オプション" width="1600" height="448" class="wp-image-11515" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-command-settings-sync.png 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-command-settings-sync-300x84.png 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-command-settings-sync-1024x287.png 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-command-settings-sync-768x215.png 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-command-settings-sync-1536x430.png 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>Settings Syncの設定画面が出てくるので「Settings Sync: Ignored Settings」セクションの「Edit in settings.json（settings.jsonで編集）」をクリックします。</p>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-settings-sync-settings.png" alt="Settings Syncの設定画面" width="1600" height="920" class="wp-image-11516" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-settings-sync-settings.png 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-settings-sync-settings-300x173.png 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-settings-sync-settings-1024x589.png 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-settings-sync-settings-768x442.png 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2021/01/img-vscode-settings-sync-settings-1536x883.png 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p class="bm-10px"><code>settings.json</code>が開くので<code>settingsSync.ignoredSettings</code>に非同期にしたい設定の値を追加します。僕の場合、ターミナルの設定を非同期にするために<code>terminal.integrated.shell.osx</code>を追加しました。</p>
<pre class="language-bash"><code>{

#他の設定

    "settingsSync.ignoredSettings": [
        "terminal.integrated.shell.osx"
    ],

#他の設定

}</code></pre>
<p>僕は設定してないですが、似たような方法で拡張機能の非同期設定もできるようです。</p>
<p>以上、複数端末上のVSCodeで設定を同期した際に、特定の設定だけ非同期にする方法でした！</p>
<h2 id="lastly">さいごにひとこと</h2>
<p>2020年12月にM1（Apple Silicon）搭載のMac miniを購入してMacBook Proと2台体制でデザインや開発をやっていこうと思ってます。それぞれの端末で個別に設定を行うのは面倒なので、今回のVSCodeの同期機能のように、クラウドに設定ファイルを置いて設定を同期できるのはめちゃくちゃありがたいです。やっぱり、データはできるだけクラウドで管理するのがよさそうです。そうすれば、端末が死んでもデータは生き残るし、新しい端末を導入する際も設定の負担が軽減されます。</p>
<p>ちなみにM1 Mac miniはいまのところ快適に動いています。Rosetta 2でIntelチップ向けに開発されたアプリも問題なく動いてますし、全体的に起動や動作が軽快でいいかんじです（MacBook Pro 13-inch, 2018と比較して）。いまのところファンもぶんぶん鳴らないし省エネみたいだしw あとはParallels Desktop for Macのような仮想環境でWindowsを動かせれば完璧です。</p>
<p>では、Enjoy syncing everything via cloud!</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>MX Master 2Sの親指ジェスチャーボタンの故障を修理してみた</title>
		<link>https://parashuto.com/rriver/gadget/fixing-mx-master-2s-thumb-button</link>
		
		<dc:creator><![CDATA[ryo]]></dc:creator>
		<pubDate>Fri, 14 Aug 2020 07:39:07 +0000</pubDate>
				<category><![CDATA[IT・ガジェット]]></category>
		<category><![CDATA[mx master]]></category>
		<guid isPermaLink="false">https://parashuto.com/rriver/?p=11468</guid>

					<description><![CDATA[MX Masterシリーズのマウスは初代から愛用しているんですが、いま使っているMX Master 2S がついに故障してしまいました。親指のジェスチャーボタン（親指ボタン）が押されっぱなしになってマウスカーソルが動かな [&#8230;]]]></description>
										<content:encoded><![CDATA[<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s.jpg" alt="" width="1600" height="960" class="wp-image-11476" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-300x180.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-1024x614.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-768x461.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-1536x922.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>MX Masterシリーズのマウスは初代から愛用しているんですが、いま使っている<a href="https://amzn.to/2PRH32R" target="_blank" rel="noopener noreferrer">MX Master 2S <span class="icon-windows"></span></a> がついに故障してしまいました。親指のジェスチャーボタン（親指ボタン）が押されっぱなしになってマウスカーソルが動かなくなりました。</p>
<p>3年も使ってるので仕方ないと思いつつ、諦め切れずに分解して修理してみました。なんとか動くようになったので修理方法をメモしておきます。同じ症状で困っている方の参考になれば幸いです。</p>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="index">目次</h2>
<p>以下はページ内のセクションへのリンクです。</p>
<ul class="custom-recommend">
<li><a href="#contact-support-first">まずはサポートに問い合わせ</a></li>
<li><a href="#take-it-apart">T型トルクスドライバーをゲットして分解</a></li>
<li><a href="#check-thumb-button-parts">親指ボタンの中のパーツを外してみる</a></li>
<li><a href="#shave-the-excess">ゴムの樹脂部分を紙やすりで削る</a></li>
<li><a href="#lastly">さいごにひとこと</a></li>
<li><a href="#reference">参考にさせてもらった記事</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="contact-support-first">まずはサポートに問い合わせ</h2>
<p class="bm-10px">購入から3年が経っていて保証期間は過ぎていましたが、念のため交換や修理は可能かサポートに問い合わせてみました（サポートサイトでアカウントを作成して問い合わせしました）。有償でも料金次第では修理しようと思ったんですよね。</p>
<ul class="custom-recommend">
<li><a href="https://support.logi.com/" target="_blank" rel="noopener noreferrer">Logicool サポート + ダウンロード <span class="icon-windows"></span></a></li>
</ul>
<p>2回ほどメールの往復をした結果、保証期間外で交換はできないとのこと。新しいモデルの購入を勧められました。返信も早いし丁寧かつしっかりした対応で感謝しかないですが。まぁ、残念。。。</p>
<p>ということで、保証もないしダメ元で解体修理を試みることに。</p>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="take-it-apart">T型トルクスドライバーをゲットして分解</h2>
<p>分解するにはT型トルクスドライバーと小さいプラスドライバーが必要です。</p>
<p>僕の場合、T型トルクスドライバー（ヘックスローブ）はT5サイズ、プラスドライバーはNo.00とNo.0サイズを使いました。</p>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-bottom.jpg" alt="マウスの底の写真。左はマウス全体の写真でソールを剥がした部分にねじ穴が見えていて丸で囲われている。右はトルクスネジの場所を示した写真" width="1600" height="960" class="wp-image-11470" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-bottom.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-bottom-300x180.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-bottom-1024x614.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-bottom-768x461.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-bottom-1536x922.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>写真（左）のように、マウスの底についているソールを剥がすとねじ穴が出てきます。こちらはプラスドライバーで外します。</p>
<p>写真（右）がトルクスネジです。2つあります。僕の場合、T5サイズで外せました。T6やT4、T3と書いてあるブログ記事がありましたが間違いかな？それともモデルによって違うとか？</p>
<p>結局、僕は<a href="https://amzn.to/33WC1dA" target="_blank" rel="noopener noreferrer">E-Valueの精密ドライバーセット（22個セット） <span class="icon-windows"></span></a> を買っちゃいました。これだとT5、T6、T7、T8、T10までカバーできます。実はあとで<a href="https://parashuto.com/rriver/gadget/replace-macbook-air-mid-2011-battery">MacBook Airのバッテリーを交換</a>したときに使ったドライバーが使えることが判明したので、必要なかったんですけどね <img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f622.png" alt="😢" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="check-thumb-button-parts">親指ボタンの中のパーツを外してみる</h2>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-openned.jpg" alt="解体して上下のパーツに分かれた状態のマウスの写真。ケーブルで繋がっている。親指ボタンのパーツが丸で囲われている" width="1600" height="960" class="wp-image-11471" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-openned.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-openned-300x180.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-openned-1024x614.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-openned-768x461.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-openned-1536x922.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>ネジを外して慎重に上と下のパーツを分解します。上下のパーツがケーブルで繋がっているので引っ張らないように気を付ける必要があります。</p>
<p>上の写真の丸で囲った部分が親指ボタンの部分のパーツなんですが、4つのネジを外して機構に問題がないか確認しました。</p>
<p><a href="https://blog.pastime.ne.jp/personal_computer/hardware/2495" target="_blank" rel="noopener noreferrer">こちらの記事 <span class="icon-windows"></span></a> の方は、この中のパーツの一部を削って修理したようですが、僕の場合、パーツの動きを確認したところ不具合や劣化はなさそうだったので、そのまま元の状態に戻しました。</p>
</div>
</div>
</div>
<div class="c-gray">
<div class="content gray">
<div class="row">
<div class="grid grid-12">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="shave-the-excess">ゴムの樹脂部分を紙やすりで削る</h2>
<p>親指ボタンの辺のパーツの動きを確認してたら、上下のパーツを外した状態ではボタンがカチカチ動くのに、上下パーツを組み合わせてネジ止めすると動かなくなるのを発見しました。どうやらゴムの樹脂部分が引っかかってボタンが元に戻らないようになっているみたいなんですね。</p>
<p>ということで、下の写真のように試しに紙やすりで少し削ってみました。そしたら上下のパーツを組み合わせても以前のようにボタンがカチカチ音をたてて動くようになりました！おっしゃ〜 <img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f929.png" alt="🤩" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-parts-shaved.jpg" alt="削った部分の写真" width="1600" height="960" class="wp-image-11472" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-parts-shaved.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-parts-shaved-300x180.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-parts-shaved-1024x614.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-parts-shaved-768x461.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-parts-shaved-1536x922.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>写真の丸で囲った部分が紙やすりで削った部分です。そこそこの量を削りました。</p>
<img loading="lazy" decoding="async" src="https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-thumb-button.jpg" alt="パーツを削るまえの状態（左上）、削ったあとの状態（左下）、それから、購入当時の綺麗な状態の写真" width="1600" height="960" class="wp-image-11473" srcset="https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-thumb-button.jpg 1600w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-thumb-button-300x180.jpg 300w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-thumb-button-1024x614.jpg 1024w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-thumb-button-768x461.jpg 768w, https://parashuto.com/rriver/wp/wp-content/uploads/2020/08/mx-master-2s-thumb-button-1536x922.jpg 1536w" sizes="(max-width: 1600px) 100vw, 1600px" />
<p>上の画像の右が購入当時の状態の写真なんですが、親指ボタンの部分に微妙な隙間がある感じがします。それが、左上の削るまえの状態では、経年劣化のせいか隙間が詰まっているようでした。全体的に陥没しちゃってる感じですかね？</p>
<p>ちょっとわかりにくいですが、左下の削ったあとの状態ではゴムの部分が少し浮いているのがわかるでしょうか？これで隙間ができてボタンが動くようになりました。</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="grid grid-8 grid-center">
<h2 id="lastly">さいごにひとこと</h2>
<p>これで愛用してきたMX Master 2Sが復活！延命できました！</p>
<p>検索してみたらMX Masterの親指ボタンの故障で困ってる方が結構いるようなので、今後、この記事の修理法も役に立てば嬉しいです。</p>
<p>3年間もヘビーに使ってるので次はどこが壊れるかわかりませんが、もうしばらく使わせてもらおうと思います。ウェブ制作者にとってマウスは三種の神器みたいなもんで、自分の手にあった良いマウスは必須ですからねぇ〜。修理できてめっちゃ嬉しい <img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f973.png" alt="🥳" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>修理できなかったら近日発売開始される<a href="https://amzn.to/2PTHud7" target="_blank" rel="noopener noreferrer">MX Master 3 for Mac <span class="icon-windows"></span></a> を買おうと思ってたんですけどねぇw しばしおあずけ。2020年8月14日現在、MX Master 3が13,500円なのに対し<a href="https://amzn.to/3izNCTW" target="_blank" rel="noopener noreferrer">MX Master 2SはAmazonで8,800円で買える <span class="icon-windows"></span></a> ので、買い換えるとしたら、どっちを買うかちょっと迷っちゃいますけどね。</p>
<h2 id="reference">参考にさせてもらった記事</h2>
<p>以下の記事を参考にさせてもらいました。ありがとうございます！</p>
<ul class="custom-recommend">
<li><a href="https://blog.pastime.ne.jp/personal_computer/hardware/2495" target="_blank" rel="noopener noreferrer">マウスカーソルが動かず、故障したMX Masterを簡単な修理で復活する方法 <span class="icon-windows"></span></a></li>
<li><a href="https://blog.pastime.ne.jp/personal_computer/hardware/2484" target="_blank" rel="noopener noreferrer">Logicool MX Masterを分解してみた。バッテリー交換も可能そうな感じ。 <span class="icon-windows"></span></a></li>
<li><a href="https://text.sanographix.net/entry/2020/01/17/022757" target="_blank" rel="noopener noreferrer">MX Master 2Sのカーソル動かなくなったのを修理した &#8211; SANOGRAPHIX BLOG <span class="icon-windows"></span></a></li>
<li><a href="https://bucci.bp7.org/archives/44748/" target="_blank" rel="noopener noreferrer">Logicool MX Master 2S のジェスチャーボタンが逝った | ぶっちろぐ <span class="icon-windows"></span></a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
