/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6C63FF;
  --primary-dark: #574fd6;
  --accent: #FF6584;
  --bg: #0f0f1a;
  --bg2: #16162a;
  --bg3: #1e1e35;
  --card: #1a1a2e;
  --border: #2a2a4a;
  --text: #e8e8f0;
  --text-muted: #9090b8;
  --green: #43e97b;
  --yellow: #f9c74f;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(108,99,255,0.15);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ===== Header ===== */
header {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1035 100%);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.logo span { font-size: 0.85em; }
nav { display: flex; gap: 24px; }
nav a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color .2s; }
nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--primary); color: white !important;
  padding: 8px 18px; border-radius: 99px; font-size: 0.85rem !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a0f35 50%, #0f1a2a 100%);
  padding: 80px 20px 60px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(108,99,255,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(255,101,132,0.08) 0%, transparent 50%);
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.3);
  color: #a89fff; padding: 6px 16px; border-radius: 99px; font-size: 0.8rem;
  margin-bottom: 24px;
}
.hero-badge::before { content: '⚡'; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.25;
  margin-bottom: 20px; letter-spacing: -1px;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p {
  font-size: 1.1rem; color: var(--text-muted); margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn {
  padding: 14px 28px; border-radius: 99px; font-weight: 700; font-size: 0.95rem;
  transition: all .2s; cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,99,255,0.4); color: white; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--primary); display: block; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ===== Section ===== */
section { padding: 64px 20px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block; background: rgba(108,99,255,0.15); color: var(--primary);
  padding: 4px 14px; border-radius: 99px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== Ranking Cards ===== */
.ranking-list { display: flex; flex-direction: column; gap: 24px; }
.rank-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 32px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px;
  align-items: center; transition: all .3s;
}
.rank-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.rank-card.rank-1 { border-color: rgba(249,199,79,0.4); background: linear-gradient(135deg, #1a1a2e, #1e1a0a); }
.rank-card.rank-2 { border-color: rgba(180,180,200,0.3); }
.rank-card.rank-3 { border-color: rgba(180,120,60,0.3); }
.rank-num {
  font-size: 3rem; font-weight: 900; line-height: 1;
  width: 60px; text-align: center;
}
.rank-1 .rank-num { color: var(--yellow); }
.rank-2 .rank-num { color: #c0c0d0; }
.rank-3 .rank-num { color: #cd7f32; }
.rank-num sub { font-size: 0.5em; vertical-align: bottom; }
.rank-info h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.rank-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.rank-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.75rem; padding: 4px 10px; border-radius: 6px; font-weight: 600;
  background: rgba(108,99,255,0.15); color: #a89fff;
}
.tag.green { background: rgba(67,233,123,0.12); color: #43e97b; }
.tag.red { background: rgba(255,101,132,0.12); color: #FF6584; }
.tag.yellow { background: rgba(249,199,79,0.12); color: var(--yellow); }
.rank-action { text-align: center; min-width: 140px; }
.rank-commission { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.rank-commission strong { color: var(--green); font-size: 1.1rem; }
.btn-sm {
  padding: 10px 20px; border-radius: 99px; font-size: 0.85rem; font-weight: 700;
  background: var(--primary); color: white; display: block; text-align: center;
  transition: all .2s;
}
.btn-sm:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); }

/* ===== Comparison Table ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--card); }
thead { background: var(--bg3); }
th { padding: 16px 20px; text-align: left; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
td { padding: 16px 20px; border-top: 1px solid var(--border); font-size: 0.9rem; }
tr:hover td { background: rgba(108,99,255,0.04); }
.check { color: var(--green); font-size: 1.1rem; }
.cross { color: #ff6584; font-size: 1.1rem; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700;
}
.badge-best { background: rgba(249,199,79,0.15); color: var(--yellow); }
.badge-popular { background: rgba(108,99,255,0.15); color: #a89fff; }
.badge-free { background: rgba(67,233,123,0.12); color: var(--green); }

/* ===== Article Grid ===== */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.article-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .3s;
}
.article-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.article-thumb {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.article-thumb.t1 { background: linear-gradient(135deg, #1a1a3e, #2a1040); }
.article-thumb.t2 { background: linear-gradient(135deg, #0d2030, #1a3020); }
.article-thumb.t3 { background: linear-gradient(135deg, #2a1020, #1a2040); }
.article-thumb.t4 { background: linear-gradient(135deg, #1a2010, #302010); }
.article-thumb.t5 { background: linear-gradient(135deg, #200820, #100830); }
.article-thumb.t6 { background: linear-gradient(135deg, #082020, #100820); }
.article-body { padding: 20px; }
.article-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.article-cat {
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 6px;
  background: rgba(108,99,255,0.15); color: #a89fff; text-transform: uppercase;
}
.article-date { font-size: 0.75rem; color: var(--text-muted); }
.article-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.article-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.read-more { font-size: 0.83rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.read-more::after { content: '→'; transition: transform .2s; }
.article-card:hover .read-more::after { transform: translateX(4px); }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, #1a1040, #0d2030);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 20px; padding: 56px 40px; text-align: center;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 900; margin-bottom: 12px; }
.cta-banner p { color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }

/* ===== Newsletter ===== */
.newsletter-form {
  display: flex; gap: 12px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center;
}
.newsletter-form input {
  flex: 1; min-width: 220px; padding: 14px 20px; border-radius: 99px; border: 1px solid var(--border);
  background: var(--bg3); color: var(--text); font-size: 0.9rem; outline: none;
}
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form input::placeholder { color: var(--text-muted); }

/* ===== Footer ===== */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 48px 20px 24px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 10px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.85rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap-12px; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }
.disclaimer {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 20px; margin-bottom: 32px; font-size: 0.8rem; color: var(--text-muted); line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .rank-card { grid-template-columns: auto 1fr; }
  .rank-action { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .rank-card { padding: 20px; }
}
