/* ============================================================
   Design tokens — dark navy × orange × white (original MIRAI TRADE style)
   ============================================================ */
:root {
  --bg: #0a1628;
  --bg-2: #0d1a2d;
  --bg-deep: #070f1c;
  --card: #122036;
  --card-hover: #172a45;
  --line: #1e3a5f;
  --line-soft: rgba(174, 189, 208, 0.14);

  --white: #ffffff;
  --text: #e8eef6;
  --muted: #b3c1d3;
  --muted-2: #8d9fb7;

  --orange: #E85A2A;
  --orange-light: #FF7A4D;
  --orange-dark: #C74A1E;
  --orange-glow: rgba(232, 90, 42, 0.45);
  --gold: #E8C489;

  --font-sans: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-brand: 'Red Hat Display', var(--font-sans);
  --font-hand: 'Klee One', var(--font-sans);

  --container: 1160px;
  --gutter: 24px;
  --header-h: 76px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html:lang(zh) { --font-sans: 'Noto Sans SC', sans-serif; --font-hand: 'Noto Sans SC', sans-serif; }
html:lang(vi) { --font-sans: 'Be Vietnam Pro', sans-serif; --font-hand: 'Be Vietnam Pro', sans-serif; }

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  body { font-size: 17px; }
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, .biz-title, .contact-heading span,
.strength-label, .service-tile span, .hand-note span {
  text-wrap: balance;
}

p, li, dd, dt { text-wrap: pretty; }

.flow-step p, .strength-text, .section-head p, .page-lead, .hero-lead,
.overview-lead, .overview-eyebrow, .overview-closing, .contact-desc, .news-empty p {
  text-wrap: balance;
}

/* Japanese: break at phrase boundaries instead of mid-word (Chrome/Edge) */
html:lang(ja) body {
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

a[href^="tel:"] { white-space: nowrap; }

:focus-visible {
  outline: 2px solid var(--orange-light);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--wide { max-width: calc(1360px + var(--gutter) * 2); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 0.9rem;
}

.kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

.section { padding: 112px 0; }
.section--alt { background: var(--bg-2); }

.section-title {
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--white);
}

.section-head {
  margin-bottom: 3rem;
}

/* description sits directly under the heading, left-aligned, at a comfortable line length */
.section-head p {
  max-width: 44em;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.8rem 2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 55%, var(--orange-dark) 100%);
  color: var(--white);
  box-shadow: 0 6px 22px var(--orange-glow);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--orange-glow); }

.btn--ghost,
.btn--light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover,
.btn--light:hover { border-color: var(--orange-light); color: var(--orange-light); }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 22, 40, 0.97); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

/* header logo: identical to the original site (colours kept, glow makes the
   dark pyramid readable on navy, slight grow on hover) */
.brand-logo {
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.4))
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.2))
    drop-shadow(0 0 24px rgba(232, 90, 42, 0.5))
    brightness(1.15)
    contrast(1.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo { width: auto; height: 40px; }

.brand:hover .brand-logo {
  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.3))
    drop-shadow(0 0 32px rgba(232, 90, 42, 0.5))
    brightness(1.2)
    contrast(1.1);
  transform: scale(1.03);
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.nav-links a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.flag {
  width: 20px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.lang-menu { position: relative; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.4rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s var(--ease);
}

.lang-toggle:hover,
.lang-menu.is-open .lang-toggle { border-color: var(--orange); }

.lang-toggle .chev { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.lang-menu.is-open .chev { transform: rotate(180deg); }

.lang-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 0.4rem 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 10;
}

.lang-menu.is-open .lang-options { opacity: 1; visibility: visible; transform: none; }

.lang-options button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: none;
  border: 0;
  text-align: left;
  font-size: 0.95rem;
}

.lang-options button:hover { background: var(--card-hover); }
.lang-options button.is-active { color: var(--orange-light); font-weight: 700; }

.lang-options button.is-active::after {
  content: '';
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.header-cta { min-height: 42px; padding: 0.5rem 1.4rem; font-size: 0.88rem; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }

.site-header.is-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Hero (original style: glowing logo, gradient wordmark)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
  text-align: center;
}

