/* ==========================================================================
   SCS評価制度 LP
   ========================================================================== */

/* ---- Tokens ---- */
:root {
  /* ---- Color ---- */
  --color-main:        #3f5ed8;  /* ブランドブルー */
  --color-base:        #ffffff;  /* ベース白 */
  --color-text:        #000000;  /* 本文テキスト */
  --color-gray1:       #f7f5f5;  /* 背景グレー */
  --color-gray2:       #888888;  /* 補助テキスト */
  --color-line1:       #cccccc;  /* 罫線・進捗バー背景 */
  --color-line2:       #dddddd;  /* サイドナビ枠線 */
  --color-bg-blue:     #f0f8ff;  /* ヒーロー帯・チェックリスト・POINT背景 */
  --color-placeholder: #d9d9d9;  /* アイコン等のプレースホルダー */
  --color-mv-bg:       #0a58e8;  /* MVベース背景 */
  --color-cell:        #f3f9ff;  /* 表のデータセル背景 */

  /* ---- Radius ---- */
  --radius-sm: 4px;

  /* ---- Font Family ---- */
  --font-jp:       "Noto Sans JP", "Noto Sans CJK JP", sans-serif; /* 和文 */
  --font-num:      "Sofia Sans", sans-serif;                       /* h3番号・POINT */
  --font-num-cond: "Sofia Sans Condensed", sans-serif;             /* h2番号・インデックス番号 */

  /* ---- Typography ---- */
  /* h2: セクション見出し */
  --h2-size: 42px;        --h2-lh: 1.6;   --h2-ls: 1.92px;
  /* h3: 小見出し */
  --h3-size: 24px;        --h3-lh: 1.4;
  /* lead: 青見出し */
  --lead-size: 24px;      --lead-lh: 1.4;
  /* body: 本文 */
  --body-size: 16px;      --body-lh: 1.7;
  /* index: インデックスリスト */
  --index-size: 16px;     --index-lh: 1.4;
  /* point: POINTラベル */
  --point-size: 18px;
  /* sidenav */
  --side-title-size: 15px;
  --side-item-size: 13px; --side-item-lh: 1.4;   /* 記事タイトル */
  --side-date-size: 13px;                        /* 日付 */
  --side-link-size: 14px; --side-link-lh: 2.1;   /* CTAリンク Noto SemiBold */

  /* ---- Layout ---- */

  /* ---- Spacing ---- */
  --sp-section-py: 80px;  /* セクション上下パディング */
  --sp-h2-content: 30px;
  --sp-block: 40px;       /* ブロック間 */
  --sp-in-block: 16px;
  --sp-lead-box: 8px;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-jp);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--color-text);
  background: var(--color-base);
}

/* 本番サイトの style.css が body に letter-spacing: 0.05em を当てているため打ち消す
   （フッターは本番のデザインなので対象外） */
.header,
main,
.sidenav-rail { letter-spacing: 0; }

img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---- コンテンツエリア ---- */
.content-area {
  width: calc(100% - max(11.11%, 100px));
  max-width: 1280px;
  margin-inline: auto;
}

/* メインカラム */
.main-col {
  width: calc(100% - 328px);
  min-width: 0;
  flex-shrink: 0;
}

/* 6カラムグリッド幅ユーティリティ */
.cols5 { width: calc((100% - 120px) / 6 * 5 + 96px); }
.cols4 { width: calc((100% - 120px) / 6 * 4 + 72px); }
.cols2 { width: calc((100% - 120px) / 6 * 2 + 24px); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: #fff;
}

.header__logo { margin: 15px 0 0 40px; }

.header__logo img { width: 218px; height: 42px; }

.header__actions { display: flex; }

.header__tel {
  padding: 10px 30px;
  background: url("../assets/icon-tel.svg") no-repeat top 20px left;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  cursor: default;
  pointer-events: none;
}

.header__tel p {
  font-size: 13px;
  font-weight: 400;
}

.header__contact {
  display: flex;
  align-items: center;
  text-align: center;
  padding: 15px 40px;
  border: 1px solid #d8231e;
  background: #d8231e;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  transition: background 0.2s, color 0.2s;
}

.header__contact:hover {
  background: #fff;
  color: #d8231e;
}

/* 固定ヘッダー分のオフセット */
body { padding-top: 74px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--color-mv-bg) url("../assets/mv_bg.jpg") center / cover no-repeat;
}

.hero__inner {
  max-width: 1440px;
  margin-inline: auto;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Layout: main + sidenav
   ========================================================================== */
.container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-top: 80px; /* MV下マージン */
}

/* ==========================================================================
   Headings
   ========================================================================== */
