/* ==============================
  Security Guide Full Page
============================== */

.security-guide-page {
  max-width: 1920px;
  margin: 0 auto;
  padding: 18px 22px 48px;
  color: #0f172a;
  background: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.security-guide-page * {
  box-sizing: border-box;
}

.sg-block {
  position: relative;
  width: min(var(--pc-width), 100%);
  margin: 0 auto 18px;
  padding: 24px 28px 28px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d6e0ef;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.sg-hero {
  width: min(1280px, 100%);
}

.sg-number {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #004b9b;
  border-radius: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.sg-title-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 18px;
}

.sg-title-row h2 {
  margin: 0 0 8px;
  color: #061a3a;
  font-size: clamp(25px, 2.7vw, 36px);
  line-height: 1.35;
  font-weight: 900;
}

.sg-title-row p {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 700;
}

.sg-image {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid #d6e0ef;
}

.sg-image::after {
  content: none;
}

.sg-image-hero { background-image: url("images/security-guide-hero.webp"); }
.sg-image-risk-ransom { background-image: url("images/security-guide-risk-ransom.png"); }
.sg-image-risk-mail { background-image: url("images/security-guide-risk-mail.png"); }
.sg-image-risk-stop { background-image: url("images/security-guide-risk-stop.png"); }
.sg-image-risk-trust { background-image: url("images/security-guide-risk-trust.png"); }
.sg-image-risk-target { background-image: url("images/security-guide-risk-target.png"); }
.sg-image-precheck { background-image: url("images/security-guide-precheck.png"); }
.sg-image-flow-hearing { background-image: url("images/security-guide-flow-hearing.png"); }
.sg-image-flow-check { background-image: url("images/security-guide-flow-check.png"); }
.sg-image-flow-design { background-image: url("images/security-guide-flow-design.png"); }
.sg-image-flow-support { background-image: url("images/security-guide-flow-support.png"); }
.sg-image-table-firewall { background-image: url("images/security-guide-table-firewall.png"); }
.sg-image-table-antivirus { background-image: url("images/security-guide-table-antivirus.png"); }
.sg-image-table-utm { background-image: url("images/security-guide-table-utm.png"); }
.sg-image-protect { background-image: url("images/security-guide-protect.png"); }
.sg-image-faq-person { background-image: url("images/security-guide-faq-person.png"); }
.sg-image-merit-hearing { background-image: url("images/security-guide-merit-hearing.png"); }
.sg-image-merit-visualize { background-image: url("images/security-guide-merit-visualize.png"); }
.sg-image-merit-support { background-image: url("images/security-guide-merit-support.png"); }
.sg-image-merit-care { background-image: url("images/security-guide-merit-care.png"); }
.sg-image-summary { background-image: url("images/security-guide-summary.png"); }
.sg-image-summary-shield { background-image: url("images/security-guide-summary-shield.png"); }

/* 01 */
.sg-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: 58px minmax(620px, 0.72fr) 1fr;
  gap: 18px;
  align-items: start;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 46%, rgba(255,255,255,0.18) 72%, rgba(255,255,255,0) 100%),
    url("images/security-guide-hero.webp") right top / auto 100% no-repeat;
}

.sg-hero-copy h1 {
  margin: 0 0 20px;
  color: #061a3a;
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.2;
  font-weight: 900;
}

.sg-hero-copy p {
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 700;
}