.hero-bg,
.page-hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 18% 82%, rgba(232, 90, 42, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse at 82% 18%, rgba(232, 196, 137, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0a1628 0%, #0d1a2d 55%, #0a1225 100%);
}

.hero-grid,
.page-hero::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 95, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.45) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  margin-bottom: 2.2rem;
}

.logo-glow {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 35%),
    radial-gradient(circle, rgba(232, 90, 42, 0.45) 0%, rgba(232, 196, 137, 0.18) 45%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  width: 160px;
  height: auto;
  filter:
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.25))
    drop-shadow(0 0 32px rgba(232, 90, 42, 0.35))
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45))
    brightness(1.08);
  animation: logoFloat 5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 1.3rem;
  background: linear-gradient(120deg, #ffffff 0%, var(--gold) 50%, var(--orange-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* "AI" in MIRAI: red with a soft, slowly breathing glow; the rest keeps the gradient */
.hero-ai {
  background: linear-gradient(180deg, #ff6a55 0%, #e8342a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255, 70, 50, 0.35));
  animation: aiGlow 4s ease-in-out infinite;
}

@keyframes aiGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 70, 50, 0.25)); }
  50% { filter: drop-shadow(0 0 14px rgba(255, 70, 50, 0.5)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ai { animation: none; }
}

.hero-tagline {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1.4rem;
}

.hero-tagline span { display: inline-block; }

.hero-lead {
  max-width: 40em;
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0 auto 2.4rem;
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ============================================================
   Ticker
   ============================================================ */
.ticker {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.8rem;
  padding: 1.1rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticker li + li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 1.8rem;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange-glow);
}

/* ============================================================
   News
   ============================================================ */
.news { padding: 96px 0; }

.news-grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 2rem 4rem;
  align-items: start;
}

.news-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 1.8rem;
}

.news-list li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.news-list li:last-child { border-bottom: 0; }
.news-list time { color: var(--orange-light); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; }
.news-list a:hover { color: var(--orange-light); }

.news-open {
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  line-height: inherit;
  letter-spacing: inherit;
  transition: color 0.2s var(--ease);
}

.news-open:hover,
.news-open:focus-visible { color: var(--orange-light); }

.news-empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  color: var(--muted);
}

.news-soon {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.2rem;
}

/* ============================================================
   Business list
   ============================================================ */
.biz-list { display: grid; gap: 18px; }

.biz-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 96px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 2.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.biz-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--orange-light), var(--orange-dark));
  opacity: 0.7;
}

.biz-num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 122, 77, 0.8);
}

.biz-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: var(--orange-light);
  background: radial-gradient(circle, rgba(232, 90, 42, 0.22) 0%, rgba(232, 90, 42, 0.04) 65%, transparent 72%);
  border: 1px solid rgba(232, 90, 42, 0.45);
  box-shadow: 0 0 24px rgba(232, 90, 42, 0.18), inset 0 0 18px rgba(232, 90, 42, 0.12);
}

.biz-icon svg { width: 40px; height: 40px; }

.biz-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--white);
}

.biz-desc { color: var(--muted); font-size: 0.97rem; }

.biz-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange-light);
}

.biz-more .arrow { transition: transform 0.3s var(--ease); }

a.biz-row:hover {
  border-color: var(--orange);
  background: var(--card-hover);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(232, 90, 42, 0.2);
}

a.biz-row:hover .biz-more .arrow { transform: translateX(5px); }

/* ============================================================
   Strengths
   ============================================================ */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 3.5rem;
}

.strength-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.strength-card:hover { border-color: var(--orange); transform: translateY(-4px); }

.strength-num {
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.strength-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.strength-label .en { font-weight: 500; color: var(--muted-2); }
html:lang(en) .strength-label .en { display: none; }

.strength-text { font-size: 0.94rem; color: var(--muted); line-height: 1.8; }

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4.5rem;
  align-items: start;
}

.brand-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 1.5rem;
  /* no frame: just a soft glow behind the logo that fades out at the edges */
  background: radial-gradient(circle at 50% 45%, rgba(232, 90, 42, 0.2) 0%, rgba(232, 90, 42, 0.06) 38%, transparent 62%);
}

