@import url("https://fast.fonts.net/cssapi/e5a7edfc-453a-4658-b219-9c1e4c40f48f.css");
@import url("https://fonts.googleapis.com/css?family=Karla:300,400,500,600&display=swap");

:root {
  --desktop-left: 280px;
  --desktop-right-gap: 60px;
  --mobile-gap: 20px;
  --content-area-width: calc(100vw - var(--desktop-left) - var(--desktop-right-gap));
  --media-width: min(1200px, var(--content-area-width));
  --media-aspect-height: calc(var(--media-width) * 533 / 800);
  --image-max-width: min(1000px, var(--content-area-width));
  --image-max-height: max(240px, calc(100vh - 120px));
  --body-copy-font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --about-latin-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body-copy-size: 10.5px;
  --body-copy-chinese-size: 12.5px;
  --body-copy-english-size: 12.5px;
  --body-copy-line-height: 1.55;
  --body-copy-color: #000000;
  --body-copy-letter-spacing: 0.03em;
  color: #111;
  background: #fff;
  font-family: "Adobe Garamond W01", "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  font-size: 14px;
  line-height: 1.18;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
  margin: 0;
}

body {
  background: #fff;
}

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

a:hover,
a[aria-current="page"] {
  color: #777777;
  font-style: normal;
}

.project-links a[aria-current="page"] {
  font-style: normal;
}

.utility-links a[aria-current="page"] {
  font-style: normal;
}

.site-shell {
  display: block;
  min-height: 100vh;
  min-width: 0;
  padding: 60px;
}

.sidebar {
  position: fixed;
  top: 60px;
  left: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 220px;
}

.identity {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 68px;
  font-style: normal;
}

.identity:hover,
.identity[aria-current="page"] {
  color: #111;
  font-style: normal;
}

.identity__name {
  font-size: 23px;
}

.identity__chinese {
  display: inline-flex;
  white-space: pre;
  font-size: 18px;
  margin-left: 2px;
}

.identity__chinese-second {
  margin-left: 3px;
}

.site-nav,
.project-links,
.utility-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-nav {
  font-size: 14px;
  line-height: 1.7em;
}

.project-links {
  max-width: none;
}

.project-links a:nth-child(6) {
  margin-top: 1.7em;
}

.project-links a,
.utility-links a {
  display: inline-block;
  white-space: nowrap;
}

.utility-links {
  margin-top: 1.7em;
}

.mobile-menu-toggle {
  display: none;
  padding: 0;
  border: 0;
  color: #111;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7em;
  cursor: pointer;
}

.site-copyright {
  position: fixed;
  left: 60px;
  bottom: 20px;
  z-index: 10;
  color: rgba(0, 0, 0, 0.3);
  font-size: 11px;
  line-height: 1.7em;
  text-align: left;
  white-space: nowrap;
}

.content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  margin-left: 220px;
}

.content--about {
  justify-content: flex-start;
}

.image-page,
.project-page,
.gallery-page,
.text-page {
  width: 100%;
}

.image-page {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 0 min(1000px, var(--media-width));
  margin-left: 70px;
}

