/* ============================================================
   SHINYO KOEKI CO., LTD. — "Trading Desk" design system
   Broadsheet / ledger aesthetic · bilingual EN-JA · no frameworks
   ============================================================ */

:root {
  --paper:       #F6F1E5;
  --paper-deep:  #ECE4D2;
  --ink:         #1E2A44;
  --ink-deep:    #0F1B33;
  --ink-soft:    #4A5670;
  --vermillion:  #D8432C;   /* seals, graphics, accents */
  --verm-text:   #B0371F;
  --rule:        #C7BCA4;
  --foam:        #E9E2D0;

  --serif-en: "Newsreader", "Noto Serif JP", serif;
  --sans-en:  "Archivo", "Noto Sans JP", sans-serif;
  --mono:     "IBM Plex Mono", "Noto Sans JP", monospace;
  --serif-ja: "Noto Serif JP", "Newsreader", serif;
  --sans-ja:  "Noto Sans JP", "Archivo", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-stamp: cubic-bezier(0.34, 1.56, 0.64, 1);
  --maxw: 1280px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans-en);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(ja) body, body:lang(ja) { font-family: var(--sans-ja); line-height: 1.9; }
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--vermillion); color: var(--paper); }

h1, h2, h3 { font-weight: 500; }

/* skip link — hidden until keyboard focus */
.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; text-decoration: none;
  font-family: var(--sans-en); font-size: 0.8125rem;
}

