:root {
  --ink: #071b35;
  --muted: #526276;
  --line: #d7e1e8;
  --soft: #f5f8fb;
  --green: #079d61;
  --green-dark: #047144;
  --green-soft: #eaf8f1;
  --yellow: #fff8df;
  --yellow-line: #e5ae26;
  --shadow: 0 18px 46px rgba(14, 30, 52, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

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

.saic-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 950;
  white-space: nowrap;
}

.saic-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 33px;
}

.saic-logo i {
  width: 6px;
  border-radius: 999px;
  background: var(--green);
}

.saic-logo i:nth-child(1) { height: 20px; }
.saic-logo i:nth-child(2) { height: 34px; }
.saic-logo i:nth-child(3) { height: 24px; }

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

.saic-header nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #273649;
  font-weight: 900;
  white-space: nowrap;
}

.saic-header nav a:last-child {
  background: var(--green);
  color: #fff;
}

.saic-shell {
  width: min(1480px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  margin: 0 auto;
  padding: 26px 0 48px;
}

.saic-main {
  min-width: 0;
}

.saic-breadcrumb {
  margin: 0 0 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #69788b;
  font-size: 14px;
  font-weight: 800;
}

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

.saic-kicker {
  width: fit-content;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff0f2;
  color: #e7334d;
  font-weight: 950;
}

.saic-hero h1 {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 5.2vw, 78px);
  line-height: 1.13;
  font-weight: 950;
}

.saic-lead {
  max-width: 980px;
  margin: 18px 0 0;
  color: #26384d;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.55;
  font-weight: 880;
}

.saic-answer {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 18px;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: #fbfffd;
}

.saic-answer > span {
  min-height: 68px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.saic-answer h2 {
  margin: 0;
  font-size: clamp(23px, 2.1vw, 32px);
  line-height: 1.35;
  font-weight: 950;
}

.saic-answer p {
  margin: 8px 0 0;
  color: #44556a;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 760;
}

.saic-tool-cta,
.saic-section,
.saic-side-cta,
.saic-side-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.saic-tool-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
  margin-top: 30px;
  padding: 22px;
  background: linear-gradient(135deg, #f4fff9, #fff);
}

.saic-tool-cta > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.saic-tool-cta span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 25px;
  font-weight: 950;
}

.saic-tool-cta h2,
.saic-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 41px);
  line-height: 1.25;
  font-weight: 950;
}

.saic-tool-cta p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 780;
}

.saic-tool-cta a,
.saic-example-grid a,
.saic-side-cta a,
.saic-secondary-link {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 19px;
  font-weight: 950;
  text-decoration: none;
}

.saic-section {
  margin-top: 30px;
  padding: 26px;
}

.saic-section-head {
  margin-bottom: 18px;
}

.saic-section-head p {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-weight: 950;
}

.saic-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.saic-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  background: #fff;
}

.saic-table th,
.saic-table td {
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  font-weight: 780;
}

.saic-table th {
  background: #f1fbf6;
  color: #173552;
  font-weight: 950;
}

.saic-table tr:last-child td {
  border-bottom: 0;
}

.saic-table th:last-child,
.saic-table td:last-child {
  border-right: 0;
}

.saic-table b {
  display: block;
  font-size: 17px;
}

.saic-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.saic-small {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 760;
}

.saic-section-lead {
  margin: 0 0 16px;
  color: #34465b;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 800;
}

.saic-credit-grid,
.saic-flow {
  display: grid;
  gap: 14px;
}

.saic-credit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.saic-credit-grid article,
.saic-flow article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.saic-credit-grid article {
  min-height: 170px;
  padding: 16px;
  border-color: #f0bf45;
  background: var(--yellow);
}

.saic-credit-grid b,
.saic-flow b {
  display: block;
  color: var(--green-dark);
  font-size: 19px;
}

.saic-credit-grid p,
.saic-flow p {
  margin: 9px 0 0;
  color: #44556a;
  line-height: 1.7;
  font-weight: 780;
}

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

.saic-check-grid label {
  min-height: 78px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #f0bf45;
  border-radius: 8px;
  background: var(--yellow);
  color: #26384d;
  line-height: 1.55;
  font-weight: 850;
}

.saic-check-grid input {
  width: 19px;
  height: 19px;
  accent-color: var(--green);
  flex: 0 0 auto;
  margin-top: 2px;
}

.saic-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 13px 15px;
  border: 1px solid var(--yellow-line);
  border-radius: 8px;
  background: #fffaf0;
}

.saic-warning span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow-line);
  color: #fff;
  font-weight: 950;
}

.saic-warning p {
  margin: 0;
  color: #694a00;
  font-weight: 850;
  line-height: 1.55;
}

