/* ========================================
   VIDEO WORKS — Cinematic Editorial
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0e0d0b;
  --bg2: #141310;
  --surface: #1a1916;
  --surface-h: #21201c;
  --text: #f0ece4;
  --text2: #a09888;
  --text3: #6a6258;
  --accent: #c47d5a;
  --accent-dim: rgba(196,125,90,0.12);
  --accent-glow: rgba(196,125,90,0.2);
  --gold: #e8c547;
  --gold-dim: rgba(232,197,71,0.12);
  --warn: #e05252;
  --orange: #e8964a;
  --border: rgba(255,255,255,0.05);
  --border-h: rgba(255,255,255,0.09);
  --r: 6px;
  --font: 'Zen Kaku Gothic New', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* Grain overlay */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: 0.03;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---- Canvas ---- */
#particles-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ---- Nav ---- */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 24px 0; transition: all 0.5s;
}
#navbar.scrolled {
  background: rgba(12,12,14,0.88); backdrop-filter: blur(20px) saturate(1.3);
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: center;
}
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-family: var(--font-display); font-size: 14px;
  letter-spacing: 3px; color: var(--text3);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  padding: 8px 24px !important;
  transition: all 0.3s !important;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
}

/* Mobile */
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 6px; padding: 4px;
}
.mobile-menu-btn span {
  display: block; width: 24px; height: 1px; background: var(--text);
  transition: 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(12,12,14,0.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
}
.mobile-menu.active { display: flex; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 36px; text-align: center; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 36px;
  letter-spacing: 8px; color: var(--text3); transition: 0.3s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ---- First Section (no hero) ---- */
.section-first { padding-top: 140px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 14px;
  letter-spacing: 3px; padding: 16px 36px;
  border: none; cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.btn-primary {
  background: var(--accent); color: var(--bg);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
}
.btn-primary:hover {
  background: #fff;
  transform: translateX(4px);
}
.btn-outline {
  background: transparent; border: 1px solid var(--border-h) !important;
  color: var(--text3);
}
.btn-outline:hover {
  border-color: var(--accent) !important; color: var(--accent);
}

/* ---- Section ---- */
.section { position: relative; z-index: 1; padding: 160px 0; }
.section-alt { background: var(--bg2); }

.section-header { margin-bottom: 80px; }
.section-tag {
  font-family: var(--font-display); font-size: 12px;
  letter-spacing: 6px; color: var(--accent);
  margin-bottom: 16px; display: flex; align-items: center; gap: 16px;
}
.section-tag::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 4px; line-height: 1;
  margin-bottom: 16px;
}
.section-desc { color: var(--text3); font-size: 14px; }

/* ---- Works Embed ---- */
.works-embed {
  position: relative; width: 100%; max-width: 900px;
  aspect-ratio: 16 / 9;
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden;
}
.works-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* ---- Flow Timeline ---- */
.flow-timeline {
  position: relative; max-width: 720px;
  display: flex; flex-direction: column; gap: 0;
}
.flow-timeline::before {
  content: ''; position: absolute;
  left: 23px; top: 24px; bottom: 24px;
  width: 1px; background: var(--border-h);
}
.flow-step {
  display: flex; gap: 32px; align-items: flex-start;
  padding: 28px 0; position: relative;
}
.flow-step + .flow-step { border-top: 1px solid var(--border); }
.flow-num {
  font-family: var(--font-display); font-size: 28px;
  letter-spacing: 2px; color: var(--accent);
  width: 48px; flex-shrink: 0; text-align: center;
  position: relative; z-index: 1;
  background: var(--bg); padding: 4px 0;
}
.flow-body { flex: 1; }
.flow-title {
  font-size: 16px; font-weight: 700; margin-bottom: 8px;
}
.flow-desc {
  font-size: 13px; color: var(--text2); line-height: 1.9;
}
.flow-desc small { color: var(--text3); }

/* ---- Plan Cards ---- */
.plans-grid { display: grid; gap: 16px; }
.mv-grid { grid-template-columns: repeat(4, 1fr); }
.short-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; }

.plan-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: 0;
  padding: 44px 28px 28px; transition: all 0.4s;
  overflow: hidden;
}
.plan-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}
.plan-card:hover {
  background: var(--surface-h); border-color: var(--border-h);
  transform: translateY(-6px);
}
.plan-card:hover::after { width: 100%; }

.plan-card.popular { border-color: rgba(0,212,255,0.3); }
.plan-card.popular::after { width: 30%; background: var(--accent); }
.plan-card.popular:hover::after { width: 100%; }

.plan-card.premium { border-color: rgba(232,197,71,0.3); }
.plan-card.premium::after { background: var(--gold); width: 30%; }
.plan-card.premium:hover::after { width: 100%; }

.popular-badge {
  position: absolute; top: 0; right: 0;
  background: var(--accent); color: var(--bg);
  font-family: var(--font-display); font-size: 10px; letter-spacing: 2px;
  padding: 4px 14px;
}

.plan-tier {
  font-family: var(--font-display); font-size: 11px;
  letter-spacing: 5px; color: var(--text3); margin-bottom: 8px;
}
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 28px; }

