/* ============================================================
   SEIMEI 2027 ONWARDS — Company Site
   Light editorial system: warm paper / forest ink / brand green
   ============================================================ */

:root {
  --paper: #f7f6f1;
  --paper-2: #ffffff;
  --paper-3: #eff2ed;
  --ink: #14362b;
  --ink-2: #3b5a4e;
  --muted: #71847b;
  --line: rgba(20, 54, 43, 0.14);
  --line-2: rgba(20, 54, 43, 0.08);
  --accent: #0e8f69;
  --accent-soft: #e5f2ec;
  --copper: #a97843;
  --dark: #0d2a21;
  --dark-line: rgba(244, 241, 232, 0.16);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.68, 0.16, 1);
  --pad: clamp(20px, 5vw, 64px);
  --nav-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
section { position: relative; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.page-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--line-2) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--line-2) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 62%);
  opacity: .7;
}
main, .footer, .nav { position: relative; z-index: 1; }

/* ---------- shared type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(15px, 1.35vw, 17px); line-height: 1.95; color: var(--ink-2); max-width: 640px; }
.mono { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.section { padding: clamp(84px, 10vw, 128px) 0; }
.section-head { max-width: 800px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 60px); margin-bottom: 22px; }
.section-head h2 em { font-style: italic; color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 25px; border-radius: 100px; border: 1px solid var(--line);
  background: transparent; font-size: 13px; letter-spacing: .04em;
  cursor: pointer; transition: .35s var(--ease); white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-solid { background: var(--ink); color: #f7f6f1; border-color: var(--ink); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-sm { padding: 9px 17px; font-size: 12px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav.stuck { background: rgba(247, 246, 241, .88); backdrop-filter: blur(18px) saturate(150%); border-bottom-color: var(--line); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 138px; height: auto; }
.menu { display: flex; gap: clamp(16px, 2vw, 30px); align-items: center; }
.menu a { font-size: 12.5px; color: var(--ink-2); position: relative; padding: 4px 0; transition: color .3s; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent); transition: width .4s var(--ease); }
.menu a:hover { color: var(--accent); }
.menu a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 100px; padding: 3px; gap: 2px; }
.lang button { background: none; border: none; cursor: pointer; font-size: 10.5px; letter-spacing: .06em; padding: 4px 9px; border-radius: 100px; color: var(--muted); transition: .3s; }
.lang button.on { background: var(--ink); color: #fff; }
.burger { display: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: .3s; }
.burger span:first-child { top: 14px; }
.burger span:last-child { top: 20px; }
.burger.open span:first-child { transform: translateY(3px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-h) + 56px); min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hero-inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(30px, 5vw, 80px); align-items: center; flex: 1; padding-bottom: 60px; }
/* Size the headline against its own column, not the whole viewport.
   This keeps the same three-line rhythm on a wide desktop, iPad and phone. */
