:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #5c5c58;
  --line: #e4e4de;
  --accent: #ff4d1a;
  --accent-ink: #ffffff;
  --max: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --display: "Space Grotesk", "Noto Sans JP", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0d;
    --surface: #171716;
    --ink: #f2f2ee;
    --muted: #a3a39c;
    --line: #2a2a27;
    --accent: #ff6a3d;
    --accent-ink: #0e0e0d;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span {
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-left: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--ink);
}
@media (max-width: 640px) {
  .nav .nav-link { display: none; }
}

/* Hero */
.hero {
  padding: clamp(72px, 14vw, 160px) 0 clamp(64px, 10vw, 120px);
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 8vw, 88px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 28px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 40em;
  margin: 0 0 40px;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }

/* Sections */
section { padding: clamp(64px, 10vw, 112px) 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

/* About */
.about-body p {
  margin: 0 0 8px;
  font-size: clamp(17px, 2vw, 20px);
  max-width: 40em;
}

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card .tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--muted);
}
.card h3 { margin: 0; font-size: 22px; }
.card p { margin: 0; color: var(--muted); }
.card.placeholder {
  border-style: dashed;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 200px;
}

/* Company */
.company {
  width: 100%;
  border-collapse: collapse;
}
.company th, .company td {
  text-align: left;
  vertical-align: top;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.company th {
  width: 32%;
  font-weight: 600;
  color: var(--muted);
  padding-right: 16px;
}
@media (max-width: 560px) {
  .company th, .company td { display: block; width: 100%; }
  .company th { border-bottom: 0; padding-bottom: 0; }
  .company td { padding-top: 4px; }
}

/* Contact */
.contact {
  text-align: center;
}
.contact p { color: var(--muted); margin: 0 0 32px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 13px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Keep anchored sections clear of the sticky header */
section[id] { scroll-margin-top: 64px; }

/* Break Japanese headings at phrase boundaries */
h1, h2, h3 { word-break: auto-phrase; }

/* Footer links */
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Document pages (privacy policy etc.) */
.doc { padding: clamp(48px, 8vw, 96px) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.doc-meta { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: 19px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 1.4em; }
.doc li { margin-bottom: 4px; }
