/* 09 国家資格者だからできること —— このページ専用の差分 */

/* ===== 制度上の区分の比較表 =====
   マークアップは「項目名の列」＋「業態ごとの列」×3。
   PCでは display:contents ＋ grid-auto-flow:column で1枚の比較表に組み、
   SPでは業態ごとに1枚のカードとして縦に積む。項目名は各セルにも持たせ、
   PCでは .compare-table__label を display:none で伏せる。 */
.compare-table {
  display: grid;
  grid-template-columns: minmax(0, 260px) repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  background: var(--surface);
  border: 1px solid var(--border);
}
.compare-table__terms,
.compare-table__col { display: contents; }

/* 見出し行の左上（空のセル） */
.compare-table__caption {
  min-width: 0;
  padding: 22px 28px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
/* 見出し行の業態名 */
.compare-table__cat {
  min-width: 0;
  padding: 22px 28px;
  font-size: 19px;
  background: var(--surface-alt);
  border-left: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border);
}
/* 項目名の列 */
.compare-table__term {
  min-width: 0;
  padding: 24px 28px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--text-muted);
  background: var(--surface-tint);
  border-bottom: 1px solid var(--border-light);
}
/* データセル */
.compare-table__cell {
  min-width: 0;
  padding: 24px 28px;
  font-size: 14px;
  line-height: 2;
  color: var(--text-strong);
  border-left: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
/* 項目名はPCでは左の列にあるので、セル内のものは伏せる */
.compare-table__label { display: none; }

.compare-table__terms > :last-child,
.compare-table__col > :last-child { border-bottom: none; }

/* 国家資格を持たない業態の列は一段落として見せる */
.compare-table__col--muted .compare-table__cat,
.compare-table__col--muted .compare-table__value { color: var(--text-muted); }

/* ===== 注記の帯 ===== */
.notice-section { padding-block: 56px 72px; }
/* アートボードの注記枠は淡色地・13px */
.note-box { background: var(--surface-alt); }
.note-box__text { font-size: 13px; }

/* ===================== タブレット ===================== */
@media (max-width: 1024px) {
  /* 中間幅では項目名の列を詰め、セルの余白と文字も一段小さくする。
     アートボードに無い幅なので、文字が潰れないようここで面倒を見る。 */
  .compare-table { grid-template-columns: minmax(0, 180px) repeat(3, minmax(0, 1fr)); }
  .compare-table__caption { padding: 16px 18px; }
  .compare-table__cat { padding: 16px 18px; font-size: 17px; }
  .compare-table__term { padding: 18px; font-size: 12.5px; line-height: 1.9; }
  .compare-table__cell { padding: 18px; font-size: 12.5px; line-height: 1.9; }

  .notice-section { padding-block: 44px 56px; }
}

/* ===================== スマホ ===================== */
@media (max-width: 767px) {
  /* アートボードの余白は 32px 20px */
  .section { padding-block: 32px; }

  /* 比較表 → 業態ごとの縦積みカード */
  .compare-table {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: none;
    border: none;
  }
  .compare-table__terms { display: none; }
  .compare-table__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
  }
  .compare-table__cat {
    padding: 16px 18px;
    font-size: 17px;
    border-left: none;
    border-bottom: 1px solid var(--border);
  }
  .compare-table__cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 18px;
    font-size: 12.5px;
    line-height: 1.8;
    border-left: none;
    border-bottom: 1px solid var(--border-light);
  }
  .compare-table__col > :last-child { border-bottom: none; }
  .compare-table__label {
    display: block;
    font-size: 11.5px;
    line-height: 1.7;
    color: var(--text-muted);
  }
  .compare-table__value { font-size: 12.5px; line-height: 1.8; }

  .notice-section { padding-block: 28px; }
  .note-box__text { font-size: 12px; line-height: 2; }
}
