@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --bg: #0d0f14;
  --surface: #161920;
  --surface2: #1e2230;
  --border: rgba(255,255,255,0.08);
  --border-hi: rgba(255,255,255,0.16);
  --text: #e8eaf0;
  --text-muted: #a4a8b4;
  --text-dim: #6b7080;
  --accent: #e8a020;
  --accent2: #c0781a;
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(232,160,32,0.14), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(80,120,224,0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.85;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.sitebar { position: sticky; top: 0; z-index: 20; background: rgba(13,15,20,0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
header { max-width: 1060px; margin: 0 auto; padding: 12px 18px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--accent); text-decoration: none; font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.logo:hover { text-decoration: none; }
.logo-icon { height: 2.15em; width: 2.15em; border-radius: 8px; object-fit: contain; }
.logo span { display: block; margin-top: -4px; color: var(--text-muted); font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.nav-icons { display: flex; gap: 4px; margin-left: auto; }
.nav-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--text); border: 1px solid var(--border-hi); background: var(--surface2); transition: transform 0.12s, border-color 0.12s, background 0.12s; }
.nav-icon svg { display: block; }
.nav-icon.active { color: var(--accent); border-color: rgba(232,160,32,0.58); background: rgba(232,160,32,0.16); box-shadow: 0 0 0 1px rgba(232,160,32,0.22); }
@media (hover:hover) { .nav-icon:hover { transform: translateY(-1px); border-color: var(--accent); background: var(--surface); text-decoration: none; } }
.content-shell { width: min(100%, 1060px); margin: 0 auto; padding: 30px 18px 54px; }
.hero { padding: 30px 24px; border: 1px solid rgba(232,160,32,0.24); border-radius: 22px; background: linear-gradient(135deg, rgba(232,160,32,0.13), rgba(22,25,32,0.78)); box-shadow: 0 18px 50px rgba(0,0,0,0.26); }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { margin-top: 8px; font-size: clamp(28px, 5vw, 46px); line-height: 1.16; font-family: var(--font-head); letter-spacing: 0.04em; }
.lead { max-width: 820px; margin-top: 14px; color: var(--text-muted); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border-hi); background: var(--surface2); color: var(--text); font-weight: 700; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #14100a; border-color: transparent; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .section { border: 1px solid var(--border); border-radius: 18px; background: rgba(22,25,32,0.86); box-shadow: 0 12px 34px rgba(0,0,0,0.16); }
.card { padding: 18px; }
.card h2, .card h3, .section h2 { color: var(--text); line-height: 1.35; }
.card h2, .section h2 { font-size: 21px; }
.card h3 { font-size: 16px; }
.card p, .section p, .section li { color: var(--text-muted); }
.card p { margin-top: 8px; }
.section { margin-top: 18px; padding: 22px; }
.section h2 { margin-bottom: 10px; }
.section h3 { margin: 18px 0 8px; color: var(--text); font-size: 16px; }
.section p + p { margin-top: 10px; }
.section ul, .section ol { margin: 10px 0 0 1.2em; }
.section li + li { margin-top: 6px; }
.callout { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--accent); border-radius: 12px; background: rgba(232,160,32,0.09); color: var(--text-muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.toc a { padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); background: rgba(255,255,255,0.03); font-size: 13px; }
.toc a:hover { color: var(--accent); border-color: rgba(232,160,32,0.38); text-decoration: none; }
.meta-note { margin-top: 22px; color: var(--text-dim); font-size: 12px; }
.page-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.page-links a { padding: 8px 11px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,0.03); color: var(--text-muted); font-size: 13px; }
.page-links a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.footer-signature { text-align: center; padding: 24px 0 36px; color: var(--text-dim); font-family: 'Courier New', Courier, monospace; letter-spacing: 1px; border-top: 1px solid var(--border); }
.footer-signature .by-text { font-size: 11px; opacity: 0.7; margin-right: 4px; }
.footer-signature .creator-name { color: #eaeaea; font-size: 13px; font-weight: bold; letter-spacing: 3px; text-shadow: 0 0 8px rgba(255,255,255,0.35); }
@media (max-width: 760px) {
  header { padding: 10px 12px; }
  .logo { font-size: 16px; letter-spacing: 1px; }
  .logo span { font-size: 10px; }
  .nav-icon { width: 32px; height: 32px; }
  .content-shell { padding: 18px 12px 38px; }
  .hero { padding: 22px 16px; border-radius: 18px; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .section { padding: 18px 15px; }
}
