/* style.css — 横山研究室 共通スタイル (2026-03 redesign) */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Noto+Serif+JP:wght@300;400;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ── */
:root {
  --ink:    #0d0d38;
  --paper:  #faf8f3;
  --mid:    #5a5a82;
  --rust:   #c03a1e;
  --border-warm: #e0dbd0;
  --card-bg: #fff;
  --text:   #1a1a2e;
  --text-light: #444;
  --accent: #c03a1e;

  /* Legacy aliases (used by some page-specific CSS) */
  --primary: #2e3092;
  --primary-light: #4c4fb6;
  --bg: #f2f2f2;
  --border: #dcdcdc;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Noto Serif JP", "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN", serif;
  font-weight: 300;
  color: var(--text);
  line-height: 1.9;
  background: var(--paper);
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  z-index: 9999;
}

/* ── Topbar ── */
.topbar {
  background: var(--ink);
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.25s; }
.topbar a:hover { color: rgba(255,255,255,0.95); }
.tb-brand {
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff !important;
  margin-right: 10px;
  white-space: nowrap;
  letter-spacing: 0.08em;
}
.ylab {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}
.tb-crumb {
  font-family: "Noto Serif JP", serif;
  font-size: 0.78rem;
  font-weight: 300;
  opacity: 0.7;
  flex: 1;
  color: rgba(255,255,255,0.45);
}
.tb-crumb a { color: rgba(255,255,255,0.45); }
.tb-crumb a:hover { color: rgba(255,255,255,0.85); }
.tb-affil {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  opacity: 0.3;
  white-space: nowrap;
  text-transform: uppercase;
}
.tb-affil a { margin-left: 6px; }
.tb-lock {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
  margin-left: 10px;
  letter-spacing: 0.03em;
}

/* ── Page title ── */
.page-title {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 16px;
}
.page-title h1 {
  font-family: "Noto Serif JP", "游明朝", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-warm);
  position: relative;
}
.page-title h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 2px;
  background: var(--rust);
}

/* ── Section label ── */
.section-label {
  max-width: 900px;
  margin: 40px auto 14px;
  padding: 0 16px;
  font-family: "Noto Serif JP", serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  border-left: 3px solid var(--rust);
  padding-left: 14px;
  letter-spacing: 0.04em;
}

/* ── Card ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-warm);
  padding: 28px 32px;
  margin: 16px auto;
  max-width: 900px;
  transition: border-color 0.2s;
}
.card:hover { border-color: #ccc5b8; }
.card h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-warm);
  padding-bottom: 8px;
  position: relative;
}
.card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 28px;
  height: 1px;
  background: var(--rust);
}
.card h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--mid);
  margin: 20px 0 8px;
}
.card p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 10px; }
.card ul { margin: 0 0 12px 20px; font-size: 0.9rem; color: var(--text-light); }
.card ul li { margin-bottom: 5px; }
.card a { color: var(--mid); text-decoration: none; transition: color 0.2s; border-bottom: 1px solid transparent; }
.card a:hover { color: var(--rust); border-bottom-color: var(--rust); }

/* ── Highlight / Info boxes ── */
.highlight {
  background: #f5f2ec;
  border-left: 3px solid var(--rust);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--ink);
  margin: 14px 0;
}
.info-box {
  background: #f5f2ec;
  border: 1px solid var(--border-warm);
  border-left: 3px solid var(--mid);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--text);
  margin: 14px 0;
}
.warning-box {
  background: #fdf5f3;
  border-left: 3px solid var(--rust);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: #5a1a18;
  margin: 14px 0;
}

/* ── AI disclaimer ── */
.ai-note {
  max-width: 900px;
  margin: 8px auto 0;
  padding: 0 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: #c0b8a8;
  text-align: right;
}

/* ── Tool grid ── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.tool-item {
  background: #f5f2ec;
  padding: 16px 20px;
  border-left: 3px solid var(--mid);
}
.tool-item h4 { font-family: "Noto Serif JP", serif; font-size: 0.95rem; color: var(--ink); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.tool-item h4 .ti-icon { font-size: 1.2rem; }
.tool-item p { font-size: 0.85rem; color: var(--text-light); margin: 0 0 4px; }
.tool-item a { font-size: 0.82rem; color: var(--mid); }

/* ── Link grid ── */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border-warm);
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  transition: all 0.2s;
}
.link-card:hover { border-color: var(--rust); background: #fdf9f5; }
.link-card .lc-icon { font-size: 1.3rem; flex-shrink: 0; }
.link-card .lc-text { font-weight: 700; color: var(--ink); }
.link-card .lc-sub { font-size: 0.72rem; font-weight: 300; color: #a09888; display: block; }

/* ── Info grid ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.info-item {
  background: #f5f2ec;
  padding: 16px 20px;
  border-left: 3px solid var(--mid);
}
.info-item h4 { font-family: "Noto Serif JP", serif; font-size: 0.9rem; color: var(--ink); margin-bottom: 4px; }
.info-item p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.info-item a { color: var(--mid); font-size: 0.85rem; }

/* ── Timeline ── */
.timeline { position: relative; margin: 16px 0; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 1px; background: var(--border-warm); }
.tl-item { position: relative; margin-bottom: 20px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -22px; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--mid);
  background: var(--paper);
}
.tl-item.active::before { background: var(--rust); border-color: var(--rust); }
.tl-item.future::before { border-color: var(--border-warm); }
.tl-period { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; color: var(--rust); font-weight: 500; letter-spacing: 0.06em; }
.tl-title { font-family: "Noto Serif JP", serif; font-size: 0.95rem; color: var(--ink); font-weight: 700; }
.tl-desc { font-size: 0.88rem; color: var(--text-light); margin-top: 2px; }
.tl-desc ul { margin: 4px 0 0 18px; }
.tl-desc ul li { margin-bottom: 2px; }

/* ── Coming soon ── */
.coming-soon {
  max-width: 700px;
  margin: 60px auto;
  text-align: center;
  padding: 60px 28px;
  background: #fff;
  border: 1px solid var(--border-warm);
}
.coming-soon .icon { font-size: 3rem; margin-bottom: 16px; }
.coming-soon h2 { font-family: "Noto Serif JP", serif; font-size: 1.3rem; color: var(--ink); margin-bottom: 12px; }
.coming-soon p { font-size: 0.95rem; color: var(--text-light); }
.coming-soon .topics { margin: 24px auto 0; max-width: 400px; text-align: left; font-size: 0.9rem; color: var(--text-light); }
.coming-soon .topics li { margin-bottom: 6px; }

/* ── Talk items (talks.html) ── */
.talk-item {
  border-top: 1px solid var(--border-warm);
  padding: 24px 0;
  margin: 0 auto;
  max-width: 900px;
}
.talk-item:last-of-type { border-bottom: 1px solid var(--border-warm); }
.talk-item h3 { font-family: "Noto Serif JP", serif; font-size: 1.05rem; color: var(--ink); margin-bottom: 6px; }
.talk-item .talk-meta { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; color: var(--mid); margin-bottom: 10px; letter-spacing: 0.04em; }
.talk-item .talk-meta span { display: inline-block; margin-right: 16px; }
.talk-item p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 8px; }
.talk-item .talk-links { margin-top: 10px; display: flex; gap: 20px; flex-wrap: wrap; }
.talk-item .talk-links a {
  font-size: 0.84rem; color: var(--mid);
  text-decoration: none; border-bottom: 1px solid var(--border-warm);
  transition: color 0.15s, border-color 0.15s;
}
.talk-item .talk-links a:hover { color: var(--rust); border-color: var(--rust); }
.badge {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.60rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--border-warm);
  font-weight: 500;
  margin-right: 6px;
  vertical-align: middle;
  color: var(--mid);
}
.badge-invited { color: var(--rust); border-color: var(--rust); }

/* ── Tool card (software.html) ── */
.tool-card {
  max-width: 880px;
  margin: 24px auto;
  background: var(--card-bg);
  border: 1px solid var(--border-warm);
  overflow: hidden;
}
.tool-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-warm);
}
.tool-header .tool-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  background: #f5f2ec;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-header .tool-info h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.tool-header .tool-info h2::after { display: none; }
.tool-header .tool-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #a09888;
  letter-spacing: 0.04em;
}
.tool-header .tool-meta span {
  display: inline-block;
  background: #f5f2ec;
  padding: 1px 10px;
  border-radius: 2px;
  margin-right: 6px;
}
.tool-body { padding: 24px 28px; }
.tool-body p { font-size: 0.93rem; color: var(--text-light); margin-bottom: 10px; }
.tool-body ul { margin: 0 0 12px 20px; font-size: 0.9rem; color: var(--text-light); }
.tool-body ul li { margin-bottom: 4px; }
.tool-link {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 8px;
  transition: background 0.2s;
}
.tool-link:hover { background: var(--rust); }
.tool-link + .tool-link { margin-left: 8px; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.38);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  background: var(--ink);
  margin-top: 48px;
}
footer a { color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: rgba(255,255,255,0.85); }

/* ── Contact box ── */
.contact-box {
  background: #f5f2ec;
  border: 1px solid var(--border-warm);
  padding: 20px 28px;
  max-width: 900px;
  margin: 24px auto;
}
.contact-box h2 { font-family: "Noto Serif JP", serif; color: var(--ink); font-size: 1.05rem; margin-bottom: 8px; }
.contact-box p  { font-size: 0.9rem; color: var(--text-light); }