.plan-price {
  display: flex; align-items: baseline; gap: 2px; margin-bottom: 36px;
}
.price-yen {
  font-family: var(--font-display); font-size: 16px; color: var(--accent);
}
.price-amount {
  font-family: var(--font-display); font-size: 52px;
  letter-spacing: 2px; line-height: 1;
}
.premium .price-amount { color: var(--gold); }
.price-from { font-size: 14px; color: var(--text3); margin-left: 2px; }

.plan-features {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 36px;
}
.plan-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text2);
}
.feature-icon {
  color: var(--accent); font-size: 11px; font-weight: 700;
}

.btn-plan {
  width: 100%; justify-content: center;
  background: transparent; color: var(--text2);
  border: 1px solid var(--border) !important; font-size: 12px;
  letter-spacing: 3px; padding: 14px 24px;
  clip-path: none;
}
.btn-plan:hover {
  background: var(--accent); color: var(--bg);
  border-color: var(--accent) !important;
}
.btn-premium {
  border-color: rgba(232,197,71,0.4) !important; color: var(--gold) !important;
}
.btn-premium:hover {
  background: var(--gold) !important; color: var(--bg) !important;
  border-color: var(--gold) !important;
}

/* ---- Options ---- */
.options-table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; margin-bottom: 48px;
}
.options-table { width: 100%; border-collapse: collapse; }
.options-table th {
  font-family: var(--font-display); font-size: 11px;
  letter-spacing: 4px; color: var(--text3); text-align: left;
  padding: 20px 32px; background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.options-table td {
  padding: 18px 32px; border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.options-table tr:last-child td { border-bottom: none; }
.options-table tr:hover td { background: rgba(255,255,255,0.015); }
.option-name { font-size: 14px; }
.option-name small { color: var(--text3); margin-left: 4px; }
.option-price {
  font-family: var(--font-display); font-size: 16px;
  letter-spacing: 1px; color: var(--accent);
}
.option-price small { font-weight: 400; color: var(--text3); font-size: 12px; font-family: var(--font); }
.option-price.urgent { color: var(--warn); }
.option-price.express { color: var(--orange); }

/* ---- Notes ---- */
.notes-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 40px; position: relative;
}
.notes-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--accent); opacity: 0.5;
}
.notes-title {
  font-family: var(--font-display); font-size: 18px;
  letter-spacing: 3px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.notes-title::before { content: '⚠'; font-size: 16px; }
.notes-list { display: flex; flex-direction: column; gap: 12px; }
.notes-list li {
  font-size: 13px; color: var(--text2); padding-left: 20px; position: relative;
}
.notes-list li::before {
  content: '—'; position: absolute; left: 0; color: var(--text3);
}
.notes-list small { color: var(--text3); }

/* ---- Contact ---- */
.section-contact { background: var(--bg2); }
.contact-form {
  max-width: 720px; display: flex; flex-direction: column; gap: 24px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 56px; position: relative;
}
.contact-form::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-display); font-size: 12px;
  letter-spacing: 3px; color: var(--text3);
}
.required { color: var(--warn); }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg); border: 1px solid var(--border);
  padding: 14px 18px; color: var(--text);
  font-family: var(--font); font-size: 14px;
  outline: none; transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg); }
.form-group textarea { resize: vertical; min-height: 100px; }

.btn-submit {
  align-self: flex-start; padding: 16px 48px; font-size: 13px;
  margin-top: 8px;
}

/* ---- Footer ---- */
#footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border); padding: 48px 0;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.footer-socials {
  display: flex; align-items: center; gap: 24px;
}
.social-link {
  color: var(--text3);
  transition: color 0.3s, transform 0.3s;
  display: grid; place-items: center;
}
.social-link:hover {
  color: var(--accent);
  transform: translateY(-3px);
}
.footer-copy {
  font-family: var(--font-display); font-size: 12px;
  letter-spacing: 3px; color: var(--text3);
}

/* ---- Animations ---- */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(60px) skewY(2deg); }
  to { opacity: 1; transform: translateY(0) skewY(0); }
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; } 50% { opacity: 1; }
}
@keyframes heroGlow {
  0% { opacity: 0.4; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1.15); }
}

/* Scroll reveal */
.plan-card, .options-table-wrap, .notes-card, .contact-form,
.works-embed, .flow-step {
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.plan-card.visible, .options-table-wrap.visible,
.notes-card.visible, .contact-form.visible,
.works-embed.visible, .flow-step.visible {
  opacity: 1; transform: translateY(0);
}
.plan-card:nth-child(2) { transition-delay: 0.08s; }
.plan-card:nth-child(3) { transition-delay: 0.16s; }
.plan-card:nth-child(4) { transition-delay: 0.24s; }
.flow-step:nth-child(2) { transition-delay: 0.06s; }
.flow-step:nth-child(3) { transition-delay: 0.12s; }
.flow-step:nth-child(4) { transition-delay: 0.18s; }
.flow-step:nth-child(5) { transition-delay: 0.24s; }
.flow-step:nth-child(6) { transition-delay: 0.30s; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .mv-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .section { padding: 100px 0; }
  .hero-scroll { display: none; }
}
@media (max-width: 600px) {
  .mv-grid, .short-grid { grid-template-columns: 1fr; }
  .short-grid { max-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .options-table th, .options-table td { padding: 14px 16px; }
  .btn-submit { align-self: stretch; }
  .contact-form { padding: 32px 20px; }
  .container { padding: 0 20px; }
}
