/* ── CRISIS Developers Portal ── */

:root {
  --bg: #f7fafc;
  --surface: #fff;
  --surface-soft: #f8fbff;
  --surface-accent: #eef7ff;
  --border: #d9e6f2;
  --border-strong: #bfd4e6;
  --text: #16324f;
  --text-soft: #49627d;
  --text-faint: #6f859d;
  --primary: #1373d1;
  --primary-soft: #e7f2ff;
  --primary-hover: #0f67bc;
  --success: #0f9f6e;
  --success-soft: #e8faf3;
  --shadow: 0 20px 50px rgb(28 72 116 / 0.08);
  --shadow-sm: 0 4px 12px rgb(28 72 116 / 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1200px;
  --guide-width: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(180deg, #f9fcff 0%, #f4f8fc 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

a.link {
  font-weight: 600;
  color: var(--primary);
}

a.link:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* ── Layout ── */

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

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(247 250 252 / 0.84);
  border-bottom: 1px solid rgb(191 212 230 / 0.8);
  backdrop-filter: blur(14px);
}

body.reference-page .site-header {
  position: relative;
}

.site-header-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand-kicker {
  display: inline;
  margin-right: 2px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brand-title {
  display: inline;
  font-size: 22px;
  font-weight: 700;
}

.brand-title a {
  color: inherit;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: var(--text-soft);
}

.nav a:hover {
  color: var(--primary);
}

.nav a.active {
  font-weight: 600;
  color: var(--primary);
}

/* ── Footer ── */

.footer {
  padding: 24px 0 48px;
  font-size: 14px;
  color: var(--text-faint);
}

/* ── Responsive ── */

@media (max-width: 720px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 12px;
  }
}
