/*
Theme Name: CoinBanzuke
Theme URI: https://finance.ordinal-online.com/
Author: Ordinal Online
Author URI: https://ordinal-online.com/
Description: CoinBanzuke（コイン番付）用テーマ。国内の暗号資産と取引所の番付データベース。国内取引所の価格・スプレッドの定点観測、銘柄解説、取引所の口コミ比較、ニュースの独自要約。CoinMarketCap/CoinGecko型のランキングUIを、デジタル庁デザインシステム（DADS）の色・文字・部品で組んでいます。
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: cryptonavi
*/

/* ============================================================
 * トークン（DADS：Color/Key・SolidGray・Semantic）
 * ========================================================== */
:root {
	--white: #ffffff;
	--g50: #f2f2f2;
	--g100: #e6e6e6;
	--g420: #949494;
	--g536: #767676;
	--g600: #666666;
	--g800: #333333;
	--key: #3460fb;      /* Key/600 アクセント・リンク */
	--key-50: #e8f1fe;   /* Key/50 */
	--key-100: #d9e6ff;  /* Key/100 */
	--key-900: #0017c1;  /* Key/900 ボタン */
	--key-1000: #00118f; /* Key/1000 ボタンhover */
	--up: #197a4b;       /* Success/2（白地の文字でAA） */
	--up-bg: #259d63;    /* Success/1 */
	--down: #ec0000;     /* Error/1 */
	--down-bg: #ce0000;  /* Error/2 */
	--star: #e2a50a;
	--font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	--wrap: 1240px;
	--gut: 20px;
	--r: 8px;
	--r-lg: 12px;
	--head-h: 64px;
	--shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 56px); }
body { margin: 0; background: var(--white); color: var(--g800); font-family: var(--font); font-size: 16px; line-height: 1.7; letter-spacing: .02em; }
img { max-width: 100%; height: auto; }
a { color: var(--key); text-underline-offset: 3px; }
a:hover { color: var(--key-900); }
:focus-visible { outline: 3px solid #f5b500; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.5; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; letter-spacing: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.is-up { color: var(--up); }
.is-down { color: var(--down); }
.is-flat { color: var(--g536); }
.is-key { color: var(--key); }
.muted { color: var(--g536); }
.sm-only { display: none; }
.stamp { font-size: .8125rem; color: var(--g536); margin: 8px 0 0; }
.pct { font-weight: 700; white-space: nowrap; }

/* ============================================================
 * 相場ストリップ（最上部）
 * ========================================================== */
.strip { border-bottom: 1px solid var(--g100); font-size: .8125rem; color: var(--g600); }
.strip__in { display: flex; gap: 24px; align-items: center; min-height: 36px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.strip__in::-webkit-scrollbar { display: none; }
.strip b { color: var(--g800); font-weight: 700; }
.strip a { color: var(--g600); text-decoration: none; }
.strip a:hover { color: var(--key); }
.strip .pct { font-size: .8125rem; }

/* ============================================================
 * ヘッダー
 * ========================================================== */
.site-head { background: var(--white); border-bottom: 1px solid var(--g100); position: sticky; top: 0; z-index: 50; }
.site-head__in { display: flex; align-items: center; gap: 28px; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--g800); font-weight: 700; font-size: 1.125rem; white-space: nowrap; }
.brand:hover { color: var(--g800); }
.brand img { max-height: 32px; width: auto; }
.brand__mark { flex: 0 0 auto; display: block; }
.brand__word { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; }
.brand__word span { color: var(--key); }
.nav__list, .nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; color: var(--g800); text-decoration: none; font-size: .9375rem; font-weight: 700; border-radius: var(--r); }
.nav a:hover { background: var(--g50); color: var(--g800); }
.nav .current-menu-item > a, .nav a[aria-current="page"] { color: var(--key); }
.head-search { margin-left: auto; position: relative; }
.head-search input { width: 260px; height: 40px; padding: 0 14px 0 38px; border: 1px solid transparent; border-radius: var(--r); font: inherit; font-size: .875rem; background: var(--g50); color: var(--g800); }
.head-search input:focus { background: var(--white); border-color: var(--key); outline: none; box-shadow: 0 0 0 3px var(--key-100); }
.head-search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--g536); pointer-events: none; }
.head-actions { display: none; margin-left: auto; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; color: var(--g800); border-radius: var(--r); cursor: pointer; }
.icon-btn:hover { background: var(--g50); }

