/* =====================================================================
   SPD Laboratory, Inc. — site stylesheet
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --navy-3: #1d4477;
  --ink: #1a2332;
  --text: #36414f;
  --muted: #667385;
  --line: #e2e7ee;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-tint: #eaf3f4;
  --red: #d7262e;          /* SPD logo red */
  --red-dark: #b51d24;
  --teal: #0e8a8c;         /* SPD logo globe */
  --teal-light: #d8efef;
  --sun: #f4a019;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 1px 3px rgba(11, 37, 69, .08);
  --shadow: 0 4px 12px rgba(11, 37, 69, .07), 0 12px 32px rgba(11, 37, 69, .07);
  --shadow-lg: 0 20px 50px rgba(11, 37, 69, .18);
  --container: 1200px;
  --header-h: 72px;
  --font: "Inter", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

/* ---------- Language switching ----------
   Any element with lang="en" / lang="ja" inside <body> is shown only
   when that language is active.                                        */
html[lang="ja"] body [lang="en"],
html[lang="en"] body [lang="ja"] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ja"] body { line-height: 1.8; letter-spacing: .01em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .15s; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { letter-spacing: .02em; line-height: 1.4; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
sub, sup { font-size: .72em; line-height: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(14, 138, 140, .45); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { max-width: 680px; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(215, 38, 46, .25); }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-3); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--light { border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn--sm { padding: 8px 16px; font-size: .88rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(11, 37, 69, .06); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .95rem;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav a.is-active { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-soft);
  border: 1px solid var(--line);
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--muted);
  transition: background .15s, color .15s;
}
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px 16px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
  }
  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s, transform .2s; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 14px 16px; border-radius: 10px; font-size: 1.05rem; }
  .brand-tag { display: none; }
}
.lang-switch button, .brand-name { white-space: nowrap; }
@media (max-width: 420px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; margin-left: auto; }
  .brand { gap: 8px; min-width: 0; }
  .brand-name { font-size: .86rem; }
  .brand img { width: 36px; height: 36px; }
  .lang-switch button { padding: 6px 8px; font-size: .78rem; }
}
@media (max-width: 350px) { .brand-text { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: #04101f url("../img/brand/hero-earth.jpg") center 62% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 16, 31, .96) 0%, rgba(8, 28, 56, .82) 42%, rgba(8, 28, 56, .25) 100%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding-top: 104px; padding-bottom: 112px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent { color: var(--sun); }
.hero .eyebrow { color: #7fd3d4; }
.hero-lead { font-size: 1.15rem; color: rgba(255, 255, 255, .82); max-width: 580px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-showcase { position: relative; aspect-ratio: 1 / .9; }
.showcase-card {
  position: absolute; background: rgba(255, 255, 255, .96); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 16px 16px 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  transition: transform .3s;
}
.showcase-card:hover { transform: translateY(-4px) !important; }
.showcase-card img { max-height: 100%; width: auto; object-fit: contain; min-height: 0; flex: 1; }
.showcase-card span { font-size: .78rem; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.showcase-card--a { width: 52%; height: 58%; top: 0; left: 4%; transform: rotate(-2deg); }
.showcase-card--b { width: 44%; height: 44%; top: 8%; right: 0; transform: rotate(2deg); }
.showcase-card--c { width: 46%; height: 42%; bottom: 0; right: 6%; transform: rotate(-1deg); }
.showcase-card--d { width: 40%; height: 36%; bottom: 4%; left: 0; transform: rotate(1.5deg); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 80px; }
  .hero-showcase { max-width: 520px; width: 100%; margin: 0 auto; }
}

/* ---------- Stats strip ---------- */
.stats { position: relative; margin-top: -48px; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 26px 28px; border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: 0; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.stat-value small { font-size: 1rem; color: var(--red); margin-left: 2px; }
.stat-label { font-size: .9rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .stat { padding: 20px; }
}

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; overflow: hidden;
}
.cat-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.cat-card-top { display: flex; align-items: center; justify-content: space-between; }
.cat-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-light); color: var(--teal);
}
.cat-icon svg { width: 24px; height: 24px; }
.cat-count { font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--bg-soft); padding: 4px 10px; border-radius: 999px; }
.cat-card h3 { margin: 4px 0 0; }
.cat-card p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.cat-thumbs { display: flex; gap: 8px; margin-top: 6px; }
.cat-thumbs img { width: 56px; height: 44px; object-fit: contain; background: var(--bg-soft); border-radius: 8px; padding: 4px; }
@media (max-width: 960px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.product-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; color: var(--text); }
.product-card-media {
  height: 210px; background: linear-gradient(180deg, #fff 0%, #f6f8fb 100%);
  display: flex; align-items: center; justify-content: center; padding: 22px; border-bottom: 1px solid var(--line-2);
}
.product-card-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .3s; }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-model { font-size: .8rem; font-weight: 800; color: var(--red); letter-spacing: .05em; margin-bottom: 4px; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.product-card p { font-size: .9rem; color: var(--muted); margin: 0 0 14px; flex: 1; }
.product-card .link-arrow { font-size: .88rem; }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--red); color: #fff; padding: 4px 10px; border-radius: 999px;
}
.badge--solution { background: var(--teal); }

