:root {
  --surface: #0a0a0b; --raised: #141416; --raised-2: #1b1b1e; --sunken: #050506;
  --line: #2a2a2d; --line-strong: #646469;
  --ink: #f4f3ef; --muted: #8e8e93; --on-ink: #0a0a0b;
  --beni: #e0102f; --beni-text: #ff3b55; --on-beni: #ffffff; --beni-tint: #1c0b0e;
  --gin: #b8b8bc; --ghost: #151517; --nav-bg: rgba(10,10,11,.74); --shadow: 0 24px 60px rgba(0,0,0,.5);
  --f-sans: "Geist", "SF Pro Display", -apple-system, system-ui, sans-serif;
  --f-mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --f-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --f-min: "Shippori Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --ease-out: cubic-bezier(.16,1,.3,1); --ease-ink: cubic-bezier(.7,0,.2,1);
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --surface: #f4f3ef; --raised: #ffffff; --raised-2: #f0efeb; --sunken: #eae9e4;
    --line: #d8d7d2; --line-strong: #85858a;
    --ink: #0a0a0b; --muted: #5e5e63; --on-ink: #f4f3ef;
    --beni-text: #c80a27; --beni-tint: #fbe9ec;
    --gin: #5e5e63; --ghost: #e9e8e3; --nav-bg: rgba(244,243,239,.8); --shadow: 0 24px 60px rgba(20,20,20,.12);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --surface: #f4f3ef; --raised: #ffffff; --raised-2: #f0efeb; --sunken: #eae9e4;
  --line: #d8d7d2; --line-strong: #85858a;
  --ink: #0a0a0b; --muted: #5e5e63; --on-ink: #f4f3ef;
  --beni-text: #c80a27; --beni-tint: #fbe9ec;
  --gin: #5e5e63; --ghost: #e9e8e3; --nav-bg: rgba(244,243,239,.8); --shadow: 0 24px 60px rgba(20,20,20,.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--f-sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.label { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.jp { font-family: var(--f-jp); letter-spacing: .3em; }
.min { font-family: var(--f-min); font-weight: 600; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.period { color: var(--beni-text); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acc { fill: var(--beni); }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand svg { height: 22px; width: auto; }
.brand .mk { height: 26px; }
.brand .by { display: inline-flex; align-items: center; gap: 8px; padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--line); color: var(--muted); }
.brand .by svg { height: 12px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .16s var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .16s var(--ease-out); }
.icon-btn:hover { border-color: var(--line-strong); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px; border-radius: 999px; font: 500 15px/1 var(--f-sans); letter-spacing: -.01em; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: opacity .16s var(--ease-out), border-color .16s var(--ease-out), background-color .16s var(--ease-out), transform .2s var(--ease-out); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-beni { background: var(--beni); color: var(--on-beni); }
.btn-primary:hover, .btn-beni:hover { opacity: .88; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn .arr { transition: transform .16s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* sections */
.section { padding-block: clamp(88px, 12vw, 152px); border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 820px; }
.sec-head h2 { font-size: clamp(38px, 6vw, 72px); line-height: 1; letter-spacing: -.045em; }
.sec-head p:not(.label) { font-size: 19px; color: var(--muted); max-width: 54ch; }

/* grids of facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 12px; padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); }
.fact:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.fact .k { font-family: var(--f-min); font-weight: 600; font-size: 44px; line-height: 1; }
.fact h3 { font-size: 20px; letter-spacing: -.015em; }
.fact p { font-size: 15px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 2px solid var(--line); }
.steps li:last-child { border-top-color: var(--beni); }
.steps .n { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.steps h3 { font-size: 21px; letter-spacing: -.02em; }
.steps p { color: var(--muted); font-size: 15px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.pill .jp { letter-spacing: .1em; color: var(--muted); font-size: 12px; }

/* faq */
.faq { border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 4px; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-weight: 400; font-size: 22px; color: var(--muted); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 26px; color: var(--muted); max-width: 70ch; }

/* cta band */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.cta-band h2 { font-size: clamp(52px, 9vw, 120px); line-height: .92; letter-spacing: -.055em; }
.cta-band .side { display: flex; flex-direction: column; gap: 20px; }
.cta-band .side p { color: var(--muted); font-size: 18px; max-width: 40ch; }

/* forms */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field > .lbl { font-size: 14px; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.field .hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); font: 15px/1.4 var(--f-sans); transition: border-color .16s var(--ease-out), box-shadow .16s var(--ease-out); }
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
.field.err .input, .field.err .select, .field.err .textarea { border-color: var(--beni-text); }
.field .msg { display: none; font-size: 13px; color: var(--beni-text); }
.field.err .msg { display: block; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; transition: background-color .16s, color .16s, box-shadow .16s; }
.choice input:checked + span { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.card-opt { position: relative; }
.card-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.card-opt > span { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--raised); transition: box-shadow .16s; }
.card-opt b { font-weight: 500; font-size: 15px; }
.card-opt small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.card-opt input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); }
.card-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
footer .brand svg { height: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-meta { display: flex; gap: 20px; font-size: 13px; color: var(--muted); }

/* reveal */
.pre { opacity: 0; transform: translateY(24px); }
[data-reveal] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .cta-band, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .steps, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .brand .by { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .pre { opacity: 1; transform: none; }
}


.hero { position: relative; overflow: hidden; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-block: clamp(40px, 7vw, 88px) clamp(72px, 9vw, 120px); }
.face { width: clamp(150px, 17vw, 230px); height: auto; overflow: visible; }
.face .head { fill: var(--ink); }
.face .screen { fill: var(--surface); }
.face .eye { fill: var(--ink); }
.face .wink { fill: none; stroke: var(--ink); stroke-width: 3.6; stroke-linecap: round; opacity: 0; }
.face .smile { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; opacity: 0; }
.face .ant { fill: var(--ink); }
.face .led { fill: var(--line-strong); }
.face .led-glow { fill: var(--beni); opacity: 0; }
.face .tilt { transform-box: view-box; transform-origin: 50px 56px; }
.face .gaze { transition: transform .25s var(--ease-out); }
.face .eye { transform-box: fill-box; transform-origin: center; }
.hero .label { margin-top: 8px; }
.hero h1 { font-size: clamp(46px, 7.6vw, 108px); line-height: .92; letter-spacing: -.055em; max-width: 17ch; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; }
.lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); max-width: 44ch; }
.lead strong { color: var(--ink); font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.plat { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.vjp { position: absolute; left: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--f-min); font-weight: 600; font-size: 15px; letter-spacing: .6em; color: var(--muted); margin: 0; }

/* the sequence: wake → look around → wink → slogan */
@keyframes wake { 0% { transform: scaleY(.06); } 100% { transform: scaleY(1); } }
@keyframes ledOn { to { fill: var(--beni); } }
@keyframes glowOn { 0% { opacity: 0; } 50% { opacity: .5; } 100% { opacity: .28; } }
@keyframes look { 0%, 100% { transform: translateX(0); } 20%, 38% { transform: translateX(-4px); } 55%, 72% { transform: translateX(4px); } }
@keyframes winkEye { 0%, 100% { opacity: 1; transform: scaleY(1); } 18% { opacity: 1; transform: scaleY(.08); } 19%, 80% { opacity: 0; } }
@keyframes winkArc { 0%, 18% { opacity: 0; } 20%, 78% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes smile { from { opacity: 0; } to { opacity: 1; } }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 30%, 70% { transform: rotate(5deg); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.08); } }
@keyframes pulse { 0%, 100% { opacity: .28; } 50% { opacity: .5; } }
.anim .face .eye { animation: wake .35s var(--ease-out) .45s both, blink 6s ease 4.2s infinite; }
.anim .face .led { animation: ledOn .2s linear .6s both; }
.anim .face .led-glow { animation: glowOn .6s ease .6s both, pulse 2.4s ease 1.3s infinite; }
.anim .face .gaze-look { animation: look 1s cubic-bezier(.65,0,.35,1) .9s both; }
.anim .face .eye.r { animation: wake .35s var(--ease-out) .45s both, winkEye .9s linear 1.62s, blink 6s ease 4.6s infinite; }
.anim .face .wink { animation: winkArc .9s linear 1.62s both; }
.anim .face .smile { animation: smile .3s var(--ease-out) 1.7s both; }
.anim .face .tilt { animation: tilt 1s cubic-bezier(.65,0,.35,1) 1.5s both; }
.anim .hero h1 .ln > span { animation: rise .8s var(--ease-out) both; }
.anim .hero h1 .ln:nth-child(1) > span { animation-delay: 2.05s; }
.anim .hero h1 .ln:nth-child(2) > span { animation-delay: 2.15s; }
.anim .hero .label, .anim .hero .lead, .anim .hero .ctas, .anim .hero .plat { animation: fadeUp .8s var(--ease-out) both; }
.anim .hero .label { animation-delay: 1.9s; } .anim .hero .lead { animation-delay: 2.35s; } .anim .hero .ctas { animation-delay: 2.45s; } .anim .hero .plat { animation-delay: 2.55s; }
.face .smile.on { opacity: 1; }

/* what it does */
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.job { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.job .k { font-family: var(--f-min); font-weight: 600; font-size: 40px; line-height: 1; }
.job h3 { font-size: 21px; letter-spacing: -.02em; }
.job p { color: var(--muted); font-size: 15px; }

/* chat */
.where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.where .sec-head { margin-bottom: 28px; }
.chat { border-radius: 28px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; max-width: 460px; justify-self: center; width: 100%; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-top .mk { height: 30px; width: auto; }
.chat-top b { font-weight: 500; font-size: 15px; display: block; }
.chat-top small { color: var(--muted); font-size: 12px; }
.chat-top .ex { margin-left: auto; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.msgs { display: flex; flex-direction: column; gap: 10px; padding: 22px 18px 26px; }
.msg { max-width: 78%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.msg.u { align-self: flex-end; background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 6px; }
.msg.b { align-self: flex-start; background: var(--raised-2); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 6px; }
.msg .t { display: block; margin-top: 4px; font: 11px var(--f-mono); opacity: .6; }
.msg .ok { color: var(--beni-text); font-weight: 500; }
.chat .msg { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.chat.on .msg { opacity: 1; transform: none; }
.chat.on .msg:nth-child(2) { transition-delay: .5s; } .chat.on .msg:nth-child(3) { transition-delay: 1.1s; } .chat.on .msg:nth-child(4) { transition-delay: 1.6s; }

.band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 32px 36px; border-radius: 28px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.band .mk { height: 56px; width: auto; }
.band h3 { font-size: 24px; letter-spacing: -.02em; }
.band p { color: var(--muted); }

@media (max-width: 900px) {
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .where, .band { grid-template-columns: minmax(0, 1fr); }
  .vjp { display: none; }
}
@media (prefers-reduced-motion: reduce) { .face .smile { opacity: 1; } .chat .msg { opacity: 1; transform: none; } }
