/*
Theme Name: BestMatch
Theme URI: https://bestmatch.me
Description: 婚活・結婚相談所比較 コンバージョン最適化テーマ
Version: 1.0.0
Text Domain: bestmatch
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --rose:       #C85C8E;
  --rose-dark:  #A8476F;
  --rose-light: #E8729E;
  --blush:      #F7CAD0;
  --blush-light:#FDE8EC;
  --bg:         #FFF9FB;
  --card:       #FFFFFF;
  --text:       #1A1A2E;
  --muted:      #6B6B80;
  --light:      #9999AA;
  --gold:       #F0B429;
  --green:      #27AE60;
  --border:     #F0DDE4;
  --sh-sm:      0 2px 8px rgba(200,92,142,.08);
  --sh-md:      0 4px 20px rgba(200,92,142,.14);
  --sh-lg:      0 8px 40px rgba(200,92,142,.20);
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 32px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap     { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.wrap-sm  { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.section  { padding: 72px 0; }
.section--sm { padding: 48px 0; }
.section--dark { background: #1A1A2E; color: #fff; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4 { line-height: 1.35; font-weight: 700; }
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}
.badge {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .05em;
}
.badge--gold { background: var(--gold); color: #1A1A2E; }
.badge--green { background: var(--green); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 20px;
}
.site-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--rose);
  white-space: nowrap;
}
.site-logo span { color: var(--text); }
.header-nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
}
.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: color .2s;
}
.header-nav a:hover { color: var(--rose); }
.header-cta {
  background: var(--rose);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, transform .1s;
}
.header-cta:hover { background: var(--rose-dark); transform: translateY(-1px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #FDE8EC 0%, #F7CAD0 40%, #E8C4D8 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '💕';
  position: absolute;
  font-size: 300px;
  opacity: .04;
  top: -60px; right: -60px;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 40px;
  margin-bottom: 20px;
  letter-spacing: .08em;
}
.hero-title {
  font-size: clamp(26px, 5vw, 44px);
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.hero-title em { color: var(--rose); font-style: normal; }
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
}
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-num {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--rose);
  line-height: 1.1;
}
.trust-label { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .05em; }
.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-align: center;
  white-space: nowrap;
}
.btn--primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 4px 16px rgba(200,92,142,.3);
}
.btn--primary:hover {
  background: var(--rose-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200,92,142,.4);
}
.btn--secondary {
  background: #fff;
  color: var(--rose);
  border: 2px solid var(--rose);
}
.btn--secondary:hover {
  background: var(--blush-light);
  color: var(--rose-dark);
  transform: translateY(-2px);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold), #E09B00);
  color: #fff;
  box-shadow: 0 4px 16px rgba(240,180,41,.35);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(240,180,41,.45);
}
.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn--sm { padding: 8px 18px; font-size: 13px; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ============================================================
   SERVICE RANKING CARDS
   ============================================================ */
.ranking-section { background: var(--bg); }
.rank-card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}
.rank-card:hover {
  border-color: var(--rose);
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
}
.rank-card--no1 {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(240,180,41,.25);
}
.rank-header {
  background: linear-gradient(135deg, var(--rose), var(--rose-light));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.rank-card--no1 .rank-header {
  background: linear-gradient(135deg, #E09B00, var(--gold));
}
.rank-badge {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}
.rank-name { font-size: 18px; font-weight: 900; flex: 1; }
.rank-pr { font-size: 10px; opacity: .8; }
.rank-body { padding: 20px; }
.rank-stars { color: var(--gold); font-size: 18px; margin-bottom: 6px; }
.rank-score { font-weight: 700; font-size: 22px; color: var(--rose); }
.rank-score span { font-size: 13px; color: var(--muted); font-weight: 400; }
.rank-desc { font-size: 14px; color: var(--muted); margin: 10px 0 16px; line-height: 1.6; }
.rank-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.feature-pill {
  background: var(--blush-light);
  color: var(--rose);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 40px;
  white-space: nowrap;
}
.rank-reward {
  background: #FFF8E0;
  border: 1px solid #F0B42940;
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: #8B6914;
  font-weight: 600;
  margin-bottom: 16px;
}
.rank-reward::before { content: '🎁 '; }
.rank-cta { text-align: center; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  border: 1px solid var(--border);
}
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: var(--card);
}
.compare-table thead {
  background: linear-gradient(135deg, var(--rose), var(--rose-light));
  color: #fff;
}
.compare-table th {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.compare-table th:first-child { text-align: left; min-width: 120px; }
.compare-table td {
  padding: 14px 20px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--muted); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--blush-light); }
