/* MKT合同会社 – light theme (white + ocean blue). Shared by / and /ja/. */
:root {
  --bg: #ffffff;
  --bg-soft: #f1f7fb;          /* very light blue secondary background */
  --brand: #0369a1;            /* ocean blue – CTA, links (5.9:1 on white) */
  --brand-strong: #075985;     /* hover */
  --brand-tint: #e0f2fe;       /* badges, chips */
  --fg: #0f2a3d;               /* deep navy text (14:1 on white) */
  --muted: #4a6176;            /* secondary text (6.2:1 on white, 5.8:1 on --bg-soft) */
  --border: #d5e3ee;
  --shadow-sm: 0 1px 2px rgba(15, 42, 61, .06);
  --shadow: 0 8px 24px rgba(15, 42, 61, .08);
  --radius: 16px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
}
/* Google Noto fonts: Noto Sans (vi, full Vietnamese diacritics) and Noto Sans JP (ja). Loaded per page. */
html:lang(vi) body { font-family: "Noto Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
html:lang(ja) body { font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
html:lang(ja) body { line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--fg); }
.icon { flex: none; vertical-align: -4px; }
.icon-zalo { width: 22px; height: 22px; }
:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; border-radius: 6px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.list { margin: 8px 0 0; padding-left: 1.2em; }
.list li + li { margin-top: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border-color: #b9d5e8; }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-strong); }
.btn-sm { padding: 7px 14px; font-size: .92rem; }
.btn-lg { padding: 13px 22px; font-size: 1.02rem; }
.link-cta { font-weight: 700; text-decoration: none; }
.link-cta:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--fg); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--fg); }
.brand-logo { width: 60px; height: 40px; flex: none; }
.nav-desktop ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-desktop li { display: flex; align-items: center; }
.nav-desktop a:not(.btn) { padding: 8px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.nav-desktop a:not(.btn):hover { color: var(--brand); background: var(--brand-tint); }
.nav-desktop .btn { margin-left: 6px; }
.lang { display: flex; align-items: center; gap: 2px; margin-left: 10px; font-weight: 600; }
.lang a { padding: 6px 6px !important; }
.lang-current { padding: 6px; color: var(--fg); font-weight: 800; }
.lang-sep { color: var(--border); }
.menu-btn {
  display: none; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; color: var(--fg); font: inherit; font-weight: 700; cursor: pointer;
}
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; overflow-y: auto;
  background: #fff; padding: 16px 20px 32px; border-top: 1px solid var(--border);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { display: block; padding: 12px 8px; border-bottom: 1px solid var(--border); color: var(--fg); text-decoration: none; font-weight: 600; }
.mobile-nav .btn { margin-top: 16px; width: 100%; }
.lang-mobile { margin: 16px 0 0; justify-content: center; }
.lang-mobile a { padding: 8px 12px !important; border-bottom: 0 !important; }

@media (max-width: 1040px) {
  .nav-desktop { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(800px 400px at 90% 0%, #e0f2fe 0%, transparent 70%),
    linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-strong); font-size: .9rem; font-weight: 700;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 16px 0 14px; letter-spacing: -.01em; text-wrap: balance; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 52ch; margin: 0; }
.rep { margin: 14px 0 0; color: var(--muted); }
.rep strong { color: var(--fg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-areas a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); color: var(--fg); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hero-areas a:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--fg); }
.hero-area-num { font-weight: 800; color: var(--brand); font-size: 1.1rem; }
.hero-area-title { font-weight: 800; font-size: 1.15rem; }
.hero-area-label { color: var(--muted); font-size: .9rem; }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; }
.section-intro { color: var(--muted); margin: 0 0 36px; max-width: 65ch; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 24px; box-shadow: var(--shadow-sm); }

/* ---------- business blocks ---------- */
.biz {
  background: #fff; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.biz + .biz { margin-top: 28px; }
.biz-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.biz--reverse .media { order: 2; }
.media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--brand-tint); aspect-ratio: 16 / 11; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.illustrative-tag {
  position: absolute; left: 10px; bottom: 10px; padding: 2px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--muted); font-size: .78rem; font-weight: 600;
}
.biz-index { margin: 0; color: var(--brand); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.biz-index span { display: inline-grid; place-items: center; min-width: 2.2em; padding: 2px 6px; margin-right: 6px; border-radius: 8px; background: var(--brand); color: #fff; }
.biz h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 10px 0 8px; }
.biz h4 { margin: 20px 0 4px; font-size: 1rem; }
.biz-summary { margin: 0; color: var(--muted); }
.biz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.biz > .biz-sub { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.biz-body .biz-sub { margin-top: 20px; }
.biz-sub > h4 { margin-top: 0; }
.highlight-box { background: var(--bg-soft); border-radius: 12px; padding: 16px 20px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.service-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--bg-soft); }
.service-card .media { margin-bottom: 14px; }
.service-card h4 { margin: 0 0 6px; font-size: 1.1rem; }
.service-card p { margin: 0 0 10px; color: var(--muted); }
.price { color: var(--fg) !important; }
.price strong { color: var(--brand-strong); }
.partners { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.partner { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #fff; }
.partner p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.about-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.about-fields li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); }
.about-fields span { font-weight: 800; color: var(--brand); }
.about-fields a { font-weight: 700; color: var(--fg); text-decoration: none; }
.about-fields a:hover { color: var(--brand); }

/* ---------- company profile ---------- */
.profile { width: 100%; border-collapse: collapse; }
.profile th, .profile td { text-align: left; padding: 16px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.profile tr:last-child th, .profile tr:last-child td { border-bottom: 0; }
.profile th { width: 30%; color: var(--muted); font-weight: 600; }
.profile td { overflow-wrap: anywhere; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); }
.contact-card h3 .icon-zalo { width: 26px; height: 26px; }
.contact-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1.15rem; color: var(--brand-strong); }
.contact-card p { margin: 0; }
.contact-card .btn { margin-top: auto; }
.contact-card--primary { background: var(--brand-tint); border-color: #9cc9e6; }
.contact-value { font-size: 1.2rem; font-weight: 800; color: var(--fg); margin-bottom: 12px !important; }
.contact-value a { color: var(--fg); text-decoration: none; }
.contact-email { font-size: 1rem; overflow-wrap: anywhere; }
.contact-address { display: flex; gap: 8px; align-items: flex-start; margin: 24px 0 0; color: var(--muted); }
.contact-address .icon { color: var(--brand); margin-top: 3px; }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); margin-top: 16px; }

