/* 静的サイト共通スタイル（両サイト共通・ダーク基調）
 * 生成器（src/sitegen.py）が全ページに <link> で読み込ませる。
 * カードUI（.afc-*）の基本形もここに持つ（generator.py の CARD_CSS と同一内容を維持すること）。
 */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: #121214; color: #e8e8ea; font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; line-height: 1.7; }
a { color: #f0b64a; }
img { max-width: 100%; }

.site-header { border-bottom: 1px solid #333; padding: 14px 16px; background: #1a1a1c; }
.site-header .site-name { font-size: 20px; font-weight: bold; margin: 0; }
.site-header .site-name a { color: #fff; text-decoration: none; }
.site-header .site-desc { font-size: 12px; color: #aaa; margin: 4px 0 0; }
.site-nav { margin-top: 10px; font-size: 14px; }
.site-nav a { margin-right: 14px; text-decoration: none; }

.site-main { max-width: 1080px; margin: 0 auto; padding: 16px; }
.site-main h2 { border-left: 4px solid #e8a020; padding-left: 8px; font-size: 19px; }
.site-main table { border-collapse: collapse; }
.site-main th, .site-main td { padding: 4px 8px; font-size: 14px; }

.site-footer { border-top: 1px solid #333; padding: 16px; font-size: 12px; color: #999; background: #1a1a1c; }
.site-footer .powered-fc2 { color: #bbb; }

/* 年齢確認オーバーレイ（自前設置。docs/BLOG_DESIGN.md）
 * 本文HTMLはそのまま配信し（クローラーは本文を取得できる）、
 * 人間の初回訪問時にだけ JS でオーバーレイを表示する。
 * JS無効環境では <noscript> 側の指定でオーバーレイを出さない。
 */
#agegate { position: fixed; inset: 0; background: rgba(8, 8, 10, 0.97); z-index: 9999;
           display: flex; align-items: center; justify-content: center; }
#agegate.hidden { display: none; }
#agegate .ag-box { max-width: 520px; margin: 16px; padding: 28px; background: #1e1e20;
                   border: 1px solid #a33; border-radius: 10px; text-align: center; }
#agegate .ag-title { font-size: 20px; font-weight: bold; margin: 0 0 12px; }
#agegate .ag-btns { margin-top: 20px; display: flex; gap: 12px; justify-content: center; }
#agegate button, #agegate .ag-exit { padding: 10px 22px; border-radius: 6px; border: 0;
  font-size: 15px; font-weight: bold; cursor: pointer; text-decoration: none; }
#agegate .ag-enter { background: #e8a020; color: #111; }
#agegate .ag-exit { background: #333; color: #ddd; display: inline-block; }

/* カードUI（generator.py の CARD_CSS と同一） */
.afc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.afc-card{border:1px solid #444;border-radius:8px;overflow:hidden;background:#1c1c1e}
.afc-thumb{position:relative;aspect-ratio:4/3;background:#000}
.afc-thumb img,.afc-thumb video{width:100%;height:100%;object-fit:cover;display:block}
.afc-thumb video{position:absolute;inset:0;opacity:0;transition:opacity .25s}
.afc-card.is-previewing .afc-thumb video{opacity:1}
.afc-body{padding:10px}
.afc-title{font-size:14px;line-height:1.5;margin:0 0 6px}
.afc-meta{font-size:12px;color:#aaa;margin:0 0 4px}
.afc-price{font-size:14px;font-weight:bold}
.afc-sale{color:#ff5a5a;font-weight:bold}
.afc-btn{display:inline-block;margin-top:8px;padding:8px 14px;border-radius:6px;background:#e8a020;color:#111;text-decoration:none;font-weight:bold}
.afc-notice{border:1px solid #a33;padding:8px;font-size:13px}