/* logo + caption share one box so the caption can be centred under the logo's wordmark */
.brand-mark {
  position: relative;
  width: 44%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.brand-panel-logo {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(232, 90, 42, 0.35)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.35)) brightness(1.1);
  animation: logoFloat 6s ease-in-out infinite;
}

/* In logo-vertical.png the "MIRAI TRADE" wordmark spans the left 88.12% of the image
   (the orange triangle makes the image wider than the text), so centre the caption on
   that span, not on the whole image. padding-left offsets the trailing letter-spacing. */
.brand-panel figcaption {
  position: relative;
  width: 88.12%;
  display: flex;
  justify-content: center;
  white-space: nowrap;
  padding-left: 0.3em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.brand-panel--icon { aspect-ratio: 20 / 13; }

.big-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  color: var(--orange-light);
  border: 1px solid rgba(232, 90, 42, 0.5);
  background: radial-gradient(circle, rgba(232, 90, 42, 0.25) 0%, rgba(232, 90, 42, 0.05) 65%, transparent 72%);
  box-shadow: 0 0 50px rgba(232, 90, 42, 0.25), inset 0 0 26px rgba(232, 90, 42, 0.15);
}

.big-icon svg { width: 72px; height: 72px; }

.about-desc { color: var(--muted); margin: 1.4rem 0 2.2rem; }

.info-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 1.8rem;
  font-size: 0.97rem;
}

.info-table > div {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.info-table > div:last-child { border-bottom: 0; }

@media (min-width: 721px) {
  html:lang(en) .info-table > div { grid-template-columns: 11.5em 1fr; }
  html:lang(vi) .info-table > div { grid-template-columns: 13.5em 1fr; }
}

.info-table dt { color: var(--muted-2); font-weight: 500; }
.info-table dd { color: var(--text); }
.info-table dd a { border-bottom: 1px solid var(--line); }
.info-table dd a:hover { color: var(--orange-light); border-color: var(--orange); }

.access { margin-top: 2.2rem; }

.access-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.access-list { font-size: 0.97rem; margin-bottom: 1.6rem; }

.access-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.access-list .time { color: var(--orange-light); font-weight: 500; white-space: nowrap; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.map-wide { aspect-ratio: 21 / 7; margin-top: 4rem; }

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* dark-mode map to match the page */
  filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95) contrast(0.95);
}

/* ============================================================
   Partners
   ============================================================ */
.partners {
  padding: 56px 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partners-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2.5rem;
}

.partners .kicker { margin: 0; }

.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0;
  font-size: 0.97rem;
  color: var(--text);
}

.partner-list li { white-space: nowrap; }

.partner-list li + li::before {
  content: '/';
  margin: 0 1.1rem;
  color: var(--line);
}

/* desktop strip: when the list wraps, hide the "/" that would start a new line —
   every item gets a fixed-width separator and the list's first column of them is clipped off */
@media (min-width: 961px) {
  .partners .partner-list { margin-left: -2.6rem; clip-path: inset(0 0 0 2.6rem); }
  .partners .partner-list li::before {
    content: '/';
    display: inline-block;
    width: 2.6rem;
    margin: 0;
    text-align: center;
    color: var(--line);
  }
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4.5rem;
  align-items: start;
}

.contact-heading {
  font-weight: 700;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1.4rem;
}

.contact-heading span { display: block; }
html:is(:lang(en), :lang(vi)) .contact-heading { font-size: clamp(1.45rem, 2.3vw, 1.95rem); }

.contact-desc { color: var(--muted); margin-bottom: 2.2rem; }

.contact-info { font-size: 0.97rem; color: var(--text); }
.contact-info li { padding: 0.4rem 0; }
.contact-info .label { display: inline-block; min-width: 3.2em; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; color: var(--orange-light); }
.contact-info a:hover { color: var(--orange-light); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }

.form-group { margin-bottom: 1.3rem; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--white);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-2); }

.form-group textarea { min-height: 150px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 90, 42, 0.18);
}

.contact-form .btn { width: 100%; margin-top: 0.4rem; }

