@font-face {
  font-family: "Capriola";

  src: url("../fonts/capriola-500-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+2013-2014, U+2019, U+201C-201D, U+2026;
}

@font-face {
  font-family: "Zen Kaku Gothic New Subset";

  src: url("../fonts/zen-kaku-gothic-new-500-subset.woff2?v=20261001") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --c-bg: #e7e9dc;
  --c-text: #1e372b;
  --c-muted: #5a6962;
  --c-accent: #a63423;
  --c-accent-on-dark: #ef8f7d;
  --c-rule: #fafafa;
  --c-marker: #fafafa;
  --c-surface: #fafafa;
  --c-surface-border: #808f88;
  --c-field: #f7f8f1;
  --c-field-border: #6e7c75;
  --c-button: #1e372b;
  --c-button-text: #fafafa;
  --c-placeholder: #d9d9d9;
  --c-on-media: #e7e9dc;
  --c-media-bg: #1e372b;
  --font-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-body: "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;
  --font-en: "Capriola", var(--font-body);
  --font-heading: "Zen Kaku Gothic New Subset", var(--font-ja);
  --margin: 20px;
  --gutter: 20px;

  --page-head-space: 131px;
}

@media (max-width: 959px) {
  :root {
    --margin: 16px;
    --gutter: 12px;
    --page-head-space: 96px;
  }
}

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

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

  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

body > main {
  flex: 1;
}

h1, h2, h3, p, ul, dl, dd, figure {
  margin: 0;
}

h1, h2, h3 {
  font-size: inherit;
  font-weight: inherit;
}

ul {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-line: none;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus,
[tabindex="-1"]:focus {
  outline: none;
}

.profile dt,
.lead,
.categories__desc,
.work__title,
.field__label,
.button {
  font-family: var(--font-heading);
}

[lang="en"] {
  font-family: var(--font-en);
  font-weight: 500;
}

.u-vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 959px) {
  .u-wide {
    display: none;
  }
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 8px 16px;
  background: var(--c-bg);
  color: var(--c-text);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.l-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-inline: var(--margin);
}

.l-grid--inset {
  padding-inline: 0;
  margin-inline: var(--margin);
}

.site-header {
  align-items: start;
  min-height: 45px;
  padding-top: 15px;
}

.site-header__logo {
  position: fixed;
  top: 15px;
  left: var(--margin);
  z-index: 20;
  padding-top: 2px;
  font-family: var(--font-en);
  font-size: 1.5rem;
  line-height: 1.25;
  text-decoration: none;
}

.site-nav {
  grid-column: 8 / 13;
  padding-top: 2px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 32px;
}

.site-nav a {
  display: inline-block;
  padding-block: 2px;
  line-height: 1.25;
}

.site-nav a[aria-current="page"] {
  color: var(--c-accent);
  text-decoration: none;
}

.site-menu-button,
.site-nav__close {
  display: none;
}

@media (min-width: 960px) {
  .site-nav[popover] {
    display: block;
    position: fixed;
    inset: 15px var(--margin) auto calc(var(--margin) + 7 * ((100% - 2 * var(--margin) - 11 * var(--gutter)) / 12 + var(--gutter)));
    z-index: 20;
    width: auto;
    height: auto;
    margin: 0;
    padding: 2px 0 0;
    overflow: visible;
    border: 0;
    background: none;
    color: inherit;
  }
}

@media (max-width: 959px) {
  .site-header {
    grid-template-rows: 30px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 8px;
  }

  .site-nav ul {
    gap: 4px 14px;
  }
}

@supports selector(:popover-open) {
  @media (max-width: 959px) {
    .site-menu-button {
      display: inline-flex;
      position: fixed;
      top: 15px;
      right: var(--margin);
      z-index: 20;
      align-items: center;
      min-height: 30px;
      padding: 0;
      border: 0;
      background: none;
      color: inherit;
      font-size: 1rem;
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 0.2em;
      cursor: pointer;
    }

    .site-menu-button:hover {
      text-decoration-line: none;
    }

    .site-nav[popover] {
      position: fixed;
      inset: 0;
      width: calc(100vw - 40px);
      max-width: none;
      height: fit-content;
      max-height: calc(100dvh - 40px);
      margin: auto;
      padding: 40px 20px 32px;
      overflow: auto;
      border: 0;
      background: var(--c-button);
      color: var(--c-bg);
    }

    .site-nav ul {
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }

    .site-nav a {
      font-size: 1rem;
    }

    .site-nav a[aria-current="page"] {
      color: var(--c-accent-on-dark);
    }

    .site-nav__close {
      display: block;
      min-height: 32px;
      margin: 32px auto 0;
      padding: 4px 20px;
      border: 1px solid currentColor;
      border-radius: 16px;
      background: none;
      color: inherit;
      font-size: 0.875rem;
      cursor: pointer;
    }

    .site-nav__close:hover {
      background: var(--c-bg);
      color: var(--c-button);
    }
  }
}

.page-head {
  padding-top: var(--page-head-space);
}

.page-head::after {
  content: "";
  grid-column: 1 / -1;
  margin-top: var(--page-head-space);
  border-top: 1px solid var(--c-rule);
}

.page-head--plain::after {
  content: none;
}

.page-head__title {
  grid-column: 4 / 13;
  font-size: 1.25rem;
  line-height: 24px;
}

@media (max-width: 959px) {
  .page-head__title {
    grid-column: 1 / -1;
  }
}

.section {
  align-items: start;
  padding-top: 80px;
}

.section::after {
  content: "";
  grid-column: 1 / -1;
  margin-top: 96px;
  border-top: 1px solid var(--c-rule);
}

.section:last-child::after {
  content: none;
}

.section:last-child {
  padding-bottom: 24px;
}

.section__title {
  grid-column: 1 / 4;
  color: var(--c-muted);
  line-height: 30px;
}

.section__body {
  grid-column: 4 / 10;
}

.section__body--narrow {
  grid-column: 4 / 9;
}

@media (max-width: 959px) {
  .section {
    padding-top: 40px;
  }

  .section::after {
    margin-top: 64px;
  }

  .section__title {
    grid-column: 1 / -1;
    margin-bottom: 60px;
    font-size: 1.125rem;
  }

  .section__body,
  .section__body--narrow {
    grid-column: 1 / -1;
  }
}

.prose {
  max-width: 34em;
  font-size: 1rem;
  line-height: 1.8;
}

@media (max-width: 959px) {
  .prose {
    font-size: 0.875rem;
  }
}

.prose > p + p {
  margin-top: 1.8em;
  margin-top: 1lh;
}

.profile {
  display: grid;
  gap: 40px;
  line-height: 1.875;
}

.profile dt {
  color: var(--c-muted);
}

.profile dd {
  margin-top: 7.5px;
  margin-top: 0.25lh;
}

@media (max-width: 959px) {
  .profile {
    font-size: 0.875rem;
  }
}

.lead {
  margin-bottom: 52px;
  font-size: 1.5rem;
  line-height: 1.7;
}

.lead__marker {
  background: linear-gradient(var(--c-marker), var(--c-marker)) left 0 bottom 4px / 100% 5px no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.categories {
  display: grid;
  grid-column: 4 / 12;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.categories__item {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 17px;
  text-align: center;
}

.categories__name {
  display: grid;
  place-items: center;
  min-height: 100px;
  padding: 8px;
  border: 1px solid var(--c-surface-border);
  border-radius: 40px;
  background: var(--c-surface);
  font-size: 0.875rem;
  line-height: 1.6;
}

.categories__desc {
  line-height: 24px;
  word-break: keep-all;
}

@media (max-width: 959px) {
  .categories {
    grid-column: 1 / 13;
    grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr));
    gap: 32px 12px;
  }

  .categories__item {
    gap: 12px;
    width: 100%;
    max-width: 180px;
    justify-self: center;
  }

  .categories__desc {
    font-size: 0.875rem;
  }
}

.works-filter {
  grid-column: 4 / 13;
  margin-top: var(--page-head-space);
}

.works-filter ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  line-height: 24px;
}

