:root {
  color-scheme: light;
  --paper: #f6f2ea;
  --panel: #fffdf8;
  --ink: #182032;
  --muted: #6d7180;
  --line: rgba(24,32,50,.13);
  --accent: #395fbe;
  --shadow: 0 22px 65px rgba(35,43,66,.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
button, a { font: inherit; }
.ledger-grid { position: fixed; inset: 0; z-index: -1; background-image: linear-gradient(rgba(57,95,190,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(57,95,190,.035) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(black, transparent 80%); }
.topbar { width: min(1500px, calc(100% - 48px)); min-height: 104px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; color: #fff; font-weight: 800; background: linear-gradient(145deg, #527add, #253c7b); box-shadow: 0 0 0 6px rgba(57,95,190,.08); }
.brand span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 18px; }
.brand small, .topbar p { color: var(--muted); }
.topbar p { margin: 0; font-size: 12px; letter-spacing: .14em; }
.back-link { justify-self: end; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; font-size: 14px; }
main { width: min(1500px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 540px; padding: 105px 8vw 80px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::after { content: "¥"; position: absolute; right: 3vw; top: -90px; color: rgba(57,95,190,.055); font: 800 580px/1 Georgia, serif; transform: rotate(8deg); }
.eyebrow { display: block; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { max-width: 1020px; margin: 23px 0 22px; font-size: clamp(44px, 5.5vw, 82px); line-height: 1.06; letter-spacing: -.055em; position: relative; z-index: 1; }
.hero h1 span { color: var(--accent); }
.hero > p { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.9; position: relative; z-index: 1; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; position: relative; z-index: 1; }
.hero__meta span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,248,.7); font-size: 12px; }
.observatory { padding: 54px 0 56px; }
.observatory__head { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.observatory h2 { margin: 10px 0 0; font-size: clamp(32px, 4vw, 54px); letter-spacing: -.04em; }
.lens-switch { display: flex; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,248,.75); }
.lens-switch button { padding: 11px 16px; border: 0; border-radius: 10px; color: inherit; background: transparent; cursor: pointer; font-size: 13px; font-weight: 750; }
.lens-switch button.is-active { color: white; background: var(--ink); }
.observatory__intro { max-width: 760px; margin: 18px 0 30px; color: var(--muted); line-height: 1.8; }
.business-shell { display: grid; grid-template-columns: minmax(0,1fr) 365px; gap: 16px; align-items: start; }
.business-view, .inspector { border: 1px solid var(--line); border-radius: 24px; background: rgba(255,253,248,.9); box-shadow: var(--shadow); }
.business-view { min-height: 660px; padding: 24px; }
.inspector { min-height: 390px; padding: 28px; position: sticky; top: 16px; }
.inspector h3 { margin: 12px 0 14px; font-size: 28px; line-height: 1.18; letter-spacing: -.03em; }
.inspector p { color: var(--muted); line-height: 1.75; }
.archetype-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.archetype-card { min-height: 178px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(246,242,234,.65); text-align: left; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.archetype-card:hover { transform: translateY(-3px); background: white; }
.archetype-card.is-active { border-color: var(--model-accent); background: white; box-shadow: inset 0 -4px 0 var(--model-accent); }
.archetype-card > span { color: var(--model-accent); font-size: 11px; letter-spacing: .12em; }
.archetype-card strong { font-size: 20px; }
.archetype-card small { color: var(--muted); line-height: 1.55; }
.company-cloud { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.company-cloud__head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.company-cloud__head span { color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.company-cloud__head strong { font-size: 13px; }
.company-list { display: flex; flex-wrap: wrap; gap: 8px; }
.company-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; }
.company-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--model-accent); }
.company-pill.is-active { color: white; border-color: var(--ink); background: var(--ink); }
.company-pill small { color: inherit; opacity: .6; }
.revenue-path { display: grid; gap: 8px; margin: 20px 0; }
.revenue-path div { display: grid; grid-template-columns: 75px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.revenue-path span { color: var(--muted); font-size: 11px; }
.revenue-path strong { font-size: 14px; line-height: 1.55; }
.role-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.role-tags span { padding: 6px 8px; border-radius: 999px; background: rgba(57,95,190,.09); color: var(--accent); font-size: 11px; font-weight: 750; }
.profile-link { display: inline-flex; margin-top: 16px; color: inherit; text-decoration: none; font-weight: 750; border-bottom: 1px solid currentColor; }
.analysis-links { display:flex; flex-direction:column; align-items:flex-start; gap:10px; padding-top:4px; }
.analysis-links .profile-link { margin-top:0; }
.analysis-links > span { color:var(--muted); font-size:11px; }
.view-heading { max-width: 780px; padding: 8px 4px 24px; }
.view-heading h3 { margin: 10px 0 8px; font-size: clamp(28px,3.5vw,48px); letter-spacing: -.04em; }
.view-heading p { color: var(--muted); line-height: 1.7; }
.company-selector { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.company-select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; font-size: 12px; }
.company-select.is-active { color: white; border-color: var(--accent); background: var(--accent); }
.deconstruction { margin-top: 24px; }
.deconstruction > header h3 { margin: 8px 0 20px; font-size: 27px; }
.path-chain { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; }
.path-chain article { min-height: 190px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(246,242,234,.62); position: relative; }
.path-chain article span { display: block; margin-bottom: 28px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.path-chain article strong { font-size: 14px; line-height: 1.65; }
.path-chain > i { display: none; }
.constraint-strip { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; margin-top: 14px; padding: 18px; border-radius: 16px; color: white; background: var(--ink); }
.constraint-strip span { color: #afbddf; font-size: 11px; letter-spacing: .1em; }
.constraint-strip strong { line-height: 1.6; }
.evidence-lanes { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.evidence-lane { min-height: 420px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(246,242,234,.56); transition: border-color .2s ease, background .2s ease; }
.evidence-lane.is-active { border-color: var(--accent); background: white; }
.evidence-lane header { min-height: 150px; }
.evidence-lane header > span { display: block; color: var(--accent); font-size: 32px; font-weight: 800; }
.evidence-lane header strong { display: block; margin: 5px 0 10px; font-size: 17px; }
.evidence-lane header small { color: var(--muted); line-height: 1.5; }
.evidence-lane > div { display: grid; gap: 7px; }
.evidence-company { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; text-align: left; cursor: pointer; font-size: 12px; }
.evidence-company.is-active { color: white; border-color: var(--ink); background: var(--ink); }
.loading { color: var(--muted); }
.insights { padding: 86px 0 24px; }
.insights > header { max-width: 760px; margin-bottom: 30px; }
.insights h3 { margin: 10px 0 0; font-size: clamp(30px,4vw,52px); letter-spacing: -.04em; }
.insight-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.insight-grid article { min-height: 330px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,253,248,.45); }
.insight-grid article > span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.insight-grid h4 { margin: 28px 0 14px; font-size: 21px; line-height: 1.25; }
.insight-grid p { color: var(--muted); line-height: 1.75; font-size: 14px; }
.insight-grid details { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.insight-grid summary { cursor: pointer; font-size: 12px; font-weight: 750; }
footer { width: min(1500px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 38px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) { .topbar { grid-template-columns: 1fr auto; } .topbar p { display:none; } .business-shell { grid-template-columns: 1fr; } .inspector { position: static; } .path-chain { grid-template-columns: repeat(2,minmax(0,1fr)); } .evidence-lanes,.insight-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .topbar,main,footer { width: min(100% - 28px,1500px); } .brand small { display:none; } .observatory { padding-top: 56px; } .observatory__head { align-items: stretch; flex-direction: column; } .lens-switch { overflow-x: auto; } .business-view { padding: 14px; } .archetype-grid,.path-chain,.evidence-lanes,.insight-grid { grid-template-columns: 1fr; } .path-chain article { min-height: auto; } .evidence-lane { min-height: auto; } .evidence-lane header { min-height: auto; margin-bottom: 18px; } .insight-grid article { min-height: auto; } footer { flex-direction:column; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; } }
