/* <system section="theme" selected="6802418398435013379"> */
@charset "UTF-8";
/*
  Theme: CodeFocus
  Author: guitarrapc_tech
  Responsive: yes
  Description:
    * このテーマの特徴
    技術記事の読みやすさを追求したシングルカラムのテーマです。

    本テーマ導入時は、必ず[https://codefocus.hatenablog.jp/entry/2025/05/17/015533:title=こちらの記事]を読んでください。導入方法、JavaScriptのカスタマイズが書かれています。

    * 特徴
    余計な装飾を省いたシンプルなデザインで、技術的な文章に集中できます。
    レスポンシブデザインで、モバイル・タブレット・PCすべての画面サイズで最適に表示されます。
    コードブロックは見やすい配色で、コピー・折り返し機能も提供しておりプログラミングコードを扱う技術ブログに最適です。
    JavaScriptカスタマイズにより、目次機能（ページ内目次・固定目次ボタン）やダークモード機能、コードブロック機能、アラート記法を追加でき、長文記事も快適に読めます。
    コードブロックは読みやすさを最優先に設計されており、見やすい配色とコピー・折り返し機能でプログラミングコードを快適に扱えます。

    * カスタマイズ
    - [https://codefocus.hatenablog.jp/entry/2025/05/20/221750:title=デザインCSSを用いたカスタマイズ方法]
    - [https://codefocus.hatenablog.jp/entry/2026/01/05/003554:title=目次をデザインCSSでカスタマイズする]

    * ソースコード
    [https://github.com/guitarrapc/hatenablog-theme-codefocus:title=GitHub]で公開しています。(MITライセンス)

    * 変更履歴:
    - 2026/09/14: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.13.0:title=v1.13.0] GitHub記法のアラート(callout)と印刷スタイルに対応。はてなのデザイン設定の背景色/背景画像を反映するように変更。キーボードフォーカス表示やテキストコントラスト、`prefers-reduced-motion`対応などアクセシビリティを改善。フローティングUIがはてなブログヘッダーに隠れる問題を修正。(customize-alert.htmlの追加、customize-toc-button.html/customize-dark-mode.htmlを更新してください)
    - 2026/02/23: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.12.0:title=v1.12.0] details/summaryタグにスタイルを追加し識別性を向上
    - 2026/02/12: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.11.0:title=v1.11.0] 色弱アクセシビリティを考慮し、ライトテーマ/ダークテーマの色調整(背景/コードブロック背景/ボディテキスト/リンク)。CSS変数の整理と目次のアクティブアイコン色として`--toc-marker-hover`変数の追加
    - 2026/01/08: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.10.0:title=v1.10.0] テキストの折り返し動作を最適化。通常テキストは長いURLも適切に改行、コードブロック折り返し切り替え時に適切に折り返します。
    - 2026/01/05: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.9.1:title=v1.9.1] 一部CSS要素について`important!`が不要だったので削除、フローティング目次を常時表示するときのバグを修正。(customize-toc-button.htmlを更新してください)
    - 2026/01/04: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.9.0:title=v1.9.0] Zennのようにフローティング目次を常時表示するように変更(幅1540px以上のスクリーン限定)。複数記事が1ページに存在する場合、スクロール位置の記事を自動判別してフローティング目次に反映するように修正。フローティング目次のパフォーマンス改善とメモリリーク対策。目次項目が多くても現在位置を自動スクロール表示。(customize-toc-button.htmlを更新してください)
    - 2025/12/28: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.8.0:title=v1.8.0] 背景画像設定時に目次や目次トグルボタンの背景が白固定になっていたのを透明化対応。
    - 2025/12/26: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.7.0:title=v1.7.0] 本文の文字間隔を調整し読みやすさを向上。リンクに左右の余白を追加。Noto Sans JPフォント採用とプロポーショナルメトリクス有効化。
    - 2025/11/26: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.6.1:title=v1.6.1] h要素のaタグ訪問済みリンク色を調整。
    - 2025/11/24: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.6.0:title=v1.6.0] 本文中の訪問済みリンクの色を調整。
    - 2025/06/10: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.5.3:title=v1.5.3] ページャー(次の記事/前の記事)の矢印アイコンが改行されるケースを防止。最初の記事で次の記事が左寄せになるのを修正。
    - 2025/06/10: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.5.2:title=v1.5.2] ページャー(次の記事/前の記事)の矢印アイコンが表示できていなかったのを修正。
    - 2025/06/09: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.5.1:title=v1.5.1] 目次の縦青線の軸がズレていたのを修正、フロート目次の表示/非表示のトランジションが機能していないのを修正。
    - 2025/05/30: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.5.0:title=v1.5.0] テーマ導入だけではダークテーマは有効にならないように変更。ダークテーマ向けJavaScriptを追加すると有効になります。
    - 2025/05/30: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.4.2:title=v1.4.2] ul,ol,ddの左パディングをわずかに広げる調整。
    - 2025/05/27: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.4.1:title=v1.4.1] スマホ表示におけるフッターの最新記事のサムネイルとタイトルの配置、コメントのアイコン/名前の配置を調整。
    - 2025/05/27: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.4.0:title=v1.4.0] タグクラウドをJSベースに変更、ダークモードボタン機能を追加、コードブロックの折り返し機能を追加。
    - 2025/05/25: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.3.0:title=v1.3.0] 横1200px以上の解像度モニターでは850px表示まで拡大します。
    - 2025/05/25: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.2.0:title=v1.2.0] アーカイブページのサムネイルサイズと配置の調整。
    - 2025/05/24: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.1.0:title=v1.1.0] コンテンツの幅を広げる調整。
    - 2025/05/23: [https://github.com/guitarrapc/hatenablog-theme-codefocus/releases/tag/v1.0.0:title=v1.0.0] イニシャルリリース。
  Released under the MIT License.
*/
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}
/* 目次のスタイル */
ul.table-of-contents {
  position: relative;
  background-color: transparent;
  border-radius: 10px;
  border: none;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
  /* 目次内の縦線（Zenn風） */
}
ul.table-of-contents::before {
  content: "";
  position: absolute;
  top: 1.1em;
  bottom: 0.8em;
  left: 1.46em;
  width: 3px;
  background-color: var(--toc-border-bg);
  z-index: 0;
}
ul.table-of-contents {
  /* トップレベルの項目（h1とその他の見出し） */
}
ul.table-of-contents > li {
  margin: 0.8em 0;
  padding-left: 1.2em;
  position: relative;
  transition: all 0.2s ease;
  /* 目次内の標準リストマーカーをすべて消す */
  list-style: none;
  /* h1項目の青丸マーカー */
}
ul.table-of-contents > li::before {
  content: "";
  position: absolute;
  left: 0em;
  top: 0.25em;
  width: 8px;
  height: 8px;
  background-color: var(--toc-marker);
  border: 2px solid var(--background);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.2s ease;
}
ul.table-of-contents > li:hover::before {
  background-color: var(--toc-marker-hover);
}
ul.table-of-contents > li {
  /* すべてのトップレベル見出しのリンクスタイル基本設定 */
}
ul.table-of-contents > li a {
  padding-left: 0em;
  margin: 0.2em 0;
  text-decoration: none;
  color: var(--text-low-priority);
  line-height: 1.4;
}
ul.table-of-contents > li {
  /* h1見出しのリンクスタイル基本設定 */
}
ul.table-of-contents > li > a {
  position: relative;
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1rem;
}
ul.table-of-contents > li > a:visited {
  color: var(--text-low-priority);
}
ul.table-of-contents > li > a:hover {
  color: var(--text-body);
  transform: translateX(3px);
  text-decoration: none;
  background-color: var(--bg-toc-hover);
  border-radius: 15px;
  padding-right: 5px;
}
ul.table-of-contents > li {
  /* 子リスト（h2）のスタイル */
}
ul.table-of-contents > li > ul {
  display: block;
  padding: 0;
  margin: 0.3em 0;
  /* h2階層の項目 */
}
ul.table-of-contents > li > ul li {
  margin: 0.5em 0;
  position: relative;
  /* 目次内の標準リストマーカーをすべて消す */
  list-style: none;
  /* h2の青丸マーカー */
}
ul.table-of-contents > li > ul li::before {
  content: "";
  position: absolute;
  left: -1.08em;
  top: 0.5em;
  width: 4px;
  height: 4px;
  background-color: var(--toc-marker);
  border: 2px solid var(--background);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.2s ease;
}
ul.table-of-contents > li > ul li:hover::before {
  background-color: var(--toc-marker-hover);
}
ul.table-of-contents > li > ul li {
  /* h2見出しのリンクスタイル基本設定 */
}
ul.table-of-contents > li > ul li a {
  position: relative;
  display: flex;
  align-items: center;
  font-weight: normal;
  font-size: 0.95rem;
}
ul.table-of-contents > li > ul li a:visited {
  color: var(--text-low-priority);
}
ul.table-of-contents > li > ul li a:hover {
  color: var(--text-body);
  transform: translateX(3px);
  text-decoration: none;
  background-color: var(--bg-toc-hover);
  border-radius: 15px;
  padding-right: 5px;
}
ul.table-of-contents > li > ul li {
  /* h3以降を非表示 */
}
ul.table-of-contents > li > ul li > ul {
  display: none;
}

