/* 希禾官网独立视觉；仅作用于 public/website，不覆盖管理后台。
   Design tokens: 8px spacing scale, one desaturated green accent, system CJK fonts. */
:root {
  --font: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --bg: #ffffff;
  --bg-soft: #f5f6f3;
  --bg-sunk: #eceee9;
  --ink: #121a16;
  --ink-2: #36413b;
  --muted: #5b6760;
  --line: #e2e6e0;
  --line-strong: #c9d0ca;
  --accent: #2c654b;
  --accent-hover: #224f3b;
  --accent-soft: #e8efea;
  --accent-ink: #1d4634;
  --dark: #0f1613;
  --dark-2: #1a231f;
  --on-dark: #f3f5f2;
  --on-dark-muted: #a8b3ad;
  --white: #fff;
  /* legacy aliases kept for any late-bound inline styles */
  --forest: var(--accent-ink); --paper: var(--bg); --mist: var(--bg-soft); --leaf: var(--accent); --lime: var(--accent-soft);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px;
  --radius: 12px; --radius-lg: 16px;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --inline: max(var(--gutter), calc((100% - var(--max)) / 2));
  --header-height: 64px;
  --shadow-1: 0 1px 2px rgb(16 24 20 / .06), 0 2px 8px rgb(16 24 20 / .05);
  --shadow-2: 0 12px 40px rgb(16 24 20 / .14), 0 2px 6px rgb(16 24 20 / .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
body:has(dialog[open]), body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
a, button, summary { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.factory :focus-visible, .footer :focus-visible, .menu-panel :focus-visible { outline-color: var(--on-dark); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
main { display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: var(--s1); left: var(--s1); z-index: 100; padding: 10px var(--s2); background: var(--ink); color: var(--white); border-radius: 8px; transform: translateY(-200%); opacity: 0; }
.skip-link:focus-visible { transform: none; opacity: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-height); background: rgb(255 255 255 / .86); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.scrolled, body.subpage .site-header { border-bottom-color: var(--line); background: rgb(255 255 255 / .92); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s4); padding-inline: var(--inline); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 34px; height: 32px; object-fit: contain; }
.brand > span { font-size: 18px; line-height: 1.1; font-weight: 600; letter-spacing: .04em; }
.brand b { font-weight: 600; color: var(--accent); }
.brand small { display: block; font-size: 9px; font-weight: 500; letter-spacing: .14em; color: var(--muted); margin-top: 3px; }
.desktop-nav { display: flex; align-items: center; gap: var(--s1); height: 100%; margin-left: var(--s3); }
.desktop-nav > a, .nav-group > a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 12px; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: color .15s; }
.desktop-nav > a:hover, .nav-group > a:hover, .desktop-nav a[aria-current] { color: var(--ink); }
.desktop-nav > a[aria-current]::after, .nav-group > a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-group { position: relative; height: 100%; }
.nav-dropdown { position: absolute; top: calc(100% - 6px); left: 0; min-width: 220px; padding: var(--s1); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav-group:hover .nav-dropdown, .nav-group:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.nav-dropdown a:hover { background: var(--bg-soft); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: var(--s2); margin-left: auto; flex-shrink: 0; }
.contact-link { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--s2); border-radius: 999px; background: var(--accent); color: var(--white); font-size: 14px; font-weight: 500; transition: background .15s; }
.contact-link:hover { background: var(--accent-hover); }
.contact-link span { font-size: 13px; }
#menu-toggle { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 4px; font-size: 14px; }
.menu-lines { width: 18px; height: 10px; border-block: 1.5px solid currentColor; display: block; }

/* Shared section rhythm */
.section { position: relative; isolation: isolate; scroll-margin-top: var(--header-height); }
.section-pad { padding: var(--s16) var(--inline); }
.eyebrow { font-size: 13px; line-height: 1.5; font-weight: 600; letter-spacing: .08em; color: var(--accent); margin-bottom: var(--s2); }
.section-heading h2 { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.2; }
.section-heading > p:not(.eyebrow), .heading-row > p { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 34em; }
.heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--accent); white-space: nowrap; }
.text-link span { font-size: 20px; line-height: 1; transition: transform .2s var(--ease); }
.text-link:hover { color: var(--accent-hover); }
.text-link:hover span { transform: translateX(3px); }
.round-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 var(--s3); margin-top: var(--s4); border-radius: 999px; background: var(--accent); color: var(--white); font-size: 15px; font-weight: 500; transition: background .15s; }
.round-link:hover { background: var(--accent-hover); }
.round-link span { font-size: 18px; line-height: 1; }
.visual-caption { font-size: 12px; color: var(--muted); margin-top: var(--s3); }
.concept-caption { font-size: 12px; color: var(--muted); line-height: 1.6; }
.index-label { font-size: 13px; color: var(--muted); margin-bottom: var(--s2); }

