
/* Layout: 国内経済ニュースサイトの定番構成。ユーティリティ行 → ロゴ → 紺のグローバルナビ → 最新行 → 本文2段（メイン＋サイドバー）→ フッター。 */
:root {
  --bg: #ffffff;
  --sub: #f3f4f6;
  --text: #222222;
  --muted: #6b6f76;
  --line: #e1e3e6;
  --navy: #0b2f5b;
  --navy-ink: #ffffff;
  --link: #0b2f5b;
  --accent: #c8102e;
  --mark-dot: #e0263f;
  --f-logo: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --c-bank: #5b3e8f; --c-ipo: #0b5cad; --c-listed: #7a4b00; --c-startup: #12795b; --c-kanpo: #b0302a; --c-market: #4a4f57;
  --f: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
:root, :root[data-theme="dark"] { color-scheme: light }

* { box-sizing: border-box }
body { background: var(--bg); color: var(--text); font-family: var(--f); font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased }
a { color: var(--text); text-decoration: none }
a:hover { color: var(--link); text-decoration: underline }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 1px }
.in { max-width: 1100px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }

.util { background: var(--sub); font-size: 12px; color: var(--muted) }
.util .in { display: flex; justify-content: space-between; gap: 12px; padding-block: 4px; flex-wrap: wrap }
.util a { color: var(--muted) }
.util nav { display: flex; flex-wrap: wrap; gap: 0 14px }
.util nav a { white-space: nowrap }

.head .in { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-block: 16px 12px; flex-wrap: wrap }
.logo { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; color: var(--text) }
.logo:hover { text-decoration: none; color: var(--text) }
.logo { align-items: center; gap: 12px }
.logo .mark { width: 46px; height: 46px; flex: none }
.mk-bg { fill: var(--navy) } .mk-wave { fill: none; stroke: var(--navy-ink); stroke-width: 6.5; stroke-linecap: round } .mk-dot { fill: var(--mark-dot) }
.logo .name { display: flex; flex-direction: column; gap: 3px; font-family: var(--f-logo) }
.logo .name i { font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--muted); line-height: 1.2 }
.logo .name b { font-weight: 900; font-size: 30px; letter-spacing: .02em; line-height: 1 }
.logo .name b span { color: var(--accent) }
.logo small { font-size: 12px; color: var(--muted); flex-basis: 100%; margin-top: 2px }
.head .issue { font-size: 12px; color: var(--muted) }

.gnav { background: var(--navy) }
.gnav .in { display: flex; overflow-x: auto; scrollbar-width: none }
.gnav a { color: var(--navy-ink); font-size: 14px; font-weight: 700; padding: 10px 16px; white-space: nowrap; border-bottom: 3px solid transparent }
.gnav a:hover { text-decoration: none; background: rgba(255,255,255,.08); color: var(--navy-ink) }
.gnav a[aria-current="page"] { border-bottom-color: var(--navy-ink) }

.latest { border-bottom: 1px solid var(--line); font-size: 13.5px }
.latest .in { display: flex; gap: 10px; padding-block: 8px; align-items: baseline; min-width: 0 }
.latest em { font-style: normal; font-weight: 700; color: var(--accent); flex: none }
.latest a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0 }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding-block: 22px 40px }
.cat { font-size: 12px; font-weight: 700 }
.cat.ipo { color: var(--c-ipo) } .cat.bank { color: var(--c-bank) } .cat.listed { color: var(--c-listed) } .cat.startup { color: var(--c-startup) } .cat.kanpo { color: var(--c-kanpo) } .cat.market { color: var(--c-market) }
.date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums }

.top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line) }
.top-main h1 { font-size: 25px; line-height: 1.45; font-weight: 900; margin: 4px 0 10px; text-wrap: pretty }
.top-main p { margin: 0 0 8px; font-size: 14.5px }
.top-sub { border-left: 1px solid var(--line); padding-left: 20px; min-width: 0 }
.top-sub ul { list-style: none; margin: 0; padding: 0 }
.top-sub li { padding: 9px 0; border-bottom: 1px solid var(--line); line-height: 1.55 }
.top-sub li:first-child { padding-top: 2px }
.top-sub li a { font-weight: 700; font-size: 14.5px }

