/* ─── Reset & Variables ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:   #4FC3F7;
  --pink:   #FF1778;
  --purple: #8B3FE8;
  --blue-glow:   rgba(79,195,247,0.35);
  --pink-glow:   rgba(255,23,120,0.35);
  --bg:     #05050f;
  --bg-card:#0d0d1f;
  --muted:  #9090b0;
  --border: #1e1e3a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: #fff;
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

/* ─── Gradient text ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--pink) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 5s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes gradient-shift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes pulse-glow {
  0%,100% { opacity: 0.6; }
  50%     { opacity: 1; }
}

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}

/* ─── Navbar ─── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, border-color .3s, box-shadow .3s;
  padding: 12px 0;
}

#navbar.scrolled {
  background: rgba(5,5,15,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(79,195,247,0.15);
  box-shadow: 0 4px 30px rgba(79,195,247,0.05);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 52px; width: auto; object-fit: contain; }

/* ── Navbar text logo ── */
.nav-logo-text {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--pink));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(79,195,247,0.4);
}
.nav-logo-mark::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  background: #0d0d1f;
}
.nav-logo-mark-inner {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo-words {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
}
.nav-logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

/* ── Hero title ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(79,195,247,0.25);
  background: rgba(79,195,247,0.06);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-glow 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.hero-title-main {
  font-size: clamp(52px, 11vw, 108px);
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #fff;
  line-height: 1;
}
.hero-title-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--pink), transparent);
  border-radius: 999px;
  margin: 4px 0;
}
.hero-title-sub {
  font-size: clamp(28px, 6vw, 60px);
  font-weight: 300;
  letter-spacing: 0.35em;
  line-height: 1;
}

/* ── Footer text logo ── */
.footer-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}
.footer-logo-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
}
.footer-logo-tagline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--pink));
  box-shadow: 0 0 20px rgba(79,195,247,0.3);
  transition: opacity .2s, transform .2s;
}
.nav-cta:hover { opacity: .9; transform: scale(1.04); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 24px 24px;
  background: rgba(5,5,15,0.97);
  backdrop-filter: blur(16px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu .nav-cta {
  margin-top: 16px;
  display: block;
  text-align: center;
}

/* ─── Hero ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(79,195,247,.07) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(255,23,120,.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(139,63,232,.05) 0%, transparent 70%),
    var(--bg);
}

#hero canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.hero-blob-blue {
  top: 25%; left: 20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79,195,247,.1) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
}
.hero-blob-pink {
  bottom: 25%; right: 20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,23,120,.1) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite 2s;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}
.hero-logo img {
  width: 380px;
  max-width: 90vw;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(79,195,247,.3)) drop-shadow(0 0 80px rgba(255,23,120,.2));
}

.hero-sub {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 300;
  color: rgba(255,255,255,.85);
  margin-bottom: 12px;
}
.hero-sub strong { font-weight: 700; color: #fff; }

.hero-desc {
  font-size: clamp(13px, 1.5vw, 16px);
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.btn-primary {
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--pink));
  box-shadow: 0 0 40px rgba(79,195,247,.35), 0 0 80px rgba(255,23,120,.2);
  transition: transform .2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: scale(1.04); }

.btn-secondary {
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  color: var(--muted);
  border: 1px solid rgba(79,195,247,.3);
  backdrop-filter: blur(4px);
  transition: color .2s;
  background: transparent;
  cursor: pointer;
}
.btn-secondary:hover { color: #fff; }

/* Quick stats */
.hero-stats-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 768px;
  margin: 64px auto 0;
  padding: 0 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(79,195,247,.2);
  background: rgba(255,255,255,.02);
  box-shadow: inset 0 0 30px rgba(79,195,247,.03), 0 0 40px rgba(79,195,247,.08);
}

.hero-stat {
  padding: 24px;
  text-align: center;
  border-right: 1px solid rgba(79,195,247,.15);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-val { font-size: clamp(20px,3vw,30px); font-weight: 900; }
.hero-stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-hint svg { width: 16px; height: 16px; }

/* ─── Section common ─── */
section { padding: 96px 24px; }

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

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

.container { max-width: 1152px; margin: 0 auto; }

/* ─── Services ─── */
#services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 32px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  cursor: default;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.service-card p  { font-size: 14px; color: var(--muted); line-height: 1.7; }

.card-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover .card-line { opacity: 1; }

/* ─── Works ─── */
#works {
  background: linear-gradient(135deg, rgba(255,23,120,.03), rgba(139,63,232,.03)), var(--bg);
  border-top: 1px solid var(--border);
}

.works-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  scrollbar-width: none;
}
.works-grid::-webkit-scrollbar { display: none; }

.works-card {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 0 40px rgba(255,23,120,.08);
  transition: transform .35s, box-shadow .35s;
  flex-shrink: 0;
  width: 300px;
  text-decoration: none;
  color: inherit;
}
.works-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 0 60px rgba(255,23,120,.2), 0 0 30px rgba(139,63,232,.12);
  border-color: rgba(255,23,120,.35);
}

/* TikTok縦型 9:16 */
.works-video-wrap {
  position: relative;
  width: 300px;
  height: 533px; /* 300 × 16/9 */
  overflow: hidden;
  background: #0a0a1a;
}

.works-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.works-card:hover .works-thumb { transform: scale(1.04); }

