/* ===========================
   Reset & Base
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #080808;
  --white: #F5F4F0;
  --gray: #888;
  --light: #DDDBD6;
  --mono: 'Space Mono', monospace;
  --serif: 'Noto Serif JP', serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}
body.noscroll { overflow: hidden; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; }

/* ===========================
   Menu Overlay
=========================== */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.overlay.active {
  opacity: 1;
  pointer-events: all;
}
.overlay-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 60vh;
  width: 100%;
  max-width: 900px;
  padding: 0 60px;
}
.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.overlay-nav a {
  font-family: var(--mono);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 24px;
  transition: opacity 0.2s;
  line-height: 1.1;
}
.overlay-nav a:hover { opacity: 0.4; }
.nav-index {
  font-size: 0.2em;
  color: var(--gray);
  letter-spacing: 0.1em;
  font-weight: 400;
}
.overlay-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}

/* ===========================
   Header
=========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  mix-blend-mode: difference;
}
.header-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--white);
}
.menu-trigger {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  background: none;
  border: none;
  color: var(--white);
  padding: 4px 0;
  border-bottom: 1px solid var(--white);
  transition: opacity 0.2s;
}
.menu-trigger:hover { opacity: 0.5; }

/* ===========================
   Hero
=========================== */
.hero {
  min-height: 100svh;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 40px 56px;
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: -0.05em;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: clamp(120px, 22vw, 260px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  white-space: nowrap;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}
.hero-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-title {
  font-family: var(--mono);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  display: flex;
  flex-direction: column;
}
.hero-title-serif {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  letter-spacing: -0.02em;
}
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 300;
  line-height: 2.1;
  color: rgba(255,255,255,0.45);
  text-align: right;
  max-width: 220px;
}

/* Scroll / Counter */
.hero-scroll {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  animation: scanLine 2.4s ease-in-out infinite;
}
@keyframes scanLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}
.hero-scroll span {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.2);
  writing-mode: vertical-rl;
}
.hero-counter {
  position: absolute;
  bottom: 56px;
  right: 40px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.15);
  z-index: 2;
}

/* ===========================
   Work
=========================== */
.work {
  background: var(--white);
  position: relative;
}
.work-label {
  padding: 56px 40px 24px;
  border-bottom: 1px solid var(--black);
}
.work-label span {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gray);
}
.work-item {
  border-bottom: 1px solid var(--black);
}
.work-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 40px;
  cursor: pointer;
  transition: background 0.2s;
}
.work-header:hover { background: rgba(0,0,0,0.02); }
.work-num {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gray);
  padding-top: 6px;
  flex-shrink: 0;
  width: 36px;
}
.work-title-wrap { flex: 1; }
.work-title-en {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.work-title-ja {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 300;
  color: var(--gray);
  letter-spacing: 0.1em;
}
.work-toggle {
  font-size: 28px;
  font-weight: 300;
  color: var(--gray);
  flex-shrink: 0;
  transition: transform 0.35s ease, color 0.2s;
  line-height: 1;
  padding-top: 4px;
}
.work-item.open .work-toggle {
  transform: rotate(45deg);
  color: var(--black);
}

.work-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.work-item.open .work-body {
  grid-template-rows: 1fr;
}
.work-body-inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 0 40px 0 108px;
}
.work-item.open .work-body-inner {
  padding-bottom: 48px;
}
.work-desc {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 2.2;
  color: rgba(0,0,0,0.6);
}
.work-spec {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.work-spec li {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gray);
  display: flex;
  gap: 16px;
  align-items: baseline;
  border-bottom: 1px solid var(--light);
  padding-bottom: 14px;
}
.work-spec li span {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.work-divider { height: 0; }

/* ===========================
   Manifesto
=========================== */
.manifesto {
  background: var(--black);
  color: var(--white);
  padding: 120px 40px;
  text-align: center;
}
.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  quotes: none;
}
.manifesto-sub {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
}

/* ===========================
   Info
=========================== */
.info {
  background: var(--white);
  border-top: 1px solid var(--black);
}
.info-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
}
.info-col--label {
  border-right: 1px solid var(--black);
  padding: 56px 40px;
  display: flex;
  align-items: flex-start;
}
.info-col--label span {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gray);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.info-col--data {
  padding: 56px 60px;
}
.info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--light);
}
.info-row:first-child { border-top: 1px solid var(--light); }
dt {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gray);
  padding-top: 2px;
}
dd {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 2;
  color: var(--black);
}
dd a {
  border-bottom: 1px solid var(--light);
  transition: border-color 0.2s;
}
dd a:hover { border-color: var(--black); }
.info-en {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gray);
}

/* ===========================
   Footer
=========================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-left, .footer-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-right { align-items: flex-end; }
.footer-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
}
.footer-copy,
.footer-right span {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
  .header { padding: 24px; }
  .hero { padding: 80px 24px 48px; }
  .hero-sub { text-align: left; max-width: 100%; }
  .hero-scroll { display: none; }
  .hero-counter { right: 24px; }

  .work-label { padding: 48px 24px 20px; }
  .work-header { padding: 32px 24px; gap: 20px; }
  .work-body-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }
  .work-item.open .work-body-inner { padding-bottom: 36px; }
  .work-num { display: none; }

  .manifesto { padding: 80px 24px; }

  .info-grid { grid-template-columns: 1fr; }
  .info-col--label {
    border-right: none;
    border-bottom: 1px solid var(--black);
    padding: 32px 24px 20px;
  }
  .info-col--label span { writing-mode: horizontal-tb; transform: none; }
  .info-col--data { padding: 32px 24px; }
  .info-row { grid-template-columns: 90px 1fr; gap: 16px; }

  .footer { padding: 24px; flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-right { align-items: flex-start; }

  .overlay-inner { padding: 0 24px; }
}
