/* ═══════════════════════════════════════════════════════
   STB JAPAN — camada v3 (set/2026)
   Casca do site inteiro: tokens, header de vidro, menu,
   hero em mosaico, seções da home, topo das internas,
   fecho de contato e rodapé. Padrão de acabamento do
   madeinbrazil.jp, na identidade navy da STB.
   Carregado por TODAS as páginas, depois de pages.css.
   ═══════════════════════════════════════════════════════ */

:root {
  /* cor */
  --navy: #0A192F;
  --navy-deep: #06101E;
  --navy-2: #13294A;
  --ink: #1B2433;
  --ink-soft: #5A6472;
  --slate: #B9C2D0;
  --mist: #F4F5F7;
  --paper: #FFFFFF;
  --line: rgba(10, 25, 47, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --gold: #C9A961;               /* o único dourado; só sobre escuro */
  --mib-paper: #F5F1E8;          /* convidado: só dentro do cartão MIB */
  --mib-green: #14573A;

  /* tipo */
  --font-display: 'Noto Serif Display', 'Shippori Mincho B1', 'Noto Serif JP', serif;
  --font-mincho: 'Shippori Mincho B1', 'Noto Serif JP', serif;
  --font-body: 'Inter', 'Noto Sans JP', system-ui, sans-serif;

  /* movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* medidas */
  --hdr-h: 80px;
  --gutter: clamp(20px, 4.4vw, 72px);
  --wrap: 1320px;
  --band: clamp(96px, 13vh, 160px);

  /* legado (pages.css / products.css leem estes nomes) */
  --color-navy: var(--navy);
  --color-gold: var(--gold);
  --color-text: var(--ink);
  --color-text-light: var(--ink-soft);
  --font-heading: var(--font-mincho);
}
@media (max-width: 900px) { :root { --hdr-h: 64px; } }

/* ── base ─────────────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'palt' 0;
}
html.is-locked, html.is-locked body { overflow: hidden; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible, .closing :focus-visible, .ftr :focus-visible, .menu :focus-visible, .phero :focus-visible, .hdr.is-top :focus-visible { outline-color: var(--gold); }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
:lang(ja) :is(h1, h2, h3), .closing__text:lang(ja) { word-break: auto-phrase; }
.nw { white-space: nowrap; }
.btn, .btn-mib, .pbtn, .btn-submit { text-wrap: balance; }
p { text-wrap: pretty; }
* { scrollbar-color: rgba(10, 25, 47, 0.35) transparent; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 1200;
  background: var(--navy); color: #fff; padding: 10px 18px; font-size: 13px; border-radius: 2px;
  transition: top 0.3s var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* par bilíngue: título + sub-rótulo embaixo (nunca rótulo em cima) */
.sec-head { margin-bottom: clamp(44px, 6vh, 72px); }
.sec-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.sec-title:lang(ja) { font-family: var(--font-mincho); font-weight: 600; letter-spacing: 0.04em; line-height: 1.3; font-size: clamp(1.9rem, 3.4vw, 3rem); }
/* a outra língua do par, como subtítulo (itálico latino / mincho japonês) */
.pair {
  margin-top: 12px;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem); letter-spacing: 0.01em; line-height: 1.4;
  color: var(--ink-soft);
}
.pair:lang(ja) { font-family: var(--font-mincho); font-style: normal; font-weight: 600; letter-spacing: 0.12em; font-size: 1rem; }