:root {
  --background: #fafafa;
  --bg-light: #efefef;
  --bg-code: #1a2638;
  --bg-code-selection: rgba(170, 170, 170, 0.2509803922);
  --bg-code-light: #2a3c52;
  --bg-span: rgba(33, 90, 160, 0.0705882353);
  --bg-toc-hover: rgba(20, 135, 189, 0.05);
  --bg-archive-category: #222a20;
  --bg-archive-category-hover: rgb(27.1171171171%, 33.4976152623%, 25.5219925808%);
  --bg-btn-hover: #efefef;
  --bg-semi-transparent: rgba(250, 250, 250, 0.95);
  --text-body: #1B1B1B;
  --text-low-priority: #6c6c6c;
  --text-light: #737373;
  --text-header: #333;
  --text-archive-category: #fff;
  --text-header-visited: rgb(50%, 50%, 50%);
  --text-code-tooltip: #c9d1d9;
  --link: #0656ac;
  --link-hover: #05458a;
  --link-visited: #6F2DBD;
  --link-bg: rgba(20, 135, 189, 0.1);
  --border: #ddd;
  --border-hover: #aaaaaa;
  --border-light: #d6e3ed;
  --border-bq: #8f9faa;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-hover: rgba(0, 0, 0, 0.12);
  --scrollbar-thumb: rgba(0, 0, 0, 0.2);
  --toc-border-bg: #e0efff;
  --toc-marker: #bfdcff;
  --toc-marker-hover: rgb(0.7859342084%, 46.3701182953%, 94.3121050073%);
  --table-th-bg: #e6ecf2;
  --table-border: #d6e3ed;
  --alert-note: #0969da;
  --alert-tip: #1a7f37;
  --alert-important: #8250df;
  --alert-warning: #9a6700;
  --alert-caution: #d1242f;
  --codeblock-language-colors-text: #fff;
  --codeblock-language-colors-keyword: #ff8fa3;
  --codeblock-language-colors-function: #38c7ff;
  --codeblock-language-colors-punctuation: #939bc1;
  --codeblock-language-colors-number: #ffc56d;
  --codeblock-language-colors-comment: #8b949e;
  --module-title-border: var(--border-light);
  --module-title-border-width: 1px;
  --toc-button-right: 1rem;
}

/*
 * はてなのUI帯(グローバルヘッダ / 「読者になる」ボタン)を避けるための押し下げ量。
 *
 * UI帯はz-index 9997でテーマ側からは上に出せないため、固定表示のUIは本来のtopに
 * --hatena-ui-band-offset を足して縦に避ける。UI帯はスクロールで流れるので、
 * スクロール量に応じて0へ戻し本来の位置に復帰させる。
 * スクロール量に1:1で連動する位置変化であり、position: stickyと同じ性質のため
 * prefers-reduced-motionの対象とはしない。
 */
@property --hatena-ui-band-progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
@keyframes hatena-ui-band-release {
  from {
    --hatena-ui-band-progress: 1;
  }
  to {
    --hatena-ui-band-progress: 0;
  }
}
:root {
  --hatena-ui-band-height: 105px;
  --hatena-ui-band-offset: calc(6rem * var(--hatena-ui-band-progress, 1));
}
@media (max-width: 767px) {
  :root {
    --hatena-ui-band-height: 117px;
    --hatena-ui-band-offset: calc(7rem * var(--hatena-ui-band-progress, 1));
  }
}
@supports (animation-timeline: scroll(root block)) {
  :root {
    animation: hatena-ui-band-release linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 var(--hatena-ui-band-height);
  }
}

:root:not(:has(#globalheader-container)):not(:has(.blog-controlls)),
:root:has(body.globalheader-off):not(:has(.blog-controlls)) {
  --hatena-ui-band-progress: 0;
  animation: none;
}

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Helvetica Neue", "Helvetica", "Noto Sans JP", "Meiryo", sans-serif, "Segoe UI Emoji";
  color: var(--text-body);
  line-height: 1.9;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
  -webkit-text-size-adjust: none;
     -moz-text-size-adjust: none;
          text-size-adjust: none;
}

/*
 * 既定(ライト)の背景色。
 *
 * はてなの「デザイン > カスタマイズ > 背景」やデザインCSSで背景を指定したとき、
 * テーマがそれを潰さないようカスケードレイヤーに入れる。
 * レイヤー内の宣言はレイヤーなしの宣言に必ず負けるため、読み込み順や詳細度に関係なく
 * ユーザーの指定が勝つ。
 *
 * (レイヤーを使わない場合、はてなが出すCSSがテーマより前に置かれると
 *  同じ詳細度でテーマが勝ってしまい、設定しても反映されない。実測で確認済み)
 *
 * @layer非対応ブラウザではこのブロックごと無視され、背景はブラウザ既定の白になる。
 * 文字色は明るい背景を前提にした色なので、読めなくなる側には倒れない。
 */
@layer codefocus-background {
  html,
  body {
    background-color: var(--background);
  }
}
a {
  color: var(--link);
}
a:hover {
  color: var(--link-hover);
  text-underline-offset: 0.15em;
}
a:visited {
  color: var(--link-visited);
}
a.keyword {
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
  color: var(--text-body);
}

/* フォント (ここでページすべての見出しサイズを揃える) */
h1,
h2,
h3,
h4,
h5,
h6 {
  display: block;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
  color: var(--text-header);
  line-height: 1.3;
}
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: var(--text-header);
  text-decoration: none;
}
h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
  color: var(--text-header);
}
h1 a:visited,
h2 a:visited,
h3 a:visited,
h4 a:visited,
h5 a:visited,
h6 a:visited {
  color: var(--text-header);
}

h1 {
  font-size: 1.5rem;
}
@media (min-width: 992px) {
  h1 {
    font-size: 1.7rem;
  }
}

h2 {
  font-size: 1.4rem;
}
@media (min-width: 992px) {
  h2 {
    font-size: 1.5rem;
  }
}

h3 {
  font-size: 1.2rem;
}
@media (min-width: 992px) {
  h3 {
    font-size: 1.3rem;
  }
}

h4 {
  font-size: 1.1rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.9rem;
}

table {
  border-spacing: 2px;
  border-color: var(--table-border);
}

/* container */
#container,
#footer {
  padding-left: 15px;
  padding-right: 15px;
  margin: 0 auto;
  font-feature-settings: "palt" 1;
}
@media (min-width: 768px) {
  #container,
  #footer {
    max-width: 700px;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (min-width: 992px) {
  #container,
  #footer {
    max-width: 790px;
  }
}
@media (min-width: 1200px) {
  #container,
  #footer {
    max-width: 850px;
  }
}

/* シングルカラムレイアウト - センター配置 */
#content-inner {
  flex-direction: column;
  align-items: center;
  display: flex;
}

#wrapper {
  margin: 0 auto;
  width: 100%;
  /* メインコンテンツをcontainer-innerと同じ幅にする */
}
#wrapper .main-inner {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#box2 {
  width: 100%;
  margin: 0 auto;
}

#box2-inner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: top;
  align-items: flex-start;
  margin: 0 auto;
}
@media (min-width: 768px) {
  #box2-inner {
    flex-direction: row;
    justify-content: left;
    margin: 0;
  }
}
@media (min-width: 992px) {
  #box2-inner {
    margin: 0;
  }
}

/* ヘッダ - センター揃え */
#blog-title {
  margin: 2em 0;
  text-align: center;
}
@media (min-width: 768px) {
  #blog-title {
    margin: 3em 0;
    text-align: center;
    /* すべての画面サイズでセンター揃え */
  }
}

#title {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Helvetica Neue", "Helvetica", "Noto Sans JP", "Meiryo", sans-serif, "Segoe UI Emoji";
  font-size: 1.5rem;
}
@media (min-width: 992px) {
  #title {
    font-size: 1.7rem;
  }
}
#title a {
  color: var(--text-body);
}

#blog-description {
  font-weight: normal;
  font-size: 0.8rem;
  margin: 1em 0 0;
}

/* ヘッダ画像を設定したとき - 非表示に設定 */
.header-image-enable #blog-title,
.header-image-only #blog-title {
  margin: 2em 0;
}
.header-image-enable #blog-title-inner,
.header-image-only #blog-title-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.header-image-enable #blog-title-content,
.header-image-only #blog-title-content {
  margin-left: 10px;
  margin-right: 10px;
}

/* タイトル下HTML */
#top-editarea {
  margin-bottom: 1em;
}

/* パンくず（カテゴリー、記事ページで表示されます） */
.breadcrumb {
  font-size: 0.9rem;
}

/* entry */
.entry {
  position: relative;
  margin-bottom: 3em;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  /* テキストは左揃えのまま維持 */
  text-align: left;
}

.entry-header {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  margin-bottom: 1em;
  /* タイトルを含むヘッダー全体に適用 */
}
@media (min-width: 992px) {
  .entry-header {
    padding: 0 0 0.5em 0;
    /* 下パディングを調整 */
  }
}
.entry-header {
  /* 装飾線なし - 仕様通り */
}

.entry-title {
  order: 1;
  margin: 0;
  font-size: 1.5rem;
  text-align: left;
  width: 100%;
}
@media (min-width: 992px) {
  .entry-title {
    font-size: 1.7rem;
  }
}

.date {
  order: 2;
  margin: 0.7em 0 0.4em;
  padding-bottom: 2em;
  font-size: 0.8rem;
  text-align: left;
  color: var(--text-low-priority);
}
.date a {
  text-decoration: none;
  color: var(--text-low-priority);
}
.date a:hover {
  text-decoration: underline;
}
.date a::before {
  content: "Posted on ";
  font-size: 0.9em;
}
.date {
  /* 日付を目立たせる */
}
.date .entry-date {
  margin-right: 1.2em;
  display: inline-block;
  position: relative;
}
.date .entry-date::after {
  content: "•";
  position: absolute;
  right: -0.8em;
  top: 0;
  color: #ccc;
}
.date .date-last-updated {
  color: var(--text-low-priority);
  display: inline-block;
}
.date .date-last-updated::before {
  font-size: 0.9em;
}

/* カテゴリ */
.entry-categories {
  order: 3;
  font-size: 0.9rem;
  text-align: left;
  padding-left: 0;
}
.entry-categories a {
  background-color: transparent;
  padding-right: 8px;
  display: inline-block;
  text-decoration: none;
  color: var(--text-body);
  border: 1px solid var(--border);
  border-radius: 15px;
  /* カテゴリの前にハッシュ記号を追加 */
}
.entry-categories a::before {
  content: "#";
  margin-left: 0.7em;
  margin-right: 3px;
  color: var(--link);
  font-weight: normal;
  font-size: 0.95em;
}
.entry-categories a:hover {
  background-color: var(--bg-btn-hover);
}

