:root {
  --accent: #6f2dbd;
  --accent-strong: #5a189a;
  --accent-soft: #f3e8ff;
  --ink: #202027;
  --muted: #6b6873;
  --line: #e6e2ea;
  --surface: #ffffff;
  --surface-soft: #faf8fc;
  --page: #f5f5f5;
  --shadow: 0 4px 15px rgba(106, 13, 173, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
}

a {
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #333;
  border-bottom: 1px solid #2b2b2b;
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 50px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #7b2cbf, #4a148c);
  border-radius: 8px;
  font-weight: 900;
}

.brand-text {
  letter-spacing: 0.01em;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.global-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.global-nav a:hover {
  color: #ffd700;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: start;
}

.blog-article {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-header {
  padding: 48px 54px 36px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(111, 45, 189, 0.08), rgba(111, 45, 189, 0)),
    #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  line-height: 1.45;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
}

.article-lead {
  max-width: 760px;
  margin: 6px 0;
  color: #57535d;
  font-size: 16px;
}

.article-section {
  padding: 40px 54px;
  border-bottom: 1px solid var(--line);
}

.article-section:last-child {
  border-bottom: 0;
}

.article-section h2 {
  position: relative;
  margin: 0 0 24px;
  padding-left: 18px;
  font-size: 25px;
}

.article-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 5px;
  height: 1.15em;
  border-radius: 999px;
  background: var(--accent);
}

.article-section h3 {
  margin: 30px 0 14px;
  font-size: 19px;
}

.article-section p {
  margin: 0 0 16px;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.spec-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spec-grid > div {
  min-height: 86px;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.spec-grid .wide {
  grid-column: 1 / -1;
}

.spec-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.spec-grid strong {
  margin-top: 2px;
  font-size: 16px;
}

.steps {
  margin: 22px 0;
  padding-left: 26px;
}

.steps li {
  padding: 5px 0 5px 6px;
}

.simple-list {
  padding-left: 24px;
}

.simple-list li {
  margin: 6px 0;
}

.media-placeholder {
  min-height: 220px;
  margin: 24px 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #756c7b;
  background:
    linear-gradient(135deg, rgba(111, 45, 189, 0.05), rgba(111, 45, 189, 0.01));
  border: 1px dashed #bba9ca;
  border-radius: 12px;
  text-align: center;
}

.media-placeholder.large {
  min-height: 320px;
}

.media-placeholder strong {
  color: var(--accent-strong);
}


.screenshot-figure {
  margin: 24px 0 30px;
}

.screenshot-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(37, 24, 50, 0.08);
}

.screenshot-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.version-box,
.tool-card,
.callout {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 11px;
}

.version-box {
  background: #fbfaff;
  border: 1px solid var(--line);
}

.version-box h3 {
  margin-top: 0;
}

.version-box ul {
  margin-bottom: 0;
}

.article-video {
  width: 100%;
  display: block;
  margin: 20px 0 26px;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

blockquote {
  margin: 24px 0;
  padding: 22px 24px;
  background: #fbf9fd;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

code {
  padding: 0.15em 0.38em;
  background: #f0edf3;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid #dcc4f3;
}

.callout > strong {
  color: var(--accent-strong);
  font-size: 18px;
}

.callout p {
  margin: 6px 0 0;
}

.tool-card {
  background: #1e1725;
  color: #fff;
}

.tool-card h3 {
  margin: 2px 0 10px;
  font-size: 25px;
}

.tool-card p {
  margin-bottom: 0;
  color: #e9e0ee;
}

.tool-label {
  color: #d8b4fe;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.download-group {
  margin-top: 28px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.download-grid a {
  min-height: 46px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  background: #fff;
  border: 1px solid #d9c7e7;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.download-grid a:hover {
  background: var(--accent-soft);
  border-color: #c8a5e8;
}

.sidebar {
  min-width: 0;
}

.sidebar-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.sticky {
  position: sticky;
  top: 90px;
}

.sidebar-title {
  margin: 0 0 14px;
  color: #4d4850;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.side-menu {
  display: grid;
  gap: 7px;
}

.side-menu a {
  padding: 11px 12px;
  color: #474249;
  background: #faf9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.side-menu a:hover,
.side-menu a.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: #d8c0ea;
}

.archive {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.archive-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
}

.archive-empty {
  margin: 0;
  color: #918b95;
  font-size: 13px;
}

.site-footer {
  background: #2f2f2f;
  border-top: 1px solid #2b2b2b;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  color: #ddd;
  font-size: 12px;
  text-align: center;
}

.footer-inner nav {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner a {
  color: #fff;
  text-decoration: none;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }

  .sticky {
    position: static;
  }

  .sidebar-card {
    padding: 16px;
  }

  .side-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive {
    margin-top: 16px;
    padding-top: 14px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 56px;
  }

  .global-nav {
    display: none;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
    margin-top: 16px;
    gap: 14px;
  }

  .article-header,
  .article-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .article-header {
    padding-top: 32px;
  }

  h1 {
    font-size: 30px;
  }

  .article-section h2 {
    font-size: 22px;
  }

  .spec-grid,
  .download-grid,
  .side-menu {
    grid-template-columns: 1fr;
  }

  .media-placeholder.large {
    min-height: 240px;
  }
}
