:root {
  --red: #e60000;
  --yellow: #ffd700;
  --white: #fff;
  --ink: #070707;
  --panel: #111;
  --muted: rgba(255, 255, 255, .66);
  --line: rgba(255, 255, 255, .14);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-en: "Oswald", sans-serif;
  --font-jp: "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 8%, rgba(230, 0, 0, .2), transparent 28rem),
    #080808;
  font-family: var(--font-jp);
}
body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .025;
  background: repeating-linear-gradient(-62deg, transparent 0 4px, #fff 4px 5px);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.music-player {
  position: fixed;
  z-index: 200;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 36px);
  display: grid;
  width: min(440px, calc(100vw - 36px));
  grid-template-columns: 48px minmax(0, 1fr) auto 68px;
  align-items: center;
  gap: 13px;
  padding: 12px 15px 12px 12px;
  border: 2px solid var(--red);
  border-left: 6px solid var(--red);
  background: rgba(0, 0, 0, .96);
  backdrop-filter: blur(12px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.music-toggle,
.music-volume-toggle {
  border: 0;
  color: var(--red);
  background: transparent;
  cursor: pointer;
}
.music-toggle {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--red);
  background: rgba(230, 0, 0, .1);
  clip-path: polygon(12% 0%, 88% 0%, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0% 88%, 0% 12%);
  transition: background 120ms ease;
}
.music-toggle:hover { background: rgba(230, 0, 0, .28); }
.play-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}
.music-player.is-playing .play-icon {
  width: 10px;
  height: 12px;
  margin-left: 0;
  border: 0;
  border-right: 3px solid currentColor;
  border-left: 3px solid currentColor;
}
.music-info { min-width: 0; }
.music-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 3px;
}
.music-label,
.music-time,
.music-volume-toggle {
  font-family: var(--font-en);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.music-label { color: var(--red); }
.music-time {
  color: rgba(255, 255, 255, .32);
  letter-spacing: .06em;
}
.music-info strong {
  display: block;
  overflow: hidden;
  margin-bottom: 7px;
  color: var(--white);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.music-progress,
.music-volume {
  height: 3px;
  margin: 0;
  accent-color: var(--red);
  cursor: pointer;
}
.music-progress {
  display: block;
  width: 100%;
}
.music-volume-toggle {
  padding: 8px 0;
  color: rgba(255, 255, 255, .38);
}
.music-volume-toggle.is-muted {
  color: rgba(255, 255, 255, .18);
  text-decoration: line-through;
}
.music-volume { width: 68px; }

.archive-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(20px, 5vw, 72px);
  background: rgba(0, 0, 0, .94);
  border-bottom: 3px solid var(--red);
  backdrop-filter: blur(10px);
}
.archive-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .08em;
}
.archive-brand b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--red);
  font-size: 20px;
}
.archive-brand em {
  color: var(--red);
  font-family: var(--font-jp);
  font-size: 13px;
  font-style: normal;
}
.archive-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.archive-nav a { color: rgba(255,255,255,.72); }
.archive-nav a:hover,
.archive-nav a[aria-current="page"] { color: var(--yellow); }
.archive-nav .member-link {
  padding: 7px 12px;
  color: #59e39a;
  border: 1px solid rgba(89, 227, 154, .5);
}

.archive-main { min-height: 75vh; }
.archive-section {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
  padding-block: clamp(72px, 9vw, 128px);
}
.archive-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--yellow);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}
.archive-kicker::before {
  width: 28px;
  height: 3px;
  content: "";
  background: var(--red);
}
.archive-title {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.archive-title em { color: var(--red); font-style: normal; }
.archive-lead {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 2;
}

.portfolio-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 66px);
  grid-template-columns: minmax(0, .92fr) minmax(380px, 1.08fr);
  align-items: center;
  gap: clamp(30px, 6vw, 92px);
  width: min(1320px, calc(100% - 44px));
  margin: auto;
  padding-block: 70px;
}
.portfolio-hero__copy { position: relative; z-index: 2; }
.portfolio-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.portfolio-hero__meta span {
  padding: 7px 11px;
  color: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}
.portfolio-hero__visual {
  position: relative;
  min-height: 560px;
}
.portfolio-hero__visual::before {
  position: absolute;
  inset: 8% -4% -4% 12%;
  content: "";
  background: var(--red);
  clip-path: polygon(10% 0,100% 7%,91% 100%,0 92%);
  transform: rotate(2deg);
}
.portfolio-hero__visual img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.2);
  clip-path: polygon(4% 3%,96% 0,100% 92%,8% 100%,0 13%);
}
.hero-status {
  position: absolute;
  z-index: 3;
  right: -12px;
  bottom: 40px;
  padding: 13px 18px;
  color: #000;
  background: var(--yellow);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  transform: rotate(-2deg);
}

.summary-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.summary-grid h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.12;
}
.summary-copy p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 2;
}
.summary-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.summary-facts div {
  min-height: 116px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.summary-facts small {
  display: block;
  color: var(--red);
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: .14em;
}
.summary-facts strong { display: block; margin-top: 10px; font-size: 17px; }

.process-section {
  width: 100%;
  padding-inline: max(22px, calc((100% - 1180px) / 2));
  background: #101010;
  border-block: 1px solid var(--line);
}
.section-heading { margin-bottom: 46px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.process-card {
  position: relative;
  min-height: 260px;
  padding: 24px 20px;
  overflow: hidden;
  background: #090909;
  border: 1px solid var(--line);
}
.process-card b {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 52px;
}
.process-card h3 { margin: 34px 0 12px; font-size: 18px; }
.process-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.photo-story {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.photo-story figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #151515;
}
.photo-story figure:nth-child(1),
.photo-story figure:nth-child(2) { grid-column: span 6; }
.photo-story figure:nth-child(3) { grid-column: span 12; }
.photo-story img { width: 100%; height: 360px; object-fit: cover; }
.photo-story figure:nth-child(3) img { height: 440px; }
.photo-story figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 38px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
  font-size: 12px;
}

.resource-grid,
.presentation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.resource-card {
  position: relative;
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease;
}
.resource-card:hover { transform: translateY(-5px); border-color: var(--red); }
.resource-card small {
  color: var(--yellow);
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: .15em;
}
.resource-card h3 { max-width: 520px; margin: 34px 0 8px; font-size: clamp(20px, 3vw, 30px); }
.resource-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.resource-card > b {
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--red);
  font-size: 22px;
}

.comic-hero { padding-bottom: 48px; }
.comic-note {
  display: inline-flex;
  margin-top: 26px;
  padding: 8px 12px;
  color: #000;
  background: var(--yellow);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.comic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.comic-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: #111;
  border: 1px solid var(--line);
  cursor: zoom-in;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease;
}
.comic-card:hover { transform: translateY(-5px); border-color: var(--red); }
.comic-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}
.comic-card span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: .08em;
}
.comic-card b { color: var(--red); font-family: var(--font-display); font-size: 24px; }
.comic-dialog {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.92);
}
.comic-dialog[hidden] { display: none; }
.comic-dialog__backdrop { position: absolute; inset: 0; border: 0; background: transparent; cursor: zoom-out; }
.comic-dialog figure { position: relative; z-index: 1; margin: 0; max-width: min(92vw, 850px); max-height: 92vh; }
.comic-dialog img { max-height: 86vh; width: auto; margin: auto; object-fit: contain; }
.comic-dialog figcaption { padding: 10px; text-align: center; font-family: var(--font-en); }
.comic-dialog__close {
  position: absolute;
  z-index: 2;
  top: -12px;
  right: -12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--red);
  border: 0;
  cursor: pointer;
  font-size: 25px;
}
body.dialog-open { overflow: hidden; }

.archive-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 42px clamp(20px, 5vw, 72px);
  background: #000;
  border-top: 3px solid var(--red);
}
.archive-footer p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.archive-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

@media (max-width: 900px) {
  .archive-nav a:not(.member-link) { display: none; }
  .portfolio-hero { grid-template-columns: 1fr; padding-top: 90px; }
  .portfolio-hero__visual { min-height: 430px; }
  .summary-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .comic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .music-player {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 13px 10px 10px;
  }
  .music-toggle {
    width: 44px;
    height: 44px;
  }
  .music-volume { display: none; }
  .archive-section { width: min(100% - 28px, 1180px); padding-block: 64px; }
  .portfolio-hero { width: min(100% - 28px, 1320px); min-height: auto; }
  .portfolio-hero__visual { min-height: 340px; }
  .summary-facts,
  .resource-grid,
  .presentation-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 210px; }
  .photo-story { display: block; }
  .photo-story figure + figure { margin-top: 14px; }
  .photo-story img,
  .photo-story figure:nth-child(3) img { height: 260px; }
  .comic-grid { gap: 10px; }
  .comic-card span { padding: 10px; font-size: 11px; }
  .archive-footer { grid-template-columns: 1fr; }
  .archive-footer__links { justify-content: flex-start; }
}