/* Crops */
.crops { background: var(--bg); }
.crops-intro { color: var(--muted); }
.crop-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s8); }
.crop-card { min-width: 0; display: flex; flex-direction: column; }
.crop-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); margin-bottom: var(--s3); }
.crop-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.crop-card:hover .crop-photo img { transform: scale(1.04); }
.crop-number { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.crop-card h3 { font-size: 22px; margin: 6px 0 var(--s1); }
.crop-card p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.crop-card .crop-opportunity { color: var(--accent-ink); font-size: 13px; font-weight: 500; margin-bottom: var(--s1); }
.crop-factors { margin-top: var(--s2); padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.6; }
.crop-factors b { display: block; color: var(--ink-2); font-weight: 600; font-size: 12px; margin-bottom: 2px; }
.crop-preview { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: var(--s2) 0 0; color: var(--accent); font-size: 15px; font-weight: 500; }
.crop-preview span { font-size: 20px; line-height: 1; transition: transform .2s var(--ease); }
.crop-preview:hover span { transform: translateX(3px); }
.crop-business-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: center; gap: var(--s5); margin-top: var(--s6); padding: var(--s4) var(--s5); background: var(--bg-soft); border-radius: var(--radius-lg); }
.crop-business-note strong { font-size: 22px; font-weight: 600; }
.crop-business-note p { font-size: 15px; color: var(--muted); }

/* Factory band */
.factory { min-height: 640px; display: flex; align-items: center; padding: var(--s12) var(--inline); color: var(--on-dark); background: var(--dark); overflow: hidden; }
.section-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.factory-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgb(10 16 13 / .86) 0%, rgb(10 16 13 / .6) 42%, rgb(10 16 13 / .1) 75%); }
.factory-copy { max-width: 560px; }
.factory .eyebrow { color: #b9d3c4; }
.factory-copy h2 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.2; margin-bottom: var(--s3); }
.factory-copy > p:not(.eyebrow) { font-size: 17px; color: #d3dad6; line-height: 1.75; max-width: 30em; }
.factory .round-link { background: var(--white); color: var(--ink); }
.factory .round-link:hover { background: #e9ece9; }
.factory > .concept-caption { position: absolute; left: var(--inline); bottom: var(--s3); color: #b6c0bb; }

/* Products */
.products { background: var(--bg-soft); }
.product-backdrop { display: none; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s8); }
.page-card { min-width: 0; display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s var(--ease); }
a.page-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.page-card-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-sunk); }
.page-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a.page-card:hover .page-card-image img { transform: scale(1.04); }
.page-card-copy { display: flex; flex-direction: column; flex: 1; padding: var(--s3) var(--s4) var(--s4); }
.page-card .eyebrow { font-size: 11px; margin-bottom: var(--s1); }
.page-card h2, .page-card h3 { font-size: 24px; margin: 0 0 12px; }
.page-card h3 br { display: none; }
.page-card p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.page-card .text-link { margin-top: auto; padding-top: var(--s3); }
.image-origin { display: block; font-size: 11px; color: var(--muted); margin-bottom: var(--s1); }

/* Workflow */
.workflow-section { background: var(--bg); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s8); }
.workflow-grid article { min-width: 0; display: flex; flex-direction: column; }
.workflow-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--s3); background: var(--bg-soft); }
.workflow-grid article > span { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.workflow-grid h3 { font-size: 22px; margin: 6px 0 12px; }
.workflow-grid p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.workflow-grid .text-link { margin-top: auto; padding-top: var(--s2); align-self: flex-start; min-height: 40px; }
.scene-failed ~ * .workflow-grid button, body:has(.scene-failed) .workflow-grid button { display: none; }

/* Benefits */
.benefits { background: var(--bg-soft); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s8); }
.benefit-grid article { padding-top: var(--s3); border-top: 1px solid var(--line-strong); }
.benefit-symbol { display: block; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: var(--s5); font-variant-numeric: tabular-nums; }
.benefit-grid h3 { font-size: 20px; margin-bottom: var(--s1); }
.benefit-grid p { font-size: 15px; color: var(--muted); }

