/**
 * レッドチームのページ（/red-team）で増えた部品
 *
 * 原稿：Downloads の「レッドチームページ_指示と原稿.md」（2026-10-02）。下書きは docs/content/red-team.html と blocks/red-team-hero.html。
 * 冒頭の形・白いカードの 2×2（.panel-cards）・カードのアイコンと「詳しく見る」は css/consulting.css、ほかはトップと診断ページの部品。
 * 決まりはほかと同じ：黒 #000・赤茶 #B4502E・角丸 4px・影なし。怖がらせる見せ方（赤い警告など）はしない。
 * スマホでは、横並びのカードは縦1列、表は横スクロール。
 *
 * 1024px 以上：PC ／ 768〜1023px：タブレット ／ 767px 以下：スマホ
 */

/* ---------- 冒頭：h1 のすぐ下の小さい「侵入テスト」 ---------- */

.service-hero__sub {
  margin-top: -8px;
  color: var(--sh-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- 2 脆弱性診断との違い（比較の表） ---------- */

/* 表の入れ物。スマホでは横にスクロールする（キーボードでも動かせるように tabindex="0"） */
.compare-table {
  overflow-x: auto;
  border: 1px solid var(--sh-line);
  border-radius: var(--sh-radius);
  background: var(--sh-surface);
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
  line-height: 1.7;
}

.compare-table :is(th, td) {
  padding: 18px 24px;
  border-top: 1px solid var(--sh-line-header);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  padding-block: 14px;
  border-top: 0;
  background: var(--sh-black);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* レッドチームの列の見出しだけ赤茶にして、このページの主役だとわかるように */
.compare-table thead th:last-child {
  background: var(--sh-accent);
}

.compare-table tbody th {
  width: 180px;
  font-size: 14px;
  font-weight: 700;
}

.compare-table td {
  width: calc((100% - 180px) / 2);
  color: var(--sh-text);
  font-size: 15px;
}

/* スマホだけ、表の上に「横にスクロールできます」 */
.compare-hint {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: -36px;
  color: var(--sh-muted);
  font-size: 12px;
}

.compare-table + .section__note .text-link {
  margin-left: 8px;
  padding-bottom: 0;
}

/* ---------- 5 安全に進めるために（アイコン付きの3項目を横並び。トレーニングの「4 実施の形」でも使う） ---------- */

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.point {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border: 1px solid var(--sh-line-header);
  border-radius: var(--sh-radius);
  background: var(--sh-surface);
}

/* 白いセクションの上では、カードを #FAFAF8 に（トレーニングの「実施の形」は #FAFAF8 のセクションなので白いまま） */
.section--white .point {
  background: var(--sh-bg);
}

.point__icon {
  display: block;
  width: 48px;
  height: 48px;
}

.point__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.point__text {
  color: var(--sh-text);
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- 6 報告書とレビュー会（左に報告書でわかること、右にレビュー会） ---------- */

.report-review {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
}

.report-review__box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--sh-line-header);
  border-radius: var(--sh-radius);
  background: var(--sh-surface);
}

.report-review__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.report-review__list {
  display: flex;
  flex-direction: column;
}

/* 項目名（太字）と説明を、罫線で区切って縦に並べる */
.report-review__list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--sh-line-header);
  color: var(--sh-text);
  font-size: 15px;
  line-height: 1.8;
}

.report-review__list strong {
  color: var(--sh-black);
}

.report-review__text {
  color: var(--sh-text);
  font-size: 15px;
  line-height: 1.9;
}

/* =================== 1023px 以下：タブレット =================== */

@media (max-width: 1023px) {
  .points,
  .report-review {
    grid-template-columns: 1fr;
  }
}

/* =================== 767px 以下：スマホ =================== */

@media (max-width: 767px) {
  .service-hero__sub {
    margin-top: -4px;
    font-size: 13px;
  }

  /* 表は横スクロール（列の幅を保つ） */
  .compare-table table {
    min-width: 600px;
  }

  .compare-table :is(th, td) {
    padding: 14px 16px;
  }

  .compare-table tbody th {
    width: 110px;
  }

  .compare-table td {
    font-size: 14px;
  }

  .compare-table + .section__note .text-link {
    display: flex;
    margin: 8px 0 0;
  }

  .points {
    gap: 10px;
  }

  .point,
  .report-review__box {
    padding: 20px;
  }

  .point__icon {
    width: 40px;
    height: 40px;
  }

  .point__title,
  .report-review__title {
    font-size: 17px;
  }

  .point__text,
  .report-review__text {
    font-size: 14px;
  }

  .report-review__list li {
    grid-template-columns: 1fr;
    gap: 2px;
    font-size: 14px;
  }
}
