/* =========================================================
   TOYO AGRI — Corporate site prototype
   Story: WORLD → JAPAN → TOYO AGRI → TRADE → LOGISTICS → EC → CUSTOMER
   ========================================================= */

:root {
  --off: #F7F7F5;
  --ink: #111111;
  --navy: #162338;
  --gold: #C8A96B;
  --gold-ink: #9C7F43;          /* gold for small text on light bg (contrast) */
  --mint: #EEF1EC;              /* very light green accent */
  --muted: #5F5F5B;
  --line: rgba(17, 17, 17, .14);
  --line-strong: rgba(17, 17, 17, .32);

  --f-en: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-min: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--off);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--off); padding: 10px 18px; font-size: 13px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.wrap { width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto; }
.mask { display: block; overflow: hidden; }
.sp-only { display: none; }

/* ---------- shared type ---------- */
.sec-label {
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .3em;
  line-height: 1;
  display: flex; align-items: center;
}
.sec-label__num { color: var(--gold-ink); display: inline-flex; align-items: center; }
.sec-label__num::after {
  content: ""; display: inline-block; width: 40px; height: 1px; margin: 0 16px;
  background: currentColor; opacity: .7;
}
.display {
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(56px, 8.4vw, 136px);
  letter-spacing: .05em;
  line-height: 1;
  margin: 36px 0 32px -0.04em;
}
.lead {
  font-family: var(--f-min);
  font-weight: 500;
  font-size: clamp(26px, 2.9vw, 42px);
  line-height: 1.6;
  letter-spacing: .08em;
}
.body {
  font-size: 15px;
  line-height: 2.1;
  color: var(--muted);
  max-width: 31em;
  margin-top: 28px;
}