/* Capabilities */
.capabilities { background: var(--bg); }
.capability-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s10); align-items: start; }
.capability-intro { margin-top: var(--s3); }
.capability-list details { border-bottom: 1px solid var(--line); }
.capability-list details:first-child { border-top: 1px solid var(--line); }
.capability-list summary { display: flex; align-items: center; gap: var(--s3); min-height: 72px; font-size: 22px; font-weight: 600; list-style: none; cursor: pointer; }
.capability-list summary::-webkit-details-marker { display: none; }
.capability-list summary > span { font-size: 13px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; width: 24px; }
.capability-list summary b { margin-left: auto; font-size: 24px; font-weight: 300; color: var(--muted); transition: transform .2s; }
.capability-list details[open] summary b { transform: rotate(45deg); }
.capability-list details p { padding: 0 var(--s5) var(--s3) 48px; font-size: 16px; color: var(--muted); }

/* Story / about */
.story { background: var(--bg-soft); }
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s10); align-items: center; }
.story-visual { position: relative; }
.story-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); background: var(--bg-sunk); }
.story-visual small { display: block; margin-top: var(--s1); font-size: 12px; color: var(--muted); }
.story-copy { max-width: 520px; }
.story-copy h2 { font-size: clamp(30px, 3.2vw, 48px); margin-bottom: var(--s2); }
.story-copy h3 { font-size: 20px; color: var(--ink-2); margin-bottom: var(--s3); }
.story-copy > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.85; }
.story-copy .text-link { margin-top: var(--s4); }

/* News */
.news { background: var(--bg); }
.empty-state { margin-top: var(--s6); padding: var(--s6) var(--s5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
.empty-state > span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--muted); margin-bottom: var(--s2); }
.empty-state h3 { font-size: 24px; margin-bottom: var(--s1); }
.empty-state p { font-size: 16px; color: var(--muted); }
.empty-state a { display: inline-flex; margin-top: var(--s3); font-size: 15px; font-weight: 500; color: var(--accent); }

