:root {
  color-scheme: dark;
  --bg: #071019;
  --sidebar: #0a141e;
  --surface: #101d2a;
  --surface-2: #142538;
  --surface-3: #182b40;
  --line: rgba(160, 188, 218, 0.16);
  --muted: #8ea3b8;
  --text: #eff7ff;
  --green: #42d3a6;
  --blue: #69a9ff;
  --violet: #a695ff;
  --orange: #f4b875;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  font-family: "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
a { color: inherit; }
button, input { font: inherit; }
.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; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; min-height: 100vh; padding: 26px 18px 20px; background: linear-gradient(180deg, #0d1924 0%, var(--sidebar) 100%); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 7px 28px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(66, 211, 166, .5); border-radius: 12px; color: var(--green); background: rgba(66, 211, 166, .09); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 13px; letter-spacing: .02em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.nav-label, .section-kicker, .eyebrow { margin: 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.nav-label { padding: 0 10px 10px; }
.side-nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 11px 12px; color: #b6c9da; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-size: 13px; }
.nav-link:hover, .nav-link:focus-visible { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.04); outline: none; }
.nav-link.is-active { color: var(--text); border-color: rgba(66, 211, 166, .24); background: rgba(66, 211, 166, .08); }
.nav-icon { display: grid; place-items: center; width: 20px; height: 20px; color: var(--green); font-size: 16px; }
.sidebar-footer { margin-top: auto; padding-top: 24px; }
.status-stack { display: grid; gap: 8px; padding: 0 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; color: #b8c8d8; font-size: 11px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.status-pill--green { color: var(--green); }
.status-pill--blue { color: var(--blue); }
.status-pill--violet { color: var(--violet); }

.main-content { width: min(1480px, 100%); padding: 38px clamp(22px, 4vw, 68px) 26px; }
.page-header, .catalog-heading, .cockpit-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.eyebrow { color: var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 12px; font-size: clamp(25px, 3vw, 42px); line-height: 1.2; letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: clamp(19px, 2.2vw, 27px); line-height: 1.3; letter-spacing: -.025em; }
.lede { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.header-status, .cockpit-latest { display: inline-flex; align-items: center; gap: 8px; color: #b9c8d6; font-size: 11px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.cockpit-latest { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); }
.cockpit-latest strong { color: var(--green); font-weight: 700; }

.cockpit, .guide-panel { margin-top: 34px; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(135deg, rgba(22, 42, 61, .9), rgba(13, 28, 42, .94)); box-shadow: var(--shadow); }
.cockpit-heading { align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.section-kicker { margin-bottom: 9px; color: var(--blue); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.summary-card { min-height: 120px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: rgba(5, 15, 25, .38); }
.summary-card span, .summary-card small { display: block; color: var(--muted); font-size: 11px; }
.summary-card strong { display: block; margin: 12px 0 6px; color: var(--text); font-size: 25px; line-height: 1; }
.summary-card:nth-child(1) strong { color: var(--green); }
.summary-card:nth-child(3) strong { color: var(--blue); }
.summary-card:nth-child(4) strong { color: var(--violet); font-size: 19px; }

.guide-panel { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr); align-items: center; gap: 26px; background: linear-gradient(135deg, rgba(25, 48, 78, .78), rgba(15, 29, 45, .95)); }
.guide-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.guide-steps li { min-height: 108px; padding: 13px; border: 1px solid rgba(105, 169, 255, .2); border-radius: 12px; background: rgba(8, 20, 34, .55); }
.guide-steps span, .guide-steps b, .guide-steps small { display: block; }
.guide-steps span { color: var(--blue); font-size: 11px; font-weight: 800; }
.guide-steps b { margin-top: 13px; font-size: 13px; }
.guide-steps small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.catalog-section { margin-top: 48px; }
.catalog-heading { align-items: end; }
.catalog-note { margin: 13px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.search-box { display: flex; align-items: center; gap: 9px; width: min(300px, 100%); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); color: var(--muted); }
.search-box:focus-within { border-color: rgba(66,211,166,.62); box-shadow: 0 0 0 3px rgba(66,211,166,.1); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-box input::placeholder { color: #6f8598; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.demo-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, rgba(17, 34, 51, .98), rgba(11, 23, 35, .98)); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.demo-card:hover { transform: translateY(-2px); border-color: rgba(105,169,255,.42); box-shadow: 0 16px 38px rgba(0,0,0,.22); }
.demo-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-badge, .card-status, .tag { display: inline-flex; align-items: center; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.case-badge { padding: 5px 9px; color: var(--green); border: 1px solid rgba(66,211,166,.32); background: rgba(66,211,166,.09); letter-spacing: .04em; }
.card-status { padding: 5px 9px; color: #a7c8ff; border: 1px solid rgba(105,169,255,.28); background: rgba(105,169,255,.08); }
.demo-card h3 { margin: 18px 0 5px; font-size: 20px; line-height: 1.35; letter-spacing: -.025em; }
.card-subtitle { margin-bottom: 16px; color: var(--blue); font-size: 12px; font-weight: 700; }
.card-description { min-height: 50px; margin-bottom: 18px; color: #b8c8d7; font-size: 12px; line-height: 1.75; }
.card-section { padding-top: 15px; border-top: 1px solid var(--line); }
.card-section + .card-section { margin-top: 14px; }
.card-section h4 { margin: 0 0 8px; color: #dceaf7; font-size: 11px; letter-spacing: .04em; }
.card-section p { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.card-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.card-list li { padding: 5px 8px; border: 1px solid rgba(160,188,218,.16); border-radius: 7px; color: #b9cbe0; background: rgba(255,255,255,.025); font-size: 10px; line-height: 1.35; }
.card-footer { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 7px; color: #9dafc0; background: rgba(255,255,255,.06); font-weight: 600; }
.open-demo { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid rgba(66,211,166,.38); border-radius: 9px; color: #061713; background: var(--green); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.open-demo:hover, .open-demo:focus-visible { background: #75e2bd; outline: 3px solid rgba(66,211,166,.2); outline-offset: 2px; }
.empty-state { padding: 32px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: #73899d; font-size: 10px; }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 208px minmax(0, 1fr); }
  .guide-panel { grid-template-columns: 1fr; }
  .guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { min-height: 0; padding: 13px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 3px 12px; }
  .side-nav { display: flex; gap: 6px; overflow-x: auto; }
  .nav-label, .sidebar-footer { display: none; }
  .nav-link { flex: 0 0 auto; padding: 8px 10px; }
  .main-content { padding: 28px 15px 20px; }
  .page-header, .catalog-heading, .cockpit-heading { display: block; }
  .header-status, .cockpit-latest { margin-top: 16px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-card { min-height: 106px; padding: 14px; }
  .summary-card strong { margin-top: 9px; font-size: 21px; }
  .cockpit, .guide-panel { padding: 18px; }
  .guide-steps { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .search-box { margin-top: 16px; width: 100%; }
  .demo-card { padding: 18px; }
  .demo-card h3 { font-size: 18px; }
  .card-footer { align-items: stretch; flex-direction: column; }
  .open-demo { width: 100%; }
  .page-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
