/* ===== common ===== */
:root {
    --bg: #ffffff;
    --card: #f6f7f9;
    --text: #111;
    --sub: #555;
    --border: #e5e7eb;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ===== header ===== */
header {
    background: #222;
    color: #fff;
    padding: 16px 24px;
}

header a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

header span {
    color: #777;
    margin: 0 6px;
}

main {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 16px;
}

h1 {
    margin: 0 0 8px;
    font-size: 24px;
}

/* ===== footer ===== */
footer {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin: 40px 0 20px;
}

footer a {
    color: #666;
    text-decoration: none;
}





/* ===== main ===== */
.title {
    margin-bottom: 20px;
}

.title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.title p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--sub);
}

/* ===== month buttons ===== */
.months {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.month-btn {
    padding: 10px 0;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
}

.month-btn.active {
    background: #222;
    color: #fff;
    border-color: #222;
}



/* ===== TOP3 ===== */
.top3 {
    margin-bottom: 28px;
}

.top3 h2 {
    font-size: 18px;
    margin: 0 0 12px;
}

.top3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.top3-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 8px;
    text-align: center;
}

.top3-item .rank {
    font-size: 13px;
    color: var(--sub);
    margin-bottom: 4px;
}

.top3-item .emoji {
    font-size: 26px;
    margin-bottom: 6px;
}

.top3-item .name {
    font-size: 15px;
    font-weight: 600;
}

/* ===== cards ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease, transform .15s ease;
}

.card .emoji {
    font-size: 24px;
    margin-bottom: 6px;
}


.card .name {
    font-size: 15px;
}




.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.desc {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 28px;
}

.desc p {
    margin: 0 0 12px;
}

.card:hover {
    background: #f0f1f3;
    transform: translateY(-2px);
}

.card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.card p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--sub);
    line-height: 1.5;
}

.monthly-pick {
    margin-bottom: 36px;
}

.monthly-pick h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.monthly-pick .desc {
    font-size: 14px;
    color: var(--sub);
    line-height: 1.6;
    margin-bottom: 16px;
}


.pick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pick-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
}

.pick-card .emoji {
    font-size: 28px;
    margin-bottom: 8px;
}

.pick-card .name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.pick-card .reason {
    font-size: 13px;
    color: var(--sub);
    line-height: 1.4;
}

.sub {
    font-size: 14px;
    color: var(--sub);
    margin-bottom: 20px;
}

.adfit-slot {
    display: block;
    margin: 2rem auto;
    text-align: center;
}