/* 「編集する」ボタン */
.entry-header-menu {
  position: absolute;
  top: 60px;
  right: 0;
}
.entry-header-menu a {
  padding: 0.3em 0.6em;
  border: solid 1px var(--border);
  border-radius: 16px;
  text-decoration: none;
}
.entry-header-menu a:hover {
  text-decoration: none;
  background-color: var(--bg-btn-hover);
}

/* 記事内の書式 */
.entry-content {
  /* タイトルと合わせて本文の配置を調整（タイトルより右に5pxインデント、右側にも5px余白） */
  display: block;
  padding: 0 0 5px 0;
  margin: 0;
  line-height: 1.9;
  letter-spacing: 0.05em;
}
.entry-content h1 + p,
.entry-content h2 + p,
.entry-content h3 + p,
.entry-content h4 + p,
.entry-content h5 + p,
.entry-content h6 + p {
  margin-top: 0.3em;
}
.entry-content p + p {
  margin-top: 1.5em;
}
.entry-content {
  /* 段落スタイルを追加 */
}
.entry-content p {
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}
.entry-content {
  /* リンクのスタイルを改善 */
}
.entry-content a {
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0 2px;
}
.entry-content a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.entry-content img,
.entry-content video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-weight: 700;
  margin: 0;
  line-height: 1.5;
  outline: 0;
  text-align: left;
}
.entry-content h1 {
  position: relative;
  margin-top: 2em;
  margin-bottom: 1.1em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid var(--border-light);
}
.entry-content h2 {
  position: relative;
  margin-top: 2em;
  margin-bottom: 0.8em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border-light);
}
.entry-content h3 {
  position: relative;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}
.entry-content ul,
.entry-content ol,
.entry-content dd {
  margin: 0 auto 1em;
  padding-left: 1.2em;
  max-width: 100%;
}
.entry-content ul li,
.entry-content ol li,
.entry-content dd li {
  margin-bottom: 0.5em;
}
.entry-content ul li ul,
.entry-content ul li ol,
.entry-content ol li ul,
.entry-content ol li ol,
.entry-content dd li ul,
.entry-content dd li ol {
  margin-top: 0.5em;
  margin-bottom: 0;
}
.entry-content table {
  margin: 1.2rem auto;
  width: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
  display: block;
  overflow: auto;
}
.entry-content table th {
  background: var(--table-th-bg);
  font-weight: 700;
  color: var(--text-body);
}
.entry-content table th,
.entry-content table td {
  padding: 0.5rem;
  border: 1px solid var(--table-border);
  text-align: left;
}
.entry-content blockquote {
  font-size: 0.95em;
  margin: 1.4rem 0;
  border-left: 3px solid var(--border-bq);
  padding: 2px 0 2px 0.7em;
  color: var(--text-low-priority);
}
.entry-content blockquote > :first-child {
  margin-top: 0;
}
.entry-content blockquote > :nth-last-child(1 of :not(.js-requote-button)) {
  margin-bottom: 0;
}
.entry-content blockquote > :nth-last-child(1 of :not(.js-requote-button)) li:last-child,
.entry-content blockquote > :nth-last-child(1 of :not(.js-requote-button)) dd:last-child {
  margin-bottom: 0;
}
.entry-content details {
  margin: 1.4rem 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background-color: var(--background);
  overflow: hidden;
}
.entry-content details > summary {
  padding: 0.7em 1em;
  cursor: pointer;
}
.entry-content details > summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.entry-content details > summary::marker {
  color: var(--text-low-priority);
}
.entry-content details[open] > summary {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}
.entry-content details > :not(summary) {
  padding: 0em 1em;
}
.entry-content pre,
.entry-content code {
  font-family: "Monaco", "Consolas", "Courier New", Courier, monospace, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.entry-content pre {
  background: var(--bg-code);
  border: none;
  white-space: pre;
  overflow-x: auto;
  text-overflow: initial;
  line-height: 1.7;
  font-size: 0.85rem;
  padding: 15px;
  border-radius: 5px;
  margin: 1.5em auto;
  max-width: 100%;
  box-shadow: inset 0 0 5px var(--shadow-light);
  color: var(--codeblock-language-colors-text);
  word-break: normal;
  overflow-wrap: normal;
}
.entry-content pre > code {
  margin: 0;
  padding: 1.1em;
  white-space: inherit;
  border: none;
  background-color: transparent;
}
.entry-content code {
  padding: 0.2em 0.4em;
  background: var(--bg-span);
  font-size: 0.85rem;
  border-radius: 4px;
  vertical-align: 0.08em;
}
.entry-content .synStatement,
.entry-content .synType,
.entry-content .token.atrule,
.entry-content .token.attr-value,
.entry-content .token.deleted,
.entry-content .token.important,
.entry-content .token.keyword,
.entry-content .token.selector {
  color: var(--codeblock-language-colors-keyword);
}
.entry-content .synIdentifier,
.entry-content .token.function,
.entry-content .token.property,
.entry-content .token.tag {
  color: var(--codeblock-language-colors-function);
}
.entry-content .synSpecial,
.entry-content .token.punctuation {
  color: var(--codeblock-language-colors-punctuation);
}
.entry-content .synConstant,
.entry-content .language-css .token.string,
.entry-content .style .token.string,
.entry-content .token.attr-name,
.entry-content .token.boolean,
.entry-content .token.entity,
.entry-content .token.number,
.entry-content .token.operator,
.entry-content .token.string,
.entry-content .token.url {
  color: var(--codeblock-language-colors-number);
}
.entry-content .synComment,
.entry-content .token.cdata,
.entry-content .token.comment,
.entry-content .token.doctype,
.entry-content .token.prolog {
  color: var(--codeblock-language-colors-comment);
}
.entry-content hr {
  border-top: 2px solid var(--border-light);
  margin: 2.5em auto;
}

/* 記事下 */
.entry-footer .social-buttons {
  margin-bottom: 1em;
}
.entry-footer .entry-footer-section {
  color: var(--text-light);
  font-size: 0.9rem;
}
.entry-footer .entry-footer-section a {
  color: var(--text-light);
  text-decoration: none;
}
.entry-footer .customized-footer {
  margin: 1em 0;
  padding: 0 10px 0 10px;
}
.entry-footer .customized-footer .hatena-module-related-entries {
  margin-top: 30px;
  margin-bottom: 30px;
}
.entry-footer .customized-footer .hatena-module-related-entries .urllist-entry-body,
.entry-footer .customized-footer .hatena-module-related-entries .related-entries-entry-body {
  display: none;
}
.entry-footer .customized-footer .hatena-module-related-entries .hatena-module-title {
  margin-bottom: 10px;
  font-size: 1.2em;
  font-weight: bold;
}
.entry-footer .customized-footer .hatena-module-related-entries .hatena-module-body .related-entries {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 0;
}
@media (min-width: 768px) {
  .entry-footer .customized-footer .hatena-module-related-entries .hatena-module-body .related-entries {
    grid-template-columns: 1fr 1fr;
  }
}
.entry-footer .customized-footer .hatena-module-related-entries .related-entries-item {
  margin-bottom: 10px;
  list-style-type: none;
}
.entry-footer .customized-footer .hatena-module-related-entries .related-entries-item-inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "thumbnail title" "thumbnail date";
  gap: 5px 12px;
  border-radius: 4px;
  background-color: transparent;
  transition: all 0.2s ease;
}
.entry-footer .customized-footer .hatena-module-related-entries .related-entries-item-inner .urllist-image img {
  max-height: 80px;
  width: 100%;
  border-radius: 4px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}
.entry-footer .customized-footer .hatena-module-related-entries .related-entries-item-inner .urllist-image-link {
  grid-area: thumbnail;
  align-self: start;
  width: 80px;
  height: 80px;
}
.entry-footer .customized-footer .hatena-module-related-entries .related-entries-item-inner .urllist-title-link {
  grid-area: title;
  margin: 0;
  padding: 0;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.4;
  align-self: end;
  text-decoration: none;
}
.entry-footer .customized-footer .hatena-module-related-entries .related-entries-item-inner .urllist-date-link {
  grid-area: date;
  margin: 0;
  padding: 0;
  align-self: start;
  line-height: 1.2;
}
.entry-footer .customized-footer .hatena-module-related-entries .related-entries-item-inner .urllist-date-link a {
  font-size: 0.85em;
  color: var(--text-low-priority);
}
.entry-footer .customized-footer .hatena-module-related-entries .urllist-date-link + .urllist-title-link {
  order: -1;
}
.entry-footer {
  /* コメント */
}
.entry-footer .comment-box {
  position: relative;
  margin: 2.5em 0 1em;
  padding: 0 10px 0 10px;
}
.entry-footer .comment-box .comment {
  list-style: none;
  margin: 0 0 15px 0;
  padding: 0;
  font-size: 0.85rem;
}
@media (min-width: 768px) {
  .entry-footer .comment-box .comment {
    font-size: 0.9rem;
  }
}
.entry-footer .comment-box .comment::before {
  content: "Discussion";
  display: flex;
  width: 100%;
  font-weight: bold;
  font-size: 1.2em;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}
