/* 第4回だけに適用。Word原稿の本文10.5pt・引用元8ptを保つ。
 * 表の背景はアプリコット #ffdfb8 と既存ブログの白 #fffdfa の2色まで。
 * 過去記事と同じ濃い文字・オレンジのアクセント・中立の罫線を使う。 */
article .nisa-education-layout .nisa-topic + .nisa-topic {
  margin-top: 6rem;
}
article .nisa-education-layout .nisa-topic > h2 {
  margin: 0 0 2.2rem;
  padding: .3rem 0 .45rem 1.1rem;
  border-left: 5px solid var(--color-accent);
  background: transparent;
  color: var(--color-text);
  font-size: clamp(1.45rem, 3.6vw, 1.85rem);
  line-height: 1.65;
  font-weight: 700;
}
article .nisa-education-layout .nisa-opening > h2 {
  margin-top: 1.8rem;
}
article .nisa-education-layout h3 {
  margin: 4rem 0 1.7rem;
  color: var(--color-text);
}
article .nisa-education-layout p {
  margin: 0 0 2rem;
  line-height: 2.3;
}
article .nisa-education-layout p.word-gap {
  margin-top: 3rem;
}
article .nisa-education-layout .nisa-series-number {
  display: inline-block;
  margin: 0;
  padding: .35rem 1rem;
  border-radius: 999px;
  background: #ffdfb8;
  color: var(--color-text);
  font-weight: 700;
}
article .nisa-education-layout .nisa-takeaway,
article .nisa-education-layout .nisa-planning-questions {
  margin: 3rem 0;
  padding: 1.6rem 1.8rem;
  border-radius: 14px;
  border-left: 4px solid var(--color-accent);
  background: #ffdfb8;
  color: var(--color-text);
}
article .nisa-education-layout .nisa-takeaway strong {
  font-weight: 800;
  color: var(--color-text);
}
article .nisa-education-layout .nisa-planning-questions p {
  margin: 0;
  line-height: 2.6;
}
article .nisa-education-layout .nisa-life-list {
  margin: 1.8rem 0 3rem;
  padding: 1.1rem 1.5rem;
  background: #ffdfb8;
  border-radius: 14px;
}
article .nisa-education-layout .nisa-life-list p {
  margin: 0 0 .5rem;
}
article .nisa-education-layout .nisa-life-list p:last-child {
  margin-bottom: 0;
}
article .nisa-education-layout .nisa-notes {
  margin: 1.4rem 0 3rem;
  padding: 1.15rem 1.4rem;
  border-left: 2px solid var(--color-border);
  border-radius: 0 10px 10px 0;
  background: #fffdfa;
  color: var(--color-muted);
}
article .nisa-education-layout .nisa-notes .word-small {
  font-size: 8pt !important;
  margin: 0 0 .9rem;
  line-height: 1.95;
}
article .nisa-education-layout .nisa-notes p:last-child {
  margin-bottom: 0;
}
article .nisa-education-layout .official-source-link a {
  color: #80501f;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
article .nisa-education-layout .official-source-link a:hover {
  color: #5c3814;
}
article .nisa-education-layout .table-scroll {
  margin: 2rem 0 1.7rem;
  border-radius: 14px;
}
article .nisa-education-layout .article-table {
  width: 100%;
  border-collapse: collapse;
  background: #fffdfa;
}
article .nisa-education-layout .article-table :is(th, td) {
  padding: 1.25rem 1.5rem;
  line-height: 1.85;
  border: 1px solid var(--color-border);
  vertical-align: middle;
  white-space: normal;
}
article .nisa-education-layout .article-table thead th {
  color: var(--color-text);
  background: #ffdfb8;
  font-weight: 700;
}
article .nisa-education-layout .article-table tbody th {
  color: var(--color-text);
  background: #ffdfb8;
  text-align: left;
  font-weight: 700;
}
article .nisa-education-layout .article-table td {
  background: #fffdfa;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
article .nisa-education-layout .article-table td.nisa-total {
  background: #fffdfa;
  color: var(--color-text);
  font-weight: 800;
}
article .nisa-education-layout .nisa-summary > p:not(.word-small) {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--color-border);
}
/* スマホは学校ごとにまとめ、項目名と金額を同じ行に置く。 */
@media (max-width: 600px) {
  article .nisa-education-layout .nisa-topic + .nisa-topic {
    margin-top: 4.5rem;
  }
  article .nisa-education-layout p {
    margin-bottom: 1.8rem;
  }
  article .nisa-education-layout .nisa-topic > h2 {
    padding-left: .85rem;
    margin-bottom: 1.8rem;
  }
  article .nisa-education-layout p.word-gap {
    margin-top: 2.5rem;
  }
  article .nisa-education-layout .nisa-takeaway,
  article .nisa-education-layout .nisa-planning-questions {
    padding: 1.2rem 1rem;
  }
  article .nisa-education-layout .nisa-notes {
    padding: 1rem;
  }
  article .nisa-education-layout .table-scroll {
    overflow: visible;
  }
  article .nisa-education-layout .article-table {
    display: block;
    min-width: 0;
    background: transparent;
  }
  article .nisa-education-layout .article-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  article .nisa-education-layout .article-table tbody {
    display: grid;
    gap: 1.25rem;
  }
  article .nisa-education-layout .article-table tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #fffdfa;
  }
  article .nisa-education-layout .article-table tbody th {
    display: block;
    padding: .95rem 1rem;
    border: 0;
  }
  article .nisa-education-layout .article-table tbody td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: .95rem 1rem;
    border: 0;
    border-top: 1px solid var(--color-border);
  }
  article .nisa-education-layout .article-table tbody td::before {
    content: attr(data-label);
    font-size: 8pt;
    font-weight: 400;
    color: var(--color-muted);
    white-space: normal;
    text-align: left;
  }
}