.works-filter a[aria-current="page"] {
  color: var(--c-accent);
  text-decoration: none;
}

.works-list {
  row-gap: 52px;
  margin-top: 98px;
}

.work {
  grid-column: span 3;
}

.work__image {
  width: 100%;
  aspect-ratio: 335 / 248;
  object-fit: cover;
  background: var(--c-placeholder);
}

.work__video {
  display: block;
  position: relative;
}

.work__video::before,
.work__video::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.work__video::before {
  width: 56px;
  height: 56px;
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: 50%;
  background: rgb(30 55 43 / 0.7);
  transition: background-color 0.2s;
}

.work__video::after {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-width: 9px 0 9px 15px;
  border-style: solid;
  border-color: transparent transparent transparent #fafafa;
}

.work__video:hover::before {
  background: rgb(30 55 43 / 0.95);
}

.video-modal {
  width: min(1100px, 100vw - 40px);
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
  color: #fafafa;
}

.video-modal:focus {
  outline: none;
}

.video-modal::backdrop {
  background: rgb(0 0 0 / 0.85);
}

.video-modal__bar {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.video-modal__close {
  min-height: 32px;
  padding: 4px 20px;
  border: 1px solid currentColor;
  border-radius: 16px;
  background: none;
  color: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.video-modal__close:hover {
  background: #fafafa;
  color: #1e372b;
}

.video-modal__frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.work__title {
  margin-top: 21px;
  line-height: 24px;
}

.work__meta {
  margin-top: 12px;
  font-size: 0.75rem;
  line-height: 20px;
}

.work__meta a {
  display: inline-block;
  min-width: 24px;
  min-height: 24px;
}

.pagination {
  grid-column: 4 / 13;
  margin-top: 100px;
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-en);
}

.pagination a {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
}

.pagination a[aria-current="page"] {
  color: var(--c-accent);
  text-decoration: none;
}

.works-empty {
  padding-top: var(--page-head-space);
}

.works-empty__text {
  grid-column: 4 / 13;
}

@media (max-width: 959px) {
  .works-filter,
  .pagination,
  .works-empty__text {
    grid-column: 1 / -1;
  }

  .works-filter ul {
    column-gap: 28px;
  }

  .works-list {
    row-gap: 32px;
    margin-top: 64px;
  }

  .work {
    grid-column: span 6;
  }

  .work__title {
    margin-top: 12px;
    font-size: 0.875rem;
  }

  .work__meta {
    margin-top: 8px;
  }

  .pagination {
    margin-top: 64px;
  }
}

.form {
  display: grid;
  gap: 52px;
}

.field__label {
  display: block;
  margin-bottom: 16px;
  line-height: 30px;
}

.field__req {
  margin-left: 0.25em;
  color: var(--c-muted);
  font-size: 0.875rem;
}

.form input,
.form textarea {
  width: 100%;
  min-height: 60px;
  padding: 14px 16px;
  border: 1px solid var(--c-field-border);
  border-radius: 8px;
  background: var(--c-field);
  color: var(--c-text);
  font: inherit;

  font-family: var(--font-ja);
  line-height: 1.75;
}

.form textarea {
  display: block;
  min-height: 246px;
  resize: vertical;
}

.form input:focus-visible,
.form textarea:focus-visible {
  outline-offset: 2px;
}

.form [aria-invalid="true"] {
  border: 2px solid var(--c-accent);
}

.field__error {
  margin-top: 8px;
  color: var(--c-accent);
  font-size: 0.875rem;
  line-height: 1.75;
}

.field__error::before {
  content: "エラー：";
}

.form-errors {
  padding: 20px 24px;
  border: 2px solid var(--c-accent);
  border-radius: 8px;
  font-size: 0.875rem;
}

.form-errors__title {
  margin-bottom: 8px;
  color: var(--c-accent);
  font-size: 1rem;
}

.form-errors ul {
  margin-top: 8px;
  padding-left: 1.25em;
  list-style: disc;
}

.form__trap {
  position: absolute;
  left: -9999px;
}

.form__note {
  margin-top: -24px;
  color: var(--c-muted);
  font-size: 0.8125rem;
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 180px;
  min-height: 60px;
  padding: 12px 32px;
  border: 1px solid var(--c-button);
  border-radius: 40px;
  background: var(--c-button);
  color: var(--c-button-text);
  transition: background-color 0.2s, color 0.2s;

  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.form .button {
  margin-top: 28px;
}

.button:hover {
  background: var(--c-button-text);
  color: var(--c-button);
}

.button:focus-visible {
  outline-color: var(--c-text);
}

.contact-done__title {
  margin-bottom: 40px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.6;
}

.contact-done .prose + .prose {
  margin-top: 2em;
}

.site-footer {
  align-items: end;
  padding-top: 120px;
  padding-bottom: 12px;
}

.site-footer__cta {
  grid-column: 4 / 9;
  justify-self: start;
  margin-bottom: 120px;
}

.site-footer__text {
  grid-column: 1 / 4;
  padding-bottom: 8px;
  font-size: 0.75rem;
  line-height: 20px;
}

.site-footer__studio {
  margin-left: 0.5em;
}

.site-footer__rule {
  grid-column: 4 / 11;
  margin-bottom: 18px;
  border-top: 1px solid currentColor;
  transform-origin: left center;
}

.site-footer__rule[data-animate] {
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-footer__rule[data-animate].is-drawn {
  transform: none;
}

.site-footer__signature {
  grid-column: 11 / 13;
  justify-self: end;
  width: 100%;
  max-width: 236px;
  height: auto;
}

@media (max-width: 959px) {
  .site-footer {
    padding-top: 80px;
  }

  .site-footer__cta {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    margin-bottom: 120px;
  }

  .site-footer__text {
    grid-column: 1 / 8;
    grid-row: 2;
    padding-bottom: 0;
    font-size: 0.6875rem;
  }

  .site-footer__rule {
    grid-column: 1 / 8;
    grid-row: 3;
    margin-top: 12px;
  }

  .site-footer__studio {
    display: block;
    margin-left: 0;
  }

  .site-footer__signature {
    grid-column: 8 / 13;
    grid-row: 2 / 4;
    max-width: 180px;
  }
}

.is-home .site-header,
.is-home .home {
  color: var(--c-on-media);
}

.is-home .site-nav a[aria-current="page"] {
  color: inherit;
}

.hero {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--c-media-bg);
}

.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.hero__video {
  opacity: 0;
  pointer-events: none;
}

.hero__video.is-playing {
  opacity: 1;
}

.hero__video::-webkit-media-controls,
.hero__video::-webkit-media-controls-start-playback-button,
.hero__video::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgb(0 0 0 / 0.35), transparent 140px),
    linear-gradient(to top, rgb(0 0 0 / 0.45), transparent 280px);
}

.home {
  flex: 1;
  align-content: end;
  align-items: end;
  padding-top: 80px;
  padding-bottom: 15px;
}

.home__nav {
  display: none;
}

.home__signature {
  grid-column: 10 / 13;
  justify-self: end;
  width: 236px;
  height: auto;
  margin-bottom: -8px;
}

@media (max-width: 959px) {
  .hero::after {
    background:
      linear-gradient(rgb(0 0 0 / 0.5), rgb(0 0 0 / 0.35) 180px, transparent 300px),
      linear-gradient(to top, rgb(0 0 0 / 0.65), rgb(0 0 0 / 0.5) 160px, transparent 340px);
  }

  .hero__poster,
  .hero__video {
    object-position: 65% 50%;
  }

  .home__nav {
    display: block;
    grid-column: 1 / 6;
  }

  .home__nav ul {
    display: grid;
    gap: 6px;
  }

  .home__nav a {
    display: inline-block;
    padding-block: 2px;
    font-size: 1rem;
    line-height: 1.25;
  }

  .home__signature {
    grid-column: 6 / 13;
    width: 180px;
  }
}

.reveal-chars {
  display: inline-block;
  white-space: nowrap;
  clip-path: inset(0 -0.2em);
}

.reveal-chars > span {
  display: inline-block;
}

