* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f7f9f4 0, #eef5ed 420px, #f7f8f5 100%);
  color: #17221d;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.ca-header {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 clamp(16px, 4vw, 58px);
  border-bottom: 1px solid #dbe4dc;
  background: rgba(255, 255, 255, .96);
}

.ca-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.ca-brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #087943;
  color: #fff;
  font-weight: 950;
}

.ca-brand b {
  font-size: 20px;
}

.ca-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ca-header nav a {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid #d6e4da;
  border-radius: 999px;
  background: #fff;
  color: #24362d;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.ca-page {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 52px;
}

.ca-breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  color: #52645b;
  font-size: 13px;
  font-weight: 800;
}

.ca-breadcrumb a {
  text-decoration: none;
}

.ca-breadcrumb span::before {
  content: ">";
  margin-right: 8px;
  color: #8c9b92;
}

.ca-hero {
  padding: clamp(24px, 4vw, 48px);
  border: 2px solid #087943;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(255, 253, 245, .92)),
    radial-gradient(circle at 86% 8%, rgba(226, 113, 37, .16), transparent 26%);
  text-align: center;
  box-shadow: 0 18px 44px rgba(21, 44, 31, .08);
}

.ca-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e9f6ee;
  color: #087943;
  font-size: 15px;
  font-weight: 950;
}

.ca-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.12;
}

.ca-answer {
  max-width: 970px;
  margin: 0 auto;
  color: #1b2b22;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 900;
  line-height: 1.55;
}

.ca-answer strong {
  color: #087943;
}

.ca-answer strong:last-child {
  color: #c65e16;
}

.ca-updated {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: 18px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff7df;
  color: #805910;
  font-size: 14px;
  font-weight: 850;
}

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

.ca-flow article,
.ca-section,
.ca-table-card,
.ca-ng,
.ca-tools,
.ca-faq details,
.ca-related {
  border: 1px solid #d7e2d9;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(21, 44, 31, .045);
}

.ca-flow article {
  position: relative;
  min-height: 210px;
  padding: 22px;
}

.ca-flow span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #087943;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.ca-flow h2 {
  margin: 18px 0 10px;
  font-size: 26px;
  line-height: 1.25;
}

.ca-flow p,
.ca-section p,
.ca-ng p,
.ca-faq p {
  color: #31443a;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.8;
}

.ca-section,
.ca-tools {
  margin: 16px 0;
  padding: clamp(20px, 3vw, 30px);
}

.ca-section-head p {
  margin: 0 0 6px;
  color: #087943;
  font-size: 15px;
  font-weight: 950;
}

.ca-section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.22;
}

.ca-checks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ca-checks label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  min-height: 82px;
  padding: 14px;
  border: 1px solid #dce7df;
  border-radius: 10px;
  background: #fbfdfb;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
}

.ca-checks input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #087943;
  flex: 0 0 auto;
}

.ca-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .42fr);
  gap: 16px;
  margin: 16px 0;
}

.ca-table-card,
.ca-ng {
  padding: clamp(18px, 2.5vw, 26px);
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
  font-size: 16px;
}