/* h2: 青四角バッジ */
.h2 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.h2__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 17px;
  background: var(--color-main);
  color: var(--color-base);
  font-family: var(--font-num-cond);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.84px;
  line-height: 1;
  flex-shrink: 0;
}

.h2__text {
  font-weight: 700;
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  letter-spacing: var(--h2-ls);
}

.h3 {
  display: flex;
  align-items: center;
}

.h3__text {
  font-weight: 700;
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
}

/* lead: 青見出し */
.lead {
  font-weight: 700;
  font-size: var(--lead-size);
  line-height: var(--lead-lh);
  color: var(--color-main);
}

.page-index {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-index__block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lead-box);
}

/* インデックス */
.indexbox {
  display: flex;
  background: var(--color-gray1);
  border-radius: var(--radius-sm);
  padding: 24px 32px;
}

.indexbox__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.indexbox__col:first-child { width: 326px; flex-shrink: 0; }

.indexbox__col li { display: flex; }

.indexbox__col a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.indexbox__col .num {
  width: 20px;
  font-family: var(--font-num-cond);
  font-weight: 700;
  font-size: var(--index-size);
  line-height: 1;
  color: var(--color-main);
  flex-shrink: 0;
}

.indexbox__col .txt {
  font-weight: 700;
  font-size: var(--index-size);
  line-height: var(--index-lh);
  padding-bottom: 2px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-h2-content);
  padding: var(--sp-section-py) 0;
}

.section--gray { background: var(--color-bg-blue); }

.section__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-block);
}

.block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-in-block);
}

strong { font-weight: 700; }

/* 図版（画像） */
/* 画像は余白なしで書き出し、白地と上下30pxはここで付ける。
   左右の余白はデザインどおりの幅（--fig-w：789px に対する割合）で中央に置くことで出す */
.fig {
  background: var(--color-base);
  padding: 30px 0;
}

.fig img {
  width: var(--fig-w, 100%);
  height: auto;
  margin-inline: auto;
}

/* タップで拡大（SPのみ有効。PCではリンクを効かせず見た目も変えない） */
.fig__zoom { display: block; pointer-events: none; cursor: default; }
.fig__zoom-label { display: none; }

/* 背景透過の図版（白地・上下余白なし） */
.fig--clear {
  background: none;
  padding: 0;
}

/* 図版・表の上は40px空ける（ブロック内の gap 16px ＋ 24px） */
.block > .fig,
.block > .otasuke,
.block > .supporter,
.block > .req-example,
.block > .table-scroll,
.block > .body-text + .sub:has(> .h4--bar),
.block > .table-scroll + .sub:has(> .h4--bar) { margin-top: 24px; }

/* 直前の図版と一体の表（想定事例）は詰める */
.block > .table-scroll--follow { margin-top: 0; }
.block > .table-scroll--follow + .table-scroll--follow { margin-top: 16px; }

/* ==========================================================================
   表組み（図版をコーディングしたもの）
   ========================================================================== */
/* SPでは横スクロール */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}

.data-table th,
.data-table td {
  border: 1px solid var(--color-main);
  padding: 16px 12px;
  vertical-align: middle;
  text-align: left;
}

/* 見出し行：青地に白文字、見出し同士の区切りは白線 */
.data-table thead th {
  background: var(--color-main);
  color: var(--color-base);
  font-weight: 500;
  text-align: center;
  padding: 8px;
}

/* 見出しセル同士の区切りは白。border-collapse では左・上のセルの線が優先されるので右・下側も白にする */
.data-table thead th + th { border-left-color: var(--color-base); }
.data-table thead th:not(:last-child) { border-right-color: var(--color-base); }
.data-table thead tr + tr th { border-top-color: var(--color-base); }
.data-table thead tr:not(:last-child) th:not([rowspan]) { border-bottom-color: var(--color-base); }

/* 見出し列：白地に青文字 */
.data-table tbody th {
  background: var(--color-base);
  color: var(--color-main);
  font-weight: 500;
  text-align: center;
  padding: 12px 10px;
}

/* 青地の見出し列（2階層の左側） */
.data-table tbody th.is-fill {
  background: var(--color-main);
  color: var(--color-base);
}

/* 青地の見出し列が上下に並ぶとき、その境目は白（2段構成の表：1段目の下辺） */
.data-table tbody tr:first-child th.is-fill { border-bottom-color: var(--color-base); }

.data-table td { background: var(--color-cell); }
.data-table .is-center { text-align: center; }
.data-table .is-top { vertical-align: top; }

.data-table__sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
}

.data-table__sub--before { margin: 0 0 2px; }

/* セル内の箇条書き */
.data-table__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.data-table__list li {
  position: relative;
  padding-left: 1em;
}

.data-table__list li::before {
  content: "•";
  position: absolute;
  left: 0.2em;
}