/* section anchor offset for sticky nav */
section[id] { scroll-margin-top: 72px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ language helpers ============ */
/* on the EN page, .ja spans are the secondary line and vice versa */
[lang="ja"] { font-family: var(--sans-ja); }
.serif      { font-family: var(--serif-en); }
[lang="ja"].serif, .serif[lang="ja"] { font-family: var(--serif-ja); }
.mono       { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ============ ticker band ============ */
.ticker {
  background: var(--ink);
  color: var(--foam);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.ticker__clock {
  flex: none;
  padding: 0 16px;
  border-right: 1px solid rgba(233,226,208,0.25);
  color: #F07B63; /* AA on ink 5.25:1 */  font-weight: 500;
}
.ticker__belt { flex: 1; overflow: hidden; position: relative; }
.ticker__track {
  display: inline-flex;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
}
.ticker__belt:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { padding: 0 1.4em; }
.ticker__track .tick-dot { color: #F07B63; /* AA on ink 5.25:1 */ padding: 0; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ masthead ============ */
.masthead {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  position: relative;
  background: var(--paper);
}
.masthead::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 3px;
  border-bottom: 1px solid var(--ink);
}
.masthead__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 16px;
  padding-block: 22px 20px;
}
.masthead__flank {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.masthead__flank--r { text-align: right; }
.masthead__name {
  font-family: var(--serif-en);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  font-variant: small-caps;
}
.masthead__name a { text-decoration: none; }
html[lang="ja"] .masthead__name { font-variant: normal; font-family: var(--serif-ja); letter-spacing: 0.12em; }

/* ============ nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
}
.nav__links {
  display: flex;
  list-style: none;
  gap: clamp(10px, 2.2vw, 26px);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-family: var(--sans-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 13px 0;
  white-space: nowrap;
}
html[lang="ja"] .nav__links a { letter-spacing: 0.08em; font-weight: 500; }
.nav__links a .idx {
  width: 17px; height: 17px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.5625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.active { color: var(--ink); }
.nav__links a.active .idx {
  background: var(--vermillion);
  border-color: var(--vermillion);
  color: var(--paper);
}
.nav__edition {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--ink-soft);
}
.nav__edition a { text-decoration: none; padding: 4px 2px; }
.nav__edition a:hover { color: var(--vermillion); }
.nav__edition .cur { color: var(--ink); font-weight: 500; border-bottom: 2px solid var(--vermillion); }
.ed-short { display: none; }
@media (max-width: 640px) {
  .ed-long { display: none; }
  .ed-short { display: inline; }
}

/* ============ hero ============ */
.hero { padding: clamp(48px, 7vw, 88px) 0 0; }
.hero__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.kicker {
  font-family: var(--sans-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.kicker .no { color: var(--verm-text); font-family: var(--mono); font-weight: 500; }
.hero__headline {
  font-family: var(--serif-en);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin-bottom: 18px;
}
html[lang="ja"] .hero__headline {
  font-family: var(--serif-ja);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-feature-settings: "palt";
}
.hero__sub {
  font-family: var(--serif-ja);
  font-size: clamp(1.05rem, 2vw, 1.375rem);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 26px;
  font-feature-settings: "palt";
}
html[lang="ja"] .hero__sub { font-family: var(--serif-en); font-weight: 500; letter-spacing: 0.02em; }
.hero__deckwrap { position: relative; max-width: 56ch; }
.hero__deck {
  font-family: var(--serif-en);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 34px;
}
html[lang="ja"] .hero__deck { font-family: var(--sans-ja); font-size: 1rem; line-height: 1.95; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }

.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 13px 26px;
  font-family: var(--sans-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--vermillion); border-color: var(--vermillion); }
html[lang="ja"] .btn { letter-spacing: 0.18em; font-weight: 500; }

/* hanko stamp */
.hanko {
  position: absolute;
  right: -8px;
  bottom: -22px;
  width: 58px;
  height: 58px;
  opacity: 0.92;
  transform: rotate(-2deg);
  pointer-events: none;
}
html.js .hanko:not(.stamped) { opacity: 0; transform: scale(1.15) rotate(-4deg); }
.hanko.stamped {
  opacity: 0.92;
  transform: scale(1) rotate(-2deg);
  transition: opacity 260ms var(--ease-stamp), transform 260ms var(--ease-stamp);
}
.hanko.stamped--instant { transition: none; }

/* hero chart figure */
.fig { border: 1px solid var(--rule); background: var(--paper); }
.fig--pad { padding: 10px; }
.figcap {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 10px 2px 0;
  text-transform: uppercase;
}
html.js .hero__chart .route-line {
  stroke-dasharray: var(--len, 900);
  stroke-dashoffset: var(--len, 900);
}
.hero__chart.drawn .route-line {
  animation: draw-line 1.6s var(--ease-out) forwards 300ms;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }

/* ============ contents index (below the fold line) ============ */
.contents-line {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 26px;
}
.contents-line::before, .contents-line::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--ink);
}
.contents {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.contents a {
  display: block;
  padding: 20px 22px 22px;
  text-decoration: none;
  border-left: 1px solid var(--rule);
  transition: background 150ms var(--ease-out);
}
.contents a:first-child { border-left: 0; }
.contents a:hover { background: var(--paper-deep); }
.contents .mono { color: var(--verm-text); font-size: 0.6875rem; letter-spacing: 0.1em; }
.contents h3 {
  font-family: var(--serif-en);
  font-size: 1.1875rem;
  margin: 6px 0 4px;
}
html[lang="ja"] .contents h3 { font-family: var(--serif-ja); font-size: 1.0625rem; }
.contents p { font-size: 0.8125rem; color: var(--ink-soft); line-height: 1.55; }

/* ============ stats strip ============ */
.stats {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 22px 30px;
  border-left: 1px solid var(--rule);
  text-align: center;
}
.stat:first-child { border-left: 0; }
.stat__value {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__value .unit { font-size: 0.55em; color: var(--ink-soft); }
.stat__label {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
html[lang="ja"] .stat__label { letter-spacing: 0.06em; font-weight: 500; }

/* ============ meridian rule (section divider) ============ */
.meridian {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  padding: clamp(40px, 6vw, 64px) 0 0;
}
.meridian::before, .meridian::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--rule);
  background:
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 80px);
  height: 5px;
}
.meridian--dark { color: rgba(233,226,208,0.6); padding-top: 0; }
.meridian--dark::before, .meridian--dark::after {
  border-top-color: rgba(233,226,208,0.3);
  background: repeating-linear-gradient(to right, rgba(233,226,208,0.3) 0 1px, transparent 1px 80px);
}

/* ============ section scaffolding ============ */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.lockup { margin-bottom: clamp(34px, 5vw, 54px); }
.lockup .no {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--verm-text);
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}
.section--dark .lockup .no { color: #F07B63; /* AA on ink 5.25:1 */ }
.lockup h2 {
  font-family: var(--serif-en);
  font-size: clamp(1.9rem, 3.8vw, 2.625rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 24em;
}
html[lang="ja"] .lockup h2 {
  font-family: var(--serif-ja);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-feature-settings: "palt";
}
.lockup .sub {
  margin-top: 10px;
  font-family: var(--serif-ja);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-feature-settings: "palt";
}
html[lang="ja"] .lockup .sub { font-family: var(--serif-en); font-weight: 500; font-style: italic; }
.lockup .lead {
  margin-top: 16px;
  max-width: 62ch;
  font-family: var(--serif-en);
  font-size: 1.0625rem;
  line-height: 1.65;
}
html[lang="ja"] .lockup .lead { font-family: var(--sans-ja); font-size: 1rem; line-height: 1.95; }

/* dark sections */
.section--dark { background: var(--ink-deep); color: var(--foam); }
.section--dark .lockup .sub, .section--dark .lockup .lead { color: rgba(233,226,208,0.75); }
.section--dark ::selection { background: var(--vermillion); color: var(--foam); }

/* tategaki spine */
.spined { position: relative; }
@media (min-width: 1025px) {
  .spined { padding-left: 52px; }
}
.spine {
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  writing-mode: vertical-rl;
  font-family: var(--serif-ja);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.42em;
  color: var(--ink-soft);
  opacity: 0.55;
  border-left: 1px solid var(--rule);
  padding-left: 10px;
  user-select: none;
}
.section--dark .spine { color: var(--foam); border-left-color: rgba(233,226,208,0.3); opacity: 0.45; }

/* ============ about ============ */
.about__grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(32px, 5vw, 80px);
}
.about__prose { }
.about__prose p {
  font-family: var(--serif-en);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.2em;
}
html[lang="ja"] .about__prose p { font-family: var(--sans-ja); font-size: 1rem; line-height: 2; }
@media (min-width: 861px) {
  .about__prose--cols {
    column-count: 2;
    column-gap: 40px;
    column-rule: 1px solid var(--rule);
  }
}
.pillars { list-style: none; border-top: 3px double var(--ink); }
.pillars li { border-bottom: 1px solid var(--rule); padding: 20px 2px; }
.pillars h3 {
  font-family: var(--serif-en);
  font-size: 1.1875rem;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
html[lang="ja"] .pillars h3 { font-family: var(--serif-ja); font-size: 1.0625rem; }
.pillars h3 .mono { font-size: 0.6875rem; color: var(--verm-text); }
.pillars p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; }

/* ============ business cards ============ */
.bizgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.bizcard {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 26px 22px 30px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: background 180ms var(--ease-out);
}
.bizcard:hover { background: var(--paper-deep); }
.bizcard .mono {
  font-size: 0.6875rem;
  color: var(--verm-text);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.bizcard h3 {
  font-family: var(--serif-en);
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 4px;
}
html[lang="ja"] .bizcard h3 { font-family: var(--serif-ja); font-size: 1.125rem; }
.bizcard .alt {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-family: var(--serif-ja);
  font-weight: 500;
  margin-bottom: 12px;
}
html[lang="ja"] .bizcard .alt { font-family: var(--sans-en); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem; font-weight: 600; }
.bizcard p { font-size: 0.875rem; line-height: 1.65; color: var(--ink-soft); margin-top: auto; }
html[lang="ja"] .bizcard p { line-height: 1.8; }

/* ============ network map (chart room) ============ */
.chartroom { padding-bottom: clamp(56px, 8vw, 96px); }
.mapfig { border: 1px solid rgba(233,226,208,0.28); position: relative; }
.mapfig svg { width: 100%; height: auto; display: block; }
.mapfig .figcap { color: rgba(233,226,208,0.6); border-top: 1px solid rgba(233,226,208,0.2); padding: 10px 14px; }
.map-label {
  font-family: var(--mono);
  font-size: 12px;
  fill: rgba(233,226,208,0.85);
  letter-spacing: 0.06em;
  transition: opacity 400ms var(--ease-out), fill 150ms;
}
html.js .map-label { opacity: 0; }
html.js .map-label.on, .map-label.on { opacity: 1; }
.map-arc {
  fill: none;
  stroke: rgba(233,226,208,0.5);
  stroke-width: 1.25;
  transition: stroke 150ms;
}
.map-dot-end { fill: var(--vermillion); transform-box: fill-box; transform-origin: center; }
html.js .map-dot-end { opacity: 0; }
html.js .map-dot-end.on, .map-dot-end.on { opacity: 1; animation: pop-dot 200ms var(--ease-stamp); }
@keyframes pop-dot { from { transform: scale(0); } to { transform: scale(1); } }
.port circle { fill: none; stroke: rgba(233,226,208,0.85); stroke-width: 1; }
.port.hover .map-label, .port:hover .map-label { fill: #E8654F; }
.map-ocean-label {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 34px;
  fill: rgba(233,226,208,0.14);
  letter-spacing: 0.35em;
}
.graticule line { stroke: rgba(233,226,208,0.14); stroke-width: 1; }
.graticule text { font-family: var(--mono); font-size: 9px; fill: rgba(233,226,208,0.35); letter-spacing: 0.1em; }

/* ledger under map */
.ledger {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
}
.ledger h3 {
  font-family: var(--sans-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233,226,208,0.7);
  border-top: 3px double rgba(233,226,208,0.6);
  padding: 12px 0;
}
.ledger table { width: 100%; border-collapse: collapse; }
.ledger td {
  font-family: var(--mono);
  font-size: 0.8125rem;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(233,226,208,0.18);
  color: var(--foam);
  vertical-align: baseline;
}
.ledger td:last-child { text-align: right; color: rgba(233,226,208,0.65); }
.ledger .flag { color: #F07B63; /* AA on ink 5.25:1 */ padding-right: 10px; }

/* ============ sourcing strip ============ */
.sourcing { background: var(--paper-deep); border-bottom: 1px solid var(--rule); }
.sourcing__inner {
  padding-block: clamp(44px, 6vw, 64px);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.sourcing p { max-width: 58ch; font-size: 0.9375rem; line-height: 1.75; color: var(--ink); }
html[lang="ja"] .sourcing p { line-height: 1.95; }
.sourcing h2 {
  font-family: var(--serif-en);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}
html[lang="ja"] .sourcing h2 { font-family: var(--serif-ja); font-weight: 600; }
.origin-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.origin-tags span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 6px 12px;
}

/* ============ history (chronicle) ============ */
.chronicle .timeline { list-style: none; max-width: 780px; }
.chronicle .timeline li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(233,226,208,0.18);
}
.chronicle .timeline .year {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: #F07B63; /* AA on ink 5.25:1 */  letter-spacing: 0.06em;
  white-space: nowrap;
}
.chronicle .timeline .year small { display: block; color: rgba(233,226,208,0.5); font-size: 0.6875rem; margin-top: 2px; }
.chronicle .timeline p { font-size: 0.9375rem; line-height: 1.75; color: var(--foam); }
html[lang="ja"] .chronicle .timeline p { line-height: 1.9; }

/* ============ partners register ============ */
.register { border-top: 3px double var(--ink); }
.register li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.register { list-style: none; columns: 2; column-gap: 56px; }
.register li { break-inside: avoid; }
.register .name { font-weight: 600; font-family: var(--sans-en); letter-spacing: 0.02em; }
.register .leader {
  flex: 1;
  border-bottom: 1px dotted var(--rule);
  transform: translateY(-4px);
  min-width: 24px;
}
.register .alt { font-family: var(--serif-ja); font-size: 0.875rem; color: var(--ink-soft); white-space: nowrap; }
html[lang="ja"] .register .name { font-family: var(--sans-ja); font-weight: 700; }
html[lang="ja"] .register .alt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; }
.register-note { margin-top: 18px; font-size: 0.75rem; color: var(--ink-soft); font-family: var(--mono); letter-spacing: 0.04em; }

/* ============ company profile — FORM C-1 ============ */
.formc1 {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-top: 3px double var(--ink);
  max-width: 860px;
}
.formc1__slug {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 14px 26px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.formc1 table { width: 100%; border-collapse: collapse; }
.formc1 th, .formc1 td { padding: 15px 26px; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.formc1 tr:last-child th, .formc1 tr:last-child td { border-bottom: 0; }
.formc1 th {
  text-align: left;
  font-family: var(--sans-en);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  width: 34%;
  white-space: nowrap;
}
.formc1 th small { display: block; font-family: var(--serif-ja); font-weight: 500; letter-spacing: 0.1em; text-transform: none; margin-top: 2px; }
.formc1 td { font-family: var(--mono); font-size: 0.875rem; }
.formc1 td .nonmono { font-family: var(--sans-ja); }

/* ============ contact ============ */
.contact__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(32px, 5vw, 80px);
}
.form label {
  display: block;
  font-family: var(--sans-en);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 22px 0 8px;
}
html[lang="ja"] .form label { font-weight: 500; letter-spacing: 0.1em; }
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 13px 14px;
  font-family: var(--sans-ja);
  font-size: 0.9375rem;
  color: var(--ink);
  border-radius: 0;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.form textarea { min-height: 150px; resize: vertical; }
.form button { margin-top: 26px; }
.form__note { margin-top: 16px; font-size: 0.8125rem; color: var(--ink-soft); line-height: 1.7; }

.particulars { border-top: 3px double var(--ink); }
.particulars dl { }
.particulars .prow {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--rule);
}
.particulars dt {
  font-family: var(--sans-en);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 3px;
}
.particulars dd { font-size: 0.9rem; line-height: 1.65; }
.particulars dd.mono { font-size: 0.875rem; }
.particulars dd a { text-decoration: none; }
.particulars dd a:hover { color: var(--vermillion); }
.contact__map { margin-top: 26px; }
.contact__map iframe { width: 100%; height: 230px; border: 1px solid var(--rule); filter: grayscale(1) sepia(0.14) contrast(0.95); }

/* signed block */
.signed {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.signed .seal { width: 46px; height: 46px; flex: none; opacity: 0.92; }
.signed .who { font-size: 0.875rem; line-height: 1.55; }
.signed .who .t { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.signed .who .n { font-family: var(--serif-ja); font-weight: 600; font-size: 1.0625rem; }

/* ============ footer ============ */
.footer {
  background: var(--ink-deep);
  color: var(--foam);
  margin-top: clamp(56px, 8vw, 104px);
  border-top: 3px solid var(--vermillion);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(44px, 6vw, 72px) 40px;
}
.footer h3 {
  font-family: var(--sans-en);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233,226,208,0.55);
  margin-bottom: 16px;
}
.footer__name {
  font-family: var(--serif-en);
  font-variant: small-caps;
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
html[lang="ja"] .footer__name { font-variant: normal; font-family: var(--serif-ja); letter-spacing: 0.1em; font-size: 1.25rem; }
.footer__namealt { font-family: var(--serif-ja); font-size: 0.9375rem; color: rgba(233,226,208,0.7); margin-bottom: 18px; }
html[lang="ja"] .footer__namealt { font-family: var(--serif-en); font-variant: small-caps; }
.footer p, .footer address {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(233,226,208,0.8);
}
.footer .mono { font-size: 0.8125rem; }
.footer ul { list-style: none; }
.footer ul li { padding: 5px 0; }
.footer a { color: rgba(233,226,208,0.85); text-decoration: none; font-size: 0.875rem; }
.footer a:hover { color: #F07B63; /* AA on ink 5.25:1 */ }
.footer__legal {
  border-top: 1px solid rgba(233,226,208,0.18);
  padding-block: 20px 26px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: rgba(233,226,208,0.5);
}
.footer__seal { width: 40px; height: 40px; margin-bottom: 18px; opacity: 0.92; }

/* ============ privacy / utility page ============ */
.telegraph {
  max-width: 760px;
  margin: clamp(40px, 6vw, 72px) auto;
  border: 1px solid var(--rule);
  border-top: 3px double var(--ink);
  background: var(--paper);
  padding: clamp(28px, 5vw, 56px);
}
.telegraph h1 { font-family: var(--serif-en); font-size: 1.75rem; margin-bottom: 8px; }
html[lang="ja"] .telegraph h1 { font-family: var(--serif-ja); font-weight: 600; }
.telegraph .slug { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 28px; }
.telegraph h2 { font-size: 1.0625rem; margin: 28px 0 10px; font-family: var(--sans-en); font-weight: 700; }
html[lang="ja"] .telegraph h2 { font-family: var(--sans-ja); }
.telegraph p, .telegraph li { font-size: 0.9375rem; line-height: 1.8; color: var(--ink); margin-bottom: 10px; }
.telegraph ul { padding-left: 1.3em; }
.telegraph a { color: var(--vermillion); }

/* ============ reveal animations ============ */
html.js .rv { opacity: 0; transform: translateY(12px); }
html.js .rv.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
}
.rv-d1.in { transition-delay: 70ms; }
.rv-d2.in { transition-delay: 140ms; }
.rv-d3.in { transition-delay: 210ms; }

/* ============ responsive ============ */
@media (max-width: 1024px) {
  .bizgrid { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figwrap { max-width: 560px; }
  .about__grid, .contact__grid, .sourcing__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .spine { display: none; }
}
@media (max-width: 860px) {
  .register { columns: 1; }
  .ledger { grid-template-columns: 1fr; }
  .contents { grid-template-columns: 1fr; }
  .contents a { border-left: 0; border-top: 1px solid var(--rule); }
  .contents a:first-child { border-top: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--rule); }
  .stat:nth-child(3) { border-left: 0; }
  .masthead__row { grid-template-columns: 1fr; gap: 4px; text-align: center; padding-block: 16px 14px; }
  .masthead__flank--r { text-align: center; }
  .masthead__flank--l { display: none; }
}
@media (max-width: 560px) {
  .bizgrid { grid-template-columns: 1fr; }
  .chronicle .timeline li { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .formc1 th, .formc1 td { padding: 12px 16px; }
  .formc1 th { width: 40%; }
  .hero__headline { font-size: 2.4rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .ticker__clock { padding: 0 10px; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  html.js .rv { opacity: 1; transform: none; }
  html.js .hero__chart .route-line { stroke-dashoffset: 0 !important; animation: none; }
  html.js .hanko:not(.stamped) { opacity: 0.92; transform: scale(1) rotate(-2deg); transition: none; }
  .map-label, .map-dot-end { opacity: 1 !important; animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============ print ============ */
@media print {
  .ticker, .nav, .hero__ctas, .form, .contact__map { display: none !important; }
  .section--dark, .footer { background: none !important; color: var(--ink) !important; }
  .section--dark *, .footer * { color: var(--ink) !important; }
  .section--dark svg text { fill: var(--ink) !important; }
  html.js .rv { opacity: 1 !important; transform: none !important; }
  .map-label, .map-dot-end { opacity: 1 !important; }
  body { background: #fff; }
}

/* ════════════════════════════════════════════════════════════
   CONVERSION LAYER — trade flow · RFQ form · FAQ · floating CTA
   ════════════════════════════════════════════════════════════ */

/* hero trust microcopy */
.hero__trust {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin: -22px 0 clamp(40px, 6vw, 72px);
}
.hero__trust .tick { color: var(--verm-text); padding: 0 6px; }
html[lang="ja"] .hero__trust { text-transform: none; letter-spacing: 0.06em; }

/* nav CTA */
.nav__cta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans-en);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  white-space: nowrap;
  transition: background 150ms var(--ease-out);
}
.nav__cta:hover { background: var(--vermillion); }
html[lang="ja"] .nav__cta { font-weight: 500; letter-spacing: 0.14em; }
.nav__right { display: flex; align-items: center; gap: 18px; }
@media (max-width: 860px) { .nav__cta { display: none; } }

/* ============ trade flow ============ */
.flowgrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.flowstep {
  position: relative;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 26px 20px 30px;
  background: var(--paper);
}
.flowstep .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--vermillion);
  color: var(--verm-text);
  font-family: var(--mono);
  font-size: 0.8125rem;
  margin-bottom: 16px;
}
.flowstep h3 {
  font-family: var(--serif-en);
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 4px;
}
html[lang="ja"] .flowstep h3 { font-family: var(--serif-ja); font-size: 1.0625rem; }
.flowstep .alt {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-family: var(--serif-ja);
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}
html[lang="ja"] .flowstep .alt { font-family: var(--sans-en); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.625rem; font-weight: 600; }
.flowstep p { font-size: 0.8125rem; line-height: 1.65; color: var(--ink-soft); }
html[lang="ja"] .flowstep p { line-height: 1.8; }
.flowstep::after {
  content: "▸";
  position: absolute;
  top: 50%;
  right: -7px;
  transform: translateY(-50%);
  color: var(--vermillion);
  background: var(--paper);
  font-size: 0.75rem;
  line-height: 1;
  padding: 2px 0;
  z-index: 1;
}
.flowstep:last-child::after { content: none; }
.flow__cta { margin-top: 30px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.flow__cta .note { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.04em; }
@media (max-width: 1024px) {
  .flowgrid { grid-template-columns: 1fr; }
  .flowstep::after { content: "▾"; top: auto; bottom: -9px; right: auto; left: 32px; transform: none; padding: 0 4px; }
}

/* ============ FORM Q-1 (RFQ) ============ */
.formq1 {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-top: 3px double var(--ink);
  padding: 0 26px 30px;
}
.formq1__slug {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 14px 26px;
  margin: 0 -26px 4px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.formq1 .form__intro { font-size: 0.875rem; color: var(--ink-soft); margin-top: 16px; line-height: 1.7; }
.form select {
  width: 100%;
  border: 1px solid var(--rule);
  background-color: var(--paper);
  padding: 13px 38px 13px 14px;
  font-family: var(--sans-ja);
  font-size: 0.9375rem;
  color: var(--ink);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231E2A44' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .form__grid2 { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.faq { max-width: 860px; }
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq details:first-of-type { border-top: 3px double var(--ink); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 36px 20px 2px;
  position: relative;
  font-family: var(--sans-ja);
  font-weight: 700;
  font-size: 0.9875rem;
}
html:not([lang="ja"]) .faq summary { font-family: var(--sans-en); font-weight: 600; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--verm-text);
  flex: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.0625rem;
  color: var(--ink-soft);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--verm-text); }
.faq .a {
  padding: 0 2px 22px 40px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 64ch;
}
html[lang="ja"] .faq .a { line-height: 1.9; }

/* ============ floating RFQ button ============ */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 68px;
  height: 68px;
  background: var(--vermillion);
  color: var(--paper);
  border: none;
  border-radius: 9px;
  transform: rotate(-2deg) translateY(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-decoration: none;
  font-family: var(--serif-ja);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.25;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 18px rgba(15,27,51,0.25);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), background 150ms, visibility 0s linear 300ms;
}
.fab small { font-family: var(--mono); font-weight: 500; font-size: 0.5625rem; letter-spacing: 0.14em; opacity: 0.85; }
.fab.on { opacity: 1; visibility: visible; transform: rotate(-2deg) translateY(0); pointer-events: auto; transition-delay: 0s; }
.fab:hover { background: var(--ink); }
.fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media print { .fab { display: none !important; } }

/* ============ bizcard icons ============ */
.bizcard__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.bizcard__top .mono { margin-bottom: 0; }
.bizicon { width: 40px; height: 40px; flex: none; }
.bizicon * { vector-effect: non-scaling-stroke; }

/* per-category RFQ links */
.rfq-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--verm-text);
  text-decoration: none;
}
.rfq-link:hover { text-decoration: underline; }

/* local time chips */
.local-times { line-height: 1.9; }
.local-times .z { white-space: nowrap; }
.local-times .z + .z::before { content: " · "; color: var(--verm-text); }

/* honeypot + submission success */
.form .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__success[hidden] { display: none; }
.form__success {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  border: 1px solid var(--vermillion);
  background: var(--paper);
  padding: 16px 18px;
}
.form__success .seal { width: 42px; height: 42px; flex: none; opacity: 0.92; }
.form__success .t {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verm-text);
  margin-bottom: 3px;
}
.form__success p { font-size: 0.875rem; line-height: 1.7; }

/* ════════════════════════════════════════════════════════════
   PHOTOGRAPHY LAYER + LOGO MARK
   ════════════════════════════════════════════════════════════ */

/* logo mark (sun-over-waves diamond) */
.mark { width: 40px; height: 40px; flex: none; }
.masthead__name a { display: inline-flex; align-items: center; gap: 14px; }
.masthead__name .mark { width: 38px; height: 38px; transform: translateY(-1px); }
.footer .mark { --logo-field: #E9E2D0; --logo-line: #E9E2D0; --logo-wave: #0F1B33; width: 44px; height: 44px; margin-bottom: 16px; }

/* photo primitives — editorial plate treatment */
.photo {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 10px;
  margin: 0;
}
.photo img {
  width: 100%;
  height: auto;
  display: block;
  /* archival grade — keeps every plate in one toned voice */
  filter: saturate(0.62) sepia(0.08) contrast(1.04) brightness(1.01);
}
.photo .figcap { padding: 10px 2px 0; }
.photo--cover img { object-fit: cover; }
.section--dark .photo { border-color: rgba(233,226,208,0.28); background: transparent; }
.section--dark .photo .figcap { color: rgba(233,226,208,0.6); }

/* hero photo (replaces the old chart) */
.hero__photo img { aspect-ratio: 4 / 3.1; object-fit: cover; }

/* business banner */
.bizbanner { margin-bottom: clamp(26px, 4vw, 40px); }
.bizbanner img { aspect-ratio: 21 / 8; object-fit: cover; }

/* president message block */
.msgblock {
  margin-top: clamp(44px, 6vw, 64px);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.msgblock__photo img { aspect-ratio: 4 / 3.4; object-fit: cover; }
.msgblock .no {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--verm-text);
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}
.msgblock blockquote {
  font-family: var(--serif-en);
  font-size: clamp(1.1875rem, 2vw, 1.4375rem);
  line-height: 1.62;
  letter-spacing: 0.005em;
  margin: 0 0 26px;
}
html[lang="ja"] .msgblock blockquote {
  font-family: var(--serif-ja);
  font-weight: 600;
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 2;
  font-feature-settings: "palt";
}
.msgblock blockquote::before { content: "“"; color: var(--vermillion); }
.msgblock blockquote::after { content: "”"; color: var(--vermillion); }
html[lang="ja"] .msgblock blockquote::before { content: "「"; }
html[lang="ja"] .msgblock blockquote::after { content: "」"; }

/* side figure (under pillars) */
.sidefig { margin-top: 28px; }
.sidefig img { aspect-ratio: 3 / 2; object-fit: cover; }

/* diptych band (route / destination) */
.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  padding-top: clamp(40px, 6vw, 64px);
}
.diptych .photo img { aspect-ratio: 16 / 10; object-fit: cover; }

/* company grid: FORM C-1 + HQ photo */
.company__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.company__grid .formc1 { max-width: none; }

@media (max-width: 1024px) {
  .msgblock, .company__grid { grid-template-columns: 1fr; }
  .msgblock__photo { max-width: 560px; }
}
@media (max-width: 640px) {
  .diptych { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   COMPETITIVE LAYER — hero motion · credo band · news
   ════════════════════════════════════════════════════════════ */

/* slow ken-burns on the hero plate */
.hero__photo { overflow: hidden; }
.hero__photo .frame { overflow: hidden; display: block; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.075); } }
html.js .hero__photo img { animation: kenburns 38s ease-in-out infinite alternate; transform-origin: 62% 38%; will-change: transform; }
@media (prefers-reduced-motion: reduce) { html.js .hero__photo img { animation: none !important; } }

/* credo band — the vertical promise */
.credo {
  background: var(--ink-deep);
  color: var(--foam);
  padding: clamp(56px, 8vw, 96px) 0;
}
.credo__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 72px);
  flex-wrap: wrap;
}
.credo__label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F07B63; /* AA on ink 5.25:1 */}
.credo__label small { display: block; margin-top: 10px; color: rgba(233,226,208,0.6); letter-spacing: 0.1em; }
.credo__lines {
  display: flex;
  flex-direction: row-reverse;
  gap: clamp(24px, 3.5vw, 48px);
  margin: 0 auto;
}
.credo__lines p {
  writing-mode: vertical-rl;
  font-family: var(--serif-ja);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  letter-spacing: 0.28em;
  line-height: 1;
  min-height: 11em;
  font-feature-settings: "palt";
}
.credo__lines p .vermi { color: #F07B63; /* AA on ink 5.25:1 */ }
.credo__en {
  max-width: 30ch;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(233,226,208,0.78);
  align-self: flex-end;
}
@media (max-width: 860px) {
  .credo__inner { flex-direction: column; align-items: flex-start; }
  .credo__lines { margin: 0; align-self: center; }
  .credo__lines p { min-height: 9em; }
  .credo__en { align-self: flex-start; }
}

/* news band */
.news { border-top: 1px solid var(--rule); background: var(--paper); }
.news__inner { padding-block: clamp(36px, 5vw, 56px); }
.news h2 {
  font-family: var(--sans-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.news ul { list-style: none; border-top: 3px double var(--ink); }
.news li {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
}
.news .d { font-family: var(--mono); font-size: 0.75rem; color: var(--verm-text); flex: none; letter-spacing: 0.06em; }
@media (max-width: 560px) { .news li { flex-direction: column; gap: 2px; } }

/* motto lockup in credo */
.credo__motto {
  font-family: var(--serif-ja);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.16em;
  color: var(--foam);
  margin-top: 20px;
  line-height: 1.2;
  font-feature-settings: "palt";
}
.credo__motto .vermi { color: #F07B63; /* AA on ink 5.25:1 */ }
.credo__motto small {
  display: block;
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: rgba(233,226,208,0.7);
  margin-top: 10px;
}
.maps-link { font-family: var(--mono); font-size: 0.75rem; color: var(--verm-text); text-decoration: none; }
.maps-link:hover { text-decoration: underline; }
.footer .maps-link { color: #F07B63; /* AA on ink 5.25:1 */ }
.msg-dateline { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--ink-soft); margin-top: 16px; }
.news__promise { margin-top: 12px; font-size: 0.8125rem; color: var(--ink-soft); }

/* product strip */
.prodstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.8vw, 20px);
  margin-top: clamp(26px, 4vw, 40px);
}
.prodstrip .photo img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .prodstrip { grid-template-columns: repeat(2, 1fr); } }

/* partner logo wall */
.logowall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.logocell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  background: var(--paper);
}
.logocell img {
  max-height: 34px;
  max-width: 160px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.72;
  mix-blend-mode: multiply;
  transition: filter 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.logocell:hover img { filter: none; opacity: 1; }

/* maker wall v2: every cell = logo or wordmark + product line */
.logocell { flex-direction: column; gap: 7px; text-align: center; }
.logocell__name {
  font-family: var(--serif-ja, serif);
  font-weight: 600;
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.3;
}
.logocell__prod {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.logocell__prod i { font-style: normal; opacity: 0.75; }
.logocell img.logo--tall { max-height: 52px; }

.logocell--more {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.7;
}
@media (max-width: 640px) { .logowall { grid-template-columns: repeat(2, 1fr); } .logocell { min-height: 78px; } }

/* ════════════════════════════════════════════════════════════
   CRAFT PACK — progress · map tips · timeline spine · desk status
   ════════════════════════════════════════════════════════════ */

/* reading progress */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--vermillion);
  z-index: 200;
  pointer-events: none;
  transition: width 80ms linear;
}
@media print { #scroll-progress { display: none; } }

/* global focus ring */
:focus-visible { outline: 2px solid var(--vermillion); outline-offset: 2px; }

/* paper grain on dark sections */
.section--dark, .footer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.92 0 0 0 0 0.89 0 0 0 0 0.82 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* bizcard hover accent */
.bizcard { transition: background 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.bizcard:hover { box-shadow: inset 3px 0 0 var(--vermillion); }

/* chronicle timeline spine */
.chronicle .timeline { position: relative; padding-left: 30px; }
.chronicle .timeline::before {
  content: "";
  position: absolute;
  left: 4px; top: 26px; bottom: 26px;
  border-left: 1px solid rgba(233,226,208,0.25);
}
.chronicle .timeline li { position: relative; }
.chronicle .timeline li::before {
  content: "";
  position: absolute;
  left: -30px; top: 28px;
  width: 9px; height: 9px;
  border: 1.5px solid #E8654F;
  background: var(--ink-deep);
  transform: rotate(45deg);
}
.chronicle .timeline li:first-child::before,
.chronicle .timeline li:last-child::before { background: #E8654F; }

/* map port interactivity */
#pacific-map .port { cursor: pointer; }
.map-tip {
  position: absolute;
  z-index: 5;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--vermillion);
  padding: 12px 14px 12px;
  min-width: 168px;
  box-shadow: 0 6px 22px rgba(15,27,51,0.35);
  transform: translate(-50%, calc(-100% - 14px));
  font-family: var(--sans-ja);
}
.map-tip::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  width: 10px; height: 10px;
  background: var(--paper);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transform: translateX(-50%) rotate(45deg);
}
.map-tip strong {
  display: block;
  font-family: var(--serif-ja);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}
.map-tip .t {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.map-tip a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--verm-text);
  text-decoration: none;
}
.map-tip a:hover { text-decoration: underline; }
.map-tip[hidden] { display: none; }

/* Kobe hub pulse */
.kobe-pulse {
  fill: none;
  stroke: #E8654F;
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: kobe-pulse 3.6s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes kobe-pulse {
  0%   { transform: scale(0.4); opacity: 0.9; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .kobe-pulse { animation: none; opacity: 0; } }

/* desk open/closed status chip */
.desk-status {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  vertical-align: 1px;
}
.desk-status.open { border-color: var(--vermillion); color: var(--verm-text); }
.desk-status .dot { color: var(--vermillion); }

/* ════ WAVE 2 — cargo manifest · attention pulse · print refinement ════ */

/* Form M-1 cargo manifest */
.manifest {
  margin-top: clamp(30px, 4.5vw, 48px);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-top: 3px double var(--ink);
}
.manifest__slug {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 13px 24px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.manifest__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.manifest__grid > div {
  padding: 18px 24px 22px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.manifest__grid > div:nth-child(3n) { border-right: 0; }
.manifest h4 {
  font-family: var(--serif-ja);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
html:not([lang="ja"]) .manifest h4 { font-family: var(--serif-en); font-weight: 500; font-size: 1rem; }
.manifest h4 .mono {
  font-size: 0.625rem;
  color: var(--paper);
  background: var(--vermillion);
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  transform: translateY(-1px);
}
.manifest ul { list-style: none; }
.manifest li {
  font-size: 0.8125rem;
  color: var(--ink);
  padding: 4.5px 0;
  border-bottom: 1px dotted var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.manifest li:last-child { border-bottom: 0; }
.manifest li .en {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
  text-align: right;
}
@media (max-width: 860px) {
  .manifest__grid { grid-template-columns: 1fr 1fr; }
  .manifest__grid > div:nth-child(3n) { border-right: 1px solid var(--rule); }
  .manifest__grid > div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .manifest__grid { grid-template-columns: 1fr; }
  .manifest__grid > div { border-right: 0 !important; }
}

/* attention pulse when a select is auto-filled */
@keyframes attn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(216,67,44,0.55); border-color: var(--vermillion); }
  100% { box-shadow: 0 0 0 9px rgba(216,67,44,0); border-color: var(--rule); }
}
.attn { animation: attn-pulse 900ms var(--ease-out) 2; }

/* print refinement */
@media print {
  .bizcard, .flowstep, .formc1, .manifest__grid > div, .faq details, figure, .logocell { break-inside: avoid; }
  .prodstrip, .diptych { display: grid; }
  .fab, .map-tip, .desk-status { display: none !important; }
}

/* micro polish: press states + nav underline draw */
.btn:active { transform: translateY(1px); }
.fab:active { transform: rotate(-2deg) translateY(1px); }
.nav__links a span.lbl,
.footer a, .contents a h3, .rfq-link { text-decoration: none; }
.footer ul a, .rfq-link, .maps-link, .news a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 220ms var(--ease-out);
}
.footer ul a:hover, .rfq-link:hover, .maps-link:hover, .news a:hover {
  background-size: 100% 1px;
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════════
   NIGHT EDITION — evening-broadsheet dark mode
   Append AFTER all existing rules (same-specificity overrides
   below rely on source order to win).
   ════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {

  /* ---- 1 · token remap — page becomes deep ink, type becomes foam ---- */
  :root {
    color-scheme: dark;
    --paper:       #111C31;   /* page ground */
    --paper-deep:  #18253E;   /* recessed plates (formc1/formq1/sourcing/manifest) */
    --ink:         #E9E2D0;   /* text → foam */
    --ink-deep:    #0B1425;   /* dark bands sink one step deeper */
    --ink-soft:    #A7B0C4;
    --vermillion:  #D8432C;   /* unchanged — seals stay sealed */
    --verm-text:   #E8654F;   /* brighter vermillion cut for dark ground */
    --rule:        #31405E;
    --foam:        #E9E2D0;   /* unchanged */
  }

  /* ---- 2 · ticker — was ink-on-ink band; --ink is now cream, so pin bg ---- */
  .ticker { background: var(--ink-deep); }

  /* ---- 3 · vermillion grounds need light glyphs (parity with light edition,
          where the glyph was paper-cream; var(--paper) is now near-black) ---- */
  ::selection { color: var(--foam); }
  .nav__links a.active .idx { color: var(--foam); }
  .btn--solid:hover { color: var(--foam); }
  .nav__cta:hover { color: var(--foam); }
  .manifest h4 .mono { color: var(--foam); }

  /* ---- 4 · vermillion used as small type / thin indicator → brighter cut ---- */
  .nav__edition a:hover { color: var(--verm-text); }
  .particulars dd a:hover { color: var(--verm-text); }
  .telegraph a { color: var(--verm-text); }
  .flowstep::after { color: var(--verm-text); }
  #scroll-progress { background: var(--verm-text); }
  :focus-visible { outline-color: var(--verm-text); }

  /* ---- 5 · floating RFQ stamp — foam glyphs, true-black shadow
          (rgba(15,27,51,…) navy shadows vanish on a navy page) ---- */
  .fab { color: var(--foam); box-shadow: 0 4px 18px rgba(0,0,0,0.55); }
  .fab:hover { color: var(--paper); } /* hover bg is var(--ink)=cream → dark glyphs back */

  /* ---- 6 · light plates that SURVIVE — printed labels mounted on the dark page.
          Tokens are remapped, so these use daylight literals. ---- */
  .logocell { background: #F6F1E5; }              /* maker logos need cream + multiply */
  .logocell__name { color: #1E2A44; }
  .logocell__prod { color: #5B6884; }
  .logocell--more { color: #4A5670; }             /* --ink-soft is now light — restore */
  .map-tip {
    background: #F6F1E5;
    color: #1E2A44;
    border-color: #C7BCA4;
    border-top-color: var(--vermillion);          /* keep the seal-red header rule */
    box-shadow: 0 6px 22px rgba(0,0,0,0.55);
  }
  .map-tip .t { color: #4A5670; }
  .map-tip a { color: #B0371F; }
  .map-tip::after { background: #F6F1E5; border-right-color: #C7BCA4; border-bottom-color: #C7BCA4; }
  /* .form__success intentionally NOT kept light: it inherits the dark plate,
     vermillion border and bright --verm-text header — reads as a dark chit. */

  /* ---- 7 · photography — keep archival grade, pull highlights so plates don't glare ---- */
  .photo img { filter: saturate(0.62) sepia(0.08) contrast(1.04) brightness(0.92); }

  /* ---- 8 · inline-SVG ink strokes (bizicon symbol defs, 404 mini-mark,
          legacy hero chart). Styling the <symbol> originals styles the <use> clones. ---- */
  svg [stroke="#1E2A44"], svg[stroke="#1E2A44"] { stroke: var(--foam); }
  svg [fill="#1E2A44"],   svg[fill="#1E2A44"]   { fill: var(--foam); }
  svg [fill="#F6F1E5"] { fill: var(--paper); }   /* 404 logo field flips dark so foam waves read */

  /* ---- 9 · masthead logo mark — adopt the footer treatment:
          foam diamond + foam border, deep-ink waves.
          (.footer .mark keeps its own values via higher specificity.) ---- */
  .mark { --logo-field: var(--foam); --logo-line: var(--foam); --logo-wave: #0F1B33; }

  /* ---- 10 · select chevron — data-URI stroke was %231E2A44, invisible on dark input ---- */
  .form select {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23E9E2D0' stroke-width='1.5'/%3E%3C/svg%3E");
  }

  /* ---- 11 · Google Maps plate — keep the grayscale archive voice, then invert:
          the sepia warmth inverts into a cold ink-blue that matches the page ---- */
  .contact__map iframe { filter: grayscale(1) sepia(0.14) invert(0.9) contrast(0.95); }

  /* ---- 12 · print guard — if a dark-preference browser prints, restore daylight
          (the existing @media print block assumes light tokens) ---- */
  @media print {
    :root {
      --paper: #F6F1E5; --paper-deep: #ECE4D2;
      --ink: #1E2A44; --ink-deep: #0F1B33; --ink-soft: #4A5670;
      --verm-text: #B0371F; --rule: #C7BCA4;
    }
    svg [stroke="#1E2A44"], svg[stroke="#1E2A44"] { stroke: #1E2A44; }
    svg [fill="#F6F1E5"] { fill: #F6F1E5; }
    .mark { --logo-field: #F6F1E5; --logo-line: #1E2A44; --logo-wave: #1E2A44; }
    .photo img { filter: saturate(0.62) sepia(0.08) contrast(1.04) brightness(1.01); }
  }
}

/* worked example (clearly-labeled illustration) */
.casebox {
  margin-top: clamp(30px, 4.5vw, 48px);
  max-width: 880px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--vermillion);
  padding: 20px 26px 22px;
}
.casebox .slug {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verm-text);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.casebox .slug .disc { color: var(--ink-soft); letter-spacing: 0.08em; }
.casebox .intro { font-size: 0.9rem; line-height: 1.8; margin-bottom: 14px; }
.casebox ol { list-style: none; }
.casebox li {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px dotted var(--rule);
  font-size: 0.875rem;
  line-height: 1.75;
}
.casebox li .n {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--verm-text);
  flex: none;
  padding-top: 2px;
}
.casebox .close { margin-top: 14px; font-size: 0.875rem; border-top: 1px dotted var(--rule); padding-top: 14px; }
.casebox .close a { color: var(--verm-text); text-decoration: none; font-family: var(--mono); font-size: 0.8125rem; }
.casebox .close a:hover { text-decoration: underline; }

/* ════ WAVE 5 — mobile chart pan · JP line breaking · rag control · UI scheme ════ */

/* native form controls follow the edition */
:root { color-scheme: light; }

/* map pans on phones instead of shrinking to unreadability */
@media (max-width: 640px) {
  .mapfig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mapfig svg { min-width: 760px; }
  .mapfig .figcap::after {
    content: " · ← swipe →";
    color: var(--verm-text);
    letter-spacing: 0.08em;
  }
  html[lang="ja"] .mapfig .figcap::after { content: " · ← 海図をスワイプ →"; }
}

/* Japanese line breaking: phrase-aware wraps, strict kinsoku (progressive) */
html[lang="ja"] body { line-break: strict; }
html[lang="ja"] :is(.hero__headline, .lockup h2, .lockup .sub, .hero__sub, .flowstep h3, .bizcard h3, .contents h3, .faq summary) {
  word-break: auto-phrase;
}
html[lang="ja"] :is(h2, h3, .lead, blockquote) { text-spacing-trim: trim-start; }

/* English rag control: no widowed single words */
:is(.hero__headline, .lockup h2, .contents h3, .bizcard h3, .flowstep h3, .manifest h4) { text-wrap: balance; }
:is(.about__prose p, .lead, .faq .a, .bizcard p, .flowstep p, .casebox li, .msgblock blockquote) { text-wrap: pretty; }

/* FAQ: marker rotates + into × instead of a dead content swap */
.faq details[open] summary::after { content: "+"; transform: translateY(-50%) rotate(45deg); }

/* map tooltip entrance (Chrome 117+; others show instantly) */
.map-tip {
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), display 180ms allow-discrete, overlay 180ms allow-discrete;
}
@starting-style {
  .map-tip { opacity: 0; transform: translate(-50%, calc(-100% - 24px)); }
}

/* mobile nav: right-edge fade hints at more items */
@media (max-width: 860px) {
  .nav__links {
    mask-image: linear-gradient(90deg, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
    padding-right: 18px;
  }
}

/* copy-inquiry helper button (mailto fallback aid) */
.copy-inq {
  display: inline-block;
  margin-top: 8px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  padding: 7px 12px;
  cursor: pointer;
}
.copy-inq:hover { border-color: var(--ink); }
