@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --primary: #0284c7; /* Trust blue */
  --primary-dark: #0369a1;
  --accent: #f59e0b; /* Attention orange */
  --bg-color: #f8fafc;
  --text-main: #0f172a;
  --text-light: #475569;
  --rank1: #fbbf24; /* Gold */
  --rank2: #94a3b8; /* Silver */
  --rank3: #b45309; /* Bronze */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--text-main); background: var(--bg-color); line-height: 1.8;
}

header {
  position: sticky; top: 0; width: 100%; padding: 15px 20px;
  background: white; border-bottom: 2px solid var(--primary);
  display: flex; justify-content: space-between; align-items: center; z-index: 100;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.logo { font-size: 20px; font-weight: 900; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 8px;}

/* Media Hero */
.media-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: white; padding: 60px 20px; text-align: center;
}
.hero-label {
  display: inline-block; background: var(--accent); color: white;
  padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 14px; margin-bottom: 15px;
}
.media-hero h1 { font-size: 36px; font-weight: 900; line-height: 1.4; margin-bottom: 20px; }
.media-hero p { font-size: 18px; opacity: 0.9; }

/* Main Content */
.container { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.section-title {
  font-size: 28px; font-weight: 900; color: var(--primary-dark);
  border-bottom: 4px solid var(--primary); padding-bottom: 10px; margin-bottom: 30px; margin-top: 50px;
}

/* Ranking Card */
.rank-card {
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05); margin-bottom: 40px; border: 1px solid #e2e8f0;
}
.rank-header {
  padding: 15px 20px; display: flex; align-items: center; gap: 15px;
}
.rank-header.rank-1 { background: linear-gradient(to right, #fffbeb, #fef3c7); border-bottom: 3px solid var(--rank1); }
.rank-header.rank-2 { background: linear-gradient(to right, #f8fafc, #f1f5f9); border-bottom: 3px solid var(--rank2); }
.rank-header.rank-3 { background: linear-gradient(to right, #fff7ed, #ffedd5); border-bottom: 3px solid var(--rank3); }

.rank-badge {
  width: 50px; height: 50px; display: flex; justify-content: center; align-items: center;
  border-radius: 50%; font-size: 24px; font-weight: 900; color: white;
}
.rank-badge.badge-1 { background: var(--rank1); }
.rank-badge.badge-2 { background: var(--rank2); }
.rank-badge.badge-3 { background: var(--rank3); }

.rank-title { font-size: 22px; font-weight: 900; color: var(--text-main); }
.rank-body { padding: 30px 20px; }
.rank-points { background: #f0fdf4; border: 1px solid #bbf7d0; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.rank-points ul { list-style: none; }
.rank-points li { margin-bottom: 8px; display: flex; gap: 10px; align-items: center; font-weight: 600; color: #166534; }
.rank-points i { color: #22c55e; }

.rank-desc { font-size: 16px; margin-bottom: 25px; }

/* Affiliate Buttons */
.aff-btn-container { text-align: center; }
.aff-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #ef4444; color: white; font-size: 20px; font-weight: 800;
  padding: 18px 40px; border-radius: 50px; text-decoration: none; width: 100%; max-width: 500px;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3); transition: transform 0.2s;
  animation: pulse 2s infinite;
}
.aff-btn:hover { transform: scale(1.02); }
.aff-btn-sub {
  display: block; font-size: 13px; font-weight: normal; margin-top: 4px; opacity: 0.9;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Pro Review Bubble */
.pro-review {
  display: flex; gap: 20px; background: #f8fafc; padding: 20px; border-radius: 12px; margin-top: 20px; border-left: 4px solid var(--primary);
}
.pro-icon {
  width: 60px; height: 60px; background: #cbd5e1; border-radius: 50%;
  display: flex; justify-content: center; align-items: center; font-size: 30px; color: white; flex-shrink: 0;
}
.pro-text h5 { font-size: 16px; color: var(--primary); margin-bottom: 5px; }
.pro-text p { font-size: 14px; color: var(--text-light); margin: 0; }

footer { background: #0f172a; color: white; text-align: center; padding: 30px; margin-top: 60px; }

@media(max-width: 768px) {
  .media-hero h1 { font-size: 26px; }
  .rank-title { font-size: 18px; }
  .aff-btn { font-size: 18px; padding: 15px 20px; }
}
