/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #080808;
  color: #f0f0f0;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}
h1, h2, h3, h4 { text-wrap: balance; }
p { word-break: keep-all; overflow-wrap: break-word; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --bg: #080808;
  --surface: #111111;
  --accent: #c8ff00;
  --accent2: #7b61ff;
  --text: #f0f0f0;
  --muted: #666;
  --border: rgba(255,255,255,0.07);
  --radius: 20px;
}

/* ===== NOISE ===== */
.noise {
  position: fixed;
  inset: -200%;
  width: 400%;
  height: 400%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
  animation: noiseAnim 0.2s steps(2) infinite;
}
@keyframes noiseAnim {
  0% { transform: translate(0,0); }
  25% { transform: translate(-2%,-2%); }
  50% { transform: translate(2%,2%); }
  75% { transform: translate(-1%,1%); }
  100% { transform: translate(0,0); }
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(200,255,0,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
}
.cursor.expanded { transform: translate(-50%, -50%) scale(3); background: transparent; border: 1px solid var(--accent); }

/* ===== LOGO ===== */
.logo {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -2px;
  color: var(--text);
  line-height: 1;
}
.logo span { color: var(--accent); }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 48px;
  transition: padding 0.4s ease, background 0.4s ease;
}
.header.scrolled {
  padding: 16px 48px;
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}
.nav { display: flex; align-items: center; gap: 40px; }
.nav__link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__link--cta {
  color: var(--bg);
  background: var(--accent);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: #fff; color: var(--bg); transform: scale(1.04); }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.menu-btn span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 24px; text-align: center; }
.mobile-menu__link {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -2px;
  transition: color 0.3s;
}
.mobile-menu__link:hover { color: var(--accent); }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 120px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7b61ff 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #c8ff00 0%, transparent 70%);
  bottom: 0; left: -100px;
  opacity: 0.2;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #ff6b6b 0%, transparent 70%);
  top: 50%; left: 40%;
  opacity: 0.15;
  animation: orbFloat 12s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(72px, 12vw, 180px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -5px;
  color: var(--text);
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero__line { display: block; overflow: visible; padding-bottom: 0.05em; }
.hero__title em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.4);
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 2;
  max-width: 300px;
}
.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 18px 36px;
  border-radius: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.hero__btn svg { width: 18px; transition: transform 0.3s; }
.hero__btn:hover { background: #fff; transform: scale(1.04); }
.hero__btn:hover svg { transform: translateX(4px); }

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  z-index: 1;
}
.hero__scroll-line {
  width: 60px; height: 1px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== MARQUEE ===== */
.hero__marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 16px 0;
  z-index: 1;
}
.marquee__track {
  display: flex;
  gap: 32px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}
.marquee__track span {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 1px;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== STATS ===== */
.stats {
  padding: 60px 48px;
  border-bottom: 1px solid var(--border);
}
.stats__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat-item { flex: 1; min-width: 160px; }
.stat-item__num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
}
.stat-item__num small { font-size: 0.5em; opacity: 0.6; }
.stat-item__label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  display: block;
  letter-spacing: 1px;
}
.stat-item__divider {
  width: 1px; height: 60px;
  background: var(--border);
}

/* ===== SECTION COMMON ===== */
.section { padding: 120px 48px; }
.section__header { max-width: 1400px; margin: 0 auto 72px; }
.section__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: -3px;
  color: var(--text);
  line-height: 1;
}

