/**
 * パンチラ画像カテゴリ一覧（upskirt-categories）スタイル
 */

.snaf-category-catalog {
    margin: 1.5em 0 3em;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* ヘッダー・導入文 */
.snaf-category-catalog .catalog-header {
    margin-bottom: 2em;
    padding: 1.2em 1.5em;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff4d4d;
}

.snaf-category-catalog .catalog-lead {
    margin: 0 0 0.8em 0;
    font-size: 0.95em;
    line-height: 1.7;
    color: #444;
}

.snaf-category-catalog .catalog-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
    background: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.snaf-category-catalog .catalog-summary-badge strong {
    color: #ff4d4d;
    font-size: 1.1em;
}

.snaf-category-catalog .catalog-summary-badge .sep {
    color: #cbd5e1;
}

/* ① 上部クイック目次（ピル型） */
.snaf-category-catalog .catalog-quick-nav {
    margin-bottom: 2.5em;
    padding: 1.2em;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.snaf-category-catalog .quick-nav-title {
    font-weight: bold;
    font-size: 1.05em;
    margin-bottom: 0.8em;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.snaf-category-catalog .quick-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.snaf-category-catalog .catalog-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.snaf-category-catalog .catalog-nav-pill:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
    text-decoration: none;
    transform: translateY(-1px);
}

.snaf-category-catalog .catalog-nav-pill .pill-count {
    display: inline-block;
    padding: 1px 7px;
    background: #cbd5e1;
    color: #1e293b;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.snaf-category-catalog .catalog-nav-pill:hover .pill-count {
    background: #ef4444;
    color: #fff;
}

/* ② 大枠セクション */
.snaf-category-catalog .catalog-group-section {
    margin-bottom: 3.5em;
    scroll-margin-top: 20px;
}

.snaf-category-catalog .catalog-group-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.2em;
    padding-bottom: 0.6em;
    border-bottom: 2px solid #e2e8f0;
}

.snaf-category-catalog .group-title {
    margin: 0;
    font-size: 1.35em;
    font-weight: bold;
    color: #0f172a;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.snaf-category-catalog .group-title .group-icon {
    font-size: 1.1em;
}

.snaf-category-catalog .group-title small {
    font-size: 0.65em;
    font-weight: normal;
    color: #64748b;
}

.snaf-category-catalog .back-to-top-btn {
    font-size: 0.85em;
    color: #64748b;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    white-space: nowrap;
    transition: all 0.2s;
}

.snaf-category-catalog .back-to-top-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ③ snaf_posts (grid-article) 統合 & カード下部カテゴリ直通ボタン */
.snaf-category-catalog .catalog-posts-wrapper {
    margin-top: 1em;
}

.snaf-category-catalog .catalog-posts-wrapper .snaf-grid-article-item {
    display: flex;
    flex-direction: column;
}

.snaf-category-catalog .catalog-posts-wrapper .snaf-grid-article-item .a-wrap {
    flex: 1;
}

.snaf-category-catalog .catalog-card-cat-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #1e293b;
    font-size: 0.88em;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.snaf-category-catalog .catalog-card-cat-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
    text-decoration: none;
}

.snaf-category-catalog .catalog-card-cat-btn .btn-icon {
    font-size: 1.1em;
    line-height: 1;
}

.snaf-category-catalog .catalog-card-cat-btn .btn-text strong {
    color: #dc2626;
}

.snaf-category-catalog .catalog-card-cat-btn .btn-count {
    color: #64748b;
    font-size: 0.85em;
    margin-left: 2px;
}

.snaf-category-catalog .catalog-card-cat-btn .btn-arrow {
    margin-left: auto;
    font-weight: bold;
    color: #dc2626;
    transition: transform 0.2s;
}

.snaf-category-catalog .catalog-card-cat-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* フローティング目次ボタン */
.snaf-category-catalog .catalog-floating-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.85em;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.snaf-category-catalog .catalog-floating-top-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* フッター用スタイル */
.snaf-footer-catalog-nav {
    margin: 1.5em 0;
    padding-top: 1.5em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.snaf-footer-catalog-nav .footer-catalog-title {
    font-size: 1.1em;
    margin-bottom: 1em;
}

.snaf-footer-catalog-nav .footer-catalog-title a {
    color: inherit;
    text-decoration: none;
}

.snaf-footer-catalog-nav .footer-catalog-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.snaf-footer-catalog-nav .footer-group-name {
    font-size: 0.95em;
    font-weight: bold;
    margin-bottom: 0.6em;
    color: inherit;
    opacity: 0.9;
}

.snaf-footer-catalog-nav .footer-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.snaf-footer-catalog-nav .footer-category-list li {
    margin-bottom: 0.4em;
    font-size: 0.85em;
}

.snaf-footer-catalog-nav .footer-category-list a {
    color: inherit;
    opacity: 0.75;
    text-decoration: none;
    transition: opacity 0.2s;
}

.snaf-footer-catalog-nav .footer-category-list a:hover {
    opacity: 1;
    text-decoration: underline;
}

.snaf-footer-catalog-nav .footer-category-list .count {
    font-size: 0.8em;
    opacity: 0.6;
    margin-left: 3px;
}
