/* ============================================================
   TRIUNITECH — Corporate Website Stylesheet v3 (Green)
   ============================================================ */

:root {
  --primary: #1a7f4b;        /* corporate green */
  --primary-2: #22935a;
  --primary-dark: #0f5233;
  --accent: #34d399;         /* light emerald, for dark backgrounds */
  --deep: #0a2b1d;           /* deep forest — hero / footer base */
  --deep-2: #0f3a27;
  --bg: #ffffff;
  --bg-soft: #f2f9f5;
  --text: #1e2a24;
  --text-muted: #5a6b62;
  --border: #e0ede6;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(10, 43, 29, 0.08);
  --shadow-lg: 0 18px 50px rgba(10, 43, 29, 0.14);
  --container: 1160px;
  --grad: linear-gradient(135deg, #1a7f4b 0%, #34d399 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Noto Sans JP", "Segoe UI", "Hiragino Sans", "Yu Gothic", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }

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

/* ============================================================
   Japanese typography — ngắt dòng theo cụm từ, không cắt giữa từ
   ============================================================ */
html[lang="ja"] body {
  line-break: strict;
  word-break: normal;
  overflow-wrap: normal;
}
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] h4,
html[lang="ja"] p,
html[lang="ja"] li,
html[lang="ja"] td,
html[lang="ja"] th,
html[lang="ja"] .tagline,
html[lang="ja"] .label,
html[lang="ja"] .sub {
  /* Chrome 119+ : tự ngắt dòng theo ranh giới cụm từ tiếng Nhật */
  word-break: auto-phrase;
}
/* Bọc cụm từ để chắc chắn không bị cắt đôi trên mọi trình duyệt */
.np { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2px;
  transition: all .25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(26, 127, 75, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(26, 127, 75, 0.45); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-dark { border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 24px rgba(10,43,29,.07); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 11px; white-space: nowrap; flex-shrink: 0; }
.logo svg.mark { width: 42px; height: 43px; }
.logo img.mark { width: 40px; height: auto; display: block; }
.logo .wordmark {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 1.2px;
  color: var(--primary-dark);
}
.logo .wordmark.light { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2.5px;
  background: var(--grad);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch {
  display: flex; gap: 2px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}
.lang-switch a { padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.lang-switch a.active { background: var(--primary); color: #fff; }
.btn-contact { padding: 11px 24px; font-size: 14px; border-radius: 10px; }

/* Tiếng Nhật: chữ CJK rộng hơn — thu gọn khoảng cách để menu luôn nằm trên 1 dòng */
html[lang="ja"] .header-inner { gap: 14px; }
html[lang="ja"] .main-nav { gap: 17px; }
html[lang="ja"] .main-nav a { font-size: 14.5px; }
html[lang="ja"] .logo .wordmark { font-size: 19px; letter-spacing: .8px; }
html[lang="ja"] .lang-switch a { padding: 5px 10px; }
html[lang="ja"] .btn-contact { padding: 11px 18px; font-size: 13.5px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 42px; height: 42px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 9px; width: 24px; height: 2.5px;
  background: var(--deep); border-radius: 2px; transition: all .25s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 560px at 85% -10%, #14663f 0%, transparent 60%),
    radial-gradient(700px 500px at -5% 110%, #10462d 0%, transparent 55%),
    linear-gradient(150deg, var(--deep) 0%, #0d3826 55%, #10502f 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 56px;
  align-items: center;
  padding: 100px 0 118px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 22px;
}
.hero h1 .grad-text {
  background: linear-gradient(90deg, #4ade80, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 17.5px; color: #c3dccf; max-width: 580px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 24px 44px rgba(0,0,0,.4)); }

/* Tiếng Nhật: dòng thoáng hơn cho dễ đọc */
html[lang="ja"] .hero h1 { line-height: 1.34; font-size: clamp(28px, 3.7vw, 42px); }
html[lang="ja"] .hero p.lead { font-size: 16.5px; line-height: 1.9; }

/* Stats bar */
.stats-bar { position: relative; margin-top: -50px; z-index: 5; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat { padding: 30px 18px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .num {
  font-size: 32px; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary);
  background: rgba(26, 127, 75, 0.09);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(27px, 3.2vw, 38px); font-weight: 800; color: var(--deep); line-height: 1.28; letter-spacing: -.3px; }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 16.5px; }
html[lang="ja"] .section-head h2 { line-height: 1.45; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 34px;
  transition: all .28s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .28s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(26,127,75,.3); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--grad);
  display: grid; place-items: center;
  margin-bottom: 24px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(26,127,75,.3);
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 20px; color: var(--deep); margin-bottom: 6px; }
.service-card .tagline { font-weight: 600; color: var(--primary); font-size: 14.5px; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 15px; flex: 1; }
.service-card .link { margin-top: 22px; font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.service-card .link::after { content: "→"; transition: transform .2s; }
.service-card .link:hover::after { transform: translateX(4px); }
html[lang="ja"] .service-card h3 { line-height: 1.5; }
html[lang="ja"] .service-card p { line-height: 1.9; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.why-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .28s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.why-visual {
  height: 168px;
  background: linear-gradient(135deg, var(--deep) 0%, #14663f 100%);
  display: grid; place-items: center;
  color: #6ee7b7;
  position: relative;
  overflow: hidden;
}
.why-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.why-visual svg { width: 70px; height: 70px; position: relative; }
.why-body { padding: 28px 28px 32px; }
.why-body h3 { font-size: 18.5px; color: var(--deep); margin-bottom: 10px; }
.why-body p { color: var(--text-muted); font-size: 14.5px; }
html[lang="ja"] .why-body p { line-height: 1.9; }

/* ---------- Global reach ---------- */
.global-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.global-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: all .28s ease;
}
.global-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.global-card .region {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent);
  background: var(--deep);
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  white-space: nowrap;
}
.global-card h3 { font-size: 18px; color: var(--deep); margin-bottom: 10px; }
.global-card p { font-size: 14.5px; color: var(--text-muted); }
html[lang="ja"] .global-card p { line-height: 1.9; }

/* ---------- Tech band ---------- */
.tech-band {
  background: linear-gradient(150deg, var(--deep) 0%, #0d3826 100%);
  padding: 70px 0;
  color: #fff;
}
.tech-band h2 { text-align: center; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 10px; }
.tech-band .sub { text-align: center; color: #92b3a2; font-size: 15px; margin-bottom: 40px; }
.tech-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 900px; margin: 0 auto; }
.tech-pill {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  font-size: 14.5px;
  font-weight: 600;
  color: #d8ece1;
  transition: all .25s;
  white-space: nowrap;
}
.tech-pill:hover { background: rgba(52,211,153,.15); border-color: rgba(52,211,153,.5); color: #fff; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.process-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  transition: all .28s ease;
}
.process-step:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.process-step .step-num {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-weight: 800; font-size: 19px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(26,127,75,.3);
}
.process-step h3 { font-size: 17px; color: var(--deep); margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-muted); }
html[lang="ja"] .process-step h3 { font-size: 16px; line-height: 1.5; }
html[lang="ja"] .process-step p { line-height: 1.85; }

/* ---------- Company profile ---------- */
.profile-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.profile-intro h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--deep); line-height: 1.3; margin-bottom: 18px; }
.profile-intro p { color: var(--text-muted); font-size: 15.5px; margin-bottom: 16px; }
.profile-values { margin-top: 26px; display: grid; gap: 14px; }
.profile-values li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.profile-values svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.company-table th, .company-table td {
  padding: 17px 22px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.company-table th { width: 34%; background: var(--bg-soft); color: var(--deep); font-weight: 700; white-space: nowrap; }
.company-table td { color: var(--text-muted); }
html[lang="ja"] .profile-intro h2 { line-height: 1.45; }
html[lang="ja"] .profile-intro p { line-height: 1.95; }
html[lang="ja"] .profile-values li { line-height: 1.9; }
html[lang="ja"] .company-table td { line-height: 1.85; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(800px 400px at 12% 0%, #14663f 0%, transparent 55%),
    linear-gradient(135deg, var(--deep) 0%, #10502f 100%);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 76px 44px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(25px, 3vw, 36px); font-weight: 800; margin-bottom: 16px; }
.cta p { color: #c3dccf; max-width: 660px; margin: 0 auto 34px; }
html[lang="ja"] .cta h2 { line-height: 1.45; }
html[lang="ja"] .cta p { line-height: 1.9; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #a9c2b4; padding: 68px 0 0; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 44px; padding-bottom: 52px; }
.footer-grid .logo { margin-bottom: 18px; }
.footer-grid p { font-size: 14px; }
.footer-grid h4 { color: #fff; font-size: 14.5px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.footer-grid ul li { margin-bottom: 11px; }
.footer-grid ul a { color: #a9c2b4; font-size: 14px; }
.footer-grid ul a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 13px; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: 13.5px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
html[lang="ja"] .footer-grid p { line-height: 1.9; }

/* ---------- Contact page ---------- */
.page-hero {
  background:
    radial-gradient(900px 420px at 80% -10%, #14663f 0%, transparent 55%),
    linear-gradient(150deg, var(--deep) 0%, #10502f 100%);
  color: #fff;
  text-align: center;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 30px 30px;
}
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: clamp(31px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; letter-spacing: -.4px; }
.page-hero p { color: #c3dccf; max-width: 680px; margin: 0 auto; font-size: 16.5px; }
html[lang="ja"] .page-hero p { line-height: 1.95; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  transition: all .28s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.contact-card .icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  margin: 0 auto 22px;
  box-shadow: 0 8px 20px rgba(26,127,75,.3);
}
.contact-card .icon svg { width: 28px; height: 28px; }
.contact-card h3 { color: var(--deep); font-size: 18px; margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: 15px; color: var(--text-muted); }
.contact-card a.big, .contact-card .big { color: var(--primary); font-weight: 600; font-size: 16px; }

.hours-box {
  margin-top: 60px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.hours-box h3 { color: var(--deep); font-size: 20px; margin-bottom: 10px; }
.hours-box p { color: var(--text-muted); font-size: 15px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 9px 0; font-size: 15px; border-bottom: 1px dashed var(--border); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--deep); white-space: nowrap; }
html[lang="ja"] .hours-box p { line-height: 1.9; }

/* ---------- Error page ---------- */
.error-wrap { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.error-wrap .code {
  font-size: 110px; font-weight: 800; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-wrap h1 { color: var(--deep); font-size: 26px; margin: 12px 0 10px; }
.error-wrap p { color: var(--text-muted); margin-bottom: 28px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: all .65s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  /* Menu tiếng Nhật cần nhiều chỗ hơn — chuyển sang hamburger sớm hơn */
  html[lang="ja"] .nav-toggle { display: block; }
  html[lang="ja"] .btn-contact { display: none; }
  html[lang="ja"] .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  html[lang="ja"] .main-nav.open { transform: translateY(0); }
}

@media (max-width: 991px) {
  .hero-inner { grid-template-columns: 1fr; padding: 76px 0 100px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .services-grid, .why-grid, .contact-grid, .global-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hours-box { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .btn-contact { display: none; }
}

@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .lang-switch a { padding: 4px 9px; font-size: 12px; }
  .section { padding: 68px 0; }
  .logo .wordmark { font-size: 17px; letter-spacing: 1px; }
  html[lang="ja"] .logo .wordmark { font-size: 16px; }
}
