/* ==========================================================================
   2026 リニューアル デザイントークン＆共通コンポーネント
   モダンブルー比較サイト: 白基調 × 紺青(#0A4FA8) × オレンジCTA(#F57C00)
   全ページで style.css の直後に読み込まれる
   ========================================================================== */

:root {
    /* カラー */
    --cl-primary: #0A4FA8;
    --cl-primary-dark: #083B7E;
    --cl-navy: #122B4D;
    --cl-primary-pale: #E8F0FA;
    --cl-cta: #F57C00;
    --cl-cta-dark: #E06A00;
    --cl-text: #1F2933;
    --cl-text-muted: #5B6B7B;
    --cl-border: #D9E2EC;
    --cl-bg-soft: #F5F8FB;
    --cl-success: #1E9E55;
    --cl-success-pale: #E6F6EC;
    --cl-danger: #D64545;
    --cl-danger-pale: #FCEAEA;
    --cl-warning: #B7791F;
    --cl-warning-pale: #FDF3E3;
    --cl-gold: #C9A84C;
    --cl-silver: #9AA5B1;
    --cl-bronze: #B0764A;
    --cl-star: #F6A800;

    /* 形状・影 */
    --cl-radius: 8px;
    --cl-radius-lg: 12px;
    --cl-shadow: 0 2px 8px rgba(16, 42, 67, .08);
    --cl-shadow-hover: 0 6px 16px rgba(16, 42, 67, .14);

    /* ヒーロー等で使う唯一の許可グラデ */
    --cl-hero-gradient: linear-gradient(135deg, #122B4D 0%, #0A4FA8 100%);
}

/* --------------------------------------------------------------------------
   セクション見出し
   -------------------------------------------------------------------------- */
.cl-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--cl-text);
    line-height: 1.4;
    padding-left: 14px;
    border-left: 4px solid var(--cl-primary);
    background: none;
    margin: 0 0 24px;
}

.cl-section-title.is-center {
    text-align: center;
    padding-left: 0;
    border-left: none;
    position: relative;
    padding-bottom: 14px;
}

.cl-section-title.is-center::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--cl-primary);
    border-radius: 2px;
}

.cl-section-lead {
    font-size: 15px;
    color: var(--cl-text-muted);
    line-height: 1.8;
    margin: -12px 0 24px;
}

/* --------------------------------------------------------------------------
   カード
   -------------------------------------------------------------------------- */
.cl-card {
    background: #fff;
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius-lg);
    box-shadow: var(--cl-shadow);
    transition: box-shadow .25s ease, transform .25s ease;
}

.cl-card:hover {
    box-shadow: var(--cl-shadow-hover);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   ボタン
   -------------------------------------------------------------------------- */
.cl-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 14px 28px;
    background: var(--cl-cta);
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: var(--cl-radius);
    box-shadow: 0 3px 10px rgba(245, 124, 0, .3);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.cl-btn-cta:hover {
    background: var(--cl-cta-dark);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(245, 124, 0, .4);
    text-decoration: none;
}

.cl-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 24px;
    background: #fff;
    color: var(--cl-primary) !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    border: 2px solid var(--cl-primary);
    border-radius: var(--cl-radius);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.cl-btn-outline:hover {
    background: var(--cl-primary);
    color: #fff !important;
    text-decoration: none;
}

@media (max-width: 768px) {
    .cl-btn-cta,
    .cl-btn-outline {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   順位バッジ
   -------------------------------------------------------------------------- */
.cl-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cl-primary-pale);
    color: var(--cl-primary);
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.cl-rank-badge.is-rank1 { background: var(--cl-gold); color: #fff; }
.cl-rank-badge.is-rank2 { background: var(--cl-silver); color: #fff; }
.cl-rank-badge.is-rank3 { background: var(--cl-bronze); color: #fff; }

/* --------------------------------------------------------------------------
   バッジ・チップ
   -------------------------------------------------------------------------- */
.cl-chip {
    display: inline-block;
    padding: 4px 12px;
    background: var(--cl-primary-pale);
    color: var(--cl-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 999px;
}

.cl-chip.is-success { background: var(--cl-success-pale); color: var(--cl-success); }
.cl-chip.is-danger { background: var(--cl-danger-pale); color: var(--cl-danger); }
.cl-chip.is-warning { background: var(--cl-warning-pale); color: var(--cl-warning); }

/* --------------------------------------------------------------------------
   テーブル
   -------------------------------------------------------------------------- */
.cl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.cl-table th {
    background: var(--cl-primary-pale);
    color: var(--cl-navy);
    font-weight: 700;
    padding: 12px 14px;
    border: 1px solid var(--cl-border);
    text-align: left;
}

.cl-table td {
    padding: 12px 14px;
    border: 1px solid var(--cl-border);
    color: var(--cl-text);
}

.cl-table tr:nth-child(even) td {
    background: var(--cl-bg-soft);
}

/* --------------------------------------------------------------------------
   星評価
   -------------------------------------------------------------------------- */
.cl-stars {
    color: var(--cl-star);
    letter-spacing: 2px;
}

/* --------------------------------------------------------------------------
   ユーティリティ
   -------------------------------------------------------------------------- */
.cl-bg-soft { background: var(--cl-bg-soft); }
.cl-text-muted { color: var(--cl-text-muted); }
.cl-text-center { text-align: center; }
.cl-mt-0 { margin-top: 0; }
.cl-mb-24 { margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   全体ベース微調整（コンテンツ領域のみ。ヘッダー/フッターには影響させない）
   -------------------------------------------------------------------------- */
#content a:not([class]) {
    color: var(--cl-primary);
}

#content a:not([class]):hover {
    color: var(--cl-primary-dark);
}
