*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #09090b;
  --bg-card: #111113;
  --bg-card-hover: #1a1a1f;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --text: #f0f0f5;
  --text-muted: #71717a;
  --text-sub: #a1a1aa;
  --border: #27272a;
  --gradient-hero: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.8; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ======================== Nav ======================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(9,9,11,0.85); border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.5rem;
}
.nav-logo {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 900; color: #fff;
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
}
.nav-cta {
  font-size: 0.8rem; font-weight: 600; color: #fff;
  background: var(--accent); border-radius: 999px;
  padding: 0.5rem 1.25rem; transition: all 0.2s;
}
.nav-cta:hover { background: #2563eb; }
.nav-mobile-btn {
  display: none; background: none; border: none; color: var(--text);
  font-size: 1.5rem; cursor: pointer; padding: 0.25rem;
}

/* ======================== Hero ======================== */
.hero { padding: 10rem 1.5rem 6rem; text-align: center; position: relative; overflow: hidden; background-size: cover; background-position: center; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero::before {
  content: ''; position: absolute; top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle at 30% 40%, rgba(59,130,246,0.12) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(139,92,246,0.08) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(236,72,153,0.05) 0%, transparent 60%);
  pointer-events: none; animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15);
  border-radius: 999px; padding: 0.4rem 1rem; font-size: 0.8rem;
  color: var(--accent-light); margin-bottom: 2rem;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.5rem;
}
.hero h1 .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-muted); max-width: 540px; margin: 0 auto 2.5rem; line-height: 1.8; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: #000; font-weight: 700; font-size: 1rem;
  padding: 1rem 2.25rem; border-radius: 999px;
  transition: all 0.2s; box-shadow: 0 0 40px rgba(59,130,246,0.15);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(59,130,246,0.25); }
.hero-cta svg { width: 18px; height: 18px; transition: transform 0.2s; }
.hero-cta:hover svg { transform: translateX(3px); }

/* ======================== Page Header ======================== */
.page-header { padding: 9rem 1.5rem 3rem; position: relative; overflow: hidden; }
.page-header::before {
  content: ''; position: absolute; top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-header .section-inner { position: relative; }
.page-header .breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem;
}
.page-header .breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.page-header .breadcrumb a:hover { color: var(--text); }
.page-header .breadcrumb .sep { color: var(--border); }

/* ======================== Sections ======================== */
section { padding: 6rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 1rem; line-height: 1.2; }
.section-desc { color: var(--text-muted); font-size: 0.95rem; max-width: 560px; margin-bottom: 3rem; }
.section-border { border-top: 1px solid var(--border); }

/* ======================== Numbers ======================== */
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.number-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem; text-align: center; position: relative; overflow: hidden;
  transition: all 0.3s;
}
.number-card::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(59,130,246,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.number-card:hover { border-color: rgba(59,130,246,0.2); transform: translateY(-4px); }
.number-card .num { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; background: var(--gradient-hero); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; }
.number-card .num-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ======================== Services ======================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: all 0.25s; }
.service-card:hover { background: var(--bg-card-hover); border-color: rgba(59,130,246,0.2); transform: translateY(-4px); }
.service-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.service-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; color: var(--accent-light); background: var(--accent-glow); border-radius: 6px; padding: 0.2rem 0.6rem; margin-top: 1rem; }