.saic-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.saic-flow article {
  min-height: 186px;
  padding: 18px;
}

.saic-flow span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 950;
}

.saic-example-grid,
.saic-ref-grid {
  display: grid;
  gap: 14px;
}

.saic-example-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.saic-example-grid article {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.saic-example-grid b {
  color: var(--green-dark);
  font-size: 23px;
}

.saic-example-grid p {
  margin: 10px 0 16px;
  color: #34465b;
  line-height: 1.8;
  font-weight: 780;
}

.saic-example-grid a {
  margin-top: auto;
  min-height: 50px;
  font-size: 16px;
}

.saic-secondary-link {
  width: fit-content;
  min-height: 50px;
  margin-top: 16px;
  padding: 0 18px;
  background: #fff;
  color: var(--green-dark);
  border: 1px solid #a8dec3;
}

.saic-ref-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.saic-ref-grid a {
  min-height: 112px;
  display: block;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  text-decoration: none;
}

.saic-ref-grid b {
  display: block;
  color: var(--ink);
}

.saic-ref-grid span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 760;
}

.saic-faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.saic-faq details + details {
  margin-top: 10px;
}

.saic-faq summary {
  padding: 18px;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

.saic-faq p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 760;
}

.saic-side {
  position: sticky;
  top: 22px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.saic-side-cta {
  overflow: hidden;
  background: linear-gradient(180deg, #068953, #086c45);
  color: #fff;
}

.saic-side-cta h2 {
  margin: 0;
  padding: 24px 20px 10px;
  font-size: 25px;
  line-height: 1.3;
}

.saic-mini-player {
  margin: 12px 20px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.saic-mini-player span {
  display: block;
  height: 34px;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, #b8e3ce 0 8px, transparent 8px 14px);
}

.saic-mini-player p {
  margin: 12px 0 0;
  color: #31445a;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 800;
}

.saic-side-cta a {
  width: calc(100% - 40px);
  margin: 4px 20px 16px;
  background: #fff;
  color: var(--green-dark);
}

.saic-side-cta > p {
  margin: 0;
  padding: 0 20px 22px;
  color: #e7fff3;
  font-weight: 850;
}

.saic-side-box {
  padding: 18px;
}

.saic-side-box h2 {
  margin: 0 0 12px;
  font-size: 19px;
}

.saic-side-box a,
.saic-side-box p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: #34465b;
  text-decoration: none;
  font-weight: 850;
}

.saic-side-box span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 950;
}

.saic-side-note p::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

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

.saic-footer a {
  text-decoration: none;
}

@media (max-width: 1180px) {
  .saic-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .saic-side {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .saic-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 14px;
  }

  .saic-brand {
    font-size: 21px;
  }

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

  .saic-header nav a {
    min-height: 34px;
    padding: 0 10px;
    border-color: var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
  }

  .saic-header nav a:last-child {
    background: var(--green);
    color: #fff;
  }

  .saic-shell {
    width: calc(100% - 20px);
    padding-top: 18px;
  }

  .saic-breadcrumb {
    margin-bottom: 18px;
  }

  .saic-kicker {
    font-size: 14px;
  }

  .saic-hero h1 {
    font-size: 38px;
  }

  .saic-lead {
    font-size: 19px;
  }

  .saic-answer,
  .saic-tool-cta,
  .saic-tool-cta > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .saic-answer {
    padding: 16px;
  }

  .saic-answer > span {
    width: fit-content;
    min-height: 46px;
    padding: 0 16px;
    font-size: 18px;
  }

  .saic-section {
    padding: 18px;
  }

  .saic-tool-cta span {
    width: 60px;
    height: 60px;
  }

  .saic-table-wrap {
    overflow: visible;
    border: 0;
  }

  .saic-table {
    min-width: 0;
    display: block;
    background: transparent;
  }

  .saic-table thead {
    display: none;
  }

  .saic-table tbody {
    display: grid;
    gap: 12px;
  }

  .saic-table tr {
    display: block;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .saic-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid #edf2f0;
    font-size: 15px;
  }

  .saic-table td:last-child {
    border-bottom: 0;
  }

  .saic-table td::before {
    color: var(--green-dark);
    font-weight: 950;
  }

  .saic-table td:nth-child(1)::before { content: "方法"; }
  .saic-table td:nth-child(2)::before { content: "用途"; }
  .saic-table td:nth-child(3)::before { content: "商用"; }
  .saic-table td:nth-child(4)::before { content: "確認"; }

  .saic-check-grid,
  .saic-credit-grid,
  .saic-example-grid,
  .saic-flow,
  .saic-ref-grid,
  .saic-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .saic-warning {
    align-items: flex-start;
  }

  .saic-side {
    gap: 12px;
  }
}