.sg-hero-points {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d6e0ef;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.sg-hero-points span {
  min-height: 70px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  color: #004b9b;
  border-right: 1px solid #d6e0ef;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.sg-hero-points span::before {
  content: "";
  width: 38px;
  height: 38px;
  display: block;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transform: scale(1.45);
  transform-origin: center;
}

.sg-hero-points span:nth-child(1)::before {
  background-image: url("images/security-guide-point-protect.png");
}

.sg-hero-points span:nth-child(2)::before {
  background-image: url("images/security-guide-point-risk.png");
}

.sg-hero-points span:nth-child(3)::before {
  background-image: url("images/security-guide-point-continuity.png");
}

.sg-hero-points span:last-child {
  border-right: 0;
}

.sg-hero-image {
  display: none;
}

.sg-tablet-break {
  display: none;
}

/* Cards */
.sg-risk-grid,
.sg-merit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

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

.sg-card {
  padding: 12px 12px 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d6e0ef;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.sg-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  margin-bottom: 12px;
  border-radius: 6px;
}

.sg-risk-grid .sg-card-image,
.sg-merit-grid .sg-card-image {
  width: calc(100% + 24px);
  aspect-ratio: 4 / 3;
  min-height: 0;
  margin: -12px -12px 12px;
  border-radius: 8px 8px 0 0;
}

.sg-card h3 {
  margin: 0 0 8px;
  color: #061a3a;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 900;
  text-align: center;
}

.sg-card p {
  margin: 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 700;
  text-align: center;
}

/* 03 */
.sg-precheck {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
  gap: 14px 72px;
  align-items: stretch;
}

.sg-precheck .sg-note {
  grid-column: 2;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.sg-precheck .sg-note::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 42px;
  background: url("images/security-guide-note-bulb.png") center / contain no-repeat;
  transform: scale(2);
  transform-origin: center;
}

.sg-precheck-image {
  grid-row: 1 / 3;
  aspect-ratio: 4 / 3;
  min-height: 0;
  height: 100%;
  width: auto;
  justify-self: start;
  border-radius: 6px;
}

.sg-check-list {
  padding: 24px 28px;
  display: grid;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #b7d5f4;
  border-radius: 8px;
}

.sg-check-list label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 800;
}

.sg-check-list input {
  width: 18px;
  height: 18px;
  accent-color: #005fc4;
  transform: translateY(2px);
}

.sg-note {
  margin-top: 18px;
  padding: 15px 18px;
  color: #005fc4;
  background: #eef8ff;
  border: 1px solid #b7d5f4;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 900;
  text-align: center;
}

.sg-note-yellow {
  color: #7a4b00;
  background: #fff4d6;
  border-color: #ffd470;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.sg-note-yellow::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 42px;
  background: url("images/security-guide-note-bulb.png") center / contain no-repeat;
  transform: scale(2);
  transform-origin: center;
}

/* 04 */
.sg-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sg-flow-card {
  position: relative;
  padding: 12px 10px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 6px;
  align-items: baseline;
  background: #ffffff;
  border: 1px solid #d6e0ef;
  border-radius: 8px;
}

.sg-flow-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  width: 29px;
  height: 36px;
  background: #005fc4;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateY(-50%);
  z-index: 2;
}

.sg-flow-card span {
  display: inline-block;
  width: auto;
  height: auto;
  margin-bottom: 0;
  color: #005fc4;
  background: transparent;
  border-radius: 0;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.sg-flow-image {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 0;
  margin-bottom: 0;
  border-radius: 6px;
  background-size: 112% auto;
  background-position: center;
}

.sg-flow-card h3 {
  margin: 0;
  color: #005fc4;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
  text-align: left;
}

.sg-flow-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 700;
  text-align: center;
}

/* 05 */
.sg-compare {
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow-x: auto;
}

.sg-compare table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
}

.sg-compare th,
.sg-compare td {
  padding: 12px 14px;
  border: 1px solid #cbd7e6;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}

.sg-compare thead th {
  color: #ffffff;
  background: #004b9b;
  font-size: 17px;
  font-weight: 900;
}

.sg-compare tbody th {
  width: 150px;
  background: #f8fafc;
  font-weight: 900;
}

.sg-table-image {
  width: 110px;
  height: 70px;
  margin: 0 auto 8px;
  border: none;
  background-size: contain;
}

.sg-table-caption {
  margin: 10px 0 0;
  padding: 10px 14px;
  color: #004b9b;
  background: #f4f9ff;
  border: 1px solid #b7d5f4;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

/* 06 */
.sg-protect {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(560px, 1.08fr);
  gap: 28px;
  align-items: center;
}

.sg-protect ul {
  margin: 0;
  padding: 20px 24px;
  display: grid;
  gap: 12px;
  list-style: none;
  background: #ffffff;
  border: 1px solid #9ad2b6;
  border-radius: 8px;
}

.sg-protect li {
  position: relative;
  padding-left: 34px;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 900;
}

.sg-protect li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #169b62;
  border-radius: 50%;
  font-size: 14px;
}

.sg-protect-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
}

.sg-green-text {
  margin: 14px 0 0;
  color: #169b62;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 900;
  text-align: center;
}

/* 07 */
.sg-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 0;
  align-items: start;
}

.sg-faq-list {
  position: relative;
  z-index: 1;
  padding: 12px 18px;
  display: grid;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #b7d5f4;
  border-radius: 8px;
}

