@charset "UTF-8";
:root {
  color-scheme: dark;
  --note-bg: #10131b;
  --note-surface: #1a2130;
  --note-text: #f3f5ff;
  --note-muted: #aeb7d0;
  --note-line: #2c3850;
  --note-accent: #bfa7ff;
  --note-accent-hover: #d0c1ff;
  /* --- 変更：丸ゴシック系のフォントスタック --- */
  /* 英語はコロンとしたNunito等、日本語はMac/Winの丸ゴシックを指定 */
  --font-maru:
  	"Nunito", "Quicksand", "Hiragino Maru Gothic ProN",
  	"ヒラギノ丸ゴ ProN W4", "Yu Rounded", "Arial Rounded MT Bold", sans-serif;
}

* {
  box-sizing: border-box;
}

body.note-page {
  margin: 0;
  font-family: var(--font-maru); /* 丸ゴシックを適用！ */
  color: var(--note-text);
  background: radial-gradient(circle at 0 0, #1f2940 0%, var(--note-bg) 50%);
  min-height: 100vh;
  padding: 24px;
}

.note-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.note-shell > * {
  min-width: 0;
}

/* --- タイトルバー（上部） --- */
.note-titlebar {
  background: var(--note-surface);
  /* 変更：1pxの実線から、少し優雅な3pxの二重線に変更 */
  border: 3px double rgba(191, 167, 255, 0.2);
  border-radius: 16px;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.note-title-copy {
  min-width: 0;
}

.note-title-icon {
  width: clamp(120px, 18vw, 220px);
  height: auto;
  opacity: 0.9;
  justify-self: end;
}

.note-titlebar h1 {
  margin: 10px 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.35;
  /* 追加：見出しを明朝体に */
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.05em;
}

@media (min-width: 801px) {
  .note-shell {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
  .note-titlebar {
    grid-column: 1/-1;
  }
}
@media (max-width: 800px) {
  .note-titlebar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .note-title-icon {
    order: 1;
    justify-self: center;
    width: min(220px, 48vw);
  }
  .note-title-copy {
    order: 2;
  }
}
@media (max-width: 800px) {
  body.note-page {
    padding: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .note-titlebar {
    padding: 24px 16px;
  }
  .note-title-icon {
    width: min(180px, 46vw);
  }
}
/* --- 左側：サイドバー（目次） --- */
.note-sidebar {
  background: var(--note-surface);
  /* 変更：上品な二重線 */
  border: 3px double rgba(191, 167, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 24px;
  min-width: 0;
}

.sidebar-header h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  line-height: 1.4;
  /* 変更：下線を二重線に */
  border-bottom: 3px double rgba(191, 167, 255, 0.2);
  padding-bottom: 16px;
  /* 追加：明朝体 */
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.eyebrow {
  margin: 0;
  color: var(--note-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* 追加：肩書きも明朝体にするとアンティーク感が出ます */
  font-family: var(--font-serif);
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav h3 {
  margin: 16px 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--note-muted);
  font-family: var(--font-serif); /* 追加 */
}

.sidebar-nav li {
  margin-bottom: 8px;
}

.sidebar-nav ul[data-collapsible=true][data-expanded=false] .sidebar-note-item.is-collapsed {
  display: none;
}

.sidebar-toggle {
  background: transparent;
  border: 1px solid rgba(191, 167, 255, 0.35);
  color: var(--note-accent);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  margin: 4px 0 12px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar-toggle:hover {
  background: rgba(191, 167, 255, 0.1);
  color: var(--note-accent-hover);
  border-color: rgba(191, 167, 255, 0.55);
}

.sidebar-nav a {
  display: block;
  color: var(--note-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--note-text);
}

.sidebar-nav a.active {
  background: rgba(191, 167, 255, 0.1);
  color: var(--note-accent);
  font-weight: bold;
  /* 変更：左のハイライト線を少し太めに */
  border-left: 4px solid var(--note-accent);
}

.home-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--note-accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.home-link:hover {
  color: var(--note-accent-hover);
  text-decoration: underline;
}

.empty-notes {
  margin: 0;
  color: var(--note-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- 右側：メインコンテンツ（本文） --- */
.note-content {
  background: var(--note-surface);
  /* 変更：上品な二重線 */
  border: 3px double rgba(191, 167, 255, 0.2);
  border-radius: 16px;
  padding: 32px;
  min-height: 60vh;
  min-width: 0;
}

.article-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  /* 追加：明朝体 */
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.lead {
  margin: 12px 0 0;
  color: var(--note-muted);
  line-height: 1.8;
}

.article-lead {
  margin: 0 0 24px;
  color: var(--note-muted);
  line-height: 1.8;
  /* 変更：区切り線を破線から優雅な二重線に */
  border-bottom: 3px double rgba(191, 167, 255, 0.2);
  padding-bottom: 24px;
}

.article-body {
  font-size: 15px;
}

.article-body h1 {
  font-size: 1.75em; /* 28px */
  margin: 1.2em 0 0.6em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--note-text);
  border-bottom: 2px solid var(--note-accent);
  padding-bottom: 0.3em;
}

.article-body h2 {
  font-size: 1.5em; /* 24px */
  margin: 1.4em 0 0.6em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--note-text);
  border-bottom: 1px solid rgba(191, 167, 255, 0.3);
  padding-bottom: 0.3em;
}

.article-body h3 {
  font-size: 1.25em; /* 20px */
  margin: 1.3em 0 0.5em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--note-accent-hover);
}

.article-body h4 {
  font-size: 1.125em; /* 18px */
  margin: 1.2em 0 0.5em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--note-accent-hover);
}

.article-body h5 {
  font-size: 1em; /* 16px */
  margin: 1.1em 0 0.4em;
  font-weight: 700;
  line-height: 1.5;
  color: var(--note-muted);
}

.article-body h6 {
  font-size: 0.875em; /* 14px */
  margin: 1em 0 0.4em;
  font-weight: 700;
  line-height: 1.5;
  color: var(--note-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-body h1:first-child,
.article-body h2:first-child,
.article-body h3:first-child,
.article-body h4:first-child,
.article-body h5:first-child,
.article-body h6:first-child {
  margin-top: 0;
}

.article-body p {
  line-height: 1.8;
  margin-bottom: 1.5em;
}

/* Markdown本文の画像を中央寄せし、横幅に応じて縮小 */
.article-body img {
  display: block;
  margin: 1.25em auto;
  max-width: min(100%, 760px);
  height: auto;
}

.article-body .youtube-embed {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 1.25em auto;
  aspect-ratio: 16/9;
}

.article-body .youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* --- 追加：十字架のリストマーカー（魔改造） --- */
.article-body ul {
  list-style: none; /* デフォルトの黒丸を消す */
  padding-left: 1.5rem;
  line-height: 1.8;
  margin: 0 0 1.5em;
}

.article-body ul li {
  position: relative;
  margin-bottom: 0.5em;
}

.article-body ul li::before {
  content: "†";
  position: absolute;
  left: -1.2rem;
  color: var(--note-accent); /* 綺麗な紫色の十字架 */
  font-size: 0.9em;
}

/* 番号付きリスト */
.article-body ol {
  list-style: decimal;
  padding-left: 1.5rem;
  line-height: 1.8;
  margin: 0 0 1.5em;
}

.article-body ol li {
  margin-bottom: 0.5em;
}

/* テーブル */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  background: var(--note-bg);
  border: 1px solid var(--note-line);
  font-size: 0.95em;
  line-height: 1.6;
}

.article-table thead {
  background: rgba(191, 167, 255, 0.1);
  border-bottom: 2px solid var(--note-accent);
}

.article-table th {
  padding: 0.8em 1em;
  text-align: left;
  font-weight: 600;
  color: var(--note-accent);
}

.article-table td {
  padding: 0.8em 1em;
  border-bottom: 1px solid var(--note-line);
}

.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-table tbody tr:hover {
  background: rgba(191, 167, 255, 0.05);
}

/* ------------------------------------------- */
.article-body pre {
  background: var(--note-bg);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--note-line);
  overflow-x: auto;
  font-family: Consolas, Monaco, monospace;
  line-height: 1.6;
}

/* --- 魔法1: Markdown 引用（Blockquote）の装飾 --- */
.article-body blockquote {
  margin: 1.5em 0;
  padding: 1.2em 1.5em;
  background: rgba(191, 167, 255, 0.05); /* ほんのり紫がかった背景 */
  border-top: 3px double rgba(191, 167, 255, 0.3); /* 上下の二重線 */
  border-bottom: 3px double rgba(191, 167, 255, 0.3);
  border-left: none; /* デフォルトの左線を消す */
  color: var(--note-muted);
  font-style: italic; /* 少し斜体にして手記っぽく */
  position: relative;
}

.article-body blockquote p {
  margin: 0;
  line-height: 1.8;
}

.article-body blockquote.gemini-prompt {
  font-style: normal;
}

.article-body .gemini_Title {
  margin-bottom: 0.45em;
  font-weight: 700;
  color: #e8d68a;
}

.article-body .gemini {
  line-height: 1.8;
  margin-bottom: 0.6em;
  color: var(--note-text);
}

.article-body .gemini_summary {
  font-size: 0.95rem;
  color: var(--note-muted);
}

.article-body .gemini_summary a {
  color: var(--note-accent);
}

/* 引用符のアイコン（疑似要素でさりげなく配置） */
.article-body blockquote::before {
  content: '"';
  position: absolute;
  top: -0.2em;
  left: 0.1em;
  font-size: 3em;
  color: rgba(191, 167, 255, 0.15); /* 薄い紫のクォーテーション */
  font-family: var(--font-serif);
  line-height: 1;
}

/* --- 魔法2: Markdown テーブル（Table）の装飾 --- */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95em;
}

.article-body th,
.article-body td {
  padding: 12px 16px;
  text-align: left;
  /* 縦線は消し、下線だけを引く「引き算の美学」 */
  border-bottom: 1px solid var(--note-line);
}

.article-body th {
  background: rgba(255, 255, 255, 0.03); /* 見出し行だけ少し明るく */
  color: var(--note-text);
  font-weight: bold;
  /* テーブルの見出しにも少しだけ丸みと優雅さを */
  border-bottom: 2px solid var(--note-accent);
}

/* 最後の行の下線を消す（任意） */
.article-body tr:last-child td {
  border-bottom: none;
}

/* --- 魔法3: インラインコード（inline code）と太字のアクセント --- */
.article-body :not(pre) > code {
  background: rgba(126, 237, 159, 0.15); /* 緑の薄い背景 */
  color: #7bed9f; /* 文字は明るい緑 */
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9em;
  border: 1px solid rgba(126, 237, 159, 0.3);
}

/* --- 太字（**bold**）の微調整 --- */
.article-body strong {
  font-weight: 700;
  /* 単なる白や黒ではなく、アクセントカラーをほんのり乗せる */
  color: #e8d68a;
}

.note-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 3px double rgba(191, 167, 255, 0.2);
  color: var(--note-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: right;
}

@media (max-width: 800px) {
  body.note-page::after {
    display: none;
  }
  body.note-page {
    overflow-x: clip;
  }
  .article-body {
    font-size: 16px;
  }
  .note-sidebar {
    position: static;
  }
  .sidebar-nav h3 {
    margin: 14px 0 6px;
  }
  .sidebar-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible;
    padding-bottom: 6px;
    min-width: 0;
    width: 100%;
  }
  .sidebar-nav li {
    margin-bottom: 0;
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .sidebar-nav a {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 7px 10px;
    display: block;
    max-width: 100%;
    line-height: 1.4;
  }
  .sidebar-nav ul.sidebar-markdown-list {
    display: block;
    overflow-x: hidden;
    padding-bottom: 0;
  }
  .sidebar-toggle {
    margin-bottom: 10px;
  }
  .sidebar-nav ul.sidebar-markdown-list li {
    margin-bottom: 8px;
    flex: initial;
    width: 100%;
    max-width: 100%;
  }
  .sidebar-nav ul.sidebar-markdown-list a {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 8px 12px;
    max-width: 100%;
  }
}/*# sourceMappingURL=note.css.map */