:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #18202b;
  --muted: #627084;
  --line: #d9e0ea;
  --blue: #1d5fd6;
  --blue-dark: #123e91;
  --red: #db3a34;
  --green: #1f8a5b;
  --yellow: #f3c74d;
  --shadow: 0 18px 50px rgba(24, 32, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(217, 224, 234, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.topnav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.topnav a:hover {
  background: #eef3fb;
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  padding: clamp(30px, 5vw, 58px) 0 34px;
}

.hero-copy {
  min-height: 360px;
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.9)),
    url("./assets/pdf-pages/page-1.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(31px, 4.5vw, 54px);
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.sheet-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.message-template {
  grid-column: 1 / -1;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--ink);
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.ghost:hover {
  border-color: #b6c4d8;
  background: #f8fafc;
}

.status-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.status-head span {
  color: var(--muted);
  font-weight: 800;
}

.status-head strong {
  font-size: 30px;
  line-height: 1;
}

.progress-track {
  width: 100%;
  height: 12px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width 180ms ease;
}

.text-button {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.alert-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 42px;
  border: 1px solid #f0c6c3;
  border-radius: 8px;
  background: #f0c6c3;
}

.alert-band div {
  padding: 22px 24px;
  background: #fff5f4;
}

.alert-band strong {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
}

.alert-band p,
.section-heading p,
.sheet-panel p,
.step-card p {
  color: var(--muted);
}

.section {
  padding: 48px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 24px;
}

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

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.check-item input,
.step-check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--green);
}

.check-item strong,
.check-item small {
  display: block;
}

.check-item small {
  margin-top: 6px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 98px;
}

.steps {
  display: grid;
  gap: 16px;
}

.step-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.step-num {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #eef3fb;
  color: var(--blue);
  font-weight: 900;
}

.step-card ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
  color: var(--ink);
}

.step-card li + li {
  margin-top: 5px;
}

.step-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 800;
}

.thumb-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.thumb-link img {
  display: block;
  width: 100%;
  height: auto;
}

.note {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--yellow);
  background: #fff9e6;
  color: #5f4b12;
  font-size: 14px;
}

.sheet-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .topbar,
  .hero,
  .split,
  .sheet-panel {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

  .topnav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-copy {
    min-height: 320px;
  }

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

  .sticky-heading {
    position: static;
  }

  .step-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .thumb-link {
    grid-column: 1 / -1;
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    position: static;
  }

  .topnav a {
    padding: 7px 8px;
  }

  .hero-copy,
  .status-panel,
  .sheet-panel {
    padding: 22px;
  }

  h1 {
    font-size: 30px;
  }

  .alert-band,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 36px 0;
  }

  .step-card {
    grid-template-columns: 1fr;
  }

  .step-num {
    width: 52px;
    height: 52px;
  }

  .thumb-link {
    max-width: none;
  }
}
