/* ことのは 資料ページ 共有スタイル
   LP(index.html)のデザイントークンを引き継ぐ。資料なので情報密度を優先し、
   色帯とあしらいは最小限にする。 */

:root {
  --white: #ffffff;
  --cream: #fff8ec;
  --mint: #edf6f0;
  --ink: #423e38;
  --ink-soft: #6b6459;
  --green: #2f9e63;
  --green-deep: #1d7a48;
  --green-pale: #e2f2e9;
  --orange: #f2a44c;
  --marker: #ffd98e;
  --dot: #c9c2b4;
  --line: #e6e0d4;
  --radius: 14px;
  --font-maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-sans:
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP",
    sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 5vw;
}

a {
  color: var(--green-deep);
}
a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- ヘッダー / フッター ---- */
.site-head {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: var(--cream);
}
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
}
.site-head .brand {
  font-family: var(--font-maru);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.site-head nav {
  font-size: 13px;
}
.site-head nav a {
  margin-right: 14px;
}

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 32px 0 56px;
  font-size: 13px;
  color: var(--ink-soft);
}
.site-foot p {
  margin-bottom: 6px;
}

/* ---- 本文 ---- */
main {
  padding: 40px 0 0;
}

h1 {
  font-family: var(--font-maru);
  font-size: 26px;
  line-height: 1.5;
  margin-bottom: 14px;
}
@media (min-width: 769px) {
  h1 {
    font-size: 31px;
  }
}

h2 {
  font-family: var(--font-maru);
  font-size: 20px;
  line-height: 1.6;
  margin: 48px 0 14px;
  padding-left: 12px;
  border-left: 5px solid var(--green);
}

h3 {
  font-family: var(--font-maru);
  font-size: 16px;
  margin: 28px 0 10px;
}

p {
  margin-bottom: 16px;
}

.lead {
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.meta {
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px dotted var(--dot);
  padding-bottom: 18px;
  margin-bottom: 8px;
}
.meta span {
  margin-right: 16px;
  white-space: nowrap;
}

ul,
ol {
  margin: 0 0 16px 1.4em;
}
li {
  margin-bottom: 6px;
}

/* ---- 表 ---- */
.table-scroll {
  overflow-x: auto;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 14px;
  line-height: 1.6;
}
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-maru);
  font-size: 14px;
  padding: 14px 14px 10px;
  color: var(--ink);
}
th,
td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
thead th {
  background: var(--mint);
  font-weight: 700;
  position: sticky;
  top: 0;
}
tbody th,
th[scope="row"] {
  text-align: left;
  font-weight: 500;
}
tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: none;
}
tbody tr.hl {
  background: var(--cream);
}
tbody tr.hl th,
tbody tr.hl td {
  font-weight: 700;
}
td.n,
th.n {
  color: var(--ink-soft);
  font-size: 13px;
}

.table-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.table-note a {
  color: var(--green-deep);
}

/* ---- 注意ボックス ---- */
.caution {
  background: var(--cream);
  border: 1px solid var(--marker);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0 32px;
  font-size: 15px;
}
.caution h3 {
  margin-top: 0;
  color: var(--green-deep);
}
.caution :last-child {
  margin-bottom: 0;
}

/* ---- 出典 ---- */
.sources {
  font-size: 14px;
}
.sources li {
  margin-bottom: 12px;
}

/* ---- 関連リンク ---- */
.related {
  background: var(--mint);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 36px 0 0;
  font-size: 15px;
}
.related h2 {
  margin: 0 0 10px;
  padding: 0;
  border: none;
  font-size: 16px;
}
.related :last-child {
  margin-bottom: 0;
}

/* ---- 一覧カード ---- */
.cards {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.cards li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.cards a {
  font-family: var(--font-maru);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.cards a:hover {
  text-decoration: underline;
}
.cards p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}
