:root {
  --ink: #14211e;
  --muted: #5c6b67;
  --line: #e3eae7;
  --bg: #f3f6f4;
  --card: #fff;
  --accent: #0e7c66;
  --accent-ink: #083f35;
  --up: #0b8f4d;
  --down: #c43b3b;
  --gold: #c8962e;
  --shadow: 0 10px 30px rgba(16, 40, 34, .06);
  --max: 1180px;
  --header: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans", "Noto Sans", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--accent); color: #fff;
  padding: 8px 12px; border-radius: 8px; z-index: 20;
}
.skip:focus { top: 8px; }
.header {
  position: sticky; top: 0; z-index: 30; height: var(--header);
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in, .wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.header-in { height: 100%; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 750; letter-spacing: .04em; }
.brand img { width: 32px; height: 32px; display: block; }
.brand b { font-size: 18px; }
.search {
  display: flex; align-items: center; gap: 8px; flex: 0 1 220px;
  background: #f4f7f6; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px;
}
.search input { border: 0; background: transparent; width: 100%; outline: none; }
.nav { display: flex; gap: 4px; align-items: center; margin-left: 8px; }
.nav > a, .nav > button.navbtn {
  padding: 8px 10px; border-radius: 10px; color: #24332f; font-weight: 600;
}
.nav > a.on, .nav > button.navbtn.on { background: #e7f4f0; color: var(--accent-ink); }
.grow { flex: 1; }
.tools { display: flex; align-items: center; gap: 8px; }
.ghost, .solid, .chip, .tf, .langbtn {
  border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 8px 12px; font-weight: 650;
}
.solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.langbtn { display: flex; align-items: center; gap: 6px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 12px; }
.menu-pop, .lang-pop, .dialog {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 8px; z-index: 40;
}
.menu-pop { top: 58px; min-width: 240px; }
.menu-pop a, .lang-pop button, .sheet a { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; }
.menu-pop a:hover, .lang-pop button:hover, .sheet a:hover, .chip:hover, .tf:hover { background: #f3f7f5; }
.lang-pop { right: 16px; top: 58px; display: grid; grid-template-columns: 1fr 1fr; min-width: 280px; }
.sheet { display: none; }
.page { padding: 22px 0 64px; }
.crumbs { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--accent); }
h1 { font-size: 40px; line-height: 1.1; margin: 8px 0 14px; letter-spacing: -.03em; }
.subnav { display: flex; gap: 8px; overflow: auto; padding-bottom: 8px; margin-bottom: 18px; }
.subnav a {
  white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 650;
}
.subnav a.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.section { margin-top: 22px; }
.section h2 { margin: 0; font-size: 22px; }
.headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.headrow a.more { color: var(--accent); font-weight: 700; }
.strip { display: flex; gap: 12px; overflow: auto; padding-bottom: 8px; }
.pair {
  display: block; min-width: 188px; text-align: left; padding: 12px 14px 10px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: inherit;
}
.pair:hover { border-color: var(--accent); }
.pair.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pair-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pair .sym, .quotehead .sym { font-weight: 750; font-size: 14px; }
.pair .sub, .quotehead .sub { color: var(--muted); font-size: 12px; margin-top: 2px; white-space: nowrap; }
.pair .px { font-size: 24px; letter-spacing: -.03em; margin-top: 8px; line-height: 1.1; }
.spark { width: 100%; height: 46px; display: block; margin-top: 8px; }
.px { font-variant-numeric: tabular-nums; font-weight: 750; font-size: 20px; }
.chg {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12px; line-height: 1.4;
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: #eef3f1; white-space: nowrap;
}
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }
.chg.up { background: #e7f6ee; }
.chg.down { background: #fdecec; }
.chg.flat { background: #eef3f1; }
.marks { display: inline-flex; gap: 4px; align-items: center; }
.cc {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 18px; padding: 0 5px;
  border-radius: 5px; background: #e7f3ef; color: #0e7c66; font-size: 10px; font-weight: 800; letter-spacing: .04em;
}
.quotehead .px { font-size: 30px; letter-spacing: -.03em; }
.pxrow { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.chartbox { padding: 16px 16px 12px; }
.chart-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.tfs { display: flex; flex-wrap: wrap; gap: 6px; }
.tf.on { background: var(--accent); color: #fff; border-color: var(--accent); }
svg.chart { width: 100%; height: 260px; display: block; margin-top: 4px; }
.grid { stroke: #e4ece8; stroke-width: 1; }
.legend { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 4px; }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--accent); margin-right: 6px; }
.tick-up { animation: tapeup .6s ease; }
.tick-down { animation: tapedn .6s ease; }
@keyframes tapeup { from { box-shadow: 0 0 0 3px rgba(11, 143, 77, .28); } }
@keyframes tapedn { from { box-shadow: 0 0 0 3px rgba(196, 59, 59, .24); } }
.live { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; display: inline-block; margin-right: 6px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rowline {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center;
  padding: 10px 4px; border-top: 1px solid var(--line); width: 100%; text-align: left;
}
.list { padding: 6px 14px 12px; }
.tabs { display: flex; gap: 8px; }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ideas { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.idea { padding: 0; overflow: hidden; text-align: left; display: block; flex: 0 0 300px; width: 300px; }
.idea .pad { padding: 14px; }
.idea h3 { margin: 0 0 8px; font-size: 16px; }
.idea p { margin: 0; color: #3d4d49; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.thumb { height: 168px; background: #e7f4f0; }
.thumb img { width: 100%; height: 168px; object-fit: cover; display: block; }
.meta { margin-top: 10px; color: var(--muted); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
table.heat { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13px; }
table.heat th, table.heat td { padding: 8px 6px; text-align: center; border-radius: 8px; }
table.heat th { font-weight: 700; }
.cell { color: #fff; font-weight: 700; }
.newsgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.newsgrid a, .calgrid a { display: block; padding: 14px; }
.kicker { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.calgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.impact { display: flex; gap: 3px; }
.impact i { width: 7px; height: 7px; border-radius: 50%; background: #d5ddd9; }
.impact i.on { background: var(--gold); }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.faq summary { cursor: pointer; font-weight: 750; }
.faq p { color: #3d4d49; }
.footer { background: #10211c; color: #d5e4de; padding: 36px 0 28px; }
.footer a { color: #d5e4de; }
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.footer h3 { margin: 0 0 8px; color: #fff; font-size: 14px; }
.footer li { list-style: none; margin: 6px 0; }
.footer ul { margin: 0; padding: 0; }
.footend { margin-top: 22px; display: flex; justify-content: space-between; gap: 12px; color: #8ea79f; font-size: 13px; }
.prose { padding: 8px 0 12px; max-width: 760px; }
.prose p { color: #31423e; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan { padding: 18px; }
.plan b { font-size: 28px; }
.dialog-back { position: fixed; inset: 0; background: rgba(10, 20, 18, .35); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { position: relative; width: min(420px, 100%); padding: 18px; }
.dialog label { display: block; margin: 10px 0 6px; font-weight: 700; }
.dialog input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.quote-hero { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; }
.big { font-size: 42px; font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.stat { background: #f6faf8; border-radius: 12px; padding: 10px; }
.stat span { display: block; color: var(--muted); font-size: 12px; }
.article { max-width: 760px; }
.article h1 { font-size: 32px; }
@media (max-width: 980px) {
  .cols, .ideas, .newsgrid, .calgrid, .faq, .plans, .fgrid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 32px; }
}
@media (max-width: 760px) {
  .nav, .search { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .sheet.open { display: block; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .cols, .ideas, .newsgrid, .calgrid, .faq, .plans, .fgrid, .stats { grid-template-columns: 1fr; }
  .footend { flex-direction: column; }
  .big { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .live { animation: none; }
}
