:root {
  --base-bg: #FAF6F0;
  --text-main: #333333;
  --text-sub: #6B6258;
  --neutral: #A89B8C;
  --accent: #E08E45;
  --brand-primary: #1F3A5F;
  --brand-primary-dark: #16293F;
  --brand-tint: #EBF0F6;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--base-bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--base-bg);
  color: var(--text-main);
  font-family: "BIZ UDPGothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--brand-primary-dark);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.hero {
  position: relative;
  width: 100vw;
  min-height: 760px;
  display: flex;
  align-items: flex-end;
  margin-left: calc(50% - 50vw);
  padding: 128px max(48px, calc((100vw - 1220px) / 2)) 88px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--base-bg);
  opacity: 0.58;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.56;
}

.dot-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-primary {
  background: var(--brand-primary);
}

.dot-accent {
  background: var(--accent);
}

.dot-neutral {
  background: var(--neutral);
}

.dot-dark {
  background: var(--brand-primary-dark);
}

.eyebrow {
  width: fit-content;
  max-width: 100%;
  padding: 8px 16px;
  border: 1px solid var(--neutral);
  border-radius: var(--radius);
  color: var(--brand-primary-dark);
  font-weight: 700;
  line-height: 1.5;
}

.hero h1 {
  max-width: 720px;
  font-size: 72px;
  line-height: 1.18;
}

.hero h1 span {
  display: block;
}

.lead {
  max-width: 640px;
  color: var(--text-sub);
  font-size: 20px;
  font-weight: 700;
}

.download-button {
  width: fit-content;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 12px 32px;
  border-radius: var(--radius);
  background: var(--brand-primary);
  color: var(--base-bg);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.download-button:hover,
.download-button:focus-visible {
  background: var(--accent);
}

.download-button:focus-visible {
  outline: 3px solid var(--neutral);
  outline-offset: 4px;
}

.download-note {
  color: var(--text-sub);
  font-size: 14px;
}

.content-section {
  padding: 48px 0;
  border-top: 1px solid var(--neutral);
}

.content-section h2 {
  margin-bottom: 24px;
  font-size: 28px;
}

.content-section h3 {
  margin-bottom: 16px;
  font-size: 24px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--neutral);
  border-radius: var(--radius);
  background: #FFFFFF;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--neutral);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--brand-tint);
  color: var(--brand-primary-dark);
  font-weight: 700;
}

td:first-child {
  width: 34%;
  color: var(--brand-primary-dark);
  font-weight: 700;
}

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

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

.step-card {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--neutral);
  border-radius: var(--radius);
  background: #FFFFFF;
}

.step-number {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--base-bg);
  font-weight: 700;
  line-height: 1;
}

.callout {
  padding: 24px;
  border: 1px solid var(--neutral);
  border-radius: var(--radius);
  background: var(--brand-tint);
}

.callout p + p {
  margin-top: 12px;
}

.closing p {
  max-width: 800px;
}

.footer {
  padding: 32px 24px;
  background: var(--brand-primary-dark);
  color: var(--base-bg);
  text-align: center;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 820px) {
  .page {
    width: min(100% - 32px, 720px);
    padding-top: 0;
  }

  .hero {
    width: 100vw;
    min-height: 720px;
    margin-left: calc(50% - 50vw);
    padding: 88px max(24px, calc((100vw - 720px) / 2)) 56px;
  }

  .hero-image {
    object-position: center right;
  }

  .hero h1 {
    font-size: 48px;
  }

  .lead {
    font-size: 17px;
  }

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

  .step-card {
    min-height: 0;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 15px;
  }

  .page {
    width: min(100% - 24px, 480px);
    padding-bottom: 32px;
  }

  .hero {
    min-height: 680px;
    padding: 56px 24px 40px;
  }

  .hero::after {
    opacity: 0.68;
  }

  .hero-copy {
    gap: 12px;
  }

  .hero-image {
    object-position: center right;
    opacity: 0.36;
  }

  .eyebrow {
    padding: 8px 12px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .download-button {
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
  }

  .content-section {
    padding: 40px 0;
  }

  .content-section h2 {
    font-size: 23px;
  }

  .content-section h3 {
    font-size: 21px;
  }

  .table-wrap {
    border-radius: var(--radius);
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr,
  td {
    display: block;
  }

  tr {
    padding: 16px;
    border-bottom: 1px solid var(--neutral);
  }

  tbody tr:last-child {
    border-bottom: 0;
  }

  td {
    padding: 0;
    border-bottom: 0;
  }

  td:first-child {
    width: auto;
    margin-bottom: 8px;
  }

  .step-card,
  .callout {
    padding: 20px;
  }
}
