@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #14161a;
  --muted: #5b5f66;
  --line: #e2ded5;
  --accent: #e8492a;
  --accent-ink: #b8361b;
  --tint: #fbe9e3;
  --radius: 18px;
  --max: 1120px;
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --surface: #171a1f;
    --ink: #f1efe9;
    --muted: #a3a7ae;
    --line: #2a2e35;
    --accent: #ff6a4a;
    --accent-ink: #ff8a70;
    --tint: #2a1a16;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.05; margin: 0; font-weight: 700; }
h1 { font-size: clamp(44px, 7.2vw, 92px); }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
  margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.lede { font-size: clamp(19px, 2vw, 22px); color: var(--muted); max-width: 40ch; margin: 28px 0 0; }
.accent { color: var(--accent); }

/* Hero */
.hero { padding: clamp(64px, 11vw, 140px) 0 clamp(56px, 8vw, 100px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero-mark { justify-self: end; width: min(100%, 400px); aspect-ratio: 1; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip {
  font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); background: var(--surface);
}

section { scroll-margin-top: 80px; }
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--muted); margin: 0; max-width: 46ch; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.pillar .num { font: 600 14px/1 var(--display); color: var(--accent-ink); }
.pillar h3 { margin: 40px 0 12px; }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
.product-art { aspect-ratio: 16 / 9; background: var(--tint); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.product-art svg { width: 78%; height: auto; }
.product-body { padding: 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.status { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); }
.product p { margin: 0; color: var(--muted); }
.product ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.product li { display: flex; gap: 10px; }
.product li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--accent); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.principle { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 8px; }
.principle .num { font: 600 15px/1.6 var(--display); color: var(--accent-ink); }
.principle h3 { font-size: 21px; margin-bottom: 6px; }
.principle p { margin: 0; color: var(--muted); font-size: 16px; }

/* Company */
.company { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.company p { color: var(--muted); max-width: 52ch; }
.company p:first-of-type { margin-top: 28px; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px; margin: 0; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-size: 15.5px; }

/* Contact strip */
.contact { padding: clamp(72px, 10vw, 120px) 0; border-top: 1px solid var(--line); text-align: center; }
.contact h2 { max-width: 18ch; margin: 0 auto; }
.contact p { color: var(--muted); margin: 20px auto 32px; max-width: 46ch; }
.mail {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 600 clamp(20px, 3vw, 28px)/1 var(--display); letter-spacing: -0.02em;
  padding: 18px 28px; border-radius: 999px; background: var(--ink); color: var(--bg);
}
.mail:hover { color: var(--bg); background: var(--accent-ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer nav { display: flex; gap: 20px; }

/* Legal / plain pages */
.page { padding: clamp(56px, 8vw, 96px) 0; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 12px; }
.page h2 { font-size: 26px; margin: 48px 0 12px; letter-spacing: -0.02em; }
.page p, .page li { color: var(--muted); }
.page .updated { font-size: 14px; }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .hero-mark .edge { transform-origin: 70% 30%; animation: float 7s ease-in-out infinite; }
  @keyframes float { 50% { transform: translate(6px, -6px); } }
}

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .section-head, .company { grid-template-columns: 1fr; }
  .hero-mark { justify-self: start; width: 132px; order: -1; margin-left: -18px; }
  .pillars, .products, .principles { grid-template-columns: 1fr; }
  .section-head { gap: 20px; margin-bottom: 40px; }
  .company { gap: 40px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 18px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .facts { padding: 4px 20px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .product-body { padding: 24px; }
  .mail { font-size: 18px; padding: 16px 22px; }
}
