/*
Theme Name: ASMR BLUE Premium
Description: ASMR・オナサポアフィリエイト特化型テーマ。ダークデザイン、CID自動取得、SEO構造化データ対応。
Version: 3.1.2
Author: Gemini & User
*/

/* --- 1. ベース設定 --- */
:root {
    --bg-color: #0f141e;
    --surface-color: #1a2233;
    --accent-color: #0ea5e9;
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box !important; }
html, body { 
    overflow-x: hidden; 
    width: 100%; 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; 
    line-height: 1.6; 
}
a { color: inherit; text-decoration: none; }
img, iframe { max-width: 100%; height: auto; display: block; }

/* --- 2. レイアウト --- */
.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 15px; }
body.single .container { max-width: 800px; }

/* --- 3. ヘッダー ＆ 横スクロールナビ --- */
.site-header { padding: 15px 0; text-align: center; border-bottom: 1px solid var(--glass-border); background: var(--surface-color); }
.site-title a { color: var(--accent-color); font-size: 1.4rem; font-weight: bold; letter-spacing: 1px; }

.scroll-nav-wrapper { background-color: var(--surface-color); border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 100; margin-bottom: 25px; }
.scroll-nav { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; padding: 12px 0; -ms-overflow-style: none; scrollbar-width: none; }
.scroll-nav::-webkit-scrollbar { display: none; }
.scroll-nav ul { display: inline-flex; gap: 10px; list-style: none; }
.scroll-nav li a { display: block; padding: 8px 18px; color: var(--text-dim); border-radius: 20px; background: rgba(255, 255, 255, 0.05); font-size: 0.85rem; font-weight: bold; border: 1px solid transparent; transition: all 0.2s; }
.scroll-nav li a.active { background: var(--accent-color); color: #fff; }

/* --- 4. 記事カード一覧 --- */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
@media(min-width: 600px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width: 900px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card { background: var(--surface-color); border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; display: block; transition: transform 0.3s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.post-card-thumb { position: relative; padding-top: 56.25%; background: #000; overflow: hidden; }
.post-card-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.post-card-content { padding: 15px; }
.post-card-title { font-size: 0.9rem; line-height: 1.4; font-weight: bold; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.8em; }

/* --- 5. 汎用パーツ --- */
.cta-button { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: #fff !important; padding: 16px 20px; border-radius: 50px; font-weight: bold; display: block; text-align: center; width: 100%; max-width: 320px; margin: 0 auto; box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3); transition: transform 0.2s; border: none; cursor: pointer; }
.cta-button:hover { transform: translateY(-2px); }

.stars-outer { position: relative; display: inline-block; color: #334155; font-size: 1.5rem; line-height: 1; }
.stars-outer::before { content: "★★★★★"; }
.stars-inner { position: absolute; top: 0; left: 0; white-space: nowrap; overflow: hidden; color: #facc15; }
.stars-inner::before { content: "★★★★★"; }

.product-spec-box { width: 100%; overflow: hidden; margin-bottom: 30px; }
.product-spec-box table { width: 100%; border-collapse: collapse; }
.product-spec-box th { width: 100px; text-align: left; color: var(--text-dim); font-size: 0.85rem; padding: 12px 5px; border-bottom: 1px solid var(--glass-border); vertical-align: top; }
.product-spec-box td { padding: 12px 5px; font-size: 0.9rem; border-bottom: 1px solid var(--glass-border); word-break: break-all; }

/* --- 6. フローティングCTA --- */
.floating-cta { position: fixed; bottom: 0; left: 0; width: 100%; padding: 12px 15px; background: rgba(15, 20, 30, 0.9); backdrop-filter: blur(10px); border-top: 1px solid var(--glass-border); z-index: 999; }
@media(min-width: 768px) { .floating-cta { display: none; } }

/* --- 7. ページネーション --- */
.custom-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 40px 0; }
.custom-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; background: var(--surface-color); border: 1px solid var(--glass-border); border-radius: 8px; font-weight: bold; font-size: 0.9rem; }
.custom-pagination .page-numbers.current { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }