:root{
  --bg: #0b1220;
  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.10);
  --text: #e9eefc;
  --muted: rgba(233,238,252,.72);
  --accent: #5eead4;
  --accent2: #60a5fa;
  --warn: #fbbf24;
  --danger: #fb7185;
  --ok: #34d399;
  --border: rgba(233,238,252,.14);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1060px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", sans-serif;
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(96,165,250,.20), transparent 60%),
    radial-gradient(800px 520px at 80% 10%, rgba(94,234,212,.16), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(251,191,36,.12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a{ color: inherit; text-decoration: none; }
a.underline{ text-decoration: underline; text-underline-offset: 3px; }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.skip{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px;
  background: rgba(0,0,0,.8);
  border:1px solid var(--border);
  border-radius: 10px;
  z-index:9999;
}

.header{
  padding: 18px 0 0;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0;
}
.badge{
  width:42px; height:42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(94,234,212,.35), rgba(96,165,250,.35));
  border:1px solid rgba(255,255,255,.22);
  display:grid;
  place-items:center;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand h1{
  margin:0;
  font-size: 15px;
  letter-spacing: .02em;
  font-weight: 800;
}
.brand p{
  margin:0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 60ch;
}

.actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  user-select:none;
}
.btn:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}
.btn:active{ transform: translateY(1px); }
.btn.primary{
  background: linear-gradient(135deg, rgba(94,234,212,.22), rgba(96,165,250,.22));
  border-color: rgba(255,255,255,.22);
}
.btn.warn{
  background: linear-gradient(135deg, rgba(251,191,36,.22), rgba(96,165,250,.10));
  border-color: rgba(251,191,36,.35);
}
.btn.danger{
  background: linear-gradient(135deg, rgba(251,113,133,.22), rgba(96,165,250,.08));
  border-color: rgba(251,113,133,.35);
}

.hero{
  margin-top: 16px;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.03);
}

.hero img{
  width:100%;
  height: auto;
  display:block;
}

.hero .hero-inner{
  padding: 18px 18px 16px;
}

.kicker{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.kicker .pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
}
.kicker .pill strong{ color: var(--text); font-weight: 800; }
.kicker .meta{
  font-size: 12px;
  color: var(--muted);
}

.hero h2{
  margin: 10px 0 6px;
  font-size: 26px;
  letter-spacing: .01em;
}
.hero p{
  margin: 0;
  color: var(--muted);
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 0 0;
}

@media (min-width: 920px){
  .grid{ grid-template-columns: 1fr 1fr; }
}

.card{
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
}

.card h3{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: .01em;
}
.card p, .card li{
  color: var(--muted);
}
.card ul{
  margin: 8px 0 0;
  padding-left: 18px;
}
.card li{ margin: 6px 0; }

.hr{
  height:1px;
  background: var(--border);
  margin: 10px 0 12px;
}

.note{
  border-left: 4px solid rgba(96,165,250,.65);
  background: rgba(96,165,250,.08);
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}
.note strong{ color: var(--text); }

.callout{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 12px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(94,234,212,.10), rgba(96,165,250,.08));
}
.callout .icon{
  width:38px; height:38px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}
.callout h4{
  margin: 0 0 4px;
  font-size: 16px;
}
.callout p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.table-wrap{
  overflow:auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
table{
  width:100%;
  border-collapse: collapse;
  min-width: 520px;
}
th, td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  text-align:left;
}
th{
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .02em;
  background: rgba(255,255,255,.04);
}
td{
  color: var(--text);
  font-weight: 650;
}
tr:last-child td{ border-bottom: none; }

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 3px 8px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.section{
  margin-top: 14px;
}

details{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}
details + details{ margin-top: 10px; }
summary{
  cursor:pointer;
  font-weight: 900;
  letter-spacing: .01em;
  font-size: 15px;
}
details p, details li{ color: var(--muted); }
details ol{
  margin: 10px 0 0;
  padding-left: 18px;
}
details code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 8px;
  color: var(--text);
}

.footer{
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 12px;
  text-align:center;
}

.small{
  font-size: 12px;
  color: var(--muted);
}

.anchor-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 12px;
}
.anchor-nav a{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
}
.anchor-nav a:hover{
  background: rgba(255,255,255,.08);
  color: var(--text);
}
