:root {
  --ink: #141414;
  --paper: #f4f3ed;
  --acid: #dfff4f;
  --blue: #335cff;
  --line: rgba(20, 20, 20, 0.24);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; background: var(--acid); padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  color: #fff;
  transition: background .25s ease, color .25s ease, min-height .25s ease;
}
.site-header.scrolled { background: rgba(244, 243, 237, .94); color: var(--ink); min-height: 66px; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 800; letter-spacing: .04em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-weight: 900; line-height: 1; }
.global-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.5vw, 2.5rem); font-size: .875rem; font-weight: 700; letter-spacing: .05em; }
.global-nav a { position: relative; }
.global-nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; bottom: -.35rem; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.global-nav a:hover::after, .global-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-contact { background: var(--acid); color: var(--ink); padding: .75rem 1rem; }
.menu-button { display: none; border: 0; background: transparent; align-items: center; gap: .75rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.menu-button i, .menu-button i::after { display: block; width: 24px; height: 2px; background: currentColor; content: ""; transition: transform .2s ease; }
.menu-button i::after { transform: translateY(6px); }

.hero { min-height: 100svh; background: var(--ink); color: #fff; position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); align-items: center; padding: 9rem clamp(1.25rem, 6vw, 6rem) 5rem; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.hero-copy { position: relative; z-index: 2; max-width: 880px; }
.eyebrow, .section-index { margin: 0 0 1.5rem; font-size: .75rem; font-weight: 800; letter-spacing: .17em; }
.eyebrow { color: var(--acid); }
.hero h1 { margin: 0; font-size: clamp(3.1rem, 7.3vw, 8rem); line-height: .99; letter-spacing: -.065em; font-weight: 900; }
.hero h1 span { display: block; white-space: nowrap; }
.outline-text { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.hero-lead { max-width: 620px; margin: 2rem 0 0; font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 500; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.2rem; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: .8rem 1.4rem; font-weight: 800; }
.button.primary { background: var(--acid); color: var(--ink); }
.text-link { font-size: .92rem; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: .2rem; }
.text-link span { display: inline-block; transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, -3px); }
.hero-visual { position: relative; z-index: 1; aspect-ratio: 1; min-width: 520px; transform: translateX(-4%); }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; inset: 8%; animation: spin 22s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 9px; height: 9px; background: var(--acid); border-radius: 50%; top: 14%; left: 14%; }
.orbit::after { top: auto; left: auto; bottom: 11%; right: 11%; background: var(--blue); }
.orbit-b { inset: 23%; animation-duration: 15s; animation-direction: reverse; border-style: dashed; }
.burst { position: absolute; inset: 31%; background: var(--blue); border-radius: 50%; display: grid; place-content: center; text-align: center; font-size: clamp(1.2rem, 2vw, 2rem); font-weight: 900; line-height: .9; letter-spacing: .02em; transform: rotate(-8deg); box-shadow: 0 0 0 18px rgba(51,92,255,.16), 0 0 0 36px rgba(51,92,255,.08); }
.burst span { display: block; }
.code-chip { position: absolute; padding: .5rem .8rem; border: 1px solid rgba(255,255,255,.5); background: rgba(20,20,20,.6); font-size: .75rem; font-weight: 800; letter-spacing: .12em; backdrop-filter: blur(6px); }
.chip-a { top: 11%; right: 9%; transform: rotate(7deg); }
.chip-b { left: 5%; bottom: 25%; transform: rotate(-10deg); }
.chip-c { right: 5%; bottom: 11%; transform: rotate(4deg); }
.scroll-note { position: absolute; bottom: 2.5rem; left: clamp(1.25rem, 6vw, 6rem); display: flex; gap: .8rem; align-items: center; font-size: .65rem; letter-spacing: .18em; font-weight: 800; color: rgba(255,255,255,.65); }
.scroll-note i { width: 64px; height: 1px; background: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

.section-pad { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 6vw, 6rem); }
.intro { max-width: var(--max); margin: 0 auto; }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 8vw; align-items: start; }
.intro h2, .section-head h2, .company h2, .contact h2 { margin: 0; font-size: clamp(2.7rem, 5.5vw, 6rem); line-height: 1.08; letter-spacing: -.055em; }
.intro-copy { border-top: 1px solid var(--ink); padding-top: 2rem; font-size: clamp(1.05rem, 1.35vw, 1.25rem); }
.intro-copy p { margin: 0 0 1.4rem; }