/* ── botões ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 30px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 1px solid transparent; border-radius: 2px;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn__arr { flex-shrink: 0; transition: transform 0.35s var(--ease-out); }
.btn:hover .btn__arr { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--gold); color: var(--navy); }
.btn--glass {
  color: #fff; border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--glass:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--navy { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn--navy:hover { background: var(--navy); color: #fff; }
.btn--gold { color: var(--gold); border-color: rgba(201, 169, 97, 0.7); background: transparent; }
.btn--gold:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.btn-mib {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-align: center;
  min-height: 50px; padding: 10px 28px;
  background: var(--mib-green); color: var(--mib-paper);
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px; letter-spacing: 0.05em;
  border-radius: 2px; text-decoration: none;
  transition: background-color 0.3s, transform 0.3s var(--ease-out);
}
.btn-mib:hover { background: #0e3f2a; color: var(--mib-paper); transform: translateY(-2px); }
.btn-mib__arrow { transition: transform 0.3s var(--ease-out); }
.btn-mib:hover .btn-mib__arrow { transform: translate(2px, -2px); }

/* ═══════════════ HEADER ═══════════════
   Sem JS: sempre a faixa de vidro. Com JS, nas páginas que abrem
   sobre foto, .is-top deixa transparente com o logo branco. */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--hdr-h);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s var(--ease-out), -webkit-backdrop-filter 0.45s, backdrop-filter 0.45s;
}
.hdr.is-top {
  color: #fff;
  background: rgba(255, 255, 255, 0);
  -webkit-backdrop-filter: blur(0) saturate(1);
  backdrop-filter: blur(0) saturate(1);
  border-bottom-color: rgba(255, 255, 255, 0);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hdr { background: rgba(255, 255, 255, 0.97); }
}
.hdr__bar {
  height: 100%; margin: 0 auto;   /* largura toda: o logo alinha com o título do hero em qualquer monitor */
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px);
}
.hdr__brand { position: relative; display: block; flex-shrink: 0; width: 136px; height: 51px; }
.hdr__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.45s var(--ease-out); }
.hdr__logo--light { opacity: 0; }
.hdr.is-top .hdr__logo--light { opacity: 1; }
.hdr.is-top .hdr__logo--dark { opacity: 0; }

.hdr__nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); margin-left: auto; }
.hdr__link {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 0;
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap;
  color: inherit; text-decoration: none;
}
.hdr__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease-expo);
}
.hdr__link:hover::after, .hdr__link[aria-current]::after { transform: scaleX(1); transform-origin: 0 50%; }
.hdr__link--ext { opacity: 0.78; }
.hdr__link--ext:hover { opacity: 1; }
.hdr__ext { opacity: 0.7; }
.hdr__sep { width: 1px; height: 15px; background: currentColor; opacity: 0.25; }

.hdr__right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.hdr__co { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; white-space: nowrap; opacity: 0.86; }

/* seletor JP | EN | PT — texto, largura fixa */
.language-switcher { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.language-switcher a, .language-switcher .lang-active {
  display: inline-block; width: 28px; text-align: center;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-indent: 0.12em;
  color: inherit; text-decoration: none; opacity: 0.5; transition: opacity 0.3s;
}
.language-switcher a:hover { opacity: 0.9; }
.language-switcher .lang-active { opacity: 1; }
.lang-bar { opacity: 0.3; font-size: 11px; }

.hdr__burger {
  display: none; position: relative; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.hdr__burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.hdr__burger span:nth-child(1) { top: 18px; }
.hdr__burger span:nth-child(2) { top: 25px; }
.hdr__burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 1240px) { .hdr__co { display: none; } }
@media (max-width: 1060px) {
  .hdr__nav, .hdr__right .language-switcher { display: none; }
  .hdr__burger { display: block; }
  .hdr__right { margin-left: auto; }
}
@media (max-width: 900px) { .hdr__brand { width: 122px; height: 46px; } }

/* menu aberto: header transparente por cima do painel navy */
html.menu-open .hdr {
  color: #fff; background: rgba(255, 255, 255, 0); border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.menu-open .hdr__logo--light { opacity: 1; }
html.menu-open .hdr__logo--dark { opacity: 0; }

/* ═══════════════ MENU (≤900px) ═══════════════ */
.menu {
  position: fixed; inset: 0; z-index: 990;
  display: flex; flex-direction: column;
  padding: calc(var(--hdr-h) + 5vh) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--navy-deep); color: #fff;
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0% at calc(100% - var(--gutter) - 12px) calc(var(--hdr-h) / 2));
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-expo), visibility 0s linear 0.7s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - var(--gutter) - 12px) calc(var(--hdr-h) / 2)); visibility: visible; transition: clip-path 0.7s var(--ease-expo), visibility 0s; }
.menu__nav { display: flex; flex-direction: column; }
.menu__link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mincho); font-weight: 600; font-size: clamp(1.45rem, 6.4vw, 2rem); letter-spacing: 0.06em;
  color: #fff; text-decoration: none;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.menu__link:lang(pt), .menu__link:lang(en) { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
