/* ==================================================
   ITパスポートと基本情報技術者試験の独学と通信講座：比較表
================================================== */

.wp-block-table td.cell-ok {
  background: #eef9f1 !important;
}

.wp-block-table td.cell-mid {
  background: #fff8dc !important;
}

.wp-block-table td.cell-ng {
  background: #fff0f0 !important;
}

.wp-block-table .judge {
  display: inline-block !important;
  margin-bottom: 0.25em !important;
  font-size: 1.35em !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.wp-block-table .cell-ok .judge {
  color: #1f7a3a !important;
}

.wp-block-table .cell-mid .judge {
  color: #9a6a00 !important;
}

.wp-block-table .cell-ng .judge {
  color: #c62828 !important;
}

/* ==================================================
   IT用語一覧：一覧カード
================================================== */

.it-word-list {
  list-style: none;
  padding-left: 0;
  margin: 1.2em 0;
}

.it-word-list li {
  padding: 1em 1.1em;
  margin-bottom: 0.8em;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #ffffff;
}

.it-word-list li a {
  color: #4472c4;
  text-decoration: none;
  font-weight: 700;
}

.it-word-list li a:hover {
  text-decoration: underline;
}

.it-word-list li p {
  margin: 0.35em 0 0;
  line-height: 1.7;
  color: #555555;
}

/* ==================================================
   IT用語一覧：親子関係
================================================== */

.it-hierarchy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 1.5em 0;
}

.it-level1 {
  border: 1px solid #dcdfe6;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.it-level1 > summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 1.08em;
  background: #f2f6fb;
  list-style: none;
  color: #222222;
}

.it-level2 {
  margin: 10px 14px;
  border-left: 3px solid #d9e6f2;
  background: #fafafa;
}

.it-level2 > summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
  list-style: none;
  color: #222222;
}

.it-level1 > summary::-webkit-details-marker,
.it-level2 > summary::-webkit-details-marker {
  display: none;
}

.it-level1 > summary::before {
  content: "■ ";
  color: #4472c4;
}

.it-level2 > summary::before {
  content: "└ ";
  color: #666666;
}

.it-level2 li a {
  color: #4472c4;
  text-decoration: none;
}

.it-level2 li a:hover {
  text-decoration: underline;
}

.it-level2 ul {
  margin: 0;
  padding: 0 14px 12px 34px;
}

.it-level2 li {
  margin: 0.35em 0;
  line-height: 1.6;
}

@media screen and (min-width: 960px) {
  .it-hierarchy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .it-hierarchy {
    gap: 12px;
  }

  .it-level1 > summary {
    font-size: 1em;
    padding: 13px 14px;
  }

  .it-level2 {
    margin: 8px 10px;
  }

  .it-level2 > summary {
    padding: 9px 10px;
  }

  .it-level2 ul {
    padding-left: 28px;
  }

  .it-word-list li {
    padding: 0.9em 1em;
  }
}

/* ==================================================
   IT用語一覧：五十音アンカー位置調整
================================================== */

.gojuon-heading {
  scroll-margin-top: 96px !important;
}

@media screen and (max-width: 599px) {
  .gojuon-heading {
    scroll-margin-top: 130px !important;
  }
}