:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6f6f6f;
  --faint: #a3a3a3;
  --line: #e8e8e8;
  --hover: #f5f5f5;
  --font: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.85; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--text); color: var(--bg); }

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

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.site-header-inner {
  max-width: 600px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo { font-weight: 500; letter-spacing: -.01em; }
.site-header nav { display: flex; gap: 20px; font-size: 14px; }
.site-header nav a { color: var(--muted); transition: color .2s; }
.site-header nav a:hover { color: var(--text); }

.page { max-width: 600px; margin: 0 auto; padding: 72px 24px 80px; }
.muted { color: var(--muted); }

/* stagger-in */
.page > * { animation: enter .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } }

/* intro */
.intro { margin-bottom: 48px; }
h1 { margin: 0 0 8px; font-size: clamp(32px, 6vw, 44px); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.intro p { margin: 0; line-height: 1.6; }

/* sections */
section { margin-bottom: 64px; }
section p { margin: 0 0 1em; }
section p:last-child { margin-bottom: 0; }
h2 { margin: 0 0 16px; font-size: 15px; font-weight: 500; color: var(--muted); }

/* text link */
.link {
  text-decoration: underline; text-decoration-color: var(--faint);
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: var(--text); }

/* works */
.works { list-style: none; margin: 0 -12px; padding: 0; }
.work {
  display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: start;
  padding: 12px; border-radius: 12px; transition: background .2s;
}
@media (hover: hover) { .work:hover { background: var(--hover); } }
.work img {
  display: block; width: 128px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
.work-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.work-title { font-weight: 500; }
.work-text .muted { font-size: 14px; line-height: 1.75; }
.ext { display: inline-block; color: var(--faint); font-size: 12px; margin-left: 2px; transition: transform .2s, color .2s; }
.work:hover .ext, .links a:hover::after { color: var(--text); transform: translate(1px, -1px); }

/* links */
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.links a {
  text-decoration: underline; text-decoration-color: var(--faint);
  text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .2s;
}
.links a:hover { text-decoration-color: var(--text); }
.links a::after { content: "↗"; display: inline-block; margin-left: 3px; font-size: 12px; color: var(--faint); transition: transform .2s, color .2s; text-decoration: none; }

/* career */
.career { margin: 24px 0 0; }
.career div { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 6px 0; }
.career dt { color: var(--muted); font-variant-numeric: tabular-nums; }
.career dd { margin: 0; }
.career dd .muted { display: block; font-size: 14px; line-height: 1.7; }

/* talks */
.talks { list-style: none; margin: 0 -12px; padding: 0; }
.talk {
  display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: baseline;
  padding: 10px 12px; border-radius: 10px; transition: background .2s;
}
@media (hover: hover) { .talk:hover { background: var(--hover); } }
.talk time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.talk-body { display: flex; flex-direction: column; min-width: 0; }
.talk-title { font-weight: 500; line-height: 1.6; }
.talk-body .muted { font-size: 13px; line-height: 1.7; }
.talk:hover .ext { color: var(--text); transform: translate(1px, -1px); }
.more { margin-top: 16px !important; font-size: 14px; }

.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; color: var(--faint);
}
.share {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font-size: 13px; font-weight: 500;
  transition: background .2s, border-color .2s;
}
.share:hover { background: var(--hover); border-color: var(--faint); }

@media (min-width: 1024px) {
  body { font-size: 16px; }
  h2 { font-size: 16px; }
  h1 { font-size: 52px; }
  .page { max-width: 800px; padding-top: 112px; }
  .site-header-inner { max-width: 800px; height: 72px; }
  .site-header nav { font-size: 15px; gap: 28px; }
  section { margin-bottom: 80px; }
  .work { grid-template-columns: 176px 1fr; gap: 24px; }
  .work img { width: 176px; }
  .work-text .muted { font-size: 15px; }
}
@media (max-width: 520px) {
  .page { padding: 48px 20px 56px; }
  .site-header-inner { padding: 0 20px; height: 56px; }
  .site-header nav { gap: 10px; font-size: 12px; }
  .site-logo { font-size: 14px; }
  .career div { grid-template-columns: 56px 1fr; gap: 12px; }
  .talk { grid-template-columns: 1fr; gap: 0; }
  .work { grid-template-columns: 1fr; gap: 12px; }
  .work img { width: 100%; }
  section { margin-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .page > * { animation: none; }
}