/* ===== WORK ===== */
.work__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work__card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s;
  position: relative;
}
.work__card::before {
  content: attr(data-index);
  position: absolute;
  top: 20px; right: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
  z-index: 2;
}
.work__card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.15); }
.work__thumb {
  height: 280px;
  position: relative;
  overflow: hidden;
}
.work__thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.work__card:hover .work__thumb-overlay { opacity: 1; }
.work__thumb-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}
.work__thumb--01 { background: linear-gradient(135deg, #1a0533 0%, #6b2fa0 50%, #c850c0 100%); }
.work__thumb--02 { background: linear-gradient(135deg, #003366 0%, #0066cc 50%, #00ccff 100%); }
.work__thumb--03 { background: linear-gradient(135deg, #003300 0%, #006633 50%, #00cc66 100%); }
.work__info {
  padding: 20px 24px;
  background: var(--surface);
}
.work__info h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.work__meta { font-size: 12px; color: var(--muted); }
.work__meta strong { color: var(--accent); }

/* ===== SERVICE ===== */
.service { position: relative; }
.service__bg {
  position: absolute;
  inset: 0;
  background: var(--surface);
  z-index: 0;
}
.service .section__header { position: relative; z-index: 1; }
.service__list {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.service__item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  transition: all 0.3s;
}
.service__item:last-child { border-bottom: 1px solid var(--border); }
.service__item:hover { padding-left: 16px; }
.service__item-left { display: flex; flex-direction: column; gap: 12px; }
.service__num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
}
.service__item h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
}
.service__item-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}
.service__item-right p { font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 500px; }
.service__price {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

/* ===== ABOUT ===== */
.about__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 16px 0 24px;
}
.about__desc { font-size: 15px; color: var(--muted); line-height: 1.9; margin-bottom: 40px; }
.about__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 50px;
  transition: all 0.3s;
}
.about__btn svg { width: 16px; transition: transform 0.3s; }
.about__btn:hover { border-color: var(--accent); color: var(--accent); }
.about__btn:hover svg { transform: translateX(4px); }
.about__right { display: flex; flex-direction: column; gap: 16px; }
.about__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}
.about__card:hover { border-color: rgba(200,255,0,0.2); transform: translateX(8px); }
.about__card-icon { font-size: 28px; margin-bottom: 12px; }
.about__card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.about__card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ===== FAQ ===== */
.faq__list { max-width: 800px; margin: 0 auto; }
.faq__item {
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  cursor: none;
  user-select: none;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  gap: 20px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s;
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  background: var(--text);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq__icon::before { width: 10px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 10px; transition: transform 0.3s, opacity 0.3s; }
.faq__item[open] .faq__icon { background: var(--accent); border-color: var(--accent); }
.faq__item[open] .faq__icon::before { background: var(--bg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; background: var(--bg); }
.faq__item p {
  padding-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 640px;
}

/* ===== CONTACT ===== */
.contact { background: var(--surface); }
.contact__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.contact__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 16px 0 20px;
}
.contact__desc { font-size: 14px; color: var(--muted); line-height: 1.8; }
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { position: relative; }
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 20px 16px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus { border-color: rgba(200,255,0,0.4); }
.form__field textarea { height: 140px; resize: none; padding-top: 24px; }
.form__field label {
  position: absolute;
  top: 14px; left: 16px;
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.form__field label span { color: var(--accent); }
.form__field input:not(:placeholder-shown) ~ label,
.form__field input:focus ~ label,
.form__field textarea:not(:placeholder-shown) ~ label,
.form__field textarea:focus ~ label,
.form__field select:not([value=""]) ~ label { top: 8px; font-size: 10px; }
.contact__submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 18px 36px;
  border-radius: 50px;
  border: none;
  cursor: none;
  transition: all 0.3s;
  align-self: flex-start;
}
.contact__submit svg { width: 18px; transition: transform 0.3s; }
.contact__submit:hover { background: #fff; transform: scale(1.04); }
.contact__submit:hover svg { transform: translateX(4px); }

/* ===== FOOTER ===== */
.footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__copy { font-size: 12px; color: var(--muted); }
.footer__nav { display: flex; gap: 32px; }
.footer__nav a { font-size: 12px; color: var(--muted); transition: color 0.3s; }
.footer__nav a:hover { color: var(--text); }

/* ===== MAGNETIC ===== */
.magnetic { position: relative; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { padding: 120px 32px 140px; }
  .stats, .section { padding: 80px 32px; }
  .header { padding: 20px 32px; }
  .work__grid { grid-template-columns: 1fr 1fr; }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
  .nav { display: none; }
  .menu-btn { display: flex; }
  .hero { padding: 100px 24px 160px; }
  .hero__title { letter-spacing: -3px; }
  .stats, .section { padding: 64px 24px; }
  .header { padding: 20px 24px; }
  .hero__scroll { left: 24px; }
  .work__grid { grid-template-columns: 1fr; }
  .service__item { grid-template-columns: 1fr; gap: 16px; }
  .form__row { grid-template-columns: 1fr; }
  .footer { padding: 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stats__inner { gap: 32px; }
  .stat-item__divider { display: none; }
}