th,
td {
  padding: 15px;
  border: 1px solid #dce5dd;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

th {
  background: #edf7f0;
  color: #143326;
  font-size: 15px;
}

td:first-child {
  font-weight: 950;
}

.ca-ng {
  border-color: #efc7c0;
  background: #fffafa;
}

.ca-ng h2 {
  margin: 0 0 14px;
  color: #b92f22;
  font-size: 27px;
}

.ca-ng ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ca-ng li {
  padding: 13px 14px;
  border: 1px solid #f0cbc5;
  border-radius: 10px;
  background: #fff;
  color: #88261f;
  font-size: 16px;
  font-weight: 950;
}

.ca-decision {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ca-decision div {
  min-height: 112px;
  padding: 15px;
  border: 1px solid #dce7df;
  border-radius: 10px;
  background: #fbfdfb;
}

.ca-wide-cards div {
  min-height: 142px;
}

.ca-decision b,
.ca-decision span {
  display: block;
}

.ca-decision b {
  margin-bottom: 8px;
  color: #0b6f42;
  font-size: 17px;
}

.ca-decision span {
  color: #34483e;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.6;
}

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

.ca-source-list a,
.ca-tool-grid a {
  display: grid;
  gap: 8px;
  min-height: 100px;
  padding: 18px;
  border: 1px solid #d4e2d8;
  border-radius: 10px;
  background: #fff;
  color: #17362a;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
}

.ca-source-list a::after {
  content: "公式ページを開く";
  color: #087943;
  font-size: 13px;
}

.ca-source-note {
  margin: 16px 0 0;
}

.ca-tool-grid span {
  color: #53675d;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.55;
}

.ca-case-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.ca-case-list article {
  min-height: 190px;
  padding: 18px;
  border: 1px solid #dce7df;
  border-radius: 10px;
  background: #fbfdfb;
}

.ca-case-list h3 {
  margin: 0 0 10px;
  color: #0b6f42;
  font-size: 20px;
  line-height: 1.35;
}

.ca-case-list p {
  margin: 0;
  color: #34483e;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.72;
}

.ca-prep-checks {
  margin-bottom: 14px;
}

.ca-faq {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.ca-faq details {
  padding: 0;
}

.ca-faq summary {
  min-height: 58px;
  padding: 18px 22px;
  color: #17221d;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

.ca-faq p {
  margin: 0;
  padding: 0 22px 20px;
}

.ca-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
}

.ca-related a {
  min-height: 42px;
  padding: 11px 14px;
  border: 1px solid #dce7df;
  border-radius: 999px;
  background: #fff;
  color: #264037;
  font-weight: 850;
  text-decoration: none;
}

.ca-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 28px;
  background: #0b2f22;
  color: #fff;
}

.ca-footer a {
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 920px) {
  .ca-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
  }

  .ca-header nav {
    width: 100%;
  }

  .ca-header nav a {
    flex: 1 1 120px;
    justify-content: center;
    text-align: center;
  }

  .ca-flow,
  .ca-grid,
  .ca-checks,
  .ca-decision,
  .ca-case-list,
  .ca-case-list-3,
  .ca-source-list,
  .ca-tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ca-flow article {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .ca-page {
    width: min(100% - 20px, 1280px);
    padding-top: 10px;
  }

  .ca-brand b {
    font-size: 18px;
  }

  .ca-header nav {
    display: none;
  }

  .ca-breadcrumb {
    font-size: 12px;
  }

  .ca-hero {
    padding: 20px 16px;
    text-align: left;
  }

  .ca-hero h1 {
    font-size: 36px;
  }

  .ca-answer {
    font-size: 21px;
  }

  .ca-updated {
    font-size: 12px;
  }

  .ca-flow {
    gap: 10px;
  }

  .ca-flow article,
  .ca-section,
  .ca-table-card,
  .ca-ng,
  .ca-tools {
    padding: 16px;
  }

  .ca-flow h2,
  .ca-ng h2 {
    font-size: 23px;
  }

  .ca-flow p,
  .ca-section p,
  .ca-ng p,
  .ca-faq p {
    font-size: 15px;
    line-height: 1.72;
  }

  .ca-section-head h2 {
    font-size: 26px;
  }

  .ca-checks label {
    min-height: 58px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 10px;
    border: 1px solid #dce5dd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
  }

  td {
    border: 0;
    border-bottom: 1px solid #e6eee8;
    font-size: 15px;
  }

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

  td::before {
    display: block;
    margin-bottom: 4px;
    color: #087943;
    font-size: 12px;
    font-weight: 950;
  }

  td:nth-child(1)::before {
    content: "状況";
  }

  td:nth-child(2)::before {
    content: "やること";
  }

  td:nth-child(3)::before {
    content: "注意点";
  }

  .ca-source-list a,
  .ca-tool-grid a {
    min-height: 76px;
  }

  .ca-footer {
    flex-direction: column;
    align-items: center;
  }
}
