:root {
  --ink: #10241d;
  --muted: #58665f;
  --line: #d9e2dd;
  --paper: #f7f8f2;
  --green: #11663d;
  --green-dark: #0a472c;
  --amber: #fff4d2;
  --red: #d92323;
  --shadow: 0 18px 48px rgba(16, 36, 29, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.cac-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(14px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
}

.cac-brand,
.cac-header nav a,
.cac-footer a {
  text-decoration: none;
}

.cac-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 950;
  white-space: nowrap;
}

.cac-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 19px;
  font-weight: 950;
}

.cac-mark::before {
  content: "火";
}

.cac-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.cac-header nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #24362e;
  font-weight: 900;
}

main {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.cac-hero {
  display: grid;
  gap: 18px;
}

.cac-title {
  text-align: center;
}

.cac-title p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 17px;
  font-weight: 950;
}

.cac-title h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
  font-weight: 950;
}

.cac-title span {
  display: block;
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 950;
}

.cac-result-strip,
.cac-console,
.cac-result-card,
.cac-info-grid article,
.cac-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cac-result-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.cac-status-tab {
  min-height: 118px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 3px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.cac-status-tab:last-child {
  border-right: 0;
}

.cac-status-tab span,
.cac-result-main > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-left: 16px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.cac-status-tab.is-danger {
  color: var(--red);
}

.cac-status-tab.is-active {
  background: linear-gradient(180deg, #157246, var(--green-dark));
  color: #fff;
}

.cac-status-tab b {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.15;
  font-weight: 950;
}

.cac-status-tab small {
  color: currentColor;
  font-size: 15px;
  font-weight: 850;
}

.cac-intro {
  max-width: 900px;
  margin: 0 auto;
  color: #31433b;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.7;
  text-align: center;
}

.cac-console {
  overflow: hidden;
}

.cac-question {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.cac-question:last-child {
  border-bottom: 0;
}

.cac-q-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.cac-q-label span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 950;
}

.cac-q-label b {
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.25;
}

.cac-segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px;
}

.cac-segments button {
  min-height: 56px;
  border: 1px solid var(--line);
  border-right: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.cac-segments button:first-child {
  border-radius: 8px 0 0 8px;
}

.cac-segments button:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
}

.cac-segments .is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.cac-result-card {
  padding: 24px;
  background: linear-gradient(135deg, #f4fbf6, #fff);
}

.cac-result-card.is-danger {
  background: linear-gradient(135deg, #fff6f5, #fff);
  border-color: #efb4b4;
}

.cac-result-card.is-carry {
  background: linear-gradient(135deg, var(--amber), #fff);
  border-color: #e6bd4c;
}

.cac-result-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.cac-result-main > span {
  margin-left: 0;
  width: 76px;
  height: 76px;
  border: 0;
  background: var(--green);
}

.cac-result-card.is-danger .cac-result-main > span {
  background: var(--red);
}

.cac-result-card.is-carry .cac-result-main > span {
  background: #a66b00;
}

.cac-result-main p {
  margin: 0 0 4px;
  color: var(--green);
  font-weight: 950;
}

.cac-result-card.is-danger .cac-result-main p {
  color: var(--red);
}

.cac-result-main h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.1;
}

.cac-result-card.is-danger .cac-result-main h2 {
  color: var(--red);
}

.cac-result-main strong {
  display: block;
  margin-top: 6px;
  color: #2f4038;
  font-size: 18px;
  line-height: 1.55;
}

.cac-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cac-result-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.cac-result-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cac-result-grid li,
.cac-result-grid p {
  margin: 0;
  color: #35463e;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.cac-result-grid li::before {
  content: "確認";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 22px;
  margin-right: 8px;
  border-radius: 999px;
  background: #dff3e8;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.cac-copy {
  width: min(540px, 100%);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  font: inherit;
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
}

.cac-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.cac-info-grid article,
.cac-section {
  padding: 22px;
}

.cac-info-grid h2,
.cac-section h2 {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 26px;
  line-height: 1.25;
}

.cac-info-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2em;
  color: #35463e;
  font-weight: 820;
  line-height: 1.65;
}

.cac-info-grid a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--green-dark);
  font-weight: 950;
}

.cac-section {
  margin-top: 18px;
}

.cac-section p {
  margin: 0;
  color: #35463e;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 760;
}

.cac-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 32px 16px 46px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 820px) {
  .cac-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
    gap: 10px;
  }

  .cac-brand {
    font-size: 20px;
  }

  .cac-header nav {
    justify-content: flex-start;
  }

  main {
    width: calc(100% - 20px);
    padding-top: 16px;
  }

  .cac-title h1 {
    font-size: 38px;
  }

  .cac-title span {
    font-size: 24px;
  }

  .cac-result-strip,
  .cac-info-grid,
  .cac-result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cac-status-tab {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cac-status-tab:last-child {
    border-bottom: 0;
  }

  .cac-question {
    grid-template-columns: minmax(0, 1fr);
  }

  .cac-q-label {
    padding-bottom: 4px;
  }

  .cac-segments {
    padding-top: 6px;
  }

  .cac-segments button {
    min-height: 50px;
    font-size: 16px;
  }

  .cac-result-card {
    padding: 18px;
  }

  .cac-result-main {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .cac-result-main > span {
    width: 58px;
    height: 58px;
  }
}