h2.bar { font-size: 17px; font-weight: 900; margin: 26px 0 0; padding-bottom: 6px; border-bottom: 2px solid var(--text); display: flex; justify-content: space-between; align-items: baseline }
h2.bar small { font-size: 12px; font-weight: 400; color: var(--muted) }
.rows { list-style: none; margin: 0; padding: 0 }
.rows li { display: grid; grid-template-columns: 8.6em minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line) }
.rows .when { font-size: 12px; color: var(--muted); line-height: 1.5; padding-top: 3px }
.rows .when .cat { display: block }
.rows h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; line-height: 1.5 }
.rows p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7 }
.rows .tags { margin-top: 6px }

.tags { display: flex; flex-wrap: wrap; gap: 6px }
.tag { font: inherit; font-size: 12px; color: var(--link); background: var(--sub); border: 1px solid var(--line); padding: 1px 8px; cursor: pointer; line-height: 1.7 }
.tag:hover { border-color: var(--link) }

aside.side { min-width: 0 }
.box { margin-bottom: 28px }
.box h4 { font-size: 15px; font-weight: 900; margin: 0 0 4px; padding: 6px 10px; background: var(--sub); border-left: 4px solid var(--navy) }
.sched { width: 100%; border-collapse: collapse; font-size: 13px }
.sched td { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45 }
.sched td.d { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); width: 4.6em }
.sched tr.past td { color: var(--muted) }
.sched small { color: var(--muted); font-size: 11.5px }
.box p { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.7 }
.box .tags { margin-top: 8px }

/* article */
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 12px }
.crumb a { color: var(--muted) }
article h1 { font-size: 26px; font-weight: 900; line-height: 1.5; margin: 6px 0 10px; text-wrap: pretty }
.art-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line) }
.share { display: flex; gap: 6px; flex-wrap: wrap }
.share a, .share button { font: inherit; font-size: 12px; font-weight: 700; padding: 3px 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; line-height: 1.6 }
.share a:hover, .share button:hover { border-color: var(--text); text-decoration: none; color: var(--text) }
article .lead { font-weight: 700; margin: 18px 0; font-size: 15.5px }
article .body p { margin: 0 0 1.2em; font-size: 16px; line-height: 1.95 }
.facts { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px }
.facts caption { text-align: left; font-weight: 900; font-size: 14px; padding-bottom: 6px }
.facts th, .facts td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top }
.facts th { background: var(--sub); width: 36%; font-weight: 700 }
.srcs { font-size: 13px; margin-top: 18px }
.srcs b { display: block }
.srcs ul { margin: 2px 0 0; padding-left: 1.2em }
.srcs a { color: var(--link); text-decoration: underline }
.hitokoto { margin: 24px 0 8px; padding: 14px 16px; background: var(--sub); border: 1px solid var(--line) }
.hitokoto b { display: block; font-size: 13px; margin-bottom: 4px }
.hitokoto p { margin: 0; font-size: 14.5px; line-height: 1.9 }
.sns { margin-top: 20px; font-size: 13.5px }
.sns b, .fix b { display: block; font-size: 14px; font-weight: 900; margin-bottom: 4px }
.sns ul, .fix ul { margin: 0; padding-left: 1.2em }
.sns a { color: var(--link); text-decoration: underline }
.fix { margin-top: 18px; font-size: 13px }
.about h1 { font-size: 24px; font-weight: 900; margin: 0 0 14px }
.about h2 { font-size: 17px; font-weight: 900; margin: 26px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line) }
.about p, .about li { font-size: 15px; line-height: 1.9 }
.note { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 22px; padding-top: 10px }
.copied { font-size: 12px; color: var(--muted); overflow-wrap: anywhere }

/* widget view */
body.wg .util, body.wg .head, body.wg .gnav, body.wg .latest, body.wg aside.side, body.wg footer { display: none }
body.wg .cols { grid-template-columns: minmax(0, 1fr); padding-block: 12px 24px; max-width: 460px; margin: 0 auto }
.wgt { border: 1px solid var(--line) }
.wgt-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--navy); color: var(--navy-ink) }
.wgt-h .mark { width: 30px; height: 30px; flex: none }
.wgt-h .mk-bg { fill: var(--navy-ink) } .wgt-h .mk-wave { stroke: var(--navy) }
.wgt-h b { font-family: var(--f-logo); font-weight: 900; font-size: 17px; line-height: 1.1 }
.wgt-h small { margin-left: auto; font-size: 11.5px; opacity: .85; font-variant-numeric: tabular-nums }
.wgt ol { list-style: none; margin: 0; padding: 0 12px }
.wgt li { padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.5 }
.wgt li:last-child { border-bottom: 0 }
.wgt li a { font-weight: 700; font-size: 14.5px }
.wgt h3 { margin: 0; padding: 8px 12px; font-size: 12.5px; font-weight: 900; background: var(--sub); color: var(--muted); letter-spacing: .04em }
.wgt .ipo li { display: grid; grid-template-columns: 6.4em minmax(0, 1fr); gap: 8px; font-size: 13.5px; padding: 7px 0 }
.wgt .ipo .d { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap }
.wgt-f { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px }
.wgt-f a { color: var(--link); font-weight: 700 }
.wg-help { font-size: 12.5px; color: var(--muted); line-height: 1.75; margin-top: 14px }
.wg-help b { color: var(--text) }