/* ============================================================
 * パンくず・ページ見出し
 * ========================================================== */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 16px 0 0; padding: 0; font-size: .8125rem; color: var(--g536); }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--g420); }
.crumbs a { color: var(--g600); text-decoration: none; }
.crumbs a:hover { color: var(--key); text-decoration: underline; }
.page-head { padding: 20px 0 4px; }
.page-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); word-break: keep-all; overflow-wrap: anywhere; }
.page-head__lead { color: var(--g600); margin: 8px 0 0; max-width: 52em; font-size: .9375rem; }
.page-head .own-data { margin-bottom: 8px; }

/* ============================================================
 * セクション
 * ========================================================== */
.sec { margin: 40px 0; }
.sec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sec__head h2 { font-size: 1.25rem; }
.sec__more { font-size: .875rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
.sec__more:hover { text-decoration: underline; }
.panel { background: var(--white); border: 1px solid var(--g100); border-radius: var(--r-lg); }
.panel--pad { padding: 20px; }
.card { background: var(--white); border: 1px solid var(--g100); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* 当サイトの独自観測 */
.own-data { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--key); background: var(--key-50); border-radius: 999px; padding: 2px 12px; white-space: nowrap; }
.own-data::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--key); }

/* ============================================================
 * ボタン・チップ・セグメント（DADS Button準拠）
 * ========================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 20px; border-radius: var(--r); background: var(--key-900); color: #fff; text-decoration: none; font-weight: 700; font-size: .9375rem; border: 1px solid var(--key-900); cursor: pointer; font-family: inherit; line-height: 1.4; text-align: center; }
.btn:hover { background: var(--key-1000); border-color: var(--key-1000); color: #fff; text-decoration: underline; }
.btn--ghost { background: var(--white); color: var(--key-900); }
.btn--ghost:hover { background: var(--key-50); color: var(--key-1000); }
.btn--sm { min-height: 32px; padding: 4px 12px; font-size: .8125rem; }
.btn--lg { min-height: 52px; font-size: 1rem; }
.btn--block { width: 100%; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 32px; padding: 3px 14px; border: 1px solid var(--key-900); border-radius: var(--r); background: var(--white); color: var(--key-900); font-size: .8125rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--key-50); }
.chip.is-on { background: var(--key-900); color: #fff; }
.seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--g50); border-radius: var(--r); }
.seg button, .seg a { border: 0; background: none; padding: 5px 12px; border-radius: 6px; font-size: .8125rem; font-weight: 700; color: var(--g600); cursor: pointer; text-decoration: none; white-space: nowrap; }
.seg button[aria-pressed="true"], .seg a[aria-current="true"] { background: var(--white); color: var(--g800); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--g50); color: var(--g600); text-decoration: none; white-space: nowrap; }
a.tag:hover { background: var(--key-50); color: var(--key); }
.rank-chip { display: inline-block; font-size: .8125rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--g50); color: var(--g600); }

/* ============================================================
 * 表（CMC型）
 * ========================================================== */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl th { text-align: left; font-weight: 700; font-size: .8125rem; color: var(--g800); padding: 10px; border-top: 1px solid var(--g100); border-bottom: 1px solid var(--g100); white-space: nowrap; background: var(--white); line-height: 1.4; }
