/*
Theme Name: Shiro Auto Theme
Description: FANZA素人動画データベース用の軽量テーマ。full-shiro.com風の白×ピンクデザイン。構造化データ・OGP・SEO自動出力対応。
Version: 1.1.0
Author: keito
*/

:root {
	--bg: #f8fafc; --card: #ffffff; --text: #0f172a; --muted: #64748b;
	--border: #e2e8f0; --accent: #ec4899; --accent-dark: #db2777;
	--radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; line-height: 1.7; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; height: auto; display: block; }

/* ヘッダー（sticky・白・ぼかし） */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.site-header .inner { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-title { font-size: 1.15rem; font-weight: 800; }
.site-title a { color: var(--text); }
.site-title span { color: var(--accent); }
.header-nav { font-size: .85rem; display: flex; gap: 14px; flex-wrap: wrap; }
.header-nav a { color: #334155; font-weight: 500; }
.header-nav a:hover { color: var(--accent-dark); }

.site-main { max-width: 1120px; margin: 0 auto; padding: 20px 16px 48px; }
.page-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.section-title { font-size: 1.05rem; font-weight: 700; margin: 28px 0 10px; }

/* 商品グリッド（縦長パッケージ） */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.product-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: box-shadow .2s; }
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); opacity: 1; }
.product-card .thumb-wrap { position: relative; background: #f1f5f9; padding: 8px 8px 4px; }
.product-card .thumb-inner { position: relative; aspect-ratio: 90 / 122; overflow: hidden; border-radius: 4px; border: 1px solid var(--border); background: #f1f5f9; }
.product-card .thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.product-card:hover .thumb { transform: scale(1.03); }
.product-card .cid-badge { position: absolute; bottom: 8px; left: 12px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.product-card .body { padding: 8px 12px 12px; }
.product-card .title { font-size: .85rem; font-weight: 600; color: var(--text); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.product-card .meta { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.product-card .badges { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.badge { display: inline-flex; align-items: center; background: #f1f5f9; color: #334155; font-size: .72rem; font-weight: 500; padding: 2px 9px; border-radius: 999px; }

/* 商品詳細 */
.pr-note { font-size: .78rem; color: var(--muted); background: #fff; border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; margin-bottom: 16px; }
.product-single h1 { font-size: 1.4rem; font-weight: 800; line-height: 1.4; margin-bottom: 16px; }
.package-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 18px; }
.package-wrap img { margin: 0 auto; border-radius: 6px; }
.aff-button { display: flex; align-items: center; justify-content: center; width: 100%; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff !important; font-size: 1.05rem; font-weight: 800; padding: 15px; border-radius: 999px; margin: 20px 0; box-shadow: 0 2px 8px rgba(236,72,153,.35); }
.aff-button:hover { opacity: .92; }
.content-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin: 14px 0; font-size: .92rem; }
.content-box h2 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.content-box ul { padding-left: 1.3em; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.spec-table th { color: var(--muted); width: 8em; font-weight: 600; }
.spec-table .price { color: var(--accent-dark); font-weight: 700; }

.sample-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sample-gallery a { display: block; overflow: hidden; border-radius: 8px; border: 1px solid var(--border); }
.sample-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.sample-gallery a:hover img { transform: scale(1.03); }
.sample-video iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); background: #000; }
.video-links { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.video-links a { display: inline-flex; padding: 8px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: .85rem; color: #334155; background: #fff; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tag-list a { display: inline-flex; background: #fdf2f8; color: var(--accent-dark); border: 1px solid #fbcfe8; font-size: .78rem; padding: 4px 12px; border-radius: 999px; }

/* シェアボタン */
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.share-buttons a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: .82rem; color: #334155; background: #fff; }
.share-buttons .x { border-color: #94a3b8; }
.share-buttons .line { border-color: #4ade80; color: #15803d; }

.related { margin-top: 32px; }

/* ライトボックス */
.shiro-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.shiro-lightbox.open { display: flex; }
.shiro-lightbox img { max-width: 95vw; max-height: 92vh; width: auto; height: auto; border-radius: 6px; }

/* ページネーション */
.pagination { margin-top: 28px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 6px 13px; background: #fff; border: 1px solid var(--border); border-radius: 8px; margin: 0 3px; color: var(--text); font-size: .9rem; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* フッター（濃紺） */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 48px; padding: 28px 0; font-size: .8rem; }
.site-footer .inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.adult-warning { color: #fbbf24; font-weight: 700; margin-bottom: 12px; }
.footer-nav { margin-bottom: 10px; }
.footer-nav a { margin-right: 14px; color: #94a3b8; }

@media (max-width: 600px) {
	.product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.product-single h1 { font-size: 1.15rem; }
}
