/* KITAERU site. Mobile first; no JS; CSP-safe (no inline styles). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-variable.woff2") format("woff2");
}

:root {
  --ink: #0b0c0d;
  --ink-2: #141618;
  --cream: #f4f1ea;
  --paper: #f6f2ea;
  --gold: #e3b552;
  --gold-2: #f6d98a;
  --gold-text: #7a5a1a;     /* gold for text on paper (6:1) */
  --muted: #aaa498;         /* on ink (7.6:1) */
  --p-ink: #1b1915;         /* text on paper */
  --p-muted: #5a5349;       /* on paper (7:1) */
  --p-line: #e2d9c8;
  --line: rgba(244, 241, 234, .12);
  --font: "Archivo", "Hiragino Sans", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  /* spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: 16px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:lang(ja) { line-break: strict; }
h1, h2, h3, p { margin: 0; word-break: auto-phrase; overflow-wrap: anywhere; }
p { text-wrap: pretty; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.svc-sec :focus-visible { outline-color: var(--p-ink); }   /* gold is 1.7:1 on paper; ink is 15:1 */
@media (max-width: 959px) { html { scroll-padding-bottom: 104px; } }   /* focused links never hide under the sticky consult bar */
.nb { display: inline-block; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 24px rgba(227, 181, 82, .22);
}
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-gold:active { transform: translateY(0); }
.btn-lg { min-height: 56px; padding: 0 var(--s6); font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 var(--s4); font-size: 14px; box-shadow: none; }
.btn-block { display: flex; width: 100%; }
.btn-sub {
  font-size: 12px; font-weight: 700; line-height: 1;
  padding: 5px 8px; border-radius: 999px;
  background: rgba(11, 12, 13, .1);
}

/* ---------- header ---------- */
.top { background: var(--ink); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand img { height: 22px; width: auto; }
.top-nav { display: flex; align-items: center; gap: var(--s3); }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 48px; margin-right: -12px;
  color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-decoration: none;
}
.lang:hover { color: var(--cream); }
.top .btn-sm { display: none; }

/* ---------- hero ---------- */
.hero { padding: var(--s2) 0 var(--s7); background: var(--ink); color: var(--cream); overflow: clip; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .06em;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
h1 {
  margin-top: var(--s3);
  font-size: clamp(1.45rem, 7.2vw, 2.4rem);
  line-height: 1.34; font-weight: 700; letter-spacing: .01em;
}
h1 .line { display: block; white-space: nowrap; }
h1 .gold {
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: var(--s3); color: var(--muted); font-size: 15px; line-height: 1.75; }
.trust { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); }
.trust img { flex: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--gold); }
.trust p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.hero-cta { display: none; }

.hero-video { margin: var(--s5) 0 0; }
.screen {
  position: relative; display: block;
  border-radius: var(--radius); overflow: hidden;
  background: #0e0f11;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 60px -24px rgba(227, 181, 82, .22);
}
.screen video, .screen .still { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.screen .still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .screen video { display: none; }
  .screen .still { display: block; }
}
.badge {
  position: absolute; left: 6px; top: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 8px; border-radius: 999px;
  background: #0e0f11; border: 1px solid rgba(244, 241, 234, .2);
  color: var(--cream); font-size: 12px; font-weight: 700; line-height: 1;
}
.badge svg { width: 12px; height: 12px; color: var(--gold); }
.badge .len { font-weight: 400; color: var(--muted); margin-left: -4px; }
@media (max-width: 959px) { .badge .len { display: none; } }
.badge { text-decoration: none; }
.badge:hover { border-color: var(--gold); }
.hero-video figcaption {
  margin-top: var(--s3);
  color: var(--muted); font-size: 14px; line-height: 1.6; text-align: center;
}
.hero-video figcaption i { font-style: normal; color: var(--gold); margin: 0 .3em; }