/* Footer */
.footer { padding: var(--s12) var(--inline) var(--s4); background: var(--dark); color: var(--on-dark); }
.footer .eyebrow { color: #9fc2ae; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); padding-bottom: var(--s8); border-bottom: 1px solid rgb(255 255 255 / .12); }
.footer h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.3; }
.footer-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 var(--s3); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 15px; font-weight: 500; flex-shrink: 0; transition: background .15s; }
.footer-cta:hover { background: #e4e8e5; }
.footer-cta span { font-size: 18px; line-height: 1; }
.footer-columns { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s8); padding: var(--s8) 0; }
.footer-brand strong { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: .04em; }
.footer-brand strong > span { font-size: 13px; font-weight: 400; color: var(--on-dark-muted); letter-spacing: .04em; }
.footer-brand p { margin: var(--s2) 0; color: var(--on-dark-muted); font-size: 14px; }
.footer-brand > a { font-size: 14px; color: var(--on-dark); border-bottom: 1px solid rgb(255 255 255 / .3); padding-bottom: 2px; }
.footer-brand > a:hover { border-color: var(--on-dark); }
.footer .official-logo { width: 32px; height: 30px; object-fit: contain; background: var(--white); border-radius: 6px; padding: 2px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.footer-links h3 { font-size: 13px; font-weight: 600; color: var(--on-dark); margin-bottom: var(--s2); letter-spacing: .04em; }
.footer-links a { display: block; padding: 6px 0; font-size: 14px; color: var(--on-dark-muted); transition: color .15s; }
.footer-links a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); padding-top: var(--s3); border-top: 1px solid rgb(255 255 255 / .12); }
.footer-bottom small { font-size: 12px; color: #8f9a94; }

/* Floating utilities */
.section-dots { display: none; }
.back-top { position: fixed; z-index: 15; right: var(--s3); bottom: var(--s3); width: 44px; height: 44px; display: grid; place-items: center; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 50%; box-shadow: var(--shadow-1); font-size: 18px; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.back-top.visible { opacity: 1; visibility: visible; }
body:has(.viewer-settings[open]) .back-top, body.scene-expanded .back-top { opacity: 0; visibility: hidden; }

/* Dialogs */
dialog { color: var(--ink); border: 0; padding: 0; }
dialog::backdrop { background: rgb(10 16 13 / .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.menu-panel { position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--ink); padding: var(--s3) var(--gutter) var(--s5); }
.close-menu, .dialog-close { position: absolute; top: var(--s2); right: var(--gutter); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: inherit; font-size: 26px; line-height: 1; font-weight: 300; background: var(--bg-soft); }
.close-menu:hover, .dialog-close:hover { background: var(--bg-sunk); }
.menu-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; margin-bottom: var(--s5); min-height: 44px; }
.menu-brand small { display: none; }
.official-logo { width: 34px; height: 32px; object-fit: contain; }
#menu-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
#menu-links > a { font-size: 20px; font-weight: 600; }
#menu-links a { display: block; }
.menu-group-title { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
#menu-links .menu-group > div > a { font-size: 15px; color: var(--muted); padding: 8px 0; }
#menu-links a:hover { color: var(--accent); }
.menu-platform { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s3); padding: 0 var(--s3); border-radius: 999px; background: var(--accent); color: var(--white); font-size: 15px; font-weight: 500; }
.menu-contact { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 20px; font-weight: 600; }
.menu-contact span { color: var(--accent); }
.factory-dialog { width: min(1040px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: var(--s6); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.factory-dialog .dialog-close { top: var(--s3); right: var(--s3); }
.factory-dialog h2 { font-size: 32px; }
.factory-dialog .eyebrow { padding-right: 56px; }
.factory-tabs, .page-tabs { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s4) 0; }
.factory-tabs button, .page-tabs a, .page-tabs button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s2); border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.factory-tabs button:hover, .page-tabs a:hover, .page-tabs button:hover { border-color: var(--ink-2); }
.factory-tabs [aria-selected="true"], .page-tabs .active, .page-tabs [aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }
#factory-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#factory-items article, #factory-items > div { min-width: 0; padding: var(--s3); background: var(--bg-soft); border-radius: var(--radius); }
#factory-items h3 { font-size: 17px; }
#factory-items span { display: block; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: var(--s1); }
.dialog-note { color: var(--muted); font-size: 12px; margin-top: var(--s3); }
.noscript { position: fixed; inset: auto 0 0; z-index: 60; padding: var(--s2) var(--s3); background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); text-align: center; }

/* Sub-pages */
.subpage-hero { position: relative; isolation: isolate; min-height: 440px; display: flex; align-items: flex-end; padding: var(--s16) var(--inline) var(--s8); background: var(--dark); color: var(--on-dark); overflow: hidden; }
.subpage-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.subpage-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 16 13 / .25), rgb(10 16 13 / .78)); }
.subpage-hero h1 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.15; margin: var(--s2) 0; }
.subpage-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); }
.subpage-intro span { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: #b9d3c4; }
.subpage-hero p { max-width: 40em; font-size: 17px; line-height: 1.75; color: #dfe5e1; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #c2cbc6 !important; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.subpage-content { padding: var(--s12) var(--inline) var(--s16); }
.subpage-content .section-heading { margin-bottom: var(--s5); }
.subpage-content h2 { font-size: clamp(28px, 2.8vw, 40px); }
.subpage-content > p { max-width: 50em; color: var(--muted); margin-bottom: var(--s4); }
.subpage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.subpage-grid article.page-card .page-card-copy { padding: var(--s4); }
.subpage-grid .index-label { display: block; font-weight: 600; color: var(--accent); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s10); align-items: start; margin-bottom: var(--s8); }
.detail-image img { width: 100%; max-height: 520px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.detail-image small { display: block; color: var(--muted); padding-top: var(--s1); font-size: 12px; }
.detail-layout p { font-size: 16px; line-height: 1.85; color: var(--muted); }
.detail-layout .story-copy p + p { margin-top: var(--s2); }
.feature-list article { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.feature-list article:first-child { border-top: 1px solid var(--line); }
.feature-list article > span { font-size: 13px; font-weight: 600; color: var(--accent); }
.feature-list article h3 { margin: 4px 0 6px; font-size: 20px; }
.detail-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding-top: var(--s4); border-top: 1px solid var(--line); }
.detail-actions .round-link { margin-top: 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s10); align-items: start; }
.contact-card { padding: var(--s5); background: var(--bg-soft); border-radius: var(--radius-lg); }
.contact-card h2 { font-size: 28px; margin-bottom: var(--s2); }
.contact-card p { color: var(--muted); font-size: 16px; margin-bottom: var(--s2); }
.contact-form { display: grid; gap: var(--s3); }
.contact-form label { display: grid; gap: var(--s1); font-size: 14px; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px var(--s2); color: var(--ink); font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form textarea { resize: vertical; }
.contact-form .round-link { margin-top: 0; justify-self: start; }
.contact-note, #contact-status { color: var(--muted); font-size: 13px; }
.not-found { min-height: 50vh; text-align: center; }
.not-found h2 { margin-bottom: var(--s2); }
.not-found p { margin: 0 auto var(--s2); color: var(--muted); max-width: 600px; }

@media (max-width: 1200px) {
  .crop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s6); }
  .desktop-nav > a, .nav-group > a { padding: 0 8px; }
}
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  #menu-toggle { display: inline-flex; }
  #menu-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .capability-layout, .story-layout { gap: var(--s6); }
  .footer-columns { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 900px) {
  .section-pad { padding-block: var(--s12); }
  .heading-row { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .product-grid, .subpage-grid, .workflow-grid { grid-template-columns: 1fr 1fr; }
  .workflow-grid article:last-child { grid-column: span 2; }
  .benefit-grid { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); }
  .capability-layout, .story-layout, .detail-layout, .contact-layout { grid-template-columns: 1fr; }
  .crop-business-note { grid-template-columns: 1fr; gap: var(--s1); padding: var(--s3); }
  #factory-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factory-dialog { padding: var(--s5) var(--s3); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .section-pad { padding-block: var(--s10); }
  .section-heading h2, .story-copy h2 { font-size: 28px; }
  .section-heading > p:not(.eyebrow), .heading-row > p { font-size: 15px; }
  .brand small { display: none; }
  .brand > span { font-size: 17px; }
  .contact-link { height: 32px; padding: 0 12px; font-size: 13px; }
  .header-actions { gap: var(--s1); }
  #menu-toggle > span:last-child { display: none; }
  #menu-toggle { width: 40px; justify-content: center; }
  .crop-grid { display: flex; gap: var(--s2); margin-top: var(--s5); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .crop-grid::-webkit-scrollbar { display: none; }
  .crop-card { flex: 0 0 78%; scroll-snap-align: start; }
  .crop-photo { aspect-ratio: 4 / 3; }
  .product-grid, .subpage-grid, .workflow-grid { grid-template-columns: 1fr; gap: var(--s5); margin-top: var(--s5); }
  .workflow-grid article:last-child { grid-column: auto; }
  .benefit-grid { margin-top: var(--s5); gap: var(--s4) var(--s3); }
  .benefit-symbol { margin-bottom: var(--s2); }
  .benefit-grid h3 { font-size: 17px; }
  .benefit-grid p { font-size: 14px; }
  .capability-list summary { font-size: 18px; min-height: 64px; gap: var(--s2); }
  .capability-list details p { padding: 0 0 var(--s3) 40px; font-size: 15px; }
  .factory { min-height: 560px; align-items: flex-end; padding-block: var(--s10) var(--s8); }
  .factory-overlay { background: linear-gradient(180deg, rgb(10 16 13 / .15), rgb(10 16 13 / .88) 60%); }
  .factory-copy > p:not(.eyebrow) { font-size: 15px; }
  .factory > .concept-caption { bottom: var(--s2); }
  .page-card-copy { padding: var(--s3); }
  .page-card h2, .page-card h3 { font-size: 21px; }
  .empty-state { padding: var(--s4) var(--s3); }
  .empty-state h3 { font-size: 20px; }
  .footer { padding-top: var(--s10); }
  .footer-top { flex-direction: column; align-items: flex-start; gap: var(--s3); padding-bottom: var(--s5); }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-links > div:last-child { grid-column: span 2; }
  .back-top { right: var(--s2); bottom: var(--s2); }
  #menu-links { grid-template-columns: 1fr; gap: var(--s3); }
  .subpage-hero { min-height: 360px; padding-top: var(--s12); padding-bottom: var(--s5); }
  .subpage-hero h1 { font-size: 34px; }
  .subpage-hero p { font-size: 15px; }
  .subpage-content { padding-block: var(--s8) var(--s10); }
  .detail-actions { align-items: flex-start; flex-direction: column; }
  .contact-card { padding: var(--s3); }
  #factory-items { gap: var(--s1); }
  #factory-items article, #factory-items > div { padding: var(--s2); }
  #factory-items h3 { font-size: 15px; }
  .factory-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .factory-dialog h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .section-dots, .back-top, dialog { display: none !important; }
  .section-pad { padding-block: 40px; }
  .footer { background: var(--bg); color: var(--ink); }
}

/* for：【S-342】Language picker uses the existing header spacing and typography. */
#language-switch { position: absolute; top: calc(100% + var(--s1)); right: var(--inline); min-height: 36px; padding: 0 var(--s2); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow-1); font: inherit; font-size: 14px; white-space: nowrap; }
html[lang="en"] .scene-summary, html[lang="en"] .scene-topline { min-width: 0; }
html[lang="en"] .viewer-bar { flex-wrap: wrap; }
@media (max-width: 1280px) {
  html[lang="en"] .desktop-nav { display: none; }
  html[lang="en"] #menu-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  html[lang="en"] .header-inner { gap: var(--s1); }
}