.menu__link small { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); }
.menu__link[aria-current] { color: var(--gold); }
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.14s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.2s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.26s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.32s; }
.menu__ext { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.menu__ext a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-size: 14px; color: var(--slate); text-decoration: none; }
.menu__foot { margin-top: auto; padding-top: 40px; display: grid; gap: 14px; font-size: 13px; color: var(--slate); }
.menu__foot a { color: #fff; text-decoration: none; }
.menu__foot .language-switcher a, .menu__foot .language-switcher .lang-active { width: 40px; font-size: 13px; padding: 10px 0; color: #fff; }

/* ═══════════════ HERO (home) ═══════════════ */
.hero {
  --strip: 0px;
  position: relative; isolation: isolate;
  height: 100vh; height: 100svh; min-height: 620px; max-height: 1600px;
  display: flex; align-items: flex-end;
  color: #fff; background: var(--navy-deep); overflow: hidden;
}
.hero__mosaic {
  position: absolute; inset: 0; z-index: -2;
  display: grid; grid-template-columns: 2fr 1fr 2fr; grid-template-rows: repeat(3, 1fr); gap: 3px;
  background: var(--navy-deep);
}
.hero__tile { position: relative; margin: 0; overflow: hidden; background: #0c1a2c; animation: tile-in 1.25s var(--ease-expo) both; animation-delay: calc(var(--i) * 95ms); }
.hero__tile img { width: 100%; height: 100%; object-fit: cover; display: block; animation: tile-settle 2.4s var(--ease-expo) both; animation-delay: calc(var(--i) * 95ms); }
.hero__tile--tokyo { grid-column: 1; grid-row: 1 / -1; animation: none; }
.hero__tile--tokyo img { object-position: 50% 42%; }
.hero__tile--grain { grid-column: 2; grid-row: 1; }
.hero__tile--oil { grid-column: 2; grid-row: 2; }
.hero__tile--field { grid-column: 2; grid-row: 3; }
.hero__tile--river { grid-column: 3; grid-row: 1 / -1; }
@keyframes tile-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tile-settle { from { transform: scale(1.14); } to { transform: scale(1); } }

.hero::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 34%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 16, 30, 0.66) 0%, rgba(6, 16, 30, 0.22) 50%, rgba(6, 16, 30, 0) 100%);
}
.hero__scrim {
  position: absolute; left: 0; right: 0; bottom: var(--strip); height: 70%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 72% 78% at 0% 100%, rgba(6, 16, 30, 0.56) 0%, rgba(6, 16, 30, 0.32) 45%, rgba(6, 16, 30, 0) 100%),
    linear-gradient(0deg, rgba(6, 16, 30, 0.92) 0%, rgba(6, 16, 30, 0.66) 30%, rgba(6, 16, 30, 0.2) 66%, rgba(6, 16, 30, 0) 100%);
}
.hero__content {
  width: 100%;
  padding: 0 var(--gutter) calc(var(--strip) + clamp(56px, 10vh, 112px));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.35rem, 6.1vw, 6rem); line-height: 1.02; letter-spacing: -0.012em;
  text-wrap: initial;
}
.hero__title em { font-style: italic; font-weight: 300; color: var(--gold); text-shadow: 0 1px 14px rgba(6, 16, 30, 0.6); }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__line > span { display: inline-block; animation: line-up 1.2s var(--ease-expo) both; animation-delay: 0.42s; }
.hero__line + .hero__line > span { animation-delay: 0.54s; }
@keyframes line-up { from { transform: translateY(108%); } to { transform: translateY(0); } }
.hero__sub {
  margin-top: clamp(16px, 2.4vh, 26px);
  font-family: var(--font-mincho); font-weight: 600;
  font-size: clamp(1.05rem, 1.55vw, 1.5rem); letter-spacing: 0.14em; line-height: 1.7;
  text-shadow: 0 1px 18px rgba(6, 16, 30, 0.5);
}
.hero__sub:lang(pt), .hero__sub:lang(en) { font-family: var(--font-display); font-style: italic; font-weight: 300; letter-spacing: 0.01em; font-size: clamp(1.15rem, 1.7vw, 1.6rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3.6vh, 40px); }
.hero__sub, .hero__actions { animation: fade-up 1s var(--ease-out) both; animation-delay: 0.78s; }
.hero__actions { animation-delay: 0.9s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 22px; flex-shrink: 0;
  font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  animation: fade-up 1s var(--ease-out) both; animation-delay: 1.1s;
}
.hero__route { display: inline-flex; align-items: center; gap: 10px; opacity: 0.78; }
.route__icon { flex-shrink: 0; }
.hero__scroll { display: flex; align-items: center; gap: 12px; opacity: 0.85; }
.hero__scroll i { display: block; width: 1px; height: 46px; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); animation: drip 2s var(--ease-out) infinite; }
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* retrato (celular, tablet em pé): par alto em cima, faixa de 3 fotos embaixo */
@media (orientation: portrait), (max-width: 700px) {
  .hero { --strip: clamp(104px, 17svh, 190px); min-height: 600px; }
  .hero__mosaic { grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr var(--strip); }
  .hero__tile--tokyo { grid-column: 1 / 4; grid-row: 1; }
  .hero__tile--river { grid-column: 4 / 7; grid-row: 1; }
  .hero__tile--grain { grid-column: 1 / 3; grid-row: 2; }
  .hero__tile--oil { grid-column: 3 / 5; grid-row: 2; }
  .hero__tile--field { grid-column: 5 / 7; grid-row: 2; }
  .hero__scrim { height: 62%; }
  .hero__content { padding-bottom: calc(var(--strip) + 30px); }
  .hero__meta { display: none; }
}
@media (max-width: 700px) {
  .hero__title { font-size: clamp(2.1rem, 9.2vw, 3rem); }
  .hero__actions .btn { flex: 1 1 auto; min-width: 0; padding: 0 18px; }
}
/* celular deitado: o hero cabe na tela, com título e botões visíveis */
@media (orientation: landscape) and (max-height: 520px) {
  .hero { min-height: 0; }
  .hero__title { font-size: clamp(1.9rem, 8.5vh, 2.6rem); }
  .hero__content { padding-bottom: 24px; }
  .hero__sub { margin-top: 10px; }
  .hero__actions { margin-top: 16px; }
}

