:root {
  --primary-color: #0f172a;
  --accent-color: #3b82f6;
  --bg-color: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.85);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --blur: 20px;
}

body {
  font-family: 'Helvetica Neue', 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

header {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.logo a {
  text-decoration: none;
  color: inherit;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav ul a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================
   Hero Section with Background Image
   ============================================================ */

.hero {
  padding: 0;
  text-align: center;
  border-radius: 2rem;
  margin-bottom: 3rem;
  overflow: hidden;
  position: relative;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  color: white;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 2rem;
  backdrop-filter: blur(10px);
}

.cta-button:hover {
  background: white;
  text-decoration: none;
}

section {
  margin-bottom: 3rem;
}

h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: var(--card-bg);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

th, td {
  padding: 0.875rem 1rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

th {
  background: #f1f5f9;
  font-weight: 600;
  color: var(--primary-color);
}

tr:nth-child(even) {
  background: #f8fafc;
}

tr:hover {
  background: #e0f2fe;
  transition: background 0.2s ease;
}

/* Card styles - Glassmorphism */
article, section.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

/* List styles */
ul, ol {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

ul li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

ol li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

/* Definition list for glossary */
dl {
  margin: 0;
  padding: 0;
}

dt {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  color: var(--primary-color);
}

dd {
  margin-left: 0;
  margin-top: 0.25rem;
  color: var(--text-secondary);
}

/* Paragraph spacing */
p {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* Links in content */
a {
  color: var(--accent-color);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.table-wrapper table {
  margin-top: 0;
  min-width: 640px;
}

footer ul a {
  color: var(--text-secondary);
  text-decoration: none;
}

/* ============================================================
   Affiliate / PR Ad Styles
   ============================================================ */

.affiliate-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

article.affiliate-cta {
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  position: relative;
}

.affiliate-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.affiliate-section-header h2 {
  margin-top: 0;
  margin-bottom: 0;
}

.affiliate-section-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.affiliate-section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.affiliate-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.affiliate-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  position: relative;
  display: flex;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.affiliate-card:first-child {
  border: 2px solid #f59e0b;
  box-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.25);
}

.affiliate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.12);
}

.affiliate-card-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: flex-start;
}

.affiliate-card:first-child .affiliate-card-rank {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
}

.affiliate-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.affiliate-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.affiliate-card-title a {
  text-decoration: none;
  color: inherit;
}

.affiliate-card-title a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.affiliate-card-price {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 0.25rem 0;
}

.affiliate-card-campaign {
  font-size: 0.8rem;
  color: #059669;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.affiliate-card-btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  align-self: flex-start;
  transition: background 0.2s ease;
}

.affiliate-card-btn:hover {
  background: var(--accent-color);
  text-decoration: none;
}

.affiliate-banner-wrapper {
  text-align: center;
  margin-top: 1rem;
}

.affiliate-cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.affiliate-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  text-decoration: none;
}

.affiliate-disclaimer {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* Recommended row in comparison table */
tr.recommended-row {
  background: #fffbeb !important;
  font-weight: 600;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .affiliate-cards {
    grid-template-columns: 1fr;
  }

  .affiliate-card {
    padding: 1.25rem;
  }

  .affiliate-cta-button {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .affiliate-card-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero-content h1 {
    font-size: 1.875rem;
  }

  .hero-content {
    padding: 3rem 1.5rem;
  }

  .hero {
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    min-height: 250px;
  }

  nav {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  table {
    font-size: 0.875rem;
  }

  th, td {
    padding: 0.625rem 0.5rem;
  }

  article, section.card {
    padding: 1.25rem;
  }

  .table-wrapper table {
    min-width: 560px;
  }
}
