[hidden]{display:none!important}
:root{
  --bg:#F3F4F6;--card:#FFFFFF;--ink:#15171A;--ink2:#3A424C;--muted:#5B6470;--line:#E8ECF1;
  --tile:#DDE2E8;--accent:#1F4E79;--accent-soft:#E8ECF1;--dark:#15171A;--dark2:#22262C;--dark-muted:#AEB6C0;
  --line-chart:#7FA6C9;--neg:#B3261E;--pos:#1F6B3A;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'Noto Sans JP',system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased;line-height:1.6}
a{color:inherit;text-decoration:none}
a:hover{color:var(--accent)}
img{max-width:100%;display:block}
.num{font-family:'IBM Plex Mono',ui-monospace,monospace;font-variant-numeric:tabular-nums}
.eyebrow{font-size:11px;letter-spacing:.16em;color:var(--muted);font-weight:500;text-transform:uppercase}
.muted{color:var(--muted)}
.ph{color:var(--accent)}
.neg{color:var(--neg)}.pos{color:var(--pos)}
.card{background:var(--card);border-radius:18px;padding:20px}
.h2{margin:0;font-size:18px;font-weight:700}
.sub{font-size:12px;font-weight:500;color:var(--muted);margin-left:6px}
.head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.head .more{font-size:13px;font-weight:500;color:var(--accent);white-space:nowrap}
.chip{display:inline-flex;align-items:center;font-size:11px;font-weight:700;letter-spacing:.06em;padding:4px 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent);white-space:nowrap}
.chip.dark{background:var(--dark);color:#fff}
.chip.ghost{background:var(--card)}
.btn-dark{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:12px;background:var(--dark);color:#fff;font-size:14px;font-weight:700}
.btn-dark:hover{color:#fff;background:#2A2E34}
.btn-light{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 16px;border-radius:12px;background:var(--card);color:var(--ink);font-size:14px;font-weight:700}
.row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:0}
.wrap{width:100%;max-width:1240px;margin:0 auto;padding:0 16px}
.sec{padding-top:24px;display:flex;flex-direction:column;gap:12px}
.grid{display:grid;gap:12px}
.icon{width:16px;height:16px;flex-shrink:0}

/* header */
.site-header{background:var(--card);position:sticky;top:0;z-index:10;border-bottom:1px solid var(--line)}
.site-header .wrap{height:56px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;letter-spacing:.14em}
.brand .avatar{width:32px;height:32px;border-radius:50%;background:var(--tile);object-fit:cover}
.nav{display:none;gap:24px;font-size:14px;font-weight:500}
.nav a.primary{font-weight:700}
.hdr-actions{display:flex;gap:6px}
.hdr-actions .x{width:40px;height:40px;border-radius:50%;background:var(--dark);color:#fff;display:flex;align-items:center;justify-content:center}
.hdr-actions .note{height:40px;padding:0 12px;border-radius:999px;background:var(--dark);color:#fff;display:flex;align-items:center;font-size:12px;font-weight:700}

/* profile */
.profile{display:flex;flex-direction:column;gap:12px;padding-top:20px}
.profile .who{display:flex;align-items:center;gap:12px}
.profile .avatar{width:56px;height:56px;border-radius:50%;background:var(--tile);object-fit:cover;flex-shrink:0}
.profile .name{font-size:17px;font-weight:700}
.profile .tag{font-size:12px;color:var(--muted);line-height:1.6}
.profile .follow{display:flex;gap:8px}
.profile .follow a{flex:1;min-height:44px;font-size:13px}
.profile .follow .cnt{font-weight:500;opacity:.7}

/* capital dark card */
.capital{margin-top:20px;background:var(--dark);color:#fff;border-radius:22px;padding:22px 20px;display:flex;flex-direction:column;gap:14px}
.capital .eyebrow{color:var(--dark-muted)}
.capital .total{font-size:42px;font-weight:600;line-height:1;letter-spacing:-.01em}
.capital .total small{font-size:17px;font-weight:500;margin-left:2px}
.capital .chart{width:100%;height:72px;display:block}
.capital .axis{display:flex;justify-content:space-between;font-size:10px;color:var(--dark-muted)}
.capital .bar{display:flex;height:8px;border-radius:4px;overflow:hidden}
.capital .legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--dark-muted)}
.capital .tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.capital .tile{background:var(--dark2);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.capital .tile span:first-child{font-size:10px;color:var(--dark-muted)}
.capital .tile .v{font-size:16px;font-weight:500}
.capital .chip{background:#2A2E34;color:#fff}
.capital .archive-link{font-size:12px;color:#C9D6E3;font-weight:500}
.capital .newest{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:#fff;color:var(--ink);border-radius:12px;min-height:48px}
.capital .newest .l{display:flex;flex-direction:column;gap:2px}
.capital .newest .l span:first-child{font-size:10px;letter-spacing:.14em;color:var(--muted)}
.capital .newest .l span:last-child{font-size:13px;font-weight:700;color:var(--accent)}

/* conditions / holdings */
.cond .row .t{display:flex;flex-direction:column;gap:2px}
.cond .row .t b{font-size:14px}
.cond .row .t span{font-size:11px;color:var(--muted)}
.cond .row .r{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.cond .row .r .v{font-size:15px;font-weight:600}
.cond .row .r .chip{font-size:10px;padding:2px 8px}
.hold .row{padding:9px 0;font-size:13px}

/* articles */
.feature{padding:0;overflow:hidden;display:flex;flex-direction:column}
.feature .img{height:200px;background:var(--tile);display:flex;align-items:flex-end;padding:12px;background-size:cover;background-position:center}
.feature .body{padding:16px;display:flex;flex-direction:column;gap:8px}
.feature .title{font-size:19px;font-weight:700;line-height:1.5}
.feature p{margin:0;font-size:13px;line-height:1.8;color:var(--ink2)}
.minis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mini{padding:0;overflow:hidden;display:flex;flex-direction:column}
.mini .img{height:96px;background:var(--tile);background-size:cover;background-position:center}
.mini .body{padding:12px;display:flex;flex-direction:column;gap:6px}
.mini .title{font-size:13px;font-weight:700;line-height:1.5}
.cats{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
.cats .chip{flex-shrink:0}
.empty{font-size:13px;color:var(--muted);padding:14px 0}

/* stories */
.stories{display:flex;gap:10px;overflow-x:auto;padding:0 16px 4px;margin:0 -16px;scroll-snap-type:x mandatory}
.story{flex:0 0 232px;background:var(--card);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:10px;min-height:168px;scroll-snap-align:start}
.story.blue{background:var(--accent);color:#fff}
.story.blue .chip{background:#2E6499;color:#fff}
.story.blue .meta{color:#C9D6E3}
.story .title{font-size:15px;font-weight:700;line-height:1.6;flex:1}
.story .meta{font-size:12px;color:var(--muted)}
.story.img{padding:0;overflow:hidden}
.story.img .pic{width:100%;height:96px;object-fit:cover}
.story.img .body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px}
.posts-actions{display:flex;flex-direction:column;gap:8px;padding-top:4px}
.posts-actions .langs{display:flex;gap:8px}
.posts-actions .langs a{flex:1;min-height:44px;font-size:13px}

/* note / diary */
.notecard{display:flex;gap:12px;align-items:center;padding:14px}
.notecard .thumb{width:96px;height:64px;border-radius:10px;background:var(--tile);flex-shrink:0;object-fit:cover}
.notecard .t{display:flex;flex-direction:column;gap:4px}
.notecard .title{font-size:14px;font-weight:700;line-height:1.55}
.notecard .read{font-size:12px;font-weight:700;color:var(--accent)}
.diary{padding:0;overflow:hidden;display:flex;flex-direction:column}
.diary .pic{width:100%;height:190px;object-fit:cover}
.diary .body{padding:16px;display:flex;flex-direction:column;gap:8px}
.diary .title{font-size:17px;font-weight:700;line-height:1.5}
.diary p{margin:0;font-size:13px;line-height:1.9;color:var(--ink2)}

/* media */
.bars{height:80px;display:flex;align-items:flex-end;gap:4px}
.bars div{flex:1;background:var(--tile);border-radius:3px}
.bars div.last{background:var(--accent)}
.media .row a{display:contents}
.media .row .r{display:flex;align-items:center;gap:10px}

/* archive */
.arch .row{font-size:13px}
.arch .row .d{width:96px}
.arch .row .v{flex:1;text-align:right}
.arch .row .p{width:64px;text-align:right}
.arch .row .m{display:none;flex:2;color:var(--muted);font-size:12px}

/* about / footer */
.about p{margin:0;font-size:13px;line-height:1.9;color:var(--ink2)}
.site-footer{padding:24px 0 100px;font-size:12px;color:var(--muted);display:flex;flex-wrap:wrap;gap:16px}

/* bottom nav (phone) */
.bottom-nav{position:fixed;left:0;right:0;bottom:0;height:72px;background:var(--card);border-top:1px solid #E3E5E8;display:flex;padding:6px 8px calc(14px + env(safe-area-inset-bottom));z-index:10}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1;min-height:48px;justify-content:center;font-size:10px;font-weight:500;color:var(--muted)}
.bottom-nav a.active{color:var(--ink);font-weight:700}
.bottom-nav svg{width:22px;height:22px}

/* ---------- tablet ---------- */
@media (min-width:720px){
  .wrap{padding:0 32px}
  .site-header .wrap{height:64px}
  .nav{display:flex}
  .hdr-actions .note{display:flex}
  .profile{flex-direction:row;justify-content:space-between;align-items:center}
  .profile .follow a{flex:0 0 auto;padding:0 16px}
  .capital{display:grid;grid-template-columns:1fr 1fr;gap:20px 28px;padding:24px}
  .capital > *{grid-column:1}
  .capital .chartbox{grid-column:2;grid-row:1 / span 5;display:flex;flex-direction:column;justify-content:center;gap:6px}
  .capital .chart{height:110px}
  .two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .minis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .feature{flex-direction:row}
  .feature .img{width:46%;min-height:240px;height:auto;flex-shrink:0}
  .feature .body{justify-content:center;padding:20px}
  .stories{margin:0;padding:0 0 4px}
  .arch .row .m{display:block}
  .bottom-nav{display:none}
  .site-footer{padding-bottom:48px;justify-content:space-between}
}
/* ---------- desktop ---------- */
@media (min-width:1100px){
  .site-header .wrap{height:68px}
  .capital-row{display:grid;grid-template-columns:5fr 4fr 3fr;gap:20px;align-items:stretch}
  .capital{margin-top:0;display:flex;flex-direction:column}
  .capital .chartbox{display:contents}
  .capital .chart{height:90px}
  .capital .total{font-size:46px}
  .main-grid{display:grid;grid-template-columns:7fr 5fr;gap:20px;align-items:start}
  .art-grid{display:grid;grid-template-columns:7fr 5fr;gap:20px}
  .feature{flex-direction:column}
  .feature .img{width:100%;height:340px;min-height:0}
  .feature .title{font-size:26px}
  .minis{grid-template-columns:1fr;gap:14px}
  .mini{flex-direction:row;align-items:center;padding:14px;gap:16px}
  .mini .img{width:150px;height:100px;border-radius:10px;flex-shrink:0}
  .mini .body{padding:0}
  .mini .title{font-size:16px}
  .stories{display:none}
  .posts-list{display:block}
  .h2{font-size:19px}
}
.posts-list{display:none}
.posts-list .row .t{display:flex;align-items:center;gap:14px}
.posts-list .row .thumb{width:72px;height:54px;border-radius:8px;object-fit:cover;flex-shrink:0}
.posts-list .row .meta{font-size:11px;color:var(--muted)}
.posts-list .row .title{font-size:15px;font-weight:500}
.posts-list .row .r{display:flex;align-items:center;gap:14px;flex-shrink:0}

/* language switch */
.langs-sw{display:flex;align-items:center;gap:2px;background:var(--accent-soft);border-radius:999px;padding:3px;margin-right:4px}
.langs-sw a{font-size:11px;font-weight:700;padding:6px 9px;border-radius:999px;color:var(--muted);min-height:0}
.langs-sw a.on{background:var(--card);color:var(--ink)}
@media (max-width:719px){.hdr-actions .note{display:none}}

/* anchors below the sticky header */
[id]{scroll-margin-top:84px}

.chips{display:flex;flex-wrap:wrap;gap:6px}
.art .meta{flex-wrap:wrap}
.tagbar{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.tagbar a{text-decoration:none}

.today-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.today-row .t{background:var(--bg,#f3f4f6);border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;gap:2px;font-size:11px;color:var(--muted)}
.today-row .t b{font-size:16px;color:var(--ink,#111);font-family:inherit}
.trend-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:11px;color:var(--muted);margin-top:6px}
.trend-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px;vertical-align:-1px}
@media(max-width:420px){.today-row{grid-template-columns:repeat(2,1fr)}}
