:root {
  --paper: #f8f8f6;
  --ink: #151515;
  --muted: #979793;
  --line: #c8c8c3;
  --accent: #78bebb;
  --rail: 285px;
  --gutter: clamp(28px, 5vw, 76px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 9px 12px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--rail);
  padding: 74px 36px 48px 52px;
  background: var(--paper);
}

.brand {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.site-nav {
  display: grid;
  gap: 25px;
  margin-top: 61px;
  font-size: 17px;
}

.site-nav a {
  width: max-content;
  transition: color 180ms ease, transform 180ms ease;
}
.site-nav a:hover { transform: translateX(3px); }
.site-nav a[aria-current="page"] { color: var(--accent); }

.copyright {
  margin: 70px 0 0;
  color: #c6c6c1;
  font-size: 11px;
}

.main-content {
  min-height: 100vh;
  margin-left: var(--rail);
  padding: 74px var(--gutter) 100px;
}

.page-section {
  max-width: 1000px;
  margin: 0 auto;
}

.timeline { display: grid; }

.work {
  width: 100%;
  margin: 0;
}
.work--fomo-cover {
  width: min(100%, 540px, calc((100vh - 160px) * .8005));
  width: min(100%, 540px, calc((100svh - 160px) * .8005));
  justify-self: center;
}
.work--motion,
.work--app-board {
  max-width: 940px;
  justify-self: center;
}
.work--footwear {
  width: 66%;
  max-width: 620px;
  justify-self: center;
}

.work img,
.work video {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.work figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 10px;
  color: #777773;
  font-size: 11px;
  letter-spacing: 0.015em;
}
.work figcaption span { color: #b3b3ae; }

.timeline-mark,
.contact-mark {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 62px 0;
}
.timeline-mark i,
.contact-mark i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.contact-page {
  max-width: 930px;
  padding-top: 1px;
}

.contact-intro {
  max-width: 720px;
  margin-left: auto;
  font-size: 14px;
  line-height: 1.55;
}
.contact-intro p { margin: 0 0 22px; }
.contact-intro p[lang="ja"] {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.75;
}

.contact-form {
  width: min(100%, 720px);
  margin: 88px 0 0 auto;
}
.contact-form label { display: block; position: relative; }
.contact-form label span {
  position: absolute;
  z-index: 1;
  top: 17px;
  left: 16px;
  color: #40403d;
  font-size: 12px;
  pointer-events: none;
  transition: transform 140ms ease, color 140ms ease;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 0;
  padding: 28px 16px 9px;
  color: var(--ink);
  background: transparent;
  outline: none;
}
.contact-form input { height: 52px; }
.contact-form textarea {
  min-height: 220px;
  border-bottom: 1px solid var(--line);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--ink); }
.contact-form input:focus + span,
.contact-form textarea:focus + span { color: var(--accent); }

.contact-form button {
  margin-top: 11px;
  padding: 14px 25px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.contact-form button:hover,
.contact-form button:focus-visible {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}
.form-status {
  min-height: 20px;
  margin: 13px 0 0;
  color: #777773;
  font-size: 11px;
}

.mobile-header { display: none; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  :root { --gutter: 26px; }

  .sidebar {
    position: fixed;
    top: 68px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    padding: 30px 26px 36px;
    border-bottom: 1px solid #e4e4df;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }
  body.menu-open .sidebar { opacity: 1; visibility: visible; transform: none; }
  .sidebar .brand { display: none; }
  .site-nav { gap: 19px; margin: 0; font-size: 18px; }
  .copyright { margin-top: 34px; }

  .mobile-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 26px;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(12px);
  }
  .mobile-brand { font-size: 19px; font-weight: 700; letter-spacing: -0.035em; }
  .menu-toggle {
    display: grid;
    gap: 6px;
    width: 38px;
    padding: 10px 3px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) {
    display: block;
    height: 1px;
    background: var(--ink);
    transition: transform 180ms ease;
  }
  body.menu-open .menu-toggle span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

  .main-content { margin-left: 0; padding: 110px var(--gutter) 70px; }
  .timeline-mark { padding: 44px 0; }
  .work figcaption { font-size: 10px; }
  .contact-page { padding-top: 10px; }
  .contact-intro { margin: 0; }
  .contact-form { margin-top: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
