*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: #e1e1e1;
  color: #000000;
  font-family: "Alexandria", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20.25px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: break-word;
  overflow-x: hidden;
}

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

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

::selection {
  background: #000000;
  color: #e1e1e1;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 25px;
  z-index: 100;
  padding: 6px 10px;
  background: #000000;
  color: #e1e1e1;
}
.skip-link:focus {
  top: 8px;
}

:focus-visible {
  outline: 1px solid #000000;
  outline-offset: 2px;
}

.nav {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 11.65% 38.35% 15.18% auto 1fr;
  align-items: center;
  padding: 14px 25px;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
}
.nav--top {
  top: 0;
}
.nav--bottom {
  bottom: 0;
}
.nav a {
  pointer-events: auto;
  white-space: nowrap;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:hover {
  opacity: 0.45;
}
.nav__brand, .nav__item {
  justify-self: start;
}
.nav__ext {
  justify-self: end;
}
.nav__arrow {
  display: inline-block;
  margin-left: 1px;
}
.nav a[aria-current=page] {
  opacity: 1;
}

@media (max-width: 900px) {
  .nav {
    display: flex;
    align-items: baseline;
    gap: 0 12px;
    padding: 12px 20px;
    font-size: 10px;
  }
  .nav__brand {
    margin-right: auto;
    font-size: 14px;
  }
  .nav__ext {
    margin-left: 8px;
  }
  .nav--bottom {
    display: none;
  }
}
@media (max-width: 600px) {
  .nav {
    gap: 0 9px;
  }
  .nav__ext {
    margin-left: 11px;
  }
}
.view {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.view.is-leaving {
  opacity: 0;
}
.view.is-entering {
  opacity: 0;
}

.nav {
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-chrome-hidden .nav {
  opacity: 0;
  pointer-events: none;
}

.detail__head,
.detail__body {
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail.is-content-hidden .detail__head,
.detail.is-content-hidden .detail__body,
.detail.is-content-hidden .detail__back--bottom {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
  .preview {
    display: none;
  }
}
body.is-top {
  overflow: hidden;
}

.top {
  --pad-top: 16.4vh;
  --pad-bottom: 16.4vh;
  display: grid;
  grid-template-columns: 11.65% 1fr;
  padding: var(--pad-top) 25px var(--pad-bottom);
  height: 100vh;
}

.top__head {
  display: contents;
}

.m-hero {
  display: none;
}

.filter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.filter__item {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  line-height: 20.25px;
  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: color 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.filter__item:hover {
  color: #000000;
}
.filter__item.is-active {
  color: #000000;
}

.works {
  list-style: none;
  max-height: calc(100vh - var(--pad-top) - var(--pad-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.works.at-top {
  mask-image: linear-gradient(to bottom, #000 0, #000 91%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 91%, transparent 100%);
}
.works.at-bottom {
  mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 100%);
}
.works.at-top.at-bottom {
  mask-image: none;
  -webkit-mask-image: none;
}
.works::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.works__row--group {
  margin-top: 20.25px;
}
.works__row.is-hidden {
  display: none;
}
.works__link {
  display: grid;
  grid-template-columns: 43.41% 17.18% auto;
  align-items: baseline;
  transition: color 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.works__name, .works__service, .works__year {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.works.is-hovering .works__link {
  color: #aeaeae;
}
.works.is-hovering .works__row.is-active {
  background: linear-gradient(to right, rgba(213, 255, 159, 0.48) 86.81%, transparent 86.81%);
}
.works.is-hovering .works__row.is-active .works__link {
  color: #000000;
}
.works.is-filtering .works__row.is-faint .works__link {
  color: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}
.works.is-cat-preview .works__row:not(.is-cat-faint) .works__link {
  color: #000000;
  pointer-events: auto;
}
.works.is-cat-preview .works__row.is-cat-faint .works__link {
  color: #aeaeae;
}

@media (max-width: 900px) {
  body.is-top {
    position: fixed;
    inset: 0;
    width: 100%;
  }
  .top {
    display: block;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding: 0 20px 18px;
  }
  .top::-webkit-scrollbar {
    display: none;
  }
  .top__head {
    display: block;
    position: sticky;
    top: 0;
    z-index: 5;
    background: #e1e1e1;
    padding-top: calc(var(--header-h, 45px) + 15px);
  }
  .top__head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -34px;
    height: 34px;
    background: linear-gradient(to bottom, #e1e1e1 0%, #e1e1e1 30%, rgba(225, 225, 225, 0) 100%);
    pointer-events: none;
  }
  .filter {
    display: flex;
    flex-flow: row nowrap;
    gap: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter::-webkit-scrollbar {
    display: none;
  }
  .filter__item {
    flex: none;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.5;
  }
  .m-hero {
    display: block;
    position: relative;
    width: 100%;
    margin: 8px 0 0;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
  }
  .m-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .m-hero__img--back {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }
  .works {
    max-height: none;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
    margin-top: 24px;
    transition: opacity 200ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .works.is-swapping {
    opacity: 0;
  }
  .works.is-filtering .works__row.is-faint {
    display: none;
  }
  .works__row.is-mactive .works__link::before {
    content: "";
    grid-row: 1;
    grid-column: 1/3;
    align-self: stretch;
    background: rgba(213, 255, 159, 0.48);
  }
  .works__row.is-mactive .works__service {
    background: rgba(213, 255, 159, 0.48);
  }
  .works__link {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name year" "service .";
    align-items: start;
    column-gap: 16px;
    row-gap: 0;
    padding: 7px 0;
    line-height: 1.35;
  }
  .works__name {
    grid-area: name;
    white-space: normal;
    line-height: 1.35;
  }
  .works__service {
    grid-area: service;
    justify-self: start;
    color: rgba(0, 0, 0, 0.3);
    line-height: 1.35;
  }
  .works__year {
    grid-area: year;
  }
  .works__row--group {
    margin-top: 0;
  }
}
.preview {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(64vw, 930px);
  transform: translate(-50%, -50%) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.28s;
  will-change: transform, opacity;
}
.preview__img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.preview.is-placed {
  z-index: 60;
  top: 0;
  left: 0;
  width: auto;
  transform: none;
  transform-origin: 0 0;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  display: block;
}
.preview.is-placed .preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hover-line {
  display: none;
  position: fixed;
  left: calc(25px + (100vw - 25px * 2) * 0.1165);
  right: calc(25px + (100vw - 25px * 2) * 0.1165);
  z-index: 2;
  height: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.55);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.hover-line.is-visible {
  transform: scaleX(1);
  opacity: 1;
}

@media (max-width: 900px) {
  .preview,
  .hover-line {
    display: none;
  }
}
.detail {
  padding: 16.4vh 25px 140px;
}
.detail__head {
  display: grid;
  grid-template-columns: 11.65% 38.35% 15.18% auto;
  align-items: baseline;
  margin-bottom: 40px;
}
.detail__back {
  grid-column: 1;
  color: rgba(0, 0, 0, 0.3);
  transition: color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.detail__back:hover {
  color: #000000;
}
.detail__back--bottom {
  display: none;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.detail__name {
  grid-column: 2;
  white-space: normal;
  font-size: 14px;
  font-weight: 400;
  line-height: 20.25px;
}
.detail__service {
  grid-column: 3;
}
.detail__year {
  grid-column: 4;
}
.detail__hero {
  width: min(64vw, 930px);
  margin: 0 auto 80px;
}
.detail__hero img {
  width: 100%;
  height: auto;
}
.detail__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.detail__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.detail__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.detail__embed.is-loaded .detail__poster {
  opacity: 0;
  pointer-events: none;
}
.detail__body {
  width: min(64vw, 930px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 200px) 1fr;
  column-gap: 40px;
  align-items: start;
}
.detail__info {
  position: sticky;
  top: 16.4vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.detail__meta dt {
  color: rgba(0, 0, 0, 0.3);
}
.detail__meta dd {
  margin-bottom: 12px;
}
.detail__meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.detail__meta-note {
  margin-top: 6px;
  color: rgba(0, 0, 0, 0.3);
}
.detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail__gallery img {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .detail {
    padding: calc(var(--header-h, 45px) + 15px) 20px 140px;
  }
  .detail__head {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name year" "service service";
    gap: 4px 16px;
    margin-bottom: 0;
  }
  .detail__head .detail__back {
    display: none;
  }
  .detail__back--bottom {
    display: inline-block;
    margin: 40px 0 0;
  }
  .detail__name {
    grid-area: name;
  }
  .detail__service {
    grid-area: service;
  }
  .detail__year {
    grid-area: year;
  }
  .detail__hero {
    width: 100%;
    margin: 31px auto;
  }
  .detail__body {
    width: 100%;
  }
  .detail__body {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }
  .detail__info {
    position: static;
  }
}
.page {
  display: grid;
  grid-template-columns: 11.65% 1fr;
  padding: 16.4vh 25px 140px;
}
.page__label {
  color: rgba(0, 0, 0, 0.3);
}
.page__body {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.page__lede {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 300;
}
.page p {
  max-width: 46em;
}

.deflist {
  display: grid;
  grid-template-columns: minmax(0, 130px) 1fr;
  column-gap: 24px;
  row-gap: 10px;
}
.deflist dt {
  color: rgba(0, 0, 0, 0.3);
}
.deflist dd {
  font-family: "Alexandria VF", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-weight: 350;
  font-size: 12px;
}
.deflist a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.deflist a:hover {
  border-color: #000000;
}
.deflist__ext {
  text-decoration: underline;
  text-underline-offset: 3px;
  border-bottom: 0 !important;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 520px;
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form label {
  color: rgba(0, 0, 0, 0.3);
}
.form input,
.form textarea {
  font: inherit;
  color: #000000;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  padding: 8px 0;
  transition: border-color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: #000000;
}
.form textarea {
  resize: vertical;
  min-height: 96px;
}
.form__submit {
  align-self: flex-start;
  appearance: none;
  font: inherit;
  cursor: pointer;
  background: #000000;
  color: #e1e1e1;
  border: 1px solid #000000;
  padding: 10px 22px;
  transition: background 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.form__submit:hover {
  background: transparent;
  color: #000000;
}
.form__submit:disabled {
  opacity: 0.5;
  cursor: default;
}
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__turnstile:empty {
  display: none;
}
.form__note {
  color: rgba(0, 0, 0, 0.3);
}
.form__note[data-state=error] {
  color: #b00020;
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
    padding: 96px 20px 140px;
    gap: 24px;
  }
  .deflist {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
  .deflist dt {
    margin-top: 12px;
  }
}
