/* SOCRU — static, no JS, no external requests. */
:root {
  color-scheme: light dark;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --fg: #0d1117;
  --muted: #4f5b67;
  --rule: #d5dbe1;
  --grid: rgba(13, 17, 23, .05);
  --accent: #0b6e63;
  --accent-soft: rgba(11, 110, 99, .10);
  --link: #0b6e63;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --surface: #11171e;
    --fg: #e6edf3;
    --muted: #9aa7b4;
    --rule: #26303a;
    --grid: rgba(230, 237, 243, .045);
    --accent: #2dd4bf;
    --accent-soft: rgba(45, 212, 191, .10);
    --link: #5eead4;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.8 var(--sans);
  overflow-wrap: anywhere;
}
/* Per-language sans stack. Only the variable changes per language so that
   elements with an explicit font-family (monospace accents) are unaffected. */
:lang(ja) { --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif; }
:lang(en) { --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif; }
:where([lang]) { font-family: var(--sans); }

a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  font-family: var(--mono); font-weight: 700; letter-spacing: .18em;
  color: var(--fg); text-decoration: none;
}
.brand::before { content: "▍"; color: var(--accent); margin-right: .35em; }
nav.lang { display: flex; flex-wrap: wrap; gap: .25rem .6rem; font-size: .9rem; }
nav.lang a { color: var(--muted); text-decoration: none; }
nav.lang a:hover { text-decoration: underline; }
nav.lang a[aria-current="page"] { color: var(--fg); font-weight: 600; }
nav.lang a + a::before { content: "/"; display: inline-block; margin-right: .6rem; color: var(--rule); font-weight: 400; }

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--rule);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 2rem 2rem;
  background-position: -1px -1px;
}
.eyebrow {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .12em;
  color: var(--muted); margin: 0 0 1rem;
}
.eyebrow::before { content: "$ "; color: var(--accent); }
.wordmark {
  margin: 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(3.5rem, 17vw, 9.5rem);
  line-height: .95;
  letter-spacing: .04em;
}
.wordmark span { display: inline-block; }
.acronym {
  list-style: none; padding: 0; margin: 2rem 0 0;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 3.6vw, 1.6rem);
  line-height: 1.5;
}
.acronym li { margin: 0; white-space: nowrap; }
.acronym b { color: var(--accent); font-weight: 800; }
.acronym .rest { display: inline-block; color: var(--fg); }
.tagline {
  margin: 2.25rem 0 0;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.6;
  max-width: 40rem;
}
.cursor {
  display: inline-block; width: .55em; height: 1.1em; margin-left: .15em;
  vertical-align: -.15em; background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .wordmark span { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .wordmark span:nth-child(2) { animation-delay: .06s; }
  .wordmark span:nth-child(3) { animation-delay: .12s; }
  .wordmark span:nth-child(4) { animation-delay: .18s; }
  .wordmark span:nth-child(5) { animation-delay: .24s; }
  .acronym .rest { animation: expand .7s cubic-bezier(.2, .7, .2, 1) both; }
  .acronym li:nth-child(1) .rest { animation-delay: .55s; }
  .acronym li:nth-child(2) .rest { animation-delay: .7s; }
  .acronym li:nth-child(3) .rest { animation-delay: .85s; }
  .acronym li:nth-child(4) .rest { animation-delay: 1s; }
  .acronym li:nth-child(5) .rest { animation-delay: 1.15s; }
  .cursor { animation: blink 1.1s steps(1) infinite; }
  .card { transition: border-color .2s, transform .2s; }
  .card:hover { transform: translateY(-2px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(.25em); }
  to { opacity: 1; transform: none; }
}
@keyframes expand {
  from { clip-path: inset(0 100% 0 0); opacity: .2; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
main section { padding: 4rem 0; border-bottom: 1px solid var(--rule); }
main section:last-child { border-bottom: 0; }
.section-label {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem;
}
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); line-height: 1.35; margin: 0 0 2rem; }
h3 { font-size: 1.05rem; line-height: 1.5; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 48rem) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: .5rem;
  padding: 1.5rem;
}
.card:hover { border-color: var(--accent); }
.card p { margin: 0; color: var(--muted); }
.num { display: block; font-family: var(--mono); font-size: .85rem; color: var(--accent); margin-bottom: .75rem; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; color: var(--accent); background: var(--accent-soft);
  border-radius: .25rem; padding: .1rem .5rem; margin-bottom: .75rem;
}

/* Company profile */
.profile { margin: 0; border-top: 1px solid var(--rule); }
.profile > div {
  display: grid; grid-template-columns: 1fr; gap: .25rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule);
}
@media (min-width: 40rem) { .profile > div { grid-template-columns: 10rem 1fr; gap: 1.5rem; } }
.profile dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.profile dd { margin: 0; }
.profile ol { margin: 0; padding: 0; list-style: none; }
.profile ol li + li { margin-top: .35rem; }
.note { margin: 1rem 0 0; font-size: .875rem; color: var(--muted); }

/* Contact */
.mail {
  display: inline-block; margin-top: .5rem;
  font-family: var(--mono); font-size: clamp(1.1rem, 4vw, 1.6rem); font-weight: 700;
  color: var(--fg); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: .15rem;
}
.mail:hover { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }
.site-footer .wrap { padding-top: 1.75rem; padding-bottom: 2.5rem; }
.site-footer p { margin: 0 0 .25rem; }
.site-footer .copy { font-family: var(--mono); }

/* 404 */
.notfound { padding: 5rem 0; }
.notfound h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.4; margin: 0 0 1.25rem; }
