/* Layout: Swiss grid. A narrow label column on the left, content on the right;
   one dark statement hero over painted artwork, everything else on a cool near-white field. */
:root {
  --paper: #f5f6f6;       /* default field, cool near-white */
  --ink: #1d1f22;         /* graphite primary text */
  --muted: #62676d;       /* secondary text */
  --rule: #d6d9dc;        /* hairlines */
  --redline: #c8102e;     /* the one accent */
  --night: #131416;       /* hero field */
  --night-ink: #f1f2f2;
  --night-muted: #979ca3;
  --night-rule: #2c2f33;
  --field: #ffffff;       /* form inputs */

  --sans: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step-hero: clamp(2.75rem, 7.4vw, 6.5rem);
  --step-h2: clamp(1.75rem, 3.6vw, 2.75rem);
  --step-lead: clamp(1.125rem, 1.6vw, 1.3rem);
  --step-body: 1.0625rem;
  --step-label: 0.75rem;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--redline); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--night-ink);
  background: transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-light {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  color: var(--ink);
  border-bottom-color: var(--rule);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px;
}
.wordmark {
  display: flex; align-items: baseline; gap: 10px;
  text-decoration: none; font-weight: 700; letter-spacing: 0.14em; font-size: 0.8125rem;
  white-space: nowrap;
}
.wordmark .kanji { font-weight: 400; letter-spacing: 0.05em; color: var(--redline); font-size: 0.875rem; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 0.875rem; opacity: .78; }
.nav ul a:hover { opacity: 1; }

.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.875rem/1 var(--sans); letter-spacing: 0.02em;
  padding: 13px 18px; border-radius: 2px; text-decoration: none; cursor: pointer;
  border: 1px solid currentColor; background: transparent; color: inherit;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn::after { content: "→"; transition: transform .2s ease; }
.btn:hover::after { transform: translateX(3px); }
.btn--red { background: var(--redline); border-color: var(--redline); color: #fff; }
.btn--red:hover { background: #a50d26; border-color: #a50d26; }
.site-header .btn { padding: 10px 14px; }

@media (max-width: 760px) {
  .nav ul { display: none; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 0.75rem; letter-spacing: 0.1em; }
  .site-header .btn { padding: 9px 12px; }
  .site-header .btn::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
  padding-block: calc(140px + env(safe-area-inset-top, 0px)) clamp(96px, 12vw, 160px);
}
.hero .eyebrow { color: var(--night-muted); }
.hero-art {
  position: absolute; top: 0; bottom: 0; left: 30%; z-index: -2;
  width: 70%; height: 100%; object-fit: cover; object-position: 55% 55%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%);
  mask-image: linear-gradient(to right, transparent 0%, #000 28%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(19,20,22,.9) 0%, rgba(19,20,22,.6) 40%, rgba(19,20,22,.15) 75%, rgba(19,20,22,.1) 100%),
    linear-gradient(0deg, var(--night) 0%, rgba(19,20,22,0) 38%);
}
@media (max-width: 760px) {
  .hero-art { left: 0; width: 100%; object-position: 58% 50%; -webkit-mask-image: none; mask-image: none; }
  .hero::before { background: linear-gradient(0deg, var(--night) 0%, rgba(19,20,22,.86) 45%, rgba(19,20,22,.6) 100%); }
}
.hero h1 {
  font-size: var(--step-hero);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 28px 0 0;
  max-width: 13ch;
  text-wrap: balance;
}
.hero .sub {
  font-size: var(--step-lead);
  color: var(--night-muted);
  margin: 28px 0 40px;
  max-width: 34ch;
}


/* ---------- Sections ---------- */
.eyebrow {
  font: 600 var(--step-label)/1.2 var(--sans);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  margin: 0;
}
.section { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.grid {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px 48px;
}
.grid > * { min-width: 0; }
.grid .eyebrow { padding-top: 0.6em; }
@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid .eyebrow { padding-top: 0; }
}

h2 {
  font-size: var(--step-h2); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700;
  margin: 0 0 32px; max-width: 24ch; text-wrap: balance;
}
.prose { max-width: 62ch; display: grid; gap: 1.1em; }
.prose p { margin: 0; }
.prose .lead { font-size: var(--step-lead); line-height: 1.5; }

.closer {
  margin-top: 56px; padding-top: 22px; max-width: 46ch;
  border-top: 2px solid var(--redline);
  font-size: var(--step-lead); line-height: 1.45; font-weight: 500;
  text-wrap: pretty;
}

/* ---------- Image band and sign ---------- */
.band { margin: 0; background: var(--night); }
.band img { width: 100%; height: clamp(220px, 34vw, 520px); object-fit: cover; object-position: 50% 50%; }
.section--after-band, .culture + .section { border-top: 0; }

/* ---------- Feature rows (sign, founder) ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(32px, 5vw, 72px); align-items: center; margin-top: 40px;
}
.feature > * { min-width: 0; }
.feature-media { margin: 0; }
.feature-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--rule); }
.feature-media figcaption { margin-top: 10px; font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.feature-media figcaption span { color: var(--redline); font-family: var(--sans); letter-spacing: 0.05em; margin-right: 6px; }
@media (max-width: 760px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 24px; }
}

/* ---------- Culture strip ---------- */
.culture { background: var(--night); padding-block: 12px; }
.culture-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: none; padding-inline: 12px; }
.culture-grid img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 760px) { .culture-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Founder ---------- */
.founder .name, .name { font-size: var(--step-h2); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; margin: 0; }
.role { color: var(--muted); margin: 6px 0 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: 0.9375rem; }
.links a { text-underline-offset: 3px; text-decoration-color: var(--rule); }
.links a:hover { text-decoration-color: var(--redline); }

/* ---------- Contact ---------- */
.contact-intro { max-width: 52ch; margin: 0 0 40px; font-size: var(--step-lead); line-height: 1.5; }
form { max-width: 760px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; min-width: 0; }
label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--field); border: 1px solid var(--rule); border-radius: 2px;
  padding: 12px 13px; transition: border-color .15s ease;
}
textarea { min-height: 140px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #b9bdc1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field.has-error input, .field.has-error select { border-color: var(--redline); }
.field-error { color: var(--redline); font-size: 0.8125rem; min-height: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.form-actions .alt { color: var(--muted); font-size: 0.9375rem; }
.form-actions .alt a { color: var(--ink); text-underline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.status { margin-top: 20px; max-width: 60ch; font-size: 0.9375rem; }
.status.is-error { color: var(--redline); }
.success { max-width: 52ch; border-top: 2px solid var(--redline); padding-top: 22px; }
.success p { margin: 0; font-size: var(--step-lead); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 36px 48px; font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: baseline; }
.site-footer p { margin: 0; }
.site-footer .legal { flex: 1 0 100%; font-size: 0.8125rem; }
.site-footer a { color: var(--ink); text-underline-offset: 3px; }
.site-footer .kanji { color: var(--redline); font-size: 1rem; letter-spacing: 0.05em; }

/* ---------- Privacy page ---------- */
.page-plain { padding-block: calc(120px + env(safe-area-inset-top, 0px)) 96px; }
.page-plain h1 { font-size: var(--step-h2); letter-spacing: -0.025em; margin: 20px 0 32px; }
.page-plain .updated { color: var(--muted); font-size: 0.875rem; }
