/* FORWARD HUB — Japanese minimal aesthetic */

:root {
  --ink: #1c1c1c;
  --ink-soft: #3d3d3d;
  --paper: #f6f3ed;
  --paper-warm: #ede8df;
  --stone: #8a8278;
  --gold: #b8956a;
  --gold-light: #d4bc96;
  --line: rgba(28, 28, 28, 0.12);
  --line-strong: rgba(28, 28, 28, 0.22);
  --shadow: 0 24px 64px rgba(28, 28, 28, 0.08);
  --shadow-soft: 0 8px 32px rgba(28, 28, 28, 0.06);
  --font-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
  --container: min(1120px, calc(100% - 48px));
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ── Header ── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(246, 243, 237, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand img,
.brand svg {
  width: 28px;
  height: 28px;
  color: var(--ink);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-desktop a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

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

.nav-desktop a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}

.lang-switch button {
  padding: 4px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--stone);
  transition: all 0.25s;
}

.lang-switch button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all 0.3s var(--ease);
}

.btn-nav:hover {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ── Mobile nav ── */

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 99;
  background: var(--paper);
  padding: 48px 24px;
  flex-direction: column;
  gap: 32px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.nav-mobile.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(28, 28, 28, 0.55) 0%, rgba(28, 28, 28, 0.25) 45%, rgba(246, 243, 237, 0.85) 100%),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80") center / cover no-repeat;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + 80px);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: #fff;
  max-width: 14ch;
  margin-bottom: 28px;
}

.hero-lead {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.35s var(--ease);
}

.btn-primary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
}

.btn-primary:hover {
  background: transparent;
  color: #fff;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.hero-scroll {
  position: absolute;
  right: 24px;
  bottom: 40px;
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Section common ── */

.section {
  padding: 120px 0;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--ink-soft);
  max-width: 56ch;
  font-size: 0.95rem;
}

.section-header {
  margin-bottom: 64px;
}

.section-header--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

/* ── Philosophy ── */

.philosophy {
  background: var(--paper-warm);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.philosophy-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy-visual::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 1;
  pointer-events: none;
}

.philosophy-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 2;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
  color: var(--ink);
}

.philosophy-text {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ── Features ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-card {
  background: var(--paper);
  padding: 48px 36px;
  transition: background 0.35s var(--ease);
}

.feature-card:hover {
  background: #fff;
}

.feature-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ── Venues ── */

.venues {
  background: var(--ink);
  color: var(--paper);
}

.venues .section-label {
  color: var(--gold-light);
}

.venues .section-title {
  color: var(--paper);
}

.venues .section-desc {
  color: rgba(246, 243, 237, 0.7);
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.venue-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: default;
}

.venue-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.venue-card:hover img {
  transform: scale(1.05);
}

.venue-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 28, 28, 0.92) 0%, rgba(28, 28, 28, 0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.venue-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.venue-card p {
  font-size: 0.78rem;
  color: rgba(246, 243, 237, 0.75);
  letter-spacing: 0.04em;
}

.venue-card .venue-addr {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--gold-light);
}

/* ── Process ── */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 48px;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold-light);
  line-height: 1;
}

.process-step h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.process-line {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-bottom: 64px;
}

/* ── CTA ── */

.cta {
  text-align: center;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "間";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(12rem, 30vw, 22rem);
  color: var(--line);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta .section-title {
  margin-bottom: 16px;
}

.cta .section-desc {
  margin-inline: auto;
  margin-bottom: 40px;
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 32ch;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
  transition: color 0.25s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--stone);
}

/* ── Reveal animation ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .venue-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .nav-desktop {
    display: none;
  }

  .btn-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-mobile {
    display: flex;
  }

  .hero {
    min-height: 92vh;
    padding-bottom: 48px;
  }

  .hero-scroll {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .philosophy-visual {
    aspect-ratio: 16 / 10;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .venue-grid {
    grid-template-columns: 1fr;
  }

  .venue-card {
    aspect-ratio: 16 / 10;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta {
    padding: 100px 0;
  }
}

@media (max-width: 480px) {
  :root {
    --container: calc(100% - 32px);
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  .lang-switch button {
    padding: 4px 8px;
  }
}