/* draw-on paths (pathLength=1). Hidden only when motion is enabled */
.motion .draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.site-header.is-scrolled { background: rgba(247, 247, 245, .97); border-bottom-color: var(--line); }
.site-header.is-dark { background: var(--navy); color: var(--off); border-bottom-color: rgba(255,255,255,.08); }
.site-header__inner {
  height: 100%;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--f-en); font-weight: 500; font-size: 14px; letter-spacing: .34em;
  text-decoration: none; position: relative; z-index: 2;
}
.nav__list { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav__list a {
  position: relative; display: block; text-decoration: none;
  font-family: var(--f-en); font-size: 12px; letter-spacing: .24em; padding: 6px 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: .24em; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__ja { display: none; }
.nav-toggle { display: none; }

/* story indicator */
.chapter {
  position: fixed; left: var(--gutter); bottom: 30px; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
  font-family: var(--f-en); font-size: 11px; letter-spacing: .3em;
  opacity: 0; transition: opacity .6s var(--ease);
}
.chapter.is-visible { opacity: 1; }
.chapter.is-visible.is-hidden { opacity: 0; }
.chapter__track { width: 72px; height: 1px; background: rgba(255,255,255,.35); overflow: hidden; }
.chapter__fill { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(#F7F7F5, #F1F1EE);
}
.hero__map {
  position: absolute; left: 50%; top: 13%;
  width: max(112vw, 1100px);
  aspect-ratio: 1440 / 528;
  transform: translateX(-47.3%);       /* Japan sits at the horizontal centre */
  will-change: transform;
}
.hero__dots, .hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__dots { opacity: .14; }
.hero__lines { overflow: visible; }
.hero__lat { fill: none; stroke: var(--ink); stroke-width: .6; opacity: .35; }
.hero__arc { fill: none; stroke: var(--ink); stroke-width: .75; opacity: .55; }
.hero__dest { fill: var(--ink); opacity: .55; }
.hero__origin { fill: var(--gold); }
.hero__pulse { fill: none; stroke: var(--gold); stroke-width: .8; opacity: .7; }
.hero__coord { font-family: var(--f-en); font-size: 9px; letter-spacing: .24em; fill: var(--muted); }

.hero__inner { position: absolute; left: 0; right: 0; bottom: clamp(64px, 13vh, 150px); }
.hero__brand { font-family: var(--f-en); font-size: 13px; font-weight: 500; letter-spacing: .5em; }
.hero__title {
  font-family: var(--f-min); font-weight: 500;
  font-size: clamp(34px, 5.2vw, 82px);
  line-height: 1.45; letter-spacing: .07em;
  margin: .55em 0 .6em;
}
.hero__line { display: block; }
.hero__sub {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--f-en); font-size: 12px; letter-spacing: .36em; color: var(--muted);
}
.hero__sub .slash { color: var(--gold-ink); letter-spacing: 0; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--f-en); font-size: 10px; letter-spacing: .3em; writing-mode: vertical-rl;
}
.hero__scroll i { display: block; width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(-100%); animation: scrollcue 2.6s var(--ease) infinite;
}
@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.motion [data-hero] { opacity: 0; }
.motion .hero__line { transform: translateY(110%); }
.motion .hero__origin, .motion .hero__pulse, .motion .hero__coord, .motion .hero__dest { opacity: 0; }
.motion .hero__dots { opacity: 0; }

/* =========================================================
   01 THE FLOW
   ========================================================= */
.flow { position: relative; background: var(--off); }
.flow__stage {
  position: relative;
  padding: 160px var(--gutter) 140px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.flow .sec-label { align-self: flex-start; margin-bottom: 40px; }
.flow__lines { text-align: center; }
.flow__line {
  font-family: var(--f-min); font-weight: 500;
  font-size: clamp(30px, 4.6vw, 72px);
  letter-spacing: .1em; line-height: 1.5;
}
.flow__line--final { color: var(--ink); }
.flow__visual { display: grid; grid-template-columns: minmax(0, 1fr); width: min(900px, 100%); margin-top: 6vh; }
.flow__visual > * { grid-area: 1 / 1; }
.flow__diagram { width: 100%; overflow: visible; }
.flow__base { stroke: var(--line); stroke-width: 1; }
.flow__frag { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: butt; opacity: .5; }
.flow__seg { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.flow__gold { fill: none; stroke: var(--gold); stroke-width: 2; }
.flow__node circle { fill: var(--off); stroke: var(--ink); stroke-width: 1; transition: fill .4s; }
.flow__node.is-on circle { fill: var(--ink); }
.flow__node.is-gold circle { fill: var(--gold); stroke: var(--gold); }
.flow__node text { font-family: var(--f-en); font-size: 13px; letter-spacing: .26em; text-anchor: middle; fill: var(--ink); }
.flow__node text.ja { font-family: var(--f-sans); font-size: 12px; letter-spacing: .12em; fill: var(--muted); }
.flow__mark {
  align-self: center; justify-self: center;
  font-family: var(--f-en); font-weight: 300;
  font-size: clamp(44px, 8.6vw, 140px);
  letter-spacing: .3em; padding-left: .3em; line-height: 1;
  white-space: nowrap;
}
.flow__count {
  font-family: var(--f-en); font-size: 12px; letter-spacing: .24em;
  display: none;
}
.flow__count-total { color: var(--muted); margin-left: .8em; }

/* motion: one pinned stage, lines stacked */
.motion .flow__stage {
  height: 100vh; height: 100svh; min-height: 560px;
  padding: 0 var(--gutter);
  justify-content: center; gap: 0;
}
.motion .flow .sec-label { position: absolute; top: calc(var(--header-h) + 48px); left: var(--gutter); margin: 0; }
.motion .flow__lines { position: relative; width: 100%; height: 1.6em; font-size: clamp(30px, 4.6vw, 72px); }
.motion .flow__line { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; font-size: 1em; }
.motion .flow__mark { opacity: 0; }
.motion .flow__count { display: block; position: absolute; right: var(--gutter); bottom: 40px; }
.motion .flow__node text { opacity: .35; transition: opacity .4s; }
.motion .flow__node.is-on text { opacity: 1; }
.flow__mark { margin-top: 0; }
:root:not(.motion) .flow__visual { gap: 40px; }
:root:not(.motion) .flow__visual > * { grid-area: auto; }
:root:not(.motion) .flow__gold { display: none; }
:root:not(.motion) .flow__frag { display: none; }

/* =========================================================
   02 TRADE / 04 EC (diagram sections)
   ========================================================= */
.trade, .ec { position: relative; background: var(--off); }
.trade__stage, .ec__stage {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 56px) 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.trade__diagram, .ec__diagram { width: 100%; }
.is-mob { display: none; }

/* trade svg */
.t-path { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.t-path--gold { stroke: var(--gold); stroke-width: 1.3; }
.t-node circle { fill: var(--ink); }
.t-node .t-ring { fill: none; stroke: var(--ink); stroke-width: .6; opacity: .4; }
.t-node text, .t-cap { text-anchor: middle; }
.t-sm { font-family: var(--f-en); font-size: 11px; letter-spacing: .26em; fill: var(--muted); }
.t-lg { font-family: var(--f-en); font-size: 22px; letter-spacing: .16em; fill: var(--ink); }
.t-cap { font-family: var(--f-en); font-size: 11px; letter-spacing: .26em; fill: var(--muted); }
.t-cap--gold { fill: var(--gold-ink); }
.t-packet, .e-packet {
  fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 0.1 124; opacity: 0; transition: opacity .8s var(--ease);
}
.t-packet--gold { stroke: var(--gold); }
.is-flowing .t-packet, .is-flowing .e-packet { opacity: 1; animation: packet 3.2s linear infinite; }
@keyframes packet { to { stroke-dashoffset: -124.1; } }

.trade__points {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 48px);
  margin-top: 40px;
}
.trade__points li { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.pt-en { font-family: var(--f-en); font-size: 12px; letter-spacing: .26em; }
.pt-ja { font-size: 13px; color: var(--muted); }

/* ec svg */
.e-path { fill: none; stroke: var(--ink); stroke-width: .9; opacity: .8; }
.e-core { fill: var(--ink); }
.e-core--gold { fill: var(--gold); }
.e-ring { fill: none; stroke: var(--ink); stroke-width: .6; opacity: .35; }
.e-ring--gold { stroke: var(--gold); opacity: .8; }
.e-ch circle { fill: var(--off); stroke: var(--ink); stroke-width: 1; }
.ec text { text-anchor: middle; }
.e-lg { font-family: var(--f-en); font-size: 19px; letter-spacing: .2em; fill: var(--ink); }
.e-md { font-family: var(--f-en); font-size: 14px; letter-spacing: .24em; fill: var(--ink); }
.e-sm { font-family: var(--f-en); font-size: 10px; letter-spacing: .12em; fill: var(--ink); }
.e-ja { font-family: var(--f-sans); font-size: 13px; letter-spacing: .1em; fill: var(--muted); }
.e-packet { stroke-dasharray: 0.1 140; stroke-width: 3; }
.is-flowing .e-packet { animation-name: packet-ec; animation-duration: 3.6s; }
.e-packets path:nth-child(2) { animation-delay: -.9s !important; }
.e-packets path:nth-child(3) { animation-delay: -1.8s !important; }
.e-packets path:nth-child(4) { animation-delay: -2.7s !important; }
@keyframes packet-ec { to { stroke-dashoffset: -140.1; } }

.motion [data-reveal] { opacity: 0; transform: translateY(24px); }

/* =========================================================
   03 LOGISTICS
   ========================================================= */
.logi { position: relative; background: var(--off); }
.logi__intro {
  padding: clamp(120px, 20vh, 220px) 0 clamp(72px, 12vh, 140px);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  column-gap: clamp(32px, 6vw, 120px); align-items: end;
}
.logi__about .body { margin-top: 0; }
.logi__base { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.logi__base dt { font-family: var(--f-en); font-size: 12px; letter-spacing: .18em; color: var(--gold-ink); margin-bottom: 6px; }
.logi__base dd { font-size: 14px; line-height: 1.9; }

/* default (static / mobile): stacked steps */
.logi__theater { width: min(100% - var(--gutter) * 2, 1320px); margin: 0 auto; padding-bottom: 120px; }
.logi__frame { display: grid; gap: 72px; }
.logi__step { display: grid; gap: 24px; }
.logi__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy); }
.logi__media img { width: 100%; height: 100%; object-fit: cover; }
.logi__no { font-family: var(--f-en); font-weight: 300; font-size: 44px; line-height: 1; color: var(--gold-ink); }
.logi__en { font-family: var(--f-en); font-weight: 400; font-size: 24px; letter-spacing: .2em; margin: 14px 0 10px; }
.logi__ja { font-family: var(--f-min); font-size: 15px; letter-spacing: .1em; margin-left: .8em; }
.logi__text { font-size: 14px; line-height: 2; color: var(--muted); }
.logi__progress, .logi__place { display: none; }

/* desktop motion: pinned full-bleed theatre */
@media (min-width: 900px) {
  .motion .logi__theater { width: 100%; height: 100vh; height: 100svh; padding: 0; position: relative; }
  .motion .logi__frame { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--navy); }
  .motion .logi__step { position: absolute; inset: 0; display: block; }
  .motion .logi__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .motion .logi__media img { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; will-change: transform; }
  .motion .logi__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(17,17,17,.5), rgba(17,17,17,0) 55%);
  }
  .motion .logi__caption {
    position: absolute; left: var(--gutter); bottom: clamp(56px, 11vh, 120px);
    color: var(--off); max-width: 34em;
  }
  .motion .logi__no { font-size: clamp(72px, 9vw, 140px); color: var(--gold); }
  .motion .logi__en { font-size: clamp(28px, 3vw, 44px); margin: 18px 0 16px; }
  .motion .logi__text { color: rgba(247,247,245,.82); font-size: 15px; }
  .motion .logi__progress {
    display: flex; gap: 10px; position: absolute; right: var(--gutter); bottom: clamp(56px, 11vh, 120px);
  }
  .motion .logi__progress span { width: 56px; height: 1px; background: rgba(247,247,245,.28); overflow: hidden; }
  .motion .logi__progress i { display: block; height: 100%; background: var(--off); transform: scaleX(0); transform-origin: left; }
  .motion .logi__place {
    display: block; position: absolute; left: var(--gutter); top: calc(var(--header-h) + 40px);
    font-family: var(--f-en); font-size: 11px; letter-spacing: .3em; color: rgba(247,247,245,.75);
  }
}

