/* 全体 */
body {
    background: #fafafa;
    color: #222;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Hiragino Kaku Gothic Pro", "Yu Gothic", sans-serif;
}

/* タイトル */
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
}

/* 見出し */
h2 {
    font-size: 1.6rem;
    border-left: 8px solid #0078ff;
    padding-left: 10px;
    margin-top: 40px;
}

/* 「みんポチを作る」強調ボタン */
a.create-button {
    display: inline-block;
    background: linear-gradient(135deg, #0099ff, #0066ff);
    color: white;
    padding: 14px 22px;
    font-size: 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.1s ease-in, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}
a.create-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.45);
}

/* ランキング全体 */
ol {
    counter-reset: ranking;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

/* 各項目の番号 */
ol li {
    counter-increment: ranking;
    margin: 0 0 18px;
    padding-left: 50px;
    position: relative;
    font-size: 1.1rem;
}

/* 番号バッジ（CSS数字） */
ol li::before {
    content: counter(ranking);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: #0078ff;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0, 100, 255, 0.35);
}

/* ランキングリンク */
ol li a {
    color: #0070cc;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.15s ease-in-out;
    border-bottom: 2px solid transparent;
}
ol li a:hover {
    color: #0055aa;
    border-bottom: 2px solid #0088ff;
}

/* 閲覧数表示 */
ol li span.views {
    font-size: 0.95rem;
    color: #666;
    margin-left: 6px;
}

/* スマホ対応 */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }
    ol li {
        padding-left: 45px;
        font-size: 1rem;
    }
    ol li::before {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    a.create-button {
        display: block;
        max-width: 90%;  /* ←幅を画面より少し短く */
        margin: 0 auto;  /* ←中央に配置 */
        text-align: center;
        font-size: 1.1rem;
    }
}