/* ---------- services ---------- */
.zone { background: var(--paper); }
.svc-sec { background: var(--paper); color: var(--p-ink); padding: var(--s7) 0 var(--s4); }
.kicker { color: var(--gold-text); font-size: 13px; font-weight: 700; letter-spacing: .06em; margin-bottom: var(--s2); }
.sec-title { font-size: clamp(1.35rem, 5.8vw, 2rem); line-height: 1.4; font-weight: 700; letter-spacing: .01em; }
.sec-sub { margin-top: var(--s1); color: var(--p-muted); font-size: 14px; }

.svc { margin-top: var(--s5); border-top: 1px solid var(--p-line); }
.svc li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "name" "desc" "price" "fine" "demo";
  column-gap: var(--s4);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--p-line);
}
.svc h3 { grid-area: name; align-self: center; font-size: 18px; line-height: 1.4; font-weight: 700; }
.svc h3 small { font-size: 13px; font-weight: 400; color: var(--p-muted); }
.svc .desc { grid-area: desc; margin-top: var(--s1); color: var(--p-muted); font-size: 14px; line-height: 1.65; }
.svc .price { grid-area: price; margin-top: var(--s2); font-size: 14px; color: var(--p-muted); }
.svc .price b { color: var(--p-ink); font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.svc .fine { grid-area: fine; margin-top: 2px; color: var(--p-muted); font-size: 12px; line-height: 1.6; }
.demo {
  grid-area: demo; justify-self: start;
  display: inline-flex; align-items: center; gap: 2px;
  min-height: 44px; margin: 14px 0 0; padding: 0 14px 0 18px;
  border: 1.5px solid var(--p-ink); border-radius: 999px; background: var(--p-ink);
  color: var(--cream); font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.demo svg { width: 16px; height: 16px; }
.demo:hover { background: #2a2722; }

.perks {
  display: grid; gap: var(--s2);
  margin-top: var(--s5);
  font-size: 14px; line-height: 1.5; color: var(--p-ink);
}
.perks li { display: inline-flex; align-items: center; gap: var(--s2); }
.perks li::before {
  content: ""; flex: none;
  width: 5px; height: 9px; margin: -3px 2px 0 3px;
  border: solid var(--gold-text); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- sticky CTA (mobile): sticks while hero + services are on screen, docks before the form ---------- */
.dock {
  position: sticky; bottom: 0; z-index: 30;
  padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom, 0px));
}
.dock::before {
  content: ""; position: absolute; inset: -12px 0 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%); mask-image: linear-gradient(to bottom, transparent, #000 40%);
}
.dock .btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 1px rgba(11, 12, 13, .08), 0 10px 28px rgba(11, 12, 13, .32); }

/* ---------- contact ---------- */
.contact { padding: var(--s7) 0 var(--s8); background: var(--ink); scroll-margin-top: 0; }
.contact h2 { font-size: clamp(1.35rem, 5.8vw, 2rem); line-height: 1.45; font-weight: 700; letter-spacing: .01em; }
.sam { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s5); }
.sam img {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--gold);
}
.sam p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.sam b { display: block; color: var(--cream); font-size: 15px; font-weight: 700; }

.form { display: grid; gap: var(--s4); margin-top: var(--s6); }
.field label { display: block; margin-bottom: var(--s2); font-size: 14px; font-weight: 700; line-height: 1.4; }
.field input, .field select {
  display: block; width: 100%; min-height: 54px; margin: 0;
  padding: 0 var(--s4);
  border: 1.5px solid transparent; border-radius: 12px;
  background: var(--cream); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.3;
  appearance: none; -webkit-appearance: none;
}
.field input:focus, .field select:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.select { position: relative; }
.select select { padding-right: var(--s7); cursor: pointer; }
.select select:invalid { color: #6b6357; }
.select::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border: solid var(--ink); border-width: 0 2px 2px 0;
  transform: rotate(45deg); pointer-events: none;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: var(--s2); min-height: 58px; font-size: 18px; }