.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; margin-left: 6px; border: 1px solid currentColor; line-height: 1.6; vertical-align: 1px }
.badge.pr { color: var(--accent) } .badge.provided, .badge.contrib { color: var(--muted) }
.pitch { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 16px; margin: 0 0 20px; background: var(--sub); border: 1px solid var(--line) }
.pitch p { margin: 0; font-size: 14px; min-width: 0 }
.pitch p b { font-weight: 900 }
.btn { display: inline-block; background: var(--navy); color: var(--navy-ink); font-weight: 700; font-size: 14px; padding: 8px 16px; border: 0; cursor: pointer; text-decoration: none; font-family: inherit }
.btn:hover { color: var(--navy-ink); text-decoration: none; opacity: .9 }
.btn.ghost { background: var(--bg); color: var(--navy); border: 1px solid var(--navy) }
.art-cta { margin-top: 26px; padding: 16px; border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap }
.art-cta p { margin: 0; font-size: 14px; min-width: 0 }
.lp h1 { font-size: 28px; font-weight: 900; line-height: 1.4; margin: 0 0 10px; text-wrap: pretty }
.lp .sub { font-size: 15px; color: var(--muted); margin: 0 0 18px; max-width: 62ch }
.lp h2 { font-size: 18px; font-weight: 900; margin: 32px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--text) }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.way { border: 1px solid var(--line); padding: 14px; min-width: 0; display: flex; flex-direction: column; gap: 6px }
.way b { font-size: 15.5px; font-weight: 900 }
.way .who { font-size: 12px; color: var(--muted) }
.way p { margin: 0; font-size: 13.5px; line-height: 1.75 }
.way .lbl { margin-top: auto; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px }
ol.flow { margin: 0; padding: 0; list-style: none; counter-reset: f; display: grid; gap: 0 }
ol.flow li { counter-increment: f; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px }
ol.flow li::before { content: counter(f); font-weight: 900; color: var(--navy); font-size: 18px; line-height: 1.4 }
ol.flow li span b { display: block }
.lp ul.plain { margin: 0; padding-left: 1.2em; font-size: 14.5px; line-height: 1.9 }
.tpl { border: 1px solid var(--line); background: var(--sub) }
.tpl pre { margin: 0; padding: 12px 14px; white-space: pre-wrap; font-family: inherit; font-size: 13.5px; line-height: 1.8 }
.tpl .row { display: flex; gap: 8px; align-items: center; padding: 0 14px 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted) }
.contact-box { border: 2px solid var(--navy); padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start }
.contact-box p { margin: 0; font-size: 14px }
@media (max-width: 760px) { .ways { grid-template-columns: minmax(0, 1fr) } .lp h1 { font-size: 23px } }

footer { background: var(--sub); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted) }
footer .in { padding-block: 22px 32px }
footer .fl { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 12px }
footer .fl a { color: var(--muted) }
footer p { margin: 0 0 8px; max-width: 90ch }
footer h5 { font-size: 13px; color: var(--text); margin: 14px 0 4px }