/* =========================================================
   05 GLOBAL FLOW
   ========================================================= */
.global { position: relative; background: var(--off); }
.global__stage {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 48px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.global__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.global__head .lead { text-align: right; }
.global__map { position: relative; flex: 1; min-height: 300px; }
.global__svg {
  position: absolute; top: 50%; left: 50%;
  height: 100%; width: auto; max-width: 100%; aspect-ratio: 1440 / 528;
  transform: translate(-50%, -50%);
  overflow: hidden;
}
.global__dots { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; opacity: .2; }
.g-arc { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .7; }
.g-dest { fill: var(--ink); }
.g-dom { fill: none; stroke: var(--gold); stroke-width: .5; }
.g-dom-dot { fill: var(--ink); }
.global__ami { fill: var(--gold); }
.global__ami-ring { fill: none; stroke: var(--gold); stroke-width: .7; }

.global__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 48px); }
.global__step { border-top: 1px solid var(--line-strong); padding-top: 18px; display: flex; flex-direction: column; gap: 4px; transition: opacity .6s var(--ease), border-color .6s; }
.g-en { font-family: var(--f-en); font-size: clamp(22px, 2.2vw, 32px); letter-spacing: .2em; line-height: 1.2; }
.g-ja { font-size: 13px; color: var(--muted); }
.g-meta { font-family: var(--f-en); font-size: 11px; letter-spacing: .22em; color: var(--gold-ink); }
.motion .global__step { opacity: .28; }
.motion .global__step.is-on { opacity: 1; border-color: var(--ink); }

