@charset "UTF-8";
  .toc-container.svelte-1r6c24o {
    margin: 1rem 2rem 1rem 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-right: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
  }

  .toc-header.svelte-1r6c24o {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 2.5rem;
    border-right: 3px solid var(--primary);
    padding-right: 1rem;
    color: var(--primary);
    letter-spacing: 0.1em;
  }

  .toc-item.svelte-1r6c24o {
    margin: 0 1rem 3rem 0;
    position: relative;
    padding-right: 1.5rem;
    transition: all 0.2s ease;

    &:not(:last-child)::after {
      content: '';
      position: absolute;
      top: calc(100% + 1.5rem);
      right: 0;
      width: 40%;
      height: 1px;
      background: rgba(255, 255, 255, 0.2);
    }
  }

  /* (unused) .main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 3rem 2.5rem 1rem;
    line-height: 1.4;
    letter-spacing: 0.05em;
    writing-mode: vertical-rl;
    position: relative;
    color: var(--primary);
    border-right: 4px solid var(--primary);
    padding-right: 1.5rem;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
  }*/

  /* (unused) .main-title::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
  }*/

.japanese-novel {
  writing-mode: vertical-rl !important;
  text-orientation: mixed;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 24px 16px;
  overflow-x: auto;
  /* 横スクロールを有効に */
  overflow-y: hidden;
  text-align: justify;
  line-height: 2;
  letter-spacing: 0.03em;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "YuMincho", "Yu Mincho", serif;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 100, 100, 0.2) transparent;
  /* 禁則処理 */
  text-justify: inter-ideograph;
  /* 引用スタイル */
  /* リストスタイル */
  /* 画像スタイル */
  /* コードブロック */
}
.japanese-novel .tcy {
  text-combine-upright: all;
  text-align: center;
}
.japanese-novel p {
  margin: 0 1.5em;
  text-indent: 1em;
  position: relative;
}
.japanese-novel h2.h2-custom {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 3rem 2.5rem 1.5rem 1rem;
  padding-right: 0.5rem;
  color: var(--primary);
  letter-spacing: 0.05em;
}
.japanese-novel h3.h3-custom {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 2rem 2rem 1rem 1rem;
  padding-right: 0.5rem;
  color: var(--secondary);
  letter-spacing: 0.03em;
}
.japanese-novel blockquote {
  margin: 1.5em;
  padding: 0.5em 1.2em;
  border-right: 2px solid var(--primary);
  background-color: var(--primary-light);
  position: relative;
}
.japanese-novel ul,
.japanese-novel ol {
  padding-right: 2em;
  padding-left: 0;
}
.japanese-novel ul li,
.japanese-novel ol li {
  margin-bottom: 0.8em;
  position: relative;
}
.japanese-novel ul li::before {
  content: "";
  position: absolute;
  right: -1.2em;
  top: 0.8em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}
.japanese-novel ol {
  counter-reset: list-counter;
}
.japanese-novel ol li {
  counter-increment: list-counter;
}
.japanese-novel ol li::before {
  content: counter(list-counter);
  position: absolute;
  right: -1.8em;
  text-align: center;
  font-size: 0.85em;
  color: var(--primary);
}
.japanese-novel img {
  max-height: 80vh;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
  margin: 1em;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}
.japanese-novel img:hover {
  transform: scale(1.01);
}
.japanese-novel pre,
.japanese-novel code {
  font-family: "Source Code Pro", monospace;
  background: var(--primary-light);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}