.hero-copy { container-type: inline-size; }
.hero h1 { font-size: clamp(38px, 5.2vw, 72px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 28px; }
@supports (font-size: 1cqw) {
  .hero h1 { font-size: clamp(36px, 9.4cqw, 72px); }
  html[lang="en"] .hero h1 { font-size: clamp(30px, 6.4cqw, 52px); }
}
.hero h1 .hl { display: block; }
.hero h1 .hl + .hl { margin-top: .04em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-facts { display: flex; gap: clamp(20px, 3vw, 44px); margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-facts div { display: flex; align-items: baseline; gap: 9px; }
.hero-facts strong { font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--accent); }
.hero-facts span { font-size: 12px; color: var(--muted); }

.hero-visual { position: relative; min-height: 500px; display: flex; align-items: center; justify-content: center; }
.orbit { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(14, 143, 105, .16); }
.orbit-ring.r1 { width: 470px; height: 470px; }
.orbit-ring.r2 { width: 360px; height: 360px; border-style: dashed; }
.orbit-ring.r3 { width: 250px; height: 250px; }
.orbit-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(14,143,105,.1); }
.orbit-dot.d1 { top: 9%; left: 27%; }
.orbit-dot.d2 { bottom: 18%; right: 8%; background: var(--copper); box-shadow: 0 0 0 6px rgba(169,120,67,.1); }
.orbit-dot.d3 { top: 42%; right: 4%; width: 6px; height: 6px; }

.console { position: relative; width: min(100%, 470px); background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 34px 70px -30px rgba(13,42,33,.32); overflow: hidden; }
.console-bar { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line); background: #fbfbf8; }
.dots { display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #cfd8d2; }
.console-title { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.console-live { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.console-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.console-body { padding: 24px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 84%; padding: 11px 15px; border-radius: 14px; font-size: 13px; line-height: 1.75; }
.msg.user { align-self: flex-end; background: var(--accent-soft); color: var(--ink); border-bottom-right-radius: 4px; }
.msg.agent { align-self: flex-start; background: #f1f2ee; color: var(--ink-2); border-bottom-left-radius: 4px; }
.console-source { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: var(--muted); }
.console-source svg { width: 14px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.badge-float { position: absolute; left: -12px; bottom: -14px; display: flex; align-items: center; gap: 9px; background: var(--ink); color: #f4f4ec; padding: 11px 16px; border-radius: 100px; font-size: 11px; box-shadow: 0 12px 26px -12px rgba(13,42,33,.5); }
.badge-icon { width: 17px; height: 17px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 10px; }
.scroll-cue { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 9px; letter-spacing: .25em; color: var(--muted); padding-bottom: 24px; }
.scroll-cue i { width: 54px; height: 1px; background: var(--line); }

/* ---------- about ---------- */
.about { background: var(--paper-2); border-top: 1px solid var(--line-2); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; margin: 10px 0 64px; }
.timeline-line { position: absolute; top: 6px; left: 6px; right: 6px; height: 1px; background: var(--line); }
.tl-item { position: relative; padding-top: 30px; }
.tl-item::before { content: ""; position: absolute; top: 2px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--paper-2); border: 1.5px solid var(--muted); }
.tl-item.active::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl-year { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--accent); }
.tl-item h3 { font-size: clamp(20px, 2.2vw, 28px); margin: 10px 0 8px; }
.tl-item p { font-size: 13px; color: var(--muted); max-width: 330px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.principle { border-top: 2px solid var(--ink); padding-top: 22px; }
.p-num { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--copper); }
.principle h3 { font-size: 22px; margin: 12px 0 10px; }
.principle p { font-size: 13.5px; color: var(--muted); }

/* ---------- stack ---------- */
.stack { background: var(--paper-3); }
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stack-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; transition: .4s var(--ease); display: flex; flex-direction: column; }
.stack-card:hover { transform: translateY(-5px); border-color: rgba(14,143,105,.45); box-shadow: 0 22px 44px -30px rgba(13,42,33,.4); }
.stack-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .12em; }
.s-label { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; color: var(--muted); text-align: right; }
.s-icon { margin: 34px 0 26px; height: 58px; }
.s-icon svg { width: 52px; height: 52px; fill: none; stroke: var(--accent); stroke-width: 1.2; }
.stack-card h3 { font-size: clamp(20px, 2vw, 25px); margin-bottom: 15px; min-height: 2.3em; }
.stack-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.tags span { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; padding: 5px 10px; border-radius: 100px; background: var(--accent-soft); color: var(--accent); }
.tags .tag-outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.stack-quote { margin-top: 54px; display: flex; gap: 18px; align-items: flex-start; border-left: 3px solid var(--accent); padding-left: 26px; }
.quote-mark { font-family: var(--serif); font-size: 58px; line-height: .7; color: var(--accent); }
.stack-quote p { font-family: var(--serif); font-size: clamp(23px, 3vw, 40px); line-height: 1.3; }
.stack-quote em { font-style: italic; color: var(--accent); }

/* ---------- agent ---------- */
.agent { background: var(--dark); color: #f2f1e9; overflow: hidden; }
.agent::before { content: ""; position: absolute; width: 620px; height: 620px; border: 1px solid rgba(255,255,255,.05); border-radius: 50%; right: -180px; top: -200px; }
.agent-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.agent .eyebrow { color: var(--copper); }
.agent h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 20px; }
.agent .lead { color: rgba(242,241,233,.68); }
.tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 34px 0 30px; }
.tab { background: transparent; border: 1px solid var(--dark-line); color: rgba(242,241,233,.62); border-radius: 100px; padding: 8px 15px; font-size: 12px; cursor: pointer; transition: .3s; }
.tab:hover, .tab.on { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.agent-note { font-size: 11.5px; line-height: 1.9; color: rgba(242,241,233,.45); max-width: 520px; border-top: 1px solid var(--dark-line); padding-top: 18px; }
.agent-demo { background: rgba(255,255,255,.055); border: 1px solid var(--dark-line); border-radius: 18px; padding: 26px; backdrop-filter: blur(4px); }
.demo-head, .demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: rgba(242,241,233,.5); }
.demo-head { border-bottom: 1px solid var(--dark-line); padding-bottom: 16px; }
.demo-foot { border-top: 1px solid var(--dark-line); padding-top: 16px; margin-top: 22px; }
.demo-thread { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; min-height: 230px; }
.d-user, .d-agent { font-size: 13.5px; line-height: 1.8; padding: 13px 17px; border-radius: 14px; transition: opacity .25s; }
.d-user { align-self: flex-end; background: rgba(255,255,255,.1); max-width: 86%; border-bottom-right-radius: 4px; }
.d-agent { align-self: flex-start; background: rgba(14,143,105,.2); border: 1px solid rgba(14,143,105,.3); max-width: 92%; border-bottom-left-radius: 4px; }

/* ---------- trust ---------- */
.redline { display: flex; gap: 26px; align-items: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--copper); border-radius: 0 14px 14px 0; padding: 28px 32px; margin-bottom: 26px; }
.redline-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--copper); white-space: nowrap; padding-top: 6px; }
.redline h3 { font-size: 24px; margin-bottom: 8px; }
.redline p { font-size: 15px; color: var(--ink-2); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card { border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; transition: .35s var(--ease); }
.trust-card:hover { background: var(--paper-2); border-color: rgba(14,143,105,.4); }
.t-num { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--accent); }
.trust-card h3 { font-size: 21px; margin: 14px 0 9px; }
.trust-card p { font-size: 12.5px; color: var(--muted); line-height: 1.85; }

