
:root { --paper:#FEFCF8; --ink:#2b2b2b; --sub:#767066; --accent:#D9604A; --accent-soft:#FBEAE5;
        --line:#e7e2d6; --line2:#d8d2c2; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink);
  font-family:"Hiragino Sans","Yu Gothic",Meiryo,sans-serif; font-size:15.5px; line-height:1.95; -webkit-text-size-adjust:100%; }
a { color:var(--accent); }
img { max-width:100%; }

header.site { background:#fff; border-bottom:1px solid var(--line); }
.hwrap { max-width:1020px; margin:0 auto; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.brand { display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--ink); }
.brand img { width:34px; height:34px; border-radius:50%; border:1px solid var(--line); background:var(--ink); }
.brand .bname { font-size:16.5px; font-weight:800; letter-spacing:.01em; }
nav.g { display:flex; gap:16px; font-size:12.5px; font-weight:700; }
nav.g a { color:var(--sub); text-decoration:none; }
nav.g a:hover { color:var(--accent); }

.layout { max-width:1020px; margin:0 auto; padding:26px 20px 80px; display:grid; grid-template-columns:1fr; gap:30px; }
@media (min-width:1000px) { .layout { grid-template-columns:minmax(0,1fr) 280px; align-items:start; } }
main { min-width:0; }

.card3 { background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 1px 3px rgba(0,0,0,.04); }

.hero { padding:22px 24px; margin-bottom:24px; }
.hero .ht { font-size:19.5px; font-weight:800; line-height:1.65; margin-bottom:8px; }
.hero p { font-size:13.5px; margin:0 0 15px; color:#4a4540; }
.btn-red { display:inline-block; background:var(--accent); color:#fff; text-decoration:none; font-weight:700; font-size:14px;
  border:none; border-radius:8px; padding:10px 22px; box-shadow:0 1px 2px rgba(0,0,0,.08); }
.btn-red:hover, .btn-red:active { opacity:.88; }

.cards { display:flex; flex-direction:column; gap:14px; }
.post-card { display:flex; gap:13px; padding:15px; text-decoration:none; color:var(--ink); align-items:flex-start; }
.post-card:hover .ptitle { color:var(--accent); text-decoration:underline; }
.pthumb { width:56px; height:56px; border-radius:10px; border:1px solid var(--line); background:var(--accent-soft); display:flex; align-items:center; justify-content:center; font-size:24px; flex-shrink:0; }
.cat { display:inline-block; background:var(--accent-soft); color:var(--accent); font-size:10.5px; font-weight:800; border-radius:4px; padding:1px 8px; margin:0 4px 4px 0; }
.ptitle { font-size:14.5px; font-weight:800; line-height:1.65; }
.pex { font-size:12px; color:var(--sub); margin-top:4px; }

aside .pc { padding:20px; text-align:center; }
aside .pc img.face { width:72px; height:72px; border-radius:50%; border:1px solid var(--line); background:var(--ink); object-fit:cover; }
aside .pc .name { font-size:16.5px; font-weight:800; margin-top:8px; }
aside .badges { display:flex; justify-content:center; gap:6px; margin:8px 0 10px; flex-wrap:wrap; }
aside .badges span { border:1px solid var(--line); border-radius:999px; font-size:10.5px; font-weight:700; padding:2px 9px; color:var(--sub); }
aside .bio { font-size:12.5px; margin:0 0 14px; text-align:left; color:#4a4540; }
aside .aside-t { font-size:12.5px; font-weight:800; margin:24px 0 10px; border-left:3px solid var(--accent); padding-left:8px; color:var(--sub); }
aside .mini { display:block; text-decoration:none; color:var(--ink); font-size:12.5px; font-weight:700; line-height:1.6;
  padding:10px 12px; margin-bottom:8px; }
aside .mini:hover { color:var(--accent); }
aside .mini.all { text-align:center; color:var(--sub); }
aside .catlist { padding:4px 14px; }
aside .catlist a { display:block; text-decoration:none; color:var(--ink); font-size:13px; font-weight:700;
  padding:8px 2px; border-bottom:1px dashed var(--line); }
aside .catlist a:last-child { border-bottom:none; }
aside .catlist a span { color:var(--sub); font-weight:400; font-size:11.5px; }
aside .catlist a:hover { color:var(--accent); }
.pagehead { font-size:19px; font-weight:800; margin:4px 0 18px; border-left:4px solid var(--accent); padding-left:10px; }
@media (min-width:1000px) { aside .sticky { position:sticky; top:20px; } }

article.post { padding:26px 26px 30px; }
article.post h1.title { font-size:21px; line-height:1.75; margin:4px 0 8px; }
.postmeta { color:var(--sub); font-size:12px; margin-bottom:18px; }
.toc { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 22px 14px 20px; font-size:13.5px; margin-bottom:26px; }
.toc .tt { font-weight:800; margin-bottom:4px; }
.toc ol { margin:4px 0 0; padding-left:22px; } .toc li { margin:6px 0; }
.toc li::marker { color:var(--accent); font-weight:800; }
.toc a { text-decoration:none; color:var(--ink); } .toc a:hover { color:var(--accent); }

.body h2 { font-size:18px; font-weight:800; border-left:4px solid var(--accent); padding:2px 0 2px 12px;
  line-height:1.6; margin:2.5em 0 1em; color:var(--ink); }
.body h3 { font-size:15.5px; font-weight:800; border-bottom:1px solid var(--line); padding-bottom:6px; margin:2em 0 .9em; }
.body strong { background:linear-gradient(transparent 62%, var(--accent-soft) 62%); font-weight:800; }
.body blockquote { border-left:3px solid var(--accent); background:var(--accent-soft); border-radius:0 8px 8px 0; padding:9px 16px; margin:1.2em 0; }
.body blockquote p { margin:.2em 0; }
.body img { border:1px solid var(--line); border-radius:8px; }
.body hr { border:none; border-top:1px solid var(--line); margin:2.4em 0; }
.body ul, .body ol { padding-left:1.5em; }

/* 表(md)→カードリスト変換。スマホで横スクロールしない */
.tcards { display:flex; flex-direction:column; gap:10px; margin:1.3em 0; }
.tcard { border:1px solid var(--line); border-radius:10px; padding:13px 16px; background:#fff; }
.tcard-title { font-weight:800; font-size:14.5px; margin-bottom:6px; }
.tcard-desc { font-size:13.5px; color:#4a4540; }
.tcard-row { display:flex; gap:10px; font-size:12.5px; padding:5px 0; border-top:1px dashed var(--line); }
.tcard-row:first-of-type { border-top:none; padding-top:0; }
.tcard-k { color:var(--sub); flex:0 0 6.5em; font-weight:700; }
.tcard-v { flex:1; }

.infobox { border:1.5px dashed var(--accent); border-radius:12px; background:var(--accent-soft); padding:14px 18px; margin:1.6em 0; }
.infobox .ib-t { font-weight:800; font-size:14px; margin-bottom:8px; }
.infobox .ib-b { font-size:13.5px; }
.infobox .ib-b ul, .infobox .ib-b ol { margin:8px 0; padding-left:1.3em; }
.infobox .ib-b li { margin:4px 0; }

.fk { display:flex; gap:10px; align-items:flex-start; margin:1.4em 0; }
.fk img { width:38px; height:38px; border-radius:50%; border:1px solid var(--line); background:var(--ink); object-fit:cover; flex-shrink:0; }
.fk .bubble { background:#fff; border:1px solid var(--line); border-radius:4px 14px 14px 14px;
  padding:9px 14px; font-size:13.5px; box-shadow:0 1px 2px rgba(0,0,0,.04); line-height:1.8; }
.fk .bubble.honne { background:var(--accent-soft); border-color:#f0c9be; }
.fk .tag { display:inline-block; background:#fff; color:var(--accent); border:1px solid var(--accent); font-size:10px; font-weight:800; border-radius:4px; padding:1px 7px; margin-right:7px; vertical-align:1px; }

.cta { padding:18px 20px; margin-top:30px; }
.cta .ct { font-weight:800; font-size:14px; margin-bottom:10px; }
.cta .next { display:flex; gap:10px; align-items:center; text-decoration:none; color:var(--ink); border:1px solid var(--line);
  border-radius:10px; padding:10px 12px; font-size:13px; font-weight:700; }
.cta .next:hover { border-color:var(--accent); color:var(--accent); }
.cta .divider { border-top:1px dashed var(--line); margin:14px 0; }
.cta .micro { text-align:center; font-size:12.5px; font-weight:800; color:var(--accent); margin-bottom:6px; }
.cta .btn-red { display:block; text-align:center; }

footer.site { background:#fff; border-top:1px solid var(--line); }
footer.site .fwrap { max-width:1020px; margin:0 auto; padding:20px 20px 28px; text-align:center; color:var(--sub); font-size:12px; }
footer.site a { color:var(--sub); margin:0 8px; }
@media (max-width:520px) { article.post { padding:20px 16px 24px; } .hero { padding:18px 16px; } }