.compare-table tbody tr:nth-child(even) { background: #FAFAFA; }
.compare-table tbody tr:nth-child(even):hover { background: var(--blush-light); }
.check { color: var(--green); font-size: 18px; }
.cross { color: #E74C3C; font-size: 18px; }
.best-val { color: var(--rose); font-weight: 700; }

/* ============================================================
   TYPE NAVIGATOR
   ============================================================ */
.type-nav { background: linear-gradient(135deg, #1A1A2E, #2D2D4E); color: #fff; }
.type-nav .section-title { color: #fff; }
.type-nav .section-sub { color: rgba(255,255,255,.6); }
.type-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.type-card:hover {
  background: rgba(200,92,142,.2);
  border-color: var(--rose);
  transform: translateY(-4px);
}
.type-icon { font-size: 40px; margin-bottom: 12px; }
.type-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.type-desc { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 16px; line-height: 1.5; }
.type-rec {
  font-size: 12px;
  background: rgba(200,92,142,.3);
  padding: 4px 12px;
  border-radius: 40px;
  color: var(--blush);
  font-weight: 600;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--blush-light); }
.testi-card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  position: relative;
}
.testi-card::before {
  content: '❝';
  position: absolute;
  top: 16px; left: 20px;
  font-size: 40px;
  color: var(--blush);
  line-height: 1;
}
.testi-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  padding-top: 24px;
  margin-bottom: 16px;
}
.testi-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--rose-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 14px; }
.testi-detail { font-size: 12px; color: var(--muted); }
.testi-stars { color: var(--gold); font-size: 14px; margin-bottom: 2px; }

/* ============================================================
   ARTICLE GRID
   ============================================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.article-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.article-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blush), var(--rose-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.article-body { padding: 16px; }
.article-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.article-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-date { font-size: 12px; color: var(--light); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
}
.post-header { margin-bottom: 32px; }
.post-cat {
  display: inline-block;
  background: var(--blush-light);
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.post-title { font-size: clamp(22px, 3.5vw, 32px); line-height: 1.4; margin-bottom: 12px; }
.post-meta { font-size: 13px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.post-featured { border-radius: var(--r-md); overflow: hidden; margin-bottom: 32px; }
.post-featured img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-content {
  font-size: 16px; line-height: 1.85;
}
.post-content h2 {
  font-size: 22px; margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--rose);
  color: var(--text);
}
.post-content h3 {
  font-size: 18px; margin: 32px 0 12px;
  color: var(--rose-dark);
}
.post-content p { margin-bottom: 20px; }
.post-content ul { list-style: disc; padding-left: 24px; margin-bottom: 20px; }
.post-content ul li { margin-bottom: 8px; }
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.post-content table th {
  background: var(--rose); color: #fff;
  padding: 10px 14px; text-align: center;
}
.post-content table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: center;
}
.post-content table tr:nth-child(even) td { background: var(--blush-light); }
.post-content a { color: var(--rose); font-weight: 600; border-bottom: 1px solid var(--blush); }
.post-content a:hover { color: var(--rose-dark); }
.post-content .product-cta-box {
  background: linear-gradient(135deg, var(--blush-light), #fff);
  border: 2px solid var(--blush);
  border-radius: var(--r-md);
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}
.post-content .product-cta-box .rank-name { font-size: 20px; color: var(--text); margin-bottom: 8px; display: block; }
.post-content .product-cta-box .reward { font-size: 13px; color: #8B6914; background: #FFF8E0; padding: 6px 14px; border-radius: 40px; display: inline-block; margin: 8px 0 16px; }

/* Sidebar */
.sidebar { position: sticky; top: 76px; }
.sidebar-card {
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.sidebar-card-header {
  background: linear-gradient(135deg, var(--rose), var(--rose-light));
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
}
.sidebar-card-body { padding: 18px; }
.sidebar-service {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.sidebar-service:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-rank { font-size: 11px; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.sidebar-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.sidebar-stars { color: var(--gold); font-size: 12px; }

/* Progress bar */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--rose-light));
  z-index: 9999;
  transition: width .1s;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1A1A2E;
  color: rgba(255,255,255,.7);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand { color: #fff; font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.footer-brand span { color: var(--rose-light); }
.footer-desc { font-size: 14px; line-height: 1.7; }
.footer-heading { font-weight: 700; color: #fff; margin-bottom: 16px; font-size: 14px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-links a:hover { color: var(--rose-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.4); }

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--card);
  border-top: 2px solid var(--rose);
  padding: 10px 16px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.sticky-cta-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.sticky-cta-text { font-size: 12px; color: var(--muted); flex: 1; line-height: 1.3; }
.sticky-cta-text strong { display: block; font-size: 14px; color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .hero-trust { gap: 20px; }
  .trust-num { font-size: 22px; }
  .header-nav { display: none; }
  .sticky-cta { display: block; }
  .section { padding: 48px 0; }
  .btn--lg { padding: 14px 24px; font-size: 15px; }
}
