﻿:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --ink: #121417;
  --muted: #5b6573;
  --line: #e4e8ee;
  --line-strong: #d2d8e1;
  --topbar: #444444;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --font-en: "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-en);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

html[lang^="ja"] body {
  font-family: var(--font-ja);
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
.btn,
.top-nav a,
.top-link,
.top-open-btn {
  font-family: var(--font-en);
}

html[lang^="ja"] h1,
html[lang^="ja"] h2,
html[lang^="ja"] h3,
html[lang^="ja"] h4,
html[lang^="ja"] .btn,
html[lang^="ja"] .top-nav a,
html[lang^="ja"] .top-link,
html[lang^="ja"] .top-open-btn {
  font-family: var(--font-ja);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--topbar);
  color: #ffffff;
  border-bottom: 1px solid var(--topbar);
  z-index: 40;
}

.topbar-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo-link {
  display: flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.logo-mark {
  display: block;
  height: 30px;
  width: auto;
}

.logo-mark path {
  fill: #ffffff;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.top-nav .mobile-nav-install {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 2px 14px 0;
  border-radius: 30px;
  border: none;
  background: #1a73e8;
  color: #ffffff;
  font-weight: 700;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 4px 1px;
  white-space: nowrap;
}

.top-nav a:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.top-manual-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.top-link,
.top-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
}

.top-link {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  background: transparent;
}

.top-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.top-open-btn {
  min-height: 32px;
  padding: 1px 11px 0;
  border-radius: 8px;
  border: none;
  color: #ffffff;
  background: #1a73e8;
  font-weight: 700;
}

.top-open-btn:hover {
  background: #155fc0;
}

.top-nav .mobile-nav-install:hover {
  background: #155fc0;
  border-color: transparent;
}

/* Keep install CTAs visually consistent in header and body */
a.install-cta {
  background: #1a73e8;
  border: none;
  color: #ffffff;
  gap: 0.55em;
  white-space: nowrap;
}

a.install-cta:hover {
  background: #155fc0;
}

a.install-cta .cta-logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 1.6em;
  max-width: none;
  margin-top: -1px;
}

a.install-cta .cta-label {
  display: inline-block;
}

.manual-main {
  padding-top: 50px;
}

.content-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 20px;
  align-items: start;
  padding-top: 22px;
  padding-bottom: 48px;
}

.docs-sidebar {
  position: sticky;
  top: 72px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  display: grid;
  gap: 2px;
}

.sidebar-title {
  margin: 0 0 8px;
  padding: 4px 6px;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 700;
}

.docs-sidebar a {
  text-decoration: none;
  font-size: 13px;
  color: #1f2937;
  border-radius: 8px;
  padding: 7px 8px;
}

.docs-sidebar a:hover {
  background: #f3f4f6;
}

.docs-content {
  min-width: 0;
}

.doc-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 14px;
}

.doc-section.hero {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(30px, 4.8vw, 52px);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(24px, 3vw, 38px);
  margin-bottom: 8px;
}

.section-lead,
.hero-lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.hero .btn {
  min-height: 40px;
  padding: 3px 22px 0;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.btn-dark {
  color: #ffffff;
  background: #111827;
  border: 1px solid #111827;
}

.btn-dark:hover {
  background: #000000;
}

.btn-light {
  color: #111827;
  background: #ffffff;
  border: 1px solid var(--line-strong);
}

.btn-light:hover {
  background: #f4f5f7;
}

.hero-grid,
.card-grid {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.hero-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-card,
.mini-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.hero-card h3,
.mini-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.hero-card p,
.mini-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.step-list {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.step-list li {
  font-size: 14px;
  color: #1f2937;
}

.step-list code,
.table-wrap code {
  font-family: Consolas, "Courier New", monospace;
  background: #eef1f5;
  border: 1px solid #dce3eb;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.95em;
}

.shot-frame {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f0f2f6;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.table-wrap {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  background: #ffffff;
}

.subsection-title {
  margin-top: 18px;
  font-size: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  border-bottom: 1px solid #edf1f6;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: #f8fafc;
  color: #374151;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: none;
}

.note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed #c8d0dc;
  color: #4b5563;
  font-size: 13px;
  background: #fafbfd;
}

.faq-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fcfdff;
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.faq-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.footer {
  border-top: 1px solid #2a2f36;
  background: #111318;
  color: #c4ccd7;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.footer p {
  margin: 0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer a {
  text-decoration: none;
  color: #d7dde7;
  font-size: 13px;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    align-items: center;
    gap: 4px;
  }

  .sidebar-title {
    margin: 0;
    white-space: nowrap;
    padding-right: 10px;
  }

  .docs-sidebar a {
    white-space: nowrap;
  }

  .hero-grid,
  .card-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .topbar-inner {
    position: relative;
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .top-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .top-nav {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 14px 10px;
    background: #3d3d3d;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    max-height: calc(100vh - 50px);
    overflow-y: auto;
  }

  .topbar.menu-open .top-nav {
    display: flex;
  }

  .top-nav a {
    display: block;
    padding: 8px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .top-nav a:last-child {
    border-bottom: none;
  }

  .top-nav .mobile-nav-install {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    border-bottom: none;
  }
}

@media (max-width: 720px) {
  .content-wrap {
    padding: 0 14px;
  }

  .doc-section {
    padding: 18px;
  }

  .hero-grid,
  .card-grid.cols-2,
  .card-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .top-link,
  .top-open-btn {
    padding: 0 8px;
    min-height: 30px;
    font-size: 11px;
  }

  .top-manual-badge {
    min-height: 30px;
    padding: 0 8px;
    font-size: 10px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
