/* ---- 全デザイン共通の土台(build_css.py が各デザインの先頭に付ける) ---- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;line-height:1.75;overflow-wrap:anywhere;word-break:normal}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0;line-height:1.4}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.vis{position:relative;aspect-ratio:1200/630;overflow:hidden;background:var(--sky)}
.vis img{width:100%;height:100%;object-fit:cover}
.chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.chip{display:inline-block;font-size:11px;font-weight:700;color:#fff;background:var(--chip,var(--accent));padding:1px 8px;line-height:1.7;white-space:nowrap}
.kchip{display:inline-block;font-size:11px;font-weight:700;color:var(--kchip);border:1px solid var(--kchip);padding:0 7px;line-height:1.7;white-space:nowrap}
.tchip{font-size:11px;opacity:.7}
.crumb{font-size:12px;opacity:.7;margin:0 0 10px}
.crumb a:hover{text-decoration:underline}
.post figure{margin:0}
.post figcaption{font-size:11px;opacity:.65;margin-top:6px}
.post figcaption a{text-decoration:underline}
.body{font-size:16.5px;line-height:1.95}
.body p{margin:0 0 1.3em}
.body h2{font-size:21px;margin:2em 0 .8em}
.body h3{font-size:18px;margin:1.6em 0 .6em}
.body ul,.body ol{padding-left:1.4em;margin:0 0 1.3em}
.body li{margin:.25em 0}
.body a{text-decoration:underline;text-underline-offset:3px}
.body table{display:block;overflow-x:auto;border-collapse:collapse;margin:0 0 1.4em;font-size:14px;max-width:100%}
.body th,.body td{border:1px solid rgba(128,128,128,.35);padding:6px 10px;text-align:left;white-space:nowrap}
.body blockquote{margin:0 0 1.3em;padding:.6em 1em;border-left:4px solid var(--accent);opacity:.9}
.body img{height:auto;margin:1em 0}
.lead{padding:16px 20px;margin:20px 0}
.lead strong{display:block;font-size:13px;margin-bottom:4px}
.lead p{margin:0}
.cat-note{font-size:13px;opacity:.85}
.cat-note a{text-decoration:underline}
.sources{margin:28px 0 0;font-size:13px}
.sources h2{font-size:14px;margin:0 0 6px}
.sources ul{margin:0;padding-left:1.2em}
.sources a{text-decoration:underline;word-break:break-all}
.share{display:flex;gap:10px;margin:24px 0}
.share a{flex:1;max-width:220px;text-align:center;font-weight:700;font-size:14px;padding:10px 12px;color:#fff}
.share-x{background:#111}
.share-line{background:#06c755}
.ad{margin:24px 0;text-align:center;min-height:90px}
.ad-lbl{display:block;font-size:10px;opacity:.6;margin-bottom:4px}
.rank{list-style:none;margin:0;padding:0}
.rank a{display:flex;gap:10px;align-items:flex-start}
.empty{opacity:.7}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:640px){.wrap{padding:0 14px}.body{font-size:16px}.share a{max-width:none}}
/* 文字入りの自作サムネは切り抜かない(写真だけトリミング・重ね文字を使う) */
.vis.vis-text{aspect-ratio:1200/630!important;height:auto!important;min-height:0!important}
.vis-text img{object-fit:contain}