/* ── Responsive (global) ── */
@media (max-width: 640px) {
  .tb-affil { display: none; }
  .page-title h1 { font-size: 1.2rem; }
  .card { margin: 12px 8px; padding: 18px 20px; }
  .card, .talk-item { margin: 12px 8px; padding: 18px 20px; }
  .coming-soon { margin: 24px 8px; padding: 40px 20px; }
  .tool-grid, .link-grid, .info-grid { grid-template-columns: 1fr; }
  .tool-card { margin: 16px 8px; }
  .tool-header, .tool-body { padding: 16px 20px; }
  .tool-header .tool-icon { width: 40px; height: 40px; font-size: 1.5rem; }
}

/* ════════════════════════════════════════════════════════════════
   pg-* — 汎用ページレイアウト（コンテンツページ共通）
   ════════════════════════════════════════════════════════════════ */

/* Body wrapper */
.pg-body { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* Section */
.pg-section { margin: 48px 0 0; }
.pg-section-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border-warm);
}
.pg-section-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem; color: var(--rust); letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* Item-level number within a section list (visually muted vs section num) */
.gi-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.60rem; color: var(--mid); letter-spacing: 0.06em;
  flex-shrink: 0; min-width: 18px;
}

/* Item title within a section list — underline signals navigable link */
.gi-title {
  font-size: 0.88rem; color: var(--ink);
  border-bottom: 1px solid var(--border-warm);
  transition: border-color 0.15s, color 0.15s;
}
a:hover .gi-title {
  border-color: var(--rust);
  color: var(--rust);
}
.pg-section-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
}

/* Section h3 subheading */
.pg-section h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 0.96rem; font-weight: 700; color: var(--mid);
  margin: 24px 0 8px;
}

/* Body text */
.pg-text {
  font-size: 0.92rem; color: var(--text-light); line-height: 2.1; margin-bottom: 16px;
}
.pg-text a { color: var(--mid); border-bottom: 1px solid var(--border-warm); text-decoration: none; }
.pg-text a:hover { color: var(--rust); border-color: var(--rust); }
.pg-text strong { color: var(--ink); font-weight: 700; }
.pg-text code {
  font-family: "JetBrains Mono", monospace; font-size: 0.85em;
  color: var(--ink); background: rgba(0,0,0,0.04); padding: 1px 5px;
}

/* Aside / note */
.pg-aside {
  border-left: 2px solid var(--border-warm); padding: 0 0 0 20px; margin: 20px 0;
  font-size: 0.88rem; color: var(--text-light); line-height: 2.0;
}

/* Table */
.pg-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.88rem; }
.pg-table th {
  text-align: left; font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rust); padding: 8px 12px; border-bottom: 2px solid var(--border-warm);
}
.pg-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-warm); color: var(--text-light); vertical-align: top; }
.pg-table td:first-child { font-weight: 700; color: var(--ink); }

/* Code block */
.pg-code {
  background: var(--ink); color: rgba(255,255,255,0.85);
  padding: 24px 28px; margin: 20px 0;
  font-family: "JetBrains Mono", monospace; font-size: 0.82rem; line-height: 2.0;
  overflow-x: auto; white-space: pre;
}
.pg-code .cm { color: rgba(255,255,255,0.3); }

/* List */
.pg-list { margin: 0 0 16px 1.4em; }
.pg-list li { font-size: 0.92rem; color: var(--text-light); line-height: 2.1; margin-bottom: 4px; }

/* Fade-in animation (staggered reveal) */
@keyframes pgIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pg-fade   { opacity: 0; animation: pgIn 0.6s ease 0.10s forwards; }
.pg-fade-1 { opacity: 0; animation: pgIn 0.55s ease 0.20s forwards; }
.pg-fade-2 { opacity: 0; animation: pgIn 0.55s ease 0.30s forwards; }
.pg-fade-3 { opacity: 0; animation: pgIn 0.55s ease 0.40s forwards; }
.pg-fade-4 { opacity: 0; animation: pgIn 0.55s ease 0.50s forwards; }
.pg-fade-5 { opacity: 0; animation: pgIn 0.55s ease 0.60s forwards; }
.pg-fade-6 { opacity: 0; animation: pgIn 0.55s ease 0.70s forwards; }

/* ════════════════════════════════════════════════════════════════
   index.html — 専用スタイル
   ════════════════════════════════════════════════════════════════ */

/* Hero */
.ix-hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}
.ix-hero::before {
  content: "可逆";
  position: absolute;
  right: -0.04em;
  top: -0.18em;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(180px, 32vw, 420px);
  font-weight: 700;
  color: rgba(255,255,255,0.028);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}
