:root {
  --ink: #eafcff;
  --mute: rgba(234, 252, 255, .62);
  --line: rgba(160, 240, 255, .22);
  --aqua: #5ff6ff;
  --mint: #5affd2;
  --violet: #b17bff;
  --pink: #ff5fb4;
  --moon: #fff4c9;
  --glass: rgba(8, 24, 44, .6);
  --en: "Unbounded", system-ui, sans-serif;
  --ja: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --grad: linear-gradient(100deg, var(--aqua), var(--mint) 35%, var(--violet) 70%, var(--pink));
  --grad-loop: linear-gradient(100deg, var(--aqua), var(--mint), var(--violet), var(--pink), var(--violet), var(--mint), var(--aqua));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: #010814; color: var(--ink);
  font-family: var(--ja); font-size: 16px; line-height: 1.9; letter-spacing: .04em;
  width: 100%; overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
@media (pointer: fine) { body, a, button { cursor: none; } input, textarea, select { cursor: text; } }
a { color: inherit; text-decoration: none; }
::selection { background: var(--pink); color: #000; }

#cosmos { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* cursor */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 0; height: 0; will-change: transform; transform: translate3d(-100px,-100px,0);
}
.cursor::before, .cursor::after {
  content: ""; position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; border-radius: 50%;
  transform: scale(.47); transition: transform .3s cubic-bezier(.3,1.4,.5,1), opacity .3s;
}
.cursor::before {
  border: 2px solid rgba(180, 250, 255, .8);
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.45), rgba(120,230,255,.08) 45%, rgba(120,230,255,.22));
}
.cursor::after { background: radial-gradient(circle, rgba(255,95,180,.35), rgba(177,123,255,.1)); opacity: 0; }
.cursor.is-hover::before, .cursor.is-hover::after { transform: scale(1); }
.cursor.is-hover::before { opacity: .5; }
.cursor.is-hover::after { opacity: 1; }
.cursor-dot { position: fixed; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); z-index: 101; pointer-events: none; will-change: transform; transform: translate3d(-100px,-100px,0); }
@media (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 48px);
}
.header::before { content: ""; position: absolute; inset: 0 0 -20px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(1,8,20,.7), rgba(1,8,20,0)); }
.logo { font-family: var(--en); font-weight: 800; font-size: 18px; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.logo img { width: 24px; height: 24px; display: block; filter: drop-shadow(0 0 8px rgba(255,250,200,.55)); }
.nav { display: flex; gap: 6px; font-family: var(--en); font-size: 12px; letter-spacing: .12em; }
.nav a { padding: 8px 14px; border-radius: 99px; transition: background .3s, color .3s; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav .nav-cta { background: var(--ink); color: #021; font-weight: 700; }
.nav .nav-cta:hover { background: var(--pink); color: #000; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 99px; padding: 8px 16px; font-family: var(--en); font-size: 11px; letter-spacing: .15em; }
@media (max-width: 760px) {
  .menu-btn { display: block; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 22px;
    background: rgba(1, 8, 20, .96); opacity: 0; pointer-events: none; transition: opacity .4s; }
  .nav.open { opacity: 1; pointer-events: auto; }
}

/* depth meter */
.depth {
  position: fixed; right: clamp(12px, 2.5vw, 32px); bottom: 28px; z-index: 30; text-align: right;
  font-family: var(--en); font-size: 10px; letter-spacing: .2em; color: var(--mute);
}
.depth-val { display: block; font-size: 15px; letter-spacing: .04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.depth::before { content: ""; position: absolute; right: 3px; bottom: 48px; width: 1px; height: 120px; background: linear-gradient(transparent, var(--line)); }
.depth-dot { position: absolute; right: 0; bottom: 165px; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 10px var(--aqua); will-change: transform; }

/* layout */
main { position: relative; z-index: 1; overflow-x: hidden; overflow-x: clip; }
img, svg, canvas, input, textarea, select { max-width: 100%; }
section { position: relative; padding: clamp(100px, 16vw, 200px) clamp(16px, 6vw, 96px); }
.eyebrow { font-family: var(--en); font-size: 11px; letter-spacing: .35em; color: var(--aqua); display: flex; align-items: center; gap: 12px; margin: 0 0 28px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.h2 { font-family: var(--en); font-weight: 800; font-size: clamp(40px, 9vw, 128px); line-height: .95; letter-spacing: -.03em; margin: 0 0 40px; }
.h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--mute); max-width: 36em; }

.reveal { opacity: 0; transform: translateY(50px); filter: blur(8px); transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1), filter 1.1s; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }

/* hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 140px; }
.hero-title {
  font-family: var(--en); font-weight: 900; margin: 0; line-height: .86; letter-spacing: -.05em;
  font-size: clamp(38px, 14vw, 230px);
}
.hero-title .row { display: block; overflow: hidden; white-space: nowrap; padding-bottom: .04em; }
.hero-title .row > span { display: inline-block; animation: rise 1.4s cubic-bezier(.2,.8,.1,1) both; }
.hero-title .row:nth-child(2) > span { animation-delay: .15s; }
.hero-title .row:nth-child(3) > span { animation-delay: .3s; }
.hero-title .outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-title .grad { background: var(--grad-loop); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 1.4s .3s cubic-bezier(.2,.8,.1,1) both; }
.hero-title .wobble-wrap { display: inline-block; animation: rise 1.4s .3s cubic-bezier(.2,.8,.1,1) both; }
.hero-title .wobble { color: var(--pink); display: inline-block; animation: wob 6s ease-in-out infinite; }
@keyframes rise { from { transform: translateY(105%) rotate(4deg); } }
@keyframes flow { to { background-position: 200% 0; } }
@keyframes wob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-.06em) rotate(-6deg); } }
.hero-sub { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: end; justify-content: space-between; }
.hero-sub p { margin: 0; font-size: clamp(17px, 2vw, 24px); font-weight: 700; line-height: 1.7; }
.hero-sub small { display: block; font-size: 13px; font-weight: 400; color: var(--mute); margin-top: 8px; }
.scroll-hint { font-family: var(--en); font-size: 10px; letter-spacing: .3em; color: var(--mute); display: flex; align-items: center; gap: 14px; }
.scroll-hint b { width: 1px; height: 60px; background: linear-gradient(var(--aqua), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; transform: rotate(-3deg) scale(1.05); background: rgba(95,246,255,.04); }
.marquee-track { display: flex; width: max-content; animation: slide 30s linear infinite; font-family: var(--en); font-weight: 800; font-size: clamp(28px, 5vw, 64px); letter-spacing: -.02em; white-space: nowrap; }
.marquee-track span { padding-right: .6em; }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--aqua); }
@keyframes slide { to { transform: translateX(-50%); } }

/* concept */
.concept-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.concept-big { font-size: clamp(30px, 5vw, 64px); font-weight: 900; line-height: 1.35; letter-spacing: .02em; margin: 0; }
.concept-big .hl { background: linear-gradient(transparent 62%, rgba(255,95,180,.55) 62%); }
.concept-body p { color: var(--mute); margin: 0 0 1.4em; }
@media (max-width: 860px) { .concept-grid { grid-template-columns: 1fr; } }

/* services */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 1100px; }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr; } }
.svc:nth-child(even) { margin-top: 70px; }
@media (max-width: 760px) { .svc:nth-child(even) { margin-top: 0; } }
.svc {
  position: relative; padding: 36px 30px 34px; border-radius: 46% 54% 40% 60% / 55% 40% 60% 45%;
  background: var(--glass); border: 1px solid var(--line);
  transition: border-radius .9s cubic-bezier(.3,1.5,.5,1), transform .6s, box-shadow .6s, background .6s;
  animation: float 9s ease-in-out infinite; min-height: 300px; display: flex; flex-direction: column; justify-content: center;
}
.svc:nth-child(2) { animation-delay: -2s; border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%; }
.svc:nth-child(3) { animation-delay: -4s; border-radius: 40% 60% 48% 52% / 60% 45% 55% 40%; }
.svc:nth-child(4) { animation-delay: -6s; }
.svc:hover { border-radius: 28px; transform: scale(1.03) rotate(-1deg); background: rgba(177,123,255,.16); box-shadow: 0 0 60px rgba(95,246,255,.18); }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.svc-no { font-family: var(--en); font-size: 11px; letter-spacing: .3em; color: var(--aqua); }
.svc h3 { font-family: var(--en); font-size: clamp(20px, 2vw, 26px); line-height: 1.15; margin: 10px 0 4px; letter-spacing: -.01em; }
.svc .ja { font-size: 13px; color: var(--mint); font-weight: 700; margin: 0 0 14px; }
.svc p { font-size: 14px; color: var(--mute); margin: 0; line-height: 1.8; }
.svc .emoji { font-size: 34px; line-height: 1; margin-bottom: 8px; filter: drop-shadow(0 0 12px rgba(95,246,255,.6)); }