/* ============================================================
   Footer (original site style: social icons, copyright, legal links)
   ============================================================ */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-2);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.social-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover,
.social-btn:focus-visible {
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(232, 90, 42, 0.5);
}

.social-btn--instagram:hover,
.social-btn--instagram:focus-visible {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn--rednote:hover,
.social-btn--rednote:focus-visible { background: #FF2442; }

.social-btn--amazon:hover,
.social-btn--amazon:focus-visible { background: #FF9900; }

/* 小紅書's logo is its wordmark */
.rednote-mark {
  font-family: 'Noto Sans SC', 'Noto Sans JP', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.footer-copy { margin: 0; }
.footer-copy .nowrap { white-space: nowrap; }

@media (max-width: 560px) {
  .site-footer { font-size: 0.78rem; }
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.footer-legal button {
  background: none;
  border: 0;
  padding: 0.3rem 0;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.footer-legal button:hover { color: var(--orange-light); }
.footer-legal .sep { color: var(--orange); }

/* ============================================================
   Legal dialog
   ============================================================ */
.legal-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(80vh, 760px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
}

.legal-dialog::backdrop { background: rgba(3, 8, 16, 0.75); backdrop-filter: blur(4px); }

.legal-dialog-head {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.8rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.legal-dialog-head h2 { font-size: 1.25rem; font-weight: 700; color: var(--white); }

.dialog-close {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  line-height: 1;
}

.dialog-close:hover { border-color: var(--orange); color: var(--orange-light); }

.legal-body { padding: 1.4rem 1.8rem 2rem; font-size: 0.95rem; color: var(--muted); }
.legal-body h3 { font-size: 1.02rem; color: var(--white); margin: 1.6rem 0 0.5rem; }
.legal-body h3:first-child { margin-top: 0; }
.legal-body ul { list-style: disc; padding-left: 1.4rem; margin: 0.4rem 0; }

/* News detail (same frame as the legal dialogs) */
.news-dialog { width: min(1080px, calc(100vw - 48px)); max-height: 92vh; }
.news-dialog .legal-dialog-head { align-items: flex-start; }
.news-dialog .legal-dialog-head h2 { font-size: 1.15rem; line-height: 1.6; }
.news-dialog-date { display: block; color: var(--orange-light); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; }
.news-dialog-body p + p { margin-top: 0.9rem; }

.news-dialog-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 1.6rem;
}

.news-dialog-gallery img {
  width: 100%;
  height: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
}

.news-dialog-gallery[data-count="3"] img { aspect-ratio: 4 / 5; object-fit: cover; }
/* graphics with text (e.g. product flyers): show whole, never crop */
.news-dialog-gallery[data-fit="contain"] img { aspect-ratio: 2 / 3; object-fit: contain; }

[data-lightbox] img { cursor: zoom-in; transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease); }
[data-lightbox] img:hover { border-color: var(--orange); opacity: 0.92; }
[data-lightbox] img:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 2px; }

/* ============================================================
   Lightbox (photo viewer)
   ============================================================ */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}

.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(3, 8, 16, 0.92); backdrop-filter: blur(4px); }

.lightbox-img {
  max-width: calc(100vw - 160px);
  max-height: calc(100dvh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox .dialog-close { position: absolute; width: 48px; height: 48px; background: rgba(18, 32, 54, 0.85); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-nav[hidden] { display: none; }

.lightbox-count {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ============================================================
   Sub page: Web / AI — service infographic (one image per language)
   ============================================================ */
.ai-visual-section { padding-bottom: 0; }

.ai-visual {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(232, 90, 42, 0.08);
}

.ai-visual img { width: 100%; height: auto; border: 0; border-radius: 0; }
.ai-visual img:hover { opacity: 1; }

/* ============================================================
   Sub page: Amazon — heading/lead side by side, then product cards
   ============================================================ */
.overview-top.overview-top--split { align-items: end; }
.overview-top--split .overview-lead { margin-bottom: 1.4rem; }

.product-showcase { margin-bottom: 3rem; }

.product-showcase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.2rem;
  margin-bottom: 1.2rem;
}

.product-showcase-head .kicker { margin: 0; }
.product-showcase-head h3 { font-size: 1.15rem; font-weight: 700; color: var(--white); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.product-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* product photos have light backgrounds: fill the frame so no edge shows */
.product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--white);
  border: 0;
  border-radius: 0;
}

.product-card img:hover { opacity: 1; }

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.3rem 1.15rem;
  border-top: 1px solid var(--line);
}

.product-card-name { font-size: 1.02rem; font-weight: 700; color: var(--white); }
.product-card-desc { font-size: 0.9rem; color: var(--muted); }

/* ============================================================
   Sub page: Textile — fabric photos
   ============================================================ */
.fabric-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fabric-gallery li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fabric-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.fabric-caption {
  display: block;
  padding: 0.9rem 1.2rem 1rem;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--white);
}

/* ============================================================
   Sub page: Web / AI
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero::before,
.page-hero::after { content: ''; }

.page-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted-2);
  margin-bottom: 2.6rem;
}

.breadcrumb li + li::before { content: '›'; margin-right: 0.5rem; color: var(--muted-2); }
.breadcrumb a:hover { color: var(--orange-light); }
.breadcrumb [aria-current] { color: var(--text); }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

.page-title {
  font-weight: 700;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1.4rem;
}

.page-lead { color: var(--muted); font-size: 1.05rem; max-width: 36em; }

/* Flow */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px;
}

.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.1rem 1.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.flow-step:hover { border-color: var(--orange); transform: translateY(-3px); }

.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -14px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  transform: translateY(-50%) rotate(45deg);
}