/* ---------- Products page ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 138, 140, .35) 0%, rgba(14, 138, 140, 0) 70%);
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, .78); max-width: 680px; font-size: 1.08rem; margin: 0; }
.page-hero .eyebrow { color: #7fd3d4; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .6); margin-bottom: 18px; position: relative; z-index: 1; }
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-hidden] { opacity: .5; }

.catalog-toolbar {
  position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.catalog-toolbar .container { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; padding: 2px; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex: none; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; transition: all .15s;
}
.filter-tab:hover { border-color: var(--teal); }
.filter-tab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-tab .n { opacity: .6; font-weight: 500; margin-left: 4px; }
.search-box { position: relative; flex: none; width: 260px; }
.search-box svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.search-box input {
  width: 100%; padding: 10px 14px 10px 40px; border-radius: 999px; border: 1px solid var(--line);
  font: inherit; font-size: .92rem; background: var(--bg-soft); color: var(--ink);
}
.search-box input:focus { outline: none; border-color: var(--teal); background: #fff; }
@media (max-width: 860px) {
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .catalog-toolbar .container { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-box { width: 100%; }
}
.catalog-group { margin-bottom: 64px; scroll-margin-top: 210px; }
.catalog-group-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.catalog-group-head .cat-icon { flex: none; }
.catalog-group-head h2 { font-size: 1.5rem; margin-bottom: 4px; }
.catalog-group-head p { margin: 0; color: var(--muted); }
.empty-state { text-align: center; padding: 64px 0; color: var(--muted); }

/* ---------- Product detail ---------- */
.product-hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.product-hero .breadcrumb { color: var(--muted); }
.product-hero .breadcrumb a { color: var(--muted); }
.product-hero .breadcrumb a:hover { color: var(--red); }
.product-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.gallery-main {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; aspect-ratio: 4 / 3.2;
  display: grid; place-items: center; padding: 32px; cursor: zoom-in; overflow: hidden;
}
.gallery-main img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 76px; height: 62px; padding: 6px; border-radius: 10px; border: 2px solid var(--line);
  background: #fff; cursor: pointer; transition: border-color .15s;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--teal); }
.product-info .product-cat svg { width: 18px; height: 18px; flex: none; }
.product-info .product-cat { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--teal); letter-spacing: .04em; margin-bottom: 10px; }
.product-info .product-model { font-size: 1rem; margin-bottom: 6px; }
.product-info h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.product-info .lead { margin-bottom: 22px; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e8a8c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.product-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .product-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.subnav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 14px; font-weight: 600; font-size: .92rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover, .subnav a.is-active { color: var(--ink); border-bottom-color: var(--red); }
.detail-section { padding: 64px 0 8px; scroll-margin-top: calc(var(--header-h) + 56px); }
.detail-section > h2 { font-size: 1.6rem; margin-bottom: 24px; }
.prose { max-width: 860px; }
.prose p { margin-bottom: 1.1em; }

.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 32%; background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.spec-table td { color: var(--text); }
.spec-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
@media (max-width: 640px) {
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { border-bottom: 0; padding-bottom: 4px; }
  .spec-table td { padding-top: 4px; }
}
.marks { display: inline-flex; gap: 10px; align-items: center; }
.marks img { height: 28px; width: auto; }
.range-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 16px; font-variant-numeric: tabular-nums; font-size: .9rem; }
.inline-fig { max-height: 60px; }