/* =========================================================
   06 ONE FLOW
   ========================================================= */
.one { position: relative; background: var(--off); }
.one__stage {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 48px) var(--gutter) 64px;
  display: grid; place-items: center; overflow: hidden;
}
.one__label { position: absolute; top: calc(var(--header-h) + 48px); left: var(--gutter); }
.one__flow { position: relative; width: min(1120px, 100%); }
.one__track { position: absolute; left: 10%; right: 10%; top: 6px; height: 1px; background: var(--line); }
.one__progress { position: absolute; inset: 0; background: var(--ink); transform-origin: left; }
.one__nodes { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.one__node { display: flex; flex-direction: column; align-items: center; text-align: center; }
.one__node i {
  display: block; width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--ink); background: var(--ink);
  transition: background-color .4s, border-color .4s, transform .4s var(--ease);
}
.one__node:last-child i { background: var(--gold); border-color: var(--gold); }
.one__en { font-family: var(--f-en); font-size: clamp(12px, 1.1vw, 15px); letter-spacing: .26em; margin-top: 30px; padding-left: .26em; }
.one__ja { font-family: var(--f-min); font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: .1em; }
.one__final { text-align: center; margin-top: 12vh; }
.one__mark {
  font-family: var(--f-en); font-weight: 300;
  font-size: clamp(52px, 11vw, 188px);
  letter-spacing: .28em; padding-left: .28em; line-height: 1;
  white-space: nowrap;
}
.one__copy { font-family: var(--f-min); font-size: clamp(16px, 1.5vw, 22px); letter-spacing: .24em; margin-top: 36px; }