.flow-step-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 6.4em;
}

.flow-num {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-light), var(--orange-dark));
  box-shadow: 0 0 14px var(--orange-glow);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.flow-step h3 {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--white);
}

.flow-icon {
  width: 52px;
  height: 52px;
  margin: 1.1rem auto 1.1rem;
  color: var(--text);
  --accent: var(--orange-light);
}

.flow-step p { font-size: 0.88rem; line-height: 1.8; color: var(--muted); }

/* Service overview */
.overview {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(232, 90, 42, 0.12) 0%, transparent 50%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 3.5rem;
}

.overview-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.overview-eyebrow { font-size: 0.95rem; color: var(--muted); margin-bottom: 1rem; }

.overview-title {
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1.4rem;
}

.overview-title .accent-line {
  display: block;
  background: linear-gradient(120deg, var(--orange-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.overview-lead { color: var(--muted); font-size: 1rem; }

.overview-visual { position: relative; }

.tech-panel {
  aspect-ratio: 18 / 13;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 50%, rgba(232, 90, 42, 0.16) 0%, transparent 60%), var(--bg);
  overflow: hidden;
}

.tech-panel svg { width: 100%; height: 100%; }
.tech-panel .ring { fill: none; stroke: rgba(174, 189, 208, 0.35); stroke-width: 1; }
.tech-panel .ring-dash { fill: none; stroke: rgba(174, 189, 208, 0.3); stroke-width: 1; stroke-dasharray: 3 6; }
.tech-panel .link { stroke: rgba(174, 189, 208, 0.35); stroke-width: 1; }
.tech-panel .node { fill: var(--card); stroke: rgba(232, 238, 246, 0.85); stroke-width: 1.5; }
.tech-panel .node-hot { fill: var(--orange); filter: drop-shadow(0 0 6px rgba(232, 90, 42, 0.9)); }
.tech-panel .core { fill: var(--card); stroke: var(--orange-light); stroke-width: 2; filter: drop-shadow(0 0 12px rgba(232, 90, 42, 0.7)); }
.tech-panel .core-text { fill: var(--white); font: 700 20px/1 Arial, sans-serif; letter-spacing: 1px; }
.tech-panel .pin { stroke: var(--orange-light); stroke-width: 2; stroke-linecap: round; }

.hand-note {
  position: absolute;
  top: -12px;
  left: -18px;
  z-index: 1;
  width: max-content;
  max-width: min(100%, 21em);
  font-family: var(--font-hand);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--white);
  transform: rotate(-4deg);
  background: linear-gradient(135deg, var(--orange-light), var(--orange-dark));
  box-shadow: 0 10px 26px rgba(232, 90, 42, 0.35);
  border-radius: 10px;
  padding: 0.45rem 1rem 0.55rem;
}

.hand-note span { display: block; }

.service-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.5rem 0.8rem 1.3rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  min-width: 0;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

/* exactly 6 tiles (Amazon page): 3 × 2 so no tile is left alone on the last row */
.service-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* a phrase wider than the tile must still wrap instead of overflowing */
.service-tile span { max-width: 100%; overflow-wrap: anywhere; }

.service-tile:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.service-tile svg {
  width: 42px;
  height: 42px;
  color: var(--text);
  --accent: var(--orange-light);
}

.overview-closing {
  margin-top: 2.6rem;
  text-align: right;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--orange-light);
}

