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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #f8fafc;
  color: #1e293b;
  padding-bottom: 64px; /* mobile footer */
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

/* ==========================================
   SECTION TITLE
   ========================================== */
.section-title-wrapper { text-align: center; }

.section-title {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 900;
  color: #1e293b;
  padding: 0.5rem 1.5rem;
  border-bottom: 3px solid #1a73e8;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 1.5rem; }
}

/* ==========================================
   RANKING CARDS
   ========================================== */
.rank-card {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  overflow: visible;
  border: 2px solid #e2e8f0;
  transition: box-shadow 0.2s;
}

.rank-card:hover { box-shadow: 0 8px 32px rgba(26,115,232,0.13); }

.rank-card.rank-1 { border-color: #f59e0b; background: linear-gradient(to bottom, #fffbeb 0%, #fff 60px); }
.rank-card.rank-2 { border-color: #94a3b8; background: linear-gradient(to bottom, #f8fafc 0%, #fff 60px); }
.rank-card.rank-3 { border-color: #b45309; background: linear-gradient(to bottom, #fff7ed 0%, #fff 60px); }

.rank-badge {
  position: absolute;
  top: -14px;
  left: 20px;
  background: #f59e0b;
  color: #fff;
  border-radius: 999px;
  padding: 4px 16px;
  font-weight: 900;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 10;
}

.rank-badge-1 { background: linear-gradient(135deg,#f59e0b,#fbbf24); }
.rank-badge-2 { background: linear-gradient(135deg,#94a3b8,#cbd5e1); color: #1e293b; }
.rank-badge-3 { background: linear-gradient(135deg,#b45309,#d97706); }

.rank-num { font-size: 1.1rem; font-weight: 900; }
.rank-label { font-size: 0.7rem; }

.rank-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.5rem 1.5rem 0.5rem;
  flex-wrap: wrap;
}

.rank-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: #1e293b;
}

.rank-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.rank-body { padding: 1rem 1.5rem 1.5rem; }

.provider-logo {
  height: 56px;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
}

/* ==========================================
   SPEC TABLE
   ========================================== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.spec-table th {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  padding: 6px 8px;
  border: 1px solid #bfdbfe;
  text-align: center;
  white-space: nowrap;
}

.spec-table td {
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  text-align: center;
  color: #374151;
  vertical-align: middle;
}

.stars { color: #1a73e8; font-size: 0.9rem; }
.badge-ok { color: #16a34a; font-weight: 700; }

/* ==========================================
   FEATURE LIST
   ========================================== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 4px;
}

.feature-list li {
  font-size: 0.82rem;
  color: #374151;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #1a73e8;
  font-weight: 700;
}

/* ==========================================
   REVIEWS
   ========================================== */
.reviews-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  display: flex;
  gap: 8px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #e2e8f0;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-meta { font-size: 0.65rem; color: #94a3b8; margin-bottom: 2px; }
.review-text { font-size: 0.72rem; color: #4b5563; line-height: 1.5; }

/* ==========================================
   CTA / BUTTONS
   ========================================== */
.cta-area {
  text-align: center;
  padding-top: 0.5rem;
}

.cta-campaign {
  font-size: 0.8rem;
  color: #dc2626;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a73e8;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(26,115,232,0.3);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,115,232,0.35);
}

/* Shine animation */
.shine-btn {
  position: relative;
  overflow: hidden;
}

.shine-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: shine 2.5s infinite;
}

@keyframes shine {
  0% { left: -75%; }
  60%, 100% { left: 125%; }
}

/* ==========================================
   CAMPAIGN BOX
   ========================================== */
.campaign-box {
  background: #fefce8;
  border: 2px dashed #f59e0b;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 1rem;
}

.campaign-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #92400e;
  margin-bottom: 4px;
}

/* ==========================================
   REASON CARDS
   ========================================== */
.reason-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-top: 4px solid #1a73e8;
  text-align: center;
}

.reason-num {
  font-size: 2rem;
  font-weight: 900;
  color: #1a73e8;
  margin-bottom: 0.5rem;
}

.reason-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

/* ==========================================
   MERIT CARDS
   ========================================== */
.merit-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #e2e8f0;
}

/* ==========================================
   FLOW CARDS
   ========================================== */
.flow-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
  border-bottom: 4px solid #1a73e8;
}

.flow-num {
  font-size: 0.7rem;
  font-weight: 700;
  background: #1a73e8;
  color: #fff;
  border-radius: 999px;
  padding: 2px 10px;
  display: inline-block;
  margin-bottom: 4px;
}

/* ==========================================
   SERVICE CARDS
   ========================================== */
.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.service-img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  background: #f8fafc;
  padding: 8px;
}

.service-body { padding: 1rem; }

.service-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 6px;
}

/* ==========================================
   FAQ
   ========================================== */
.faq-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
  transition: background 0.15s;
}

.faq-question:hover { background: #f0f9ff; }
.faq-question[aria-expanded="true"] { background: #eff6ff; color: #1d4ed8; }

.faq-q-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-chevron {
  transition: transform 0.25s;
  color: #94a3b8;
  font-size: 0.7rem;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: #1d4ed8;
}

.faq-answer {
  display: none;
  padding: 0 16px 14px 52px;
  font-size: 0.83rem;
  color: #4b5563;
  line-height: 1.7;
}

.faq-answer.open { display: block; }

/* ==========================================
   SIDEBAR LINKS
   ========================================== */
.sidebar-link {
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.sidebar-link.active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

/* ==========================================
   FADE-IN ANIMATION
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   MOBILE CTA
   ========================================== */
.mobile-cta {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }