:root {
  --bg: #ebe7e0;
  --ink: #111111;
  --muted: #6f6a63;
  --line: #d4cec4;
  --radius: 20px;
  --gutter: clamp(20px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Yu Gothic", sans-serif;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* 左端の縦罫 */
.rule {
  position: fixed;
  top: 0;
  bottom: 0;
  left: calc(var(--gutter) * 0.62);
  width: 1px;
  background: var(--line);
  z-index: 0;
  pointer-events: none;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.22em;
}

.brand.small {
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.nav a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav .pill {
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}

.nav .pill:hover {
  color: var(--bg);
  opacity: 0.82;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(48px, 7vw, 88px);
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-mark {
  position: absolute;
  right: var(--gutter);
  top: clamp(0px, 2vw, 24px);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 78vw;
  font-size: clamp(88px, 17vw, 240px);
  line-height: 0.86;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.hero-mark span {
  display: inline-block;
  padding: 0 clamp(4px, 0.8vw, 14px);
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.hero-mark span:nth-child(1) { animation-delay: 0.05s; }
.hero-mark span:nth-child(2) { animation-delay: 0.12s; }
.hero-mark span:nth-child(3) { animation-delay: 0.19s; }
.hero-mark span:nth-child(4) { animation-delay: 0.26s; }
.hero-mark span:nth-child(5) { animation-delay: 0.33s; }
.hero-mark span:nth-child(6) { animation-delay: 0.4s; }
.hero-mark span:nth-child(7) { animation-delay: 0.47s; }
.hero-mark span:nth-child(8) { animation-delay: 0.54s; }
.hero-mark span:nth-child(9) { animation-delay: 0.61s; }

.hero-mark .wrap {
  /* 4文字目のあとで折り返し、2段に組む */
  flex: 0 0 100%;
  height: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.18em);
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34em;
}

.hero-ja {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: 0.08em;
}

.hero-en {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- band ---------- */

.band {
  padding: 0 0 clamp(56px, 9vw, 120px);
}

.band img {
  width: 100%;
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
  object-position: top center;
  border-top-left-radius: 160px;
  border-top-right-radius: 12px;
}

/* ---------- intro ---------- */

.intro {
  padding: 0 var(--gutter) clamp(72px, 11vw, 150px);
}

.intro p {
  margin: 0 0 0 auto;
  max-width: 42em;
  font-size: clamp(14px, 1.3vw, 17px);
}

/* ---------- chapter ---------- */

.chapter {
  position: relative;
  padding: 0 var(--gutter) clamp(80px, 12vw, 160px);
  scroll-margin-top: 90px;
}

.chapter-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: clamp(16px, 3vw, 40px);
  padding-bottom: clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(32px, 5vw, 64px);
}

.chapter-head .num {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2em;
}

.chapter-head h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.chapter-head .chapter-lead {
  grid-column: 2;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- feature work ---------- */

.work.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(56px, 8vw, 110px);
}

.work.feature:last-child {
  margin-bottom: 0;
}

.work.feature.reverse {
  direction: rtl;
}

.work.feature.reverse > * {
  direction: ltr;
}

.work-shots {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(20px, 3vw, 44px);
  background: #e3ded5;
  border-radius: var(--radius);
}

.work-shots img {
  width: 50%;
  height: clamp(240px, 34vw, 420px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.5);
}

.work-shots.single {
  justify-content: center;
}

.work-shots.single img {
  width: 44%;
  min-width: 180px;
}

.work-meta {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.work-body h3,
.card h3 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.work-desc {
  margin: 0;
  font-size: 13.5px;
  color: #3c3831;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.links a {
  display: inline-block;
  padding: 9px 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  transition: background 0.25s ease, color 0.25s ease;
}

.links a:hover {
  background: var(--ink);
  color: var(--bg);
}

.links.big a {
  padding: 14px 40px;
  font-size: 13px;
}

/* ---------- grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 44px);
}

.card-shot {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: #e3ded5;
}

.card-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card-shot:hover img {
  transform: scale(1.03);
}

.card h3 a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.card h3 a:hover {
  border-bottom-color: var(--ink);
}

/* ---------- lab ---------- */

.lab-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lab-list li {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.lab-when {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.lab-list h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.lab-list p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- contact ---------- */

.contact .chapter-head {
  grid-template-columns: 1fr;
}

.contact .chapter-head .chapter-lead {
  grid-column: 1;
}

.contact-body {
  max-width: 40em;
}

.contact-body p {
  margin: 0;
  font-size: 14px;
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px var(--gutter) 56px;
  border-top: 1px solid var(--line);
}

.copyright {
  margin: 0;
  width: 100%;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal,
  .hero-mark span {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .rule {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: clamp(24px, 6vw, 48px);
  }

  .hero-mark {
    position: static;
    justify-content: flex-start;
    max-width: none;
    margin-bottom: clamp(28px, 8vw, 56px);
    font-size: clamp(72px, 22vw, 140px);
  }

  .work-shots {
    max-width: 460px;
  }

  .band img {
    border-top-left-radius: 80px;
  }

  .intro p {
    margin-left: 0;
  }

  .work.feature,
  .work.feature.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 12px;
    font-size: 11px;
  }

  .nav .pill {
    padding: 7px 16px;
  }
}
