/* ── Reset & tokens ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:        #ffffff;
  --c-surface:   #f8fafc;
  --c-border:    #e2e8f0;
  --c-primary:   #4f46e5;
  --c-primary-h: #4338ca;
  --c-primary-l: #eef2ff;
  --c-text:      #0f172a;
  --c-muted:     #64748b;
  --radius:      0.75rem;
  --shadow:      0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
  --max-w:       1100px;
  --px:          1.5rem;
  --section-py:  5rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background .18s, transform .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--c-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--c-primary-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79,70,229,.3);
}

.btn--white {
  background: #fff;
  color: var(--c-primary);
  font-weight: 700;
}

.btn--white:hover {
  background: var(--c-primary-l);
  transform: translateY(-1px);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
  gap: 1px;
}

.logo-jp {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: .04em;
}

.logo-en {
  font-size: 0.65rem;
  color: var(--c-muted);
  letter-spacing: .08em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__links a {
  text-decoration: none;
  color: var(--c-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color .15s;
}

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

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--c-border);
  border-radius: 0.4rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-muted);
  transition: border-color .15s;
}

.lang-switcher:hover { border-color: var(--c-primary); }

.lang-opt {
  cursor: pointer;
  transition: color .15s;
  user-select: none;
}

.lang-opt:hover { color: var(--c-primary); }
.lang-opt.active { color: var(--c-primary); }
.lang-sep { opacity: .35; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: .2s;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, var(--c-primary-l) 0%, #fff 55%);
  padding: 6rem var(--px) 5.5rem;
  text-align: center;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 1.1rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 680px;
  margin: 0 auto 1.25rem;
  letter-spacing: -.01em;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 500px;
  margin: 0 auto 2.25rem;
}

/* ── Services ─────────────────────────────────────────── */
.services {
  padding: var(--section-py) var(--px);
  background: var(--c-surface);
}

.services .section-title {
  text-align: center;
  margin-bottom: 2.75rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.08);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 0.4rem;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card__body {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ── About ────────────────────────────────────────────── */
.about {
  padding: var(--section-py) var(--px);
}

.about__inner {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.about__text { flex: 1; }

.about__text .section-title { margin-bottom: 1.25rem; }

.about__text p {
  color: var(--c-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
}

.about__markets {
  font-weight: 600;
  color: var(--c-text) !important;
  font-size: 0.95rem !important;
  margin-top: 1.75rem !important;
}

.about__visual { flex: 0 0 auto; }

.about__kanji {
  font-size: 3rem;
  font-weight: 900;
  color: var(--c-primary);
  line-height: 1.25;
  opacity: .12;
  user-select: none;
  letter-spacing: .05em;
}

/* ── Contact ──────────────────────────────────────────── */
.contact {
  background: var(--c-primary);
  padding: var(--section-py) var(--px);
  text-align: center;
  color: #fff;
}

.contact .section-title { color: #fff; margin-bottom: 0.75rem; }

.contact p {
  color: rgba(255,255,255,.8);
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--c-text);
  color: rgba(255,255,255,.55);
  padding: 1.25rem var(--px);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.footer__logo {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: 0.82rem;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 700px) {
  :root { --section-py: 3.5rem; --px: 1.1rem; }

  .nav__burger { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 3.75rem;
    left: 0;
    right: 0;
    background: var(--c-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--px);
    gap: 1rem;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }

  .nav__links.open { display: flex; }

  .hero { padding: 4rem var(--px) 3.5rem; }

  .about__inner { flex-direction: column; gap: 2rem; }
  .about__visual { display: none; }

  .footer__inner { flex-direction: column; text-align: center; }
}