.motion .one__progress { transform: scaleX(0); }
.motion .one__node i { background: var(--off); }
.motion .one__node.is-on i { background: var(--ink); transform: scale(1.15); }
.motion .one__node:last-child.is-on i { background: var(--gold); border-color: var(--gold); }
.motion .one__node .one__en, .motion .one__node .one__ja { opacity: .3; transition: opacity .5s; }
.motion .one__node.is-on .one__en, .motion .one__node.is-on .one__ja { opacity: 1; }
.motion .one__stage { display: block; padding: 0; }
.motion .one__flow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1120px, 100% - var(--gutter) * 2); }
.motion .one__final { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; }

/* =========================================================
   07 MISSION / VISION
   ========================================================= */
.mv { background: var(--navy); color: var(--off); }
.mv__inner { padding: clamp(140px, 24vh, 260px) 0; }
.mv__label {
  font-family: var(--f-en); font-size: 12px; letter-spacing: .36em; color: var(--gold);
  display: flex; align-items: baseline; gap: 18px;
}
.mv__label span { font-family: var(--f-sans); font-size: 11px; letter-spacing: .2em; color: rgba(247,247,245,.5); }
.mv__text {
  font-family: var(--f-min); font-weight: 500;
  font-size: clamp(28px, 4.2vw, 62px);
  line-height: 1.6; letter-spacing: .08em; margin-top: 36px;
}
.mv__block:last-child { margin-left: clamp(0px, 18vw, 300px); }
.mv__rule { display: block; width: 1px; height: clamp(80px, 14vh, 160px); background: var(--gold); opacity: .6; margin: clamp(56px, 10vh, 110px) 0 clamp(56px, 10vh, 110px) clamp(0px, 18vw, 300px); }
.motion [data-reveal-lines] .mask > span { display: block; transform: translateY(110%); }

/* =========================================================
   08 COMPANY
   ========================================================= */
.company { background: var(--off); }
.company__inner {
  padding: clamp(120px, 20vh, 220px) 0;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 6vw, 120px);
}
.company__title { font-family: var(--f-min); font-weight: 500; font-size: clamp(28px, 2.6vw, 38px); letter-spacing: .14em; margin-top: 32px; }
.company__list { border-top: 1px solid var(--ink); }
.company__row {
  display: grid; grid-template-columns: 160px 1fr; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.company__row dt { font-size: 13px; letter-spacing: .14em; color: var(--muted); padding-top: 2px; }
.company__row dd { font-size: 15px; line-height: 1.95; }
.company__en { display: block; font-family: var(--f-en); font-size: 12px; letter-spacing: .2em; color: var(--muted); margin-top: 4px; }
.company__biz li { position: relative; padding-left: 20px; }
.company__biz li::before { content: ""; position: absolute; left: 0; top: .95em; width: 8px; height: 1px; background: var(--gold); }
.company__tel { margin-top: 8px; font-size: 14px; color: var(--muted); }
.company__tel a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.company__tel span { margin-left: 1.6em; }
.motion [data-fade] { opacity: 0; }

/* =========================================================
   09 CONTACT
   ========================================================= */
.contact { background: var(--mint); }
.contact__inner {
  padding: clamp(120px, 20vh, 220px) 0;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 120px);
  align-items: start;
}
.contact__title { font-family: var(--f-min); font-weight: 500; font-size: clamp(34px, 4.4vw, 66px); line-height: 1.55; letter-spacing: .08em; margin-top: 40px; }
.contact__en { font-family: var(--f-en); font-size: 13px; letter-spacing: .36em; margin-top: 28px; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 36px;
  margin-top: 48px; padding: 18px 26px 18px 30px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 14px; letter-spacing: .16em; text-decoration: none; cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn i { position: relative; display: block; width: 28px; height: 1px; background: currentColor; }
.btn i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 1px; background: currentColor; transform: rotate(35deg); transform-origin: right; }
.btn:hover { background: var(--ink); color: var(--off); }
.btn--solid { background: var(--ink); color: var(--off); margin-top: 12px; }
.btn--solid:hover { background: var(--navy); border-color: var(--navy); }