.tbl th small { font-weight: 400; color: var(--g536); }
.tbl th button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.tbl th button:hover { color: var(--key); }
.tbl th[aria-sort] button::after { content: "▼"; font-size: .625rem; margin-left: 4px; color: var(--key); }
.tbl th[aria-sort="ascending"] button::after { content: "▲"; }
.tbl td { padding: 14px 10px; border-bottom: 1px solid var(--g100); vertical-align: middle; }
.tbl tbody tr:hover { background: #fafafa; }
.tbl .r { text-align: right; }
.tbl .c-rank { width: 44px; color: var(--g536); text-align: left; }
.tbl-wrap .tbl { min-width: 560px; }
.coin-cell { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--g800); min-width: 0; }
.coin-cell:hover b { color: var(--key); }
.coin-cell__txt { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.coin-cell b { font-weight: 700; white-space: nowrap; }
.coin-cell small { color: var(--g536); font-size: .8125rem; }
.coin-icon { border-radius: 50%; flex: 0 0 auto; }
.coin-icon--blank { display: inline-grid; place-items: center; background: var(--g100); color: var(--g600); font-size: .75rem; font-weight: 700; }
.ex-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--g800); white-space: nowrap; }
.ex-badge img { width: 20px; height: 20px; border-radius: 50%; }
.ex-cell { text-decoration: none; }
.ex-cell:hover .ex-badge { color: var(--key); }
.ex-cell__sub { display: block; color: var(--g536); font-size: .75rem; margin-top: 2px; }
.best-tag { display: inline-block; font-size: .6875rem; font-weight: 700; color: #fff; background: var(--key); border-radius: 4px; padding: 0 6px; margin-left: 6px; }
.best-v { font-weight: 700; margin-left: 4px; }
.c-hl small { display: block; color: var(--g536); font-size: .8125rem; }
.c-act { white-space: nowrap; }
.c-act .btn + .btn { margin-left: 6px; }
.tbl--market .c-spark { width: 136px; }
.tbl--extra .c-hl { display: none; }
.tbl--market .c-best { min-width: 200px; }
.tbl tr.is-best-row td { background: #f6fbf8; }
.spark { display: inline-block; vertical-align: middle; }
.spark--none { width: 120px; height: 36px; }
.mkt__empty { padding: 24px 10px; color: var(--g536); text-align: center; margin: 0; }
.stars { color: var(--star); letter-spacing: 1px; font-size: .875rem; margin-left: 4px; }

/* ============================================================
 * トップ
 * ========================================================== */
.home-title { padding: 24px 0 0; }
.home-title h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.home-title p { color: var(--g600); margin: 6px 0 0; font-size: .9375rem; }
.hl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 24px; }
.hl { padding: 14px 16px 8px; }
.hl__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.hl__head h2 { font-size: .9375rem; }
.hl__head a { font-size: .8125rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hl ol { list-style: none; margin: 0; padding: 0; }
.hl li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 0; font-size: .875rem; }
.hl li > span:first-child { color: var(--g536); font-variant-numeric: tabular-nums; }
.hl li a { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--g800); text-decoration: none; font-weight: 700; }
.hl li a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl li a:hover { color: var(--key); }
.hl li b { font-variant-numeric: tabular-nums; }
.hl__empty { color: var(--g536); font-size: .875rem; padding: 8px 0 12px; margin: 0; }
.mkt-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.mkt-bar .stamp { margin: 0; white-space: nowrap; }
.home-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }

/* ============================================================
 * 銘柄ページ（左に指標・右にチャートとマーケット）
 * ========================================================== */
