.hero {
  border: 4px solid var(--border);
  background: var(--bg);
  border-radius: 4px;
  padding: clamp(20px, 5vw, 48px);
  box-shadow: var(--shadow);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(18px, 4vw, 40px);
  align-items: center;
}

@media (max-width: 940px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.hero__title .accent {
  background: var(--accent);
  padding-inline: 4px;
}

.hero__lead {
  max-width: 56ch;
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  line-height: 1.85;
  margin-bottom: 18px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__panel {
  border: 4px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: calc(var(--shadow) / 2) 6px 6px 0 var(--border);
}

.hero__panel-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 4px solid var(--border);
  background: var(--muted);
}

.hero__panel-bar i {
  width: 8px;
  height: 8px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
}

.hero__panel-bar span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-left: 4px;
}

.hero__panel-body {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.75;
  padding: clamp(14px, 3vw, 20px);
  min-height: 240px;
}

.hero__panel-body .k {
  font-weight: 700;
}

.hero__panel-body .s {
  color: #006b4d;
}

.hero__panel-body .n {
  color: #b54407;
}

.hero__panel-body .c {
  color: #555;
}

/* ======================================================== セクション ===== */

.section {
  padding-block: clamp(28px, 6vw, 56px);
}

.section--sunken {
  background: linear-gradient(180deg, var(--muted) 0%, var(--bg) 70%);
  border-block: 4px solid var(--border);
  margin-block: clamp(10px, 2vw, 18px);
}

.section__head {
  max-width: 70ch;
  margin-bottom: clamp(14px, 3vw, 24px);
}

.section__title {
  font-size: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: 8px;
}

.section__lead {
  line-height: 1.85;
  color: #111;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

/* =========================================================== カード ===== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(10px, 2vw, 14px);
}

.card {
  border: 4px solid var(--border);
  background: var(--bg);
  border-radius: 3px;
  padding: clamp(14px, 2.5vw, 20px);
  box-shadow: 4px 4px 0 var(--border);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--border);
}

.card__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
}

.card__title {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  margin-bottom: 6px;
}

.card__body {
  font-size: 0.92rem;
  line-height: 1.85;
}

/* ========================================================== テーブル ===== */

.table-wrap {
  border: 4px solid var(--border);
  border-radius: 3px;
  overflow-x: auto;
  background: var(--bg);
  box-shadow: 4px 4px 0 var(--border);
}

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.spec th,
table.spec td {
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
  border-right: 2px solid var(--border);
  text-align: left;
  vertical-align: top;
}

table.spec thead th {
  background: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

table.spec tbody tr:nth-child(odd) {
  background: #fff;
}

table.spec tbody tr:nth-child(even) {
  background: #fafafa;
}

/* ========================================================= ステップ ===== */

.steps {
  display: grid;
  gap: clamp(8px, 2vw, 12px);
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(8px, 2vw, 14px);
  align-items: start;
  border: 4px solid var(--border);
  background: var(--bg);
  border-radius: 3px;
  padding: clamp(10px, 2.5vw, 16px);
  box-shadow: 4px 4px 0 var(--border);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 3px solid var(--border);
  border-radius: 50%;
  background: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.step__title {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  margin-bottom: 4px;
}

.step__body {
  font-size: 0.92rem;
  line-height: 1.85;
}

.code-block {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  padding: clamp(10px, 2vw, 14px);
  border: 3px dashed var(--border);
  background: #fff;
  border-radius: 2px;
  overflow-x: auto;
  white-space: pre;
}

/* ============================================================= CTA ===== */

.cta {
  border: 4px solid var(--border);
  background: linear-gradient(135deg, var(--accent) 0%, #b9ffe6 100%);
  border-radius: 4px;
  padding: clamp(18px, 4vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(10px, 3vw, 18px);
  align-items: center;
  box-shadow: 6px 6px 0 var(--border);
}

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

.cta__title {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  margin-bottom: 6px;
}

.cta__body {
  max-width: 60ch;
  line-height: 1.85;
}

.legal-note {
  font-size: 0.78rem;
  color: #333;
  line-height: 1.8;
}