.services { background: var(--acid); }
.section-head { max-width: var(--max); margin: 0 auto 4rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.section-head .section-index { margin-bottom: 1rem; }
.section-note { max-width: 340px; margin: 0 0 .8rem; font-size: .95rem; }
.service-list { max-width: var(--max); margin: 0 auto; border-top: 2px solid var(--ink); }
.service-item { border-bottom: 1px solid rgba(20,20,20,.65); }
.service-item > button { width: 100%; display: grid; grid-template-columns: 90px 1fr 50px; gap: 1rem; align-items: center; padding: 2rem 0; text-align: left; border: 0; background: transparent; cursor: pointer; }
.service-number { font-size: .78rem; font-weight: 800; }
.service-name { font-size: clamp(1.35rem, 2.4vw, 2.7rem); line-height: 1.12; font-weight: 850; letter-spacing: -.03em; }
.service-toggle { width: 42px; height: 42px; position: relative; border: 1px solid var(--ink); border-radius: 50%; }
.service-toggle::before, .service-toggle::after { content: ""; position: absolute; width: 16px; height: 2px; background: var(--ink); top: 19px; left: 12px; transition: transform .25s ease; }
.service-toggle::after { transform: rotate(90deg); }
.service-item.is-open .service-toggle::after { transform: rotate(0); }
.service-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.service-detail > div { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.service-detail p { max-width: 680px; margin: 0; padding: 0 0 2.5rem 106px; }
.service-detail ul { margin: 0; padding: 0 0 2.5rem; list-style: none; font-size: .88rem; font-weight: 700; }
.service-detail li { border-top: 1px solid rgba(20,20,20,.35); padding: .45rem 0; }
.service-item.is-open .service-detail { grid-template-rows: 1fr; }

.company { max-width: var(--max); margin: 0 auto; }
.company-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; }
.company-message { margin: 4rem 0 0; font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 800; line-height: 1.55; }
.company-data { margin: 0; border-top: 2px solid var(--ink); }
.company-data > div { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.company-data dt { font-size: .78rem; font-weight: 800; }
.company-data dd { margin: 0; }

.lab { background: var(--paper); border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 6vw, 5.5rem); padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.lab-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.lab-head h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.lab-lead { max-width: 420px; margin: 0 0 .35rem; color: rgba(20,20,20,.7); }
.lab-list { border-top: 2px solid var(--ink); }
.lab-item { display: grid; grid-template-columns: 76px 1fr 150px 140px; gap: 1.25rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.lab-item:hover, .lab-item:focus-visible { padding-left: .75rem; padding-right: .75rem; background: rgba(51,92,255,.06); }
.lab-item-number { width: 3.25rem; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--acid); box-shadow: 4px 4px 0 var(--ink); font-size: 1rem; font-weight: 900; line-height: 1; letter-spacing: 0; transition: transform .2s ease; }
.lab-item:hover .lab-item-number, .lab-item:focus-visible .lab-item-number { transform: rotate(-5deg) scale(1.06); }
.lab-item-type { font-size: .78rem; font-weight: 800; letter-spacing: .06em; }
.lab-item-title { font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 800; }
.lab-item-type { color: rgba(20,20,20,.58); }
.lab-item-action { display: flex; justify-content: flex-end; gap: .65rem; font-weight: 800; line-height: 1.25; white-space: nowrap; }
.lab-item-action i { font-style: normal; transition: transform .2s ease; }
.lab-item:hover .lab-item-action i { transform: translate(3px, -3px); }

.contact { position: relative; overflow: hidden; background: var(--blue); color: #fff; text-align: left; padding-top: clamp(4rem, 7vw, 6rem); padding-bottom: clamp(4rem, 7vw, 6rem); }
.contact .section-index { color: var(--acid); }
.contact h2 { position: relative; z-index: 1; margin: 0; font-size: clamp(2rem, 4vw, 4rem); }
.contact > p:not(.section-index) { position: relative; z-index: 1; margin: 1.25rem 0 2.5rem; max-width: 600px; }
.contact-link { position: relative; z-index: 1; width: min(100%, 820px); margin: 0; padding: 1rem 0; border-top: 2px solid #fff; border-bottom: 2px solid #fff; display: flex; justify-content: space-between; align-items: center; font-size: clamp(1.1rem, 2.4vw, 2rem); font-weight: 800; }
.contact-link i { font-style: normal; transition: transform .2s ease; }
.contact-link:hover i { transform: translate(5px, -5px); }
.contact-orbit { position: absolute; width: 56vw; height: 56vw; min-width: 600px; min-height: 600px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 9vw rgba(255,255,255,.035), 0 0 0 18vw rgba(255,255,255,.025); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1.25rem, 4vw, 4rem); background: var(--ink); color: #fff; font-size: .72rem; letter-spacing: .08em; }
.footer-brand { font-size: .85rem; }
.footer-links { display: flex; align-items: center; gap: 1.25rem; }

.policy-page { background: var(--paper); }
.policy-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.25rem, 4vw, 4rem); background: var(--ink); color: #fff; }
.policy-header > a:last-child { font-size: .78rem; font-weight: 800; letter-spacing: .06em; }
.policy-main { width: min(860px, calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.policy-main h1 { margin: 0; font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 1.08; letter-spacing: -.055em; }
.policy-updated { margin: 1rem 0 4rem; color: rgba(20,20,20,.6); font-size: .82rem; }
.policy-main section { padding: 2rem 0; border-top: 1px solid var(--line); }
.policy-main h2 { margin: 0 0 1rem; font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
.policy-main p { margin: 0 0 1rem; }
.policy-main ul { margin: 0 0 1rem; padding-left: 1.4rem; }
.policy-main a { border-bottom: 1px solid currentColor; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .menu-button { display: flex; }
  .global-nav { position: fixed; inset: 0; padding: 7rem 1.5rem 2rem; background: var(--ink); color: #fff; flex-direction: column; align-items: stretch; justify-content: center; font-size: 1.6rem; transform: translateX(100%); transition: transform .3s ease; }
  .global-nav.open { transform: translateX(0); }
  .global-nav .nav-contact { color: var(--ink); text-align: center; margin-top: 1rem; }
  .menu-button { position: relative; z-index: 2; }
  .menu-button[aria-expanded="true"] i { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] i::after { transform: rotate(90deg); }
  .site-header.scrolled .global-nav { color: #fff; }
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: 8rem; }
  .hero h1 span { white-space: normal; }
  .hero-visual { position: absolute; width: 65vw; min-width: 430px; right: -22%; bottom: -9%; opacity: .58; }
  .hero-copy { z-index: 2; }
  .intro-grid, .company-grid { grid-template-columns: 1fr; gap: 3rem; }
  .lab-item { grid-template-columns: 64px 1fr 126px; }
  .lab-item-type { display: none; }
  .service-detail > div { grid-template-columns: 1fr; gap: 0; }
  .service-detail p { padding-left: 0; }
}

@media (max-width: 600px) {
  .site-header { min-height: 68px; }
  .brand { font-size: .86rem; }
  .brand-mark { width: 30px; height: 30px; }
  .hero { min-height: 760px; padding-bottom: 5rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.1rem; }
  .hero-visual { min-width: 390px; right: -35%; bottom: -5%; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 2.5rem; }
  .service-item > button { grid-template-columns: 42px 1fr 38px; padding: 1.5rem 0; }
  .service-toggle { width: 36px; height: 36px; }
  .service-toggle::before, .service-toggle::after { top: 16px; left: 9px; }
  .service-detail p { padding-bottom: 1.2rem; }
  .company-data > div { grid-template-columns: 82px 1fr; }
  .lab-head { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .lab-item { grid-template-columns: 56px 1fr 116px; gap: .75rem; padding-top: .8rem; padding-bottom: .8rem; }
  .lab-item-number { width: 2.8rem; box-shadow: 3px 3px 0 var(--ink); font-size: .9rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .footer-brand { margin-bottom: 1rem; }
  .footer-links { width: 100%; flex-wrap: wrap; justify-content: space-between; }
}

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