@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:        #111111;
  --dark-2:      #1c1c1c;
  --light:       #f0e9de;
  --cream:       #faf6f0;
  --accent:      #bf3327;
  --green:       #1c4726;
  --mid:         #5a5a5a;
  --rule-dark:   rgba(255,255,255,0.08);
  --rule-light:  #d8d0c5;

  --serif: 'Noto Serif JP', serif;
  --sans:  'Noto Sans JP', sans-serif;

  --pad: clamp(1.5rem, 6vw, 5rem);
  --max: 1160px;
}

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

body {
  font-family: var(--sans);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, border-bottom 0.4s;
}
.nav.scrolled {
  background: var(--dark);
  border-bottom: 1px solid var(--rule-dark);
}
.nav-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.12em;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

/* ── HERO ── */
.hero {
  min-height: 100svh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem var(--pad) clamp(2.5rem, 5vw, 4rem);
  position: relative;
}
.hero-label {
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  margin-bottom: 1.75rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3rem, 9.5vw, 8.5rem);
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
}
.hero-divider {
  width: 100%;
  height: 1px;
  background: var(--rule-dark);
  margin-bottom: 2rem;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(0.875rem, 1.8vw, 1.125rem);
  color: rgba(255,255,255,0.5);
  font-style: italic;
}
.hero-cta {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  transition: color 0.2s, gap 0.3s;
}
.hero-cta::after { content: '↓'; }
.hero-cta:hover { color: #fff; gap: 1.25rem; }

/* ── SECTION COMMON ── */
.sec {
  padding: clamp(4rem, 10vw, 7rem) var(--pad);
}
.sec-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.sec-label {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.sec-rule {
  height: 1px;
  background: var(--rule-light);
  margin-bottom: 3rem;
}
.sec-rule--dark {
  background: var(--rule-dark);
}
.sec-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.875rem, 4.5vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ── MISSION ── */
.mission { background: var(--cream); }
.mission .sec-label { color: var(--mid); }
.mission .sec-title { margin-bottom: 3rem; }

.problem-list { margin-bottom: 0; }
.problem-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule-light);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.problem-item:first-child { border-top: 1px solid var(--rule-light); }
.problem-item.visible { opacity: 1; transform: none; }
.problem-n {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  padding-top: 0.3rem;
}
.problem-h {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.problem-p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--mid);
}

/* ── MANIFESTO ── */
.manifesto {
  background: var(--accent);
  padding: clamp(4rem, 10vw, 7rem) var(--pad);
}
.manifesto-quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.125rem, 2.8vw, 1.875rem);
  color: #fff;
  line-height: 1.75;
  max-width: 820px;
  margin-bottom: 2rem;
}
.manifesto-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
}

/* ── MVV ── */
.mvv { background: var(--cream); }
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-light);
}
.mvv-item {
  background: var(--cream);
  padding: 2.5rem 2rem;
}
.mvv-en {
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.mvv-ja {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
}
.mvv-body {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--mid);
}
.mvv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mvv-list li {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--mid);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule-light);
}
.mvv-list li:first-child {
  padding-top: 0;
  border-top: none;
}
.mvv-list li strong {
  color: var(--dark);
  font-weight: 700;
  font-family: var(--serif);
  font-size: 0.9375rem;
}
@media (max-width: 600px) {
  .mvv-grid { grid-template-columns: 1fr; }
}

/* ── PROGRAMS ── */
.programs { background: var(--dark); }
.programs .sec-label { color: rgba(255,255,255,0.3); }
.programs .sec-title { color: #fff; margin-bottom: 3rem; }

.program-list { margin-top: 0; }
.program-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule-dark);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.program-item:last-child { border-bottom: 1px solid var(--rule-dark); }
.program-item.visible { opacity: 1; transform: none; }
.program-n {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.2);
  font-weight: 500;
  padding-top: 0.3rem;
}
.program-tag {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.program-h {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.program-p {
  font-size: 0.875rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.5);
}

/* ── TEAM ── */
.team { background: var(--light); }
.team .sec-label { color: var(--mid); }
.team .sec-title { margin-bottom: 3rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-light);
  margin-bottom: 3.5rem;
}
.team-cell {
  background: var(--light);
  padding: 2rem 1.75rem;
}
.team-cell-tag {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.875rem;
}
.team-cell-h {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.team-cell-p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--mid);
}
.team-statement {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.2vw, 1.375rem);
  line-height: 1.8;
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 1.75rem;
  color: var(--dark);
}

/* ── APPROACH ── */
.approach { background: var(--cream); }
.approach .sec-label { color: var(--mid); }
.approach .sec-title { margin-bottom: 3rem; }

.flow {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr 2rem 1fr;
  align-items: start;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.flow-step {
  border: 1px solid var(--rule-light);
  padding: 2rem 1.75rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.flow-step.visible { opacity: 1; transform: none; }
.flow-n {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.875rem;
}
.flow-h {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.6rem;
}
.flow-p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--mid);
}
.flow-arrow {
  color: var(--rule-light);
  font-size: 1.25rem;
  text-align: center;
  padding-top: 2.5rem;
}
.approach-note {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--mid);
  border-left: 2px solid var(--rule-light);
  padding-left: 1.5rem;
}
.approach-note strong { color: var(--dark); font-weight: 700; }

/* ── JOIN ── */
.join { background: var(--green); }
.join .sec-label { color: rgba(255,255,255,0.3); }

.join-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.875rem, 4.5vw, 3.25rem);
  color: #fff;
  margin-bottom: 1rem;
}
.join-lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.85;
  margin-bottom: 3.5rem;
}
.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 3.5rem;
}
.join-card {
  background: var(--green);
  padding: 2.25rem 2rem;
}
.join-card-tag {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  margin-bottom: 1rem;
}
.join-card-h {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 0.6rem;
}
.join-card-p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}
.join-link {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.join-link:hover { color: #fff; }

.contact-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.contact-bar p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}
.contact-email {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 0.2rem;
  transition: border-color 0.2s;
}
.contact-email:hover { border-color: #fff; }

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--rule-dark);
  padding: 2rem var(--pad);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-name {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  font-family: var(--serif);
}
.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-nav a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.6); }
.footer-copy {
  width: 100%;
  text-align: right;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.15);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .flow {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .flow-arrow { transform: rotate(90deg); padding: 0; text-align: left; }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .program-item { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
}