/* ✓付きの子項目 */
.data-table__list .is-check { padding-left: 2.4em; }

.data-table__list .is-check::before {
  content: "✓";
  left: 1em;
  color: var(--color-main);
  font-weight: 700;
}

/* 箇条書きでない行（補足の見出しなど） */
.data-table__list .is-plain { padding-left: 0; }
.data-table__list .is-plain::before { content: none; }

/* 見出しセル左上の記号（A〜D） */
.data-table th:has(> .data-table__marker) { position: relative; }

.data-table__marker {
  position: absolute;
  top: -11px;
  left: -11px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-base);
  border-radius: 50%;
  background: var(--color-main);
  color: var(--color-base);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* 番号付きの見出し（想定事例の(1)〜(4)） */
.data-table__no {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
}

.data-table__no.is-coral { color: #f2776c; }
.data-table__no.is-blue { color: var(--color-main); }
.data-table__no.is-cyan { color: #3faad8; }

.data-table td > p + * { margin-top: 8px; }

.data-table__note {
  font-size: 12px;
  color: var(--color-gray2);
}

/* ①〜⑤の箇条書き */
.data-table__circled {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.data-table__circled li {
  position: relative;
  padding-left: 1.5em;
}

.data-table__circled .num {
  position: absolute;
  left: 0;
  color: var(--color-main);
  font-weight: 700;
}

.data-table--sm { font-size: 14px; }

/* 台帳（13列）：文字を小さく、セルの左右余白を詰める */
.data-table--registry { font-size: 12px; }
.data-table--registry th,
.data-table--registry td { padding: 8px 4px; }
.data-table--registry tbody th { padding-inline: 4px; }
.data-table--xs { font-size: 13px; }

/* 図版内の小見出し（左に青い縦バー） */
.h4--bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.h4--bar::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 20px;
  background: var(--color-main);
}

/* 小見出し付きのまとまり同士の間隔 */
.sub:has(> .h4--bar) + .sub:has(> .h4--bar) { margin-top: 32px; }

/* ---- セキュリティ専門家の要件（本表 ＋ 研修の受講） ---- */
.expert-req {
  display: flex;
  align-items: stretch;
  gap: 30px;
}

.expert-req__main { flex: 1; min-width: 0; }

.expert-req__training {
  position: relative;
  flex: 0 0 160px;
}

.expert-req__training .data-table { height: 100%; }

/* 下の「対象とした研修」へつなぐ線の起点 */
.expert-req__training::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--color-main);
}

/* ＋記号（表の間・上下中央） */
.expert-req__plus {
  position: relative;
  flex: 0 0 20px;
  align-self: center;
  height: 20px;
  margin-inline: -25px; /* gap 30px の中央に置く */
}

.expert-req__plus::before,
.expert-req__plus::after {
  content: "";
  position: absolute;
  background: var(--color-main);
}

.expert-req__plus::before { left: 9px; top: 0; width: 2px; height: 20px; }
.expert-req__plus::after { left: 0; top: 9px; width: 20px; height: 2px; }

/* 研修の受講 → 対象とした研修 のカギ型の線（ブロック間の余白を打ち消して高さ84px） */
.expert-req__connector {
  position: relative;
  height: 84px;
  margin-block: calc(var(--sp-in-block) * -1);
}

.expert-req__connector::before {
  content: "";
  position: absolute;
  top: 0;
  left: 31.5%;
  right: 79px;
  height: 45px;
  border-right: 2px solid var(--color-main);
  border-bottom: 2px solid var(--color-main);
}

.expert-req__connector::after {
  content: "";
  position: absolute;
  top: 43px;
  bottom: 0;
  left: 31.5%;
  border-left: 2px solid var(--color-main);
}

/* 想定事例の表：見出しは青地・白文字、(1)〜(4)は白丸に元の色 */
.data-table--case tbody th {
  background: var(--color-main);
  color: var(--color-base);
}

/* 見出し列の段と段の間の横線は白（外枠は青のまま） */
.data-table--case tbody tr:not(:last-child) th { border-bottom-color: var(--color-base); }
.data-table--case tbody tr + tr th { border-top-color: var(--color-base); }

