/* ------ アクセスカウンタ (フッター 7セグ風) ------ */

.footer-counter {
    margin: 16px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-sub);
    opacity: 0;
    animation: counter-fade-in 0.5s ease-out 0.1s forwards;
}

/* ラベル行は常に独立行化 (「あなたは」「人目の訪問者です」それぞれ改行) */
.footer-counter .counter-label {
    flex-basis: 100%;
    text-align: center;
    font-family: var(--font-family);
}

.footer-counter .counter-digits {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    background: #000;
    border: 1px inset #444;
    border-radius: 3px;
    box-shadow: inset 0 0 6px rgba(0, 255, 0, 0.25);
}

.footer-counter .counter-digit {
    display: inline-block;
    min-width: 0.9em;
    padding: 2px 4px;
    font-family: 'Courier New', 'MS Gothic', monospace;
    font-size: 1.05rem;
    font-weight: bold;
    line-height: 1;
    color: #0f0;
    background: #111;
    text-align: center;
    text-shadow: 0 0 4px rgba(0, 255, 0, 0.7);
}

@keyframes counter-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 3指標 (昨日 / 今日 / 累計) を flex 並列 + 区切り線で表示 */
.footer-counter-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px auto 0;
    padding-top: 8px;
    max-width: 480px;
    font-size: 0.8rem;
    color: var(--color-text-sub);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    animation: counter-fade-in 0.5s ease-out 0.2s forwards;
}

.footer-counter-stats .stat-sep {
    opacity: 0.4;
}
