html { background: #fdfcf7; }
body {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  color: #222;
  background: #fdfcf7;
}
h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.4;
}
h1 { font-size: 1.4rem; border-bottom: 2px solid #8a7b5c; padding-bottom: 0.3rem; }
h2 { font-size: 1.15rem; border-bottom: 1px solid #ccc; padding-bottom: 0.2rem; }
h3 { font-size: 1rem; }
a { color: #1a5276; }
/* 全ページ共通のヘッダ. 左にサイト名, 右に対訳と調査ノートへのリンク */
header.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  padding: 0.9rem 0 0.6rem;
  border-bottom: 1px solid #d8d0bd;
}
header.site-header a { text-decoration: none; }
header.site-header a:hover { text-decoration: underline; }
a.site-title { font-weight: bold; font-size: 1.05rem; color: #222; }
nav.global-nav { display: flex; gap: 1.2rem; font-size: 0.95rem; }
/* 今いる区分のリンク */
nav.global-nav a.current { font-weight: bold; color: #222; }
nav.site-nav {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 0.9rem;
  background: #f4f1ea;
  padding: 0.5rem 0.8rem;
  margin: 1rem 0;
  border-radius: 4px;
}
nav.site-nav span.sep { color: #999; margin: 0 0.4rem; }
p.page-meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 0.85rem;
  color: #666;
}
p.page-meta span.sep { color: #bbb; margin: 0 0.4rem; }
/* コードブロックのパーリ文は 1 行が長いので, 横にはみ出さず折り返す */
pre {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
}
/* コードの記法で囲んだパーリ文も等幅にせず本文と同じフォントで描画する */
pre, code { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; font-size: 0.95em; }
ol, ul { padding-left: 1.6rem; }
li { margin: 0.2rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { border: 1px solid #ccc; padding: 0.3rem 0.6rem; text-align: left; }
th {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  background: #f4f1ea;
}
ul.page-list { list-style: none; padding-left: 0; }
/* 調査ノート一覧の作成日 */
ul.note-list li { margin: 0.4rem 0; }
ul.note-list span.note-date { color: #666; font-variant-numeric: tabular-nums; }
/* 用例集. 1 用例が 1 ブロックで, 出力書式の 1 行の下に折りたたみのメタ情報 */
div.yorei { margin: 1rem 0; padding-bottom: 0.6rem; border-bottom: 1px solid #e6e0d2; }
div.yorei p { margin: 0; }
div.yorei span.yorei-ref { font-weight: bold; }
div.yorei details { margin-top: 0.3rem; font-size: 0.85rem; color: #555; }
div.yorei summary { cursor: pointer; color: #777; }
div.yorei dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.1rem 0.8rem; margin: 0.3rem 0 0 1rem; }
div.yorei dt { color: #777; }
div.yorei dd { margin: 0; }
