:root {
  --bg: #f4f5f7; --card: #fff; --text: #333; --muted: #777; --line: #e3e3e3;
  --accent: #4f8a3a; --link: #1967d2;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; line-height: 1.8; }
a { color: var(--link); }
img, video, object { max-width: 100%; height: auto; }
.site-header { background: #fff; text-align: center; padding: 16px 16px 8px; }
.site-header img { max-width: 494px; width: 100%; height: auto; }
.tagline { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.wrap { max-width: 1200px; margin: 24px auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
main > article, aside section { background: var(--card); border-radius: 4px; padding: 24px; }
aside section { margin-bottom: 24px; }
aside h3 { text-align: center; font-size: 16px; margin: 0 0 12px; }
aside ul { padding-left: 1.2em; margin: 0; }
.search input { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 16px; }
.cards { display: grid; gap: 16px; }
.card { display: grid; grid-template-columns: 240px 1fr; gap: 16px; background: var(--card); border-radius: 4px; padding: 16px; color: inherit; text-decoration: none; }
.card:hover { opacity: .85; }
.thumb { position: relative; }
.thumb img, .noimg { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #eee; display: block; }
.thumb .cat { position: absolute; top: 4px; left: 4px; }
.cat { background: var(--accent); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 3px; text-decoration: none; margin-right: 6px; }
.card h2 { font-size: 18px; margin: 0 0 4px; line-height: 1.5; }
.card p { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.card time, .meta time { font-size: 12px; color: var(--muted); }
.list-title { font-size: 20px; margin: 0 0 16px; }
article h1 { font-size: 24px; text-align: center; line-height: 1.5; }
.eyecatch { display: block; margin: 0 auto 24px; }
.entry pre { white-space: pre-wrap; font-family: inherit; background: #f7f7f7; padding: 12px 16px; border-radius: 4px; }
.entry .bold { font-weight: bold; }
.entry .bold-blue { font-weight: bold; color: #1a52a5; }
.entry .bold-red { font-weight: bold; color: #c0322f; }
.pdf object { width: 100%; height: 80vh; border: 1px solid var(--line); margin-top: 8px; }
.pdf-open { display: inline-block; background: var(--accent); color: #fff; padding: 8px 20px; border-radius: 4px; text-decoration: none; }
.notice { background: #fff6e0; padding: 12px 16px; border-radius: 4px; }
.pager { display: flex; justify-content: center; gap: 16px; margin: 24px 0; align-items: center; }
.pager a { background: var(--card); padding: 6px 16px; border-radius: 4px; text-decoration: none; }
.prevnext { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 14px; }
.all-posts { list-style: none; padding: 0; }
.all-posts li { border-bottom: 1px solid var(--line); padding: 6px 0; }
.all-posts time { color: var(--muted); font-size: 13px; margin-right: 8px; }
footer { text-align: center; font-size: 13px; color: var(--muted); padding: 24px 16px; background: #fff; }
@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; }
  main > article, aside section { padding: 16px; }
  article h1 { font-size: 20px; }
  .pdf object { display: none; }
}
.entry .marker { background: linear-gradient(transparent 60%, #ffe96a 60%); }
.entry .marker-under-blue { background: linear-gradient(transparent 60%, #c5e2ff 60%); }
.entry .marker-blue { background: #c5e2ff; }
.entry .scrollable-table { overflow-x: auto; }