.ix-hero::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--rust) 40%, var(--rust) 70%, transparent);
  opacity: 0.7;
}
.ix-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 40px 60px;
}
.ix-affil {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ix-affil::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.ix-labname-en {
  display: block;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 8px;
}
.ix-labname-jp {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(0.92rem, 1.8vw, 1.1rem);
  font-weight: 400;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.24em;
  margin-bottom: 44px;
}
.ix-tagline {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(0.88rem, 1.6vw, 1.0rem);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  line-height: 2.0;
  max-width: 500px;
  border-left: 2px solid rgba(192,58,30,0.75);
  padding-left: 20px;
}
.ix-tagline strong { color: rgba(255,255,255,0.95); font-weight: 700; }

/* Keywords strip */
.ix-keywords {
  background: #fff;
  border-bottom: 1px solid var(--border-warm);
}
.ix-keywords-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ix-kw {
  padding: 30px 22px;
  border-right: 1px solid var(--border-warm);
  transition: background 0.2s;
  cursor: default;
}
.ix-kw:last-child { border-right: none; }
.ix-kw:hover { background: #faf7f2; }
.ix-kw-jp {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.ix-kw-en {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--rust);
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}
.ix-kw-desc { font-size: 0.71rem; color: #999; line-height: 1.55; }

/* Navigation portal */
.ix-portal {
  max-width: 960px;
  margin: 0 auto;
  padding: 52px 40px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.ix-section-head {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-warm);
  display: flex;
  align-items: center;
  gap: 9px;
}
.ix-section-head::before {
  content: attr(data-num);
  background: var(--rust);
  color: #fff;
  font-size: 0.58rem;
  padding: 1px 5px 2px;
  border-radius: 2px;
  font-weight: 500;
  flex-shrink: 0;
}
.ix-links { display: flex; flex-direction: column; gap: 1px; }
.ix-link {
  display: flex;
  align-items: baseline;
  padding: 11px 16px 11px 14px;
  background: #fff;
  border: 1px solid var(--border-warm);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s ease;
}
.ix-link:hover {
  border-left-color: var(--rust);
  background: #fdf9f5;
  padding-left: 18px;
}
.ix-link:hover .ix-link-main { color: var(--rust); }
.ix-link-main {
  font-size: 0.87rem;
  font-weight: 700;
  font-family: "Noto Serif JP", serif;
  color: var(--ink);
  transition: color 0.15s;
  white-space: nowrap;
}
.ix-link-sub {
  font-size: 0.71rem;
  color: #b0aaa0;
  font-weight: 300;
  margin-left: 10px;
  letter-spacing: 0.01em;
}
.ix-link-ext {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  color: #ccc;
  padding-left: 8px;
  flex-shrink: 0;
}

/* Footer (index.html 専用) */
.ix-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.38);
  text-align: center;
  padding: 36px 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.ix-footer a { color: rgba(255,255,255,0.38); text-decoration: none; }
.ix-footer a:hover { color: rgba(255,255,255,0.85); }
.ix-footer .ai-note { font-size: 0.65rem; color: rgba(255,255,255,0.2); margin-bottom: 10px; max-width: none; }
.ix-footer-sep { margin: 0 8px; opacity: 0.3; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ix-affil      { animation: fadeUp 0.7s ease 0.05s both; }
.ix-labname-en { animation: fadeUp 0.7s ease 0.15s both; }
.ix-labname-jp { animation: fadeUp 0.7s ease 0.22s both; }
.ix-tagline    { animation: fadeUp 0.7s ease 0.32s both; }
.ix-kw:nth-child(1) { animation: fadeUp 0.6s ease 0.40s both; }
.ix-kw:nth-child(2) { animation: fadeUp 0.6s ease 0.47s both; }
.ix-kw:nth-child(3) { animation: fadeUp 0.6s ease 0.54s both; }
.ix-kw:nth-child(4) { animation: fadeUp 0.6s ease 0.61s both; }
.ix-section:nth-child(1) { animation: fadeUp 0.6s ease 0.65s both; }
.ix-section:nth-child(2) { animation: fadeUp 0.6s ease 0.72s both; }
.ix-section:nth-child(3) { animation: fadeUp 0.6s ease 0.79s both; }
.ix-section:nth-child(4) { animation: fadeUp 0.6s ease 0.86s both; }

/* Responsive (index.html) */
@media (max-width: 700px) {
  .ix-hero-inner { padding: 52px 24px 44px; }
  .ix-keywords-inner { grid-template-columns: 1fr 1fr; padding: 0 24px; }
  .ix-kw { border-right: none; border-bottom: 1px solid var(--border-warm); }
  .ix-kw:nth-child(odd) { border-right: 1px solid var(--border-warm); }
  .ix-portal { grid-template-columns: 1fr; gap: 28px; padding: 36px 24px; }
}
@media (max-width: 440px) {
  .ix-keywords-inner { grid-template-columns: 1fr; }
  .ix-kw:nth-child(odd) { border-right: none; }
}
