/* =========================
   基本レイアウト
========================= */
body {
  margin: 0 auto;
  max-width: 820px;
  padding: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
  background: #fafafa;
}

/* スマホ */
@media screen and (max-width: 768px) {
  body {
    padding: 12px;
    font-size: 15px;
  }
}

/* =========================
   段落・見出し
========================= */
p {
  margin: 0.9em 0 1.3em;
}

h1, h2, h3 {
  font-weight: 600;
  color: #1f2a44;
  line-height: 1.4;
}

h2 {
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #ddd;
}

h3 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

/* =========================
   リンク
========================= */
a {
  color: #005bbb;
  text-decoration: none;
}

a:hover {
  color: #003f80;
  text-decoration: underline;
}

/* =========================
   画像・iframe（はみ出し防止）
========================= */
img, iframe {
  max-width: 100%;
  height: auto;
}

/* =========================
   表（壊さないスマホ対応）
========================= */
table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 0.95rem;

  /* スマホで横スクロール */
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

th, td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  vertical-align: top;
}

th {
  background: #f0f0f0;
  font-weight: 600;
  text-align: left;
}

/* 行の視認性を少し上げる（控えめ） */
tr:nth-child(even) {
  background: #fafafa;
}

/* =========================
   その他（古さ対策）
========================= */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

pre, code {
  background: #f4f4f4;
  padding: 4px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