.coin-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 16px; }
.coin-side { position: sticky; top: calc(var(--head-h) + 16px); display: grid; gap: 16px; }
.coin-id { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coin-id h1 { font-size: 1.25rem; }
.coin-id .sym { color: var(--g536); font-size: .875rem; font-weight: 700; }
.coin-px { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.coin-px__v { font-size: clamp(1.75rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.chg-chip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 8px; border-radius: 6px; color: #fff; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.chg-chip.is-up { background: var(--up); }
.chg-chip.is-down { background: var(--down-bg); }
.chg-chip.is-flat { background: var(--g600); }
.range__track { position: relative; height: 6px; background: var(--g100); border-radius: 3px; }
.range__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--key); border-radius: 3px; }
.range__lbl { display: flex; justify-content: space-between; gap: 8px; font-size: .8125rem; color: var(--g600); margin-top: 6px; }
.range__lbl span:nth-child(2) { color: var(--g536); }
.stat-card { border: 1px solid var(--g100); border-radius: var(--r-lg); padding: 4px 16px; margin: 0; }
.stat-card > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--g100); font-size: .875rem; }
.stat-card > div:last-child { border-bottom: 0; }
.stat-card dt { color: var(--g600); }
.stat-card dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.stat-card dd small { font-weight: 400; color: var(--g536); }
.coin-side .pr-note { margin: -4px 0 0; }
.coin-side .crumbs ol { margin: 0; }
.chg-chip small { font-size: .75rem; font-weight: 700; opacity: .9; }
.tabs { position: sticky; top: var(--head-h); z-index: 20; background: var(--white); border-bottom: 1px solid var(--g100); display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 0; color: var(--g600); text-decoration: none; font-weight: 700; font-size: .875rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--g800); }
.tabs a.is-on { color: var(--key); border-bottom-color: var(--key); }
.coin-main > .sec:first-of-type { margin-top: 24px; }

/* ============================================================
 * チャート
 * ========================================================== */
.chart__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.chart__note { font-size: .8125rem; color: var(--g536); }
.chart__range { display: none; }
.chart__range.is-on { display: block; }
.chart svg { display: block; width: 100%; height: 280px; }
.chart svg.is-up { color: var(--up-bg); }
.chart svg.is-down { color: var(--down); }
.chart__grid { stroke: var(--g100); stroke-dasharray: 3 4; }
.chart__axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--g536); margin-top: 4px; }
.chart__minmax { display: flex; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--g600); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--g100); }
.chart__minmax b { color: var(--g800); }

/* ============================================================
 * スプレッドバー（売値〜買値の幅）
 * ========================================================== */
.board { border: 1px solid var(--g100); border-radius: var(--r-lg); padding: 16px 20px 12px; }
.board__axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--g536); margin: 0 158px 4px 168px; }
.board__row { display: grid; grid-template-columns: 160px 1fr 150px; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--g100); }
.board__row:first-of-type { border-top: 0; }
.board__track { position: relative; height: 26px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--g100) calc(25% - 1px) 25%); border-radius: 4px; }
.board__band { position: absolute; top: 7px; height: 12px; background: var(--g420); border-radius: 3px; min-width: 3px; }
.board__band::before, .board__band::after { content: ""; position: absolute; top: -5px; width: 2px; height: 22px; }
.board__band::before { left: -1px; background: var(--down); }
.board__band::after { right: -1px; background: var(--up); }
.board__row.is-best .board__band { background: var(--key); }
.board__vals { text-align: right; font-size: .8125rem; line-height: 1.35; color: var(--g600); }
.board__vals b { display: block; font-size: 1rem; color: var(--g800); }
.board__legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .75rem; color: var(--g536); margin-top: 10px; }
.board__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ============================================================
 * 2カラム（記事・取引所・ニュース）
 * ========================================================== */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.aside > * + * { margin-top: 20px; }
.aside h2 { font-size: 1rem; margin-bottom: 10px; }

/* ============================================================
 * 本文
 * ========================================================== */