/* about */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); }
.company { margin: 0; border-top: 1px solid var(--line); }
.company div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.company dt { font-family: var(--en); font-size: 11px; letter-spacing: .2em; color: var(--aqua); padding-top: 5px; }
.company dd { margin: 0; }
@media (max-width: 1080px) { .about-wrap { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .company div { grid-template-columns: 1fr; gap: 2px; } }

/* hero moon */
.hero { position: relative; }
.hero-moon { position: absolute; z-index: -1; right: clamp(-80px, -4vw, 0px); top: clamp(70px, 12vh, 140px); width: clamp(200px, 36vw, 520px); margin: 0; }
@media (max-width: 760px) { .hero-moon { top: 90px; right: -60px; opacity: .85; } }

/* recruit */
.recruit-card {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: center;
  padding: clamp(32px, 6vw, 80px); border-radius: 40px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(90,255,210,.08), rgba(177,123,255,.08) 60%, rgba(255,95,180,.1)), rgba(2, 12, 26, .6);
}
.recruit-card .h2 { margin: 0; }
.recruit-big { font-size: clamp(26px, 3.6vw, 44px); font-weight: 900; line-height: 1.4; margin: 0 0 20px; }
.recruit-card .lead { margin: 0 0 32px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--aqua); box-shadow: 0 0 30px rgba(95,246,255,.15); }
.btn-ghost:hover { background: var(--aqua); color: #000; }
@media (max-width: 860px) { .recruit-card { grid-template-columns: 1fr; } }

/* contact cta */
.cta { text-align: center; padding-bottom: 120px; }
.lure { width: 26px; height: 26px; margin: 0 auto 70px; border-radius: 50%; background: #fffbe0; position: relative;
  box-shadow: 0 0 20px 6px rgba(255,251,200,.8), 0 0 90px 30px rgba(90,255,210,.35); animation: lure 4s ease-in-out infinite; will-change: transform, opacity; }
.lure::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 60px; height: 70px; border: 2px solid rgba(90,255,210,.35); border-color: rgba(90,255,210,.35) transparent transparent rgba(90,255,210,.35); border-radius: 60px 0 0 0; transform: translateX(-2px); }
@keyframes lure { 0%,100% { transform: translate(0,0); opacity: 1; } 40% { opacity: .55; } 50% { transform: translate(14px,-10px); opacity: 1; } }
.moon {
  width: clamp(180px, 30vw, 360px); aspect-ratio: 1; border-radius: 50%; margin: 0 auto 56px; position: relative;
  background: radial-gradient(circle at 35% 35%, #fffbe8, var(--moon) 40%, #d9c98f 75%, #a8975e);
  box-shadow: 0 0 80px rgba(255,244,201,.5), 0 0 220px rgba(255,244,201,.25), inset -30px -20px 60px rgba(0,0,0,.35);
  animation: moonfloat 10s ease-in-out infinite; will-change: transform;
}
.moon::before, .moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(140,120,60,.28); box-shadow: inset 3px 3px 8px rgba(0,0,0,.25); }
.moon::before { width: 22%; height: 22%; left: 22%; top: 30%; }
.moon::after { width: 14%; height: 14%; left: 58%; top: 58%; }
@keyframes moonfloat { 50% { transform: translateY(-16px) rotate(6deg); } }
.cta-title { font-family: var(--en); font-weight: 900; font-size: clamp(36px, 7vw, 100px); line-height: 1; letter-spacing: -.04em; margin: 0 0 24px; }
.cta p { color: var(--mute); margin: 0 auto 48px; max-width: 32em; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 16px; padding: 22px 44px; border-radius: 99px;
  font-weight: 700; font-size: 17px; color: #000; background: var(--grad-loop); background-size: 200% 100%;
  box-shadow: 0 10px 50px rgba(177,123,255,.4); transition: transform .4s cubic-bezier(.3,1.6,.5,1), background-position .8s;
  border: 0; font-family: var(--ja); letter-spacing: .06em;
}
.btn:hover { transform: scale(1.07) rotate(-2deg); background-position: 100% 0; }
.btn .arrow { font-family: var(--en); transition: transform .4s; }
.btn:hover .arrow { transform: translateX(6px); }

