:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #101411;
  --muted: #5a635c;
  --line: #d9ded9;
  --line-strong: #111612;
  --panel: #f4f7f4;
  --panel-2: #eef3ef;
  --accent: #8fdc1f;
  --accent-strong: #5fb000;
  --cyan: #18b7c5;
  --danger: #e25b3f;
  --shadow: 0 22px 58px rgba(18, 25, 19, 0.14);
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(16, 20, 17, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 20, 17, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Segoe UI", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

body[data-language="ja"] [data-lang="en"],
body[data-language="en"] [data-lang="ja"] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 20, 17, 0.14);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--accent);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  height: 2px;
  background: #ffffff;
}

.brand-mark::before {
  top: 9px;
}

.brand-mark::after {
  top: 17px;
  background: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #263028;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
}

.language-switch button {
  min-width: 44px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

body[data-language="ja"] .language-switch [data-set-language="ja"],
body[data-language="en"] .language-switch [data-set-language="en"] {
  background: var(--ink);
  color: #ffffff;
}

.hero {
  padding: 76px 0 38px;
  border-bottom: 1px solid var(--line-strong);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy {
  margin: 22px 0 0;
  max-width: 620px;
  color: #2d352f;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 650;
}

.hero-detail {
  margin: 18px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 15px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--accent);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--accent);
}

.button.secondary {
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
}

.hero-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.app-window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.window-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-strong);
  background: #f7faf7;
}

.dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(16, 20, 17, 0.45);
  border-radius: 999px;
  background: var(--accent);
}

.dot:nth-child(2) {
  background: var(--cyan);
}

.dot:nth-child(3) {
  background: #ffffff;
}

.app-window img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
}

.media-thumb {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.media-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section {
  padding: 74px 0;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
}

.section.alt {
  background: rgba(244, 247, 244, 0.78);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 28px;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 28px;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.section h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

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

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: 34px;
  align-items: stretch;
}

.workflow-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
}

.workflow-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

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

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-2);
  font-weight: 900;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.feature-card .rule {
  display: block;
  width: 52px;
  height: 5px;
  margin-bottom: 42px;
  border-radius: 4px;
  background: var(--cyan);
}

.feature-card:nth-child(2) .rule {
  background: var(--accent);
}

.feature-card:nth-child(3) .rule {
  background: var(--danger);
}

.feature-card:nth-child(4) .rule {
  background: var(--accent-strong);
}

.keymap {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
}

.key-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.key-row:last-child {
  border-bottom: 0;
}

.key-row > div {
  padding: 14px 16px;
}

.key-row > div + div {
  border-left: 1px solid var(--line);
}

.key-head {
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.keycaps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

kbd {
  min-width: 32px;
  padding: 4px 8px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: inset 0 -2px 0 rgba(16, 20, 17, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.mode {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.manual-step {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
}

.manual-step h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.manual-step p {
  margin: 0;
  color: var(--muted);
}

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

details {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
}

summary {
  cursor: pointer;
  padding: 17px 18px;
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
}

.download-panel h2 {
  color: #ffffff;
}

.download-panel p {
  margin: 10px 0 0;
  color: #cfd7d1;
}

.download-panel .button {
  background: #ffffff;
  color: var(--ink);
}

.subpage {
  padding: 72px 0;
  border-bottom: 1px solid var(--line-strong);
}

.subpage h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 900;
}

.subpage .lead {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.doc {
  max-width: 880px;
  padding: 54px 0 78px;
}

.doc h2 {
  margin: 36px 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 19px;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc ul {
  margin: 0 0 18px 1.2em;
  padding: 0;
}

.info-table {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.info-table dt,
.info-table dd {
  margin: 0;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.info-table dt {
  color: var(--muted);
  font-weight: 850;
}

.info-table dd {
  border-left: 1px solid var(--line);
}

.info-table dt:last-of-type,
.info-table dd:last-of-type {
  border-bottom: 0;
}

.site-footer {
  background: var(--ink);
  color: #ffffff;
}

.site-footer .brand {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 34px 0;
}

.footer-grid p {
  margin: 8px 0 0;
  color: #c6d0c8;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  font-weight: 750;
}

@media (max-width: 980px) {
  .nav-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-grid,
  .section-header,
  .workflow-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 56px;
  }

  .media-rail,
  .feature-band,
  .manual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .section {
    padding: 54px 0;
  }

  .section h2 {
    font-size: 30px;
  }

  .media-rail,
  .feature-band,
  .manual-grid {
    grid-template-columns: 1fr;
  }

  .key-row {
    grid-template-columns: 1fr;
  }

  .key-row > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .footer-grid,
  .info-table {
    grid-template-columns: 1fr;
  }

  .info-table dd {
    border-left: 0;
  }
}