.prose { max-width: 46em; }
.prose h2 { font-size: 1.25rem; margin: 2em 0 .7em; padding-bottom: .4em; border-bottom: 1px solid var(--g100); }
.prose h3 { font-size: 1.0625rem; margin: 1.6em 0 .5em; }
.prose h2:first-child, .prose .toc + h2, .prose .byline + h2 { margin-top: 0; }
.prose .lead { font-size: 1.0625rem; font-weight: 500; line-height: 1.8; }
.prose .asof { font-size: .8125rem; color: var(--g536); margin-top: 1.6em; }
.prose .tbl-scroll { overflow-x: auto; }
.prose caption { text-align: left; font-size: .8125rem; color: var(--g536); padding-bottom: 6px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.prose th, .prose td { border: 1px solid var(--g100); padding: 8px 10px; text-align: left; }
.prose th { background: var(--g50); }
.prose blockquote { margin: 1.2em 0; padding: 4px 16px; border-left: 3px solid var(--g100); color: var(--g600); }
.page-body { margin-top: 16px; }
.toc { background: var(--g50); border-radius: var(--r); padding: 14px 18px; margin-bottom: 24px; }
.toc__title { font-weight: 700; margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8125rem; color: var(--g536); margin: 4px 0 16px; }
.byline b { color: var(--g600); font-weight: 700; }
.pending { border: 1px dashed var(--g420); border-radius: var(--r); padding: 16px 18px; color: var(--g600); font-size: .875rem; background: var(--g50); }

/* ============================================================
 * よくある質問
 * ========================================================== */
.faq details { border-bottom: 1px solid var(--g100); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--g600); font-weight: 700; }
.faq details[open] summary::after { content: "－"; }
.faq .faq__a { padding: 0 0 16px; color: var(--g600); }

/* ============================================================
 * 取引所
 * ========================================================== */
.score-big { font-size: 2.5rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.crit-list { display: grid; gap: 10px; }
.crit { display: grid; grid-template-columns: 76px 1fr 36px; gap: 10px; align-items: center; font-size: .8125rem; color: var(--g600); }
.crit__bar { height: 6px; background: var(--g100); border-radius: 3px; overflow: hidden; }
.crit__bar span { display: block; height: 100%; background: var(--key); }
.crit__v { text-align: right; font-weight: 700; color: var(--g800); font-variant-numeric: tabular-nums; }
.ex-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; }

/* ============================================================
 * 口コミ
 * ========================================================== */
.reviews { display: grid; gap: 12px; }
.review { border: 1px solid var(--g100); border-radius: var(--r-lg); padding: 14px 18px; }
.review__head { display: flex; justify-content: space-between; gap: 10px; font-size: .8125rem; color: var(--g536); margin-bottom: 6px; }
.review__head b { color: var(--g800); }
.review p { margin: 0; color: var(--g600); font-size: .9375rem; }
.rform { display: grid; gap: 14px; }
.rform label { display: grid; gap: 4px; font-size: .875rem; font-weight: 700; color: var(--g800); }
.rform select, .rform input, .rform textarea { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-weight: 400; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--g420); border-radius: var(--r); background: var(--white); color: var(--g800); }
.rform select:focus, .rform input:focus, .rform textarea:focus { outline: none; border-color: var(--key); box-shadow: 0 0 0 3px var(--key-100); }
.rform__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.notice-box { padding: 12px 16px; border-radius: var(--r); font-size: .9375rem; margin-bottom: 16px; }
.notice-box--ok { background: #e6f5ec; color: var(--up); }
.notice-box--ng { background: #fdeeee; color: var(--down-bg); }

/* ============================================================
 * ニュース
 * ========================================================== */
.news-day + .news-day { margin-top: 28px; }
.news-day__date { font-size: 1rem; color: var(--g600); margin-bottom: 4px; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--g100); }
.news-list li { padding: 14px 0; border-bottom: 1px solid var(--g100); }
.news-list a { color: var(--g800); text-decoration: none; font-weight: 700; line-height: 1.6; }
.news-list a:hover { color: var(--key); text-decoration: underline; }
.news-list__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .75rem; color: var(--g536); margin-top: 4px; }
.news-list__meta .has-sum { color: var(--key); font-weight: 700; }
.news-list__meta .tag { font-weight: 700; }
.summary { background: var(--key-50); border-radius: var(--r-lg); padding: 18px 22px; }
.summary__label { font-size: .8125rem; font-weight: 700; color: var(--key); margin-bottom: 8px; }
.summary p { max-width: 42em; }
.source { background: var(--g50); border-radius: var(--r); padding: 14px 18px; font-size: .875rem; color: var(--g600); }