.entry-footer .comment-box .entry-comment {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "user metadata" "content content";
  gap: 5px 10px;
  padding: 12px 0;
  width: 90%;
  margin: 0;
  transition: all 0.2s ease;
}
.entry-footer .comment-box .entry-comment + .entry-comment {
  border-top: 1px dotted var(--border-light);
}
.entry-footer .comment-box .read-more-comments {
  padding: 10px 0;
}
.entry-footer .comment-box .comment-user-name {
  grid-area: user;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.3;
}
.entry-footer .comment-box .comment-user-name .hatena-id-icon {
  align-self: center;
  padding-right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 3px;
}
.entry-footer .comment-box .comment-user-name .comment-user-id {
  color: var(--text-body);
  text-decoration: none;
}
.entry-footer .comment-box .comment-metadata {
  grid-area: metadata;
  color: var(--text-low-priority);
  align-self: center;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.3;
}
.entry-footer .comment-box .comment-metadata a {
  color: var(--text-low-priority);
}
.entry-footer .comment-box .comment-content {
  grid-area: content;
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
  color: var(--text-body);
  font-size: 0.85rem;
}
.entry-footer .comment-box .comment-content p {
  margin: 0 0 0.6em 0;
}
.entry-footer .comment-box .leave-comment-title {
  position: relative;
  display: inline-block;
  border: 1px solid var(--border);
  padding: 0 10px 0 10px;
  border-radius: 18px;
  color: var(--text-low-priority);
  font-size: 0.8rem;
}
.entry-footer .comment-box .leave-comment-title:hover {
  background-color: var(--bg-btn-hover);
  text-decoration: none;
  color: var(--text-low-priority);
}

/* Pager */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  padding: 2em 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--border-light);
}
.pager:has(.pager-next:only-child) {
  justify-content: flex-end;
}
.pager .pager-prev,
.pager .pager-next {
  padding: 0 10px;
  margin: 0 10px;
  text-align: center;
  max-width: 40%;
}
@media (max-width: 767px) {
  .pager .pager-prev,
  .pager .pager-next {
    padding: 0 5px;
    margin: 0 5px;
  }
}
.pager .pager-prev a {
  padding-left: 5px;
  padding-right: 5px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
.pager .pager-prev a::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5 L8 12 L15 19'/%3E%3C/svg%3E");
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-right: 5px;
}
@media (max-width: 767px) {
  .pager .pager-prev a::before {
    display: none;
  }
}
.pager .pager-next a {
  padding-left: 5px;
  padding-right: 5px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-start;
}
.pager .pager-next a::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5 L8 12 L15 19'/%3E%3C/svg%3E");
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: 5px;
  transform: rotate(180deg);
}
@media (max-width: 767px) {
  .pager .pager-next a::after {
    display: none;
  }
}
.pager a {
  padding: 0;
  text-decoration: none;
  display: block;
  position: relative;
  color: var(--text-body);
  font-weight: bold;
  overflow-wrap: anywhere;
}
.pager a span {
  display: none;
}
.pager a:hover {
  text-decoration: none;
}
.pager .prev-entry a::before {
  content: "前の記事";
}
.pager .next-entry a::before {
  content: "次の記事";
}

/* サイドバーモジュール */
#box2-inner .hatena-module {
  width: 100%;
  text-align: center;
}
@media (min-width: 768px) {
  #box2-inner .hatena-module {
    width: 31%;
    margin: 0 1%;
  }
}
@media (min-width: 992px) {
  #box2-inner .hatena-module {
    width: 30%;
    margin: 0 1.5%;
  }
}
#box2-inner .hatena-module {
  box-sizing: border-box;
  margin-bottom: 3em;
}
#box2-inner {
  /* プロフィール */
}
#box2-inner .hatena-module-profile {
  text-align: left;
}
#box2-inner .hatena-module-profile .profile-icon {
  float: left;
  margin: 5px 10px 10px 0;
  display: block;
  width: 40px;
  height: 40px;
}
#box2-inner .hatena-module-profile .id {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3em;
}
#box2-inner .hatena-module-profile .id a {
  color: var(--text-body);
  text-decoration: none;
}
#box2-inner .hatena-module-profile .profile-description {
  text-align: left;
}
#box2-inner .hatena-module-profile .profile-description p {
  margin-top: 0;
}
#box2-inner .hatena-module-profile .profile-about a {
  color: var(--text-body);
  text-decoration: none;
}
#box2-inner .hatena-module-profile .profile-about a:hover {
  text-decoration: underline;
}
#box2-inner {
  /* 関連記事 */
  /* 最新記事 */
  /* 注目記事 */
}
#box2-inner .hatena-module-related-entries .urllist-title-link,
#box2-inner .hatena-module-recent-entries .urllist-title-link,
#box2-inner .hatena-module-entries-access-ranking .urllist-title-link {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5rem;
  color: var(--text-body);
  text-decoration: none;
}
#box2-inner .hatena-module-related-entries .urllist-title-link:hover,
#box2-inner .hatena-module-recent-entries .urllist-title-link:hover,
#box2-inner .hatena-module-entries-access-ranking .urllist-title-link:hover {
  text-decoration: none;
}
#box2-inner .hatena-module-related-entries .urllist-date-link a,
#box2-inner .hatena-module-recent-entries .urllist-date-link a,
#box2-inner .hatena-module-entries-access-ranking .urllist-date-link a {
  font-size: 0.85em;
  color: var(--text-low-priority);
}
#box2-inner .related-entries-item-inner,
#box2-inner .recent-entries-item-inner,
#box2-inner .entries-access-ranking-item-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "thumbnail title title" "thumbnail date bookmark-widget-counter" "thumbnail categories categories";
  gap: 0 8px;
}
@media (min-width: 768px) {
  #box2-inner .related-entries-item-inner,
  #box2-inner .recent-entries-item-inner,
  #box2-inner .entries-access-ranking-item-inner {
    grid-template-columns: auto 0fr;
    grid-template-rows: auto auto;
    grid-template-areas: "thumbnail thumbnail" "title title" "date bookmark-widget-counter" "categories categories";
    gap: 5px 0;
  }
}
#box2-inner .related-entries-item-inner .urllist-image-link,
#box2-inner .recent-entries-item-inner .urllist-image-link,
#box2-inner .entries-access-ranking-item-inner .urllist-image-link {
  grid-area: thumbnail;
  display: block;
  overflow: hidden;
  border-radius: 5px;
  margin-right: 10px;
  margin-bottom: 0px;
  width: 80px;
  height: 80px;
}
@media (min-width: 768px) {
  #box2-inner .related-entries-item-inner .urllist-image-link,
  #box2-inner .recent-entries-item-inner .urllist-image-link,
  #box2-inner .entries-access-ranking-item-inner .urllist-image-link {
    margin-bottom: 10px;
    width: 100%;
    height: 100px;
  }
}
@media (max-width: 767px) {
  #box2-inner .related-entries-item-inner .urllist-image-link,
  #box2-inner .recent-entries-item-inner .urllist-image-link,
  #box2-inner .entries-access-ranking-item-inner .urllist-image-link {
    margin: 0 10px 0 0;
    width: 100%;
    padding: 0;
  }
}
#box2-inner .related-entries-item-inner .urllist-image-link img,
#box2-inner .recent-entries-item-inner .urllist-image-link img,
#box2-inner .entries-access-ranking-item-inner .urllist-image-link img {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  max-height: 80px;
}
@media (min-width: 768px) {
  #box2-inner .related-entries-item-inner .urllist-image-link img,
  #box2-inner .recent-entries-item-inner .urllist-image-link img,
  #box2-inner .entries-access-ranking-item-inner .urllist-image-link img {
    max-height: 100px;
  }
}
#box2-inner .related-entries-item-inner .urllist-title-link,
#box2-inner .recent-entries-item-inner .urllist-title-link,
#box2-inner .entries-access-ranking-item-inner .urllist-title-link {
  grid-area: title;
  padding: 0;
}
#box2-inner .related-entries-item-inner .urllist-date-link,
#box2-inner .recent-entries-item-inner .urllist-date-link,
#box2-inner .entries-access-ranking-item-inner .urllist-date-link {
  grid-area: date;
  padding: 0;
  color: var(--text-low-priority);
}
#box2-inner .related-entries-item-inner .urllist-categories,
#box2-inner .recent-entries-item-inner .urllist-categories,
#box2-inner .entries-access-ranking-item-inner .urllist-categories {
  grid-area: categories;
  padding: 0;
}
#box2-inner .related-entries-item-inner .urllist-categories a,
#box2-inner .recent-entries-item-inner .urllist-categories a,
#box2-inner .entries-access-ranking-item-inner .urllist-categories a {
  color: var(--text-low-priority);
}
#box2-inner .related-entries-item-inner .urllist-categories .urllist-category-link,
#box2-inner .recent-entries-item-inner .urllist-categories .urllist-category-link,
#box2-inner .entries-access-ranking-item-inner .urllist-categories .urllist-category-link {
  padding: 0;
}
#box2-inner .related-entries-item-inner .bookmark-widget-counter,
#box2-inner .recent-entries-item-inner .bookmark-widget-counter,
#box2-inner .entries-access-ranking-item-inner .bookmark-widget-counter {
  grid-area: bookmark-widget-counter;
  width: 100px;
  padding: 0;
  color: var(--text-low-priority);
  text-align: right;
  padding-right: 10px;
}
#box2-inner .related-entries-item-inner .bookmark-widget-counter a,
#box2-inner .recent-entries-item-inner .bookmark-widget-counter a,
#box2-inner .entries-access-ranking-item-inner .bookmark-widget-counter a {
  color: var(--text-low-priority);
  text-decoration: none;
}
#box2-inner .related-entries-item-inner .bookmark-widget-counter a:hover,
#box2-inner .recent-entries-item-inner .bookmark-widget-counter a:hover,
#box2-inner .entries-access-ranking-item-inner .bookmark-widget-counter a:hover {
  text-decoration: underline;
}
#box2-inner {
  /* カテゴリーは_tag_cloud.scssを参照 */
  /* Search module */
}
#box2-inner .hatena-module-search-box .search-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
#box2-inner .hatena-module-search-box .search-form:focus-within {
  box-shadow: 0 2px 5px var(--shadow-hover);
}
#box2-inner .hatena-module-search-box .search-form:has(.search-module-input:focus-visible) {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
#box2-inner .hatena-module-search-box .search-module-input {
  flex: 1 0;
  padding: 5px;
  color: var(--text-body);
  width: 80%;
  background: none;
  border: none;
  outline: none;
  height: 20px;
}
#box2-inner .hatena-module-search-box .search-module-button {
  width: 24px;
  height: 24px;
  margin-right: 5px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3Esearch%3C/title%3E%3Cpath d='M16.7,15l-3.4-3.3h-.1a5.4,5.4,0,0,0,.9-3.1,5.6,5.6,0,1,0-5.6,5.6,5.4,5.4,0,0,0,3.1-.9.1.1,0,0,0,.1.1L15,16.7a1.1,1.1,0,0,0,.8.3,1.6,1.6,0,0,0,.9-.3,1.4,1.4,0,0,0,0-1.7M8.5,12.3A3.8,3.8,0,0,1,4.8,8.5,3.8,3.8,0,0,1,8.5,4.7a3.9,3.9,0,0,1,3.8,3.8,3.8,3.8,0,0,1-3.8,3.8'/%3E%3Crect class='a' width='20' height='20'/%3E%3C/svg%3E") no-repeat center;
  background-size: 20px 20px;
  border: none;
  color: transparent;
  overflow: hidden;
  opacity: 0.5;
  cursor: pointer;
}
#box2-inner .hatena-module-search-box .search-module-button:hover {
  opacity: 0.85;
}
#box2-inner .hatena-module-search-box .search-module-button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  opacity: 1;
}
#box2-inner {
  /* 最近のコメント */
}
#box2-inner .hatena-module-recent-comments .recent-comments li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "title title" "user date";
  gap: 5px 10px;
  padding: 12px 0;
}
#box2-inner .hatena-module-recent-comments .recent-comments li .user-id {
  grid-area: user;
  display: flex;
  align-items: center;
  margin-left: 2px;
}
#box2-inner .hatena-module-recent-comments .recent-comments li .user-id span {
  font-size: 0.7rem;
  margin-left: 2px;
}
#box2-inner .hatena-module-recent-comments .recent-comments li a {
  grid-area: title;
}
#box2-inner .hatena-module-recent-comments .recent-comments li .recent-comment-time {
  grid-area: date;
  color: var(--text-low-priority);
  font-size: 0.7rem;
  opacity: 1;
}
#box2-inner {
  /* 執筆者リスト */
}
#box2-inner .hatena-module-authors-list .hatena-urllist a {
  color: var(--text-body);
  font-weight: bold;
}
#box2-inner .hatena-module-authors-list .hatena-urllist a:hover {
  text-decoration: none;
}
#box2-inner .hatena-module-authors-list .hatena-urllist .authors-user-icon {
  width: 28px;
  height: 28px;
}