/* ---- portal ---- */
body{background:#eef0f3;color:#222;font-family:"Noto Sans JP",sans-serif;font-size:14px}
.pt-wrap{max-width:1240px;margin:0 auto;padding:0 16px}
.pt-head{background:#fff}
.pt-head-in{display:flex;justify-content:space-between;align-items:center;min-height:64px;gap:12px}
.pt-brand{display:flex;align-items:center;gap:10px}
.pt-brand .brand-mark{width:38px;height:38px}
.pt-brand b{display:block;font-size:21px;font-weight:900;color:var(--navy);line-height:1.2}
.pt-brand small{display:block;font-size:11px;color:#888}
.pt-head-r{display:flex;gap:14px;font-size:12px;align-items:center;white-space:nowrap}
.pt-head-r a{color:var(--navy);text-decoration:underline}
.pt-upd{color:#999}
.pt-tabs{background:var(--navy)}
.pt-tabs-in{display:flex;overflow-x:auto;white-space:nowrap}
.pt-tabs a{color:#fff;font-weight:700;font-size:14px;padding:10px 18px;border-bottom:3px solid transparent}
.pt-tabs a:hover{background:rgba(255,255,255,.1);border-color:var(--accent)}
.pt-tabs a:first-child{border-color:var(--accent)}
.pt-layout{display:grid;grid-template-columns:170px minmax(0,1fr) 300px;gap:16px;margin-top:16px}
.pt-left{display:flex;flex-direction:column;align-self:start;position:sticky;top:10px;background:#fff;border-radius:6px;padding:8px 0 12px;font-size:13px}
.pt-left a{padding:5px 14px;display:flex;gap:8px;align-items:center}
.pt-left a:hover{background:var(--sky);color:var(--navy)}
.pt-left i,.pt-bh i{width:4px;height:14px;background:var(--chip);border-radius:2px}
.pt-lh{font-size:11px;color:#999;font-weight:700;margin:10px 14px 2px;padding-top:8px;border-top:1px solid #eee}
.pt-lh:first-child{border-top:0;margin-top:2px;padding-top:0}
.pt-box{background:#fff;border-radius:6px;padding:14px 16px;margin-bottom:16px}
.pt-bh{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:900;margin:0 0 10px;padding-bottom:8px;border-bottom:2px solid var(--navy)}
.pt-bh a{margin-left:auto;font-size:12px;font-weight:400;color:var(--navy);text-decoration:underline}
.pt-topics-in{display:grid;grid-template-columns:1fr 240px;gap:16px}
.pt-tl{list-style:none;margin:0;padding:0}
.pt-tl li{display:flex;gap:8px;align-items:baseline;padding:5px 0 5px 14px;position:relative;line-height:1.55}
.pt-tl li::before{content:"";position:absolute;left:2px;top:13px;width:5px;height:5px;background:var(--accent);border-radius:50%}
.pt-tl a{color:#1a0dab;font-weight:500}
.pt-tl a:hover{text-decoration:underline}
.pt-tl em{font-style:normal;font-size:10px;color:#fff;background:#e5484d;padding:0 5px;border-radius:2px;flex:none}
.pt-tl time{font-size:11px;color:#999;flex:none;margin-left:auto}
.pt-tl-s li{border-bottom:1px dotted #ddd}
.pt-tpic{position:relative;align-self:start}
.pt-tpic span{position:absolute;left:0;top:0;background:var(--navy);color:#fff;font-size:11px;padding:1px 8px}
.pt-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.pt-thumbs span{display:block;font-size:12.5px;font-weight:700;line-height:1.5;margin-top:6px;color:#1a0dab}
.pt-two{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.pt-first{display:grid;grid-template-columns:120px 1fr;gap:10px;margin-bottom:6px}
.pt-first b{display:block;font-size:13.5px;line-height:1.5;color:#1a0dab}
.pt-first time{font-size:11px;color:#999}
.pt-first:hover b{text-decoration:underline}
.pt-right .rank li{border-bottom:1px solid #eee}
.pt-right .rank a{padding:8px 0;font-size:13px;line-height:1.5}
.pt-right .rank b{flex:none;width:22px;height:22px;display:grid;place-items:center;background:#999;color:#fff;font-family:"Roboto Condensed",sans-serif;font-size:13px;border-radius:3px}
.pt-right .rank li:nth-child(-n+3) b{background:var(--accent)}
.pt-right .rank a:hover span{text-decoration:underline}
.pt-about{font-size:12.5px;color:#555;margin:0 0 6px;line-height:1.7}
.pt-a{font-size:12px;color:var(--navy);text-decoration:underline}
.pt-post h1{font-size:clamp(21px,2.6vw,26px);font-weight:900;line-height:1.45;margin:4px 0 10px}
.pt-pmeta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:12px;color:#888;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid #eee}
.chip{border-radius:2px}
.pt-post .lead{background:var(--sky);border-radius:4px}
.pt-post .lead strong{color:var(--navy)}
.pt-post .body{font-size:16px;line-height:1.9}
.pt-post .body h2{font-size:18px;font-weight:900;border-left:5px solid var(--navy);padding:2px 0 2px 10px;background:#f5f6f8}
.pt-post .share a{border-radius:4px}
.pt-listh small{font-size:12px;color:#999;font-weight:400;margin-left:4px}
.pt-rows{list-style:none;margin:0;padding:0}
.pt-rows li{border-bottom:1px solid #eee}
.pt-rows a{display:grid;grid-template-columns:150px 1fr;gap:14px;padding:12px 0}
.pt-rows b{display:block;font-size:15px;line-height:1.5;color:#1a0dab}
.pt-rows a:hover b{text-decoration:underline}
.pt-rows p{margin:2px 0 6px;font-size:12.5px;color:#666;line-height:1.6}
.pt-rows time{font-size:11px;color:#999;margin-left:8px}
.pt-foot{margin-top:24px;background:#fff;border-top:3px solid var(--navy);padding:20px 0 30px;font-size:12px;color:#777}
.pt-foot nav{display:flex;flex-wrap:wrap;gap:4px 16px;margin-bottom:6px}
.pt-foot a:hover{text-decoration:underline}
@media (max-width:1100px){.pt-layout{grid-template-columns:150px minmax(0,1fr)}.pt-right{grid-column:2}}
@media (max-width:800px){
 .pt-layout{grid-template-columns:1fr}.pt-right{grid-column:auto}
 .pt-left{position:static;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;padding:6px}
 .pt-left .pt-lh{display:none}.pt-left a{padding:4px 10px;border:1px solid #eee;border-radius:999px;margin-right:4px}
 .pt-two{grid-template-columns:1fr}.pt-thumbs{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
 .pt-head-r .pt-upd,.pt-head-r a+a{display:none}.pt-brand small{display:none}
 .pt-topics-in{grid-template-columns:1fr}.pt-tpic{order:-1}
 .pt-rows a{grid-template-columns:100px 1fr}.pt-rows p{display:none}
}
