:root {
  --bg: #0A0F1C;
  --surface: #121A2B;
  --border: #1F2A44;
  --text: #E6EAF2;
  --text-sub: #98A3BA;
  --accent-1: #38BDF8;
  --accent-2: #6366F1;
  --grad: linear-gradient(100deg, var(--accent-1), var(--accent-2));
  --font-sans: "Noto Sans JP", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;
  --font-mono: "JetBrains Mono", "Noto Sans JP", monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* Subtle dot grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: rgba(10, 15, 28, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.wordmark-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:not(.nav-cta) { color: var(--text-sub); padding: 10px 6px; transition: color 0.2s; }
.site-nav a:not(.nav-cta):hover { color: var(--text); }

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ---------- Hero ---------- */
.hero {
  padding: 180px 0 110px;
  background:
    radial-gradient(ellipse 900px 500px at 75% -10%, rgba(99, 102, 241, 0.16), transparent 65%),
    radial-gradient(ellipse 700px 420px at 15% 5%, rgba(56, 189, 248, 0.10), transparent 60%);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent-1);
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-sub);
  font-size: 1.02rem;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { opacity: 0.85; }

.btn-ghost { border: 1px solid var(--border); color: var(--text-sub); }
.btn-ghost:hover { border-color: var(--accent-1); color: var(--text); }

.award-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.award-strip li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  background: rgba(18, 26, 43, 0.6);
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: rgba(18, 26, 43, 0.4); border-block: 1px solid var(--border); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent-1);
  margin-bottom: 10px;
}

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

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 20px; }

.services-grid { grid-template-columns: repeat(3, 1fr); }
.awards-grid { grid-template-columns: repeat(3, 1fr); }
.works-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover { border-color: rgba(56, 189, 248, 0.45); transform: translateY(-3px); }

.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.6; }
.card p:last-child { font-size: 0.9rem; color: var(--text-sub); }

.card-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 14px;
}

.award-card .award-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 12px;
}

.cert-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.cert-chips li {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
}

.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  line-height: 1.3;
}

.stat-unit {
  font-size: 0.85rem;
  margin-left: 4px;
  /* Solid light tone: small text inside the gradient clip fails AA contrast */
  color: #7DD3FC;
  -webkit-text-fill-color: #7DD3FC;
}

/* ---------- Profile ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.profile-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.profile-name-en {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  margin-left: 10px;
}

.profile-role {
  font-size: 0.85rem;
  color: var(--accent-1);
  margin-bottom: 20px;
}

.profile-bio > p:last-child { color: var(--text-sub); font-size: 0.95rem; }

.timeline { list-style: none; border-left: 1px solid var(--border); padding-left: 24px; }

.timeline li {
  position: relative;
  padding-bottom: 22px;
  font-size: 0.9rem;
  display: flex;
  gap: 14px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -28.5px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-1);
  min-width: 46px;
  padding-top: 2px;
}

.tl-body { color: var(--text-sub); }

/* ---------- Contact ---------- */
.contact-section { text-align: center; }
.contact-section .section-title { margin-bottom: 20px; }
.contact-lead { color: var(--text-sub); margin-bottom: 36px; }
.contact-mail { margin-bottom: 32px; }
.contact-noscript { color: var(--text-sub); margin-bottom: 24px; }

.external-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.external-links:empty { display: none; }

.external-links a {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 22px;
  transition: border-color 0.2s, color 0.2s;
}

.external-links a:hover { border-color: var(--accent-1); color: var(--text); }

.notes-teaser {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-sub);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* ---------- Reveal on scroll ----------
   Hidden state is applied by script.js (.reveal-pending), so content
   stays visible without JavaScript. */
.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.reveal-pending { opacity: 0; transform: translateY(14px); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.reveal-pending { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

@media print {
  .reveal.reveal-pending { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
.pc-only { display: inline; }

@media (max-width: 900px) {
  .services-grid, .awards-grid, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .pc-only { display: none; }
  .hero { padding: 140px 0 80px; }
  .section { padding: 80px 0; }
  .services-grid, .awards-grid, .works-grid { grid-template-columns: 1fr; }
  .wordmark { font-size: 1rem; }
  .site-nav { gap: 6px; font-size: 0.8rem; }
  .site-nav .nav-sp-hide { display: none; }
  .nav-cta { padding: 7px 14px; }
}