/* ═══════════════ HOME — Made in Brazil (cartão convidado) ═══════════════ */
.mib { padding: 0 0 var(--band); background: var(--paper); }
.mib__card {
  display: grid; grid-template-columns: 1.25fr 1fr;
  background: var(--mib-paper); border: 1px solid rgba(20, 87, 58, 0.16); border-radius: 4px; overflow: hidden;
}
.mib__media { position: relative; min-height: 460px; margin: 0; }
.mib__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.mib__card:hover .mib__media img { transform: scale(1.03); }
.mib__body { padding: clamp(40px, 5vw, 76px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.mib__logo { width: 210px; height: auto; margin-bottom: 34px; }
.mib__title {
  font-family: var(--font-mincho); font-weight: 600; color: var(--mib-green);
  font-size: clamp(1.7rem, 2.7vw, 2.2rem); line-height: 1.4; letter-spacing: 0.05em;
}
.mib__title:lang(pt), .mib__title:lang(en) { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.005em; line-height: 1.15; font-size: clamp(2rem, 3.2vw, 2.5rem); }
.mib__text { margin: 22px 0 34px; max-width: 34em; line-height: 2; color: #3a4a40; font-size: 0.98rem; }
.mib__text:lang(ja) { word-break: auto-phrase; }

/* ═══════════════ HOME — quem somos ═══════════════ */
.intro { padding: var(--band) 0; background: var(--paper); }
.bizlist + .intro { padding-top: 0; }   /* a lista de negócios já fecha com var(--band): sem espaço dobrado */
.intro__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.intro__title {
  font-family: var(--font-mincho); font-weight: 600; color: var(--navy);
  font-size: clamp(1.8rem, 3.1vw, 2.9rem); line-height: 1.5; letter-spacing: 0.05em;
}
.intro__title:lang(pt), .intro__title:lang(en) { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.005em; line-height: 1.15; font-size: clamp(2.1rem, 3.8vw, 3.4rem); }
.intro__text { margin: 30px 0 38px; max-width: 36em; line-height: 2.1; color: var(--ink); }
.intro__facts { border-top: 1px solid var(--navy); margin-top: 8px; }
.intro__fact { display: grid; grid-template-columns: 8.5em 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.intro__fact dt { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-soft); padding-top: 3px; }
.intro__fact dd { margin: 0; font-size: 0.98rem; line-height: 1.85; color: var(--navy); }

/* ═══════════════ HOME — negócios em faixas de foto ═══════════════ */
.bizlist { background: var(--paper); }
.bizlist__head { padding: var(--band) 0 clamp(40px, 5vh, 64px); }
.bizlist__rows { display: grid; gap: clamp(16px, 2vw, 28px); padding-bottom: var(--band); }
.bizlist--page .bizlist__rows { padding-top: clamp(48px, 7vh, 80px); }
.bizlist__head .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.biz { display: grid; grid-template-columns: 1fr 1fr; border-radius: 2px; overflow: hidden; }
.biz--dark { background: var(--navy); color: #fff; }
.biz--light { background: var(--mist); color: var(--ink); }
.biz--paper { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.biz__media { position: relative; margin: 0; overflow: hidden; min-height: clamp(360px, 34vw, 500px); background: #0c1a2c; }
.biz__media > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
@media (hover: hover) { .biz:hover .biz__media.is-in > img:first-child { transform: scale(1.035); } }
.biz__badge {
  position: absolute; z-index: 2; left: clamp(18px, 2.4vw, 32px); bottom: clamp(18px, 2.4vw, 32px);
  height: 56px; width: auto; max-width: 180px; object-fit: contain;
  background: #fff; padding: 10px 16px; border-radius: 2px;
  box-shadow: 0 10px 26px -12px rgba(6, 16, 30, 0.55);
}
.biz__body {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(44px, 5vw, 80px) clamp(28px, 4.5vw, 72px);
}
.biz--flip .biz__media { order: 2; }
.biz__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.9rem, 2.7vw, 2.8rem); line-height: 1.12; letter-spacing: -0.01em;
}
.biz__title .strong { font-style: italic; font-weight: 400; }
.biz--dark .biz__title { color: #fff; }
.biz--light .biz__title, .biz--paper .biz__title { color: var(--navy); }
.biz__title:lang(ja) { font-family: var(--font-mincho); font-weight: 600; letter-spacing: 0.04em; line-height: 1.45; font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.biz__sub {
  margin-top: 18px; font-family: var(--font-mincho); font-weight: 600;
  font-size: 1.05rem; letter-spacing: 0.12em;
}
.biz--dark .biz__sub { color: var(--gold); }
.biz--light .biz__sub, .biz--paper .biz__sub { color: var(--ink-soft); }
.biz__text { margin: 26px 0 38px; max-width: 34em; line-height: 2.05; font-size: 0.98rem; }
.biz--dark .biz__text { color: var(--slate); }
.biz__text p + p { margin-top: 16px; }
.biz__body .business-list { align-self: stretch; margin-top: -8px; }

/* ═══════════════ TOPO DAS INTERNAS (foto) ═══════════════ */
.phero {
  position: relative; isolation: isolate;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin: clamp(16px, 2.4vw, 28px) auto 0;
  min-height: clamp(320px, 38vw, 520px);
  display: flex; align-items: flex-end;
  color: #fff; background: var(--navy-deep); overflow: hidden; border-radius: 2px;
}
.phero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); animation: tile-settle 2.4s var(--ease-expo) both; }
.phero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(6, 16, 30, 0.86) 0%, rgba(6, 16, 30, 0.35) 45%, rgba(6, 16, 30, 0) 80%);
}
.phero__inner { width: 100%; padding: 0 clamp(24px, 4vw, 56px) clamp(36px, 5vw, 64px); }
.phero__title {
  font-family: var(--font-mincho); font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.35; letter-spacing: 0.06em;
  animation: fade-up 1s var(--ease-out) both; animation-delay: 0.2s;
}
.phero__title:lang(pt), .phero__title:lang(en) { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em; line-height: 1.08; font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
.phero .pair { color: rgba(255, 255, 255, 0.78); animation: fade-up 1s var(--ease-out) both; animation-delay: 0.32s; }

/* internas: o header de vidro fica por cima desde o topo; o conteúdo começa abaixo dele */
body.pg main { padding-top: var(--hdr-h); }

/* ═══════════════ FECHO DE CONTATO ═══════════════ */
.closing-sec { padding: 0 0 var(--band); }
.closing {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 2px;
  padding: clamp(80px, 11vw, 140px) clamp(24px, 5vw, 64px);
  background: var(--navy-deep); color: #fff; text-align: center;
}
.closing__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.closing::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 16, 30, 0.7), rgba(6, 16, 30, 0.82)); }
.closing__title {
  font-family: var(--font-mincho); font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: 0.1em;
}
.closing__title:lang(pt), .closing__title:lang(en) { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.005em; font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.closing__text { margin: 20px auto 40px; max-width: 34em; color: var(--slate); line-height: 2; }

/* ═══════════════ RODAPÉ ═══════════════ */
.ftr { background: var(--navy-deep); color: #E8EBF0; padding: clamp(84px, 11vh, 128px) 0 calc(32px + env(safe-area-inset-bottom)); }
.ftr a { color: inherit; text-decoration: none; }
.ftr__top { display: grid; grid-template-columns: 1.1fr 2fr; gap: clamp(48px, 7vw, 110px); }
.ftr__logo { width: 190px; height: auto; display: block; }
.ftr__co { margin-top: 26px; font-size: 13px; letter-spacing: 0.1em; color: var(--slate); line-height: 1.9; }
.ftr__domain { margin-top: 6px; font-size: 12.5px; letter-spacing: 0.14em; color: var(--gold); }
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.ftr__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ftr__title { margin-bottom: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.ftr__col a { font-size: 14px; line-height: 1.7; opacity: 0.74; white-space: nowrap; transition: opacity 0.3s, color 0.3s, transform 0.3s var(--ease-out); }
.ftr__col a:hover { opacity: 1; color: var(--gold); transform: translateX(4px); }
.ftr__note { font-size: 13px; line-height: 1.95; color: var(--slate); opacity: 0.8; }
.ftr__partners { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; padding: 12px 18px; background: #fff; border-radius: 2px; }
.ftr__partners a { opacity: 1; transform: none; }
.ftr__partners a:hover { transform: translateY(-2px); }
.ftr__partners a, .ftr__partners img { flex-shrink: 0; }
.ftr__partners img { height: 26px; width: auto; display: block; }
.ftr__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(64px, 9vh, 96px); padding-top: 26px; border-top: 1px solid var(--line-dark);
  font-size: 12.5px; color: var(--slate); opacity: 0.8;
}
.ftr__tag { display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0.1em; }

/* ═══════════════ revelação na rolagem (só com JS) ═══════════════ */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* mídia: uma cortina na cor da faixa desliza para cima (a imagem fica visível para o lazy-load) */
.js [data-reveal="media"] { opacity: 1; transform: none; }
.js [data-reveal="media"]::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--curtain, var(--navy)); transform-origin: 50% 0;
  transition: transform 1.3s var(--ease-expo);
}
.js [data-reveal="media"].is-in::after { transform: scaleY(0); }
.js [data-reveal="media"] > img:first-child { transform: scale(1.08); transition: transform 1.8s var(--ease-expo); }
.js [data-reveal="media"].is-in > img:first-child { transform: scale(1); }
.biz--light { --curtain: var(--mist); }
.biz--paper { --curtain: var(--paper); }
.js [data-reveal="media"] .biz__badge { opacity: 0; transition: opacity 0.6s var(--ease-out) 0.8s; }
.js [data-reveal="media"].is-in .biz__badge { opacity: 1; }

/* ═══════════════ responsivo ═══════════════ */
@media (max-width: 980px) {
  .mib__card { grid-template-columns: 1fr; }
  .mib__media { min-height: 0; aspect-ratio: 16 / 9; }
  .intro__grid { grid-template-columns: 1fr; }
  .biz { grid-template-columns: 1fr; min-height: 0; }
  .biz--flip .biz__media { order: 0; }
  .biz__media { aspect-ratio: 16 / 10; min-height: 0; }
  .ftr__top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mib .wrap { padding: 0; }
  .mib__card { border-radius: 0; border-left: 0; border-right: 0; }
  .intro__fact { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .biz__body { padding: 36px 24px 44px; }
  .biz__title:lang(ja) { font-size: clamp(1.4rem, 6.4vw, 1.7rem); }
  .sec-title { font-size: clamp(1.9rem, 8.5vw, 2.3rem); }   /* PT/EN: abaixo do título do hero (H1) */
  .closing__title:lang(pt), .closing__title:lang(en) { font-size: clamp(1.9rem, 8.5vw, 2.3rem); }   /* ペットフード原料供給事業 cabe em 375 px */
  .bizlist__rows .wrap, .bizlist__rows { padding-left: 0; padding-right: 0; }
  .biz { border-radius: 0; }
  .closing-sec .wrap { padding: 0; }
  .closing { border-radius: 0; }
  .phero { width: 100%; margin-top: 0; border-radius: 0; }
  .btn { width: 100%; }
  .hero__actions .btn { width: auto; }
  .ftr__cols { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .ftr__cols .ftr__col:last-child { grid-column: 1 / -1; }
  .ftr__col a { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal="media"] > img:first-child { opacity: 1; transform: none; }
  .js [data-reveal="media"]::after { display: none; }
}
