@charset "UTF-8";
  .toc-item[data-active].svelte-3tnegv {
    font-weight: 500;
    color: var(--primary);
    border-left-color: var(--primary);
  }

  .toc-subitem[data-active].svelte-3tnegv .indicator:where(.svelte-3tnegv) {
    height: 50%;
    opacity: 1;
    background-color: var(--secondary);
  }

  .comments-section.svelte-1agdpc9 {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
  }

  .dark .comments-section.svelte-1agdpc9 {
    border-top-color: #374151;
  }

.ContentMd {
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --base-text: var(--text-primary);
  font-family: var(--body-font);
  line-height: 1.7;
  color: var(--base-text);
}
.ContentMd {
  /* ヘディング共通スタイル */
  /* h1 - メインタイトル */
  /* h2 - セクションタイトル */
  /* h3 - サブセクションタイトル */
  /* h4 - 小見出し */
  /* 段落 */
  /* リンク */
}
.ContentMd h1,
.ContentMd h2,
.ContentMd h3,
.ContentMd h4,
.ContentMd h5,
.ContentMd h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}
.ContentMd h1 {
  font-size: 2.5rem;
  margin-top: 0;
  padding-bottom: var(--space-2);
  position: relative;
}
.ContentMd h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary) 70%, var(--secondary) 100%);
  border-radius: 3px;
}
.ContentMd h2 {
  font-size: 2rem;
  margin-top: var(--space-6);
  padding-bottom: var(--space-2);
  position: relative;
  border-bottom: 1px solid var(--border);
}
.ContentMd h2::before {
  content: "";
  position: absolute;
  top: -0.8rem;
  left: 0;
  width: 3rem;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
}
.ContentMd h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), transparent);
  border-radius: 1.5px;
}
.ContentMd h3 {
  font-size: 1.5rem;
  margin-top: var(--space-5);
  padding-left: var(--space-3);
  position: relative;
  display: flex;
  align-items: center;
  /* 装飾的な背景効果 */
}
.ContentMd h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 4px;
}
.ContentMd h3::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  opacity: 0.1;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: -1;
}
.ContentMd h4 {
  font-size: 1.25rem;
  margin-top: var(--space-4);
  position: relative;
  padding-left: var(--space-2);
}
.ContentMd h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transform: translateY(-50%) rotate(45deg);
}
.ContentMd p {
  margin: var(--space-3) 0;
  line-height: 1.7;
}
.ContentMd p img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin: var(--space-3) 0;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  border: 3px solid white;
  outline: 1px solid rgba(0, 0, 0, 0.05);
}
.ContentMd p img:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.ContentMd a {
  color: var(--primary);
  text-decoration: none;
  position: relative;
  padding: 0 2px;
  transition: color 0.3s ease;
}
.ContentMd a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}
.ContentMd a:hover {
  color: var(--secondary);
}
.ContentMd a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
.ContentMd {
  /* 引用ブロック */
  /* 順序付きリスト */
  /* 箇条書きリスト */
  /* 入れ子リスト */
}
.ContentMd blockquote {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  position: relative;
  font-style: italic;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background: rgba(var(--primary-rgb), 0.03);
  /* 装飾的な引用符 */
  /* 下の装飾ライン */
}
.ContentMd blockquote::before {
  content: '"';
  position: absolute;
  top: -30px;
  left: 20px;
  font-size: 5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.15;
  font-family: Georgia, serif;
}
.ContentMd blockquote::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 4px;
  width: 50%;
  height: 2px;
  background-color: var(--primary);
  opacity: 0.3;
}
.ContentMd blockquote p {
  margin: 0.5rem 0;
  padding-left: var(--space-2);
  position: relative;
  z-index: 1;
}
.ContentMd blockquote cite {
  display: block;
  text-align: right;
  margin-top: var(--space-2);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 500;
  color: var(--secondary);
}
.ContentMd blockquote cite::before {
  content: "— ";
}
.ContentMd ol {
  counter-reset: item;
  list-style-type: none;
  padding: 0;
  margin: var(--space-4) 0;
}
.ContentMd ol li {
  position: relative;
  padding: var(--space-2) var(--space-3) var(--space-2) calc(var(--space-5) + 0.5rem);
  margin-bottom: var(--space-2);
  border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  background: rgba(var(--primary-rgb), 0.03);
  /* 連続するli要素のスタイリング */
}
.ContentMd ol li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  box-shadow: 0 2px 5px rgba(var(--primary-rgb), 0.2);
  background: rgba(255, 255, 255, 0.8);
}
.ContentMd ol li:hover {
  transform: translateX(5px) translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  background: rgba(var(--primary-rgb), 0.05);
}
.ContentMd ol li + li {
  margin-top: -0.5rem;
}
.ContentMd ul {
  list-style-type: none;
  padding: 0;
  margin: var(--space-4) 0;
}
.ContentMd ul li {
  position: relative;
  padding: var(--space-2) var(--space-3) var(--space-2) calc(var(--space-4) + 0.5rem);
  margin-bottom: var(--space-2);
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(var(--border-rgb), 0.3);
  background: rgba(var(--secondary-rgb), 0.02);
  /* 連続するli要素のスタイリング */
}
.ContentMd ul li::before {
  content: "";
  position: absolute;
  left: var(--space-2);
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border: 2px solid var(--secondary);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(var(--secondary-rgb), 0.2);
  background: rgba(255, 255, 255, 0.6);
}
.ContentMd ul li:hover {
  transform: translateX(8px);
  background: rgba(var(--secondary-rgb), 0.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.ContentMd ul li + li {
  margin-top: -0.5rem;
}
.ContentMd ul ul,
.ContentMd ol ol,
.ContentMd ul ol,
.ContentMd ol ul {
  margin: var(--space-2) 0 0 var(--space-2);
}
.ContentMd ul ul li,
.ContentMd ol ol li,
.ContentMd ul ol li,
.ContentMd ol ul li {
  margin-bottom: var(--space-1);
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
  border-bottom: none;
  box-shadow: none;
}
.ContentMd ul ul li::before,
.ContentMd ol ol li::before,
.ContentMd ul ol li::before,
.ContentMd ol ul li::before {
  width: 8px;
  height: 8px;
  border-width: 1px;
}
.ContentMd {
  /* テーブルコンテナ - レスポンシブ対応 */
  /* テーブル基本スタイル */
}
.ContentMd .table-responsive {
  margin: var(--space-4) 0;
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.ContentMd table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(var(--primary-rgb), 0.02);
  /* ヘッダーセルスタイル */
  /* 最後の行のセル */
  /* セル内の段落マージンリセット */
  /* 行ホバー効果 */
  /* 偶数行の背景色 - ゼブラストライプ */
}
.ContentMd table th,
.ContentMd table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.ContentMd table th {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  /* 列ヘッダーの境界線 */
  /* 角丸処理 */
}
.ContentMd table th:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}
.ContentMd table th:first-child {
  border-top-left-radius: 10px;
}
.ContentMd table th:last-child {
  border-top-right-radius: 10px;
}
.ContentMd table th p {
  margin: 0;
  color: white;
}
.ContentMd table tr:last-child td {
  border-bottom: none;
}
.ContentMd table tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}
.ContentMd table tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}
.ContentMd table td p {
  margin: 0;
}
.ContentMd table tr:hover {
  background-color: rgba(var(--primary-rgb), 0.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.ContentMd table tr:nth-child(even) {
  background-color: rgba(var(--primary-rgb), 0.03);
}
.ContentMd {
  /* コードブロック */
}
.ContentMd pre {
  margin: var(--space-4) 0;
  padding: var(--space-3);
  border-radius: 10px;
  overflow-x: auto;
  position: relative;
  border-top: 3px solid var(--primary);
  /* コードブロックの言語表示 */
}
.ContentMd pre::before {
  content: attr(data-language);
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
.ContentMd pre .shiki-pending {
  opacity: 0;
}
.ContentMd {
  /* レシピセクション */
  /* 画像ギャラリー */
  /* IFrame コンテナ */
}
.ContentMd .recipe-sections {
  margin: var(--space-5) 0;
  padding: var(--space-4);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(var(--border-rgb), 0.1);
  position: relative;
  overflow: hidden;
  /* CSS Counter初期化 */
  counter-reset: recipe-step;
  /* 背景のパターン装飾 */
  /* トップの装飾バー */
}
.ContentMd .recipe-sections::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background-image: radial-gradient(var(--primary) 1px, transparent 1px), radial-gradient(var(--secondary) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  opacity: 0.05;
  border-radius: 0 15px 0 0;
  pointer-events: none;
  z-index: 0;
}
.ContentMd .recipe-sections::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: var(--primary);
  z-index: 1;
}
.ContentMd .recipe-sections.recipe-level-1 {
  border-left: 4px solid var(--secondary);
}
.ContentMd .recipe-sections h2 {
  display: flex;
  align-items: center;
  padding-left: 4rem;
  margin-top: var(--space-4);
  position: relative;
  border-bottom: none;
  z-index: 1;
  /* カウンターをインクリメント */
  counter-increment: recipe-step;
}
.ContentMd .recipe-sections h2::before {
  content: counter(recipe-step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}
.ContentMd .recipe-sections h2::after {
  display: none;
}
.ContentMd .recipe-image-gallery,
.ContentMd .gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: var(--space-4);
  border-radius: 15px;
  border: 1px solid rgba(var(--border-rgb), 0.1);
  background-color: rgba(var(--primary-rgb), 0.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  /* 装飾的な角と背景 */
}
.ContentMd .recipe-image-gallery::before, .ContentMd .recipe-image-gallery::after,
.ContentMd .gallery::before,
.ContentMd .gallery::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0.1;
  z-index: 0;
}
.ContentMd .recipe-image-gallery::before,
.ContentMd .gallery::before {
  top: -30px;
  left: -30px;
  background-color: var(--primary);
  border-radius: 50%;
}
.ContentMd .recipe-image-gallery::after,
.ContentMd .gallery::after {
  bottom: -30px;
  right: -30px;
  background-color: var(--secondary);
  border-radius: 50%;
}
.ContentMd .recipe-image-gallery.gallery-level-1,
.ContentMd .gallery.gallery-level-1 {
  border-left: 4px solid var(--secondary);
}
.ContentMd .recipe-image-gallery p,
.ContentMd .gallery p {
  margin: 0;
  padding: 0;
  display: contents;
}
.ContentMd .recipe-image-gallery img,
.ContentMd .gallery img {
  min-width: 80px;
  max-width: 180px;
  width: calc(25% - 0.75rem);
  height: auto;
  aspect-ratio: 1/1;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin: 0 !important;
  border: 3px solid white;
  z-index: 1;
  position: relative;
}
.ContentMd .recipe-image-gallery img:hover,
.ContentMd .gallery img:hover {
  transform: scale(1.05) translateY(-10px) rotate(2deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 2;
}
.ContentMd .iframe-container {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  margin: var(--space-4) 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.ContentMd .iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}
.ContentMd {
  /* セクション基本スタイル */
  /* ISSUE セクション */
  /* SOLUTION セクション */
  /* CAUSE セクション */
  /* ATTEMPTED セクション */
}
.ContentMd .bugfix-section {
  position: relative;
  margin: 1.5rem 0;
  border-radius: var(--border-radius, 0.5rem);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  overflow: visible;
  /* セクション間をつなぐ線 - 同じタイプの連続するセクション間のみ表示 */
  /* セクションコンテンツスタイル */
}
.ContentMd .bugfix-section.bugfix-issue + .bugfix-issue::before, .ContentMd .bugfix-section.bugfix-solution + .bugfix-solution::before, .ContentMd .bugfix-section.bugfix-cause + .bugfix-cause::before, .ContentMd .bugfix-section.bugfix-attempted + .bugfix-attempted::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  /* 上のセクションとの間 */
  left: 2.5rem;
  /* 左マージン + アイコンの中心までの距離 */
  width: 2px;
  /* 線の太さ */
  height: 1.5rem;
  /* 線の長さ */
  z-index: 1;
}
.ContentMd .bugfix-section-header {
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}
.ContentMd .bugfix-section-header span {
  display: flex;
  align-items: center;
  position: relative;
}
.ContentMd .bugfix-section-header span::before {
  content: attr(data-letter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.25rem;
  margin-right: 0.75rem;
  font-weight: bold;
  font-size: 0.875rem;
  position: relative;
  z-index: 2;
}
.ContentMd .bugfix-section-content {
  padding: 1rem;
  background-color: var(--bg-primary);
}
.ContentMd .bugfix-issue .bugfix-section-header {
  background-color: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}
.ContentMd .bugfix-issue .bugfix-section-header span::before {
  background-color: #ef4444;
  color: white;
}
.ContentMd .bugfix-issue + .bugfix-issue::before {
  background: #ef4444;
}
.ContentMd .bugfix-solution .bugfix-section-header {
  background-color: rgba(34, 197, 94, 0.1);
  color: #166534;
}
.ContentMd .bugfix-solution .bugfix-section-header span::before {
  background-color: #22c55e;
  color: white;
}
.ContentMd .bugfix-solution + .bugfix-solution::before {
  background: #22c55e;
}
.ContentMd .bugfix-cause .bugfix-section-header {
  background-color: rgba(251, 191, 36, 0.1);
  color: #b45309;
}
.ContentMd .bugfix-cause .bugfix-section-header span::before {
  background-color: #f59e0b;
  color: white;
}
.ContentMd .bugfix-cause + .bugfix-cause::before {
  background: #f59e0b;
}
.ContentMd .bugfix-attempted .bugfix-section-header {
  background-color: rgba(79, 70, 229, 0.1);
  color: #4338ca;
}
.ContentMd .bugfix-attempted .bugfix-section-header span::before {
  background-color: #6366f1;
  color: white;
}
.ContentMd .bugfix-attempted + .bugfix-attempted::before {
  background: #6366f1;
}
/* ダークモード調整 */
.dark .ContentMd {
  /* 引用ブロック */
  /* リスト */
  /* テーブル */
  /* コード */
  /* ギャラリー */
  /* リンク */
  /* レシピセクション */
  /* 画像 */
}
.dark .ContentMd blockquote {
  background-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.dark .ContentMd blockquote::before {
  opacity: 0.08;
}
.dark .ContentMd ol li {
  background-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.dark .ContentMd ol li:hover {
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.dark .ContentMd ol li::before {
  background-color: rgba(30, 30, 30, 0.8);
}
.dark .ContentMd ul li {
  background-color: rgba(255, 255, 255, 0.02);
}
.dark .ContentMd ul li:hover {
  background-color: rgba(255, 255, 255, 0.04);
}
.dark .ContentMd ul li::before {
  background-color: rgba(30, 30, 30, 0.6);
}
.dark .ContentMd table {
  background-color: rgba(255, 255, 255, 0.02);
}
.dark .ContentMd table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.dark .ContentMd table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}
.dark .ContentMd pre {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
.dark .ContentMd .gallery,
.dark .ContentMd .recipe-image-gallery {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.02);
}
.dark .ContentMd .gallery img,
.dark .ContentMd .recipe-image-gallery img {
  border-color: rgba(30, 30, 30, 0.6);
}
.dark .ContentMd a:hover {
  color: var(--secondary);
}
.dark .ContentMd .recipe-sections {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.dark .ContentMd p img {
  border-color: rgba(30, 30, 30, 0.6);
  outline-color: rgba(255, 255, 255, 0.05);
}