.function-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.function-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 20px; }
.function-card img { width: 140px; height: 110px; object-fit: contain; flex: none; background: var(--bg-soft); border-radius: 10px; padding: 8px; }
.function-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.function-card p { font-size: .93rem; margin: 0; color: var(--text); }
@media (max-width: 900px) { .function-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .function-card { flex-direction: column; } .function-card img { width: 100%; height: 140px; } }

.content-block { margin-bottom: 36px; }
.content-block h3 { font-size: 1.2rem; margin-bottom: 14px; }
.bullet-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bullet-list li { position: relative; padding-left: 22px; }
.bullet-list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; transition: box-shadow .2s; }
.shot:hover { box-shadow: var(--shadow); }
.shot-img { height: 230px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; padding: 10px; }
.shot-img img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.shot figcaption { padding: 12px 16px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line-2); }
.figure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.figure-grid .shot-img { height: 280px; background: #fff; }

.variant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.variant { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.variant img { height: 160px; width: auto; margin: 0 auto 14px; object-fit: contain; }
.variant h3 { font-size: 1.05rem; margin-bottom: 6px; }
.variant p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .variant-grid { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 16px 60px; position: relative; font-weight: 600; color: var(--ink); min-height: 64px; display: flex; align-items: center; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .85rem; display: grid; place-items: center; }
.steps a { color: var(--ink); }
.steps a:hover { color: var(--red); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #000; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-poster:hover img { opacity: 1; }
.video-poster .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 12px; background: var(--red); display: grid; place-items: center; }
.video-poster .play svg { width: 26px; height: 26px; color: #fff; }
@media (max-width: 420px) { .video-grid { grid-template-columns: 1fr; } }

.download-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.download {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.download:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); color: var(--ink); }
.download-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #fdecec; color: var(--red); }
.download-icon.is-software { background: var(--teal-light); color: var(--teal); }
.download-icon.is-link { background: #eef2fb; color: var(--navy-3); }
.download-icon svg { width: 20px; height: 20px; }
.download-text { font-weight: 600; font-size: .93rem; line-height: 1.4; }
.download-text small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; margin-top: 2px; }
@media (max-width: 400px) { .download-list { grid-template-columns: 1fr; } }

.soft-table { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.soft-table th, .soft-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); text-align: left; }
.soft-table th { background: var(--bg-soft); font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; }

.chem-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.chem-card h3 { font-size: 1.1rem; }
.chem-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 12px; font-size: .93rem; }
.chem-card dt { color: var(--muted); }
.chem-card dd { margin: 0; color: var(--ink); }
.chem-figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); gap: 12px; margin: 12px 0 14px; }
.chem-figs img { border: 1px solid var(--line-2); border-radius: 8px; cursor: zoom-in; background: #fff; }
.ref-list { padding-left: 1.2em; }
.ref-list li { margin-bottom: 12px; font-size: .95rem; }

.quote-band { background: var(--navy); color: #fff; border-radius: 20px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 64px; }
.quote-band h2 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.quote-band p { color: rgba(255, 255, 255, .75); margin: 0; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.diagram-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-sm); }
.diagram-card img { margin: 0 auto; }
.diagram-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
@media (max-width: 520px) { .diagram-pair { grid-template-columns: 1fr; } }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 24px 0 32px; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.feature-list svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }
@media (max-width: 520px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--navy-3); }
.tag--news { background: #fdecec; color: var(--red-dark); }
.tag--event { background: #fff3dc; color: #9a5b00; }
.tag--publication { background: var(--teal-light); color: #0a6c6e; }
.tag--presentation { background: #eef2fb; color: var(--navy-3); }
.news-card { color: var(--text); overflow: hidden; }
.news-card:hover { color: var(--text); }
.news-card-img { margin: -24px -24px 18px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-img img { transform: scale(1.03); }
.news-card h3 { font-size: 1.02rem; line-height: 1.45; margin-bottom: 10px; }
.news-card p { font-size: .9rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.timeline-item { scroll-margin-top: calc(var(--header-h) + 16px); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

.timeline-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.timeline-year { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin: 44px 0 16px; display: flex; align-items: center; gap: 14px; }
.timeline-year::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.timeline-date { font-size: .9rem; color: var(--muted); font-weight: 600; padding-top: 2px; }
.timeline-date .tag { margin-top: 8px; }
.timeline-body h3 { font-size: 1.08rem; line-height: 1.45; margin-bottom: 6px; }
.timeline-body p { margin: 0 0 10px; font-size: .95rem; }
.timeline-body .links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; font-weight: 600; }
.timeline-img { max-width: min(440px, 100%); border-radius: 10px; margin: 6px 0 12px; border: 1px solid var(--line); cursor: zoom-in; }
@media (max-width: 640px) { .timeline-item { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Company ---------- */
.president { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.president-photo { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.president-photo img { width: 100%; }
.president-name { margin-top: 14px; text-align: center; }
.president-name strong { display: block; color: var(--ink); }
.president-name span { font-size: .88rem; color: var(--muted); }
@media (max-width: 700px) { .president { grid-template-columns: 1fr; } .president-photo { max-width: 180px; } .president-name { text-align: left; } }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.value-card .cat-icon { margin-bottom: 14px; }
.value-card h3 { font-size: 1.1rem; }
.value-card p, .value-card li { font-size: .94rem; }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; } }
.process-steps { counter-reset: p; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.process-steps li { counter-increment: p; position: relative; padding: 16px 18px 16px 62px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.process-steps li::before { content: counter(p); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--ink); }
.patent-table td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); }
.pub-list { list-style: none; padding: 0; margin: 0; counter-reset: pub; }
.pub-list li { counter-increment: pub; position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line-2); font-size: .94rem; }
.pub-list li::before { content: counter(pub); position: absolute; left: 0; top: 14px; width: 30px; height: 30px; border-radius: 8px; background: var(--bg-soft); color: var(--navy); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.pub-list a { font-weight: 600; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 38%; color: var(--muted); font-weight: 600; padding-right: 16px; }
.info-table td { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-sm); }
.contact-line { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.contact-line:last-of-type { border-bottom: 0; }
.contact-line .cat-icon { width: 42px; height: 42px; flex: none; }
.contact-line .cat-icon svg { width: 20px; height: 20px; }
.contact-line small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.contact-line div { color: var(--ink); font-weight: 500; }
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin-top: 24px; aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--red); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--bg-soft); transition: border-color .15s, background .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -100px; bottom: -200px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(215, 38, 46, .3), rgba(215, 38, 46, 0) 70%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 72px; padding-bottom: 72px; }
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { color: rgba(255, 255, 255, .75); margin: 0; max-width: 580px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #061629; color: rgba(255, 255, 255, .7); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand strong { font-size: 1.08rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: #fff; }
.footer-contact div { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(4, 12, 24, .92); display: none; align-items: center; justify-content: center; padding: 56px 16px 72px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; object-fit: contain; background: #fff; border-radius: 8px; }
.lightbox-caption { position: absolute; left: 16px; right: 16px; bottom: 20px; text-align: center; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.lightbox-btn { position: absolute; border: 0; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox-btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.center { text-align: center; }
.hide { display: none !important; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
@media print {
  .site-header, .site-footer, .subnav, .catalog-toolbar, .cta-band, .product-cta, .lang-switch { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Coating service feature (home) ---------- */
.service-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.service-gallery a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.service-gallery a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.service-gallery span { display: block; text-align: center; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.service-gallery .wide { grid-column: 1 / -1; }
.service-gallery .wide img { aspect-ratio: auto; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; padding: 0; list-style: none; }
.pill-list li { background: var(--teal-light); color: #0a6c6e; font-weight: 600; font-size: .88rem; padding: 6px 14px; border-radius: 999px; }

/* ---------- MPPT pioneer note & category tagline ---------- */
.cat-tagline { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: var(--red-dark); background: #fdecec; padding: 4px 12px 4px 8px; border-radius: 999px; margin-bottom: 8px; }
.cat-tagline svg { width: 15px; height: 15px; flex: none; }
.cat-card .cat-tagline { align-self: flex-start; margin: 0; }
.pioneer-note { display: flex; gap: 18px; margin-top: 36px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pioneer-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fdecec; color: var(--red); }
.pioneer-icon svg { width: 22px; height: 22px; }
.pioneer-title { font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.pioneer-note p { margin: 0 0 10px; }
.pioneer-refs { margin: 0; padding-left: 1.2em; font-size: .85rem; }
.pioneer-refs li { margin-bottom: 4px; }
.pioneer-refs a { color: var(--muted); }
.pioneer-refs a:hover { color: var(--red); }
@media (max-width: 560px) { .pioneer-note { flex-direction: column; padding: 18px; } }
