/* ==========================================================================
   SiteCraft LP - styles.css
   ========================================================================== */

:root {
  --bg: #0B0F19;
  --surface: #12172A;
  --surface-alt: #161C33;
  --border: rgba(255, 255, 255, 0.08);
  --text: #F5F7FA;
  --text-muted: #9AA3B5;
  --accent: #4F7CFF;
  --accent-2: #22D3EE;
  --accent-grad: linear-gradient(135deg, #4F7CFF 0%, #22D3EE 100%);
  --radius-md: 14px;
  --radius-lg: 22px;
  --max-width: 1160px;
  --font-heading: "Space Grotesk", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

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

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

ul, ol { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.section-heading { color: var(--text); }
.section-lead { max-width: 640px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #06070c;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(79, 124, 255, 0.35); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
}
.logo span { color: var(--accent-2); }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--text); }
.header-cta { display: flex; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 22px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid transparent;
}
.mobile-nav.open {
  max-height: 400px;
  border-top: 1px solid var(--border);
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 16px;
}
.mobile-nav a { color: var(--text-muted); }

@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, black, transparent 70%);
}
.glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.glow-a { background: var(--accent); top: -160px; left: -100px; }
.glow-b { background: var(--accent-2); top: 40px; right: -140px; }

.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-lead { max-width: 620px; margin: 0 auto 32px; font-size: 1.05rem; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- generic section spacing ---------- */
section { padding: 88px 0; }
.problems { background: var(--surface); }
.works { background: var(--surface); }

/* ---------- problems ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.problem-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.problem-card h3 { color: var(--text); font-size: 1.05rem; }
.problem-card p { margin: 0; font-size: 0.95rem; }

/* ---------- strengths ---------- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.strength-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.strength-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.strength-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79, 124, 255, 0.12);
  color: var(--accent-2);
  margin-bottom: 16px;
}
.strength-card h3 { color: var(--text); }
.strength-card p { font-size: 0.92rem; margin: 0; }

/* ---------- flow (signature timeline) ---------- */
.flow-timeline {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
  position: relative;
}
.flow-timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  background-size: 200% 100%;
  animation: flowMove 6s linear infinite;
  opacity: 0.5;
}
@keyframes flowMove {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}
.flow-step {
  position: relative;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px 20px;
}
.flow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #06070c;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 14px;
}
.flow-step h3 { color: var(--text); font-size: 1rem; }
.flow-step p { font-size: 0.9rem; margin: 0; }

/* ---------- works ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.work-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.work-thumb {
  height: 160px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.work-thumb-a { background: linear-gradient(135deg, #26305a, #4F7CFF); }
.work-thumb-b { background: linear-gradient(135deg, #124a4f, #22D3EE); }
.work-thumb-c { background: linear-gradient(135deg, #3a2a5c, #7c6cff); }
.work-thumb-tag {
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-heading);
}
.work-body { padding: 20px; }
.work-body h3 { color: var(--text); font-size: 1rem; }
.work-body p { font-size: 0.9rem; }
.work-plan {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent-2);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
}
.works-note { margin-top: 24px; font-size: 0.82rem; color: var(--text-muted); }

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}
.price-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(79,124,255,0.12), var(--surface-alt) 40%);
  position: relative;
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--accent-grad);
  color: #06070c;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin: 0;
}
.price-card h3 { color: var(--text); }
.price-desc { font-size: 0.9rem; min-height: 3em; }
.price-amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0 20px;
}
.price-amount span { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.price-features { margin-bottom: 24px; flex-grow: 1; }
.price-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--accent-grad);
}
.price-card .btn { width: 100%; }

/* ---------- faq ---------- */
.faq-list { margin-top: 40px; max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 20px 32px 20px 0;
  cursor: pointer;
  position: relative;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font-size: 1.4rem;
  color: var(--accent-2);
  transition: transform 0.25s ease;
}
.faq-question[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding-bottom: 20px; font-size: 0.92rem; margin: 0; }

/* ---------- contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
.linktree-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--accent-2);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.4);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.linktree-link:hover { opacity: 0.75; }

.contact-form {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.required {
  color: var(--accent-2);
  font-size: 0.72rem;
  border: 1px solid rgba(34,211,238,0.4);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-2);
}
.form-note { min-height: 1.4em; font-size: 0.88rem; color: var(--accent-2); margin-top: 12px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding-bottom: 32px;
}
.footer-brand p:last-child { font-size: 0.88rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a, .footer-social a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-links a:hover, .footer-social a:hover { color: var(--accent-2); }
.footer-social { display: flex; gap: 20px; }
.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.footer-legal a { font-size: 0.82rem; color: var(--text-muted); }
.footer-legal a:hover { color: var(--accent-2); }

/* ---------- legal page (privacy / tokushoho) ---------- */
.legal-page { padding: 64px 0 96px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .legal-updated { font-size: 0.85rem; margin-bottom: 40px; }
.legal-page h2 {
  font-size: 1.15rem;
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.legal-page p, .legal-page li { font-size: 0.94rem; }
.legal-page ul { margin: 0 0 1em; }
.legal-page li { padding-left: 18px; position: relative; margin-bottom: 8px; }
.legal-page li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
}
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal-table th, .legal-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: top;
}
.legal-table th {
  width: 34%;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
}
.legal-table td { color: var(--text-muted); }
.legal-placeholder { color: var(--accent-2); }
.legal-back {
  display: inline-block;
  margin-top: 48px;
  font-size: 0.9rem;
  color: var(--accent-2);
  border-bottom: 1px solid rgba(34,211,238,0.4);
}
.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  margin: 0;
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .problem-grid, .strength-grid, .works-grid, .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .flow-timeline { grid-template-columns: 1fr 1fr; }
  .flow-timeline::before { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  section { padding: 64px 0; }
  .problem-grid, .strength-grid, .works-grid, .pricing-grid, .flow-timeline {
    grid-template-columns: 1fr;
  }
  .hero { padding: 72px 0 56px; }
  .hero-stats { gap: 28px; }
}
