@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@450..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@700&display=swap');

/* ------------------------------
   Annthology.one  base styles
   余計なものは足さず、読みやすさと余白だけを整える
-------------------------------- */

:root {
  --bg: #d9d6db;         /* near-slate-950 */
  --fg: #2f2e30;         /* slate-200 */
  --muted: #434244;      /* slate-400 */
  --link: #8b36c4;       /* slate-300 */
  --link-hover: var(--muted); /* sky-300 */
  --border: var(--muted);     /* slate-800 */
  --maxw: 72ch;
  --lh: 1.7;
}

/* ベース */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-size: 20px;
  font-family: "Noto Sans JP";
  font-weight: 450;
  line-height: var(--lh);
  text-rendering: optimizeLegibility;
}

/* コンテナ（中央・短行長） */
.container {
  max-width: var(--maxw);
  margin: 0 auto 6rem;
  padding: 0 1.25rem;
}

/* 見出し */
h1, h2, h3 {
  line-height: 1.2;
  margin: 2rem 0 0.75rem;
  letter-spacing: .2px;
  font-weight: 500;
}
h1 {
  font-size: clamp(3.6rem, 1.4rem + 1.8vw, 2.6rem);
  text-align: center;
  font-variant-caps: small-caps;
  font-family: "Crimson Text", "Shippori Mincho";
  font-weight: 600;
}
h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.8rem); color: var(--muted); }
h3 { font-size: 1.1rem; color: var(--muted); }

/* 段落・リスト */
p, ul, ol {
  margin: 1rem 0;
}
p {
  line-height: 1.3;
  white-space: pre-line;
}
ul, ol { padding-left: 1.25rem; }

/* リンク */
a {
  color: var(--link);
  font-variant-caps: small-caps;
  font-family: "Crimson Text", "Shippori Mincho";
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.15em;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* 区切り線・引用・コードの軽い整形 */
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
pre, code, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
               "Courier New", monospace;
}
pre {
  background: color-mix(in oklab, var(--fg) 6%, var(--bg));
  padding: 1rem;
  border-radius: 0px;
  overflow-x: auto;
}
blockquote {
  border-left: 4px solid var(--link);
  margin: 1.25rem 0;
  padding: .5rem 1rem;
  background: color-mix(in oklab, var(--fg) 6%, var(--bg));
}

/* 画像（Markdownのimg） */
img {
  max-width: 100%;
  height: auto;
  border-radius: 0px;
  display: flex;
  margin: auto;
}

/* KaTeX: 少しだけ大きく、ディスプレイ数式は中央&余白 */
.katex { font-size: 1.52em; }
.katex-display {
  margin: 1.25rem 0 1.5rem;
  text-align: center;
}

/* テーブルが来たときの保険 */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  background: color-mix(in oklab, var(--fg) 6%, var(--bg));
}
th, td {
  border: 4px solid var(--bg);
  padding: .5rem .75rem;
  text-align: center;
}
th {
  color: var(--muted);
  background: color-mix(in oklab, var(--fg) 12%, var(--bg));
}

footer {
  font-family: "Crimson Text";
  font-weight: 600;
  text-align: center;
}

/* 小さめ画面の余白調整 */
@media (max-width: 640px) {
  .container { margin: 2rem auto 4rem; padding: 0 .9rem; }
}

/* ~/site/src/styles/global.css に追記 */
.breadcrumbs {
  margin: .75rem 0 1rem;
  font-variant-caps: small-caps;
  font-family: "Crimson Text", "Shippori Mincho";
  font-weight: 600;
  color: var(--muted);
}
.breadcrumbs ol { display:flex; gap:.5rem; list-style:none; padding:0; margin:0; flex-wrap:wrap; }
.breadcrumbs li { display:inline-flex; align-items:center; }
.breadcrumbs li+li::before { content:"/"; opacity:.5; margin:0 .35rem; }
.breadcrumbs a { color:var(--link); text-decoration:none; }
.breadcrumbs a:hover { text-decoration:underline; color:var(--link-hover); }

/* Brand logo block */
header {
  background: color-mix(in oklab, var(--fg) 6%, var(--bg));
}

.brand-link { 
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-decoration: none;
  color: var(--fg);
  text-align: center;
}

.brand-link:hover {
  text-decoration: none;
  color: var(--link);
}

.logo-title {
  font-size: 5rem;
  font-weight: 700;
  margin: 0.0rem;
}

.logo-subtitle-container {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top:-1.2rem;
}

.logo-subtitle {
  font-size: 1.9rem;
  font-weight: 600;
  font-variant-caps:normal;
  white-space: nowrap;
  margin:0;
}

.line {
  flex: 1;
  height: 2px;
  background-color: currentColor;
  max-width: 200px;
}

.logo-splitter {
  margin-top: 12px;
  margin-bottom: 12px;
  border-top: 2px solid var(--border);
}
