:root {
  --ink: #1f2933;
  --sub: #5b6770;
  --line: #e3e7ea;
  --blue: #1d5fa8;
  --paper: #ffffff;
  --soft: #f4f7fa;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-size: 17px;
  line-height: 1.9;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }

.draft-bar { background: #fff3cd; color: #6b4e00; text-align: center; font-size: 14px; padding: 6px 10px; }

.site-header { border-bottom: 1px solid var(--line); padding: 28px 0 14px; }
.site-name { font-size: 26px; font-weight: 700; color: var(--ink); text-decoration: none; }
.site-tagline { margin: 2px 0 12px; color: var(--sub); font-size: 14px; }
.site-nav a { margin-right: 18px; font-size: 15px; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

main.wrap { padding-top: 28px; padding-bottom: 56px; }
.intro p { margin: 0 0 8px; }

.shelf { margin-top: 36px; }
.shelf h1, .shelf h2 { font-size: 21px; margin: 0 0 4px; padding-left: 12px; border-left: 5px solid var(--blue); line-height: 1.5; }
.shelf h2 a { color: var(--ink); text-decoration: none; }
.shelf-lead { margin: 0 0 12px; color: var(--sub); font-size: 15px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-list .empty { color: var(--sub); }
.post-title { font-size: 18px; font-weight: 700; text-decoration: none; line-height: 1.6; }
.post-title:hover { text-decoration: underline; }
.post-date { display: block; color: var(--sub); font-size: 13px; }
.post-desc { margin: 4px 0 0; font-size: 15px; color: var(--sub); line-height: 1.7; }

.post-meta { margin: 0; color: var(--sub); font-size: 14px; }
.post-meta a { text-decoration: none; }
.draft-mark { background: #fff3cd; color: #6b4e00; padding: 1px 8px; border-radius: 3px; }
.post h1 { font-size: 27px; line-height: 1.5; margin: 6px 0 26px; }
.post-body h2 { font-size: 21px; line-height: 1.5; margin: 44px 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.post-body h3 { font-size: 18px; margin: 30px 0 10px; }
.post-body p { margin: 0 0 20px; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 20px; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote { margin: 0 0 20px; padding: 10px 16px; background: var(--soft); border-left: 4px solid var(--line); color: var(--sub); }
.post-body table { border-collapse: collapse; width: 100%; margin: 0 0 22px; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.post-body th { background: var(--soft); }
.post-body code { background: var(--soft); padding: 1px 5px; border-radius: 3px; font-size: 0.92em; }
.post-body pre { background: var(--soft); padding: 14px; overflow-x: auto; border-radius: 4px; line-height: 1.6; }
.post-body pre code { padding: 0; background: none; }
.post-body .video { position: relative; padding-top: 56.25%; margin: 0 0 22px; }
.post-body .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cta { margin: 44px 0 0; padding: 18px 20px; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; }
.cta p { margin: 0 0 8px; }
.cta-title { font-weight: 700; }
.cta-link { font-weight: 700; }
.post-foot { margin-top: 34px; color: var(--sub); font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); padding: 22px 0 36px; color: var(--sub); font-size: 13px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { margin-right: 10px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .post h1 { font-size: 23px; }
  .site-name { font-size: 22px; }
}
