/*
Theme Name: Doujin Affiliate
Theme URI: https://example.com
Description: 同人アフィリエイト用シンプルテーマ（年齢確認・アフィリエイトボタン対応）
Author: Demo
Version: 1.0
Text Domain: doujin-affi
*/

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
  margin: 0;
}
.site-header {
  background: #1a1a1a;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}
.site-header a { color: #fff; text-decoration: none; }
.header-inner {
  max-width: 800px;
  margin: 0 auto;
}
.site-header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
}
.site-header p {
  margin: 0.5rem 0 0;
  color: #ccc;
  font-size: 0.95rem;
}
.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.affiliate-box {
  background: #fff8e1;
  border: 2px solid #ff9800;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}
.affiliate-box a {
  display: inline-block;
  background: #e91e63;
  color: #fff;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}
.affiliate-box a:hover { background: #c2185b; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
.age-gate {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #000 !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.age-gate.hidden { display: none !important; }
.age-gate > div {
  background: #1a1a1a;
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.age-gate button {
  margin: 0 8px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 4px;
}
#age-confirm { background: #4caf50; color: #fff; }
#age-deny { background: #f44336; color: #fff; }
.footer {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 0.9rem;
}
article h1, article h2 { margin-top: 0; }
