:root {
  --ink: #17213a;
  --sub: #55647c;
  --line: #d9e3f3;
  --paper: rgba(255, 255, 255, 0.95);
  --blue: #2f7de8;
  --purple: #7b61ff;
  --green: #2fae7a;
  --orange: #ff941a;
  --shadow: 0 16px 36px rgba(70, 90, 130, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", "Meiryo", sans-serif;
  background:
    linear-gradient(90deg, rgba(47, 125, 232, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(47, 125, 232, 0.1) 1px, transparent 1px),
    #fff8e8;
  background-size: 34px 34px;
}

a {
  color: inherit;
}

.page {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.nav,
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.home-link,
.cta,
.sub-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #b9c9e4;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.hero,
section {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero {
  margin-top: 18px;
  padding: clamp(28px, 5vw, 54px);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.97), rgba(239, 246, 255, 0.95));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 900;
}

h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.45rem);
  line-height: 1.13;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

p,
li {
  color: var(--sub);
  font-weight: 700;
  line-height: 1.9;
}

.lead {
  max-width: 820px;
  font-size: 1.08rem;
}

.cta {
  margin-top: 8px;
  border: 0;
  background: linear-gradient(180deg, var(--blue), #1666d8);
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 125, 232, 0.22);
}

.sub-cta {
  margin-top: 8px;
}

section {
  margin-top: 18px;
  padding: 24px;
}

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

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

.card,
.link-card,
.step {
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.link-card:hover {
  border-color: #8bc6ff;
  background: #f8fbff;
}

.card strong,
.link-card strong,
.step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.06rem;
}

.card span,
.link-card span {
  display: block;
  color: var(--sub);
  font-weight: 700;
  line-height: 1.75;
}

.step b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(47, 125, 232, 0.12);
  color: var(--blue);
}

.note {
  margin-top: 14px;
  border-left: 5px solid var(--orange);
  border-radius: 16px;
  background: #fff7df;
  padding: 18px;
}

.soft-panel {
  border-radius: 18px;
  background: #f8fbff;
  padding: 18px;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.footer {
  margin-top: 22px;
  color: var(--sub);
  font-weight: 700;
}

.footer a {
  color: inherit;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 20px, 1040px);
  }

  .grid,
  .grid.three,
  .related {
    grid-template-columns: 1fr;
  }

  section {
    padding: 20px;
  }
}
