:root {
  --paper: #ffffff;
  --ink: #202124;
  --muted: #5f6368;
  --rule: #dadce0;
  --link: #185a9d;
  --page: min(840px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
::selection { background: #dbeafe; }

.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 8px 12px; transform: translateY(-180%); background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: translateY(0); }
.site-header { width: var(--page); min-height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); }
.site-name { color: var(--ink); font-size: 18px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; }
nav { display: flex; gap: clamp(13px, 2vw, 25px); }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover { color: var(--link); text-decoration: underline; }
nav .lang-switch { color: var(--link); }

main { width: var(--page); margin: 0 auto; }
.intro { max-width: 760px; padding: 32px 0 28px; }
h1,
h2,
h3 { margin: 0; font: inherit; color: var(--ink); }
h1 { font-size: 32px; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; }
.summary { margin: 10px 0 0; font-size: 18px; line-height: 1.55; }
.introduction { max-width: 680px; margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.front-page { margin-bottom: 52px; }
.now-panel,
.notes-panel { padding: 0; }
.notes-panel { margin-top: 30px; }
.front-heading { padding-bottom: 7px; border-bottom: 1px solid var(--ink); }
.front-heading h2,
.section-heading h2 { font-size: 20px; font-weight: 650; line-height: 1.35; }
.now-list { border-top: 0; }
.now-item { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr); align-items: baseline; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.now-item h3 { font-size: 16px; font-weight: 600; line-height: 1.45; }
.now-item > p { margin: 0; color: #3c4043; font-size: 15px; line-height: 1.55; }
.latest-notes { margin: 0; padding: 0; list-style: none; }
.latest-notes li { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.latest-notes a { display: block; font-size: 16px; line-height: 1.55; }

.section { padding: 0 0 56px; }
.section-heading { padding-bottom: 7px; border-bottom: 1px solid var(--ink); }
.project-list { padding-top: 0; }
.project-card { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.project-card h3 { font-size: 18px; font-weight: 650; line-height: 1.45; }
.project-card .overview { margin: 7px 0 0; color: #3c4043; font-size: 15px; line-height: 1.65; }
.project-card dl { margin: 16px 0 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 7px 18px; font-size: 14px; line-height: 1.65; }
.project-card dt { color: var(--muted); }
.project-card dd { margin: 0; color: #3c4043; }
.project-card ul.evidence { margin: 0; padding-left: 20px; }
.links { padding-bottom: 72px; }
.link-list { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 14px; }
.link-list > * { color: var(--link); }
.coming-soon { color: var(--muted); }
.coming-soon small { font-size: 12px; }

.note-body { max-width: 720px; padding: 36px 0 72px; }
.note-body .back { font-size: 14px; }
.note-body h1 { margin-top: 22px; font-size: 28px; line-height: 1.35; }
.note-body .meta { color: var(--muted); font-size: 13px; margin-top: 12px; }
.note-body .translation-note { margin-top: 16px; padding: 10px 12px; border: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.note-body .content { margin-top: 30px; font-size: 16px; line-height: 1.8; }
.note-body .content p { margin: 0 0 1.2em; }
.note-body .content ul { margin: 0 0 1.2em; padding-left: 22px; }
.note-body .content li { margin-bottom: .5em; }
footer { width: var(--page); min-height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
footer a { color: var(--link); }

@media (max-width: 640px) {
  :root { --page: calc(100vw - 32px); }
  .site-header { min-height: 58px; }
  .site-name { font-size: 17px; }
  nav { gap: 12px; }
  nav a { font-size: 13px; }
  .intro { padding: 26px 0 24px; }
  h1 { font-size: 28px; }
  .summary { font-size: 17px; }
  .now-item { display: block; padding: 11px 0; }
  .now-item > p { margin-top: 3px; }
  .notes-panel { margin-top: 26px; }
  .project-card dl { grid-template-columns: 1fr; gap: 2px; }
  .project-card dd { margin-bottom: 10px; }
  footer { min-height: 80px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
