@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: #b91c1c; /* Warning/Action Red */
  --primary-dark: #7f1d1d;
  --accent: #fbbf24; /* Attention gold */
  --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, #1a202c 0%, #7f1d1d 100%);
  color: white; padding: 60px 20px; text-align: center;
}
.hero-label {
  display: inline-block; background: var(--accent); color: #000;
  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;
}

/* Alert Box */
.alert-box {
  background: #fef2f2; border: 2px solid #fca5a5; padding: 25px; border-radius: 12px; margin-bottom: 40px;
}
.alert-box h3 { color: #dc2626; font-size: 22px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px;}
.alert-box ul { list-style: none; margin-bottom: 15px; font-weight: 600;}
.alert-box li { margin-bottom: 8px; display: flex; gap: 10px; align-items: flex-start; }
.alert-box i { color: #ef4444; margin-top: 5px;}
.alert-box p { font-size: 15px; margin: 0; background: white; padding: 15px; border-radius: 8px; border: 1px solid #fee2e2;}

/* 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-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-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: #ea580c; 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(234, 88, 12, 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(234, 88, 12, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(234, 88, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 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; }
  .alert-box h3 { font-size: 18px; }
}
