:root {
  --bg: #eef2ef;
  --ink: #1b2a24;
  --accent: #f2542d;
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --muted: #a7b8ae;
  --panel-dark: #2b2d31;
  --panel-dark-2: #313338;
  --border: #c9d4cd;
  --surface: #ffffff;
  --font-head: 'Zen Kaku Gothic New', sans-serif;
  --font-body: 'Zen Kaku Gothic New', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(238, 242, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
}

/* --- discord invite button --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-discord {
  background: var(--discord);
  color: #ffffff;
}

.btn-discord:hover {
  background: var(--discord-hover);
}

.btn-discord svg {
  width: 22px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

/* --- hero --- */

.hero {
  padding: 56px 0 64px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin: 0 0 20px;
  color: var(--ink);
}

.hero .sub {
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 42ch;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero .cta-note {
  font-size: 13px;
  color: #5a6b62;
}

/* --- mock panel (signature element) --- */

.mock {
  background: var(--panel-dark);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 32px rgba(27, 42, 36, 0.18);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #949ba4;
}

.mock-body {
  background: var(--panel-dark-2);
  border-radius: 10px;
  padding: 16px;
}

.mock-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mock-buttons button {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #f2f3f5;
  background: #4e5058;
  border: none;
  border-radius: 6px;
  padding: 10px 6px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.1s ease;
}

.mock-buttons button:hover {
  background: #5d6069;
}

.mock-buttons button:active {
  transform: translateY(1px);
}

.mock-caption {
  margin: 10px 0 0;
  font-size: 12px;
  color: #949ba4;
  text-align: center;
}

.mock-chat {
  margin-top: 14px;
  background: var(--panel-dark-2);
  border-radius: 10px;
  padding: 12px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-end;
}

.mock-chat-empty {
  margin: auto;
  font-size: 13px;
  color: #6d7079;
  text-align: center;
}

.chat-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  animation: chat-in 0.25s ease;
}

@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-avatar {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #5865f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.chat-line--message .chat-text {
  color: #f2f3f5;
}

.chat-line--speech {
  padding-left: 30px;
  color: #949ba4;
  font-size: 12px;
  font-style: normal;
}

/* --- sections --- */

section {
  padding: 56px 0;
}

section h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: 0.02em;
  margin: 0 0 28px;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* しくみ */

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

.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.steps .num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
}

.steps p {
  margin: 0;
}

.steps code {
  font-family: var(--font-mono);
  background: rgba(27, 42, 36, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

/* こんな場面で */

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: inset 3px 0 0 var(--muted);
}

.fit-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.fit-card p {
  margin: 0;
  font-size: 15px;
  color: #3a4a42;
}

.fit-card.-yes {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* はじめに必要なもの */

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

.prereq-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 15px;
}

.prereq-list a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

/* コマンド */

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  vertical-align: top;
}

thead th {
  background: rgba(27, 42, 36, 0.05);
  font-weight: 700;
}

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

td code,
th code {
  font-family: var(--font-mono);
  background: rgba(27, 42, 36, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

/* 何も保存しません */

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

.privacy-lead {
  margin: 0 0 20px;
  font-size: 16px;
}

.privacy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.7;
}

.privacy-list strong {
  font-weight: 700;
}

.privacy-list .mark {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
}

/* CTA */

.cta-final {
  text-align: center;
}

.cta-final h2 {
  margin-bottom: 12px;
}

.cta-final p {
  margin: 0 0 28px;
  color: #3a4a42;
}

.cta-final .cta-row {
  justify-content: center;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* footer */

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #5a6b62;
}

footer a {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .fit-grid {
    grid-template-columns: 1fr;
  }

  .mock-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  td {
    border-bottom: none;
    padding: 6px 18px;
  }

  tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

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

  td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: #5a6b62;
    margin-bottom: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
