@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root { color-scheme: dark; scroll-behavior: smooth; }
* { box-sizing: border-box; }
body.dark-theme { --bg: #171916; --surface: #20231e; --text: #e9e9df; --muted: #a2a69b; --line: #41463e; --accent: #d9e57c; }
body.light-theme { --bg: #eeefe6; --surface: #e0e3d7; --text: #252a22; --muted: #626a5e; --line: #b8beb0; --accent: #52621e; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Noto Sans JP', sans-serif; font-size: 16px; line-height: 1.8; transition: background-color .2s, color .2s; }
body.light-theme { color-scheme: light; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap, .header-inner { width: min(100% - 64px, 1180px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 30; top: -100px; left: 20px; background: var(--accent); color: var(--bg); padding: 8px 16px; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; }
.brand-dot { color: var(--accent); }
.main-nav { display: flex; gap: clamp(16px, 3vw, 40px); margin-left: auto; }
.main-nav a, .theme-toggle { font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.main-nav a { color: var(--muted); }
.main-nav a:hover { color: var(--text); }
.theme-toggle { border: 1px solid var(--line); background: transparent; color: var(--text); padding: 8px 12px; cursor: pointer; font-family: inherit; }
.theme-toggle:hover { border-color: var(--accent); }
.hero { position: relative; min-height: min(780px, 85vh); padding-top: 25px; padding-bottom: 72px; display: flex; flex-direction: column; justify-content: center; }
.hero-topline { position: absolute; inset: 24px 0 auto; display: flex; justify-content: space-between; color: var(--muted); font: 11px 'DM Mono', monospace; letter-spacing: .08em; }
.eyebrow, .section-number, .item-number, .hero-index { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin: 65px 0 22px; }
.status-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { font-size: clamp(64px, 10vw, 148px); line-height: 1.23; letter-spacing: -.09em; font-weight: 700; margin: 0 0 54px; }
.hero h1 span { color: var(--accent); }
.hero-bottom { display: flex; gap: 40px; align-items: end; justify-content: space-between; max-width: 800px; }
.hero-bottom p { font-size: clamp(16px, 1.6vw, 21px); line-height: 1.9; margin: 0; }
.text-link { flex-shrink: 0; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 5px; }
.text-link span { margin-left: 16px; color: var(--accent); }
.hero-index { position: absolute; right: 0; bottom: 27px; }
.section { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: clamp(100px, 13vw, 180px); scroll-margin-top: 24px; }
.section-heading { display: grid; grid-template-columns: 31% 1fr; align-items: baseline; margin-bottom: 54px; }
.section-heading h2 { font-size: clamp(36px, 5vw, 66px); letter-spacing: -.06em; line-height: 1.35; margin: 0; }
.section-body { margin-left: 31%; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 85px); }
.lead { font-size: clamp(23px, 2.5vw, 34px); font-weight: 600; line-height: 1.65; letter-spacing: -.045em; }
.prose { color: var(--muted); font-size: 15px; line-height: 2.1; }
.prose p { margin-bottom: 23px; }
.prose a, .year a { color: var(--text); text-decoration-color: var(--accent); }
.prose a:hover, .year a:hover { color: var(--accent); }
.work-item { display: grid; grid-template-columns: 54px 1fr 30px; gap: 12px; border-top: 1px solid var(--line); padding: 29px 0 33px; }
.work-item:last-child, .year:last-child { border-bottom: 1px solid var(--line); }
.item-number { padding-top: 9px; }
.work-item h3 { font-size: clamp(23px, 2.7vw, 35px); letter-spacing: -.05em; margin: 0 0 5px; }
.work-item p { color: var(--muted); font-size: 14px; margin: 0; }
.item-mark { color: var(--accent); font-size: 22px; }
.year { display: grid; grid-template-columns: 125px 1fr; border-top: 1px solid var(--line); padding: 28px 0; }
.year h3 { font: 500 24px 'DM Mono', monospace; color: var(--accent); margin: 0; }
.year ul { list-style: none; padding: 0; margin: 0; }
.year li { margin: 0 0 9px; }
.year li:last-child { margin-bottom: 0; }
.links-intro { color: var(--muted); margin-bottom: 32px; }
.link-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.link-grid a { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 17px 0; font-size: 19px; font-weight: 600; text-decoration: none; }
.link-grid a:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.link-grid span { color: var(--accent); font-size: 20px; font-weight: 400; }
.contact { background: var(--accent); color: #171916; padding: clamp(65px, 9vw, 120px) 0; }
body.light-theme .contact { color: #f5f5ec; }
.contact .section-number { color: inherit; opacity: .7; }
.contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.contact h2 { font-size: clamp(40px, 6vw, 80px); line-height: 1.4; letter-spacing: -.07em; margin: 18px 0 0; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 60px; min-width: 220px; border-bottom: 1px solid currentColor; padding-bottom: 12px; font-weight: 700; text-decoration: none; }
.contact-link:hover { color: inherit; opacity: .65; }
.site-footer { display: flex; justify-content: space-between; padding-top: 30px; padding-bottom: 40px; color: var(--muted); font: 12px 'DM Mono', monospace; }
.site-footer a { text-decoration: none; }
@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 16px 0; }
  .main-nav { order: 3; width: 100%; margin: 5px 0 0; justify-content: space-between; gap: 10px; }
  .theme-toggle { margin-left: auto; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .section-body { margin-left: 0; }
  .about-layout { grid-template-columns: 1fr 1.3fr; }
}
@media (max-width: 580px) {
  .wrap, .header-inner { width: min(100% - 36px, 1180px); }
  .header-inner { min-height: 0; }
  .main-nav a { font-size: 12px; }
  .hero { min-height: 680px; padding-bottom: 90px; }
  .hero-topline { font-size: 10px; }
  .hero h1 { font-size: clamp(53px, 12vw, 72px); letter-spacing: -.08em; margin-bottom: 40px; }
  .hero-bottom { display: block; }
  .hero-bottom p { margin-bottom: 32px; }
  .about-layout, .link-grid { grid-template-columns: 1fr; }
  .lead { margin-bottom: 0; }
  .section-heading { margin-bottom: 35px; }
  .year { grid-template-columns: 1fr; gap: 15px; }
  .link-grid a:nth-last-child(2) { border-bottom: 0; }
  .contact-inner { display: block; }
  .contact-link { width: fit-content; margin-top: 50px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } body { transition: none; } }