/* skip link */
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 18px; border-radius: 99px; background: var(--ink); color: #000; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }

/* footer */
.footer { padding: 40px clamp(16px, 6vw, 96px) 60px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; font-family: var(--en); font-size: 11px; letter-spacing: .15em; color: var(--mute); border-top: 1px solid var(--line); }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a:hover { color: var(--ink); }
.footer-info { display: grid; gap: 10px; }
.footer-info .logo { color: var(--ink); font-size: 16px; letter-spacing: .02em; }
.footer-info address { font-style: normal; font-family: var(--ja); letter-spacing: .04em; line-height: 1.8; }
.footer-info small { font-size: 10px; }

/* contact page */
.contact-hero { padding-top: 160px; padding-bottom: 40px; }
.form-wrap > * { min-width: 0; }
.form-wrap { padding-top: 20px; display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.form-aside .point { padding: 22px 0; border-bottom: 1px solid var(--line); }
.form-aside .point b { display: block; font-size: 17px; margin-bottom: 4px; }
.form-aside .point span { color: var(--mute); font-size: 14px; }
.form-aside .point i { font-style: normal; font-family: var(--en); color: var(--aqua); font-size: 11px; letter-spacing: .25em; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
form.contact { position: relative; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: rgba(4, 14, 30, .78); border: 1px solid var(--line); }
.field { margin-bottom: 26px; }
.field label, .field .label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.req { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--pink); color: #000; letter-spacing: .1em; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: rgba(0, 10, 25, .55); border: 1px solid var(--line);
  border-radius: 14px; padding: 15px 18px; outline: none; transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(95,246,255,.15), 0 0 30px rgba(95,246,255,.15); }
.field input::placeholder, .field textarea::placeholder { color: rgba(234,252,255,.3); }
.chips { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips label { margin: 0; font-weight: 400; padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); transition: .3s; }
.chips input:checked + label { background: var(--ink); color: #000; font-weight: 700; }
.chips input:focus-visible + label { outline: 2px solid var(--aqua); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--mute); margin-bottom: 30px; }
.agree input { width: 18px; height: 18px; accent-color: var(--pink); }
.agree a { text-decoration: underline; }
.form-error { margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; background: rgba(255,95,180,.15); border: 1px solid rgba(255,95,180,.5); font-size: 14px; }
.form-done { display: none; text-align: center; padding: 60px 20px; }
.form-done h3 { font-family: var(--en); font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; }
.form-done p { color: var(--mute); }
form.contact.sent > *:not(.form-done) { display: none; }
form.contact.sent .form-done { display: block; animation: rise 1s cubic-bezier(.2,.8,.1,1); }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }

.paused, .paused *, .lure.paused { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
