:root { --ink:#4a4a40; --muted:#857f72; --accent:#6f9400; --accent2:#e8892a; --soft:#f5f9e6; --line:#e4ecc8; --bg:#fffdf6; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:"Hiragino Maru Gothic ProN","Yu Gothic","Meiryo",sans-serif;
       font-size:16px; line-height:1.9; overflow-wrap:anywhere; word-break:normal; }
a { color:var(--accent); }
header.site { max-width:1080px; margin:12px auto 0; min-height:275px; border-radius:14px; background-color:#9cc23a;
               background-repeat:no-repeat; background-size:cover; background-position:right center; display:flex; align-items:center; }
header.site .banner { margin-left:3%; max-width:62%; padding:24px 20px; color:#fff; text-shadow:0 1px 3px rgba(60,70,0,.55); }
header.site .brand { margin:0 0 .6em; font-size:1.25rem; line-height:1.5; }
header.site .brand a { color:#fff; text-decoration:none; }
header.site .desc { margin:0; font-size:.85rem; font-weight:700; line-height:1.7; }
.wrap { max-width:1080px; margin:0 auto; padding:20px 16px; display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:32px; }
main { min-width:0; }
.post { background:#fff; border:1px solid var(--line); border-radius:12px; padding:24px; }
.post h1 { font-size:1.45rem; line-height:1.5; margin:.2em 0 .4em; }
.post time, .card time { color:var(--muted); font-size:.85rem; }
.post .meta a { display:inline-block; background:var(--soft); border-radius:99px; padding:0 10px; font-size:.8rem; text-decoration:none; margin-right:6px; }
.post .body { margin-top:16px; }
.post .body img { max-width:100%; height:auto; display:inline-block; border-radius:6px; }
.post .body img[src*="images_g"] { width:1.2em; height:1.2em; vertical-align:-.2em; border-radius:0; }
.post .body p, .post .body div { margin:0 0 .3em; }
.post .body table { display:block; max-width:100%; overflow-x:auto; }
.post .body iframe, .post .body video { max-width:100%; }
.post .tags span { color:var(--muted); font-size:.8rem; margin-right:8px; }
.comments { margin-top:20px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px 24px; }
.comments h2 { font-size:1.05rem; }
.comment { border-top:1px dashed var(--line); padding:10px 0; }
.comment .who { margin:0; font-weight:700; }
.comment .who time { margin-left:10px; font-weight:400; }
.pn { display:flex; justify-content:space-between; gap:12px; margin:20px 0; font-size:.9rem; }
.pn a { max-width:48%; }
h1.list { font-size:1.3rem; }
.intro { color:var(--muted); }
.cards { display:grid; gap:14px; }
.card { display:grid; grid-template-columns:120px minmax(0,1fr); gap:14px; background:#fff; border:1px solid var(--line); border-radius:12px;
        padding:12px; color:var(--ink); text-decoration:none; }
.card img { width:120px; height:90px; object-fit:cover; border-radius:8px; }
.card h3 { margin:.1em 0; font-size:1.05rem; color:var(--accent); line-height:1.5; }
.post time, .card time { color:var(--accent2); }
.card p { margin:0; font-size:.88rem; color:var(--muted); line-height:1.6; }
.side section { background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 16px; margin-bottom:16px; }
.side h2 { font-size:1rem; margin:.2em 0 .4em; }
.side ul { list-style:none; margin:0; padding:0; font-size:.9rem; }
.cats li a { display:flex; justify-content:space-between; padding:3px 0; text-decoration:none; }
.cats li span { color:var(--muted); }
.months li { margin:4px 0; }
.months a { margin-right:6px; }
footer.site { text-align:center; color:var(--muted); font-size:.8rem; padding:24px 16px 40px; }
footer .note { font-size:.75rem; }
.side .illust { margin:0 0 10px; text-align:center; }
.side .illust img, .side section img { max-width:100%; height:auto; border-radius:10px; display:block; margin:0 auto; }
.side .sidelink { text-align:center; margin:.4em 0; font-size:1.05rem; font-weight:700; }
.side .sidelink + section, .side .sidelink:last-of-type { margin-bottom:16px; }
.side h2 { color:var(--accent2); }
.prof { margin:0; font-size:.88rem; }
.prof dt { color:var(--muted); font-size:.8rem; margin-top:6px; }
.prof dd { margin:0; }
.recent li { padding:3px 0; border-bottom:1px dotted var(--line); }
.recent time { color:var(--muted); font-size:.8rem; margin-right:6px; }
.tagcloud { margin:0; font-size:.85rem; line-height:2; }
.tagcloud span { display:inline-block; background:var(--soft); border-radius:99px; padding:0 10px; margin:0 4px 4px 0; }
.months small, .tagcloud small { color:var(--muted); font-size:.75em; }
@media (max-width: 800px) {
  header.site { margin:0; border-radius:0; min-height:0; background-position:78% center; }
  header.site .banner { margin-left:0; max-width:none; padding:28px 16px; background:linear-gradient(90deg,rgba(20,40,10,.55),rgba(20,40,10,.15)); width:100%; }
  header.site .brand { font-size:1.1rem; }
  .wrap { grid-template-columns:minmax(0,1fr); }
  .post { padding:16px; }
  .card { grid-template-columns:88px minmax(0,1fr); }
  .card img { width:88px; height:70px; }
}
.card .noimg { width:120px; height:90px; display:flex; align-items:center; justify-content:center; background:var(--soft); color:var(--accent); border-radius:8px; font-size:1.6rem; }
@media (max-width: 800px) { .card .noimg { width:88px; height:70px; } }
