:root {
  --bg: #0e1726;
  --bg-2: #111c30;
  --panel: #182540;
  --text: #e6ecf5;
  --muted: #8aa0c0;
  --accent: #00a0e9;
  --accent-2: #0077b6;
  --pos: #2ecc71;
  --neg: #ff5c7a;
  --border: #23324f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 160, 233, 0.35);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
}
.logo-text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

.topnav { display: flex; gap: 4px; flex: 1; margin-left: 20px; flex-wrap: wrap; }
.topnav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
}
.topnav a:hover { background: var(--panel); color: var(--text); }
.topnav a.active { background: var(--accent-2); color: #fff; }

.topright { color: var(--muted); display: flex; gap: 16px; align-items: center; }

.main { min-height: calc(100vh - 100px); }

.sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
}
.side-title { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.sidebar ul { list-style: none; padding: 0; margin: 0 0 20px; }
.sidebar li a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
}
.sidebar li a:hover { background: var(--panel); }
.sidebar li.active a { background: var(--accent-2); color: #fff; }
.side-note { color: var(--muted); font-size: 11px; }

.content { padding: 20px 24px; }
h1 { margin-top: 0; font-size: 20px; }
h2 { margin-top: 28px; font-size: 16px; color: var(--muted); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.card-label { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.card-value { font-size: 22px; font-weight: 600; }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 8px 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.table-wrap .tbl {
  margin: 0;
  border: 0;
  border-radius: 0;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 8px 0 16px;
}
.tbl th, .tbl td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.tbl th { background: var(--bg-2); color: var(--muted); font-weight: 500; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.total th, .tbl tr.total td { background: var(--bg-2); font-weight: 700; }

.pos { color: var(--pos); }
.neg { color: var(--neg); }

/* --- 1JPYあたりの数量 カード --- */
.rate-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin: 2px 0 10px;
}
.rate-meta-src { opacity: 0.8; }
.rate-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.rate-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rate-card-sym {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  background: rgba(0, 160, 233, 0.12);
  border: 1px solid rgba(0, 160, 233, 0.35);
  padding: 2px 10px;
  border-radius: 999px;
}
.rate-card-eq {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.rate-card-eq .rate-from {
  color: var(--muted);
  font-size: 13px;
}
.rate-card-eq .rate-op {
  color: var(--muted);
  font-size: 16px;
}
.rate-card-eq .rate-to {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.rate-card-eq .rate-unit {
  color: var(--muted);
  font-size: 13px;
  margin-left: -4px;
}
.rate-card-ref {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .main { grid-template-columns: 1fr; }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
  }
  .sidebar ul { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
  .sidebar li { flex: 0 0 auto; }
  .side-title, .side-note { display: none; }
}

.form { display: grid; gap: 10px; max-width: 480px; }
.form label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.form input, .form select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
}

.btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.btn:hover { background: var(--bg-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }

.placeholder {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

.news { list-style: none; padding: 0; }
.news li {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.news .date { color: var(--muted); margin-right: 12px; }

.note { color: var(--muted); font-size: 12px; }

.footer {
  padding: 18px 24px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 200px;
  text-align: center;
}
.footer-src { color: var(--muted); }
.footer-note { color: var(--muted); opacity: 0.75; font-size: 11px; }
.footer-copy { color: var(--muted); white-space: nowrap; }

.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

/* --- mobile (<=768px) --- */
@media (max-width: 768px) {
  body { font-size: 13px; }

  .topbar {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 12px;
  }
  .brand { gap: 8px; }
  .topnav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a {
    padding: 6px 10px;
    white-space: nowrap;
    font-size: 13px;
  }
  .topright {
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    margin-left: auto;
  }
  .topright .time { display: none; }

  .sidebar { display: none; }

  .content { padding: 14px 12px; }
  h1 { font-size: 18px; }
  h2 { font-size: 14px; margin-top: 20px; }

  .cards {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }
  .card { padding: 10px 12px; }
  .card-label { font-size: 11px; }
  .card-value { font-size: 18px; }

  .rate-cards { grid-template-columns: 1fr; gap: 8px; }
  .rate-card { padding: 12px 14px; }
  .rate-card-eq .rate-to { font-size: 18px; }

  .tbl th, .tbl td { padding: 8px 10px; }

  .two-col { gap: 16px; }

  .form { max-width: 100%; }
  .form input, .form select { font-size: 16px; } /* prevent iOS zoom on focus */

  .footer {
    padding: 14px 14px;
    font-size: 11px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .footer-info { text-align: left; min-width: 0; }
}

/* --- very small phones (<=420px) --- */
@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card-value { font-size: 16px; }
}

/* --- coinyep 風 グリッド換算 UI（ブラッシュアップ版） --- */
.cy-page { max-width: 1080px; margin: 0 auto; }

.page-intro {
  margin: 2px 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.cy-freshness {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.cy-freshness-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 160, 233, 0.18);
}

.cy-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 14px;
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.cy-section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.cy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px;
}

/* 横並びセル：左＝通貨ラベル、右＝入力ボックス */
.cy-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cy-cell:hover {
  border-color: #33507e;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.cy-cell-primary {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0, 160, 233, 0.10), rgba(0, 160, 233, 0.02)), var(--panel);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.cy-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.cy-label-link {
  text-decoration: none;
  cursor: pointer;
}
.cy-label-link:hover .cy-name {
  text-decoration: underline;
}
.cy-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cy-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-weight: 800;
  line-height: 1;
}
.cy-badge-fiat { font-size: 16px; }
.cy-badge-coin { font-size: 10px; letter-spacing: -0.3px; }

/* 入力ボックスを大きく見やすく */
.cy-input {
  flex: 0 0 auto;
  width: 180px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 20px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: textfield;
  -moz-appearance: textfield;
}
.cy-input::-webkit-outer-spin-button,
.cy-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cy-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 160, 233, 0.22);
}
.cy-cell-primary .cy-input {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

/* --- スマホ対応 --- */
@media (max-width: 760px) {
  .cy-grid { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 480px) {
  .page-intro { font-size: 14px; margin-bottom: 16px; }
  .cy-section-title { font-size: 16px; margin: 20px 0 10px; }
  .cy-cell { gap: 10px; padding: 12px 12px; border-radius: 10px; }
  .cy-cell:hover { transform: none; box-shadow: none; }
  .cy-badge { width: 30px; height: 30px; }
  .cy-badge-fiat { font-size: 14px; }
  .cy-name { font-size: 13px; }
  .cy-input {
    width: 44%;
    max-width: 210px;
    padding: 11px 12px;
    font-size: 17px;   /* 16px 以上で iOS の自動ズームを回避 */
  }
  .cy-cell-primary .cy-input { font-size: 19px; }
}

/* --- crypto price card (dark theme) --- */
.price-card,
.top-convert {
  margin: 18px 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.top-convert .price-converter {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.price-header h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--text);
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.price-row-sub { margin-top: 2px; }
.price-label {
  color: var(--muted);
  font-size: 12px;
}
.price-jpy {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}
.price-usd {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.price-unit {
  color: var(--muted);
  font-size: 12px;
}
.price-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.price-status { font-weight: 600; }
.price-status-live { color: var(--pos); }
.price-status-connecting { color: #e0a82e; }
.price-status-down { color: var(--neg); }
.price-source { opacity: 0.75; }
.price-jpy,
.price-usd { transition: color 0.6s ease-out; }
.price-jpy.price-up,
.price-usd.price-up { color: var(--pos); }
.price-jpy.price-down,
.price-usd.price-down { color: var(--neg); }
.price-converter {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.price-field {
  flex: 1 1 220px;
  min-width: 0;
}
.price-swap {
  flex: 0 0 auto;
  align-self: center;
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
  user-select: none;
}
.price-input-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.price-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-input-row input {
  flex: 0 1 220px;
  padding: 8px 10px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.price-input-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 160, 233, 0.18);
}
.price-input-unit {
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 480px) {
  .price-jpy { font-size: 22px; }
  .price-usd { font-size: 16px; }
  .price-input-row input { flex: 1 1 auto; }
}

/* ---- 過去価格ページ（銘柄共通） ---- */
.uc-page { max-width: 1080px; margin: 0 auto; }
.card-sub { margin-top: 6px; font-size: 12px; }
.card-muted { color: var(--muted); }
.uc-unit { font-size: 14px; color: var(--muted); font-weight: 500; }
.uc-change { font-weight: 700; }
.uc-change.pos { color: var(--pos); }
.uc-change.neg { color: var(--neg); }

/* 銘柄切り替えタブ */
.uc-coinswitch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 2px 0 16px;
}
.uc-coin-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: border-color .12s, color .12s, background .12s;
}
.uc-coin-tab:hover { color: var(--text); border-color: var(--coin-color, var(--accent-2)); }
.uc-coin-tab.active {
  color: #fff;
  background: var(--coin-color, var(--accent-2));
  border-color: transparent;
}
.uc-coin-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.uc-coin-tab.active .uc-coin-dot { background: #fff !important; }

.uc-controls { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 12px; }
.uc-range-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.uc-range-btn:hover { color: var(--text); border-color: var(--accent-2); }
.uc-range-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}

/* 表示通貨トグル（円 / ドル）。範囲ボタンの右側に配置 */
.uc-ccy-toggle {
  display: inline-flex;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}
.uc-ccy-btn {
  background: var(--panel);
  border: 0;
  color: var(--muted);
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.uc-ccy-btn + .uc-ccy-btn { border-left: 1px solid var(--border); }
.uc-ccy-btn:hover { color: var(--text); }
.uc-ccy-btn.active { background: var(--accent-2); color: #fff; }

.uc-chart-wrap {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 12px;
}
#uc-chart {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 380;
  touch-action: pan-y;
}
.uc-grid { stroke: var(--border); stroke-width: 1; }
.uc-ylabel { fill: var(--muted); font-size: 12px; }
.uc-xlabel { fill: var(--muted); font-size: 12px; }
.uc-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.uc-area { fill: rgba(0, 160, 233, 0.14); stroke: none; }
.uc-hover-line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; }
.uc-hover-dot { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }

.uc-tooltip {
  position: absolute;
  top: 10px;
  background: rgba(8, 14, 26, 0.95);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  pointer-events: none;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.uc-tooltip strong { display: block; color: var(--text); font-size: 14px; }
.uc-tooltip span { color: var(--muted); }

.uc-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.uc-freshness { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.uc-freshness-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, .18);
}

@media (max-width: 560px) {
  .uc-ylabel, .uc-xlabel { font-size: 18px; }
  .content { padding: 16px 14px; }
}

/* ---- 暗号資産換算への導線ボタン ---- */
.uc-cta { margin: 22px 0 8px; }
.uc-cta-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(0, 160, 233, 0.28);
  transition: transform .12s ease, box-shadow .12s ease;
}
.uc-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 160, 233, 0.42);
}
.uc-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.uc-cta-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.uc-cta-text small {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: 0;
}
.uc-cta-arrow { font-size: 20px; font-weight: 700; opacity: 0.85; flex: 0 0 auto; }

@media (max-width: 560px) {
  .uc-cta-text { font-size: 15px; }
  .uc-cta-text small { font-size: 11px; }
}

/* 換算グリッドで履歴のある銘柄ラベルのチャート誘導ヒント */
.cy-chart-hint { font-size: 11px; opacity: 0.7; margin-left: 2px; }

/* 日次価格テーブル（ページャ付き） */
.uc-table-section { margin: 24px 0 8px; }
.uc-table-title { font-size: 15px; margin: 0 0 10px; color: var(--text); font-weight: 700; }
.uc-table-wrap .tbl td { font-variant-numeric: tabular-nums; }
.uc-table-note { margin: 10px 0 0; }

.uc-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 12px 0 0;
}
.uc-page-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s, border-color .12s, opacity .12s;
}
.uc-page-btn:hover:not(:disabled) { border-color: var(--accent-2); background: var(--bg-2); }
.uc-page-btn:disabled { opacity: 0.4; cursor: default; }
.uc-page-ind {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  min-width: 120px;
  text-align: center;
}
