/* AiPlus brand v3 — static enterprise site */
:root {
  --bg: #0a0b0f;
  --surface-1: #101218;
  --surface-2: #161920;
  --surface-3: #1d2029;
  --text: #f3f4f6;
  --text-2: #a7abb6;
  --text-3: #7c8190;
  --accent: #7d8bff;
  --accent-2: #9aa5ff;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shell: 1180px;
  --header-height: 76px;
  font-family: Inter, "Noto Sans SC", "Noto Sans JP", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); overflow-x: clip; }
body { margin: 0; min-width: 0; overflow-x: clip; overflow-wrap: break-word; hyphens: auto; background: var(--bg); color: var(--text); }
h1, h2 { text-wrap: balance; }
body, button, select { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { color: inherit; }

.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: max(12px, env(safe-area-inset-left)); top: -80px; padding: 12px 16px; border-radius: 8px; background: var(--text); color: var(--bg); text-decoration: none; transition: top .2s ease; }
.skip-link:focus { top: max(12px, env(safe-area-inset-top)); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }

.site-header { position: sticky; z-index: 20; top: 0; min-height: var(--header-height); padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); background: rgba(10, 11, 15, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 28px; }
.brand { min-width: 44px; min-height: 44px; display: inline-flex; flex: 0 0 auto; align-items: center; border-radius: 4px; }
.brand img { width: 120px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); margin-left: auto; }
.primary-nav a { color: var(--text-2); font-size: 14px; text-decoration: none; white-space: nowrap; transition: color .2s ease; }
.primary-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language { width: 116px; min-height: 44px; padding: 0 30px 0 12px; border: 1px solid var(--line-strong); border-radius: 7px; background-color: var(--surface-1); color: var(--text); font-size: 13px; cursor: pointer; }
.language:hover { border-color: rgba(255,255,255,.28); }
.language:focus-visible { border-color: var(--accent-2); }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.menu-button span { display: block; width: 22px; height: 1px; margin: 5px auto; background: var(--text); transition: transform .2s ease, opacity .2s ease; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #0a0b0f; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.button-small { min-height: 38px; padding-inline: 15px; font-size: 13px; }
.button-secondary { border-color: var(--line-strong); background: transparent; color: var(--text); }
.button-secondary:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }

.hero { position: relative; min-height: min(820px, calc(100svh - var(--header-height))); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; width: min(62vw, 820px); aspect-ratio: 1; right: -16%; top: 0; background: radial-gradient(circle, rgba(74,91,255,.18), rgba(74,91,255,.04) 36%, transparent 68%); filter: blur(20px); pointer-events: none; }
.signal-cross { position: absolute; right: 13%; top: 16%; width: 42%; height: 68%; opacity: .42; pointer-events: none; }
.signal-cross::before, .signal-cross::after { content: ""; position: absolute; background: linear-gradient(90deg, transparent, rgba(125,139,255,.55), transparent); }
.signal-cross::before { top: 48%; left: 0; width: 100%; height: 1px; }
.signal-cross::after { top: 0; left: 58%; width: 1px; height: 100%; background: linear-gradient(transparent, rgba(125,139,255,.45), transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(400px, .8fr); align-items: center; gap: clamp(48px, 7vw, 100px); padding-block: clamp(84px, 10vw, 140px); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--text-2); font-size: 12px; letter-spacing: .08em; }
.eyebrow > span:first-child { color: var(--accent-2); font-family: "SFMono-Regular", Consolas, monospace; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 28px; overflow-wrap: normal; hyphens: none; font-size: clamp(48px, 5.7vw, 78px); font-weight: 500; letter-spacing: -.052em; line-height: 1.03; }
h1 span { display: block; }
@media (min-width: 821px) {
  html:lang(de) h1, html:lang(fr) h1, html:lang(es) h1 { font-size: clamp(48px, 5vw, 70px); }
}
.muted-title { color: var(--text-2); font-weight: 300; }
.hero-lead { max-width: 620px; margin-bottom: 32px; color: var(--text-2); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.service-note { max-width: 620px; margin: 24px 0 0; padding-left: 14px; border-left: 1px solid var(--accent); color: var(--text-3); font-size: 13px; line-height: 1.7; }

.gateway-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(16,18,24,.88); }
.gateway-card::before, .panel::before { content: ""; position: absolute; top: 0; left: 10%; width: 80%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent); }
.card-kicker { padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--text-3); font: 11px/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.gateway-flow { min-height: 330px; display: grid; grid-template-columns: minmax(82px, 1fr) 32px minmax(108px, 1.1fr) 32px minmax(80px, .9fr); align-items: center; padding: 32px 20px; }
.flow-source, .model-list { display: grid; gap: 10px; }
.flow-source span, .model-list span, .gateway-node { min-width: 0; padding: 12px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.025); color: var(--text-2); font-size: 12px; text-align: center; }
.model-list span { display: flex; align-items: center; gap: 7px; text-align: left; }
.model-list i, .gateway-foot i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.flow-line { height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.12), var(--accent)); }
.flow-line-out { background: linear-gradient(90deg, var(--accent), rgba(255,255,255,.12)); }
.gateway-node { position: relative; padding: 24px 10px; border-color: rgba(125,139,255,.42); background: var(--surface-2); color: var(--text); }
.gateway-node b { display: grid; width: 32px; height: 32px; place-items: center; margin: 0 auto 10px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent-2); font-size: 22px; font-weight: 400; }
.gateway-node span { display: block; }
.gateway-foot { display: flex; align-items: center; gap: 9px; padding: 15px 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 11px; }