/* オーバーレイ */
.works-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(
    to bottom,
    rgba(5,5,15,.1) 0%,
    rgba(5,5,15,.35) 50%,
    rgba(5,5,15,.7) 100%
  );
  transition: background .3s;
}
.works-card:hover .works-overlay {
  background: linear-gradient(
    to bottom,
    rgba(5,5,15,.2) 0%,
    rgba(5,5,15,.45) 50%,
    rgba(5,5,15,.75) 100%
  );
}

/* 再生ボタン */
.works-play-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: transform .3s, background .3s;
}
.works-play-btn svg { width: 26px; height: 26px; margin-left: 4px; }
.works-card:hover .works-play-btn {
  transform: scale(1.12);
  background: rgba(255,23,120,.5);
  border-color: var(--pink);
}

/* TikTokラベル */
.works-tiktok-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  letter-spacing: .05em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
  transition: background .3s, color .3s;
}
.works-card:hover .works-tiktok-label {
  background: rgba(255,23,120,.25);
  color: #fff;
  border-color: rgba(255,23,120,.4);
}

@media (max-width: 768px) {
  .works-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .works-grid::-webkit-scrollbar { display: none; }
  .works-card { scroll-snap-align: start; }
}

/* ─── Stats ─── */
#stats {
  background: linear-gradient(135deg, rgba(79,195,247,.04), rgba(139,63,232,.04), rgba(255,23,120,.04)), var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(79,195,247,.2);
  background: rgba(255,255,255,.015);
  box-shadow: 0 0 60px rgba(79,195,247,.06), inset 0 0 40px rgba(79,195,247,.03);
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-cell {
  padding: 32px;
  text-align: center;
  border-right: 1px solid rgba(79,195,247,.15);
  border-bottom: 1px solid rgba(79,195,247,.15);
}

@media (min-width: 768px) {
  .stat-cell:nth-child(2n) { border-right: 1px solid rgba(79,195,247,.15); }
  .stat-cell:last-child    { border-right: none; }
  .stat-cell               { border-bottom: none; }
}
.stat-cell:nth-child(2n)  { border-right: none; }

.stat-val   { font-size: clamp(28px,4vw,44px); font-weight: 900; }
.stat-label { font-weight: 600; color: #fff; margin: 8px 0 4px; font-size: 15px; }
.stat-desc  { font-size: 12px; color: var(--muted); }

/* ─── Livers ─── */
#livers { background: var(--bg); }

.livers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.liver-card {
  display: block;
  position: relative;
  padding: 24px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.liver-card:hover { transform: translateY(-4px); }

.liver-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }

.liver-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.liver-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.liver-name  { font-size: 18px; font-weight: 700; color: #fff; }

.liver-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  margin-top: 4px;
}

.liver-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }

.liver-followers { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.liver-followers svg { width: 14px; height: 14px; }

.liver-rating { display: flex; align-items: center; gap: 4px; color: #FFD700; font-size: 12px; font-weight: 700; }
.liver-rating span { color: #fff; }

.liver-glow {
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  filter: blur(20px);
  transition: opacity .4s;
}
.liver-card:hover .liver-glow { opacity: 1; }

.livers-more { text-align: center; margin-top: 48px; color: var(--muted); font-size: 14px; }

/* ─── Contact ─── */
#contact {
  background: linear-gradient(180deg, rgba(79,195,247,.03), rgba(139,63,232,.03), rgba(255,23,120,.03)), var(--bg);
  border-top: 1px solid var(--border);
}

.contact-wrap { max-width: 640px; margin: 0 auto; }

.contact-form {
  padding: 32px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(79,195,247,.05);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group:last-of-type { margin-bottom: 0; }

.form-label { font-size: 14px; font-weight: 500; color: var(--muted); }
.form-label .req { color: var(--pink); margin-left: 4px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #080818;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 16px rgba(79,195,247,.15);
}
.form-textarea { resize: none; min-height: 120px; }

.form-hint { text-align: center; font-size: 12px; color: #4a4a6a; margin-top: 12px; }

.btn-submit {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--pink));
  box-shadow: 0 0 40px rgba(79,195,247,.25), 0 0 80px rgba(255,23,120,.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .2s, opacity .2s;
  margin-top: 24px;
}
.btn-submit:hover { transform: scale(1.02); opacity: .92; }
.btn-submit svg { width: 18px; height: 18px; }

/* Success */
.contact-success {
  display: none;
  text-align: center;
  padding: 64px 32px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(79,195,247,.3);
  box-shadow: 0 0 60px rgba(79,195,247,.08);
}
.contact-success.show { display: block; }
.contact-success svg { width: 48px; height: 48px; color: var(--blue); margin: 0 auto 16px; display: block; }
.contact-success h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.contact-success p  { font-size: 14px; color: var(--muted); }

/* ─── Footer ─── */
footer {
  padding: 40px 24px;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-logo { height: 50px; width: auto; opacity: .8; margin-bottom: 12px; }
.footer-affiliation {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: inline-block;
}
.footer-affiliation strong { color: rgba(255,255,255,.7); font-weight: 600; }
.footer-affiliation-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s, opacity .2s;
}
.footer-affiliation-link:hover { color: var(--pink); }
.footer-copy  { font-size: 12px; color: #4a4a6a; }
.footer-sub   { font-size: 12px; color: #30304a; margin-top: 4px; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}