@media (max-width: 880px) {
  .cols { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 640px) {
  .util nav a, footer .fl a { padding-block: 6px; display: inline-block }
  .tag { padding: 4px 10px }
  .top { grid-template-columns: minmax(0, 1fr) }
  .top-sub { border-left: 0; padding-left: 0 }
  .top-main h1, article h1 { font-size: 21px }
  .rows li { grid-template-columns: minmax(0, 1fr) }
  .rows .when { display: flex; gap: 8px; padding-top: 0 }
  .logo .name b { font-size: 24px }
  .logo .mark { width: 40px; height: 40px }
}


/* easy mode + glossary */
.mode { display: inline-flex; border: 1px solid var(--navy); margin: 14px 0 0 }
.mode button { font: inherit; font-size: 13px; font-weight: 700; padding: 5px 14px; background: var(--bg); color: var(--navy); border: 0; cursor: pointer }
.mode button[aria-pressed="true"] { background: var(--navy); color: var(--navy-ink) }
.easy { margin: 16px 0; border: 2px solid var(--navy); padding: 16px 18px }
.easy h2 { font-size: 15px; font-weight: 900; margin: 0 0 8px; color: var(--navy) }
.easy h2 + * { margin-top: 0 }
.easy ol { margin: 0 0 14px; padding-left: 1.4em; font-size: 15.5px; line-height: 1.9 }
.easy dl { margin: 0 0 14px }
.easy dt { font-weight: 900; font-size: 14.5px; margin-top: 8px }
.easy dt a { color: var(--link); text-decoration: underline }
.easy dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.8 }
.easy p { margin: 0; font-size: 15px; line-height: 1.9 }
.easy .tag-easy { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--navy); border: 1px solid var(--navy); padding: 0 6px; margin-left: 6px; vertical-align: 2px }
.gl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px }
.gl-list li { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0 }
.gl-list a { font-weight: 900; font-size: 15.5px }
.gl-list p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted) }
@media (max-width: 640px) { .gl-list { grid-template-columns: minmax(0, 1fr) } }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.plan { border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.plan.main { border: 2px solid var(--navy) }
.plan b { font-size: 16px; font-weight: 900 }
.plan .price { font-size: 26px; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.2 }
.plan .price small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px }
.plan .reg { font-size: 12.5px; color: var(--muted); text-decoration: line-through }
.plan ul { margin: 4px 0 0; padding-left: 1.2em; font-size: 13.5px; line-height: 1.8 }
.plan .lbl { margin-top: auto; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr) } }


.plannote { font-size: 13px; color: var(--muted); margin-top: 10px }
.doc .lead { font-weight: 700 }

/* static-site additions */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.h-top { font-size: 25px; line-height: 1.45; font-weight: 900; margin: 4px 0 10px; text-wrap: pretty }
.cols.solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin: 0 auto }
.box h2.sh { font-size: 15px; font-weight: 900; margin: 0 0 4px; padding: 6px 10px; background: var(--sub); border-left: 4px solid var(--navy) }
.tgt { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.55 }
.tgt small { display: block; color: var(--muted); font-size: 12px }
.tgt small a { color: var(--link); text-decoration: underline }
ul.mini { list-style: none; margin: 0; padding: 0 }
ul.mini li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.55 }
.box .more { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--link) }
.tags a.tag { text-decoration: none }
.crumb span { color: var(--muted) }
.catdesc { color: var(--muted); font-size: 14px; margin: 10px 0 4px }
h1.bar { font-size: 20px; font-weight: 900; margin: 0; padding-bottom: 6px; border-bottom: 2px solid var(--text); display: flex; justify-content: space-between; align-items: baseline }
h1.bar small { font-size: 12px; font-weight: 400; color: var(--muted) }
.srcs h2, .fix h2, .hitokoto h2 { font-size: 14px; font-weight: 900; margin: 0 0 4px }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0 }
.pager a, .pager span { min-width: 36px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); font-size: 14px }
.pager span { background: var(--navy); color: var(--navy-ink); border-color: var(--navy) }
.doc { max-width: 720px }
.doc h1 { font-size: 26px; font-weight: 900; margin: 0 0 14px }
.doc h2 { font-size: 18px; font-weight: 900; margin: 28px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line) }
.doc p, .doc li { font-size: 15.5px; line-height: 1.95 }
.lp .btns { display: flex; gap: 8px; flex-wrap: wrap }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); margin: 6px 0 18px }
.stats div { padding: 12px; text-align: center; border-left: 1px solid var(--line) }
.stats div:first-child { border-left: 0 }
.stats b { display: block; font-size: 24px; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.2 }
.stats span { font-size: 12px; color: var(--muted) }
.addr { font-weight: 700; user-select: all }
.tbl { overflow-x: auto }
.tbl .facts { min-width: 520px }
.facts td.num { white-space: nowrap; font-variant-numeric: tabular-nums }
.box h2.sh a { color: inherit }
.share a { text-decoration: none }