.artwork-image {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.image-page .artwork-image {
  width: auto;
  max-width: var(--image-max-width);
  max-height: var(--image-max-height);
  height: auto;
}

.project-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gallery-page {
  display: flex;
  justify-content: flex-start;
  flex: 0 0 var(--media-width);
  margin-left: 70px;
}

.mobile-image-list {
  display: none;
}

.gallery-frame {
  display: flex;
  flex-direction: column;
  width: var(--media-width);
}

.gallery-frame .artwork-image {
  width: auto;
  max-width: var(--image-max-width);
  max-height: var(--image-max-height);
  height: auto;
  opacity: 1;
  transition: opacity 420ms ease;
}

.gallery-frame .artwork-image.is-fading {
  opacity: 0;
}

.gallery-image-wrap {
  position: relative;
  width: var(--media-width);
  height: var(--media-aspect-height);
}

.gallery-image-hit {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-image-hit--previous {
  left: 0;
}

.gallery-image-hit--next {
  right: 0;
}

.gallery-control {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  color: #777777;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.gallery-controls {
  display: flex;
  justify-content: space-between;
  width: var(--media-width);
  margin-top: 6px;
}

.gallery-control--previous {
  text-align: left;
}

.gallery-control--next {
  text-align: right;
}

.gallery-text {
  width: var(--media-width);
  margin-top: 3.4em;
  font-size: var(--body-copy-size);
  line-height: var(--body-copy-line-height);
}

.gallery-text h1 {
  margin: 0 0 1.7em;
  font-size: 18px;
  line-height: 1.2;
  font-family: inherit;
  font-weight: 400;
}

.gallery-text .english-title,
.traces-text .english-title,
.about-page .english-title {
  font-size: 20px;
}

.gallery-text .english-title--large,
.traces-text .english-title--large {
  font-size: 22px;
}

.gallery-text p {
  margin: 0;
  color: var(--body-copy-color);
  font-family: var(--body-copy-font);
  font-size: var(--body-copy-size);
  letter-spacing: var(--body-copy-letter-spacing);
  line-height: var(--body-copy-line-height);
}

.body-copy-english {
  font-size: var(--body-copy-english-size);
  line-height: 1.54;
}

.gallery-text .body-copy-english,
.traces-text .body-copy-english,
.about-page .body-copy-english,
.contact-page .body-copy-english {
  font-size: var(--body-copy-english-size);
  line-height: 1.54;
}

.body-copy-english-inline {
  font-size: var(--body-copy-english-size);
  line-height: 1.54;
}

.gallery-text p.body-copy-chinese,
.traces-text p.body-copy-chinese,
.about-page p.body-copy-chinese,
.contact-page p.body-copy-chinese {
  font-size: var(--body-copy-chinese-size);
  letter-spacing: var(--body-copy-letter-spacing);
  line-height: 1.56;
}

.gallery-text p.body-copy-japanese,
.traces-text p.body-copy-japanese,
.about-page p.body-copy-japanese {
  font-size: var(--body-copy-chinese-size);
  letter-spacing: 0.02em;
  line-height: 1.56;
}

.gallery-text p + p {
  margin-top: 1.5em;
}

.gallery-text p + h1 {
  margin-top: 3.1em;
}

.gallery-page--living {
  flex: 1 1 auto;
  width: 100%;
  justify-content: flex-start;
  margin-left: 0;
}

.gallery-page--living .gallery-frame,
.gallery-page--living .gallery-image-wrap,
.gallery-page--living .gallery-controls {
  width: auto;
}

.gallery-page--living .gallery-frame .artwork-image {
  width: auto;
  height: auto;
  max-width: var(--image-max-width);
  max-height: var(--image-max-height);
}

.gallery-page--fixed-width {
  flex: 1 1 auto;
  width: 100%;
  justify-content: center;
  margin-left: 0;
}

.gallery-page--fixed-width .gallery-frame,
.gallery-page--fixed-width .gallery-image-wrap,
.gallery-page--fixed-width .gallery-controls {
  width: auto;
}

.gallery-page--fixed-width .gallery-frame .artwork-image {
  width: auto;
  height: auto;
  max-width: var(--image-max-width);
  max-height: var(--image-max-height);
}

.about-page {
  width: min(800px, var(--content-area-width));
  flex: 0 1 min(800px, var(--content-area-width));
  margin-left: 0;
  font-size: var(--body-copy-size);
  line-height: var(--body-copy-line-height);
}

.contact-page {
  width: 800px;
  flex: 0 0 800px;
  margin-left: 70px;
  font-size: var(--body-copy-size);
  line-height: var(--body-copy-line-height);
}

.about-block + .about-block {
  margin-top: 0;
}

.about-page .about-separator {
  margin: 2em 0;
  color: rgba(0, 0, 0, 0.5);
  font-size: var(--body-copy-chinese-size);
  line-height: 1.56;
}

.about-page .body-copy-english {
  font-size: var(--body-copy-chinese-size);
  line-height: 1.56;
}

.about-page .about-section-title {
  margin-top: 1.7em;
  margin-bottom: 0;
  font-weight: 600;
}

.about-page .about-spaced-line {
  margin-top: 1.7em;
}

.about-page h1 {
  margin: 0 0 1.7em;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
}

.about-page p {
  margin: 0;
  color: var(--body-copy-color);
  font-family: var(--about-latin-font), "PingFang SC", "Hiragino Sans GB", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: var(--body-copy-size);
  letter-spacing: var(--body-copy-letter-spacing);
  line-height: var(--body-copy-line-height);
  font-variant-numeric: tabular-nums;
}

.contact-page p {
  margin: 0;
  color: var(--body-copy-color);
  font-family: var(--body-copy-font);
  font-size: var(--body-copy-size);
  letter-spacing: var(--body-copy-letter-spacing);
  line-height: var(--body-copy-line-height);
}

.contact-image {
  display: block;
  width: auto;
  height: 300px;
  margin-top: 3.4em;
  object-fit: contain;
}

.contact-image.portrait {
  width: 300px;
  height: auto;
}

.page-text,
.text-page {
  max-width: 560px;
}

h1 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 400;
}

p {
  margin: 0;
}

@media (min-width: 1280px) {
  .content {
    width: var(--content-area-width);
  }

  .image-page,
  .gallery-page {
    flex-basis: var(--content-area-width);
    align-items: center;
  }

  .hypnopompic-page,
  .wind-grid-page,
  .traces-page {
    display: flex;
    justify-content: center;
  }

  .gallery-frame {
    width: var(--content-area-width) !important;
    align-items: center;
  }

}

@media (max-width: 720px) {
  :root {
    --content-area-width: calc(100vw - (var(--mobile-gap) * 2));
    --media-width: var(--content-area-width);
    --image-max-width: var(--content-area-width);
    --image-max-height: none;
    font-size: 13px;
  }

  .site-shell {
    display: block;
    min-height: auto;
    padding: var(--mobile-gap);
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: var(--mobile-gap);
    right: auto;
    width: var(--content-area-width);
    min-height: 0;
    padding: var(--mobile-gap) 0 24px;
    z-index: 30;
    background: #ffffff;
  }

  .identity {
    margin-bottom: 0;
  }

  .mobile-menu-toggle {
    position: absolute;
    top: var(--mobile-gap);
    right: 0;
    display: block;
  }

  .site-nav {
    display: none;
    min-height: 0;
    gap: 36px;
    width: 100%;
    margin-top: 32px;
    padding: 8px 10px 10px 0;
    background: rgba(255, 255, 255, 0.3);
  }

  .sidebar.is-open .site-nav {
    display: flex;
  }

  .project-links {
    max-width: 100%;
  }

  .content {
    display: block;
    width: 100%;
    margin-left: 0;
    padding-top: 80px;
  }

  .image-page,
  .project-page,
  .gallery-page,
  .text-page,
  .about-page,
  .contact-page,
  .hypnopompic-page,
  .wind-grid-page,
  .traces-page {
    display: block;
    width: 100% !important;
    flex: none !important;
    margin-left: 0 !important;
  }

  .image-page .artwork-image {
    width: var(--content-area-width) !important;
    max-width: none;
    max-height: none;
    height: auto !important;
  }

  .gallery-frame {
    width: 100% !important;
    align-items: flex-start;
  }

  .gallery-image-wrap {
    display: none !important;
  }

  .mobile-image-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .mobile-image-list img,
  .gallery-frame .artwork-image {
    width: var(--content-area-width) !important;
    max-width: none;
    max-height: none;
    height: auto !important;
  }

  .gallery-text,
  .traces-text {
    display: block !important;
    width: var(--content-area-width) !important;
    margin-top: 40px;
  }

  .about-page,
  .contact-page {
    width: var(--content-area-width) !important;
  }

  .traces-text {
    margin-top: 0;
  }

  .gallery-text h1,
  .traces-text h1 {
    min-height: 0 !important;
    margin-bottom: 1.7em !important;
  }

  .gallery-text > div + div,
  .traces-text > div + div {
    margin-top: 3.4em;
  }

  .hypnopompic-page .gallery-text .hypnopompic-text-column + .hypnopompic-text-column {
    margin-top: 3.4em;
  }

  .traces-copy + .traces-feature-image,
  .traces-feature-image {
    width: var(--content-area-width) !important;
    max-width: none !important;
    height: auto !important;
    margin-top: 1.7em !important;
  }

  .traces-copy {
    min-height: 0;
  }

  .hypnopompic-inner,
  .wind-grid,
  .traces-inner {
    width: var(--content-area-width) !important;
  }

  .traces-images {
    margin-top: 1.7em !important;
  }

  .hypnopompic-grid,
  .wind-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .hypnopompic-grid img,
  .wind-grid img {
    width: var(--content-area-width) !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    cursor: default !important;
  }

  .traces-images img {
    width: var(--content-area-width) !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
  }

  .lightbox img {
    max-width: var(--content-area-width) !important;
    max-height: calc(100vh - 40px) !important;
  }

  .site-copyright {
    position: static;
    margin-top: 40px;
    margin-left: var(--mobile-gap);
  }
}