.japanese-novel pre {
  padding: 1em;
  margin: 1.5em;
  writing-mode: horizontal-tb;
  direction: ltr;
  text-align: left;
  max-width: 80vh;
  max-height: 60vh;
  overflow: auto;
}
.japanese-novel pre code {
  background: none;
  padding: 0;
}
.horizontal-scroll-wrapper.svelte-f3i9h2 {
    display: flex;
    flex-direction: row-reverse;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    background-color: var(--surface);

    /* デザイン性を高めたスクロールバー */
    &::-webkit-scrollbar {
      height: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background-color: var(--primary);
      border-radius: 3px;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* ページグリッド線 - 和本風のデザイン */
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: linear-gradient(to left, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
      background-size: 24px 100%;
      pointer-events: none;
      z-index: 1;
    }
  }
/* セクション */
.book-section.svelte-f3i9h2 {
    flex: 0 0 auto;
    width: 100vw;
    min-width: 100vw;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    /* スクロール可能エリアを確保 */
    overflow: hidden;
  }
/* 章節境界を設定 */
.book-section.content-section.svelte-f3i9h2 {
    position: relative;
    
    &::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      height: 100%;
      width: 4px;
      background: linear-gradient(to bottom, transparent, var(--primary), transparent);
      opacity: 0.3;
      z-index: 1;
    }
  }

  .thin-scrollbar.svelte-n6uai1 {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
  }
  .thin-scrollbar.svelte-n6uai1::-webkit-scrollbar {
    width: 4px;
  }
  .thin-scrollbar.svelte-n6uai1::-webkit-scrollbar-thumb {
    background-color: var(--primary-light);
    border-radius: 3px;
  }

.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);
}
.thin-scrollbar.svelte-1poqav9 {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
  }
.thin-scrollbar.svelte-1poqav9::-webkit-scrollbar {
    width: 6px;
  }
.thin-scrollbar.svelte-1poqav9::-webkit-scrollbar-thumb {
    background-color: var(--primary-light);
    border-radius: 3px;
  }

  .magazine-inspired-layout.svelte-1ycl9rt {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Helvetica Neue', Arial, sans-serif;
  }
  
  /* フィーチャーレシピスタイル - 全幅で印象的に */
  .featured-recipe.svelte-1ycl9rt {
    position: relative;
    height: 80vh;
    min-height: 500px;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    
    &:hover {
      .featured-image:where(.svelte-1ycl9rt) {
        transform: scale(1.03);
      }
      
      .featured-title-area:where(.svelte-1ycl9rt) {
        transform: translateY(-10px);
      }
    }
    
    .featured-image-wrapper:where(.svelte-1ycl9rt) {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
    }
    
    .featured-image:where(.svelte-1ycl9rt) {
      width: 100%;
      height: 100%;
      -o-object-fit: cover;
         object-fit: cover;
      transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    }
    
    .featured-gradient:where(.svelte-1ycl9rt) {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 70%;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
      z-index: 2;
    }
    
    .featured-content:where(.svelte-1ycl9rt) {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 3;
      padding: 5% 10%;
      color: white;
    }
    
    .featured-title-area:where(.svelte-1ycl9rt) {
      max-width: 800px;
      transition: transform 0.5s ease;
      
      h2:where(.svelte-1ycl9rt) {
        font-size: clamp(2rem, 5vw, 3.5rem);
        font-weight: 700;
        line-height: 1.1;
        margin-bottom: 1rem;
        letter-spacing: -0.02em;
      }
      
      .featured-description:where(.svelte-1ycl9rt) {
        font-size: clamp(1rem, 2vw, 1.25rem);
        line-height: 1.5;
        margin-bottom: 1.5rem;
        opacity: 0.9;
        max-width: 36rem;
      }
      
      .tag:where(.svelte-1ycl9rt) {
        display: inline-block;
        padding: 0.5rem 1.5rem;
        background-color: white;
        color: #222;
        font-size: 0.875rem;
        font-weight: 600;
        border-radius: 2px;
      }
    }
  }
  
  /* スクロールヒント */
  .scroll-hint.svelte-1ycl9rt {
    padding: 1.5rem 2rem;
    font-size: 0.875rem;
    color: #666;
    text-align: right;
    
    span:where(.svelte-1ycl9rt) {
      display: inline-block;
      animation: svelte-1ycl9rt-bounceRight 1.5s infinite;
    }
    
    @keyframes svelte-1ycl9rt-bounceRight {
      0%, 100% { transform: translateX(0); }
      50% { transform: translateX(10px); }
    }
  }
  
  /* 水平スクロールレイアウト */
  .recipes-slider.svelte-1ycl9rt {
    display: flex;
    gap: 2rem;
    padding: 0 2rem 3rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    /* スタイリッシュなスクロールバー */
    &::-webkit-scrollbar {
      height: 4px;
    }
    
    &::-webkit-scrollbar-track {
      background: #f1f1f1;
    }
    
    &::-webkit-scrollbar-thumb {
      background: #888;
      border-radius: 2px;
    }
    
    &::-webkit-scrollbar-thumb:hover {
      background: #555;
    }
  }
  
  /* 個別レシピアイテム - 水平スクロール内 */
  .recipe-item.svelte-1ycl9rt {
    flex: 0 0 auto;
    width: 350px;
    scroll-snap-align: start;
    cursor: pointer;
    position: relative;
    
    &:hover {
      .image-container:where(.svelte-1ycl9rt) img:where(.svelte-1ycl9rt) {
        transform: scale(1.05);
      }
      
      .content:where(.svelte-1ycl9rt) h3:where(.svelte-1ycl9rt) {
        color: var(--primary);
      }
    }
    
    .image-container:where(.svelte-1ycl9rt) {
      position: relative;
      width: 100%;
      height: 230px;
      overflow: hidden;
      
      img:where(.svelte-1ycl9rt) {
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
           object-fit: cover;
        transition: transform 0.6s ease;
      }
      
      .tag-label:where(.svelte-1ycl9rt) {
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 0.5rem 1rem;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        font-size: 0.75rem;
        font-weight: 500;
        -webkit-backdrop-filter: blur(5px);
                backdrop-filter: blur(5px);
      }
    }
    
    .content:where(.svelte-1ycl9rt) {
      padding: 1.25rem 0;
      
      h3:where(.svelte-1ycl9rt) {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        transition: color 0.3s ease;
      }
      
      p:where(.svelte-1ycl9rt) {
        font-size: 0.875rem;
        color: #555;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
    }
  }
  
  /* メディアクエリ */
  @media (max-width: 768px) {
    .featured-recipe.svelte-1ycl9rt {
      height: 65vh;
      min-height: 400px;
    }
    
    .featured-content.svelte-1ycl9rt {
      padding: 5%;
    }
    
    .recipe-item.svelte-1ycl9rt {
      width: 280px;
      
      .image-container:where(.svelte-1ycl9rt) {
        height: 180px;
      }
    }
  }
.recipe-content-container > *:not(.recipe-sections) {
  display: none;
}
.recipe-content-container .recipe-ingredients-table {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}
.recipe-sections {
  margin-bottom: 2rem;
}
.recipe-sections h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2rem 0 1.5rem;
  color: var(--secondary);
  text-align: center;
  position: relative;
  padding-bottom: 0.75rem;
}
.recipe-sections h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--secondary);
}
.recipe-sections h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: var(--primary);
}
.recipe-sections p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
.recipe-sections ol {
  counter-reset: recipe-step;
  padding-left: 0;
  margin: 2rem 0;
}
.recipe-sections ol li {
  position: relative;
  list-style: none;
  padding-left: 4rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  min-height: 3rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}
