@font-face { font-family: "Xivilization JP"; src: url("./assets/fonts/xivilization-jp-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Xivilization JP"; src: url("./assets/fonts/xivilization-jp-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* Xivilization v0.8 — refine the selected dark, metal and orange identity. */
:root {
  --ink: #202221;
  --muted: #626763;
  --paper: #fff;
  --surface: #f3f4f1;
  --line: #d9ddd7;
  --dark: #151616;
  --dark-raised: #232625;
  --line-dark: #484c48;
  --on-dark: #f7f8f4;
  --on-dark-muted: #b9bdb7;
  --accent: #ec8650;
  --accent-hover: #f69a69;
  --accent-pressed: #e47b43;
  --accent-ink: #963b14;
  --accent-soft: #ecd9cc;
  --ink-hover: #353a36;
  --font: "Xivilization JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --text-caption: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --heading-sm: 1.375rem;
  --heading-md: 2.25rem;
  --display: clamp(42px, 3.65vw, 56px);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --section-space: 112px;
  --container: 1200px;
  --gutter: 48px;
  --header-height: 80px;
  --radius: 4px;
  --radius-panel: 8px;
  --duration: 160ms;
  --inset-left: max(var(--gutter), env(safe-area-inset-left));
  --inset-right: max(var(--gutter), env(safe-area-inset-right));
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: var(--text-base); line-height: 1.85; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.5; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: var(--heading-md); }
h3 { font-size: var(--heading-sm); }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 5px; }
.hero :focus-visible, .use-section :focus-visible { outline-color: var(--accent); }
.contact-section :focus-visible { outline-color: var(--ink); }
.container, .header-inner { width: min(var(--container), calc(100% - var(--inset-left) - var(--inset-right))); margin-inline: auto; }
.section { padding-block: var(--section-space); }
section[id], main[id] { scroll-margin-top: 24px; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; margin-bottom: var(--space-6); }
.section-intro > p { color: var(--muted); padding-top: 6px; max-width: 36em; }
.section-note { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-3); line-height: 1.8; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 20; padding: 10px 18px; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* A shared alignment line for navigation and page content. */
html:not(.js) .site-header { position: relative; }
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; }
.brand .company-logo { width: 208px; }
#main-nav { display: flex; gap: var(--space-4); align-items: center; font-size: var(--text-sm); font-weight: 700; }
#main-nav > a { transition: color var(--duration), background-color var(--duration); }
#main-nav > a:hover { color: var(--accent-ink); }
#main-nav .nav-contact { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 10px 20px; background: var(--ink); color: var(--paper); border-radius: var(--radius); }
#main-nav .nav-contact:hover, #main-nav .nav-contact:active { background: var(--ink-hover); }
.menu-toggle { display: none; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 52px; padding: 14px 24px; border-radius: var(--radius); font-size: var(--text-sm); font-weight: 700; line-height: 1.5; transition: background-color var(--duration), color var(--duration); }
.button > span { font-size: 20px; font-weight: 400; }
.button-accent { color: var(--ink); background: var(--accent); }
.button-accent:hover { background: var(--accent-hover); }
.button-accent:active { background: var(--accent-pressed); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover, .button-dark:active { background: var(--ink-hover); }
.text-link { display: inline-flex; align-items: center; font-size: var(--text-sm); border-bottom: 1px solid var(--on-dark-muted); padding-block: 8px; transition: color var(--duration), border-color var(--duration); }
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* The original large model drawing remains the main visual. */
.hero { background: var(--dark); color: var(--on-dark); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.06fr 1fr; min-height: 660px; position: relative; align-items: center; }
.hero-copy { position: relative; z-index: 1; padding-block: 72px 88px; }
h1 { font-size: var(--display); font-weight: 700; line-height: 1.45; letter-spacing: -.025em; white-space: nowrap; }
.hero-copy > p { margin-top: var(--space-4); color: var(--on-dark-muted); font-size: var(--text-lg); line-height: 1.95; }
.hero-actions { display: flex; gap: var(--space-4); align-items: center; margin-top: var(--space-4); }
.hero-art { position: relative; width: 770px; max-width: none; margin-left: -70px; align-self: stretch; }
.hero-art > img { position: absolute; width: 770px; max-width: none; top: -20px; left: 0; }
.hero-art figcaption { position: absolute; left: 200px; bottom: 40px; font-size: var(--text-sm); color: var(--on-dark); line-height: 1.7; }
.hero-art figcaption > span { display: block; color: var(--on-dark-muted); font-size: var(--text-caption); margin-top: 4px; }
.hero-bottom { display: flex; align-items: center; border-top: 1px solid var(--dark-raised); gap: var(--space-6); min-height: 72px; font-size: var(--text-sm); color: var(--on-dark-muted); }
.hero-bottom > a { margin-left: auto; color: var(--accent); font-size: 24px; min-width: 44px; min-height: 44px; display: grid; place-items: center; }

/* The same three services with consistent text and detail alignment. */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.service-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-visual { height: 220px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; position: relative; border-bottom: 1px solid var(--line); margin-inline: var(--space-3); }
.visual-caption { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: space-around; font-size: var(--text-caption); color: var(--muted); }
.service-body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; min-width: 0; }
.service-body h3 { font-size: var(--heading-sm); }
.service-body p { margin-block: var(--space-2) var(--space-3); color: var(--muted); }
.service-body ul { margin-top: auto; padding-top: var(--space-2); border-top: 1px solid var(--line); font-size: var(--text-sm); line-height: 1.8; }
.service-body li + li, .use-points li + li { margin-top: 8px; }
.service-body li, .use-points li { padding-left: 16px; position: relative; }
.service-body li::before, .use-points li::before { content: ""; width: 4px; height: 4px; position: absolute; left: 0; top: .8em; background: var(--accent-ink); }
.build-visual { gap: 24px; }
.network-line { width: 86%; height: 1px; background: #9fa69b; position: absolute; top: 43%; }
.network-file, .network-core, .network-app { z-index: 1; background: var(--surface); border: 1px solid #858d7f; margin-bottom: 24px; box-shadow: 5px 5px 0 #e2e5df; }
.network-file { width: 48px; height: 64px; padding: 18px 10px; }
.network-file i { height: 1px; background: #848b80; display: block; margin-bottom: 7px; }
.network-core { width: 80px; height: 80px; display: grid; place-content: center; position: relative; border-color: var(--accent-ink); background: var(--accent-soft); }
.network-core b { font: 500 16px var(--font); color: var(--accent-ink); }
.network-core i { position: absolute; width: 5px; height: 1px; background: var(--accent-ink); right: -6px; top: 26px; }
.network-core i:nth-of-type(2) { top: 38px; }
.network-core i:nth-of-type(3) { top: 50px; }
.network-app { width: 55px; height: 46px; padding: 8px; }
.network-app i { display: block; height: 4px; width: 100%; background: #c1c8bb; margin-bottom: 5px; }
.network-app i:first-child { background: #939d8b; width: 55%; }
.optimize-visual { gap: 24px; }
.matrix { display: grid; gap: 4px; margin-bottom: 24px; transform: skewY(-10deg); }
.matrix-large { width: 100px; height: 100px; grid-template-columns: repeat(4, 1fr); }
.matrix-small { width: 69px; height: 69px; grid-template-columns: repeat(3, 1fr); }
.matrix-large i { background: #b4bbae; box-shadow: 2px 3px 0 #848e7c; }
.matrix-small i { background: var(--accent); box-shadow: 2px 3px 0 #bd6537; }
.matrix-arrow { color: var(--muted); margin-bottom: 24px; }
.operation-track { width: 160px; height: 130px; border: 1px solid #a5ada0; border-radius: 50%; position: relative; margin-bottom: 27px; }
.operation-track span { position: absolute; background: var(--surface); border: 1px solid #858e7e; font-size: var(--text-caption); padding: 6px 13px; }
.operation-track span:nth-child(1) { left: 50px; top: -15px; }
.operation-track span:nth-child(2) { right: -20px; bottom: 10px; }
.operation-track span:nth-child(3) { left: -20px; bottom: 10px; border-color: var(--accent-ink); color: var(--accent-ink); background: var(--accent-soft); }
.operation-track i { position: absolute; width: 8px; height: 8px; border: 1px solid var(--accent-ink); background: var(--accent); border-radius: 50%; top: 40px; right: 0; }

/* The original local architecture, with readable captions. */
.approach-section { background: var(--surface); }
.approach-grid, .company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.approach-copy > p { color: var(--muted); margin-top: var(--space-3); max-width: 36em; }
.approach-points { margin-top: var(--space-4); border-top: 1px solid var(--line); }
.approach-points li { display: grid; grid-template-columns: 135px 1fr; gap: 12px; font-size: var(--text-sm); border-bottom: 1px solid var(--line); padding-block: 16px; }
.approach-points strong { font-weight: 700; }
.approach-points span { color: var(--muted); }
.local-diagram { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.diagram-boundary { border: 1px solid var(--line); padding: 24px; }
.diagram-boundary-title { font-size: var(--text-sm); display: flex; gap: 8px; align-items: center; }
.boundary-dot { width: 6px; height: 6px; background: var(--accent-ink); }
.diagram-input, .diagram-output { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.diagram-input span, .diagram-output span { flex: 1; min-width: 0; text-align: center; font-size: var(--text-sm); padding: 10px 8px; background: var(--surface); border: 1px solid var(--line); }
.diagram-path { display: flex; gap: 12px; align-items: center; justify-content: center; font-size: 18px; color: #98a18f; margin-block: 12px; line-height: 1.2; }
.diagram-path span { width: 60px; height: 1px; background: var(--line); }
.diagram-model { display: flex; align-items: center; justify-content: center; gap: 24px; background: var(--dark); color: var(--on-dark); padding: 24px; }
.diagram-model strong { font-size: 18px; font-weight: 400; }
.diagram-model small { display: block; color: var(--on-dark-muted); font-size: var(--text-caption); margin-top: 4px; }
.model-icon { display: flex; flex-direction: column; gap: 4px; width: 40px; transform: skewY(-15deg); flex-shrink: 0; }
.model-icon i { height: 9px; background: #b1b9a8; border-bottom: 2px solid #555f4e; }
.model-icon i:nth-child(2) { background: var(--accent); border-color: #9e542e; }
.diagram-output { margin-top: 0; }
.local-diagram figcaption { color: var(--muted); margin-top: var(--space-2); font-size: var(--text-caption); line-height: 1.8; }

/* Work examples: a question, a document and an on-device architecture. */
.use-section { background: var(--dark); color: var(--on-dark); }
.use-section .section-intro { display: block; margin-bottom: 32px; }
.use-section .section-intro > p { margin-top: 16px; padding: 0; max-width: 48em; color: var(--on-dark-muted); }
.use-section .section-note { color: var(--on-dark-muted); }
.use-tabs { display: none; }
.js .use-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 40px; }
.use-tabs button { min-height: 56px; padding: 14px 20px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: transparent; color: var(--on-dark-muted); font-size: var(--text-base); font-weight: 700; text-align: center; transition: background-color var(--duration), color var(--duration); }
.use-tabs button:hover { color: var(--on-dark); background: var(--dark-raised); }
.use-tabs button.active { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.use-tabs button:focus-visible { outline-offset: 4px; }
.use-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-8); align-items: center; }
.use-panel > * { min-width: 0; }
.use-panel + .use-panel { margin-top: var(--space-6); }
.js .use-panel + .use-panel { margin-top: 0; }
.use-copy h3 { font-size: 36px; font-weight: 700; line-height: 1.45; }
.use-copy > p { color: var(--on-dark-muted); margin-top: var(--space-3); max-width: 32em; }
.use-points { font-size: var(--text-sm); margin-top: var(--space-3); padding-top: 20px; border-top: 1px solid var(--line-dark); color: var(--on-dark); }
.use-points li::before { background: var(--accent); }
.sample-ui { color: var(--ink); background: var(--surface); padding: 28px; border-radius: var(--radius-panel); font-size: var(--text-sm); }
.sample-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 20px; font-size: var(--text-sm); }
.sample-top > span:first-child { font-weight: 700; }
.sample-top > span:last-child { color: var(--muted); font-size: var(--text-caption); }
.search-example { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); background: var(--paper); padding: 16px 20px; border-radius: var(--radius); }
.search-icon { width: 14px; height: 14px; border: 1.5px solid var(--muted); border-radius: 50%; position: relative; flex-shrink: 0; margin-right: 4px; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: var(--muted); transform: rotate(45deg); right: -5px; bottom: -3px; }
.result-sheet { margin-top: 20px; background: var(--paper); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.result-sheet h4 { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 700; }
.result-steps { margin-top: 20px; padding-left: 24px; list-style: decimal; }
.result-steps li { padding-left: 8px; }
.result-steps li + li { margin-top: 12px; }
.result-steps li::marker { color: var(--accent-ink); font-weight: 700; }
.source-file { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.source-file small { display: block; font-size: var(--text-caption); color: var(--muted); }
.file-icon { display: block; width: 24px; height: 30px; border: 1px solid #9fa69b; border-radius: 2px; position: relative; flex-shrink: 0; }
.file-icon::after { content: ""; position: absolute; top: 9px; left: 5px; right: 5px; height: 1px; background: #9fa69b; box-shadow: 0 5px 0 #9fa69b, 0 10px 0 #9fa69b; }
.sample-bottom { color: var(--muted); font-size: var(--text-caption); margin-top: 20px; line-height: 1.7; }
.document-input { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.input-action { margin-left: auto; color: var(--muted); font-size: var(--text-caption); }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-status { background: var(--accent-soft); color: var(--accent-ink); padding: 4px 8px; border-radius: var(--radius); font-size: var(--text-caption); white-space: nowrap; }
.meeting-summary { margin: 24px 0 0; }
.meeting-summary > div + div { margin-top: 20px; }
.meeting-summary dt { font-weight: 700; font-size: var(--text-caption); color: var(--muted); }
.meeting-summary dd { margin: 6px 0 0; line-height: 1.8; }
.human-review { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-caption); }
.edge-concept { display: flex; gap: 16px; align-items: center; justify-content: center; }
.edge-device { flex: 1; min-width: 0; text-align: center; padding: 28px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.edge-device strong { display: block; font-size: var(--text-sm); font-weight: 700; margin-top: 20px; }
.edge-device small { display: block; color: var(--muted); font-size: var(--text-caption); margin-top: 4px; }
.edge-device.core small { color: var(--accent-ink); }
.edge-device.core { background: var(--accent-soft); border-color: #c38966; }
.edge-device .model-icon { margin-inline: auto; height: 38px; }
.device-drawing { display: block; width: 48px; height: 32px; margin: 3px auto; border: 2px solid var(--ink); border-radius: 3px; position: relative; }
.device-drawing::after { content: ""; position: absolute; height: 2px; width: 32px; background: var(--ink); bottom: -8px; left: 6px; }
.edge-connector { color: var(--muted); }
.edge-checks { margin: 24px 0 0; border-top: 1px solid var(--line); }
.edge-checks > div { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; }
.edge-checks dt { font-weight: 700; }
.edge-checks dd { margin: 0; color: var(--muted); text-align: right; }

/* Quiet typography for process, facts and questions. */
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.process-steps li { position: relative; padding-top: 24px; border-top: 1px solid var(--line); }
.process-steps li::before { content: ""; position: absolute; left: 0; top: -3px; width: 5px; height: 5px; background: var(--accent-ink); }
.step-number { display: block; font-size: 24px; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--accent-ink); margin-bottom: 24px; }
.process-steps h3 { font-size: 18px; }
.process-steps p { color: var(--muted); margin-top: 16px; }
.company-section { background: var(--surface); }
.company-signature { width: 286px; margin-block: 32px 24px; }
.company-statement p { color: var(--muted); max-width: 36em; }
.company-facts dl { margin: 0; }
.company-facts dl > div { display: grid; grid-template-columns: 128px 1fr; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.company-facts dl > div:first-child { border-top: 1px solid var(--line); }
.company-facts dt { font-weight: 700; }
.company-facts dd { color: var(--muted); margin: 0; }
#verified-company { margin-top: 24px; }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: var(--space-8); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding-block: 24px; font-size: var(--text-base); font-weight: 400; list-style: none; transition: color var(--duration); }
summary::-webkit-details-marker { display: none; }
.faq-list summary:hover, .faq-list details[open] summary { color: var(--accent-ink); }
.faq-list summary > span { font-size: 20px; color: var(--accent-ink); flex-shrink: 0; transition: transform var(--duration); }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-list details > p { color: var(--muted); margin-bottom: 24px; padding-right: 40px; max-width: 48em; }

/* Keep the original orange contact section. */
.contact-section { background: var(--accent); }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); padding-block: 80px; }
.contact-inner > div { min-width: 0; }
.contact-inner > div > p { margin-top: 24px; }
.contact-action { flex-shrink: 0; }
.contact-action .button { min-width: 320px; }
.contact-note { margin-top: 16px; font-size: var(--text-sm); overflow-wrap: anywhere; }
.contact-pending-title { font-size: var(--text-lg); font-weight: 700; }
.footer { padding-block: 48px 32px; }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-top .company-logo { width: 200px; }
.back-top { font-size: var(--text-sm); display: inline-flex; align-items: center; gap: 16px; min-height: 44px; }
.back-top:hover { color: var(--accent-ink); }
.back-top > span { color: var(--accent-ink); font-size: 18px; }
.footer-bottom { color: var(--muted); font-size: var(--text-caption); margin-top: 32px; align-items: flex-start; }
.data-policy { text-align: right; max-width: 460px; }
.data-policy summary { list-style: none; min-height: 32px; }
.data-policy summary:hover { color: var(--ink); }
.data-policy p { margin-top: 16px; line-height: 1.8; }

@media (min-width: 1700px) {
  .hero-art { width: 870px; margin-left: -40px; }
  .hero-art > img { width: 870px; top: -55px; }
  .hero-grid { min-height: 700px; }
}
@media (max-width: 1100px) {
  :root { --gutter: 32px; --section-space: 80px; --display: 42px; --heading-md: 32px; }
  #main-nav { gap: 24px; }
  .brand .company-logo { width: 188px; }
  .hero-grid { min-height: 610px; }
  .hero-art { width: 650px; margin-left: -80px; }
  .hero-art > img { width: 650px; top: 20px; }
  .hero-art figcaption { left: 160px; }
  .hero-actions { gap: 24px; flex-wrap: wrap; }
  .approach-grid, .company-grid { gap: 48px; }
  .use-panel { gap: 48px; }
  .contact-action .button { min-width: 280px; }
}
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-card { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1fr); }
  .service-visual { height: auto; min-height: 240px; margin: 24px 0 24px 24px; border-bottom: 0; border-right: 1px solid var(--line); }
  .service-body { padding: 28px; }
  .service-body ul { margin-top: 0; }
  .approach-grid, .company-grid { grid-template-columns: 1fr; gap: 40px; }
  .approach-copy { max-width: 42em; }
  .local-diagram { width: min(100%, 600px); justify-self: center; }
  .use-panel { grid-template-columns: 1fr; gap: 32px; }
  .sample-ui { width: 100%; min-height: 0; }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .company-facts dl > div { grid-template-columns: 148px 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-inner { display: grid; gap: 32px; }
  .contact-action .button { min-width: 320px; }
}
@media (max-width: 850px) {
  :root { --header-height: 72px; --display: 34px; }
  .header-inner { flex-wrap: wrap; gap: 16px; }
  #main-nav { width: 100%; flex-wrap: wrap; padding-bottom: 20px; }
  .js .menu-toggle { display: inline-flex; flex-direction: column; gap: 6px; justify-content: center; align-items: center; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 44px; }
  .menu-toggle span { width: 18px; height: 1px; background: var(--ink); transition: transform var(--duration); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .js #main-nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; padding: 16px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .js #main-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .js #main-nav > a { padding-block: 16px; border-bottom: 1px solid var(--line); }
  .js #main-nav .nav-contact { margin-top: 16px; justify-content: space-between; padding: 14px 20px; }
  .hero-grid { min-height: 560px; grid-template-columns: 1.25fr 1fr; }
  .hero-copy { padding-block: 64px 80px; }
  .hero-art { width: 550px; margin-left: -90px; }
  .hero-art > img { width: 550px; top: 25px; }
  .hero-art figcaption { left: 130px; bottom: 40px; font-size: var(--text-caption); }
  .hero-bottom { gap: 24px; font-size: var(--text-caption); min-height: 64px; }
  .section-intro { gap: 32px; }
  .desktop-break { display: none; }
}
@media (max-width: 600px) {
  :root { --gutter: 24px; --header-height: 68px; --section-space: 64px; --heading-md: 28px; --display: clamp(30px, 7.8vw, 43px); }
  .brand .company-logo { width: 184px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-copy { padding-block: 48px 0; }
  .hero-copy > p { font-size: var(--text-base); margin-top: 24px; }
  .hero-actions { gap: 24px; margin-top: 28px; }
  .hero-art { width: 460px; height: 390px; align-self: center; margin: 16px 0 0; }
  .hero-art > img { width: 460px; top: -28px; left: -38px; }
  .hero-art figcaption { left: 80px; bottom: 12px; }
  .hero-art figcaption > span { margin-top: 4px; }
  .hero-bottom { min-height: 64px; }
  .hero-bottom > span:not(:first-of-type) { display: none; }
  .section-intro { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .section-intro > p { padding: 0; }
  .service-card { display: flex; }
  .service-visual { height: 220px; min-height: 0; margin: 0 24px; border-bottom: 1px solid var(--line); border-right: 0; }
  .service-body { padding: 24px; }
  .service-body ul { margin-top: auto; }
  .build-visual, .optimize-visual { gap: 20px; }
  .matrix-large { width: 88px; height: 88px; }
  .matrix-small { width: 61px; height: 61px; }
  .approach-grid, .company-grid { gap: 32px; }
  .approach-points li { grid-template-columns: 114px 1fr; gap: 12px; }
  .local-diagram { padding: 20px; }
  .diagram-boundary { padding: 20px 16px; }
  .diagram-model { gap: 16px; padding: 24px 12px; }
  .js .use-tabs { grid-template-columns: 1fr; gap: 8px; margin-bottom: 32px; }
  .use-tabs button { min-height: 48px; padding: 12px 16px; text-align: left; font-size: var(--text-sm); }
  .use-copy h3 { font-size: 28px; }
  .result-sheet { padding: 20px; }
  .search-example { padding: 14px 16px; }
  .sheet-heading { align-items: flex-start; }
  .result-sheet h4 { font-size: 18px; }
  .edge-checks > div { display: block; }
  .edge-checks dd { text-align: left; margin-top: 4px; }
  .sample-ui { padding: 20px; }
  .edge-concept { gap: 8px; }
  .edge-device { padding: 20px 8px; }
  .process-steps { grid-template-columns: 1fr; gap: 0; padding-left: 4px; }
  .process-steps li { padding: 0 0 32px 20px; border: 0; border-left: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 0 12px; }
  .process-steps li::before { left: -3px; top: 12px; }
  .process-steps li:last-child { padding-bottom: 0; border-color: transparent; }
  .step-number { margin: 0; font-size: 18px; line-height: 1.7; }
  .process-steps h3 { align-self: center; }
  .process-steps p { grid-column: 2; margin-top: 12px; }
  .company-signature { width: 246px; margin-block: 24px; }
  .company-facts dl > div { grid-template-columns: 96px 1fr; gap: 16px; padding-block: 20px; }
  .faq-list summary { padding-block: 20px; gap: 16px; }
  .faq-list details > p { padding-right: 0; }
  .contact-inner { padding-block: 56px; }
  .contact-inner > div > p { margin-top: 24px; }
  .contact-action .button { width: 100%; min-width: 0; }
  .footer { padding-block: 32px 24px; }
  .footer-top { gap: 12px; }
  .footer-top .company-logo { width: 158px; }
  .back-top { font-size: var(--text-caption); gap: 8px; }
  .footer-bottom { gap: 24px; flex-direction: column; }
  .data-policy { text-align: left; max-width: 100%; }
}
@media (max-width: 360px) {
  :root { --gutter: 20px; --display: 30px; }
  .brand .company-logo { width: 172px; }
  .hero-art { width: 400px; height: 350px; }
  .hero-art > img { width: 400px; top: -20px; left: -35px; }
  .hero-art figcaption { left: 72px; }
  .service-body { padding: 20px; }
  .service-visual { margin-inline: 20px; }
  .network-file { width: 40px; height: 58px; padding: 15px 8px; }
  .network-core { width: 68px; height: 72px; }
  .network-app { width: 48px; }
  .approach-points li { grid-template-columns: 1fr; gap: 4px; }
  .local-diagram { padding: 16px; }
  .diagram-boundary { padding: 16px 12px; }
  .diagram-input, .diagram-output { gap: 8px; }
  .diagram-input span, .diagram-output span { padding: 8px 4px; }
  .sample-ui { padding: 16px; }
  .use-copy h3 { font-size: 24px; }
  .use-section h2 { font-size: 24px; }
  .contact-action .button { padding-inline: 16px; gap: 8px; }
  .result-sheet { padding: 16px; }
  .company-facts dl > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
