/* critical.css — above-the-fold styles for AutonoMath landing.
   Loaded synchronously in <head>; the full styles.css is preloaded
   and swapped in async. Keep this file < 5 KB after gzip.
   Source: extracted from styles.src.css (do not edit standalone). */

:root {
  color-scheme: light dark;
  --accent: #1e3a8a;
  --accent-hover: #172b6b;
  --text: #111111;
  --text-muted: #404040;
  --border: #e5e5e5;
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --danger: #b91c1c;
  --focus: #1e3a8a;
  --max-w: 960px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: break-word;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 8px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 6px 6px;
  z-index: 100;
  text-decoration: none;
  transform: translateY(-110%);
  transition: transform 0.1s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
[id] { scroll-margin-top: 80px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.brand-name {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
}
.site-nav a {
  color: var(--text);
  min-height: 44px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-switch a {
  color: var(--text-muted);
  padding: 2px 4px;
  border-radius: 3px;
}
.lang-switch a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-alt);
}
.lang-switch .sep {
  color: var(--border);
  user-select: none;
}

.hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 800;
}
.hero-sub {
  font-size: 20px;
  color: var(--text);
  margin: 0 0 18px;
  font-weight: 500;
}
.hero-tag {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 640px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}
.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.section-title {
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  font-weight: 700;
}

.pricing-page { padding: 64px 0; }
.pricing-page h1 {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-weight: 800;
}
.pricing-page .lead {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 640px;
}

.legal { padding: 48px 0 64px; }
.legal h1 {
  font-size: 30px;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.prefecture-header { margin-bottom: 24px; }
.prefecture-header h1 { font-size: 28px; margin-bottom: 8px; }
.prefecture-header .byline { color: var(--text-muted); font-size: 13px; }

@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 17px; }
  .section-title { font-size: 22px; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .site-nav { gap: 16px; font-size: 14px; flex-wrap: wrap; row-gap: 8px; }
  .site-nav a,
  .lang-switch a {
    min-height: 44px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
  }
  .cta-row .btn { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 480px) {
  .lang-switch {
    margin-left: 0;
    padding-left: 10px;
  }
  .lang-switch a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
  }
  .site-nav { gap: 12px; font-size: 13px; row-gap: 6px; }
  .site-nav a {
    min-height: 44px;
    padding: 10px 12px;
  }
  .btn {
    min-height: 44px;
    padding: 12px 20px;
  }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #79b8ff;
    --accent-hover: #a5cdff;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --border: #30363d;
    --bg: #0d1117;
    --bg-alt: #161b22;
    --danger: #f85149;
    --focus: #79b8ff;
  }
  .btn-secondary { background: var(--bg-alt); }
  .brand-mark { color: #0d1117; }
  .btn-primary { color: #0d1117; }
  .btn-primary:hover { color: #0d1117; }
  .skip-link { color: #0d1117; }
}
</content>
</invoke>