body.grant-page {
  background: #ece8df;
  color: var(--ink);
}

body.grant-page main {
  max-width: none;
  margin: 0;
  background: #f4f6f8;
  box-shadow: none;
}

.grant-wrap {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding-left: 36px;
  padding-right: 36px;
}

.grant-hero {
  background: #0b1220;
  color: #fff;
  padding: 36px 0 40px;
}

.grant-hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.grant-pill {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #0b1220;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.grant-hero-title {
  margin-top: 28px;
  text-align: center;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0.1em;
  line-height: 1.25;
}

.grant-hero-lead {
  margin-top: 16px;
  text-align: center;
  font-size: clamp(15px, 1.9vw, 18px);
  letter-spacing: 0.12em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.grant-banner {
  background: #006400;
  color: #fff;
  padding: 16px 0;
}

.grant-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.grant-banner-main {
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 0.08em;
}

.grant-banner-sub {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.grant-main {
  padding: 48px 0 56px;
}

.grant-section + .grant-section {
  margin-top: 48px;
}

.grant-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.grant-sec-head h2,
.grant-points-title {
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy);
}

.grant-sec-note,
.grant-sme,
.grant-page-ref {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.7;
}

.grant-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
}

.grant-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: center;
}

.grant-table th,
.grant-table td {
  padding: 18px 16px;
  border-bottom: 1px solid #eef0f4;
  vertical-align: middle;
}

.grant-table thead th {
  background: #0B1220;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
}

.grant-table thead em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 17px;
  font-weight: 800;
  color: #7fffd4;
}

.grant-table tbody th {
  font-weight: 700;
  text-align: left;
  padding-left: 24px;
}

.grant-table tbody tr:last-child th,
.grant-table tbody tr:last-child td {
  border-bottom: none;
}

.grant-plan {
  display: block;
  font-size: 15px;
  color: #4b5563;
  font-weight: 700;
}

.grant-price {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  color: #0b1220;
}

.grant-pay {
  display: block;
  color: #006400;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.grant-aid {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: #6b7280;
  font-weight: 600;
}

.grant-sme {
  margin-top: 14px;
  padding-left: 0;
  list-style: none;
}

.grant-sme li {
  padding-left: 1em;
  text-indent: -1em;
}

.grant-sme li::before {
  content: "・";
}

.grant-cards {
  display: none;
}

.grant-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.grant-fact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0b1220;
  color: #fff;
  border-radius: 999px;
  min-height: 52px;
  padding: 10px 18px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.grant-fact span {
  flex: none;
  opacity: 1;
  font-size: 15px;
  font-weight: 700;
  color: #7fffd4;
}

.grant-points-title {
  text-align: center;
  margin-bottom: 22px;
}

.grant-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
}

.grant-points li {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  padding: 22px 18px 20px;
  text-align: center;
}

.grant-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #006400;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.grant-point-head {
  font-size: 17px;
  font-weight: 800;
  color: #0b1220;
  margin-bottom: 6px;
}

.grant-point-head b {
  color: #006400;
}

.grant-points p:last-child {
  font-size: 15px;
  color: #4b5563;
  font-weight: 500;
}

.grant-page-ref {
  margin-top: 14px;
}

.grant-docs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
}

.grant-doc {
  display: grid;
  justify-items: start;
  gap: 12px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  padding: 20px 18px;
}

.grant-doc-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: #0b1220;
  line-height: 1.6;
}

.grant-doc-ico {
  flex: none;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.grant-doc-btn {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #006400;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.grant-doc-btn:hover {
  background: #004d00;
  color: #fff;
  transform: translateY(-1px);
}

.grant-caution {
  margin-top: 22px;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.8;
}

@media (max-width: 860px) {
  .grant-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .grant-hero {
    padding: 24px 0 28px;
  }

  .grant-banner-inner {
    justify-content: center;
    text-align: center;
  }

  .grant-facts,
  .grant-points,
  .grant-docs {
    grid-template-columns: 1fr;
  }

  .grant-sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .grant-table-wrap {
    display: none;
  }

  .grant-cards {
    display: grid;
    gap: 12px;
  }

  .grant-card {
    display: grid;
    grid-template-columns: 7.4em 1fr;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(11, 18, 32, 0.04);
  }

  .grant-card-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 16px 8px;
    background: #0B1220;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.45;
    text-align: center;
  }

  .grant-card-head em {
    font-style: normal;
    font-size: 15px;
    font-weight: 800;
    color: #7fffd4;
  }

  .grant-card-body {
    display: grid;
  }

  .grant-card-row {
    display: grid;
    grid-template-columns: 4.8em 1fr;
    align-items: center;
    column-gap: 12px;
    margin: 0;
    padding: 14px 14px 14px 12px;
    border-bottom: 1px solid #eef0f4;
  }

  .grant-card-row:last-child {
    border-bottom: none;
  }

  .grant-badge {
    width: 4.8em;
    min-width: 0;
    padding: 5px 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #0B1220;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .grant-card-price,
  .grant-card-amounts {
    justify-self: start;
    text-align: left;
  }

  .grant-card-price {
    font-size: 22px;
    font-weight: 800;
    color: #0b1220;
    letter-spacing: 0.02em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
  }

  .grant-card-amounts {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .grant-card-amounts .grant-pay {
    display: block;
    font-size: 22px;
    text-align: left;
    font-variant-numeric: tabular-nums;
  }

  .grant-card-amounts .grant-aid {
    margin-top: 0;
    font-size: 13px;
    text-align: left;
  }

  .grant-pay {
    font-size: 24px;
  }
}

@media (max-width: 520px) {
  .grant-hero-meta {
    justify-content: center;
  }

  .grant-fact {
    flex-direction: column;
    gap: 2px;
    border-radius: 14px;
    padding: 12px 16px;
  }

  .grant-card {
    grid-template-columns: 6.4em 1fr;
  }

  .grant-card-head {
    font-size: 13px;
    padding: 14px 6px;
  }

  .grant-card-head em {
    font-size: 14px;
  }

  .grant-card-price,
  .grant-card-amounts .grant-pay {
    font-size: 20px;
  }

  .grant-badge {
    width: 4.5em;
    min-width: 0;
    padding: 4px 0;
    font-size: 12px;
  }
}