@keyframes char-rise {
  from {
    transform: translateY(105%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-chars > span {
    animation: char-rise 0.8s cubic-bezier(0.19, 1, 0.22, 1) backwards;
  }

  .reveal-chars > span:nth-child(2) { animation-delay: 40ms; }
  .reveal-chars > span:nth-child(3) { animation-delay: 80ms; }
  .reveal-chars > span:nth-child(4) { animation-delay: 120ms; }
  .reveal-chars > span:nth-child(5) { animation-delay: 160ms; }
  .reveal-chars > span:nth-child(6) { animation-delay: 200ms; }
  .reveal-chars > span:nth-child(7) { animation-delay: 240ms; }
  .reveal-chars > span:nth-child(8) { animation-delay: 280ms; }
  .reveal-chars > span:nth-child(9) { animation-delay: 320ms; }
  .reveal-chars > span:nth-child(10) { animation-delay: 360ms; }
  .reveal-chars > span:nth-child(11) { animation-delay: 400ms; }
  .reveal-chars > span:nth-child(12) { animation-delay: 440ms; }
  .reveal-chars > span:nth-child(13) { animation-delay: 480ms; }
  .reveal-chars > span:nth-child(14) { animation-delay: 520ms; }
  .reveal-chars > span:nth-child(15) { animation-delay: 560ms; }
  .reveal-chars > span:nth-child(16) { animation-delay: 600ms; }
}

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .section__title:not(.is-revealed) .reveal-chars > span {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
