.tryjpy-swap-wrap { margin: 20px 0; font-size: 15px; }
.tryjpy-swap-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; font-size: 13px; color: #555; }
.tryjpy-swap-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tryjpy-swap-table { border-collapse: collapse; width: 100%; min-width: 900px; background: #fff; }
.tryjpy-swap-table th, .tryjpy-swap-table td { border: 1px solid #ddd; padding: 8px 10px; text-align: right; white-space: nowrap; }
.tryjpy-swap-table th.is-text, .tryjpy-swap-table td.is-text { text-align: left; }
.tryjpy-swap-table thead th { position: sticky; top: 0; background: #12294d; color: #fff; z-index: 2; }
.tryjpy-swap-table thead th[data-sort-key] { cursor: pointer; user-select: none; }
.tryjpy-swap-table thead th.is-sorted-desc::after { content: ' \25BC'; font-size: 11px; }
.tryjpy-swap-table thead th.is-sorted-asc::after { content: ' \25B2'; font-size: 11px; }
.tryjpy-swap-table tbody tr:nth-child(even) { background: #f7f9fc; }
.tryjpy-rank-1 { background: #ffd5d5; color: #12294d; font-weight: bold; }
.tryjpy-rank-2 { background: #ffeaea; color: #12294d; }
.tryjpy-rank-3 { background: #fff4f4; color: #12294d; }
.tryjpy-badge { display: inline-block; margin-left: 4px; font-size: 11px; background: #12294d; color: #fff; padding: 1px 6px; border-radius: 10px; white-space: nowrap; }
.tryjpy-rank-badge { display: inline-block; margin-right: 4px; font-size: 14px; vertical-align: -1px; }
.tryjpy-change-up { color: #c0392b; }
.tryjpy-change-down { color: #1a6fc4; }
.tryjpy-change-flat { color: #666; }
.tryjpy-detail-btn { display: inline-block; padding: 4px 10px; background: #12294d; color: #fff; border-radius: 4px; text-decoration: none; font-size: 12px; }
.tryjpy-detail-pending { color: #999; font-size: 12px; }
.tryjpy-swap-note { font-size: 12px; color: #777; margin-top: 10px; }
.tryjpy-swap-top-card { margin-top: 20px; border: 2px solid #12294d; border-radius: 8px; padding: 14px 16px; background: #fbf7ee; }
.tryjpy-swap-top-card-title { margin: 0 0 10px; color: #12294d; }
.tryjpy-swap-top-card-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px dashed #ddd; }
.tryjpy-swap-top-card-row:first-of-type { border-top: none; }
.tryjpy-swap-top-card-name { font-weight: bold; min-width: 220px; }
.tryjpy-swap-top-card-values { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.tryjpy-swap-top-card-cta { display: flex; gap: 8px; margin-left: auto; }
.tryjpy-cta-article, .tryjpy-cta-official { padding: 6px 12px; border-radius: 4px; text-decoration: none; font-size: 13px; }
.tryjpy-cta-article { background: #eee; color: #12294d; }
.tryjpy-cta-official { background: #c0392b; color: #fff; }
.tryjpy-cta-pending { font-size: 12px; color: #999; }

/* 「個別解説記事」ボタンのグリーンをユーザー確定値に固定（Cocoonテーマ側 .btn-lime 変数に依存しない） */
.tryjpy-swap-top-card-cta a.btn-lime { background-color: #8bc34a !important; }

/* 「個別解説記事」「公式サイト」の2ボタンを同一サイズに揃える（文字数による幅差を吸収） */
.tryjpy-swap-top-card-cta a {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 168px;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
}

@media screen and (max-width: 600px) {
    .tryjpy-swap-top-card-cta { margin-left: 0; width: 100%; }
    .tryjpy-swap-top-card-name { min-width: 0; }
    .tryjpy-swap-top-card-cta a { flex: 1 1 0; width: auto; }
}
