:root {
  color-scheme: light;
  --ink: #171513;
  --muted: #6d675f;
  --line: #e3dfd8;
  --accent: #b94d36;
  --bg: #fdfcfa;
  --bg-alt: #f5f2ed;
  --font: 'Jost', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(24px, 5vw, 72px);
  --measure: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 60;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--ink);
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
body.is-scrolled .site-header { border-bottom-color: var(--line); }

.header-inner {
  width: min(100% - var(--gutter) * 2, 1400px);
  margin: auto;
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

/* The markup carries the registered name; the caps are styling only. */
.brand {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  text-decoration: none;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.brand strong { font-size: 15px; font-weight: 600; }
.brand span { font-size: 7.5px; letter-spacing: .34em; margin-top: 7px; color: var(--muted); }

/* The hero already carries the wordmark; the header one arrives on scroll. */
.site-header .brand {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
body.is-scrolled .site-header .brand { opacity: 1; transform: none; pointer-events: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a, .languages { font-size: 11px; font-weight: 500; letter-spacing: .13em; text-decoration: none; white-space: nowrap; }
.site-nav a { padding: 6px 0; position: relative; color: var(--muted); transition: color .2s; }
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current]::after { transform: scaleX(1); }

.languages { justify-self: end; display: flex; gap: 8px; align-items: center; color: var(--line); }
.languages a { color: var(--muted); text-decoration: none; transition: color .2s; }
.languages a:hover { color: var(--accent); }
.languages [aria-current] { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 560px;
  height: calc(100svh - 78px);
  max-height: 900px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.bloom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: min(112vw, 1300px);
  height: min(124%, 1300px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--gutter);
  transform: translateY(-4%);
}

.wordmark {
  display: block;
  margin: 0;
  font-weight: 500;
  line-height: 1;
}
.wordmark b {
  display: block;
  font-size: clamp(42px, 8.4vw, 122px);
  font-weight: 400;
  letter-spacing: .06em;
  text-indent: .06em;
  text-transform: uppercase;
}
.wordmark em {
  display: block;
  margin-top: clamp(10px, 1.6vw, 20px);
  font-size: clamp(9px, 1.05vw, 13px);
  font-style: normal;
  font-weight: 500;
  letter-spacing: .52em;
  text-indent: .52em;
  text-transform: uppercase;
  color: var(--muted);
}

.tagline {
  margin: clamp(30px, 4.5vh, 52px) auto 0;
  max-width: 34em;
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.85;
  color: var(--ink);
}

.hero-meta,
.scroll-cue {
  position: absolute;
  bottom: 28px;
  z-index: 1;
  margin: 0;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted);
}
.hero-meta { left: var(--gutter); }
.scroll-cue { right: var(--gutter); display: flex; align-items: center; gap: 10px; }
.scroll-cue::after {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

/* ---------- sections ---------- */

.page-head { padding: clamp(92px, 14vh, 156px) 0 clamp(46px, 7vh, 80px); }
.page-title {
  font-size: clamp(32px, 4.6vw, 60px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.03em;
  margin: 0 0 clamp(20px, 2.6vw, 30px);
}

.section { scroll-margin-top: 78px; padding: clamp(78px, 11vh, 132px) 0; }
.section-inner { width: min(100% - var(--gutter) * 2, var(--measure)); margin: auto; }
.section--alt { background: var(--bg-alt); }

.grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.index {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: .8em;
}
.index b { font-weight: 500; color: var(--accent); }

.section h2 {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -.02em;
  margin: 0 0 clamp(24px, 3.5vw, 40px);
}

.lead {
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.85;
  max-width: 40em;
  margin: 0 0 22px;
}
.body-copy {
  max-width: 38em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
  margin: 0;
}

/* business */

.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}
.row > span { font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.row h3 { font-size: clamp(17px, 1.7vw, 21px); font-weight: 500; line-height: 1.55; margin: 0; letter-spacing: -.01em; }
.row p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--muted); }

/* product */

.product-head { display: flex; align-items: center; gap: 22px; margin-bottom: clamp(24px, 3.5vw, 36px); }
.product-head img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 2px 14px rgba(0, 0, 0, .08); }
.product-head h2 { margin: 0; font-size: clamp(34px, 4.6vw, 58px); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.dot { color: var(--accent); }

.tag {
  display: inline-block;
  margin-top: 26px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--muted);
}

/* company */

.profile { margin: 0; border-top: 1px solid var(--line); }
.profile > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.profile dt { font-size: 12px; letter-spacing: .06em; color: var(--muted); padding-top: .2em; }
.profile dd { margin: 0; font-size: 15px; line-height: 1.8; }
.profile small { display: inline-block; font-size: 12.5px; color: var(--muted); }
.profile a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.profile a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  width: min(100% - var(--gutter) * 2, var(--measure));
  margin: auto;
  min-height: 150px;
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-inner p { margin: 0; font-size: 11px; line-height: 1.9; color: var(--muted); letter-spacing: .04em; }
.to-top { font-size: 10px; font-weight: 500; letter-spacing: .16em; text-decoration: none; color: var(--muted); }
.to-top:hover { color: var(--accent); }

/* ---------- japanese typography ---------- */

html[lang='ja'] body { line-height: 1.9; }
html[lang='ja'] .section h2,
html[lang='ja'] .page-title { letter-spacing: .005em; line-height: 1.45; }
html[lang='ja'] .wordmark b { letter-spacing: .08em; text-indent: .08em; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .index { padding-top: 0; }
  .row { grid-template-columns: 40px minmax(0, 1fr); row-gap: 8px; }
  .row p { grid-column: 2; }
  .profile > div { grid-template-columns: 110px minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .header-inner { min-height: 62px; grid-template-columns: 1fr auto; row-gap: 0; }
  .site-header .brand { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 20px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 10px; }
  .hero { height: auto; min-height: 520px; padding: 88px 0 96px; }
  .bloom { width: 116vw; height: 116vw; }
  .hero-inner { transform: none; }
  .wordmark b { font-size: clamp(24px, 13vw, 54px); }
  .tagline { font-size: 14px; max-width: 22em; }
  .hero-meta, .scroll-cue { bottom: 20px; font-size: 9px; }
  .profile dd { overflow-wrap: anywhere; }
  .footer-inner { min-height: 0; flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