/* サイドバーモジュール全般設定 */
.hatena-module {
  font-size: 0.85rem;
}
@media (min-width: 768px) {
  .hatena-module {
    font-size: 0.9rem;
  }
}

.hatena-module-title {
  margin-bottom: 0.6em;
  padding-bottom: 0.2em;
  border-bottom: var(--module-title-border-width) solid var(--module-title-border);
  font-size: 1rem;
  font-weight: bold;
  text-align: left;
  color: var(--text-header);
  /* モジュールタイトルは中央揃え */
}
.hatena-module-title a {
  color: var(--text-body);
  text-decoration: none;
}
.hatena-module-title a:hover {
  text-decoration: none;
}

/* urllist全般のスタイル */
.hatena-urllist {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
.hatena-urllist li {
  padding: 0.5em 0;
}
.hatena-urllist li:last-child {
  padding-bottom: 0;
}
.hatena-urllist li a {
  color: var(--text-body);
  text-decoration: none;
}
.hatena-urllist li a:hover {
  text-decoration: underline;
}
.hatena-urllist .urllist-category-link {
  font-size: 0.7rem;
  padding: 0.1em 0.3em;
}
.hatena-urllist .urllist-date-link a {
  color: var(--text-low-priority);
}
.hatena-urllist .urllist-entry-body {
  margin-top: 0.3em;
}

/* もっと見る全般のスタイル */
.urllist-see-more a {
  color: var(--text-body);
  text-decoration: none;
}
.urllist-see-more a:hover {
  text-decoration: underline;
}

/* About ページ */
.page-about .entry-content .profile-icon {
  float: left;
  margin: 8px 10px 10px 0;
  display: block;
  height: 40px;
}
.page-about .entry-content a {
  font-weight: bold;
  color: var(--text-body);
  text-decoration: none;
}
.page-about .entry-content dt {
  font-weight: bold;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5em;
}
.page-about .entry-content dd {
  margin-left: 0;
  margin-bottom: 2em;
}

/* Archive */
.archive-header-category {
  text-align: center;
}

.page-archive .archive-entries {
  display: grid;
}
@media (min-width: 768px) {
  .page-archive .archive-entries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
    -moz-column-gap: 1.5rem;
         column-gap: 1.5rem;
    row-gap: 1rem;
  }
}
@media (max-width: 767px) {
  .page-archive .archive-entries {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
.page-archive {
  /* アーカイブエントリーのスタイル */
}
.page-archive .archive-entry {
  position: relative;
  display: grid;
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
  box-sizing: content-box;
  background-color: transparent;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "thumbnail header" "thumbnail categories" "thumbnail body";
  gap: 2px auto;
  align-items: left;
}
@media (min-width: 768px) {
  .page-archive .archive-entry {
    grid-template-columns: auto 0fr;
    grid-template-areas: "thumbnail" "header" "categories" "body";
    gap: 2px auto;
  }
}
.page-archive {
  /* アーカイブエントリーのヘッダー */
}
.page-archive .archive-entry-header {
  grid-area: header;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) {
  .page-archive .archive-entry-header {
    flex-basis: 100%;
  }
}
.page-archive .archive-entry-header h1 {
  font-size: 1.05rem;
  line-break: strict;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5rem;
}
.page-archive .entry-title {
  order: 1;
  margin: 0;
  padding: 0;
  text-align: left;
}
.page-archive .entry-title a {
  text-decoration: none;
}
.page-archive .entry-title a:hover {
  color: var(--text-header);
}
.page-archive .entry-title a {
  /* アーカイブページだけ訪問済みリンクの色を変える */
}
.page-archive .entry-title a:visited {
  color: var(--text-header-visited);
}
.page-archive .archive-date {
  order: 2;
  margin: 0.5em 0 0 0;
  padding: 0;
}
.page-archive {
  /* アーカイブエントリーのサムネイル */
}
.page-archive .entry-thumb-link {
  grid-area: thumbnail;
  padding: 0;
  max-width: 100%;
}
@media (min-width: 768px) {
  .page-archive .entry-thumb-link {
    margin: 0 0 10px 0;
    width: 100%;
    padding: 0;
  }
}
@media (max-width: 767px) {
  .page-archive .entry-thumb-link {
    margin: 0 10px 0 0;
    width: 100%;
    padding: 0;
  }
}
.page-archive .entry-thumb {
  height: 180px;
  width: inherit;
  background-size: contain;
  background-repeat: no-repeat;
  -o-object-fit: cover;
     object-fit: cover;
  margin-right: 0;
}
@media (min-width: 768px) {
  .page-archive .entry-thumb {
    background-position: bottom center;
  }
}
@media (max-width: 767px) {
  .page-archive .entry-thumb {
    background-position: top center;
    height: 120px;
    width: 120px;
  }
}
.page-archive {
  /* アーカイブエントリーのカテゴリ */
}
.page-archive .categories {
  grid-area: categories;
  margin: 0;
  padding: 0;
  font-size: 0.7rem;
  color: var(--text-low-priority);
}
.page-archive .categories a {
  color: var(--text-low-priority);
  text-decoration: none;
}
.page-archive .categories a:hover {
  text-decoration: underline;
}
.page-archive .archive-entry-body {
  grid-area: body;
}
.page-archive .archive-entry-body .entry-description {
  display: none;
  margin: 0;
  font-size: 0.85rem;
}
@media (min-width: 768px) {
  .page-archive .archive-entry-body .entry-description {
    font-size: 0.9rem;
  }
}
.page-archive .archive-entry-body .social-buttons {
  display: block;
  margin-top: 0.2em;
  line-height: 1em;
}

/* footer */
#footer {
  margin-top: 2em;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}
#footer a {
  color: var(--text-light);
}
#footer p {
  margin: 0.5em auto;
}

/* 目次のタイトル部分のスタイル */
.toc-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.8em 1em;
  margin: 0;
  font-weight: bold;
  color: var(--text-body);
  background-color: transparent;
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid var(--border);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.toc-title:hover {
  border-color: var(--border-hover);
}
.toc-title {
  /* 開閉アイコンのスタイル */
}
.toc-title .toc-toggle-icon {
  transition: transform 0.3s ease;
  width: 12px;
  height: 12px;
  position: relative;
}
.toc-title .toc-toggle-icon::before, .toc-title .toc-toggle-icon::after {
  content: "";
  position: absolute;
  background-color: var(--text-body);
  transition: all 0.3s ease;
}
.toc-title .toc-toggle-icon {
  /* 横線 */
}
.toc-title .toc-toggle-icon::before {
  width: 100%;
  height: 2px;
  top: 5px;
  left: 0;
}
.toc-title .toc-toggle-icon {
  /* 縦線（開いているときは表示、閉じているときは非表示） */
}
.toc-title .toc-toggle-icon::after {
  width: 2px;
  height: 100%;
  top: 0;
  left: 5px;
}

/* 閉じている状態のアイコン（縦線を表示） */
.toc-closed .toc-toggle-icon::after {
  transform: scaleY(1);
}

/* 開いている状態のアイコン（縦線を非表示） */
.toc-open .toc-toggle-icon::after {
  transform: scaleY(0);
}

/* 閉じているときのタイトル部分の角丸調整 */
.toc-closed .toc-title {
  border-radius: 10px;
}

/* 目次コンテンツ部分のトランジション */
.toc-content {
  transition: max-height 0.3s ease;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.toc-content::-webkit-scrollbar {
  width: 6px;
}
.toc-content::-webkit-scrollbar-track {
  background: transparent;
}
.toc-content::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 3px;
}