/* ---------- global deployability ---------- */
.global { background: var(--paper-2); border-top: 1px solid var(--line-2); }
.network-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.network-card { border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; transition: .4s var(--ease); }
.network-card:hover { border-color: rgba(14,143,105,.45); transform: translateY(-3px); }
.n-icon { height: 44px; margin-bottom: 18px; }
.n-icon svg { width: 36px; height: 36px; fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.network-card h3 { font-size: 21px; margin-bottom: 10px; }
.network-card p { font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.global-note { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 34px; padding: 26px 30px; border-radius: 14px; background: var(--accent-soft); }
.global-note p { font-size: 13.5px; color: var(--ink-2); max-width: 760px; }
.global-note .btn { flex: none; }

/* ---------- challenge ---------- */
.challenge { background: #e9efea; }
.challenge-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.challenge h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 20px; }
.challenge .lead { margin-bottom: 30px; }
.challenge-metrics { border-top: 1px solid var(--line); }
.metric { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.metric strong { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 28px); font-weight: 400; }
.metric span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--accent); }
.metric-note { margin-top: 20px; font-size: 12.5px; color: var(--muted); }

/* ---------- connect / forms ---------- */
.connect { background: var(--paper-3); }
.connect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.connect-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; background: var(--paper-2); transition: .4s var(--ease); }
.connect-card.featured { border-color: rgba(14,143,105,.5); box-shadow: 0 24px 50px -38px rgba(13,42,33,.5); }
.connect-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.c-num { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--accent); }
.connect-card h3 { font-size: 25px; margin: 18px 0 10px; }
.connect-card p { font-size: 13px; color: var(--muted); }
.connect-card ul { list-style: none; margin: 20px 0 28px; }
.connect-card li { font-size: 12.5px; color: var(--ink-2); padding: 7px 0 7px 18px; border-bottom: 1px solid var(--line-2); position: relative; }
.connect-card li::before { content: ""; position: absolute; left: 0; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.connect-card .btn { margin-top: auto; }
.connect-foot { margin-top: 24px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- footer ---------- */
.footer { background: var(--dark); color: #eef1e9; padding: 70px 0 30px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; }
.foot-logo { width: 146px; background: #fff; padding: 11px 14px; border-radius: 8px; }
.foot-top p { margin-top: 20px; font-family: var(--serif); font-size: 18px; color: rgba(238,241,233,.7); }
.foot-nav { display: flex; flex-direction: column; gap: 11px; font-size: 13px; color: rgba(238,241,233,.7); min-width: 130px; }
.foot-nav a:hover { color: #fff; }
.disclaimer { border-top: 1px solid var(--dark-line); margin-top: 54px; padding-top: 24px; }
.disclaimer p { font-size: 11.5px; line-height: 1.95; color: rgba(238,241,233,.48); max-width: 1000px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 30px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; color: rgba(238,241,233,.42); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- language-specific typography ----------
   Chinese keeps the original editorial settings. Latin and Japanese get
   their own font stacks and a tighter, consistent typographic rhythm. */
html[lang="en"] {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
html[lang="ja"] {
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="en"] body { font-size: 16px; line-height: 1.6; }
html[lang="en"] h1, html[lang="en"] h2,
html[lang="en"] h3, html[lang="en"] h4 { line-height: 1.1; letter-spacing: -0.018em; }
html[lang="en"] .hero h1 { line-height: 1.08; letter-spacing: -0.025em; }
html[lang="en"] .eyebrow { font-size: 10px; letter-spacing: .14em; margin-bottom: 24px; }
html[lang="en"] .lead { font-size: 16px; line-height: 1.6; }
html[lang="en"] .menu a { font-size: 11.5px; letter-spacing: .08em; }
html[lang="en"] .lang button { font-size: 10px; letter-spacing: .08em; }
html[lang="en"] .hero-facts span { font-size: 11.5px; }

html[lang="en"] .msg { font-size: 13px; line-height: 1.55; font-weight: 400; }
html[lang="en"] .msg.agent { color: var(--ink); }
html[lang="en"] .console-title,
html[lang="en"] .console-live { font-size: 9.5px; letter-spacing: .08em; }
html[lang="en"] .console-source { font-size: 9.5px; letter-spacing: .04em; }
html[lang="en"] .badge-float { font-size: 11px; letter-spacing: 0; }

html[lang="en"] .tl-item p,
html[lang="en"] .principle p,
html[lang="en"] .stack-card p,
html[lang="en"] .trust-card p,
html[lang="en"] .network-card p,
html[lang="en"] .connect-card p,
html[lang="en"] .connect-card li,
html[lang="en"] .global-note p,
html[lang="en"] .metric-note,
html[lang="en"] .agent-note,
html[lang="en"] .connect-foot,
html[lang="en"] .region-note { font-size: 13.5px; line-height: 1.6; }
html[lang="en"] .disclaimer p { font-size: 12px; line-height: 1.65; }

html[lang="en"] .mono,
html[lang="en"] .tags span,
html[lang="en"] .s-label,
html[lang="en"] .p-num,
html[lang="en"] .t-num,
html[lang="en"] .c-num,
html[lang="en"] .redline-tag,
html[lang="en"] .tl-year,
html[lang="en"] .metric span { font-size: 10px; letter-spacing: .1em; }
html[lang="en"] .tab { font-size: 11.5px; letter-spacing: .02em; }

html[lang="ja"] body { font-size: 15px; line-height: 1.75; }
html[lang="ja"] h1, html[lang="ja"] h2,
html[lang="ja"] h3, html[lang="ja"] h4 { line-height: 1.25; letter-spacing: 0; }
html[lang="ja"] .lead { font-size: 15px; line-height: 1.85; }
html[lang="ja"] .msg { line-height: 1.7; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .menu { gap: 16px; }
  .menu a { font-size: 11.5px; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .orbit-ring.r1 { width: 390px; height: 390px; }
  .orbit-ring.r2 { width: 300px; height: 300px; }
  .orbit-ring.r3 { width: 210px; height: 210px; }
  .badge-float { left: 0; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  :root { --nav-h: 68px; }
  .brand img { width: 122px; }
  .menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px var(--pad) 22px; display: none;
  }
  .menu.open { display: flex; }
  .menu a { width: 100%; padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--line-2); }
  .burger { display: block; }
  .nav-actions .btn { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-inner { grid-template-columns: 1fr; gap: 50px; padding-bottom: 40px; }
  .hero-visual { min-height: 440px; }
  .timeline, .principles, .stack-grid, .network-grid, .connect-grid { grid-template-columns: 1fr 1fr; }
  .agent-inner, .challenge-inner { grid-template-columns: 1fr; }
  .global-note { flex-direction: column; align-items: flex-start; }
  .region-note { margin-left: 0; width: 100%; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(30px, 8vw, 40px); }
  @supports (font-size: 1cqw) {
    .hero h1 { font-size: clamp(30px, 9cqw, 40px); }
    html[lang="en"] .hero h1 { font-size: clamp(26px, 6.4cqw, 34px); }
  }
  .hero-facts { flex-wrap: wrap; gap: 18px 28px; }
  .hero-visual { min-height: 380px; }
  .orbit-ring.r1 { width: 320px; height: 320px; }
  .orbit-ring.r2 { width: 250px; height: 250px; }
  .orbit-ring.r3 { width: 180px; height: 180px; }
  .console { max-width: 340px; }
  .badge-float { bottom: -6px; left: 0; font-size: 10px; }
  .timeline, .principles, .stack-grid, .network-grid, .connect-grid, .trust-grid { grid-template-columns: 1fr; }
  .timeline-line { display: none; }
  .tl-item { padding-top: 0; padding-left: 22px; border-left: 1px solid var(--line); }
  .tl-item::before { top: 6px; left: -5px; }
  .section-head { margin-bottom: 38px; }
  .redline { flex-direction: column; gap: 10px; padding: 24px; }
  .stack-card h3 { min-height: 0; }
  .foot-top { flex-direction: column; }
  .foot-bottom { flex-direction: column; }
}

/* ---------- brand friend video wall ---------- */
.friend-videos { margin-top: 58px; padding-top: 46px; border-top: 1px solid var(--line); }
.fv-head { margin-bottom: 30px; }
.fv-head h3 { font-size: clamp(24px, 2.6vw, 34px); margin-top: 14px; }
.fv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fv-card {
  display: block; text-align: left; padding: 0; border: 1px solid var(--line);
  border-radius: 14px; background: var(--paper-2); cursor: pointer; overflow: hidden;
  transition: .4s var(--ease); font: inherit; color: inherit;
}
.fv-card:hover { transform: translateY(-4px); border-color: rgba(14,143,105,.5); box-shadow: 0 22px 44px -30px rgba(13,42,33,.4); }
.fv-thumb { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.fv-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fv-card:hover .fv-thumb img { transform: scale(1.04); }
.fv-play {
  position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(247,246,241,.94); color: var(--ink); display: grid; place-items: center;
  font-size: 13px; padding-left: 3px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.45);
  transition: .3s var(--ease);
}
.fv-card:hover .fv-play { background: var(--accent); color: #fff; transform: scale(1.08); }
.fv-info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 15px 18px 17px; min-height: 84px; }
.fv-info strong { font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.2; }
.fv-info em { font-family: var(--mono); font-size: 10px; line-height: 1.5; letter-spacing: .04em; color: var(--muted); font-style: normal; }

.fv-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.fv-modal[hidden] { display: none; }
.fv-modal-backdrop { position: absolute; inset: 0; background: rgba(8,24,18,.9); backdrop-filter: blur(6px); }
.fv-modal-panel { position: relative; width: min(100%, 900px); }
.fv-video { display: block; width: 100%; max-height: 82vh; background: #000; border-radius: 10px; }
.fv-modal-cap { margin-top: 14px; text-align: center; color: rgba(240,244,236,.8); font-family: var(--serif); font-size: 17px; }
.fv-modal-close {
  position: absolute; top: -44px; right: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff;
  cursor: pointer; font-size: 13px; transition: .3s;
}
.fv-modal-close:hover { background: rgba(255,255,255,.14); }

@media (max-width: 1024px) {
  .fv-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .fv-grid { grid-template-columns: 1fr; }
  .fv-head h3 { font-size: 24px; }
}

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