/**
 * トップページ専用CSS
 * index.php で使用
 */

body {
    padding-bottom: 80px;
}

/* TOPページはヘッダーがあるのでサイドバーロゴ非表示 */
.sidebar-logo { display: none; }

/* ━━━ ヘッダー ━━━ */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.header-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.header-logo-img {
    width: 600px;
    max-width: 90%;
    height: auto;
}
@media (max-width: 599px) {
    .header-logo-img {
        width: auto;
        height: 60px;
    }
}

/* βバッジ: SITE_BETA=true のときヘッダーロゴ右上に表示。正式公開後は SITE_BETA=false で非表示に */
.header-logo-wrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
}
.beta-badge-overlay {
    position: absolute;
    top: 4%;
    right: -16px;
    background: #e74c3c;
    color: #fff;
    font-weight: 900;
    font-size: 28px;
    line-height: 1;
    padding: 6px 14px;
    border-radius: 22px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transform: rotate(12deg);
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    pointer-events: none;
    user-select: none;
}
@media (max-width: 599px) {
    .beta-badge-overlay {
        font-size: 14px;
        padding: 3px 8px;
        right: -8px;
        top: 0;
        border-width: 1.5px;
        border-radius: 14px;
    }
}
.header-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
/* スクロールで消えた後、固定モードに切り替わる（SPのみ） */
@media (max-width: 599px) {
    header.sticky {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--header-offset, -100px);
        transition: top 0.3s ease;
    }
}
h1 {
    color: #3498db;
    font-size: 24px;
}


/* ━━━ メインフィード内コンポーネント ━━━ */
.search-bar {
    padding: 15px;
    background: transparent;
}
.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    background: white;
}

/* フィルタ結果バー */
.search-filter-bar {
    padding: 10px;
    background: #fff3cd;
    text-align: center;
}
.search-filter-clear {
    margin-left: 10px;
}

.mode-toggle {
    display: flex;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}
.mode-toggle a {
    flex: 1;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
}
.mode-toggle a.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: bold;
}
/* PC(768px+): 「人気」タブは右サイドバーにあるため非表示 */
@media (min-width: 600px) {
    .mode-toggle .tab-popular { display: none; }
}