/* CTA band */
.cta-band {
  position: relative;
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(232, 90, 42, 0.28) 0%, transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}

.cta-band h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--white);
  margin-bottom: 2rem;
}

.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.has-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .flow-steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    gap: 26px;
  }

  .flow-step { flex: 0 0 220px; scroll-snap-align: start; }
  .flow-step:not(:last-child)::after { right: -17px; }
}

@media (max-width: 1080px) {
  .header-inner { gap: 1.2rem; }
  .site-nav { gap: 1.3rem; }
  .nav-links { gap: 1.2rem; }
  .brand-sub { display: none; }
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .biz-row { grid-template-columns: 56px 84px minmax(0, 1fr); }
  .biz-row > div, .biz-row > .biz-desc { grid-column: 2 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }

  .section { padding: 88px 0; }

  .menu-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.6rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .site-header.is-open .site-nav { opacity: 1; visibility: visible; transform: none; }

  .nav-links { flex-direction: column; gap: 0; font-size: 1rem; }
  .nav-links a { display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a::after { display: none; }
  .lang-menu { margin: 1.2rem 0; }
  .lang-toggle { width: 100%; justify-content: flex-start; min-height: 48px; }
  .lang-toggle .chev { margin-left: auto; }
  .lang-options { position: static; display: none; box-shadow: none; margin-top: 6px; opacity: 1; visibility: visible; transform: none; }
  .lang-menu.is-open .lang-options { display: block; }
  .header-cta { width: 100%; min-height: 48px; }
  .brand-logo { height: 38px; }

  .news-grid,
  .about-grid,
  .contact-grid,
  .page-hero-grid,
  .overview-top { grid-template-columns: 1fr; gap: 3rem; }

  .brand-panel { max-width: 460px; }
  .map-wide { aspect-ratio: 4 / 3; margin-top: 3rem; }

  .section-head p { margin-top: 1rem; }


  .overview { padding: 2.4rem 1.6rem; }
  .hand-note { position: static; display: inline-block; margin-bottom: 1rem; transform: rotate(-2deg); }
}

@media (max-width: 720px) {
  .flow-steps {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    gap: 14px;
    padding-bottom: 0;
  }

  .flow-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0.3rem 1rem;
    padding: 1.1rem 1.1rem 1.2rem;
  }

  .flow-step-head { grid-column: 2; min-height: 0; flex-direction: row; align-items: center; }
  .flow-icon { grid-row: 1 / span 2; grid-column: 1; margin: 0; width: 44px; height: 44px; }
  .flow-step p { grid-column: 2; }

  .flow-step:not(:last-child)::after {
    top: auto;
    bottom: -12px;
    right: auto;
    left: 34px;
    transform: rotate(135deg);
  }

  /* phone: [01 ........ icon] / title / description — selectors must be at least as
     specific as the 1080px rule (.biz-row > .biz-desc) or that rule wins */
  .biz-row { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.2rem; padding: 1.6rem 1.4rem; }
  .biz-row > .biz-num { grid-column: 1; grid-row: 1; justify-self: start; align-self: center; font-size: 1.8rem; }
  .biz-row > .biz-icon { grid-column: 2; grid-row: 1; width: 64px; height: 64px; }
  .biz-row > .biz-title,
  .biz-row > .biz-desc,
  .biz-row > div { grid-column: 1 / -1; }
  .biz-icon svg { width: 30px; height: 30px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.6rem; }
  .info-table { padding: 0.4rem 1.1rem; }
  .info-table > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .news-list { padding: 0.2rem 1.1rem; }
  .news-list li { grid-template-columns: 1fr; gap: 0.1rem; }
  .news-dialog .legal-dialog-head { padding: 1rem 1.1rem; }
  .news-dialog .legal-dialog-head h2 { font-size: 1.02rem; }
  .news-dialog .legal-body { padding: 1.1rem 1.1rem 1.6rem; }
  .news-dialog-gallery { grid-template-columns: 1fr; }
  .news-dialog-gallery[data-count="3"] {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-right: -1.1rem;
    padding-right: 1.1rem;
    scrollbar-width: none;
  }
  .news-dialog-gallery[data-count="3"] img { flex: 0 0 80%; scroll-snap-align: start; }
  .lightbox-img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 140px); }
  .lightbox-nav { top: auto; bottom: 12px; transform: none; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
  .lightbox-count { bottom: 26px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }

  .section { padding: 72px 0; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 40px) 0 64px; }
  .hero-logo-wrap { width: 170px; height: 170px; }
  .hero-logo { width: 124px; }
  .hero-title { font-size: 2.4rem; letter-spacing: 0.02em; }
  .ticker ul { gap: 0.4rem 0.7rem; font-size: 0.66rem; letter-spacing: 0.12em; }
  .ticker li + li::before { margin-right: 0.7rem; width: 5px; height: 5px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .strength-grid { grid-template-columns: 1fr; }
  .partner-list { flex-direction: column; }
  .partner-list li + li::before { display: none; }
  .fabric-gallery { grid-template-columns: 1fr; gap: 14px; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  /* phone: one row per service (icon left, label right) so labels never break mid-word */
  .service-tiles { grid-template-columns: 1fr; gap: 10px; }
  .service-tile { flex-direction: row; gap: 1rem; padding: 0.9rem 1.1rem; text-align: left; font-size: 0.95rem; }
  .service-tile svg { width: 34px; height: 34px; flex-shrink: 0; }
  .brand-mark { width: 40%; }
  .brand-panel figcaption { font-size: 0.7rem; letter-spacing: 0.22em; padding-left: 0.22em; }
  html:is(:lang(en), :lang(vi)) .overview-title { font-size: 1.6rem; }
}

/* ============================================================
   Phone / narrow tablet: sections open as right-side panels
   (same interaction as the original site). Desktop keeps the
   one-page scroll layout and never shows any of this.
   ============================================================ */
.panel-bar,
.panel-partners,
.panel-overlay { display: none; }

@media (max-width: 960px) {
  /* home page shows only the hero; everything else lives in panels */
  .ticker { display: none; }

  .panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    width: 80%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 calc(3rem + env(safe-area-inset-bottom)) !important;
    background: #0f1825;
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
  }

  .panel.is-open { transform: none; visibility: visible; }

  .panel-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 290;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
  }

  body.panel-open .panel-overlay { opacity: 1; visibility: visible; }
  body.panel-open { overflow: hidden; }

  .panel-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 0.9rem var(--gutter);
    background: linear-gradient(180deg, #0f1825 70%, rgba(15, 24, 37, 0));
  }

  .panel-close {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    color: var(--muted);
    font-size: 1.4rem;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .panel-close:hover,
  .panel-close:focus-visible { background: var(--orange); border-color: var(--orange); color: var(--white); }

  /* inside a panel: no scroll-reveal, tighter spacing, one column */
  .panel .reveal { opacity: 1 !important; transform: none !important; }
  .panel .section-head { margin-bottom: 2rem; }
  .panel .news-grid { gap: 1.6rem; }
  .panel.section--alt,
  .panel.strengths,
  .panel.contact { background: #0f1825; }

  /* partners are shown inside the About panel on phones */
  .partners { display: none; }
  .panel-partners {
    display: block;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
  }
  .panel-partners .partner-list { flex-direction: column; gap: 0.2rem; }
  .panel-partners .partner-list li + li::before { display: none; }

  /* detail page on phones: looks like a panel that slid in from the right */
  .page-sub .site-header { display: none; }
  .page-sub main { animation: panelIn 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

  .panel-bar--page {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    background: rgba(15, 24, 37, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .panel-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--orange-light);
  }

  .page-sub .page-hero { padding-top: 32px; }
}

@media (max-width: 768px) {
  .panel { width: 100%; border-left: 0; }
}

@keyframes panelIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ============================================================
   Compact language switcher in the phone header / detail-page bar
   ============================================================ */
.lang-menu--compact { display: none; }

@media (max-width: 960px) {
  .site-nav .lang-menu { display: none; }

  .lang-menu.lang-menu--compact { display: block; margin: 0 0 0 auto; }
  .menu-toggle { margin-left: 0.4rem; }

  .lang-menu--compact .lang-toggle {
    width: auto;
    min-height: 40px;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
  }

  .lang-menu--compact .lang-toggle .chev { margin-left: 0; }

  .lang-menu--compact .lang-options {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    margin: 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
  }

  .lang-menu--compact.is-open .lang-options { opacity: 1; visibility: visible; transform: none; }

  .panel-bar--page .lang-menu--compact { margin: 0 0.5rem 0 auto; }
}

@media (max-width: 960px) {
  /* never let the header controls get squashed on very narrow phones */
  .menu-toggle,
  .lang-menu--compact,
  .panel-close { flex-shrink: 0; }
  .brand { min-width: 0; }

  /* detail-page bar: long "back" labels (en / vi) shrink with an ellipsis instead of wrapping */
  .panel-back { min-width: 0; flex: 1 1 auto; }
  .panel-back [data-i18n] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 2.15rem; letter-spacing: 0.01em; }
}

/* ============================================================
   Long Japanese / Chinese paragraphs: fill every line and justify
   (standard CJK typesetting). Phrase-based breaking stays for
   headings and short labels only, where a split word looks wrong.
   ============================================================ */
html:is(:lang(ja), :lang(zh)) :is(
  .about-desc, .biz-desc, .strength-text, .section-head p, .page-lead,
  .overview-lead, .contact-desc, .flow-step p, .legal-body p, .news-empty p
) {
  word-break: normal;
  line-break: strict;
  text-wrap: pretty;
  text-align: justify;
}

/* Phone: the logo block doesn't need to stay square */
@media (max-width: 960px) {
  .brand-panel { aspect-ratio: auto; max-width: none; padding: 2rem 0 0.5rem; }
  .brand-panel .brand-mark { width: min(46%, 190px); }
  .brand-panel--icon { padding: 1rem 0; }
}


/* ============================================================
   Access block: title → stations → map → "open in Google Maps"
   ============================================================ */
.access {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.access .access-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin-bottom: 1.6rem;
}

.access .map-wide { margin-top: 0; }
.access .access-map-btn { margin-top: 1.4rem; }

@media (max-width: 960px) {
  .access { margin-top: 3rem; padding-top: 2.4rem; }
  .access .access-list { grid-template-columns: 1fr; margin-bottom: 1.4rem; }
  .access .map-wide { margin-top: 0; }
}

/* Strength labels ("Partners — 取引先パートナー" etc.): keep each on one line in JA / ZH */
html:is(:lang(ja), :lang(zh)) .strength-label { white-space: nowrap; }

/* ============================================================
   About (desktop): [logo | ABOUT US + text] vertically centred,
   company info table underneath in one column, same width
   ============================================================ */
@media (min-width: 961px) {
  .about-grid {
    grid-template-columns: minmax(260px, 0.7fr) 1.3fr;
    gap: 4rem;
    align-items: center;
  }

  .about-grid .brand-panel { aspect-ratio: auto; padding: 1rem 0; }
  .about-grid .brand-mark { width: min(66%, 250px); }
  .about-grid .about-desc { margin-bottom: 0; }

  /* logo+text block and the table share one centred width, so their edges line up */
  .about-grid,
  .info-table--wide,
  .access {
    max-width: 920px;
    margin-inline: auto;
  }

  .info-table--wide {
    margin-top: 3.5rem;
    padding: 0.6rem 2.4rem;
  }
}

@media (max-width: 960px) {
  .info-table--wide { margin-top: 2.2rem; }
}
