/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:       #f8f8fa;
  --bg2:      #f0f0f4;
  --bg3:      #e8e8ef;
  --accent:   #5a8a00;
  --accent2:  #5a3fd4;
  --text:     #1a1a2e;
  --muted:    #6b6b8a;
  --border:   rgba(0,0,0,0.10);
  --radius:   12px;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: linear-gradient(to bottom, rgba(248,248,250,0.95), transparent);
  backdrop-filter: blur(6px);
}
.nav-logo {
  font-size: 13px; letter-spacing: 0.25em;
  color: var(--accent); font-weight: 700; text-transform: uppercase;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.1em; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 120px 48px 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(123,92,255,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(200,255,0,0.08) 0%, transparent 60%);
}
.hero-tag {
  position: relative; z-index: 1;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero-tag::before {
  content: ''; display: inline-block;
  width: 32px; height: 1px; background: var(--accent);
}
.hero h1 {
  position: relative; z-index: 1;
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  position: relative; z-index: 1;
  margin-top: 32px; max-width: 540px;
  font-size: 16px; color: var(--muted); line-height: 1.9;
}
.hero-cta {
  position: relative; z-index: 1;
  margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  cursor: pointer; transition: all .25s;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(200,255,0,0.3); }
.btn-play::before { content: ''; display: inline-block; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent #fff; }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: rgba(0,0,0,0.25); background: var(--bg3); }
.hero-scroll {
  position: absolute; bottom: 40px; left: 48px; z-index: 1;
  font-size: 11px; letter-spacing: 0.2em; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.hero-scroll::after {
  content: ''; display: block; width: 48px; height: 1px;
  background: var(--muted); animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { transform: scaleX(1); opacity:0.5; }
  50% { transform: scaleX(1.3); opacity:1; }
}

/* ── Section base ── */
section { padding: 100px 48px; max-width: 1200px; margin: 0 auto; }
.section-tag {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 48px;
}
.section-title span { color: var(--muted); }

/* ── Marquee ── */
.marquee-section {
  padding: 60px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.marquee-label {
  text-align: center;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 32px;
}
.marquee-wrapper { overflow: hidden; position: relative; }
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg2), transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg2), transparent);
}
.marquee-track {
  display: flex; align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  flex-shrink: 0;
  padding: 0 48px;
  display: flex; align-items: center; justify-content: center;
  height: 60px;
}
.marquee-item img {
  height: 36px; width: auto; max-width: 140px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity .25s;
}
.marquee-item img:hover { opacity: 1; }
.marquee-item-text {
  font-size: 14px; font-weight: 700;
  color: var(--text);
  white-space: nowrap; letter-spacing: 0.05em;
  transition: color .25s;
}
.marquee-item-text:hover { color: var(--accent); }
.marquee-divider {
  width: 1px; height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.skill-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .25s, transform .25s;
}
.skill-card:hover { border-color: rgba(200,255,0,0.3); transform: translateY(-4px); }
.skill-icon {
  margin-bottom: 16px;
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.6); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.skill-icon img { width: 100%; height: 100%; object-fit: contain; }
.skill-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.skill-card p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.skill-tags {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px;
}
.skill-tag {
  font-size: 11px; padding: 4px 10px;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  border-radius: 100px; color: var(--muted);
}

/* ── Works ── */
#works { max-width: 1200px; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.work-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
  cursor: pointer;
}
.work-card:hover { transform: translateY(-6px); border-color: rgba(123,92,255,0.35); }
.work-thumb {
  position: relative; aspect-ratio: 9/16;
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  overflow: hidden;
}
.work-thumb.landscape { aspect-ratio: 16/9; }
.work-thumb-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}
.work-play {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(200,255,0,0.12);
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.work-card:hover .work-play { background: var(--accent); transform: scale(1.1); }
.work-play svg { fill: var(--accent); transition: fill .2s; }
.work-card:hover .work-play svg { fill: #000; }
.work-badge {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); background: rgba(255,255,255,0.7);
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid var(--border);
}
.work-thumb-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(123,92,255,0.12) 0%, transparent 70%);
}
.work-body { padding: 20px; }
.work-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.work-body p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.work-meta {
  margin-top: 14px; display: flex; align-items: center;
  justify-content: space-between;
}
.work-platform {
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--accent); font-weight: 700;
}
.work-tools { display: flex; gap: 6px; }
.work-tool {
  font-size: 10px; padding: 3px 8px;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--muted);
}
.work-url-area {
  margin-top: 14px;
  display: flex; align-items: center; gap: 8px;
}
.work-url-input {
  flex: 1; background: rgba(255,255,255,0.8);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; color: var(--text);
  font-size: 12px; outline: none;
  transition: border-color .2s;
}
.work-url-input:focus { border-color: var(--accent2); }
.work-url-input::placeholder { color: var(--muted); }
.work-url-btn {
  background: var(--accent2); color: #fff;
  border: none; border-radius: 8px;
  padding: 8px 14px; font-size: 12px;
  cursor: pointer; white-space: nowrap;
  transition: opacity .2s;
}
.work-url-btn:hover { opacity: 0.85; }

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 80px;
}
.stat-item {
  background: var(--bg3); padding: 36px 28px; text-align: center;
}
.stat-num {
  font-size: 42px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: -0.02em;
}
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0.1em; }

/* ── Process ── */
.process-list { display: flex; flex-direction: column; gap: 0; }
.process-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 24px; padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.process-item:last-child { border-bottom: none; }
.process-num {
  font-size: 11px; letter-spacing: 0.2em; color: var(--accent);
  font-weight: 700; padding-top: 4px;
}
.process-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.process-body p { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ── Tools ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.tool-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 16px;
  text-align: center; transition: border-color .2s;
}
.tool-item:hover { border-color: rgba(200,255,0,0.3); }
.tool-logo {
  width: 56px; height: 56px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
}
.tool-logo img {
  width: 44px; height: 44px;
  object-fit: contain; display: block;
  flex-shrink: 0;
}
.tool-logo.rounded img { border-radius: 11px; }
.tool-name { font-size: 13px; font-weight: 600; }
.tool-type { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── Clients ── */
.clients-section { max-width: 1200px; margin: 0 auto; padding: 100px 48px; }
.clients-count {
  font-size: 72px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 8px;
}
.clients-count-sub { font-size: 14px; color: var(--muted); margin-bottom: 48px; letter-spacing: 0.1em; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.client-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  transition: border-color .2s, background .2s;
  display: flex; align-items: center; gap: 10px;
}
.client-item:hover {
  border-color: rgba(200,255,0,0.3);
  background: rgba(200,255,0,0.04);
}
.client-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; opacity: 0.7;
}
.client-sub { font-size: 10px; color: var(--muted); margin-top: 2px; font-weight: 400; }

/* ── Contact ── */
#contact {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 100%; padding: 100px 48px;
}
.contact-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.contact-left h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.contact-left p { font-size: 15px; color: var(--muted); line-height: 1.9; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px;
  color: var(--text); font-size: 14px;
  font-family: inherit; outline: none;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent2); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn-primary { width: 100%; justify-content: center; border: none; }

/* ── Footer ── */
footer {
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  max-width: 1200px; margin: 0 auto;
}
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ── Divider ── */
.full-divider {
  height: 1px; background: var(--border);
  max-width: 100%; margin: 0;
}

/* ── Fade-in animation ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 60px; }
  section { padding: 70px 24px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  #contact { padding: 70px 24px; }
  footer { padding: 32px 24px; }
  .hero-scroll { left: 24px; }
}
