/* Tokijiku — stereo-card palette: fog paper, sumi ink, and the two
   anaglyph primaries that a pair of 3D glasses is made of. */
:root {
  --paper: #e9ece8;
  --card: #f5f7f4;
  --ink: #12181d;
  --muted: #5d666d;
  --line: #c5cbc5;
  --red: #e23b45;
  --cyan: #129fb0;
  --blend: multiply;
  --display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.95 var(--body); letter-spacing: 0.03em;
  font-feature-settings: "palt" 1;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 0.25em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- header ---------- */
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; flex-wrap: wrap; }
.mark { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0.12em; text-decoration: none; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* ---------- hero: the anaglyph logotype ---------- */
.hero { padding: 2vh 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.logotype {
  position: relative; margin: 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(76px, 17vw, 236px); line-height: 1.05; letter-spacing: 0.02em;
  --dx: 0.035em;
}
.logotype .eye {
  position: absolute; inset: 0; pointer-events: none;
  mix-blend-mode: var(--blend);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.logotype .eye-l { color: var(--red); transform: translateX(calc(var(--dx) * -1)); }
.logotype .eye-r { color: var(--cyan); transform: translateX(var(--dx)); }
.logotype .solid { position: relative; display: block; color: transparent; }
.logotype.converged .eye { transform: translateX(calc(var(--dx) * -0.25)); }
.logotype.converged .eye-r { transform: translateX(calc(var(--dx) * 0.25)); }
.hero-sub { margin: 14px 0 0; display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.hero-sub .jp { font-size: 15px; letter-spacing: 0.2em; }

.tagline {
  writing-mode: vertical-rl; font-family: var(--display); font-weight: 600;
  font-size: clamp(18px, 1.9vw, 24px); letter-spacing: 0.24em; line-height: 1.7;
  margin: 0; padding-bottom: 6px; white-space: nowrap;
}
.lead { max-width: 36em; margin: 40px 0 0; color: var(--muted); font-size: 15px; }

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tagline { writing-mode: horizontal-tb; letter-spacing: 0.06em; font-size: 19px; white-space: nowrap; }
}

/* ---------- panorama ---------- */
.pano {
  position: relative; height: clamp(260px, 52vh, 520px);
  background: #9fb6c8 url("/img/pano.jpg") 0 50% / auto 100% repeat-x;
  cursor: grab; touch-action: pan-y; user-select: none;
}
.pano.dragging { cursor: grabbing; }
.pano-label {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  display: flex; gap: 8px 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.65);
}

/* ---------- sections ---------- */
.sec { padding: 112px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-bottom: 48px; }
.sec-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.3; letter-spacing: 0.08em; }
.sec-head p { margin: 0; max-width: 36em; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; gap: 12px; } .sec { padding: 80px 0; } }

/* product */
.product-title { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0 0 18px; }
.product-title strong { font-family: var(--mono); font-weight: 500; font-size: clamp(48px, 7vw, 84px); letter-spacing: -0.02em; line-height: 1; }
.product-title .d { color: var(--red); }
.product-title .v { color: var(--cyan); }
.status { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; border: 1px solid currentColor; padding: 3px 10px; border-radius: 999px; color: var(--muted); }
.product-desc { max-width: 40em; margin: 0; }

.steps { list-style: none; margin: 56px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 18px 22px 8px 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.steps .n { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.steps h3 { font-family: var(--display); font-weight: 800; font-size: 20px; margin: 6px 0; letter-spacing: 0.06em; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.85; }
.steps .l { color: var(--red); }
.steps .r { color: var(--cyan); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li, .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}

.extras { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .extras { grid-template-columns: 1fr; gap: 40px; } }
.card { background: var(--card); border: 1px solid var(--line); padding: 12px 12px 10px; margin: 0; }
.card figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.7; }

.opts h3 { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.06em; margin: 0 0 4px; }
.opts p { margin: 0 0 26px; color: var(--muted); font-size: 15px; }

dl.spec { display: grid; grid-template-columns: 252px 1fr; margin: 0; border-top: 1px solid var(--ink); }
dl.spec dt, dl.spec dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
dl.spec dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 19px; padding-right: 12px; }
@media (max-width: 560px) {
  dl.spec { grid-template-columns: 1fr; }
  dl.spec dt { border-bottom: 0; padding-bottom: 0; }
  dl.spec dd { padding-top: 2px; }
}

.button {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 15px/1 var(--body); letter-spacing: 0.08em;
  padding: 15px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer; border-radius: 0;
}
.button:hover:not(:disabled) { background: transparent; color: var(--ink); }
.button:disabled { opacity: 0.45; cursor: default; }
.button .arrow { font-family: var(--mono); }
.demo-row { margin-top: 36px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.demo-row .note { font-size: 13px; color: var(--muted); max-width: 26em; }

/* name */
.name-block { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.name-block .big { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 10vw, 128px); line-height: 1.2; margin: 0; }
.name-block rt { font-family: var(--body); font-size: 14px; letter-spacing: 0.1em; color: var(--muted); }
.name-block p { margin: 0; max-width: 30em; }
@media (max-width: 640px) { .name-block { grid-template-columns: 1fr; gap: 16px; } }

/* form */
.contact-form { max-width: 680px; }
.field { margin-top: 26px; }
.field label { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; margin-bottom: 8px; }
.field .opt { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.field input, .field select, .field textarea {
  display: block; width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-bottom-color: var(--ink); border-radius: 0; padding: 12px;
}
.field textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: 28px; min-height: 65px; }
.privacy-note { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.form-actions { margin-top: 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
#status:empty { display: none; }
#status { font-size: 14px; color: var(--muted); }

/* prose pages */
.prose { padding: 40px 0 120px; max-width: 760px; }
.prose h1 { font-family: var(--display); font-weight: 800; font-size: 36px; letter-spacing: 0.08em; margin: 0 0 32px; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 19px; margin: 40px 0 8px; letter-spacing: 0.06em; }
.prose ul { padding-left: 1.3em; }

/* footer */
.foot { border-top: 1px solid var(--ink); padding: 28px 0 56px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .logotype .eye { transition: none; }
}
.note { font-size: 13px; color: var(--muted); }