.sg-faq-item + .sg-faq-item {
  padding-top: 6px;
  border-top: 1px solid #dbe8f7;
}

.sg-faq-q,
.sg-faq-a {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 800;
}

.sg-faq-q {
  margin-bottom: 6px;
}

.sg-faq-a {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.sg-faq-list strong {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: #005fc4;
  border-radius: 50%;
  font-size: 13px;
}

.sg-faq-person {
  position: relative;
  z-index: 3;
  align-self: start;
  width: 330px;
  min-height: 330px;
  margin-left: -96px;
  border: none;
  background-color: transparent;
  background-size: contain;
  background-position: center top;
}

/* 09 */
.sg-summary-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1.1fr) minmax(220px, 0.65fr);
  gap: 24px;
  align-items: center;
}

.sg-summary-image {
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: 6px;
}

.sg-summary-copy p {
  margin: 0 0 12px;
  color: #111827;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 800;
}

.sg-summary-copy ul {
  margin: 0;
  padding: 12px 16px;
  display: grid;
  gap: 8px;
  list-style: none;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #b7d5f4;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 800;
}

.sg-summary-copy li {
  position: relative;
  padding-left: 30px;
}

.sg-summary-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #005fc4;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1;
}

.sg-summary-shield {
  min-height: 180px;
  border: none;
  background-color: transparent;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* 10 */
.sg-contact {
  background: #ffffff;
}

.sg-contact-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.sg-contact-buttons a {
  min-width: 300px;
  padding: 18px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
  text-decoration: none;
}

.sg-contact-mail {
  background: #005fc4;
}

.sg-contact-phone {
  background: #159447;
}

@media (min-width: 641px) and (max-width: 1100px) {
  .sg-tablet-break {
    display: inline;
  }
}

@media (max-width: 1100px) {
  .sg-precheck,
  .sg-protect,
  .sg-summary-grid {
    grid-template-columns: 1fr;
  }

  .sg-faq {
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 0;
    align-items: start;
  }

  .sg-title-row {
    align-items: center;
  }

  .sg-title-row h2 {
    margin: 0;
  }

  .sg-hero {
    grid-template-columns: 58px 1fr;
    gap: 18px;
  }

  .sg-hero-copy {
    grid-column: 2;
  }

  .sg-precheck {
    gap: 14px;
  }

  .sg-precheck .sg-note {
    grid-column: 1;
  }

  .sg-precheck-image {
    grid-row: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    justify-self: stretch;
  }

  .sg-risk-grid,
  .sg-merit-grid,
  .sg-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-flow-card:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .security-guide-page {
    padding: 10px;
  }

  .sg-block {
    padding: 18px 14px;
  }

  .sg-title-row {
    grid-template-columns: 46px 1fr;
    gap: 12px;
  }

  .sg-number {
    width: 46px;
    height: 46px;
    font-size: 21px;
  }

  .sg-hero {
    min-height: 0;
    row-gap: 8px;
    background: #ffffff;
  }

  .sg-hero-copy {
    display: contents;
  }

  .sg-hero-copy h1 {
    grid-column: 2;
    margin-bottom: 6px;
    font-size: 32px;
  }

  .sg-hero-copy p {
    grid-column: 2;
  }

  .sg-hero-image {
    grid-column: 1 / -1;
    order: 3;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    margin-top: 18px;
    border: none;
    border-radius: 6px;
    background-position: 72% top;
    background-size: auto 118%;
  }

  .sg-hero-points {
    grid-column: 1 / -1;
    order: 4;
    width: calc(100% - 28px);
    margin: -44px auto 0;
    position: relative;
    z-index: 3;
  }

  .sg-hero-points span {
    min-height: 56px;
    padding: 6px 8px;
    grid-template-columns: 28px 1fr;
    gap: 6px;
    font-size: 12px;
    line-height: 1.45;
  }

  .sg-hero-points span::before {
    width: 24px;
    height: 24px;
    transform: scale(1.15);
  }

  .sg-faq {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sg-faq-person {
    align-self: start;
    justify-self: end;
    width: min(330px, 100%);
    min-height: 330px;
    margin: -3em 0 0 auto;
    background-position: right top;
  }

  .sg-risk-grid,
  .sg-merit-grid,
  .sg-flow {
    grid-template-columns: 1fr;
  }

  .sg-contact-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sg-contact-buttons a {
    min-width: 0;
  }
}