/* 閉じているときのスタイル */
.toc-closed .toc-content {
  max-height: 0;
  overflow: hidden;
}

/* 目次全体のマージン調整 */
ul.table-of-contents {
  margin-top: 0;
  margin-bottom: 1em;
  /* 閉じているときの角丸調整 */
}
ul.table-of-contents.toc-closed {
  border-radius: 10px;
}

/* タイトルがあるときの目次部分の角丸調整 */
.toc-container .table-of-contents {
  border-radius: 0 0 10px 10px;
}

@media (prefers-reduced-motion: reduce) {
  .toc-content {
    transition: none;
  }
}
/* 目次ボタンとフロート表示のスタイル */
/* 目次ボタン */
.toc-button {
  position: fixed;
  top: calc(1.1rem + var(--hatena-ui-band-offset));
  right: var(--toc-button-right);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: var(--bg-semi-transparent);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.3s ease;
  white-space: nowrap;
}
@media (min-width: 1540px) {
  .toc-button {
    display: none;
  }
}
@media (max-width: 767px) {
  .toc-button {
    top: auto;
    bottom: 1rem;
  }
}
.toc-button:hover {
  border-color: var(--border-hover);
}
.toc-button .toc-button-text {
  color: var(--text-body);
  margin-right: 4px;
}
.toc-button .toc-button-icon {
  position: relative;
  display: inline-block;
  margin-top: 1px;
}
.toc-button .toc-button-icon::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--border);
  border-right: 2px solid var(--border);
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}
.toc-button.active .toc-button-icon::before {
  transform: rotate(135deg);
}

/* フローティング目次コンテナ */
.floating-toc {
  position: fixed;
  top: calc(5em + var(--hatena-ui-band-offset));
  right: 1em;
  width: 250px;
  max-width: 80vw;
  background-color: var(--bg-semi-transparent);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 1.1em 1.3em;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
  font-size: 0.9em;
  max-height: calc(70vh - var(--hatena-ui-band-offset));
  overflow-y: auto;
  overflow-x: hidden;
}
@media (max-width: 767px) {
  .floating-toc {
    top: auto;
    bottom: 4rem;
    max-height: 60vh;
    transform: translateY(10px);
  }
}
.floating-toc::-webkit-scrollbar {
  width: 6px;
}
.floating-toc::-webkit-scrollbar-track {
  background: transparent;
}
.floating-toc::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 3px;
}
.floating-toc {
  /* 目次全体のホバー効果 */
}
.floating-toc:hover {
  box-shadow: 0 5px 15px var(--shadow-hover);
}
.floating-toc.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 1540px) {
  .floating-toc.auto-expanded {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    width: 250px;
    max-height: calc(80vh - var(--hatena-ui-band-offset));
  }
}
.floating-toc {
  /* ページトップへボタンのコンテナ */
}
.floating-toc .page-top-button-container {
  margin-bottom: 0.3em;
  text-align: left;
  line-height: 1.4;
}
.floating-toc {
  /* ページトップへボタン */
}
.floating-toc .page-top-button {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent;
  color: var(--text-low-priority);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: left;
}
.floating-toc .page-top-button::before {
  content: "↑";
  margin: 0 12px 0 1px;
  color: var(--text-low-priority);
}

/* 目次のリスト要素のスタイル調整 */
ul.floating-toc-list {
  position: relative;
  /* ボックスのリセット */
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  /* 目次内の縦線（Zenn風） */
}
ul.floating-toc-list::before {
  content: "";
  position: absolute;
  top: 1em;
  bottom: 0.5em;
  left: 0.3em;
  width: 3px;
  background-color: var(--toc-border-bg);
  z-index: 0;
}
ul.floating-toc-list {
  /* トップレベルの項目（h1とその他の見出し） */
}
ul.floating-toc-list > li {
  margin: 0.8em 0;
  padding-left: 1.2em;
  position: relative;
  transition: all 0.2s ease;
  /* 目次内の標準リストマーカーをすべて消す */
  list-style: none;
  /* h1項目の青丸マーカー */
}
ul.floating-toc-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 8px;
  height: 8px;
  background-color: var(--toc-marker);
  border: 2px solid var(--background);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.2s ease;
}
ul.floating-toc-list > li:hover::before {
  background-color: var(--toc-marker-hover);
}
ul.floating-toc-list > li {
  /* アクティブ状態の青丸マーカーのスタイル */
}
ul.floating-toc-list > li.active::before {
  background-color: var(--toc-marker-hover);
  box-shadow: 0 0 4px rgba(20, 135, 189, 0.5);
  transform: scale(1.2);
}
ul.floating-toc-list > li {
  /* すべてのトップレベル見出しのリンクスタイル基本設定 */
}
ul.floating-toc-list > li a {
  padding-left: 0em;
  margin: 0.2em 0;
  text-decoration: none;
  color: var(--text-low-priority);
  line-height: 1.4;
  /* アクティブ状態のリンクスタイル */
}
ul.floating-toc-list > li a.active {
  color: var(--text-body);
  font-weight: bold;
  background-color: var(--bg-toc-hover);
  border-radius: 15px;
  padding-right: 5px;
  transform: translateX(3px);
}
ul.floating-toc-list > li {
  /* h1見出しのリンクスタイル基本設定 */
}
ul.floating-toc-list > li > a {
  position: relative;
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1rem;
}
ul.floating-toc-list > li > a:visited {
  color: var(--text-low-priority);
}
ul.floating-toc-list > li > a:hover {
  color: var(--text-body);
  transform: translateX(3px);
  text-decoration: none;
  background-color: var(--bg-toc-hover);
  border-radius: 15px;
  padding-right: 5px;
}
ul.floating-toc-list > li {
  /* 子リスト（h2）のスタイル */
}
ul.floating-toc-list > li > ul {
  display: block;
  padding: 0;
  margin: 0.3em 0;
  /* h2階層の項目 */
}
ul.floating-toc-list > li > ul li {
  margin: 0.5em 0;
  position: relative;
  /* 目次内の標準リストマーカーをすべて消す */
  list-style: none;
  /* h2の青丸マーカー */
}
ul.floating-toc-list > li > ul li::before {
  content: "";
  position: absolute;
  left: -1.05em;
  top: 0.5em;
  width: 4px;
  height: 4px;
  background-color: var(--toc-marker);
  border: 2px solid var(--background);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.2s ease;
}
ul.floating-toc-list > li > ul li:hover::before {
  background-color: var(--toc-marker-hover);
}
ul.floating-toc-list > li > ul li {
  /* アクティブ状態のh2の青丸マーカーのスタイル */
}
ul.floating-toc-list > li > ul li.active::before {
  background-color: var(--toc-marker-hover);
  box-shadow: 0 0 4px rgba(20, 135, 189, 0.5);
  transform: scale(1.2);
}
ul.floating-toc-list > li > ul li {
  /* h2見出しのリンクスタイル基本設定 */
}
ul.floating-toc-list > li > ul li a {
  position: relative;
  display: flex;
  align-items: center;
  font-weight: normal;
  font-size: 0.95rem;
}
ul.floating-toc-list > li > ul li a:visited {
  color: var(--text-low-priority);
}
ul.floating-toc-list > li > ul li a:hover {
  color: var(--text-body);
  transform: translateX(3px);
  text-decoration: none;
  background-color: var(--bg-toc-hover);
  border-radius: 15px;
  padding-right: 5px;
}
ul.floating-toc-list > li > ul li a {
  /* アクティブ状態のリンクスタイル */
}
ul.floating-toc-list > li > ul li a.active {
  color: var(--text-body);
  font-weight: bold;
  background-color: var(--bg-toc-hover);
  border-radius: 15px;
  padding-right: 5px;
  transform: translateX(3px);
}
ul.floating-toc-list > li > ul li {
  /* h3以降を非表示 */
}
ul.floating-toc-list > li > ul li > ul {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .floating-toc,
  .floating-toc.show,
  .floating-toc.auto-expanded {
    transform: none;
    transition: opacity 0.3s;
  }
}
.code-block-wrapper {
  position: relative;
  margin: 1em 0;
}
.code-block-wrapper:hover .code-button, .code-block-wrapper:hover .code-wrap-toggle, .code-block-wrapper:hover .code-copy-button, .code-block-wrapper:focus-within .code-button, .code-block-wrapper:focus-within .code-wrap-toggle, .code-block-wrapper:focus-within .code-copy-button {
  opacity: 0.75;
}
@media screen and (hover: none) {
  .code-block-wrapper .code-button, .code-block-wrapper .code-wrap-toggle, .code-block-wrapper .code-copy-button {
    opacity: 0.75;
  }
}
.code-block-wrapper .code-button:focus-visible, .code-block-wrapper .code-wrap-toggle:focus-visible, .code-block-wrapper .code-copy-button:focus-visible {
  opacity: 1;
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
}

.code-block-wrapper pre.code {
  margin: 0;
}
@media screen and (hover: none) {
  .code-block-wrapper pre.code {
    padding-top: calc(15px + 28px + 5px);
  }
}

.code-block-wrapper pre.code.nowrap {
  white-space: pre;
  overflow-x: auto;
  text-overflow: initial;
}

.code-block-wrapper pre.code.wrap {
  white-space: pre-wrap;
  overflow-x: visible;
  word-break: break-all;
}

.code-button, .code-wrap-toggle, .code-copy-button {
  position: absolute;
  top: 0rem;
  margin: 15px;
  width: 28px;
  height: 28px;
  padding: 0;
  background-color: var(--bg-code);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  border: 1px solid var(--bg-code);
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
}
.code-button:hover, .code-wrap-toggle:hover, .code-copy-button:hover {
  opacity: 1;
  background-color: var(--bg-code);
}
.code-button, .code-wrap-toggle, .code-copy-button {
  /* コピー成功時とエラー時のスタイル */
}
.code-button.copied, .copied.code-wrap-toggle, .copied.code-copy-button {
  opacity: 1;
}
.code-button.copy-error, .copy-error.code-wrap-toggle, .copy-error.code-copy-button {
  opacity: 1;
}

