:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --surface: #ffffff;
  --text: #1b2330;
  --muted: #5b6676;
  --line: #e2e6ec;
  --accent: #0b5cad;
  --accent-ink: #ffffff;
  --hero-bg: #0d1724;
  --hero-text: #f3f6fa;
  --hero-muted: #a9b6c7;
  --radius: 10px;
  --max: 1100px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b;
    --bg-alt: #151c25;
    --surface: #1a2230;
    --text: #e6ebf2;
    --muted: #9aa6b6;
    --line: #2a3442;
    --accent: #5aa7f0;
    --accent-ink: #0b1420;
    --hero-bg: #0a0f16;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: .12em; color: var(--text); text-decoration: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-size: .92rem; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
@media (max-width: 767px) {
  .site-header .wrap { flex-direction: column; align-items: stretch; height: auto; padding-top: 10px; }
  .nav { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
  .nav ul { gap: 20px; padding: 8px 0 10px; }
  .nav a { font-size: .85rem; }
}

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-text); padding: 96px 0 104px; }
.hero .eyebrow { color: var(--hero-muted); letter-spacing: .2em; font-size: .8rem; margin: 0 0 16px; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); line-height: 1.15; margin: 0 0 24px; letter-spacing: .02em; }
.hero p.lead { color: var(--hero-muted); font-size: clamp(1rem, 2.4vw, 1.15rem); max-width: 40em; margin: 0 0 36px; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 12px 28px; border-radius: 999px; text-decoration: none; font-weight: 700;
}
.btn:hover { filter: brightness(1.08); }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
.sec-head { margin-bottom: 40px; }
.sec-head .en { color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin: 0; }
.sec-head h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 4px 0 0; line-height: 1.4; }
h3 { font-size: 1.15rem; line-height: 1.5; margin: 0 0 8px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .num { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.card .sub { font-size: .8rem; color: var(--muted); letter-spacing: .05em; margin: -4px 0 12px; }

/* Service detail */
.service { margin-top: 56px; }
.service > h3 { font-size: 1.3rem; padding-bottom: 12px; border-bottom: 2px solid var(--accent); margin-bottom: 24px; }
.service .card h4 { margin: 0 0 8px; font-size: 1.02rem; }
.service .card p { font-size: .94rem; }
.tags { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
section.alt .tags li { background: var(--bg); }

/* Cases */
.cases { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .cases { grid-template-columns: repeat(2, 1fr); } }
.cases li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { font-size: .75rem; white-space: nowrap; border: 1px solid var(--muted); color: var(--muted); border-radius: 4px; padding: 0 8px; }

/* About */
.vision { max-width: 46em; }
.people .role { font-size: .8rem; color: var(--accent); font-weight: 700; letter-spacing: .1em; margin: 0 0 4px; }
.people p { font-size: .94rem; }
table.info { width: 100%; border-collapse: collapse; margin-top: 8px; }
table.info th, table.info td { text-align: left; vertical-align: top; padding: 16px 12px; border-bottom: 1px solid var(--line); }
table.info th { width: 9em; color: var(--muted); font-weight: 600; white-space: nowrap; }
@media (max-width: 543px) {
  table.info th, table.info td { display: block; width: auto; padding: 4px 0; border: 0; }
  table.info tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Contact */
.contact-box { text-align: center; }
.contact-box .mail { font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 700; word-break: break-all; }
.contact-box address { font-style: normal; color: var(--muted); margin-top: 24px; }

footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .82rem; color: var(--muted); text-align: center; }

.nav a.lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: .8rem; letter-spacing: .05em; }
.mt-lg { margin-top: 48px; }
html[lang="en"] body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.7; }
.footer-links { list-style: none; margin: 0 0 8px; padding: 0; display: flex; justify-content: center; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
footer p { margin: 0; }
.people .link { margin: 0; font-size: .88rem; }
