:root {
  --paper: #f6f7f3;
  --paper-deep: #eceee8;
  --ink: #171a1b;
  --muted: #626866;
  --line: #d3d7d0;
  --night: #171b1d;
  --night-soft: #22282a;
  --acid: #b9f34a;
  --accent: #3f6d5d;
  --shell: 1180px;
  --radius: 3px;
  --space-section: clamp(5rem, 10vw, 9rem);
  --font-sans: Inter, "Helvetica Neue", "Noto Sans JP", "Yu Gothic", YuGothic, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2, h3 { overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }
.shell { width: min(calc(100% - 2.5rem), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; padding: .7rem 1rem; transform: translateY(-160%); background: var(--ink); color: #fff; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.site-header.is-scrolled { border-color: rgba(23, 26, 27, .12); background: rgba(246, 247, 243, .94); backdrop-filter: blur(12px); }
.header-inner { display: flex; min-height: 4.75rem; align-items: center; justify-content: space-between; }
.brand-mark { display: inline-flex; align-items: center; gap: .8rem; font-size: .93rem; font-weight: 600; letter-spacing: .07em; }
.brand-mark strong { color: var(--accent); font-weight: 600; }
.brand-symbol { position: relative; display: inline-block; width: 1.85rem; height: 1.85rem; transform: rotate(45deg); }
.brand-symbol i { position: absolute; display: block; border: 1px solid currentColor; }
.brand-symbol i:nth-child(1) { inset: 0; }
.brand-symbol i:nth-child(2) { inset: .36rem; background: var(--acid); }
.brand-symbol i:nth-child(3) { inset: .72rem; background: var(--ink); }
.site-nav { display: none; }
.site-nav a { position: relative; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a::after { position: absolute; right: 0; bottom: -.35rem; left: 0; height: 1px; transform: scaleX(0); transform-origin: left; background: var(--ink); content: ""; transition: transform .2s; }
.site-nav a:hover::after { transform: scaleX(1); }
.menu-button { display: grid; width: 2.75rem; height: 2.75rem; padding: .7rem; border: 0; background: transparent; place-content: center; gap: .3rem; }
.menu-button span { display: block; width: 1.4rem; height: 1px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(.4rem) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-.4rem) rotate(-45deg); }
.site-nav.is-open { position: absolute; top: 4.75rem; right: 0; left: 0; display: grid; padding: 1.5rem 1.25rem 2rem; border-bottom: 1px solid var(--line); background: var(--paper); gap: 1rem; }
.site-nav.is-open a { font-size: 1rem; }

.hero { position: relative; min-height: 100svh; padding-top: 7.5rem; background: var(--paper); isolation: isolate; }
.hero::before { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(23,26,27,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(23,26,27,.045) 1px, transparent 1px); background-size: 38px 38px; content: ""; mask-image: linear-gradient(to bottom, #000 20%, transparent 92%); }
.hero-grid { display: grid; min-height: calc(100svh - 10rem); align-items: center; gap: 3rem; }
.eyebrow, .section-number { margin: 0 0 1.5rem; color: var(--muted); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; }
.eyebrow span { display: inline-flex; align-items: center; gap: .7rem; }
.eyebrow span::before { width: 1.75rem; height: 1px; background: var(--accent); content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 2rem; line-height: 1.08; }
.hero-en { display: block; font-size: clamp(2.15rem, 10vw, 6.9rem); font-weight: 500; letter-spacing: -.06em; }
.hero-ja { display: block; margin-top: 2rem; font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 500; letter-spacing: .03em; line-height: 1.65; }
.hero-description { max-width: 42rem; margin-bottom: 2.4rem; color: var(--muted); font-size: clamp(.95rem, 1.5vw, 1.05rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; min-height: 3.4rem; align-items: center; justify-content: center; gap: 2rem; padding: .75rem 1.25rem; border: 1px solid var(--ink); font-size: .86rem; font-weight: 600; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: var(--accent); }
.button-secondary:hover { background: var(--ink); color: #fff; }
.hero-visual { display: none; }
.hero-meta { display: flex; padding-block: 1.1rem; border-top: 1px solid var(--line); justify-content: space-between; color: var(--muted); font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; }
.hero-meta span:nth-child(3) { display: none; }
.desktop-only { display: none; }

.section { padding-block: var(--space-section); }
.section-grid { display: grid; gap: 3rem; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2.2rem, 5vw, 4.3rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.04; }
.section-body { max-width: 47rem; }
.section-body p, .about-copy p { color: var(--muted); }
.section-body .lead, .about-copy .lead { margin-bottom: 2.3rem; color: var(--ink); font-size: clamp(1.2rem, 2.5vw, 1.65rem); font-weight: 500; line-height: 1.65; }
.about-facts { display: grid; margin: 3rem 0 0; border-top: 1px solid var(--line); }
.about-facts div { display: grid; padding: 1rem 0; border-bottom: 1px solid var(--line); gap: .25rem; }
.about-facts dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; }
.about-facts dd { margin: 0; color: var(--muted); font-size: .82rem; }
.section-heading-row { display: flex; flex-direction: column; margin-bottom: 3rem; gap: 2rem; }
.section-heading-row > p { max-width: 27rem; margin: 0; color: inherit; }

.section-dark { background: var(--night); color: #f4f5f1; }
.section-dark .section-number, .section-dark .section-heading-row > p { color: #9ca4a1; }
.business-grid { display: grid; border-top: 1px solid #42494a; }
.business-card { position: relative; min-height: 30rem; padding: 2rem 0; border-bottom: 1px solid #42494a; }
.business-card h3 { margin: 5rem 0 1.5rem; font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.business-card > p:last-child { max-width: 22rem; margin-bottom: 0; color: #aeb5b2; font-size: .9rem; }
.card-index { position: absolute; top: 2rem; right: 0; color: #9ca4a1; font-family: var(--font-mono); font-size: .68rem; }
.card-icon { display: grid; width: 5rem; height: 5rem; border: 1px solid #4a5252; color: var(--acid); place-items: center; }
.icon-code { font-family: var(--font-mono); font-size: 1.2rem; }
.icon-circuit { position: relative; }
.icon-circuit::before, .icon-circuit::after { position: absolute; background: #59605f; content: ""; }
.icon-circuit::before { width: 70%; height: 1px; }
.icon-circuit::after { width: 1px; height: 70%; }
.icon-circuit span { z-index: 1; width: .52rem; height: .52rem; border: 1px solid var(--acid); border-radius: 50%; background: var(--night); }
.icon-circuit span:first-child { transform: translate(-1.4rem, 1.4rem); }
.icon-circuit span:last-child { transform: translate(1.4rem, -1.4rem); }
.icon-product span { width: 2.3rem; height: 2.3rem; transform: rotate(30deg); border: 1px solid var(--acid); box-shadow: .6rem .6rem 0 -1px var(--night), .6rem .6rem 0 0 #59605f; }

.brand-list { border-top: 1px solid var(--line); }
.brand-card { display: grid; padding: 2rem 0; border-bottom: 1px solid var(--line); gap: 2rem; }
.brand-card-title { display: flex; align-items: center; gap: 1.5rem; }
.brand-card-title h3 { margin: 0; font-size: 1.8rem; font-weight: 500; letter-spacing: -.04em; }
.brand-monogram, .brand-wordmark, .flowlight-mark { display: grid; width: 4.3rem; height: 4.3rem; flex: 0 0 auto; background: var(--ink); color: #fff; place-items: center; font-family: var(--font-mono); font-size: 1rem; }
.brand-wordmark { background: #204c79; font-family: var(--font-sans); font-size: 1.3rem; font-weight: 700; letter-spacing: -.08em; }
.brand-wordmark span { color: var(--acid); }
.flowlight-mark { display: flex; overflow: hidden; background: #272436; gap: 2px; }
.flowlight-mark i { width: 5px; height: 2.4rem; transform: skew(-18deg); background: #7c69dc; }
.flowlight-mark i:nth-child(2) { height: 3.2rem; background: #d05da9; }
.flowlight-mark i:nth-child(3) { height: 1.7rem; background: #5baed3; }
.brand-card-content p { max-width: 42rem; margin-bottom: 1.5rem; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 1.5rem; border-bottom: 1px solid var(--ink); font-size: .85rem; font-weight: 600; }
.status-label { display: inline-block; color: var(--accent); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.status-coming::before { display: inline-block; width: .45rem; height: .45rem; margin-right: .5rem; border-radius: 50%; background: #d05da9; content: ""; }

.technology { background: var(--paper-deep); }
.technology-list { display: flex; margin: 2.5rem 0 0; padding: 0; flex-wrap: wrap; list-style: none; }
.technology-list li { padding: .65rem 1rem; border: 1px solid #c1c6be; border-width: 1px 1px 1px 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em; }
.technology-list li:first-child { border-left-width: 1px; }

.contact { background: var(--acid); }
.contact-inner { text-align: center; }
.contact .section-number { color: #435622; }
.contact h2 { margin-bottom: 1.8rem; font-size: clamp(2.8rem, 8vw, 7rem); font-weight: 500; letter-spacing: -.065em; line-height: 1; }
.contact p { margin-bottom: 2.5rem; }
.button-contact { min-width: min(100%, 25rem); background: var(--ink); color: #fff; }
.button-contact[aria-disabled="true"] { cursor: default; opacity: .76; }
.contact small { display: block; margin-top: 1rem; color: #52642f; font-size: .72rem; }

.site-footer { padding: 3rem 0 1.5rem; background: var(--night); color: #f4f5f1; }
.footer-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2.5rem; }
.brand-mark-footer .brand-symbol i:nth-child(3) { background: #fff; }
.brand-mark-footer strong { color: #8fc6b3; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; }
.footer-main nav a { color: #aeb5b2; }
.footer-meta { display: flex; flex-direction: column; margin-top: 4rem; padding-top: 1.2rem; border-top: 1px solid #3b4142; color: #7f8885; font-family: var(--font-mono); font-size: .6rem; gap: .5rem; }
.footer-meta p { margin: 0; }

@media (min-width: 720px) {
  .shell { width: min(calc(100% - 5rem), var(--shell)); }
  .menu-button { display: none; }
  .desktop-only { display: initial; }
  .hero-meta span:nth-child(3) { display: inline; }
  .site-nav { display: flex; gap: 2.4rem; }
  .section-grid { grid-template-columns: minmax(16rem, .8fr) minmax(0, 1.2fr); gap: 6rem; }
  .section-heading-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .business-grid { grid-template-columns: repeat(3, 1fr); }
  .business-card { padding: 2rem 2rem 2rem 0; border-right: 1px solid #42494a; border-bottom: 0; }
  .business-card + .business-card { padding-left: 2rem; }
  .business-card:last-child { padding-right: 0; border-right: 0; }
  .brand-card { grid-template-columns: minmax(17rem, .75fr) minmax(0, 1.25fr); align-items: center; padding-block: 2.6rem; }
  .about-facts { grid-template-columns: repeat(3, 1fr); }
  .about-facts div { padding: 1.2rem 1rem; border-right: 1px solid var(--line); }
  .about-facts div:first-child { padding-left: 0; }
  .about-facts div:last-child { padding-right: 0; border-right: 0; }
  .footer-main, .footer-meta { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(24rem, .75fr); }
  .hero-visual { display: block; }
  .blueprint { position: relative; width: min(36vw, 29rem); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; }
  .blueprint::before, .blueprint::after { position: absolute; inset: 13%; border: 1px solid var(--line); border-radius: 50%; content: ""; }
  .blueprint::after { inset: 31%; border-style: dashed; }
  .axis { position: absolute; z-index: -1; top: 50%; left: -12%; background: var(--line); }
  .axis-x { width: 124%; height: 1px; }
  .axis-y { width: 1px; height: 124%; top: -12%; left: 50%; }
  .blueprint-core { position: absolute; display: grid; inset: 38%; transform: rotate(45deg); border: 1px solid var(--ink); background: var(--acid); place-items: center; }
  .blueprint-core span { transform: rotate(-45deg); font-family: var(--font-mono); font-size: .75rem; }
  .node { position: absolute; z-index: 2; width: .7rem; height: .7rem; border: 2px solid var(--paper); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
  .node-a { top: 12%; left: 48%; }.node-b { right: 10%; bottom: 25%; }.node-c { bottom: 16%; left: 18%; }
  .trace { position: absolute; height: 1px; transform-origin: left; background: var(--accent); }
  .trace-a { width: 31%; top: 26%; left: 25%; transform: rotate(39deg); }
  .trace-b { width: 29%; top: 52%; left: 51%; transform: rotate(27deg); }
  .trace-c { width: 27%; top: 61%; left: 23%; transform: rotate(-23deg); }
  .blueprint-label { position: absolute; font-family: var(--font-mono); font-size: .57rem; letter-spacing: .08em; }
  .blueprint-label b { margin-right: .4rem; color: var(--accent); font-weight: 400; }
  .label-a { top: 5%; right: 5%; }.label-b { right: -8%; bottom: 14%; }.label-c { bottom: 4%; left: -2%; }
}

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