.code-copy-button {
  right: 0rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='rgba(225, 225, 225, 0.75)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath fill-rule='evenodd' d='M2 11 V3.5 A1.5 1.5 0 0 1 3.5 2 H10' /%3E%3Crect fill-rule='evenodd' x='5' y='5' width='9' height='9' rx='1.5' /%3E%3C/svg%3E");
}

.code-wrap-toggle {
  right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(225, 225, 225, 0.75)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='7 8 3 12 7 16'/%3E%3Cpolyline points='17 8 21 12 17 16'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3C/svg%3E");
}

.code-button[title]:hover::after, [title].code-copy-button:hover::after, [title].code-wrap-toggle:hover::after,
.code-button[title]:focus-visible::after,
[title].code-copy-button:focus-visible::after,
[title].code-wrap-toggle:focus-visible::after {
  content: attr(title);
  position: absolute;
  top: -40px;
  right: 0;
  padding: 4px 8px;
  background-color: var(--bg-code-light);
  color: var(--text-code-tooltip);
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
}

.entry-content blockquote.markdown-alert {
  padding: 0.5em 1em;
  border-left: 3px solid var(--alert-color);
  color: var(--text-body);
}
.entry-content blockquote.markdown-alert > .markdown-alert-title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 0.25em;
  color: var(--alert-color);
  font-weight: 600;
}
.entry-content blockquote.markdown-alert > .markdown-alert-title::before {
  content: "";
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
}
@media (forced-colors: active) {
  .entry-content blockquote.markdown-alert > .markdown-alert-title::before {
    forced-color-adjust: none;
    background-color: CanvasText;
  }
}
.entry-content blockquote.markdown-alert > .markdown-alert-title + * {
  margin-top: 0;
}
.entry-content blockquote.markdown-alert.markdown-alert-note {
  --alert-color: var(--alert-note);
}
.entry-content blockquote.markdown-alert.markdown-alert-note > .markdown-alert-title::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.25'/%3E%3Cpath d='M8 7.25v3.75'/%3E%3Cpath d='M8 4.9v.01'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.25'/%3E%3Cpath d='M8 7.25v3.75'/%3E%3Cpath d='M8 4.9v.01'/%3E%3C/svg%3E");
}
.entry-content blockquote.markdown-alert.markdown-alert-tip {
  --alert-color: var(--alert-tip);
}
.entry-content blockquote.markdown-alert.markdown-alert-tip > .markdown-alert-title::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.75 10.5A4.5 4.5 0 1 1 10.25 10.5V12h-4.5z'/%3E%3Cpath d='M6.5 14.5h3'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.75 10.5A4.5 4.5 0 1 1 10.25 10.5V12h-4.5z'/%3E%3Cpath d='M6.5 14.5h3'/%3E%3C/svg%3E");
}
.entry-content blockquote.markdown-alert.markdown-alert-important {
  --alert-color: var(--alert-important);
}
.entry-content blockquote.markdown-alert.markdown-alert-important > .markdown-alert-title::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 3.5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7.5L4.5 14v-2.5h-1a1 1 0 0 1-1-1z'/%3E%3Cpath d='M8 4.9v2.85'/%3E%3Cpath d='M8 9.6v.01'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 3.5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7.5L4.5 14v-2.5h-1a1 1 0 0 1-1-1z'/%3E%3Cpath d='M8 4.9v2.85'/%3E%3Cpath d='M8 9.6v.01'/%3E%3C/svg%3E");
}
.entry-content blockquote.markdown-alert.markdown-alert-warning {
  --alert-color: var(--alert-warning);
}
.entry-content blockquote.markdown-alert.markdown-alert-warning > .markdown-alert-title::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.13 2.5a1 1 0 0 1 1.74 0l5.63 9.99a1 1 0 0 1-.87 1.49H2.37a1 1 0 0 1-.87-1.49z'/%3E%3Cpath d='M8 6.25v3'/%3E%3Cpath d='M8 11.4v.01'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.13 2.5a1 1 0 0 1 1.74 0l5.63 9.99a1 1 0 0 1-.87 1.49H2.37a1 1 0 0 1-.87-1.49z'/%3E%3Cpath d='M8 6.25v3'/%3E%3Cpath d='M8 11.4v.01'/%3E%3C/svg%3E");
}
.entry-content blockquote.markdown-alert.markdown-alert-caution {
  --alert-color: var(--alert-caution);
}
.entry-content blockquote.markdown-alert.markdown-alert-caution > .markdown-alert-title::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.3 1.75h5.4l3.55 3.55v5.4l-3.55 3.55H5.3l-3.55-3.55V5.3z'/%3E%3Cpath d='M8 4.9v3.6'/%3E%3Cpath d='M8 10.9v.01'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.3 1.75h5.4l3.55 3.55v5.4l-3.55 3.55H5.3l-3.55-3.55V5.3z'/%3E%3Cpath d='M8 4.9v3.6'/%3E%3Cpath d='M8 10.9v.01'/%3E%3C/svg%3E");
}

.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.category-cloud li a {
  display: inline-block;
  padding: 0.1rem 0.3rem;
  border-radius: 18px;
  border: 1px solid var(--border-light);
  text-decoration: none;
}
.category-cloud li a:hover {
  background-color: var(--bg-btn-hover);
  text-decoration: none;
}

.category-cloud-item {
  display: inline-block;
  margin: 0;
  padding: 0;
}
.category-cloud-item .category-size-1 {
  font-size: 85%;
}
.category-cloud-item .category-size-2 {
  font-size: 90%;
}
.category-cloud-item .category-size-3 {
  font-size: 100%;
}
.category-cloud-item .category-size-4 {
  font-size: 110%;
}
.category-cloud-item .category-size-5 {
  font-size: 120%;
}
.category-cloud-item .category-size-6 {
  font-size: 130%;
}
.category-cloud-item .category-size-7 {
  font-size: 140%;
}
.category-cloud-item .category-size-8 {
  font-size: 150%;
}
.category-cloud-item .category-size-9 {
  font-size: 160%;
}
.category-cloud-item .category-size-10 {
  font-size: 170%;
}

html[data-enable-dark-mode=true] {
  --toc-button-right: calc(1rem + 2.5rem + 0.5rem);
}
@media (max-width: 767px) {
  html[data-enable-dark-mode=true] {
    --toc-button-right: calc(1rem + 2.2rem + 0.5rem);
  }
}

.theme-toggle-container {
  position: fixed;
  top: calc(1rem + var(--hatena-ui-band-offset));
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}
.theme-toggle-container > * {
  pointer-events: auto;
}
@media (max-width: 767px) {
  .theme-toggle-container {
    top: auto;
    bottom: 1rem;
    flex-direction: column-reverse;
  }
}

.theme-toggle-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 2px 4px var(--shadow);
  background-color: var(--background);
  cursor: pointer;
  transition: all 0.3s ease;
}
.theme-toggle-main:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-btn-hover);
}
.theme-toggle-main .current-mode-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}
.theme-toggle-main .current-mode-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: var(--text-body);
}
@media (max-width: 767px) {
  .theme-toggle-main {
    width: 2.2rem;
    height: 2.2rem;
  }
  .theme-toggle-main .current-mode-icon svg {
    width: 1rem;
    height: 1rem;
  }
}

.theme-toggle-dropdown {
  display: none;
  flex-direction: column;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 2px 10px var(--shadow);
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  min-width: 150px;
}
@media (max-width: 767px) {
  .theme-toggle-dropdown {
    margin-top: 0;
    margin-bottom: 0.5rem;
  }
}
.theme-toggle-dropdown.show {
  display: flex;
  animation: fadeIn 0.2s ease-in-out;
}
.theme-toggle-dropdown .theme-toggle-option {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
  text-align: left;
}
.theme-toggle-dropdown .theme-toggle-option:hover {
  background-color: var(--bg-btn-hover);
}
.theme-toggle-dropdown .theme-toggle-option.active {
  background-color: var(--bg-toc-hover);
  font-weight: bold;
}
.theme-toggle-dropdown .theme-toggle-option .theme-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
}
.theme-toggle-dropdown .theme-toggle-option .theme-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-body);
}
.theme-toggle-dropdown .theme-toggle-option .theme-label {
  color: var(--text-body);
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle-dropdown.show {
    animation: none;
  }
}
html[data-enable-dark-mode=true][data-theme=dark] {
  --background: #1a1f27;
  --bg-light: #232a34;
  --bg-code: #272f3b;
  --bg-code-selection: rgba(170, 170, 170, 0.2509803922);
  --bg-code-light: #303a48;
  --bg-span: rgba(59, 87, 115, 0.6666666667);
  --bg-toc-hover: rgba(56, 139, 253, 0.1);
  --bg-archive-category: #1a1d21;
  --bg-archive-category-hover: rgb(23.4164174144%, 26.1183117315%, 29.7208374875%);
  --bg-btn-hover: #1a1d21;
  --bg-semi-transparent: rgba(26, 31, 39, 0.95);
  --text-body: #e6edf3;
  --text-low-priority: #8b949e;
  --text-light: #868686;
  --text-header: #e6edf3;
  --text-archive-category: #e6edf3;
  --text-header-visited: rgb(49.6555378908%, 63.7519872814%, 75.8346581876%);
  --text-code-tooltip: #c9d1d9;
  --link: #58a6ff;
  --link-hover: rgb(44.5098039216%, 70.4273805331%, 100%);
  --link-visited: rgb(20.9215686275%, 54.8616883879%, 93.5882352941%);
  --link-bg: rgba(56, 139, 253, 0.1);
  --border: #30363d;
  --border-hover: rgb(36.4382083108%, 40.9929843497%, 46.3068897284%);
  --border-light: #2a3039;
  --border-bq: #3b434b;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-light: rgba(0, 0, 0, 0.2);
  --shadow-hover: rgba(0, 0, 0, 0.4);
  --scrollbar-thumb: rgba(255, 255, 255, 0.25);
  --toc-border-bg: #203a5d;
  --toc-marker: #58a6ff;
  --toc-marker-hover: rgb(54.5098039216%, 75.7567218504%, 100%);
  --table-th-bg: #161b22;
  --table-border: #30363d;
  --alert-note: #4493f8;
  --alert-tip: #3fb950;
  --alert-important: #ab7df8;
  --alert-warning: #d29922;
  --alert-caution: #f85149;
  --codeblock-language-colors-text: #fff;
  --codeblock-language-colors-keyword: #ff8fa3;
  --codeblock-language-colors-function: #38c7ff;
  --codeblock-language-colors-punctuation: #939bc1;
  --codeblock-language-colors-number: #ffc56d;
  --codeblock-language-colors-comment: #8b949e;
}