/* ======================== Portfolio Gallery ======================== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.portfolio-item {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.3s;
}
.portfolio-item:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.3); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item .overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 1.5rem 1rem 1rem; pointer-events: none;
}
.portfolio-item .overlay h4 { font-size: 0.85rem; font-weight: 700; color: #fff; }
.portfolio-item .overlay p { font-size: 0.7rem; color: rgba(255,255,255,0.6); margin-top: 0.2rem; }

/* ======================== Video Works ======================== */
.video-list { display: flex; flex-direction: column; gap: 0.75rem; }
.video-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  transition: all 0.2s;
}
.video-item:hover { background: var(--bg-card-hover); border-color: rgba(59,130,246,0.2); }
.video-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.video-item h4 { font-size: 0.9rem; font-weight: 600; }
.video-item p { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ======================== Shorts (password) ======================== */
.shorts-locked {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 3rem 2rem; text-align: center;
}
.shorts-locked .lock-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.shorts-locked h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.shorts-locked p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.shorts-pw-form { display: flex; gap: 0.5rem; justify-content: center; max-width: 300px; margin: 0 auto; }
.shorts-pw-form input {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.6rem 1rem; color: var(--text);
  font-size: 0.9rem; text-align: center; letter-spacing: 0.3em;
  outline: none; transition: border-color 0.2s;
}
.shorts-pw-form input:focus { border-color: var(--accent); }
.shorts-pw-form button {
  background: var(--accent); color: #fff; border: none;
  border-radius: 8px; padding: 0.6rem 1.25rem; font-weight: 600;
  font-size: 0.85rem; cursor: pointer; transition: background 0.2s;
}
.shorts-pw-form button:hover { background: #2563eb; }
.shorts-content { display: none; }
.shorts-content.unlocked { display: block; }
.shorts-placeholder {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem; text-align: center;
  color: var(--text-muted); font-size: 0.9rem;
}

/* ======================== About ======================== */
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: 3.5rem; align-items: start; }
.about-photo {
  width: 320px; height: 320px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; }
.about-text .about-role { font-size: 0.85rem; color: var(--accent-light); font-weight: 600; margin-bottom: 1.5rem; }
.about-text p { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 1rem; }
.about-skills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.about-skills span { font-size: 0.75rem; font-weight: 500; color: var(--text-sub); background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.85rem; }

/* About - Timeline */
.about-timeline { margin-top: 3.5rem; }
.timeline-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year { font-size: 0.85rem; font-weight: 700; color: var(--accent-light); padding-top: 0.1rem; }
.timeline-text h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.timeline-text p { font-size: 0.8rem; color: var(--text-muted); }

/* ======================== Products ======================== */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; display: flex; flex-direction: column; transition: all 0.25s; }
.product-card:hover { border-color: rgba(59,130,246,0.2); transform: translateY(-2px); }
.product-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.product-card .product-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.product-card .product-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--accent-light); margin-top: 1.25rem; transition: gap 0.2s; }
.product-card:hover .product-link { gap: 0.6rem; }

/* ======================== Company ======================== */
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid var(--border); }
.company-table th { text-align: left; font-size: 0.85rem; font-weight: 600; color: var(--text-sub); padding: 1rem 1.5rem 1rem 0; white-space: nowrap; vertical-align: top; width: 160px; }
.company-table td { font-size: 0.9rem; color: var(--text); padding: 1rem 0; line-height: 1.7; }

/* ======================== Contact ======================== */
.contact-section { text-align: center; }
.contact-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 3.5rem 2rem; max-width: 640px; margin: 0 auto; }
.contact-box h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.contact-box p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; }
.contact-methods { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact-btn { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; padding: 0.875rem 1.75rem; border-radius: 12px; transition: all 0.2s; }
.contact-btn-primary { background: var(--accent); color: #fff; }
.contact-btn-primary:hover { background: #2563eb; transform: translateY(-2px); }
.contact-btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.contact-btn-outline:hover { border-color: var(--accent); background: var(--accent-glow); }

/* ======================== CTA Banner ======================== */
.cta-banner { text-align: center; padding: 5rem 1.5rem; }
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1rem; }
.cta-banner p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }
.cta-banner .hero-cta { font-size: 0.95rem; padding: 0.875rem 2rem; }

/* ======================== Footer ======================== */
footer { border-top: 1px solid var(--border); padding: 2.5rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.75rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-sns { display: flex; gap: 1rem; }
.footer-sns a { color: var(--text-muted); transition: color 0.2s; display: flex; align-items: center; }
.footer-sns a:hover { color: var(--text); }
.footer-copy { font-size: 0.7rem; color: var(--text-muted); }

/* ======================== Lightbox ======================== */
.lightbox { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.9); align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 1.5rem; right: 2rem; color: #fff; font-size: 2rem; background: none; border: none; cursor: pointer; }
.lightbox-caption { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.9rem; font-weight: 600; text-align: center; }

/* ======================== Mobile Nav ======================== */
.mobile-nav { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(9,9,11,0.97); z-index: 200; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.25rem; font-weight: 600; color: var(--text-sub); transition: color 0.2s; }
.mobile-nav a:hover { color: var(--text); }
.mobile-nav-close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: none; color: var(--text); font-size: 2rem; cursor: pointer; }

/* ======================== Responsive ======================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .nav-cta-desktop { display: none; }
  .hero { padding: 8rem 1.25rem 4rem; }
  .page-header { padding: 7rem 1.25rem 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { width: 240px; height: 240px; margin: 0 auto; }
  .products-grid { grid-template-columns: 1fr; }
  .company-table th { display: block; padding-bottom: 0.25rem; width: 100%; }
  .company-table td { display: block; padding-top: 0; }
  .contact-methods { flex-direction: column; align-items: stretch; }
  .footer-inner { flex-direction: column; text-align: center; }
  .timeline-item { grid-template-columns: 60px 1fr; gap: 1rem; }
}
@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
