:root {
  --bg: #f5f4f0; --rule: #dfddd6; --dim: #67645e; --fg: #44423d; --strong: #24221f; --accent: #22716a;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #191817; --rule: #312f2c; --dim: #949089; --fg: #c8c4bc; --strong: #edeae4; --accent: #64c2b7; }
}

/* Each piece of copy is written twice; the html lang picks one. */
html[lang="en"] [data-l="ja"], html[lang="ja"] [data-l="en"] { display: none !important; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font: 400 16px/1.7 'Geist', 'Noto Sans JP', system-ui, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
  padding: 0 24px;
}
main { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 640px; width: 100%; margin: 0 auto; padding: 96px 0 64px; }

/* Top page */
h1 { margin: 0 0 40px; font: 600 15px/1 'Geist Mono', monospace; letter-spacing: 0.02em; color: var(--strong); }
p.lead { margin: 0; font-size: clamp(26px, 5vw, 36px); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; color: var(--strong); }
p.sub { margin: 20px 0 0; color: var(--dim); font-size: 15px; word-break: auto-phrase; }
p.lead a { color: var(--accent); text-decoration: none; font-family: 'Geist Mono', monospace; font-weight: 600; }
p.lead a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
a.cta {
  align-self: flex-start; margin-top: 48px; padding: 12px 20px; border: 1px solid var(--rule); border-radius: 6px;
  color: var(--strong); text-decoration: none; font: 600 15px/1 'Geist Mono', monospace;
}
a.cta:hover { border-color: var(--accent); color: var(--accent); }
a.cta span { color: var(--accent); }

/* Company page */
main.company { justify-content: flex-start; padding-top: 72px; }
.home { font: 600 15px/1 'Geist Mono', monospace; color: var(--strong); text-decoration: none; }
.home span { color: var(--accent); }
h2 { margin: 56px 0 16px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--dim); }
dl { margin: 0; display: grid; grid-template-columns: 9em 1fr; border-top: 1px solid var(--rule); }
dt, dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
dt { color: var(--dim); }
dd { color: var(--strong); }
dd a { color: var(--accent); text-decoration: none; }
.social { display: inline-flex; gap: 10px; margin-left: 10px; vertical-align: -2px; }
.social a { display: inline-flex; color: var(--dim); }
.social a:hover { color: var(--strong); }
.social svg { width: 15px; height: 15px; fill: currentColor; }
ul.clients { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; border-top: 1px solid var(--rule); }
ul.clients li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--strong); font-size: 15px; }
p.note { margin: 12px 0 0; font-size: 12px; color: var(--dim); }
@media (max-width: 560px) {
  ul.clients { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; }
  dt { padding-bottom: 0; border-bottom: 0; }
  dd { padding-top: 4px; }
}

/* Footer, then the ISMS mark under it */
footer {
  max-width: 640px; width: 100%; margin: 0 auto; padding: 24px 0 20px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--dim);
}
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--strong); }
.langs { display: flex; gap: 2px; font: 500 12px/1 'Geist Mono', monospace; }
.langs button {
  padding: 4px 6px; border: 0; border-radius: 4px; background: none; color: var(--dim); font: inherit; cursor: pointer; opacity: 0.7;
}
.langs button:hover { opacity: 1; }
.langs button[aria-pressed="true"] { color: var(--strong); opacity: 1; }
.isms { max-width: 640px; width: 100%; margin: 0 auto; padding: 0 0 32px; display: flex; gap: 16px; align-items: center; font-size: 10.5px; line-height: 1.6; color: var(--dim); opacity: 0.85; }
.isms img { width: 112px; height: auto; flex: none; background: #fff; border-radius: 4px; }
.isms p { margin: 0; }
.isms a { color: inherit; text-underline-offset: 2px; }
.isms strong { font-weight: 500; }
@media (max-width: 560px) { .isms { flex-direction: column; align-items: flex-start; } }

/* Policy pages */
.doc h1 { margin: 56px 0 32px; font: 600 24px/1.4 'Geist', 'Noto Sans JP', sans-serif; letter-spacing: 0; color: var(--strong); }
.doc h2 { margin: 36px 0 10px; font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--strong); }
.doc h3 { margin: 28px 0 8px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--strong); }
.doc h2:has(+ h3) { margin-top: 48px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-size: 17px; }
.doc p, .doc li, .doc dd, .doc td, .doc th { font-size: 15px; line-height: 1.85; }
.doc p { margin: 0 0 12px; }
.doc ol, .doc ul { margin: 0 0 12px; padding-left: 1.6em; }
.doc li p { margin: 0; }
.doc li p + p { margin-bottom: 6px; }
.doc table { width: 100%; margin: 0 0 12px; border-collapse: collapse; border-top: 1px solid var(--rule); }
.doc th, .doc td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-size: 14px; line-height: 1.7; }
.doc th { font-weight: 500; color: var(--dim); }
@media (max-width: 560px) {
  /* Three columns don't fit; each row becomes a block with its first cell as the label. */
  .doc thead { display: none; }
  .doc tr, .doc td { display: block; }
  .doc tr { padding: 8px 0; border-bottom: 1px solid var(--rule); }
  .doc td { padding: 0; border: 0; }
  .doc td:first-child { color: var(--strong); font-weight: 500; }
}
.doc dl { grid-template-columns: 1fr; border-top: 0; }
.doc dt { padding: 10px 0 0; border: 0; font-size: 14px; }
.doc dd { padding: 2px 0 10px; border-bottom: 1px solid var(--rule); }
.doc article a { color: var(--accent); }
.doc p.note { margin: -16px 0 24px; }
.doc p.sign { margin-top: 32px; }