.recipe-sections ol li:last-child {
  border-bottom: none;
}
.recipe-sections ol li::before {
  counter-increment: recipe-step;
  content: counter(recipe-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  color: white;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}
.recipe-sections img {
  max-width: 100%;
  border-radius: 0.5rem;
  margin: 1.5rem auto 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: block;
}
.recipe-sections li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.recipe-sections code {
  display: inline;
  font-family: inherit;
  font-weight: 600;
  color: #e53e3e;
  background-color: rgba(229, 62, 62, 0.08);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  white-space: nowrap;
  margin: 0 0.2em;
  border: 1px solid rgba(229, 62, 62, 0.2);
  position: relative;
}
@media (prefers-color-scheme: dark) {
  .recipe-sections code {
    color: #fc8181;
    background-color: rgba(252, 129, 129, 0.1);
    border-color: rgba(252, 129, 129, 0.2);
  }
}
.recipe-sections li code + * {
  margin-left: 0.2em;
}
.ingredients-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.ingredients-container table td {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
}
.ingredients-container table td:first-child {
  font-weight: 500;
}
.ingredients-container table td:last-child {
  text-align: right;
  color: var(--secondary);
}
.gallery {
  display: block;
}
.gallery p {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.gallery p br {
  display: none;
}
.gallery img {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
@media (max-width: 768px) {
  .gallery p {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .gallery p {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .recipe-sections ol li {
    padding-left: 3.5rem;
  }
  .recipe-sections ol li::before {
    top: 0;
    left: 0;
  }
}
