:root {
  color-scheme: light;
  --paper: #fafafa;
  --surface: #f1f1f0;
  --ink: #27272a;
  --soft-ink: #707070;
  --faint-ink: #848484;
  --line: #e4e4e2;
  --nav-background: rgb(250 250 250 / 88%);
  --font-sans: "DM Sans", "Noto Sans JP", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #18181b;
  --surface: #232326;
  --ink: #eeeeed;
  --soft-ink: #b0b0b3;
  --faint-ink: #9a9a9f;
  --line: #363639;
  --nav-background: rgb(24 24 27 / 88%);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
}
a {
  color: inherit;
}
button {
  font: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
.site-shell {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}
.top-nav {
  position: fixed;
  z-index: 80;
  top: max(20px, env(safe-area-inset-top));
  left: 50%;
  display: flex;
  align-items: center;
  padding: 5px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--nav-background);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.theme-toggle,
.language-toggle {
  display: grid;
  width: 44px;
  height: 38px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--soft-ink);
  cursor: pointer;
}
.theme-toggle:hover,
.language-toggle:hover,
.language-toggle[aria-expanded="true"] {
  color: var(--ink);
}
.top-nav svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .theme-moon,
[data-theme="dark"] .theme-toggle .theme-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .theme-moon {
  display: block;
}
.language-menu {
  position: relative;
}
.language-menu::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 17px;
  background: var(--line);
  content: "";
  transform: translateY(-50%);
}
.language-options {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: flex;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transform: translateX(-50%);
}
.language-options[hidden] {
  display: none;
}
.language-options button {
  min-width: 42px;
  min-height: 38px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--soft-ink);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.language-options button.is-active {
  background: var(--ink);
  color: var(--paper);
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 130px 0 80px;
  text-align: center;
}
.portrait-slot {
  width: 126px;
  height: 126px;
  margin-bottom: 13px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface);
}
.portrait-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) contrast(1.2) brightness(0.9);
}
.hero-name {
  margin: 0 0 22px;
  font-size: 18px;
}
.hero-statement {
  max-width: 660px;
  margin: 0 0 16px;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 500;
  line-height: 1.35;
}
.hero-followup {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  transition:
    opacity 550ms ease,
    transform 550ms ease;
}
.hero-followup.is-awaiting {
  opacity: 0;
  transform: translateY(16px);
}
.hero-tagline {
  max-width: 560px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.9;
  text-align: center;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  margin-top: 20px;
}
.hero-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.hero-links a:hover {
  color: var(--soft-ink);
}
.projects-section {
  padding-bottom: 60px;
}
.projects-section > h2 {
  margin: 0 0 30px;
  color: var(--faint-ink);
  font-size: 12px;
  font-weight: 500;
}
.project-layout,
.project-feed,
.project-entry {
  min-width: 0;
}
.project-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 40px;
}
.project-index a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--faint-ink);
  font-size: 13px;
  text-decoration: none;
}
.project-index a::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0;
}
.project-index a.is-active,
.project-index a:hover {
  color: var(--ink);
}
.project-index a.is-active::before {
  opacity: 1;
}
.project-entry {
  scroll-margin-top: 10px;
}
.project-entry + .project-entry {
  margin-top: 90px;
}
.project-category {
  margin: 0 0 10px;
  color: var(--faint-ink);
  font-size: 11px;
}
.project-entry h3 {
  margin: 0 0 16px;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.3;
}
.project-description {
  max-width: 700px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.9;
  text-align: justify;
  overflow-wrap: anywhere;
}
.project-tags {
  margin: 18px 0 0;
  color: var(--faint-ink);
  font-size: 12px;
  line-height: 1.8;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}
.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.project-links a:hover {
  color: var(--soft-ink);
}
.project-demo-note {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--faint-ink);
  font-size: 11px;
  line-height: 1.8;
}
.project-gallery {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.project-shot {
  display: flex;
  align-self: start;
  align-items: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
}
.project-shot img {
  display: block;
  margin: 0;
  width: 100%;
  height: auto;
}
.project-story {
  margin-top: 24px;
}
.project-story summary {
  width: fit-content;
  padding-block: 8px;
  color: var(--soft-ink);
  font-size: 13px;
  cursor: pointer;
}
.project-story-content {
  max-width: 700px;
  margin-top: 20px;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.9;
  text-align: justify;
}
.project-story-section + .project-story-section {
  margin-top: 22px;
}
.project-story-section h4 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: start;
}
.project-story-section p {
  margin: 0;
}
.project-design-credit {
  margin: 24px 0 0;
  font-size: 12px;
}
.back-to-top {
  display: block;
  width: fit-content;
  margin: 80px auto 0;
  color: var(--soft-ink);
  font-size: 12px;
  text-decoration: none;
}
@media (min-width: 721px) {
  .site-shell {
    width: min(100% - 64px, 1240px);
  }
  .hero {
    padding: 150px 0 110px;
  }
  .portrait-slot {
    width: 132px;
    height: 132px;
  }
  .hero-tagline {
    font-size: 14px;
  }
  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  #work-lentra .project-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-shot {
    border-radius: 30px;
  }
  .project-shot:first-child,
  .project-shot:last-child:nth-child(even) {
    grid-column: 1 / -1;
  }
  .project-entry + .project-entry {
    margin-top: 120px;
  }
}
@media (min-width: 1000px) {
  .project-layout {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
  .project-index {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
  }
  .project-entry h3 {
    font-size: 32px;
  }
}
.project-gallery.project-gallery--composed {
  grid-template-columns: minmax(0, 1fr);
}
.project-shot-row {
  display: flex;
  gap: inherit;
  min-width: 0;
}
.project-shot-row > .project-shot {
  flex: var(--shot-ratio, 1) 1 0;
  min-width: 0;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-followup {
    transition: none;
  }
}