.section { padding-block: clamp(88px, 10vw, 148px); }
.section-alt { border-block: 1px solid var(--line); background: var(--surface-1); }
.section-heading { max-width: 720px; margin-bottom: 52px; }
.section-heading h2, .contact h2 { margin-bottom: 20px; font-size: clamp(34px, 4vw, 54px); font-weight: 500; letter-spacing: -.035em; line-height: 1.14; }
.section-heading > p:last-child { margin-bottom: 0; color: var(--text-2); font-size: 17px; line-height: 1.75; }
.capability-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.panel { position: relative; grid-column: span 2; min-height: 244px; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: 10px; background: rgba(16,18,24,.9); }
.panel-featured { grid-column: span 4; background: var(--surface-2); }
.panel-index { color: var(--accent-2); font: 11px/1.2 "SFMono-Regular", Consolas, monospace; }
.panel h3 { margin: 58px 0 14px; font-size: 20px; font-weight: 500; }
.panel p { max-width: 560px; margin-bottom: 0; color: var(--text-2); font-size: 14px; line-height: 1.75; }

.approach-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr); gap: clamp(60px, 9vw, 130px); align-items: start; }
.sticky-heading { position: sticky; top: calc(var(--header-height) + 48px); margin-bottom: 0; }
.text-link { display: inline-block; margin-top: 28px; color: var(--accent-2); font-size: 14px; text-underline-offset: 5px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps > li > span { color: var(--accent-2); font: 12px/1.4 "SFMono-Regular", Consolas, monospace; }
.steps h3 { margin-bottom: 10px; font-size: 19px; font-weight: 500; }
.steps p { margin-bottom: 0; color: var(--text-2); font-size: 14px; line-height: 1.7; }

.wide-heading { max-width: 840px; }
.enterprise-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.enterprise-band div { min-height: 176px; padding: 28px; border-right: 1px solid var(--line); background: var(--surface-1); }
.enterprise-band div:last-child { border-right: 0; }
.enterprise-band strong, .enterprise-band span { display: block; }
.enterprise-band strong { margin-bottom: 50px; font-size: 16px; font-weight: 500; }
.enterprise-band span { color: var(--text-2); font-size: 13px; line-height: 1.6; }

.contact { position: relative; overflow: hidden; padding-block: clamp(90px, 11vw, 160px); border-top: 1px solid var(--line); background: var(--surface-1); }
.contact::before { content: ""; position: absolute; width: 680px; height: 680px; right: -260px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(74,91,255,.16), transparent 68%); }
.contact-cross { right: -2%; top: 2%; width: 48%; height: 92%; }
.contact-inner { position: relative; }
.contact h2 { max-width: 850px; }
.contact-inner > p:not(.eyebrow) { max-width: 710px; color: var(--text-2); font-size: 17px; line-height: 1.75; }
.contact-card { max-width: 900px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; margin-top: 42px; padding: 28px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(10,11,15,.55); }
.contact-card p { margin-bottom: 0; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.contact-label { display: block; margin-bottom: 10px; color: var(--accent-2); font: 11px/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.contact-action { padding-left: 22px; border-left: 1px solid var(--line-strong); }
.copy-panel { max-width: 900px; margin-top: 18px; }
.copy-field { width: 100%; min-height: 128px; resize: vertical; padding: 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--text-2); font-size: 14px; line-height: 1.65; }
.copy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.copy-button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.copy-button:hover { border-color: var(--accent-2); }
.copy-status { min-height: 1.5em; margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.back-link { margin-top: 42px; }

.site-footer { padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); }
.footer-inner { min-height: 106px; display: flex; align-items: center; gap: 28px; color: var(--text-3); font-size: 12px; }
.footer-inner p { margin: 0; }
.footer-inner p:first-child { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.footer-inner strong { color: var(--text); font-size: 15px; font-weight: 500; }
.noscript { padding: 12px max(24px, env(safe-area-inset-left)); background: var(--surface-3); color: var(--text-2); font-size: 13px; text-align: center; }

@media (max-width: 1040px) {
  .header-inner { gap: 18px; }
  .primary-nav { gap: 16px; }
  .primary-nav a { font-size: 13px; }
  .header-actions .button { display: none; }
  .hero-grid { grid-template-columns: 1fr 420px; gap: 44px; }
  .gateway-flow { grid-template-columns: 1fr 22px 1.1fr 22px .9fr; padding-inline: 14px; }
}

@media (max-width: 820px) {
  :root { --header-height: 68px; }
  .shell { width: min(100% - 36px, var(--shell)); }
  .header-inner { min-height: var(--header-height); }
  .brand img { width: 108px; }
  .menu-enhanced .menu-button { display: block; order: 3; }
  .header-actions { margin-left: auto; }
  .language { min-height: 44px; }
  .primary-nav { order: 4; width: 100%; margin: 0; padding: 8px 0 18px; flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a { min-height: 48px; display: flex; align-items: center; border-top: 1px solid var(--line); font-size: 15px; }
  .header-inner { flex-wrap: wrap; }
  .menu-enhanced .primary-nav { display: none; }
  .menu-enhanced .primary-nav.is-open { display: flex; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 90px; }
  .hero-copy { max-width: 680px; }
  .gateway-card { max-width: 620px; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel, .panel-featured { grid-column: span 1; }
  .panel-featured { grid-column: 1 / -1; }
  .approach-grid { grid-template-columns: 1fr; gap: 58px; }
  .sticky-heading { position: static; }
  .enterprise-band { grid-template-columns: repeat(2, 1fr); }
  .enterprise-band div:nth-child(2) { border-right: 0; }
  .enterprise-band div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 540px) {
  .shell { width: min(100% - 28px, var(--shell)); }
  .site-header { min-height: var(--header-height); }
  .header-inner { gap: 10px; }
  .brand img { width: 96px; }
  .language { width: 104px; max-width: 104px; padding-left: 9px; padding-right: 23px; font-size: 12px; }
  .menu-button { width: 44px; padding-inline: 8px; }
  .hero-grid { gap: 48px; padding-block: 72px; }
  h1 { font-size: clamp(40px, 13.8vw, 60px); line-height: 1.06; }
  .hero-lead, .section-heading > p:last-child, .contact-inner > p:not(.eyebrow) { font-size: 16px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .gateway-flow { min-height: 0; grid-template-columns: 1fr; gap: 12px; padding: 24px 18px; }
  .flow-source, .model-list { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .flow-source span, .model-list span { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 10px 5px; font-size: 11px; line-height: 1.35; }
  .model-list span { justify-content: center; gap: 5px; }
  .flow-line { width: 1px; height: 20px; justify-self: center; background: linear-gradient(var(--accent), rgba(255,255,255,.12)); }
  .flow-line-out { background: linear-gradient(rgba(255,255,255,.12), var(--accent)); }
  .gateway-node { width: min(190px, 100%); justify-self: center; padding: 18px 8px; }
  .section { padding-block: 82px; }
  .section-heading { margin-bottom: 38px; }
  .capability-grid { grid-template-columns: 1fr; }
  .panel, .panel-featured { grid-column: auto; min-height: 218px; padding: 25px; }
  .panel h3 { margin-top: 44px; }
  .steps li { grid-template-columns: 38px 1fr; gap: 12px; padding-block: 28px; }
  .enterprise-band { grid-template-columns: 1fr; }
  .enterprise-band div { min-height: 140px; border-right: 0; border-bottom: 1px solid var(--line); }
  .enterprise-band div:last-child { border-bottom: 0; }
  .enterprise-band strong { margin-bottom: 28px; }
  .contact-card { grid-template-columns: 1fr; gap: 24px; padding: 23px; }
  .contact-action { padding: 20px 0 0; border-top: 1px solid var(--line-strong); border-left: 0; }
  .footer-inner { padding-block: 28px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-inner p:first-child { margin-right: 0; }
}

@media (max-width: 340px) {
  .shell { width: calc(100% - 24px); }
  .header-inner { gap: 6px; }
  .brand img { width: 88px; }
  .language { width: 104px; min-height: 44px; }
  .menu-button { width: 44px; height: 44px; }
  h1 { font-size: 39px; }
  html:lang(ja) h1 { font-size: 37px; }
  .section-heading h2, .contact h2 { font-size: 31px; }
  .flow-source span, .model-list span { min-height: 44px; font-size: 11px; line-height: 1.35; }
  .panel { padding: 22px; }
}

.legal-header .header-inner { gap: 20px; }
.legal-header .header-actions { margin-left: auto; }
.legal-back { min-height: 44px; display: inline-flex; align-items: center; color: var(--text-2); font-size: 14px; text-underline-offset: 4px; }
.legal-main { padding-block: clamp(60px, 8vw, 110px); }
.legal-hero { max-width: 850px; margin-bottom: 48px; }
.legal-hero h1 { margin-bottom: 20px; font-size: clamp(40px, 5vw, 64px); }
.legal-lead { color: var(--text-2); font-size: 17px; line-height: 1.75; }
.legal-draft { padding: 16px 18px; border: 1px solid var(--accent); border-radius: 8px; background: rgba(125,139,255,.08); color: var(--text-2); line-height: 1.65; }
.legal-layout { display: grid; grid-template-columns: minmax(190px,.3fr) minmax(0,1fr); gap: clamp(36px,7vw,92px); align-items: start; }
.legal-toc { position: sticky; min-width: 0; top: calc(var(--header-height) + 32px); padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-1); overflow-wrap: anywhere; }
.legal-toc strong { display: block; margin-bottom: 12px; }
.legal-toc a { display: block; padding: 7px 0; color: var(--text-2); font-size: 13px; line-height: 1.4; text-decoration: none; }
.legal-toc a:hover { color: var(--text); }
.legal-content { min-width: 0; max-width: 800px; overflow-wrap: anywhere; }
.legal-content section { scroll-margin-top: calc(var(--header-height) + 24px); padding: 0 0 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.legal-content h2 { margin-bottom: 14px; font-size: clamp(24px,3vw,34px); font-weight: 500; line-height: 1.25; }
.legal-content p, .legal-content li { color: var(--text-2); font-size: 15px; line-height: 1.8; }
.legal-content ul { padding-left: 22px; }
.legal-content a { color: var(--accent-2); }
.legal-meta { color: var(--text-3); font-size: 13px; }
@media (max-width: 700px) {
  .legal-header .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .legal-back { order: 3; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-main { padding-top: 48px; }
}
@media print {
  :root { color-scheme: light; }
  body, .site-header, .legal-toc { background: #fff !important; color: #111 !important; }
  .site-header { position: static; border-color: #bbb; }
  .language, .skip-link, .signal-cross { display: none !important; }
  .legal-layout { display: block; }
  .legal-toc { margin-bottom: 24px; }
  .legal-content p, .legal-content li, .legal-lead, .legal-draft, .legal-meta, .legal-back, .legal-toc a { color: #222 !important; }
  .legal-content section { break-inside: avoid; border-color: #bbb; }
  a { color: #111 !important; text-decoration: underline; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .hero-grid { padding-block: 62px; }
  .hero { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  .button, .panel, .gateway-card, .contact-card { border: 1px solid CanvasText; }
  .model-list i, .gateway-foot i { forced-color-adjust: none; }
}
