@charset "UTF-8";

/* ==================================================
   統計情報
================================================== */
.cr-stats-bar {
    background: #e1f5fe;
    color: #0277bd;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 16px;
    border: 1px solid #b3e5fc;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cr-stats-badge {
    background: #0277bd;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: auto;
}

/* ==================================================
   検索フォーム全体
================================================== */
.cr-search-form {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.cr-search-section {
    background: #f7f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e1e8ed;
}

.cr-section-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #0073aa;
    border-bottom: 2px solid #e1e8ed;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.cr-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.cr-form-group {
    display: flex;
    flex-direction: column;
}

.cr-form-group label {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
}

.cr-form-group label small {
    color: #888;
    font-weight: normal;
}

.cr-search-form input[type="text"],
.cr-search-form input[type="number"],
.cr-search-form select {
    padding: 10px;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s;
}

.cr-search-form input:focus,
.cr-search-form select:focus {
    border-color: #0073aa;
    outline: none;
}

.cr-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
}

.cr-range-inputs input {
    text-align: center;
    padding: 10px 5px;
}

/* ==================================================
   検索ボタン・クリアボタン
================================================== */
.cr-submit-btn-wrap {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.cr-search-form input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 50px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cr-search-form input[type="submit"]:hover {
    background-color: #005177;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 115, 170, 0.4);
}

.cr-btn-clear {
    background-color: #f1f1f1;
    color: #555;
    border: 1px solid #ccc;
    padding: 12px 30px;
    font-size: 14px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cr-btn-clear:hover {
    background-color: #e2e2e2;
}

/* ==================================================
   ページネーション（件数表示・ページ切り替え）
================================================== */
.cr-pagination-info {
    font-size: 15px;
    color: #555;
    margin-bottom: 5px;
    font-weight: bold;
}

.cr-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.cr-pagination-top {
    margin: 15px 0 25px 0;
}

.cr-pagination-bottom {
    margin: 30px 0 10px 0;
}

.cr-pagination a,
.cr-pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    height: 40px;
    min-width: 40px;
    padding: 0 14px;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    text-decoration: none;
    color: #0073aa;
    background: #fff;
    font-weight: bold;
    transition: all 0.2s;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.cr-pagination a:hover {
    background: #f1f1f1;
    color: #005177;
    border-color: #0073aa;
}

.cr-pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.cr-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #555;
    padding: 0 4px;
    min-width: auto;
}

/* ==================================================
   キャスト一覧・カード
================================================== */
.cr-cast-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.cr-cast-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.cr-cast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cr-cast-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1da1f2;
    border-bottom: 2px dashed #f0f0f0;
    padding-bottom: 10px;
}

.cr-cast-card .cr-shop-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.cr-cast-card p {
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
}

.cr-rank-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ★ ダイヤ・ゴールド・ブロンズは一番最初の色。プラチナ・シルバー・レギュラーのみ強すぎない色で見分けやすく変更 */
.cr-rank-6 {
    background-color: #b9f2ff;
    color: #007bb5;
    border: 1px solid #007bb5;
}

/* ダイヤ（元通り） */
.cr-rank-5 {
    background-color: #f3e5f5;
    color: #4a148c;
    border: 1px solid #ce93d8;
}

/* プラチナ（紫がかったごく薄い色） */
.cr-rank-4 {
    background-color: #ffd700;
    color: #333;
    border: 1px solid #e6c200;
}

/* ゴールド（元通り） */
.cr-rank-3 {
    background-color: #e0e0e0;
    color: #333;
    border: 1px solid #bdbdbd;
}

/* シルバー（標準的な明るいグレー） */
.cr-rank-2 {
    background-color: #cd7f32;
    color: #fff;
    border: 1px solid #b8732d;
}

/* ブロンズ（元通り） */
.cr-rank-1,
.cr-rank-0,
.cr-rank- {
    background-color: #ffffff;
    color: #777;
    border: 1px solid #cccccc;
}

/* レギュラー（白背景・グレー枠で目立たせない） */

/* ================================================== */

.cr-btn-detail {
    margin-top: auto;
    display: block;
    text-align: center;
    background-color: #f7f9fa;
    color: #1da1f2;
    border: 1px solid #1da1f2;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.cr-btn-detail:hover {
    background-color: #1da1f2;
    color: #fff;
}

/* ==================================================
   スマホ対応
================================================== */
@media screen and (max-width: 768px) {
    .cr-stats-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .cr-stats-badge {
        margin-left: 0;
    }

    .cr-search-grid {
        grid-template-columns: 1fr;
    }

    .cr-submit-btn-wrap {
        flex-direction: column;
    }
}