/* ===========================
   Crew -digital works- Common CSS
   =========================== */

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

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

:root {
  --bg:        #0c0c0c;
  --bg2:       #111111;
  --bg3:       #181818;
  --line:      #2a2a2a;
  --text:      #f0f0ec;
  --text2:     #a0a09a;
  --text3:     #606060;
  --accent:    #c8c8c0;
  --white:     #f5f5f0;
  --font-en:   'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-jp:   'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --max:       1200px;
  --nav-h:     72px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Layout ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

/* ── Section ── */
.section {
  padding: 96px 0;
}
.section--sm {
  padding: 64px 0;
}
.section-label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 20px;
  display: block;
}
.section-title {
  font-family: var(--font-jp);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 24px;
}
.section-title strong {
  font-weight: 700;
}
.section-sub {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.9;
  max-width: 560px;
}

/* ── Divider ── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--text3);
  margin-bottom: 40px;
}

/* ── Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(0.77,0,0.175,1);
  z-index: 0;
}
.btn span, .btn-arrow { position: relative; z-index: 1; }
.btn:hover { color: #00ff41; border-color: #00ff41; }
.btn:active::after { transform: translateX(0); }
.btn:active { color: var(--bg); border-color: var(--white); }

.btn--solid {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}
.btn--solid::after { background: var(--bg); }
.btn--solid:hover { color: #00ff41; border-color: #00ff41; }
.btn--solid:active { color: var(--white); border-color: var(--bg); }

.btn-arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12,12,12,0.92);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 36px;
  width: auto;
  /* ロゴが白背景なのでフィルターで黒→白に */
  filter: invert(1) brightness(2);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text2);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-contact {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--line);
  color: var(--text2);
  transition: all 0.25s;
}
.nav-contact:hover {
  border-color: #00ff41;
  color: #00ff41;
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: all 0.3s;
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  font-family: var(--font-en);
  font-size: 24px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text2);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--white); }

@media (max-width: 900px) {
  .nav-links, .nav-contact { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { padding: 0 24px; }
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}
.footer-logo img {
  height: 40px;
  filter: invert(1) brightness(2);
  margin-bottom: 20px;
}
.footer-copy {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.1em;
  margin-top: 8px;
}
.footer-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.8;
  margin-top: 12px;
}
.footer-nav h4 {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 20px;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  font-size: 13px;
  color: var(--text2);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 24px 48px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.08em;
}

/* ── Hero eyebrow ── */
.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--text3);
}

/* ── CTA ── */
.cta {
  background: var(--bg3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 120px 0;
}
.cta-title {
  font-family: var(--font-jp);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.cta-sub {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 48px;
  line-height: 2;
}
.cta-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, 220px);
  justify-content: center;
  gap: 16px;
}
.cta-actions .btn {
  justify-content: center;
  white-space: nowrap;
}

/* ── Scroll fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ── Page header ── */
.page-hero {
  padding: 120px 0 72px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-binary {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.5) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.5) 0%, transparent 100%);
}
.page-hero-binary canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.page-hero-label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 24px;
}
.page-hero-title {
  font-family: var(--font-en);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 32px;
}
.page-hero-sub {
  font-size: 15px;
  color: var(--text2);
  line-height: 2;
  max-width: 480px;
}

/* ── Mobile overrides (must come last to override desktop declarations) ── */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 40px;
  }
  .footer-bottom { padding: 24px 24px 0; flex-direction: column; gap: 8px; }

  /* Section padding */
  .section    { padding: 72px 0; }
  .section--sm { padding: 48px 0; }

  /* Page hero */
  .page-hero { padding: 80px 0 48px; }
  .page-hero-title { font-size: clamp(36px, 9vw, 56px); }
  .page-hero-binary { display: none; }

  /* CTA */
  .cta { padding: 72px 0; }
  .cta-title { font-size: clamp(24px, 6vw, 36px); }
  .cta-actions {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Section titles */
  .section-title { font-size: clamp(24px, 5vw, 32px); }
}

/* ── Page Transition Overlay ── */
#pt {
  position: fixed;
  inset: 0;
  background: #0c0c0c;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  font-family: 'Courier New', Courier, monospace;
}
#pt .pt-site {
  font-size: 10px;
  letter-spacing: 0.5em;
  color: #333;
  text-transform: uppercase;
}
#pt .pt-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
#pt .pt-num {
  font-size: clamp(48px, 10vw, 80px);
  line-height: 1;
  color: #f0f0ec;
  letter-spacing: -0.04em;
  width: 3ch;
  display: inline-block;
  text-align: right;
}
#pt .pt-pct {
  font-size: clamp(20px, 4vw, 32px);
  color: #444;
  line-height: 1;
}
#pt .pt-track {
  width: min(300px, 70vw);
  height: 1px;
  background: #1a1a1a;
  position: relative;
}
#pt .pt-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: #00ff41;
  box-shadow: 0 0 10px rgba(0,255,65,0.6);
}
#pt .pt-status {
  font-size: 10px;
  letter-spacing: 0.35em;
  color: #00ff41;
  text-transform: uppercase;
}