/* ============================================================
 * 記事カード
 * ========================================================== */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.post-card a { text-decoration: none; color: var(--g800); }
.post-card a:hover h3 { color: var(--key); }
.post-card img { border-radius: var(--r); aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--g50); }
.post-card h3 { font-size: 1rem; margin-top: 8px; }
.post-card time { font-size: .75rem; color: var(--g536); }
.data-card { display: block; text-decoration: none; color: var(--g800); padding: 20px; }
.data-card:hover { border-color: var(--key); color: var(--g800); }
.data-card h2 { font-size: 1.125rem; margin: 10px 0 6px; }
.data-card p { margin: 0; font-size: .875rem; color: var(--g600); }

/* ============================================================
 * マトリクス（独自データ）
 * ========================================================== */
.matrix td.cell { text-align: right; font-variant-numeric: tabular-nums; }
.matrix td.cell.is-min { background: var(--key-50); color: var(--key-900); font-weight: 700; }
.method { font-size: .875rem; color: var(--g600); margin: 0; }
.method dt { font-weight: 700; color: var(--g800); margin-top: 10px; }
.method dt:first-child { margin-top: 0; }
.method dd { margin: 2px 0 0; }

/* ============================================================
 * 広告・PR
 * ========================================================== */
.ad-slot { margin: 28px 0; text-align: center; }
.ad-slot__label { display: block; font-size: .6875rem; color: var(--g536); margin-bottom: 4px; }
.pr-note { font-size: .75rem; color: var(--g536); margin: 8px 0 0; line-height: 1.6; }

/* ============================================================
 * フッター
 * ========================================================== */