@media (prefers-color-scheme: dark) {
  html[data-enable-dark-mode=true]:not([data-theme=light]):not([data-theme=dark]) {
    --background: #1a1f27;
    --bg-light: #232a34;
    --bg-code: #272f3b;
    --bg-code-selection: rgba(170, 170, 170, 0.2509803922);
    --bg-code-light: #303a48;
    --bg-span: rgba(59, 87, 115, 0.6666666667);
    --bg-toc-hover: rgba(56, 139, 253, 0.1);
    --bg-archive-category: #1a1d21;
    --bg-archive-category-hover: rgb(23.4164174144%, 26.1183117315%, 29.7208374875%);
    --bg-btn-hover: #1a1d21;
    --bg-semi-transparent: rgba(26, 31, 39, 0.95);
    --text-body: #e6edf3;
    --text-low-priority: #8b949e;
    --text-light: #868686;
    --text-header: #e6edf3;
    --text-archive-category: #e6edf3;
    --text-header-visited: rgb(49.6555378908%, 63.7519872814%, 75.8346581876%);
    --text-code-tooltip: #c9d1d9;
    --link: #58a6ff;
    --link-hover: rgb(44.5098039216%, 70.4273805331%, 100%);
    --link-visited: rgb(20.9215686275%, 54.8616883879%, 93.5882352941%);
    --link-bg: rgba(56, 139, 253, 0.1);
    --border: #30363d;
    --border-hover: rgb(36.4382083108%, 40.9929843497%, 46.3068897284%);
    --border-light: #2a3039;
    --border-bq: #3b434b;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    --scrollbar-thumb: rgba(255, 255, 255, 0.25);
    --toc-border-bg: #203a5d;
    --toc-marker: #58a6ff;
    --toc-marker-hover: rgb(54.5098039216%, 75.7567218504%, 100%);
    --table-th-bg: #161b22;
    --table-border: #30363d;
    --alert-note: #4493f8;
    --alert-tip: #3fb950;
    --alert-important: #ab7df8;
    --alert-warning: #d29922;
    --alert-caution: #f85149;
    --codeblock-language-colors-text: #fff;
    --codeblock-language-colors-keyword: #ff8fa3;
    --codeblock-language-colors-function: #38c7ff;
    --codeblock-language-colors-punctuation: #939bc1;
    --codeblock-language-colors-number: #ffc56d;
    --codeblock-language-colors-comment: #8b949e;
  }
}
/*
 * ダークテーマのときは背景をテーマが支配する。
 *
 * ライトの背景色はカスケードレイヤーに入れてユーザーの設定に譲るが(_core.scssを参照)、
 * ダークでは譲れない。本文が明るい色になるため、ユーザーが設定した明るい背景が残ると
 * 白地に白文字のような状態になり読めなくなる。
 * レイヤーに入れず、htmlの属性セレクタ込みの詳細度で上書きする。
 */
html[data-enable-dark-mode=true][data-theme=dark],
html[data-enable-dark-mode=true][data-theme=dark] body {
  background-color: var(--background);
}

@media (prefers-color-scheme: dark) {
  html[data-enable-dark-mode=true]:not([data-theme=light]):not([data-theme=dark]),
  html[data-enable-dark-mode=true]:not([data-theme=light]):not([data-theme=dark]) body {
    background-color: var(--background);
  }
}
/*
 * 印刷用スタイル
 *
 * 紙は横スクロールも開閉操作もできないため、画面と同じ描画では内容が欠落する。
 * 実測ではコードブロックが紙幅を3957px超過して85%が切れ、閉じたdetailsの中身は
 * まったく印刷されなかった。
 * また印刷ダイアログの「背景のグラフィック」は既定でオフのため、暗い背景に載る
 * 前提のコード配色は白地ではほとんど読めない。
 *
 * このファイルはstyle.scssの最後に読み込み、各コンポーネントの指定を
 * !importantなしで上書きできるようにしている。
 */
@media print {
  /* 紙は白地固定なので、画面がダークモードでも印刷はライトの配色で刷る。
     ダークモードの本文色は白に近く(#e6edf3)、背景が印刷されないと白紙に白文字になり
     本文がまるごと読めなくなる(実測でコントラスト比1.18)。

     ダークの値は_dark_mode.scssの2つのセレクタに乗っているため、同じ形のセレクタを
     並べて詳細度を揃え、読み込み順(style.scssの最後)で後勝ちさせる */
  :root,
  html[data-enable-dark-mode=true][data-theme=dark],
  html[data-enable-dark-mode=true]:not([data-theme=light]):not([data-theme=dark]) {
    --background: #fafafa;
    --bg-light: #efefef;
    --bg-code: #1a2638;
    --bg-code-selection: rgba(170, 170, 170, 0.2509803922);
    --bg-code-light: #2a3c52;
    --bg-span: rgba(33, 90, 160, 0.0705882353);
    --bg-toc-hover: rgba(20, 135, 189, 0.05);
    --bg-archive-category: #222a20;
    --bg-archive-category-hover: rgb(27.1171171171%, 33.4976152623%, 25.5219925808%);
    --bg-btn-hover: #efefef;
    --bg-semi-transparent: rgba(250, 250, 250, 0.95);
    --text-body: #1B1B1B;
    --text-low-priority: #6c6c6c;
    --text-light: #737373;
    --text-header: #333;
    --text-archive-category: #fff;
    --text-header-visited: rgb(50%, 50%, 50%);
    --text-code-tooltip: #c9d1d9;
    --link: #0656ac;
    --link-hover: #05458a;
    --link-visited: #6F2DBD;
    --link-bg: rgba(20, 135, 189, 0.1);
    --border: #ddd;
    --border-hover: #aaaaaa;
    --border-light: #d6e3ed;
    --border-bq: #8f9faa;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    --scrollbar-thumb: rgba(0, 0, 0, 0.2);
    --toc-border-bg: #e0efff;
    --toc-marker: #bfdcff;
    --toc-marker-hover: rgb(0.7859342084%, 46.3701182953%, 94.3121050073%);
    --table-th-bg: #e6ecf2;
    --table-border: #d6e3ed;
    --alert-note: #0969da;
    --alert-tip: #1a7f37;
    --alert-important: #8250df;
    --alert-warning: #9a6700;
    --alert-caution: #d1242f;
    --codeblock-language-colors-text: #fff;
    --codeblock-language-colors-keyword: #ff8fa3;
    --codeblock-language-colors-function: #38c7ff;
    --codeblock-language-colors-punctuation: #939bc1;
    --codeblock-language-colors-number: #ffc56d;
    --codeblock-language-colors-comment: #8b949e;
  }
  /* テーマが置く操作専用のUI。position: fixedの要素はChromeの印刷では全ページに繰り返し出力される。
     .code-copy-button / .code-wrap-toggle は @extend .code-button だが、
     @extendは@useのモジュール境界を越えないため個別に指定する */
  .toc-button,
  .floating-toc,
  .theme-toggle-container,
  .code-button,
  .code-copy-button,
  .code-wrap-toggle {
    display: none;
  }
  /* はてなが置く操作専用のUI。紙では押せないうえ、記事の内容でもない。
     実測でグローバルヘッダ56px、「読者になる」の帯55px、シェアボタン55px、スター30px。
     .entry-header-menu(記事の編集ボタン)はブログ主にログイン時のみ描画される。
     コメント欄(.comment-box)は投稿フォームと既存コメントが同居しており、
     既存コメントは記事の一部とも読めるため対象にしていない */
  #globalheader-container,
  .blog-controlls,
  .entry-header-menu,
  .hatena-star-container,
  .social-buttons {
    display: none;
  }
  /* ナビゲーションであり記事の一部ではない。
     サイドバーは実測でページ全体の16%(1502px)、記事下の関連記事は271px、
     ページャー(前の記事/次の記事)は96pxを占める */
  #box2,
  #entry-footer-secondary-modules,
  .pager {
    display: none;
  }
  .entry-content pre,
  .entry-content .code-block-wrapper pre.code,
  .entry-content .code-block-wrapper pre.code.nowrap,
  .entry-content .code-block-wrapper pre.code.wrap {
    white-space: pre-wrap;
    word-break: break-all;
    overflow: visible;
  }
  .entry-content pre {
    background: #fff;
    border: 1px solid #999;
    box-shadow: none;
    color: #1B1B1B;
    --codeblock-language-colors-text: #1B1B1B;
    --codeblock-language-colors-keyword: #8250df;
    --codeblock-language-colors-function: #0969da;
    --codeblock-language-colors-punctuation: #1B1B1B;
    --codeblock-language-colors-number: #9a6700;
    --codeblock-language-colors-comment: #747474;
  }
  .entry-content details:not([open]) > *:not(summary) {
    display: block;
  }
  .entry-content details::details-content {
    content-visibility: visible;
    block-size: auto;
  }
}
/* </system> */

#title a {
  font-family: 'Kaushan Script', cursive, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Helvetica Neue", "Helvetica", "Noto Sans JP", "Meiryo", sans-serif, "Segoe UI Emoji";
}