/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-primary: #ffffff;
  --blue-light: #cccccc;
  --blue-dark: #aaaaaa;
  --blue-glow: rgba(255, 255, 255, 0.15);
  --bg-dark: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-blue: rgba(255, 255, 255, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-muted: #555555;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
}

.logo-anima {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.logo-studio {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  padding: 8px 20px;
  background: #ffffff;
  border-radius: 6px;
  color: #0a0a0a !important;
  font-weight: 600;
  transition: background var(--transition), box-shadow var(--transition) !important;
}

.nav-cta:hover {
  background: #dddddd !important;
  box-shadow: 0 0 20px var(--blue-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(5, 5, 16, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 16px;
}

.mobile-menu a {
  color: var(--text-secondary);
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#bgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 112, 243, 0.15);
  border: 1px solid var(--border-blue);
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue-light);
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #aaaaaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--border-blue);
  border-radius: 12px;
  position: relative;
}

.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--blue-light);
  border-radius: 2px;
  animation: scrollDown 1.8s infinite;
}

@keyframes scrollDown {
  0% { top: 6px; opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: #ffffff;
  color: #0a0a0a;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: #dddddd;
  box-shadow: 0 4px 32px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--border-blue);
  background: rgba(0, 112, 243, 0.08);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn svg { width: 18px; height: 18px; }

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--blue-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ===== SERVICES ===== */
.services {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #070720 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 112, 243, 0.06), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 112, 243, 0.15);
}

.service-card.featured {
  border-color: var(--border-blue);
  background: rgba(0, 112, 243, 0.06);
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 3px 10px;
  background: #ffffff;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0a0a0a;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--blue-light);
  margin-bottom: 20px;
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ===== ABOUT ===== */
.about {
  background: #070720;
}

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table tr {
  border-bottom: 1px solid var(--border);
}

.about-table th {
  padding: 16px 0;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  width: 130px;
  vertical-align: top;
}

.about-table td {
  padding: 16px 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.about-table td a {
  color: var(--blue-light);
  transition: color var(--transition);
}

.about-table td a:hover { color: #fff; }

.about-vision {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  position: sticky;
  top: 90px;
}

.about-vision h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue-light);
  margin-bottom: 16px;
}

.about-vision p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.vision-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.vision-tags span {
  padding: 4px 12px;
  background: rgba(0, 112, 243, 0.12);
  border: 1px solid var(--border-blue);
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: var(--blue-light);
}

/* ===== CONTACT ===== */
.contact {
  background: linear-gradient(180deg, #070720 0%, var(--bg-dark) 100%);
}

.contact-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--blue-light);
  flex-shrink: 0;
}

.contact-item a {
  font-size: 1rem;
  color: var(--blue-light);
  transition: color var(--transition);
}

.contact-item a:hover { color: #fff; }

.contact-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--text-primary); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== HERO NOTICE ===== */
.hero-notice {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  margin-bottom: 28px;
}

/* ===== CIRCLE LABEL ===== */
.circle-label {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  width: fit-content;
}

.circle-logo {
  height: 72px;
  width: auto;
}

.circle-name-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.circle-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ===== WORKS ===== */
.works { background: #070720; }

.works-notice {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: inline-block;
}

.works-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* featured image — large, centered */
.featured-img-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px var(--border-blue);
}

.featured-img-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease, opacity 0.25s ease;
}

.featured-img-wrap:hover img { transform: scale(1.03); }

.work-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
}

/* title block */
.featured-info {
  width: 100%;
  max-width: 700px;
  text-align: center;
}

.work-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.featured-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.9;
}

/* slider */
.works-slider-area {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.slider-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.slider-btn:hover {
  border-color: var(--border-blue);
  color: var(--text-primary);
  background: rgba(0, 112, 243, 0.1);
}

.slider-btn svg { width: 18px; height: 18px; }

.slider-viewport {
  overflow: hidden;
  flex: 1;
}

.slider-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb-card {
  flex-shrink: 0;
  width: 160px;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: all var(--transition);
  opacity: 0.45;
}

.thumb-card:hover { opacity: 0.8; border-color: var(--border-blue); }

.thumb-card.active {
  opacity: 1;
  border-color: var(--blue-primary);
  box-shadow: 0 0 20px var(--blue-glow);
}

.thumb-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.thumb-card p {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 7px 0;
  background: var(--bg-dark);
}

.thumb-card.active p { color: var(--blue-light); }

@media (max-width: 768px) {
  .featured-img-wrap { max-width: 320px; }
  .featured-info h3 { font-size: 0.95rem; }
  .thumb-card { width: 110px; }
}

/* ===== UTILITIES ===== */
.pc-only { display: inline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .pc-only { display: none; }

  .services-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; }
  .about-vision { position: static; }

  .contact-box { padding: 32px 24px; }

  .footer-top { flex-direction: column; gap: 20px; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 480px) {
  .section { padding: 72px 0; }
  .hero-title { font-size: 2rem; }
}