.site-foot { margin-top: 72px; background: var(--g50); color: var(--g600); font-size: .8125rem; }
.site-foot a { color: var(--g800); text-decoration: none; }
.site-foot a:hover { color: var(--key); text-decoration: underline; }
.site-foot__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 40px var(--gut) 24px; }
.site-foot h2 { font-size: .875rem; color: var(--g800); margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot__note { border-top: 1px solid var(--g100); padding: 16px var(--gut) 28px; font-size: .75rem; color: var(--g536); }

/* ============================================================
 * ページ送り
 * ========================================================== */
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pager .page-numbers { min-width: 36px; padding: 6px 12px; border-radius: var(--r); text-decoration: none; color: var(--g800); font-weight: 700; text-align: center; }
.pager a.page-numbers:hover { background: var(--g50); }
.pager .current { background: var(--key-50); color: var(--key); }

/* ============================================================
 * 下部タブバー（スマホ）
 * ========================================================== */
.tabbar { display: none; }

/* ============================================================
 * レスポンシブ
 * ========================================================== */
@media (max-width: 1080px) {
	.tbl--market .c-hl { display: none; }
	.coin-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 28px; }
	.head-search input { width: 200px; }
}
@media (max-width: 960px) {
	.coin-layout, .cols, .home-cols, .ex-hero { grid-template-columns: minmax(0, 1fr); }
	.coin-side { position: static; }
	.hl-grid { grid-template-columns: minmax(0, 1fr); }
	.hl-grid > .hl:nth-child(n+2) { display: none; }
	.site-foot__in { grid-template-columns: 1fr 1fr; }
	.tbl--market .c-7d, .tbl--market .c-cat { display: none; }
}
@media (max-width: 760px) {
	:root { --head-h: 56px; --gut: 16px; }
	body { padding-bottom: 64px; }
	.site-head__in { gap: 12px; }
	.head-actions { display: flex; }
	.head-search { display: none; position: absolute; left: 0; right: 0; top: var(--head-h); background: var(--white); border-bottom: 1px solid var(--g100); padding: 10px var(--gut); margin: 0; }
	.head-search.is-open { display: block; }
	.head-search input { width: 100%; }
	.head-search .ico { left: calc(var(--gut) + 12px); }
	.nav { display: none; position: absolute; left: 0; right: 0; top: var(--head-h); background: var(--white); border-bottom: 1px solid var(--g100); padding: 4px var(--gut) 12px; }
	.nav.is-open { display: block; }
	.nav__list, .nav ul { flex-direction: column; }
	.nav a { padding: 12px 4px; border-bottom: 1px solid var(--g100); border-radius: 0; }
	.strip__in { gap: 16px; min-height: 32px; }
	.sec { margin: 32px 0; }
	.home-title h1 { font-size: 1.5rem; }
	.hl-grid { margin: 16px 0; }

	/* ランキング：1行リスト（アイコン・名前・7日・価格／24時間） */
	.tbl-wrap .tbl.tbl--market { min-width: 0; }
	.tbl--market thead { display: none; }
	.tbl--market .c-24h, .tbl--market .c-best, .tbl--market .c-nex { display: none; }
	.tbl--market, .tbl--market tbody { display: block; }
	.tbl--market tr { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--g100); }
	.tbl--market tr[hidden] { display: none; }
	.tbl--market td { display: block; padding: 12px 0; border-bottom: 0; }
	.tbl--market td.c-rank { order: 1; flex: 0 0 22px; }
	.tbl--market td.c-name { order: 2; flex: 1 1 auto; min-width: 0; }
	.tbl--market td.c-spark { order: 3; flex: 0 0 72px; }
	.tbl--market td.c-price { order: 4; flex: 0 0 108px; width: 108px; }
	.tbl--market td.c-spark { width: 72px; }
	.tbl--market .c-rank { width: 26px; font-size: .8125rem; }
	.tbl--market .c-spark { width: 80px; }
	.tbl--market .spark { width: 72px; height: 28px; }
	.tbl--market .spark--none { width: 72px; height: 28px; }
	.tbl--market .c-price { width: 1%; white-space: nowrap; }
	.tbl--market .c-price b { display: block; font-size: .875rem; }
	.tbl--market .c-price .pct { font-size: .8125rem; }
	.tbl--market .sm-only { display: block; }
	.tbl--market .coin-cell__txt { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.4; }
	.tbl--market .coin-cell b { font-size: .875rem; display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
	.tbl--market .coin-cell small { font-size: .75rem; }
	.mkt-bar { flex-direction: column; align-items: stretch; gap: 8px; }

	.tbl--ex .c-hide-sm, .tbl--mk .c-hide-sm { display: none; }
	.tbl-wrap .tbl.tbl--mk { min-width: 0; }
	.tbl--ex .ex-cell__sub { display: none; }
	.tbl-wrap .tbl.tbl--ex { min-width: 0; }
	.tbl th, .tbl td { padding: 10px 6px; }

	.board { padding: 12px; }
	.board__axis { margin: 0 0 4px; }
	.board__row { grid-template-columns: 1fr auto; grid-template-areas: "name vals" "track track"; }
	.board__row > :nth-child(1) { grid-area: name; }
	.board__row > :nth-child(2) { grid-area: track; }
	.board__row > :nth-child(3) { grid-area: vals; }
	.chart svg { height: 200px; }
	.tabs { gap: 20px; }
	.rform__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-foot__in { grid-template-columns: 1fr; }

	.tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); border-top: 1px solid var(--g100); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
	.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--g600); font-size: .6875rem; font-weight: 700; padding: 2px 0; }
	.tabbar a[aria-current="page"] { color: var(--key); }
}
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