.data-table--case .data-table__no {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 6px;
  border-radius: 50%;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

/* 丸の地を番号の色に、数字は白 */
.data-table--case .data-table__no.is-coral { background: #f2776c; color: var(--color-base); }
.data-table--case .data-table__no.is-blue { background: var(--color-main); color: var(--color-base); border: 2px solid var(--color-base); } /* 見出し列と同じ青なので白線で縁取る */
.data-table--case .data-table__no.is-cyan { background: #3faad8; color: var(--color-base); }

/* ==========================================================================
   コーディングした図版（導入促進策・お助け隊・支援者リスト）
   ========================================================================== */
/* 図版内の淡い青。背景がライトブルーのセクションでは白にする */
:root { --fig-light: var(--color-cell); }
.section--gray { --fig-light: var(--color-base); }

.fig-title {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

/* ✓付きリスト（行頭をそろえる） */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.check-list--lg { gap: 12px; font-size: 14px; }

.check-list li {
  position: relative;
  padding-left: 1.2em;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
}

/* ・付きリスト（行頭は青） */
.dot-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.dot-list li {
  position: relative;
  padding-left: 1em;
}

.dot-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-main);
  font-weight: 700;
}

.dot-list--sub {
  gap: 4px;
  margin-top: 8px;
  font-size: 13px;
}

.dot-list a { color: var(--color-main); text-decoration: underline; overflow-wrap: anywhere; }

/* ---- 導入促進策（6列のグリッド） ---- */
.promo {
  position: relative;
  display: grid;
  grid-template-columns: 88px repeat(5, 1fr);
  row-gap: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.promo > * {
  grid-column: var(--col, 1) / span var(--span, 1);
  grid-row: var(--row, auto);
}

.promo__label {
  display: grid;
  place-items: center;
  margin-right: 4px;
  padding: 4px;
  background: var(--fig-light);
  color: var(--color-main);
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

/* 矢羽根 */
.promo__step {
  display: grid;
  place-items: center;
  min-height: 36px;
  margin-right: 4px;
  padding: 0 14px 0 4px;
  background: var(--color-main);
  color: var(--color-base);
  font-size: 11px;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

/* 発注元とサプライヤーの行は詰める（見出しと矢羽根の両方にかけて高さをそろえる） */
.promo > [style*="--row: 1"] { margin-bottom: -4px; }

.promo__label--acts,
.promo__act { margin-top: 2px; }

.promo__act {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 8px 12px 6px;
  grid-row: 3;
}

.promo__act li {
  position: relative;
  padding-left: 1em;
}

.promo__act li::before {
  content: "•";
  position: absolute;
  left: 0.2em;
}

/* 実施事項〜導入促進策の列の区切り線と、行の区切り線 */
.promo__lines {
  grid-column: 2 / -1;
  grid-row: 3 / 7;
  z-index: 0;
  /* 線は列の境目ちょうど（各列の右端1px）に引く。箱は左右6pxの余白で線から離す */
  background: repeating-linear-gradient(to right, transparent 0 calc(20% - 1px), var(--color-line1) calc(20% - 1px) 20%);
  clip-path: inset(0 1px 0 0); /* 右端の線は出さない */
  pointer-events: none;
}

.promo__act,
.promo__box { position: relative; z-index: 1; }

.promo__act { border-bottom: 1px solid var(--color-line1); }

.promo__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  margin-inline: 6px;
  padding: 8px;
  border: 2px dotted #f2776c;
  border-radius: 6px;
  background: var(--color-base);
  font-size: 11px;
}

.promo__box-title {
  font-size: 12px;
  font-weight: 700;
}

.promo__box-title::before { content: "✓ "; }

.promo__box .promo__logo { align-self: center; margin-top: 4px; }

.promo__box--media {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.promo__box--media > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

/* ---- お助け隊サービス ---- */
.otasuke__steps {
  display: grid;
  grid-template-columns: 22.2% 1fr 19.4%;
  gap: 10px 16px;
}

.otasuke__step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 矢羽根：次のSTEPに食い込ませて帯状につなぐ */
.otasuke__head {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 0 16px;
  background: var(--color-main);
  color: var(--color-base);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
}

.otasuke__step:first-child .otasuke__head { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.otasuke__step:not(:nth-child(3)) .otasuke__head { margin-right: -14px; }
.otasuke__step:not(:first-child) .otasuke__head { margin-left: -12px; }
.otasuke__step:nth-child(2) .otasuke__head { background: #6e89f5; }
.otasuke__step:nth-child(3) .otasuke__head { background: #3faad8; }

.otasuke__panel {
  position: relative;
  flex: 1;
  padding: 14px 12px;
  border: 1px solid var(--color-main);
  border-radius: 4px;
  background: var(--fig-light);
}

/* パネル間の三角 */
.otasuke__step:not(:nth-child(3)) .otasuke__panel::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 10px;
  height: 28px;
  margin-top: -14px;
  background: var(--color-main);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.otasuke__panel--split {
  display: grid;
  grid-template-columns: 1fr 172px;
  gap: 12px;
}

.otasuke__services-title {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
}

.otasuke__service-list > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  border: 1px solid var(--color-main);
  background: var(--color-base);
}

.otasuke__service-list > div + div { border-top: none; }

.otasuke__service-list dt {
  padding: 6px;
  background: #3faad8;
  color: var(--color-base);
  font-size: 12px;
  font-weight: 700;
}

.otasuke__service-list dd {
  padding: 6px;
  font-size: 11px;
  line-height: 1.4;
}

/* 講師アイコン：表の8px下、パネル右端から24px内側、下端はパネル枠から11pxはみ出す（デザインどおり） */
.otasuke__services { padding-bottom: 49px; }

.otasuke__illust {
  position: absolute;
  right: 24px;
  bottom: -11px;
  width: 72px;
}

.otasuke__note {
  grid-column: 1 / 3;
  padding: 8px;
  border-radius: 2px;
  background: #666666;
  color: var(--color-base);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* ---- 支援者リスト ---- */
.supporter__panel {
  padding: 18px 20px;
  border: 1px solid var(--color-main);
  border-radius: 4px;
  background: var(--fig-light);
}

.supporter__panel .dot-list + .supporter__note { margin-top: 10px; }

.supporter__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.supporter__panel--media {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.supporter__panel--media img { flex-shrink: 0; width: 66px; }

.supporter__sub {
  margin-top: 6px;
  color: var(--color-gray2);
  font-size: 13px;
}

.supporter__note {
  color: var(--color-gray2);
  font-size: 12px;
  line-height: 1.6;
}

.supporter__note a { color: var(--color-main); text-decoration: underline; overflow-wrap: anywhere; }
.supporter__note--right { margin-top: 12px; text-align: right; }

/* ---- 要求事項・評価基準の例（左の箱から右の抜粋へ点線で広げる） ---- */
.req-example {
  display: grid;
  grid-template-columns: 176px 36px 1fr;
  font-size: 14px;
  line-height: 1.45;
}

.req-example__doc {
  display: grid;
  place-items: center;
  align-self: center;
  height: 120px;
  border: 1px solid var(--color-main);
  background: var(--fig-light);
  color: var(--color-main);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

/* 点線：箱の上下の角 → パネルの上下の角（箱の高さ120pxの半分＝60px） */
.req-example__lines { position: relative; }

.req-example__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(50% - 60px);
  overflow: visible;
  stroke: var(--color-main);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.req-example__line--top { top: 0; }
.req-example__line--bottom { bottom: 0; }

.req-example__panel {
  border: 1px solid var(--color-main);
  background: var(--color-base);
}

.req-example__head {
  padding: 6px 12px;
  background: var(--color-main);
  color: var(--color-base);
  font-weight: 500;
}

.req-example__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--fig-light);
}

.req-example__list > div {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 4px;
}

.req-example__list dt {
  color: var(--color-main);
  font-weight: 500;
}

/* ---- 要求事項・評価基準の表 ---- */
.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
}

.req-table th,
.req-table td {
  border: 1px solid var(--color-main);
  padding: 16px 12px;
  vertical-align: top;
  text-align: left;
}

.req-table thead th {
  background: var(--color-main);
  color: var(--color-base);
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  padding: 8px;
}

.req-table thead th + th { border-left-color: var(--color-base); }
.req-table thead th:not(:first-child):not(:last-child) { border-right-color: var(--color-base); }

.req-table thead .req-table__star { font-size: 18px; }

.req-table thead th:first-child {
  background: var(--color-base);
  color: var(--color-main);
}

.req-table tbody th {
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  padding: 12px 8px;
}

.req-table tbody td.req-table__nist {
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}

/* 分類ごとの行の色と矢印の色 */
.req-table .is-gv { background: #feffec; --req-arrow: #232323; }
.req-table .is-id { background: #f3f9ff; --req-arrow: #7f99ff; }
.req-table .is-pr { background: #d5ddff; --req-arrow: #3f5ed8; }
.req-table .is-de { background: #ffe8e3; --req-arrow: #f2776c; }
.req-table .is-rs { background: #ffceca; }
.req-table .is-rc { background: #d8e7e6; --req-arrow: #3faad8; }

/* 背景がライトブルーのセクションでは、表のライトブルー部分を白にする */
.section--gray .data-table td,
.section--gray .req-table .is-id { background: var(--color-base); }

/* ★5の列（今後検討）：見出しも含めてグレー地・黒文字 */
.data-table thead th.is-star5,
.section--gray .data-table td.is-star5 {
  background: var(--color-gray1);
  color: var(--color-text);
}

.req-table__head {
  position: relative;
  font-weight: 700;
}

.req-table__head + .req-table__box,
.req-table__box + .req-table__head { margin-top: 12px; }

/* ★3→★4 の矢印（★4側の見出しに付けて列の境界にかける） */
.req-table__head--next::before {
  content: "";
  position: absolute;
  top: 0;
  left: -24px;
  width: 20px;
  height: 20px;
  background: var(--req-arrow);
  clip-path: polygon(0 30%, 55% 30%, 55% 0, 100% 50%, 55% 100%, 55% 70%, 0 70%);
}

.req-table__box {
  background: var(--color-base);
  border: 1px solid var(--color-line1);
  padding: 10px 12px;
}

.req-table__box .data-table__list { gap: 4px; }

.req-table__center {
  width: fit-content;
  margin-inline: auto;
}

/* ---- 流し込み用の汎用要素 ---- */

/* ■付き小見出し */
.sub {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h4 {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}

/* ★評価段階リスト */
.grade-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grade__label {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-main);
}

.grade__desc { margin-top: 4px; }

.note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-gray2);
}

.note p + p { margin-top: 4px; }

.ref {
  font-size: 13px;
  line-height: 1.7;
}

.ref a { color: var(--color-main); text-decoration: underline; }

/* 関連情報のリンクグループ */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-group .arrow-link { line-height: 1.6; }
.cta-group .arrow-link + .arrow-link { margin-top: -10px; }

.cta-group__title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-main);
}

.arrow-link--lg { font-size: 15px; }

/* セクションアンカー */
html { scroll-behavior: smooth; }
.section { scroll-margin-top: 98px; }

/* ==========================================================================
   POINT box
   ========================================================================== */
.point {
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--color-bg-blue);
  border: 1px solid var(--color-main);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.point__label {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: var(--point-size);
  line-height: 1;
  color: var(--color-main);
}

.point__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.point__list li {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-weight: 500;
  font-size: var(--body-size);
  line-height: var(--body-lh);
}

.point__list img {
  width: 15px;
  height: 21.5px;
  flex-shrink: 0;
}

/* ==========================================================================
   Side nav
   ========================================================================== */
.page-body { position: relative; }

/* コンテンツエリア右端に沿う追従レーン */
.sidenav-rail {
  position: absolute;
  top: 80px;
  bottom: 40px;
  right: max(5.555%, 50px, calc((100% - 1280px) / 2));
  width: 304px;
}

.sidenav-wrap {
  position: sticky;
  top: 82px;
  width: 304px;
}

.sidenav {
  width: 304px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--color-base);
  border: 1px solid var(--color-line2);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidenav::-webkit-scrollbar { display: none; }

.sidenav__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.sidenav__title {
  display: flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  gap: 6px;
  font-weight: 700;
  font-size: var(--side-title-size);
  line-height: 1.4;
  color: var(--color-main);
}

/* リンクになっている見出し */
a.sidenav__title:hover { text-decoration: underline; }

/* 見出しアイコン */
.sidenav__icon {
  display: flex;
  align-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  text-decoration: none;
}

.sidenav__icon img { display: block; max-width: none; }

.sidenav__icon--star img    { width: 26.5px; height: 25.3px; }
.sidenav__icon--webinar img { width: 31px;   height: 24px; }

.sidenav__icon--column { position: relative; }

.sidenav__icon--column img {
  position: absolute;
  top: 50%;
  left: 12.7px;
  width: 6.9px;
  height: 29px;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ミニインデックス */
.sidenav__index {
  font-size: 14px;
  line-height: 1.4;
}

.sidenav__index ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidenav__index li { white-space: nowrap; display: flex; align-items: center; gap: 4px; }

.sidenav__index a {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.sidenav__index a:hover { color: var(--color-main); }

.sidenav__index .no {
  width: 16px;
  font-family: var(--font-num-cond);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  flex-shrink: 0;
}

.sidenav__index .current a {
  font-weight: 700;
  color: var(--color-main);
}

.sidenav__index .current::before {
  content: "";
  width: 4px;
  height: 14px;
  background: var(--color-main);
  flex-shrink: 0;
}

/* 記事リスト */
.sidenav__articles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidenav__article { display: block; }

.sidenav__article p { transition: color 0.2s; }

.sidenav__article:hover p { color: var(--color-main); }

.sidenav__articles time {
  display: block;
  margin-bottom: 2px;
  font-weight: 500;
  font-size: var(--side-date-size);
  line-height: var(--side-item-lh);
  color: var(--color-gray2);
}

.sidenav__articles p {
  font-weight: 500;
  font-size: var(--side-item-size);
  line-height: 1.5;
}

/* 矢印リンク */
.arrow-link {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: var(--side-link-size);
  line-height: var(--side-link-lh);
  transition: color 0.2s;
}

.arrow-link::after {
  content: "";
  box-sizing: border-box;
  width: 0.5em;
  height: 0.5em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  text-decoration: none;
}

/* hover: テキスト青＋下線 */
.arrow-link:hover {
  color: var(--color-main);
  text-decoration: underline;
}

.arrow-link--blue { color: var(--color-main); }

.arrow-link--block {
  width: 100%;
  align-self: stretch;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  line-height: 1.4;
}

/* 区切り線 */
.sidenav__hr {
  border: none;
  border-top: 1px solid var(--color-line1);
  width: 100%;
  flex-shrink: 0;
}

.navcard {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid var(--color-line2);
  border-radius: 2px;
  background: var(--color-base);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.navcard:hover { box-shadow: 0 2px 8px rgba(63, 94, 216, 0.2); }

.navcard__visual {
  display: block;
  aspect-ratio: 264 / 80;
  overflow: hidden;
}

.navcard__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* サイドナビ内部スクロールのインジケーター */
.progress {
  position: absolute;
  top: 1px;
  right: 0;
  width: 4px;
  height: calc(100% - 2px);
  background: var(--color-line1);
  border-radius: 0 3px 3px 0;
  display: none; /* スクロール可能時のみJSで表示 */
}

.progress__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 80px;
  background: var(--color-main);
  border-radius: 0 3px 3px 0;
}

/* SP用トグル・SP用ロゴヘッダー */
.sidenav-toggle { display: none; }
.sidenav-sp-header { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .content-area { width: calc(100% - 32px); }

  .main-col, .cols5, .cols4, .cols2 { width: 100%; }

  .header__logo { display: flex; align-items: center; margin: 0 0 0 15px; } /* ロゴを上下中央に */
  .header__logo a { display: block; }
  .header__logo img { width: 150px; height: 29px; }
  .header__tel { display: none; }
  .header__contact { padding: 12px 10px; font-size: 12px; }
  body { padding-top: 60px; }

  /* SPはSP専用のMV画像（750×1200）を全幅・縦横比そのままで表示 */

  .container { padding-top: 80px; display: block; }

  .page-index { gap: 40px; }

  .section { padding: 60px 0; gap: 20px; }
  .section__content { gap: 30px; } /* ブロック間 */
  .block { gap: 10px; }

  .h2__badge { margin-top: 4px; }
  .h2__text { font-size: 32px; line-height: 1.4; }

  .h3__text { font-size: 21px; }

  .lead { font-size: 21px; }

  .indexbox { flex-direction: column; gap: 12px; padding: 20px 12px; }
  .indexbox__col:first-child { width: auto; }
  .indexbox__col li { white-space: normal; }
  .indexbox__col a { gap: 2px; }
  .indexbox__col .num { font-size: 15px; }
  .indexbox__col .txt { font-size: 15px; }

  .point { padding: 16px 12px; gap: 8px; }
  .point__list li { font-size: 15px; }

  /* 図版・表の上は40px空ける（SPのブロック内 gap 10px ＋ 30px） */
  .block > .fig,
  .block > .table-scroll,
  .block > .body-text + .sub:has(> .h4--bar),
  .block > .table-scroll + .sub:has(> .h4--bar) { margin-top: 30px; }
  .block > .table-scroll--follow { margin-top: 0; }
  .block > .table-scroll--follow + .table-scroll--follow { margin-top: 16px; }

  /* SPの図版：デザインどおりの幅で表示して横スクロール（文字が小さくなりすぎないように） */
  .fig {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-inline: -16px; /* コンテンツ幅の外（画面端）まで広げる。.content-area の左右16pxを打ち消す */
    width: auto; /* .cols5 の width:100% を打ち消して画面幅いっぱいにする */
  }

  /* 左右20pxは画像自体のpaddingで取る（スクロール末端でも右の余白が消えないように） */
  .fig img {
    box-sizing: content-box;
    width: var(--fig-px, 100%);
    max-width: none;
    padding-inline: 20px;
  }

  /* 全体を一度に見渡したい図（運用体制・他制度との関係）は全幅で表示し、タップで原寸の画像を開く */
  .fig--zoom { overflow: visible; }
  .fig--zoom img { box-sizing: border-box; width: 100%; max-width: 100%; }

  /* 横スクロールさせず画面幅に収める図（制度の目的・対象とする組織・再委託先） */
  .fig--fit { overflow: visible; }
  .fig--fit img { box-sizing: border-box; width: 100%; max-width: 100%; }

  .fig__zoom { position: relative; pointer-events: auto; cursor: zoom-in; }

  .fig__zoom-label {
    position: absolute;
    right: 0;
    bottom: -22px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--color-main);
    color: var(--color-base);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
  }

  .fig__zoom-label::before { content: "＋"; }

  .block > .otasuke,
  .block > .supporter,
  .block > .req-example { margin-top: 30px; }

  /* 要求事項・評価基準の例：箱を上に置き、点線は出さない */
  .req-example { grid-template-columns: 1fr; gap: 12px; }
  .req-example__doc { height: auto; padding: 10px; }
  .req-example__doc br { display: none; }
  .req-example__lines { display: none; }

  /* 導入促進策は横スクロール */
  .promo { min-width: 720px; width: 720px; }

  /* お助け隊：PCと同じ形のまま横スクロール */
  .otasuke__steps { width: 720px; }

  /* 支援者リスト：縦に積む */
  .supporter__cols { grid-template-columns: 1fr; }
  .supporter__panel { padding: 16px; }

  /* 表は幅を確保して横スクロールさせる */
  .data-table, .req-table { min-width: 640px; }
  .data-table--wide, .req-table { min-width: 720px; }
  .data-table--registry { min-width: 860px; }

  /* 表の横スクロール枠も画面端まで広げ、左右20pxの余白を取る
     （右端の余白は padding だとスクロール末端で消えるブラウザがあるので、flex の空要素で確保） */
  .table-scroll {
    display: flex;
    margin-inline: -16px;
    padding-left: 20px;
  }

  .table-scroll > * { flex-shrink: 0; }
  .table-scroll > .data-table,
  .table-scroll > .req-table { flex-shrink: 1; }

  .table-scroll::after {
    content: "";
    flex: 0 0 20px;
  }

  /* セキュリティ専門家の要件：縦に積み、接続線は出さない */
  .expert-req { flex-direction: column; gap: 12px; }
  .expert-req__plus { margin-inline: 0; }
  .expert-req__training { flex: none; }
  .expert-req__training .data-table { min-width: 0; }
  /* 研修の受講（下中央の丸）から下の小見出しまで、まっすぐ縦の線でつなぐ */
  .expert-req__training::after { bottom: -4px; }

  .expert-req__connector {
    height: 32px;
    margin-block: -10px; /* SPのブロック内 gap 10px を打ち消す */
  }

  .expert-req__connector::before { display: none; }

  .expert-req__connector::after {
    top: 0;
    bottom: 0;
    left: calc(50% - 1px);
  }

  /* ==========================================================================
   SPサイドナビ
   ========================================================================== */
  .sidenav-rail { position: static; width: auto; }

  .sidenav-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    z-index: 10001;
    display: flex;
    flex-direction: column;
  }

  /* スクロールでフェードイン（表示の切り替えは js/script.js） */
  .sidenav-wrap {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
  }

  .sidenav-wrap.is-shown,
  .sidenav-wrap.open {
    opacity: 1;
    visibility: visible;
  }

  /* 開いたら全画面 */
  .sidenav-wrap.open {
    top: 0;
    background: var(--color-base);
    animation: menu-slide-up 0.3s ease;
  }

  @keyframes menu-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  /* 閉/開 共通の青バー */
  .sidenav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background: var(--color-main);
    color: var(--color-base);
    font-family: var(--font-jp);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    order: 2;
  }

  .sidenav-wrap.open .sidenav-toggle {
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.29);
  }

  /* メニュー上部のロゴヘッダー */
  .sidenav-wrap.open .sidenav-sp-header {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 21px;
    flex-shrink: 0;
    order: 0;
  }

  .sidenav-sp-header img { width: 110px; height: 21px; }

  /* メニュー本体: 内部スクロール */
  .sidenav { display: none; }

  .sidenav-wrap.open .sidenav {
    display: flex;
    order: 1;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-height: none;
    overflow-y: auto;
    border: none;
    border-radius: 0;
    padding: 0 16px 48px;
    gap: 32px;
  }

  /* ---- SP用タイポグラフィ ---- */
  .sidenav-wrap.open .sidenav__section { gap: 16px; }
  .sidenav-wrap.open .sidenav__title {
    margin-bottom: 8px;
    font-size: 18px;
  }

  .sidenav-wrap.open .sidenav__index ul { gap: 16px; } /* タップしやすい行間 */

  .sidenav-wrap.open .sidenav__articles { gap: 16px; }

  .sidenav-wrap.open .sidenav__index,
  .sidenav-wrap.open .sidenav__index .no,
  .sidenav-wrap.open .sidenav__articles time,
  .sidenav-wrap.open .sidenav__articles p { font-size: 15px; }

  .sidenav-wrap.open .sidenav__index .no { width: 18px; }

  .sidenav-wrap.open .arrow-link { font-size: 15px; }

  .progress { display: none; }

  .sidenav-wrap.open .progress {
    top: 0;
    right: 0;
    bottom: 48px;
    height: auto;
    width: 5px;
  }

  .sidenav-wrap.open .progress__fill { width: 5px; }

  /* メニュー展開中は背景スクロールをロック */
  body.menu-open { overflow: hidden; }

  body { padding-bottom: 48px; }
}