.form { display: grid; gap: 28px; padding-top: 8px; }
.form__intro { font-size: 13px; color: var(--muted); line-height: 1.9; }
.req-note { display: block; }
.req, .req-note span { color: var(--gold-ink); }
.form__field { display: grid; gap: 8px; }
.form__field label { font-size: 13px; letter-spacing: .1em; }
.form__field input, .form__field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; padding: 10px 0 12px; font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}
.form__field textarea { resize: vertical; min-height: 140px; }
.form__field input:focus, .form__field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.form__field input:focus-visible, .form__field textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.form__field [aria-invalid="true"] { border-bottom-color: #9B2C2C; }
.form__err { font-size: 12px; color: #9B2C2C; }
.form__status { font-size: 14px; min-height: 1.6em; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: var(--off); }
.site-footer__inner { padding: 56px 0 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.site-footer__brand { display: flex; align-items: center; gap: 14px; font-family: var(--f-en); font-size: 13px; letter-spacing: .34em; }
.site-footer__flow { font-family: var(--f-en); font-size: 11px; letter-spacing: .3em; color: rgba(247,247,245,.55); }
.site-footer__copy { font-family: var(--f-en); font-size: 11px; letter-spacing: .12em; color: rgba(247,247,245,.55); }

/* =========================================================
   RESPONSIVE — tablet / mobile
   ========================================================= */
@media (max-width: 899px) {
  :root { --header-h: 64px; }
  body { font-size: 14px; }
  .sp-only { display: inline; }
  .chapter { display: none; }

  /* header + menu */
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; margin-right: -10px; padding: 0 10px;
    background: none; border: 0; cursor: pointer; position: relative; z-index: 2;
  }
  .nav-toggle__bar { display: block; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
  .site-header.is-open .nav-toggle__bar:first-child { transform: translateY(4px) rotate(20deg); }
  .site-header.is-open .nav-toggle__bar:nth-child(2) { transform: translateY(-4px) rotate(-20deg); }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    background: var(--off); color: var(--ink);
    padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
    visibility: hidden; opacity: 0;
    transition: opacity .45s var(--ease), visibility 0s linear .45s;
  }
  .site-header.is-open .nav { visibility: visible; opacity: 1; transition: opacity .45s var(--ease), visibility 0s; }
  .site-header.is-open { color: var(--ink); background: var(--off); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; font-size: 20px; letter-spacing: .2em; }
  .nav__list a::after { display: none; }
  .nav__ja { display: inline; font-family: var(--f-sans); font-size: 12px; letter-spacing: .1em; color: var(--muted); }

  /* hero */
  .hero { min-height: 560px; }
  .hero__map { top: 16%; width: 260vw; }
  .hero__title { font-size: clamp(24px, 7.4vw, 44px); line-height: 1.6; letter-spacing: .05em; }
  .hero__line { white-space: nowrap; }
  .hero__sub { font-size: 11px; gap: 10px; letter-spacing: .28em; }
  .hero__scroll { display: none; }
  .hero__coord { font-size: 14px; }

  /* flow */
  .flow__line { font-size: clamp(26px, 7.4vw, 40px); }
  .motion .flow__lines { height: 3.4em; font-size: clamp(26px, 7.4vw, 40px); }
  .motion .flow__line { line-height: 1.6; text-align: center; }
  .flow__visual { margin-top: 4vh; }
  .flow__node text { font-size: 30px; letter-spacing: .14em; }
  .flow__node text.ja { display: none; }
  .flow__seg, .flow__frag, .flow__base { stroke-width: 2.4; }
  .flow__gold { stroke-width: 4; }
  .flow__node circle { r: 11; stroke-width: 2; }
  .flow__mark { font-size: clamp(28px, 9vw, 56px); letter-spacing: .2em; padding-left: .2em; }
  .motion .flow__count { bottom: 28px; }

  /* trade / ec */
  .trade__stage, .ec__stage { grid-template-columns: 1fr; min-height: 0; padding: 120px 0 80px; row-gap: 48px; }
  .is-desk { display: none; }
  .is-mob { display: block; }
  .trade__diagram, .ec__diagram { max-width: 420px; margin: 0 auto; }
  .trade__points { grid-template-columns: 1fr; gap: 20px; margin-top: 0; }
  .t-lg { font-size: 20px; }
  .t-sm, .t-cap { font-size: 11px; letter-spacing: .2em; }
  .e-lg { font-size: 16px; }
  .display { font-size: clamp(52px, 17vw, 88px); margin: 28px 0 24px; }
  .lead { font-size: clamp(24px, 6.6vw, 32px); }

  /* logistics */
  .logi__intro { grid-template-columns: 1fr; row-gap: 32px; padding: 120px 0 56px; }
  .logi__frame { gap: 56px; }
  .logi__media { aspect-ratio: 4 / 3; }

  /* global */
  .global__stage { padding: 120px 0 56px; min-height: 0; gap: 32px; }
  .global__head { flex-direction: column; }
  .global__head .lead { text-align: left; }
  .global__map { flex: none; height: 62vw; min-height: 260px; }
  .global__svg { width: 250%; height: auto; max-width: none; transform: translate(-47.3%, -50%); }
  .global__steps { grid-template-columns: 1fr; gap: 16px; }
  .global__step { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-top: 14px; }
  .g-en { font-size: 20px; }
  .motion .global__stage { min-height: 100svh; padding: calc(var(--header-h) + 28px) 0 32px; gap: 20px; }
  .motion .global__map { flex: 1; height: auto; }

  /* one flow — vertical */
  .one__stage { padding: 120px var(--gutter) 80px; }
  .one__label { top: calc(var(--header-h) + 28px); }
  .one__track { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .one__progress { transform-origin: top; }
  .motion .one__progress { transform: scaleY(0); }
  .one__nodes { grid-template-columns: 1fr; gap: 30px; }
  .one__node { flex-direction: row; align-items: center; text-align: left; gap: 0; position: relative; padding-left: 40px; }
  .one__node i { position: absolute; left: 0; top: 50%; margin-top: -6.5px; }
  .one__en { margin-top: 0; padding-left: 0; font-size: 15px; width: 9.5em; }
  .one__ja { margin-top: 0; }
  .motion .one__flow { width: min(320px, 100% - var(--gutter) * 2); top: 47%; }
  .one__mark { font-size: clamp(32px, 10vw, 64px); letter-spacing: .2em; padding-left: .2em; }
  .one__copy { margin-top: 24px; letter-spacing: .18em; }

  /* mission */
  .mv__block:last-child, .mv__rule { margin-left: 0; }
  .mv__text { font-size: clamp(24px, 6.8vw, 36px); }

  /* company */
  .company__inner { grid-template-columns: 1fr; row-gap: 48px; padding: 110px 0; }
  .company__row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .company__tel span { display: block; margin-left: 0; }

  /* contact */
  .contact__inner { grid-template-columns: 1fr; row-gap: 64px; padding: 110px 0; }
  .contact__title { font-size: clamp(30px, 8.4vw, 44px); }

  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .hero__sub { letter-spacing: .2em; gap: 8px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .is-flowing .t-packet, .is-flowing .e-packet { opacity: 0; }
}
