:root {
  --ink: #1c1a17;
  --text: #1c1a17;
  --muted: #5d5850;
  --faint: #7a756c;
  --line: #e3e0d9;
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #f5f3ee;
  --yellow: #ffd52e;
  --accent: #1c1a17;
  --accent-ink: #1c1a17;
  --down: #c8321f;
  --grid: rgba(28, 26, 23, 0.08);
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 400; line-height: 1.95; letter-spacing: 0.02em; }
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.pr-bar { background: var(--tint); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.5; letter-spacing: 0; padding: 7px 14px; text-align: center; text-wrap: balance; word-break: keep-all; }
.pr-bar strong { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; padding: 0 6px; margin-right: 6px; }

.site-head { background: var(--ink); color: #fff; }
.site-head-inner { max-width: 720px; margin: 0 auto; padding: 14px 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo { width: 38px; height: 38px; flex: none; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-sub { font-size: 11px; color: #c9c4ba; }
.site-name { font-weight: 900; font-size: 19px; color: #fff; }
.site-name span { color: var(--yellow); }
.site-nav { display: flex; gap: 20px; margin: 8px -20px 0; padding: 0 20px; overflow-x: auto; scrollbar-width: none; font-size: 14px; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { flex: none; white-space: nowrap; color: #fff; font-weight: 700; text-decoration: none; padding: 7px 0 9px; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--yellow); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px 56px; }

.lead { padding: 30px 0 6px; }
.lead h1 { font-weight: 900; font-size: clamp(27px, 7.2vw, 38px); line-height: 1.4; letter-spacing: 0.01em; margin: 0 0 14px; }
.lead h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.lead p { margin: 0; }
.lead-facts { margin-top: 12px !important; font-size: 14px; color: var(--muted); }
.lead-facts b { color: var(--ink); font-weight: 700; }
.hero { padding: 30px 0 4px; }
.hero h1 { font-weight: 900; font-size: 28px; line-height: 1.4; margin: 0; }

.panel { border-top: 3px solid var(--ink); padding: 12px 0 0; margin: 26px 0 28px; }
.panel-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.hero-label { margin: 14px 0 0; font-size: 14px; font-weight: 700; }
.hero-num { font-variant-numeric: tabular-nums; font-weight: 900; font-size: clamp(36px, 11vw, 48px); line-height: 1.2; letter-spacing: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.badge { font-size: 18px; font-weight: 900; background: var(--yellow); color: var(--ink); padding: 1px 8px; line-height: 1.5; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chip { padding: 8px 0 9px 10px; border-left: 1px solid var(--line); }
.chip:first-child { padding-left: 0; border-left: 0; }
.chip-label { font-size: 11px; color: var(--muted); line-height: 1.5; }
.chip-value { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; line-height: 1.5; letter-spacing: 0; white-space: nowrap; }
.note { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 10px 0 0; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--ink); }
.legend i.dash { border-top: 2px dashed var(--faint); }
.chart-box { margin: 8px 0 6px; }
.chart-box canvas { display: block; width: 100%; height: 260px; }

.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 3px solid var(--ink); padding-top: 9px; font-weight: 900; font-size: 19px; line-height: 1.5; margin: 40px 0 14px; }
.section-title a { font-size: 13px; font-weight: 700; white-space: nowrap; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-card { border-bottom: 1px solid var(--line); }
.post-card a { display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: start; padding: 14px 0; text-decoration: none; color: var(--text); }
.post-card a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.post-list .post-card:first-child a { padding-top: 2px; }
.card-body { display: block; min-width: 0; }
.post-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; letter-spacing: 0; line-height: 1.6; }
.post-card b { display: block; font-size: 15px; font-weight: 700; line-height: 1.6; margin: 1px 0 3px; }
.post-card span.desc { font-size: 12px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-text { display: flex; align-items: center; padding: 8px 10px; color: var(--yellow); font-size: 12px; font-weight: 900; line-height: 1.45; }
.pickup { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.pickup a { display: block; text-decoration: none; color: var(--text); }
.pickup a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.pickup .thumb { margin-bottom: 7px; }
.pickup b { display: block; font-size: 14px; font-weight: 700; line-height: 1.6; }
.text-list { list-style: none; padding: 0; margin: -6px 0 0; }
.text-list li { border-bottom: 1px solid var(--line); }
.text-list a { display: block; padding: 10px 0; font-size: 15px; font-weight: 500; line-height: 1.7; text-decoration: none; }
.text-list a:hover { text-decoration: underline; }
.cat-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: 14px; font-weight: 700; }

article { padding-top: 26px; }
article .post-meta { font-size: 13px; }
article h1 { font-weight: 900; font-size: clamp(25px, 6.6vw, 34px); line-height: 1.45; letter-spacing: 0.01em; margin: 6px 0 14px; }
.byline { display: flex; align-items: center; gap: 8px; margin: 0 0 26px !important; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 13px !important; font-weight: 700; line-height: 1.5; }
.byline img { width: 28px; height: 28px; border-radius: 50%; }
.toc { background: var(--tint); padding: 14px 18px 10px; margin: 8px 0 30px; }
.toc p { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 14px; line-height: 1.7; }
.toc li { margin-bottom: 7px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
article h2 { scroll-margin-top: 12px; font-weight: 900; font-size: 22px; line-height: 1.5; margin: 52px 0 18px; padding-top: 12px; border-top: 3px solid var(--ink); }
article h3 { font-weight: 900; font-size: 18px; line-height: 1.6; margin: 34px 0 12px; }
article h3::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--yellow); margin-right: 8px; vertical-align: 2px; }
article p { margin: 0 0 22px; font-size: 16px; }
article ul, article ol { padding-left: 1.4em; margin: 0 0 22px; }
article li { margin-bottom: 6px; }
article .note { font-size: 12px; }
article table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 22px; letter-spacing: 0; }
article th, article td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
article th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.table-scroll { overflow-x: auto; }
article blockquote { margin: 0 0 22px; padding: 2px 0 2px 16px; border-left: 3px solid var(--ink); color: var(--muted); }
article blockquote p:last-child { margin: 0; }
.risk { background: var(--tint); border-left: 3px solid var(--down); padding: 12px 16px; font-size: 14px; margin: 26px 0; }
.risk p { font-size: 14px; line-height: 1.8; margin: 0 0 6px; }
.risk p:last-child { margin: 0; }
.inner-link { display: block; border: 2px solid var(--ink); padding: 12px 16px; margin: 28px 0; text-decoration: none; color: var(--text); }
.inner-link:hover { background: var(--yellow); }
.inner-link small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.inner-link b { font-size: 16px; font-weight: 700; }
.author { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; border-top: 3px solid var(--ink); padding: 16px 0 0; margin: 40px 0 0; }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author p { font-size: 13px; margin: 0 0 6px; line-height: 1.8; }
.author-label { font-weight: 700; }
.author-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 !important; }
.author-links a { font-weight: 700; }

.video { position: relative; aspect-ratio: 16 / 9; margin: 20px 0 26px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fig { margin: 24px 0 26px; }
.fig svg { display: block; width: 100%; height: auto; max-width: 520px; margin: 0 auto; }
.fig svg text { font-family: var(--font); }
.fig figcaption, .shot figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.7; }
.shot { max-width: 300px; margin: 24px auto 28px; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.shot.wide { max-width: 100%; }
.coin-nav { background: var(--tint); padding: 14px 18px; margin: 28px 0; }
.coin-nav p { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.coin-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.coin-nav li { margin: 0; }
.coin-nav a { font-size: 15px; font-weight: 700; }

form.contact { display: grid; gap: 14px; }
form.contact label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
form.contact input, form.contact textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--faint); border-radius: 0; background: var(--surface); }
form.contact textarea { min-height: 160px; }
form.contact button { font: inherit; font-weight: 700; background: var(--ink); color: #fff; border: 0; padding: 12px 20px; cursor: pointer; }
.hp { position: absolute; left: -9999px; }

.site-foot { background: var(--ink); color: #c9c4ba; margin-top: 20px; }
.site-foot-inner { max-width: 720px; margin: 0 auto; padding: 24px 20px 30px; font-size: 13px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.site-foot a { color: #fff; }
.copy { font-size: 12px; margin: 0; }

.shindan-banner { display: grid; gap: 2px; margin: 34px 0 0; padding: 16px 18px; background: var(--yellow); color: var(--ink); text-decoration: none; }
.shindan-banner:hover b { text-decoration: underline; text-underline-offset: 3px; }
.shindan-banner .shindan-banner-label { font-size: 12px; font-weight: 700; }
.shindan-banner b { font-size: 19px; font-weight: 900; line-height: 1.5; }
.shindan-banner span { font-size: 13px; line-height: 1.7; }
.shindan-banner .shindan-banner-go { font-weight: 700; font-size: 14px; margin-top: 4px; }

@media (min-width: 720px) {
  .post-card a { grid-template-columns: 176px 1fr; gap: 18px; }
  .post-card b { font-size: 17px; }
  .post-card span.desc { font-size: 13px; }
  .pickup { grid-template-columns: repeat(4, 1fr); }
  article p { font-size: 17px; }
}

/* ---------- 動き ---------- */
.ticker { background: var(--yellow); overflow: hidden; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.ticker-track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: 24px; padding: 9px 12px; font-variant-numeric: tabular-nums; }
.ticker-group em { font-style: normal; background: var(--ink); color: #fff; padding: 3px 6px; }
.ticker-group b { font-weight: 900; margin-left: 5px; }
.ticker-group b.down { color: #a51c10; }
@keyframes tick { to { transform: translateX(-50%); } }

.hand { font-family: "Yomogi", var(--font); font-weight: 400; letter-spacing: 0.02em; }
.lead h1 em { background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 90% / 0 38%; animation: sweep 0.7s 0.3s cubic-bezier(.3,.7,.3,1) forwards; }
@keyframes sweep { to { background-size: 100% 38%; } }

.panel-live .hero-label { position: relative; }
.hand-note { position: absolute; right: 2px; top: -6px; display: block; font-size: 15px; font-weight: 400; line-height: 1.3; transform: rotate(-3deg); opacity: 0; animation: fadein 0.4s 1.2s forwards; }
.hand-arrow { position: absolute; right: 72px; top: 24px; width: 20px; height: 17px; overflow: visible; }
.hand-arrow path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.6s 1.5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

.ti { display: inline-flex; align-items: center; gap: 8px; }
.doodle { width: 30px; height: 30px; flex: none; overflow: visible; }
.doodle .b { fill: var(--yellow); transform: translate(2px, 2px); }
.doodle .s { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.motion .doodle { animation: boil 1.05s steps(1) infinite; }
@keyframes boil { 0% { transform: rotate(-2.5deg); } 33% { transform: rotate(1.5deg) translate(.5px, -.5px); } 66% { transform: rotate(-.5deg) scale(1.04); } }

.strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -20px; padding: 16px 20px 12px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.taped { position: relative; flex: none; display: block; scroll-snap-align: center; text-decoration: none; color: var(--ink); transform: rotate(var(--r, -1.2deg)); transition: transform .25s; }
.taped:hover { transform: rotate(0deg) translateY(-3px); }
.taped::before { content: ""; position: absolute; left: 50%; top: -10px; width: 74px; height: 21px; margin-left: -37px; background: rgba(255, 213, 46, 0.78); transform: rotate(-3deg); z-index: 1; }
.taped img { display: block; height: 270px; width: auto; max-width: none; border: 1px solid var(--line); }
.taped span { display: block; font-size: 16px; line-height: 1.5; margin-top: 7px; text-align: center; }

.shot { position: relative; }
.shot::before { content: ""; position: absolute; left: 50%; top: -10px; width: 74px; height: 21px; margin-left: -37px; background: rgba(255, 213, 46, 0.78); transform: rotate(-3deg); z-index: 1; }
.shot img { transform: rotate(-0.8deg); }
.shot figcaption { font-family: "Yomogi", var(--font); font-size: 15px; color: var(--ink); }

.shindan-banner .shindan-banner-go i { font-style: normal; display: inline-block; animation: nudge 1.3s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

.thumb img { transition: transform .3s; }
.post-card a:hover .thumb img, .pickup a:hover .thumb img, .post-card a:active .thumb img, .pickup a:active .thumb img { transform: scale(1.06); }

.read-bar { position: fixed; left: 0; top: 0; width: 100%; height: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; z-index: 20; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease var(--d, 0s), transform .5s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal .thumb img { clip-path: inset(0 100% 0 0); transition: clip-path .55s ease calc(var(--d, 0s) + .1s), transform .3s; }
.reveal.in .thumb img { clip-path: inset(0); }
.section-title.reveal, article h2.reveal { position: relative; border-top-color: transparent; }
.section-title.reveal::before, article h2.reveal::before { content: ""; position: absolute; left: 0; top: -3px; width: 100%; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.3,.7,.3,1); }
.section-title.reveal.in::before, article h2.reveal.in::before { transform: scaleX(1); }
.chart-box.reveal { opacity: 1; transform: none; }
.chart-box.reveal canvas { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s ease-out; }
.chart-box.reveal.in canvas { clip-path: inset(-20px 0 0 0); }
.strip.reveal { opacity: 1; transform: none; }
.strip.reveal .taped { opacity: 0; transform: translateY(26px) rotate(5deg); transition: opacity .45s, transform .55s cubic-bezier(.2,.8,.3,1.15); }
.strip.reveal.in .taped { opacity: 1; transform: rotate(var(--r, -1.2deg)); }
.strip.reveal.in .taped:nth-child(2) { transition-delay: .12s; }
.strip.reveal.in .taped:nth-child(3) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track, .shindan-banner .shindan-banner-go i { animation: none; }
  .lead h1 em { animation: none; background-size: 100% 38%; }
  .hand-note { animation: none; opacity: 1; }
  .hand-arrow path { animation: none; stroke-dashoffset: 0; }
}

/* 手描きのキャラ */
.lead { display: grid; grid-template-columns: minmax(0, 1fr) clamp(92px, 25vw, 164px); column-gap: 12px; align-items: end; }
.lead h1 { grid-column: 1 / -1; }
.lead-text { min-width: 0; }
.frames { position: relative; aspect-ratio: 1; }
.frames img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: frame3 .78s steps(1) infinite; }
.frames img:nth-child(2) { animation-delay: -.26s; }
.frames img:nth-child(3) { animation-delay: -.52s; }
@keyframes frame3 { 0%, 33% { opacity: 1; } 33.4%, 100% { opacity: 0; } }
@media (min-width: 640px) { .lead h1 { grid-column: 1; } .frames { grid-column: 2; grid-row: 1 / 3; } }
.note-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: start; }
.note-fig { width: 84px; height: 84px; margin-top: 2px; }
.note-row .note { margin-top: 0; }
.section-title .mini { width: 54px; height: 54px; margin: -8px 2px -8px -4px; flex: none; }
.section-title:has(.mini) { align-items: center; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.cat-grid a { display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: 14px; font-weight: 700; text-align: center; }
.cat-fig { width: min(112px, 100%); height: auto; transition: transform .18s ease; }
.cat-grid a:hover .cat-fig { transform: translateY(-3px) rotate(-3deg); }
.cat-grid a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.cat-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat-hero-fig { width: 104px; height: 104px; flex: none; }
.eyecatch { display: block; width: 100%; height: auto; margin: 0 0 26px; }
.fin { display: flex; align-items: center; gap: 10px; margin: 44px 0 0; }
.fin p { margin: 0 !important; font-family: var(--hand, "Yomogi", sans-serif); font-size: 18px; }
.fin-fig { width: 92px; height: 92px; flex: none; }
.shindan-banner { position: relative; padding-right: 112px; }
.shindan-banner::after { content: ""; position: absolute; right: 8px; bottom: 0; width: 100px; height: 100px; background: url("img/mascot/shindan.svg") center / contain no-repeat; }
@media (prefers-reduced-motion: reduce) { .frames img { animation: none; } .frames img:first-child { opacity: 1; } .cat-fig { transition: none; } }

/* 記事の終わりの「次に読む」 */
.related { margin: 44px 0 0; border-top: 3px solid var(--ink); padding-top: 9px; }
.related-title { display: flex; align-items: center; gap: 6px; margin: 0 0 12px !important; font-weight: 900; font-size: 20px; }
.related .pickup { margin: 0; padding: 0; list-style: none; }
.related .pickup li { margin: 0; }
