/* TAKETEN / ILLUSTRATION SERIES */

:root {
  --paper: #f3f0e8;
  --ink: #171717;
  --muted-dark: #969188;
  --line-dark: rgba(243, 240, 232, .26);
  --acid: #c8ff38;
  --max: 1500px;
  --pad: clamp(18px, 4vw, 64px);
  --sans-jp: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Yu Gothic", sans-serif;
  --sans-en: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans-jp);
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

button { font: inherit; }

img { display: block; }

::selection {
  background: var(--acid);
  color: var(--ink);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.series-shell {
  width: min(calc(100% - var(--pad) * 2), var(--max));
  margin-inline: auto;
}

/* header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  height: 72px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: height .25s ease, background .25s ease, border-color .25s ease;
}

.site-header.is-scrolled {
  height: 56px;
  background: rgba(23, 23, 23, .9);
  border-color: var(--line-dark);
  backdrop-filter: blur(12px);
}

.site-logo {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
  font-family: var(--sans-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}

.desktop-nav a {
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--acid);
  transition: right .2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav .is-current::after {
  right: 0;
}

.menu-button {
  display: none;
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 4900;
  background: var(--acid);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-inner {
  min-height: 100%;
  padding: 110px var(--pad) 50px;
}

.mobile-menu nav {
  display: grid;
  border-top: 1px solid var(--ink);
}

.mobile-menu nav a {
  min-height: 78px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans-en);
  font-size: clamp(26px, 8vw, 48px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}

.mobile-menu nav a span {
  font-size: 9px;
  letter-spacing: .1em;
}

.eyebrow {
  margin: 0;
  font-family: var(--sans-en);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .14em;
}

/* hero */
.series-hero {
  min-height: 82vh;
  padding-top: 138px;
  padding-bottom: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.series-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(46px, 7vw, 86px);
}

.back-archive {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--paper);
  font-family: var(--sans-en);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
}

.series-title-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(30px, 6vw, 90px);
}

.series-title-wrap h1 {
  margin: 0;
  font-family: var(--sans-en);
  font-size: clamp(86px, 14vw, 220px);
  font-weight: 600;
  line-height: .72;
  letter-spacing: -.095em;
}

.series-title-wrap h1 span {
  display: inline-block;
  margin-left: 13vw;
  color: var(--acid);
}

.series-count {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.series-count strong {
  font-family: var(--sans-en);
  font-size: clamp(42px, 5vw, 70px);
  line-height: .8;
  letter-spacing: -.07em;
}

.series-count span {
  font-family: var(--sans-en);
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--muted-dark);
}

.series-intro {
  margin-top: clamp(55px, 8vw, 100px);
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(320px, 1.35fr);
  gap: clamp(32px, 7vw, 100px);
}

.series-jp {
  margin: 0;
  font-size: clamp(23px, 2.2vw, 36px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.04em;
}

.series-note {
  margin: 0;
  max-width: 620px;
  color: var(--muted-dark);
  font-size: 13px;
  line-height: 1.9;
}

/* gallery */
.series-gallery {
  padding: clamp(90px, 10vw, 150px) 0 clamp(120px, 14vw, 210px);
  background: #111;
  border-top: 1px solid var(--line-dark);
}

.gallery-head {
  margin-bottom: clamp(48px, 6vw, 82px);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}

.gallery-head h2 {
  margin: 8px 0 0;
  font-family: var(--sans-en);
  font-size: clamp(58px, 8vw, 116px);
  line-height: .84;
  letter-spacing: -.08em;
}

.random-open {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--sans-en);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.random-open:hover {
  background: var(--acid);
  color: var(--ink);
  transform: rotate(-1deg);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 24px 14px;
}

.series-item {
  min-width: 0;
  display: block;
}

.series-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(243, 240, 232, .23);
  background: #1a1a1a;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.series-thumb img {
  width: auto;
  height: auto;
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
  transition: transform .25s ease, opacity .2s ease;
}

.series-no {
  display: block;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(243, 240, 232, .18);
  font-family: var(--sans-en);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .09em;
  color: #c0bbb3;
}

.series-item:hover .series-thumb {
  border-color: var(--acid);
  background: #151515;
  transform: translateY(-2px);
}

.series-item:hover .series-thumb img {
  transform: scale(1.04);
}

.series-item:hover .series-no {
  color: var(--acid);
}

.series-item:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

/* pager */
.series-pager {
  margin-top: clamp(110px, 13vw, 180px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}

.series-pager a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--sans-en);
}

.series-pager span {
  font-size: 8px;
  letter-spacing: .13em;
  color: var(--muted-dark);
}

.series-pager strong {
  font-size: clamp(16px, 1.5vw, 22px);
  letter-spacing: -.02em;
}

.pager-all {
  text-align: center;
}

.pager-next {
  text-align: right;
}

.series-pager a:hover strong {
  color: var(--acid);
}

/* footer */
.series-footer {
  padding: 34px 0 42px;
  background: #111;
  border-top: 1px solid var(--line-dark);
}

.series-footer .series-shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.series-footer p {
  margin: 0;
  font-family: var(--sans-en);
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--muted-dark);
}

/* Lightbox2 theme overrides */
.lb-data .lb-caption {
  font-family: var(--sans-jp);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--paper);
}

.lb-data .lb-number {
  padding-top: 8px;
  font-family: var(--sans-en);
  font-size: 9px;
  letter-spacing: .12em;
  color: #aaa59d;
}

.lb-outerContainer {
  background: #101010;
  border-radius: 0;
}

.lightbox .lb-image {
  border: 0;
  border-radius: 0;
}

.lb-dataContainer {
  color: var(--paper);
}

.lb-closeContainer .lb-close {
  opacity: .8;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
  opacity: .65;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
  opacity: 1;
}

/* responsive */
@media (max-width: 1250px) {
  .series-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .series-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: var(--paper);
    cursor: pointer;
    font-family: var(--sans-en);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
  }

  .menu-mark {
    font-size: 20px;
    line-height: 1;
  }

  .series-hero {
    min-height: auto;
    padding-top: 118px;
    padding-bottom: 86px;
  }

  .series-hero-top {
    align-items: flex-start;
  }

  .back-archive {
    text-align: right;
  }

  .series-title-wrap {
    display: block;
  }

  .series-title-wrap h1 {
    font-size: clamp(72px, 18vw, 130px);
  }

  .series-title-wrap h1 span {
    margin-left: 0;
  }

  .series-count {
    margin-top: 38px;
  }

  .series-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .series-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .series-pager {
    grid-template-columns: 1fr 1fr;
  }

  .pager-all {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
  }

}

@media (max-width: 460px) {
  .series-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 10px;
  }

  .series-thumb img {
    max-width: 62px;
    max-height: 62px;
  }

  .series-footer .series-shell {
    flex-direction: column;
  }
}

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