/*
Theme Name: ServerRank Pro
Theme URI: https://example.com/server-rank-pro
Author: Affiliate Media Studio
Description: レンタルサーバー比較・アフィリエイト特化型WordPressテーマ（主要6社比較・A8計測ビーコン完全対応・ディープネイビー×ゴールド×エメラルドCTA設計）
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: server-rank-pro
*/

:root {
  --navy-950: #070f1e;
  --navy-900: #0b192c;
  --navy-800: #132743;
  --navy-700: #1e3a5f;
  --gold-500: #d4af37;
  --gold-400: #e6c453;
  --gold-100: #fbf6e4;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-700: #047857;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(11, 25, 44, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 25, 44, 0.10);
  --shadow-lg: 0 16px 36px rgba(11, 25, 44, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy-700);
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* A8 1x1 impression pixel hide layout shift */
img[width="1"][height="1"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* PR Compliance Top Bar */
.pr-notice-bar {
  background: var(--navy-950);
  color: #cbd5e1;
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.pr-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-400);
  border: 1px solid var(--gold-500);
  font-weight: 700;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

/* Header */
.site-header {
  background: var(--navy-900);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.site-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-500), #b8860b);
  color: var(--navy-950);
  font-weight: 900;
  font-size: 18px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.main-nav a {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--gold-400);
}

.header-cta {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-950) !important;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.header-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at top right, #1e3a5f 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: #fff;
  padding: 56px 0 64px;
  border-bottom: 3px solid var(--gold-500);
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.update-badge {
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid var(--gold-500);
  color: var(--gold-400);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.trust-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 16px;
}

.hero-title .gold-highlight {
  color: var(--gold-400);
  border-bottom: 2px solid rgba(212, 175, 55, 0.5);
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: 15px;
  max-width: 760px;
  margin: 0 0 28px;
}

.supervisor-card-mini {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 18px;
  border-radius: var(--radius-md);
}

.supervisor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.supervisor-info-text {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}

.supervisor-info-text strong {
  display: block;
  color: #fff;
  font-size: 13px;
}

/* Main 2-Column Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 40px 0 64px;
}

/* Section Headers */
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--slate-200);
  position: relative;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 90px;
  height: 2px;
  background: var(--gold-500);
}

/* Filter Bar */
.filter-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  margin-bottom: 28px;
}

.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 12px;
  display: block;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-800);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--navy-900);
  color: var(--gold-400);
  border-color: var(--navy-900);
}

/* Comparison Matrix Table */
.table-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  margin-bottom: 40px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  text-align: center;
}

.compare-table th {
  background: var(--navy-900);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-table td {
  padding: 15px 10px;
  border-bottom: 1px solid var(--slate-200);
  border-right: 1px solid var(--slate-100);
  font-size: 13.5px;
  vertical-align: middle;
}

.compare-table tr.is-highlighted {
  background-color: var(--gold-100);
}

.rank-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.rank-1 { background: linear-gradient(135deg, #d4af37, #b48a1e); }
.rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.rank-3 { background: linear-gradient(135deg, #b45309, #92400e); }
.rank-other { background: var(--navy-700); }

.server-name-cell {
  font-weight: 800;
  color: var(--navy-900);
  font-size: 14.5px;
}

.score-stars {
  color: #f59e0b;
  font-weight: 800;
  font-size: 12px;
}

/* Glossy Emerald CTA Button */
.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cta-microcopy {
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald-700);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 10px;
  border-radius: 999px;
}

.btn-cta-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: #fff !important;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 290px;
  text-align: center;
}

.btn-cta-emerald:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.45);
}

.btn-cta-sm {
  font-size: 12px;
  padding: 8px 12px;
  max-width: 135px;
}

/* Ranking Detail Cards */
.ranking-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  margin-bottom: 32px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card.rank-top {
  border: 2px solid var(--gold-500);
}

.ranking-card-header {
  background: var(--navy-900);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ranking-card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ranking-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.ranking-card-tag {
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
}

.ranking-card-body {
  padding: 24px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.spec-item {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}

.spec-item-label {
  display: block;
  font-size: 11px;
  color: var(--slate-600);
  font-weight: 700;
}

.spec-item-val {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-900);
  margin-top: 2px;
}

.point-box {
  background: var(--gold-100);
  border-left: 4px solid var(--gold-500);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
  font-size: 14px;
}

.point-box strong {
  color: var(--navy-900);
  display: block;
  margin-bottom: 4px;
}

.card-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-200);
}

.btn-detail-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 2px solid var(--navy-800);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
}

.btn-detail-outline:hover {
  background: var(--navy-900);
  color: #fff;
}

/* Sidebar */
.sidebar-widget {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-500);
}

.sidebar-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-rank-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--slate-100);
  gap: 8px;
}

.sidebar-rank-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-rank-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy-900);
}

/* Single Article & Page Styling */
.article-container {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
}

.breadcrumbs {
  font-size: 12px;
  color: var(--slate-600);
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(24px, 3.2vw, 32px);
  color: var(--navy-900);
  line-height: 1.35;
  margin: 10px 0 16px;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--slate-600);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 24px;
}

.toc-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--navy-900);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 24px 0 32px;
}

.toc-title {
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 10px;
  font-size: 15px;
}

.toc-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
}

.toc-list li {
  margin-bottom: 6px;
}

.entry-content h2 {
  background: var(--navy-900);
  color: #fff;
  font-size: 20px;
  padding: 14px 20px;
  border-radius: 8px;
  border-left: 5px solid var(--gold-500);
  margin: 40px 0 20px;
}

.entry-content h3 {
  font-size: 18px;
  color: var(--navy-900);
  border-left: 4px solid var(--gold-500);
  padding-left: 12px;
  margin: 28px 0 14px;
}

.entry-content p {
  margin: 0 0 18px;
}

/* Shortcode Boxes */
.merit-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.merit-col {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px 20px;
}

.demerit-col {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 16px 20px;
}

.merit-col h4 { color: #166534; margin: 0 0 10px; }
.demerit-col h4 { color: #991b1b; margin: 0 0 10px; }

/* Post Grid Cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.post-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.post-card-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-weight: 800;
  font-size: 15px;
  padding: 16px;
  text-align: center;
}

.post-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-date {
  font-size: 12px;
  color: var(--slate-600);
  margin-bottom: 6px;
}

.post-card-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.45;
}

.post-card-title a {
  color: var(--navy-900);
}

.post-card-title a:hover {
  color: var(--emerald-600);
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #94a3b8;
  padding: 48px 0 28px;
  font-size: 13px;
  border-top: 3px solid var(--gold-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-disclaimer {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.65;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 960px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .article-container {
    padding: 24px 18px;
  }
  .merit-box, .post-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}
