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

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --fg-mid: rgba(255, 255, 255, 0.72);
  --fg-dim: rgba(255, 255, 255, 0.38);
  --border: rgba(255, 255, 255, 0.16);
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html {
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Jost', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  font-weight: 300;
  line-height: 1.85;
  min-height: 100vh;
  animation: pageIn 0.55s ease both;
}

/* ── Layout ─────────────────────────────────────── */

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.75rem 4rem 4.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────── */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 7rem;
}

.logo-link {
  display: block;
  line-height: 0;
}

.logo {
  width: clamp(200px, 28vw, 310px);
  height: auto;
}

/* ── Language switch ─────────────────────────────── */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 0.3rem;
  flex-shrink: 0;
}

.lang-switch .active {
  color: var(--fg);
}

.lang-switch .sep {
  color: var(--fg-dim);
}

.lang-switch a {
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lang-switch a:hover {
  color: var(--fg);
}

/* ── Main ────────────────────────────────────────── */

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* ── Mission ─────────────────────────────────────── */

.mission {
  max-width: 680px;
}

.mission p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.95;
  letter-spacing: 0.018em;
  color: var(--fg);
}

/* Collapse gap between sentences — line-height only */
.mission p + p {
  margin-top: 0;
}

/* ── Frontiers ───────────────────────────────────── */

.frontiers {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.frontier-heading {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 0.9rem;
}

.frontier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.frontier-list li {
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: var(--fg-mid);
  padding-left: 1.5rem;
  position: relative;
}

.frontier-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--fg-dim);
}

/* ── Footer ──────────────────────────────────────── */

.site-footer {
  margin-top: 7rem;
  display: flex;
  justify-content: flex-end;
}

.address {
  font-style: normal;
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.address p {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.055em;
  line-height: 1.9;
  color: var(--fg-mid);
}

.address a {
  color: var(--fg-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

.address a:hover {
  color: var(--fg);
}

/* ── Japanese overrides ──────────────────────────── */

:lang(ja) body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic Medium', sans-serif;
}

:lang(ja) .frontier-heading {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

:lang(ja) .mission p {
  letter-spacing: 0.04em;
  line-height: 2;
}

:lang(ja) .frontier-list li {
  letter-spacing: 0.03em;
}

:lang(ja) .address p {
  letter-spacing: 0.06em;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 768px) {
  .page {
    padding: 2.5rem 1.75rem 3.5rem;
  }

  .site-header {
    margin-bottom: 4.5rem;
  }

  .site-main {
    gap: 4rem;
  }

  .mission {
    max-width: 100%;
  }

  .site-footer {
    margin-top: 5rem;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 2rem 1.25rem 3rem;
  }

  .site-header {
    margin-bottom: 3.5rem;
  }

  .site-main {
    gap: 3rem;
  }

  .frontiers {
    gap: 2.25rem;
  }

  .site-footer {
    margin-top: 4rem;
  }
}
