:root {
  --bg: #05070c;
  --panel: rgba(14, 18, 28, 0.72);
  --ink: #f3f6fb;
  --muted: #8b97ab;
  --line: rgba(243, 246, 251, 0.1);
  --orange: #e26512;
  --orange-hot: #ff8a1e;
  --blue: #4aa3ff;
  --radius: 22px;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1000px 420px at 70% -8%, rgba(74, 163, 255, 0.12), transparent 55%),
    var(--bg);
  font-family: "Instrument Sans", "Noto Sans JP", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.display {
  font-family: Montserrat, "Noto Sans JP", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
[data-en] { display: none; }
html[lang="en"] [data-ja] { display: none !important; }
html[lang="en"] span[data-en] { display: inline; }
html[lang="en"] p[data-en],
html[lang="en"] small[data-en] { display: block; }
html[lang="ja"] [data-en] { display: none !important; }
html[lang="ja"] span[data-ja] { display: inline; }
html[lang="ja"] p[data-ja],
html[lang="ja"] small[data-ja] { display: block; }
nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 12, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.nav-links a:hover { color: var(--ink); }
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  color: var(--muted);
}
html[lang="ja"] .lang [data-set="ja"],
html[lang="en"] .lang [data-set="en"] {
  background: var(--orange);
  color: #fff;
}
.buy {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-hot), var(--orange));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(226, 101, 18, 0.28);
}
.ghost {
  display: inline-flex;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.hero { padding: 4.2rem 0 2.4rem; }
.kicker {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 0 0 0.9rem;
}
.lede {
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 1.6rem;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.section { padding: 1.2rem 0 4.2rem; }
.section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 0.45rem;
}
.section .sub {
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.7;
  margin: 0 0 1.6rem;
}
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.filters button {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.filters button.is-on {
  background: rgba(74, 163, 255, 0.16);
  border-color: rgba(74, 163, 255, 0.4);
  color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(74, 163, 255, 0.35); }
.card.wide { grid-column: 1 / -1; }
.card-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}
.icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  object-fit: cover;
  background: #1b1511;
}
.badge {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  background: #1b1511;
}
.card h3 { margin: 0 0 0.2rem; font-size: 1.08rem; }
.meta { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.35rem; }
.pill {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.links { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.links a { font-size: 0.82rem; color: var(--blue); }
.links a:hover { color: var(--ink); }
.featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.featured img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2.2rem 0 0;
}
.stats div {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.stats b { display: block; font-size: 1.15rem; margin-bottom: 0.2rem; }
.stats span { color: var(--muted); font-size: 0.82rem; }
.src {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.src code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  color: var(--blue);
}
.src .ghost { padding: 0.45rem 0.8rem; font-size: 0.82rem; }
[data-copy-repo][data-copied] span { display: none !important; }
[data-copy-repo][data-copied]::after { content: "Copied"; }
html[lang="ja"] [data-copy-repo][data-copied]::after { content: "コピー済み"; }
.note {
  margin: 0 0 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(226, 101, 18, 0.28);
  background: rgba(226, 101, 18, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.shot {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.row-head { margin: 2rem 0 1rem; }
.row-head h2 { margin-bottom: 0.35rem; }
[hidden] { display: none !important; }
footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a:hover { color: var(--ink); }
@media (max-width: 800px) {
  .grid, .featured, .stats { grid-template-columns: 1fr; }
  .nav-links a:not(.buy):not(.keep) { display: none; }
}
