:root {
  --ink: #171713;
  --muted: #77746e;
  --line: #dedbd2;
  --paper: #f8f7f2;
  --hero-paper: #fffefa;
  --soft: #ebe8df;
  --moss: #414737;
  --white: #ffffff;
  --sans-en: "Helvetica Neue", Arial, sans-serif;
  --ui-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif-en: Georgia, "Times New Roman", serif;
  --sans-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --serif-ja: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --section-title-column: clamp(132px, 12vw, 170px);
  --section-column-gap: clamp(56px, 7vw, 112px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans-en);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.01em;
}

body.is-modal-open {
  overflow: hidden;
}

:lang(ja) body {
  font-family: var(--sans-ja);
}

:lang(en) body {
  font-family: var(--sans-en);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto auto;
  gap: 34px;
  align-items: center;
  padding: 38px 48px;
  color: var(--ink);
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.site-header.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.brand {
  display: block;
  width: max-content;
  line-height: 0;
}

.brand img {
  width: 140px;
  height: auto;
}

.nav {
  display: flex;
  gap: 34px;
  align-items: center;
  color: var(--muted);
  font-family: var(--ui-en);
  font-size: 12px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.04em;
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.lang-switch {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-family: var(--ui-en);
  font-size: 12px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.04em;
}

.lang-switch button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.lang-switch button:hover,
.lang-switch button.is-active {
  color: var(--ink);
}

main {
  overflow-x: clip;
  overflow-y: visible;
}

.hero {
  position: sticky;
  z-index: 0;
  top: 0;
  display: grid;
  min-height: 100svh;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--hero-paper);
  padding: 0;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #111;
  content: "";
  transform: translateY(0);
  animation: heroCurtainDown 1300ms cubic-bezier(0.76, 0, 0.24, 1) 120ms both;
  pointer-events: none;
  will-change: transform;
}

.hero-copy {
  --hero-copy-space: clamp(72px, 9vw, 132px);
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  align-self: end;
  padding: 0 clamp(48px, 5vw, 96px) var(--hero-copy-space) var(--hero-copy-space);
}

.kicker,
.work-no,
.work-type,
.work-year,
.footer {
  color: var(--muted);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.kicker {
  margin-top: 32px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 10ch;
  font-family: var(--serif-en);
  font-size: clamp(64px, 10vw, 160px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.035em;
}

.hero-title {
  width: min(28vw, 340px);
  max-width: none;
  line-height: 0;
}

.hero-logo {
  width: 100%;
  height: auto;
}

.hero-title {
  animation: heroFadeIn 900ms ease 1450ms both;
}

.lead {
  max-width: 520px;
  margin-top: 52px;
  color: #36352f;
  font-size: 18px;
  line-height: 2.05;
  letter-spacing: 0.04em;
  white-space: pre-line;
}

:lang(ja) .lead {
  font-family: var(--sans-ja);
}

.hero .lead {
  animation: heroFadeUp 900ms ease 1660ms both;
}

.hero .kicker {
  animation: heroFadeUp 900ms ease 1860ms both;
}

.hero-media {
  position: relative;
  margin: 0;
  align-self: stretch;
  overflow: hidden;
}

.hero-media img {
  height: 100%;
  min-height: 100svh;
  object-fit: cover;
  filter: saturate(0.8);
  transform: translate3d(0, var(--hero-image-shift, -2%), 0) scale(1.05);
  will-change: transform;
}

@keyframes heroCurtainDown {
  to {
    transform: translateY(120%);
  }
}

@keyframes heroCurtainDownMobile {
  to {
    transform: translateY(150vh);
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero .lead,
  .hero .kicker,
  .hero::after {
    animation: none;
  }

  .hero::after {
    display: none;
  }
}

.works,
.studio,
.service,
.contact {
  position: relative;
  z-index: 2;
  background: var(--paper);
  padding: clamp(130px, 15vw, 210px) 48px;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 84px;
}

h2 {
  font-family: var(--serif-en);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.035em;
}

#works-title {
  font-size: clamp(24px, 2.4vw, 34px);
}

.work-list {
  border-top: 1px solid var(--ink);
}

.work-item {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.work-item a {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.35fr) minmax(240px, 0.72fr) 70px;
  gap: clamp(36px, 5vw, 96px);
  align-items: start;
  padding: 24px 0;
  transition:
    color 180ms ease,
    padding-left 180ms ease;
}

.work-no {
  align-self: start;
  padding-top: 0.16em;
}

.work-type,
.work-year {
  padding-top: 0.38em;
}

.work-item:hover a {
  padding-left: 24px;
  color: var(--moss);
}

.work-title {
  overflow-wrap: anywhere;
  font-family: var(--serif-en);
  font-size: clamp(26px, 2.2vw, 38px);
  line-height: 1.08;
  letter-spacing: 0.025em;
}

.work-item img {
  position: absolute;
  z-index: 5;
  right: 7vw;
  bottom: 22px;
  width: min(34vw, 470px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.work-item:hover img {
  opacity: 1;
  transform: translateY(0);
}

.studio-layout {
  display: grid;
  grid-template-columns: var(--section-title-column) minmax(320px, 0.9fr) minmax(280px, 0.72fr);
  gap: var(--section-column-gap);
  align-items: start;
}

.studio {
  border-bottom: 1px solid var(--line);
}

.service {
  border-top: 0;
}

.studio-head {
  margin-bottom: 0;
}

.studio-copy-en {
  max-width: 560px;
  font-family: var(--serif-en);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.32;
  letter-spacing: 0.025em;
}

.studio-copy-ja {
  max-width: 420px;
  justify-self: end;
  color: var(--muted);
  font-family: var(--sans-ja);
  font-size: 14px;
  font-weight: 300;
  line-height: 2.15;
  letter-spacing: 0.04em;
}

.service-layout {
  display: grid;
  grid-template-columns: var(--section-title-column) minmax(520px, 1fr);
  gap: var(--section-column-gap);
  align-items: start;
}

.service-head {
  margin-bottom: 0;
}

.service-list {
  display: grid;
  grid-column: 2;
  margin: 0;
  padding: 0;
}

.service-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: 0 0 34px;
  border-bottom: 1px solid var(--line);
}

.service-item + .service-item {
  padding-top: 34px;
}

.service-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.service-icon {
  width: 54px;
  height: 54px;
  margin-top: 4px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.78;
}

.service-body {
  display: grid;
  row-gap: 12px;
}

.service-item h3 {
  margin: 0;
  font-family: var(--serif-en);
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.32;
  font-weight: 400;
  letter-spacing: 0.025em;
}

.service-item p {
  margin: 2px 0 0;
  color: var(--ink);
  font-family: var(--sans-ja);
  font-size: 14px;
  font-weight: 300;
  line-height: 2.15;
  letter-spacing: 0.04em;
}

.service-item small {
  display: block;
  margin-top: -6px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--sans-ja);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.03em;
}

.service-item p:lang(en),
.service-item small:lang(en) {
  font-family: var(--ui-en);
  letter-spacing: 0.035em;
}

.contact {
  min-height: 54svh;
  border-bottom: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: var(--section-title-column) minmax(420px, 1fr);
  gap: var(--section-column-gap);
  align-items: start;
}

.contact-head {
  margin-bottom: 0;
}

.contact p {
  max-width: 720px;
  font-family: var(--serif-en);
  font-size: clamp(34px, 5.8vw, 92px);
  line-height: 1.16;
  letter-spacing: 0.025em;
}

:lang(ja) .contact p {
  font-family: var(--serif-ja);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.42;
  font-weight: 400;
}

.contact-link {
  display: inline-block;
  margin-top: 64px;
  margin-left: calc(var(--section-title-column) + var(--section-column-gap));
  border-bottom: 1px solid var(--ink);
  font-size: clamp(22px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 48px;
  font-family: var(--ui-en);
}

.work-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 320ms ease,
    visibility 0s linear 320ms;
}

.work-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.work-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(248, 247, 242, 0.88);
}

.work-modal__panel {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.work-modal__panel::-webkit-scrollbar,
.work-modal__body::-webkit-scrollbar {
  display: none;
}

.work-modal__panel,
.work-modal__body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.work-modal.is-open .work-modal__panel {
  opacity: 1;
  transform: translateY(0);
}

.work-modal__header {
  z-index: 2;
  display: flex;
  gap: 32px;
  align-items: start;
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.work-modal__meta {
  display: grid;
  flex: 0 0 auto;
  gap: 7px;
  color: var(--muted);
  font-family: var(--ui-en);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.work-modal__meta-row {
  display: flex;
  gap: 16px;
}

.work-modal__header h2 {
  flex: 0 1 auto;
  align-self: center;
  max-width: 860px;
  font-size: clamp(24px, 2.8vw, 40px);
  letter-spacing: 0.025em;
}

.work-modal__close {
  margin-left: auto;
  appearance: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--ui-en);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.work-modal__close:hover {
  color: var(--ink);
}

.work-modal__body {
  --modal-body-padding: 32px;
  position: relative;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  padding: var(--modal-body-padding);
}

.work-gallery {
  position: relative;
  height: auto;
  margin-top: 0;
  width: max-content;
}

.work-gallery__sticky {
  width: max-content;
  height: 100%;
  display: flex;
  align-items: center;
}

.work-gallery__track {
  display: flex;
  width: max-content;
  height: auto;
  gap: 24px;
}

.project-screen {
  position: relative;
  flex: 0 0 calc(var(--modal-image-height, 60vh) * 1.7778);
  aspect-ratio: 16 / 9;
  height: var(--modal-image-height, 60vh);
  max-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fbfaf6;
}

.project-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84);
}

.work-modal__info-button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  appearance: none;
  padding: 8px 18px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--ui-en);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.work-modal__info-button:hover {
  background: #2f2d29;
  color: var(--paper);
}

.work-info-panel {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  padding: 32px;
  border-left: 1px solid var(--line);
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    opacity 300ms ease,
    transform 360ms ease;
}

.work-info-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.work-info-panel__close {
  appearance: none;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--ui-en);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.work-info-panel__content {
  display: grid;
  gap: 28px;
  margin-top: 64px;
  font-family: var(--ui-en);
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.04em;
}

.work-info-panel__number {
  color: var(--muted);
}

.work-info-panel__title {
  font-family: var(--serif-en);
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0.025em;
}

.work-info-panel__credits {
  display: grid;
  gap: 18px;
}

.work-info-panel__credits div {
  display: grid;
  gap: 4px;
}

.work-info-panel__credits dt {
  color: var(--muted);
}

.work-info-panel__credits dd {
  margin: 0;
}

.work-info-panel__description {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  white-space: pre-line;
}

html[lang="ja"] .work-info-panel__description {
  font-family: var(--sans-ja);
  letter-spacing: 0.04em;
}

.work-info-panel a {
  border-bottom: 1px solid currentColor;
}

.policy-page {
  background: var(--paper);
}

.policy-page .site-header {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.policy-main {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(88px, 11vw, 150px) 48px clamp(120px, 14vw, 180px);
}

.policy-hero {
  display: grid;
  gap: 24px;
  padding-bottom: clamp(64px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}

.policy-eyebrow,
.policy-updated {
  color: var(--muted);
  font-family: var(--ui-en);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.policy-hero h1 {
  max-width: none;
  font-family: var(--serif-ja);
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.policy-content {
  display: grid;
  gap: 44px;
  padding-top: clamp(64px, 7vw, 96px);
  font-family: var(--sans-ja);
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 0.035em;
}

.policy-content section {
  display: grid;
  gap: 18px;
}

.policy-content h2 {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--ui-en);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.policy-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25em;
}

.policy-content li {
  padding-left: 0.2em;
}

.policy-content a {
  border-bottom: 1px solid currentColor;
}

.policy-en {
  margin-top: clamp(36px, 5vw, 64px);
  color: var(--muted);
}

.policy-en h2,
.policy-en p {
  font-family: var(--ui-en);
  letter-spacing: 0.035em;
}

.policy-footer {
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header {
    padding: 16px 24px;
    grid-template-columns: 1fr auto auto;
  }

  .policy-main {
    padding: 80px 24px 120px;
  }

  .policy-content {
    gap: 38px;
    font-size: 13px;
    line-height: 2.1;
  }

  .nav {
    gap: 16px;
    justify-self: end;
  }

  .lang-switch {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .hero {
    position: relative;
    z-index: auto;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
    overflow: hidden;
    padding: 0 0 64px;
  }

  .hero::after {
    animation-name: heroCurtainDownMobile;
  }

  .hero-copy {
    order: 2;
    padding: 0 24px;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(56px, 18vw, 98px);
  }

  .hero-title {
    width: 40vw;
    max-width: none;
  }

  .hero-media img {
    min-height: 380px;
    max-height: 52svh;
  }

  .hero-media {
    order: 1;
  }

  .works,
  .studio,
  .service,
  .contact {
    padding: 108px 24px;
  }

  .section-head {
    margin-bottom: 56px;
  }

  .work-item a {
    grid-template-columns: 64px 1fr 56px;
    gap: 24px;
    padding: 24px 0;
  }

  .work-type {
    grid-column: 2 / 4;
    margin-top: -14px;
  }

  .work-item img {
    display: none;
  }

  .studio-layout {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .studio-copy-ja {
    max-width: 640px;
    justify-self: start;
  }

  .service-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .service-list {
    grid-column: auto;
  }

  .service-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 22px;
  }

  .service-icon {
    width: 42px;
    height: 42px;
    margin-top: 5px;
  }

  .service-item small {
    grid-column: auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contact-link {
    margin-left: 0;
  }

  .work-modal__panel {
    inset: 0;
    display: block;
    overflow-y: auto;
    border-right: 0;
    border-left: 0;
    transform: none;
  }

  .work-modal.is-open .work-modal__panel {
    transform: none;
  }

  .work-modal__header {
    flex-wrap: wrap;
    gap: 22px;
    padding: 24px;
  }

  .work-modal__meta {
    order: 3;
    flex-basis: 100%;
    gap: 7px;
  }

  .work-modal__header h2 {
    flex: 1 1 0;
    font-size: clamp(22px, 7vw, 32px);
  }

  .work-modal__body {
    --modal-body-padding: 24px;
    overflow: visible;
    min-height: auto;
    padding: var(--modal-body-padding);
  }

  .work-gallery {
    width: auto;
    height: auto;
    overflow: visible;
  }

  .work-gallery__sticky {
    width: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .work-gallery__track {
    display: grid;
    width: auto;
    height: auto;
    gap: 8px;
    padding-bottom: 80px;
    transform: none !important;
  }

  .project-screen {
    flex-basis: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .work-modal__info-button {
    position: fixed;
    right: 16px;
    bottom: 16px;
  }

  .work-info-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 400px);
    height: 100svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 24px calc(96px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

  .work-info-panel__close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1;
    background: var(--paper);
  }

}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 22px;
  }

  .brand img {
    width: 80px;
  }

  .nav {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    gap: 16px;
    align-items: flex-end;
    justify-content: flex-end;
    width: auto;
  }

  .lang-switch {
    grid-column: 3;
    grid-row: 1;
  }

  .hero {
    gap: 24px;
  }

  .kicker {
    margin-top: 28px;
  }

  .lead {
    font-size: 15px;
    margin-top: 38px;
    line-height: 2;
  }

  .hero-title {
    width: 40vw;
  }

  .work-item a {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px 20px;
    align-items: start;
    padding: 24px 0;
  }

  .work-title {
    grid-column: 2;
    font-size: clamp(21px, 6.2vw, 30px);
  }

  .work-no {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding-top: 0.16em;
  }

  .work-year {
    grid-column: 1;
    grid-row: 2;
  }

  .work-type {
    grid-column: 2;
    margin-top: 0;
  }

  .service-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 18px;
  }

  .service-icon {
    width: 36px;
    height: 36px;
  }

  .footer {
    flex-wrap: wrap;
    padding: 32px 24px;
  }
}