.form-note { color: var(--muted); font-size: 13px; text-align: center; }
.form-note a { color: var(--cream); text-underline-offset: 3px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: var(--s5) 0 var(--s6); color: var(--muted); font-size: 12px; line-height: 1.7; }
.foot p + p { margin-top: var(--s1); }
.lang-switch { display: flex; gap: var(--s1); margin: 0 0 var(--s2) -14px; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 48px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-decoration: none; color: var(--muted);
}
.lang-switch a[aria-current] { color: var(--gold); }

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .top { position: sticky; top: 0; z-index: 40; background: rgba(11, 12, 13, .86); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
  .top-in { min-height: 68px; }
  .brand img { height: 24px; }
  .lang { margin-right: 0; }
  .top .btn-sm { display: inline-flex; }
  #services, #contact { scroll-margin-top: 68px; }
  #video { scroll-margin-top: 92px; }

  .hero { padding: var(--s8) 0 var(--s8); }
  .hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: var(--s7); align-items: center; }
  .eyebrow { font-size: 14px; }
  h1 { margin-top: var(--s4); }
  .lede { margin-top: var(--s4); font-size: 17px; }
  .trust { margin-top: var(--s5); }
  .trust img { width: 52px; height: 52px; }
  .trust p { font-size: 15px; }
  .hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s6); }
  .text-link { color: var(--cream); font-size: 15px; font-weight: 700; text-underline-offset: 5px; text-decoration-color: rgba(244, 241, 234, .35); }
  .text-link:hover { text-decoration-color: var(--gold); }
  .hero-video { margin: 0; }
  .screen { border-radius: 18px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 90px -30px rgba(227, 181, 82, .22); }
  .badge { left: 10px; top: 8px; font-size: 13px; padding: 8px 14px 8px 12px; }

  .svc-sec { padding: var(--s9) 0 var(--s5); }
  .sec-sub { margin-top: var(--s2); font-size: 15px; }
  .svc { margin-top: var(--s6); }
  .svc li {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "name price" "desc fine" "demo .";
    column-gap: var(--s6);
    padding: 28px 0;
  }
  .svc h3 { font-size: 20px; align-self: end; }
  .svc .price { margin-top: 0; align-self: end; }
  .svc .fine { margin-top: var(--s1); align-self: start; font-size: 13px; }
  .svc .desc { font-size: 15px; align-self: start; }
  .demo { margin: 16px 0 0; }
  .perks { display: flex; flex-wrap: wrap; margin-top: var(--s6); gap: var(--s3) var(--s6); font-size: 14px; }

  .dock::before { display: none; }
  .dock { position: static; display: flex; justify-content: center; padding: var(--s7) 0 var(--s9); }
  .dock .btn { width: auto; min-width: 340px; }

  .contact { padding: var(--s9) 0; }
  .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: var(--s9); align-items: center; justify-content: space-between; }
  .contact h2 { font-size: 2.1rem; }
  .sam { margin-top: var(--s6); }
  .sam img { width: 72px; height: 72px; }
  .sam p { font-size: 14px; max-width: 30em; }
  .sam b { font-size: 16px; }
  .form { margin-top: 0; }

  .foot-in { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s5); }
  .lang-switch { margin: 0 0 0 -14px; }
  .foot p + p { margin-top: 0; flex-basis: 100%; }
}

/* ---------- simple pages (thanks, form error, 404) ---------- */
.simple { min-height: 70vh; display: grid; place-items: center; padding: var(--s8) 0; text-align: center; }
.simple h1 { font-size: clamp(1.4rem, 6vw, 2rem); white-space: normal; }
.simple p { margin-top: var(--s4); color: var(--muted); }
.simple .mark { width: 64px; height: 64px; margin: 0 auto var(--s5); }
.simple .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s6); }
.btn-line { border: 1.5px solid rgba(244, 241, 234, .35); color: var(--cream); background: transparent; }
.btn-line:hover { border-color: var(--gold); }
:lang(en) h1 .line { white-space: normal; }

/* Modern Web Guidance: form fields are light on a dark page */
.field input, .field select { color-scheme: light; }
.field input:user-invalid, .field select:user-invalid { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .25); }