/* ---------- footer ---------- */
.site-footer { background: #0c4a6e; color: #e0f2fe; padding: 48px 0 0; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand { font-weight: 800; font-size: 1.1rem; color: #fff; gap: 10px !important; }
.footer-brand .brand-logo { width: 54px; height: 36px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding: 18px 20px 96px; border-top: 1px solid rgba(224, 242, 254, .2); font-size: .9rem; color: #bae6fd; }

/* ---------- floating Zalo ---------- */
.zalo-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.zalo-fab {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; border: 0;
  background: #0068ff; color: #fff; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 104, 255, .35);
}
.zalo-fab:hover { background: #0054d1; color: #fff; }
.zalo-fab .icon-zalo { width: 34px; height: 34px; }
.zalo-panel {
  width: min(320px, calc(100vw - 40px)); padding: 16px 18px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(15, 42, 61, .18);
}
.zalo-panel[hidden] { display: none; }
.zalo-panel p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.zalo-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.zalo-panel-title { margin: 0 !important; font-weight: 800; color: var(--fg) !important; font-size: 1rem !important; }
.zalo-close { border: 0; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.zalo-close:hover { background: var(--bg-soft); }
.zalo-number { font-size: 1.25rem; font-weight: 800; color: var(--fg) !important; letter-spacing: .02em; }
.zalo-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid, .about-grid, .biz-main { grid-template-columns: 1fr; gap: 24px; }
  .biz { padding: 20px; }
  .biz--reverse .media { order: 0; }
  .biz-main .media { aspect-ratio: 16 / 9; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero { padding: 36px 0 32px; }
  .hero h1 { margin: 12px 0 10px; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .btn { width: 100%; }
  .hero-areas { gap: 8px; }
  .hero-areas a { padding: 12px 16px; gap: 12px; }
  .section { padding: 44px 0; }
  .section-intro { margin-bottom: 20px; }

  /* business blocks: flatter cards, full-width tap targets */
  .biz { padding: 14px 14px 18px; border-radius: 16px; }
  .biz + .biz { margin-top: 16px; }
  .biz-main { gap: 14px; }
  .biz-body { padding: 0 4px; }
  .biz h3 { margin: 8px 0 6px; }
  .biz h4 { margin-top: 14px; }
  .biz-actions { margin-top: 18px; }
  .biz-actions .btn { width: 100%; }
  .biz > .biz-sub { margin-top: 18px; padding: 16px 4px 0; }
  .service-grid { grid-template-columns: 1fr; gap: 10px; }
  .service-card { padding: 16px; }

  /* about: business list becomes compact chips (same list is already in the hero) */
  .about-grid { gap: 16px; }
  .about-fields { display: flex; flex-wrap: wrap; gap: 8px; }
  .about-fields li { padding: 6px 12px; gap: 8px; border-radius: 999px; }

  /* company profile: tighter label/value rows */
  .card { padding: 4px 16px; }
  .profile th { font-size: .85rem; padding-top: 12px; }
  .profile tr { padding-bottom: 10px; }

  /* contact */
  .contact-grid { gap: 12px; }
  .contact-card { padding: 18px; }
  .contact-card .btn { width: 100%; margin-top: 8px; }
  .contact-value { margin-bottom: 4px !important; }
  .contact-address { margin-top: 18px; }

  .footer-grid { gap: 20px; }
  .footer-links a { display: inline-block; padding: 4px 0; }
  .profile th, .profile td { display: block; width: 100%; padding: 4px 0; border: 0; }
  .profile th { padding-top: 14px; }
  .profile tr { display: block; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
  .profile tr:last-child { border-bottom: 0; }
  .zalo-float { right: 12px; bottom: 12px; }
  .zalo-fab { padding: 6px; }
  .zalo-fab .icon-zalo { width: 44px; height: 44px; }
  .zalo-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
