/* ===== Fortune Ranking Page Styles ===== */
/* YML駆動のランキングLP用スタイル */

/* ===== Page Container ===== */
.fortune-ranking-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Hero Section ===== */
.ranking-hero {
  background: linear-gradient(135deg, var(--rose-pale) 0%, var(--lavender-pale) 100%);
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.ranking-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A5A5' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.ranking-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.ranking-hero h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hero-lead p {
  margin-bottom: 0.75rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  font-size: 1.5rem;
  color: var(--lavender);
  display: block;
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-point {
  background: var(--white);
  border: 1px solid var(--lavender-light);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--lavender);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ===== Filter Section ===== */
.ranking-filter {
  background: var(--white);
  border: 1px solid var(--bg-greige);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 150px;
}

.filter-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.filter-group select {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--bg-greige);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.3s;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--lavender-light);
}

.filter-submit {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--rose) 100%);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(155, 139, 196, 0.3);
}

.filter-submit:hover {
  transform: translateY(-2px);
}

/* ===== Ranking Section ===== */
.ranking-section {
  margin-bottom: 3rem;
}

.ranking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.ranking-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ranking-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--lavender) 0%, var(--rose) 100%);
  border-radius: 2px;
}

.ranking-count {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== Ranking Card ===== */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ranking-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--bg-greige);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(155, 139, 196, 0.15);
  border-color: var(--lavender-light);
}

.ranking-card.rank-1 {
  border-color: var(--gold);
  border-width: 2px;
}

.ranking-card.rank-2 {
  border-color: #C0C0C0;
  border-width: 2px;
}

.ranking-card.rank-3 {
  border-color: #CD7F32;
  border-width: 2px;
}

.rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  min-width: 3.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
}

.rank-badge.rank-other {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--lavender-light) 100%);
  font-size: 1rem;
}

.card-main {
  display: flex;
  flex: 1;
  padding: 1.25rem;
  gap: 1.25rem;
}

.card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--lavender-pale) 0%, var(--rose-pale) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px var(--shadow);
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-avatar-placeholder {
  font-size: 2rem;
}

.card-content {
  flex: 1;
  min-width: 0;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.card-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.card-provider {
  font-size: 0.8rem;
  color: var(--text-light);
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.card-stars {
  color: var(--gold);
  font-size: 0.9rem;
}

.card-score {
  font-size: 0.95rem;
  color: var(--lavender);
  font-weight: 700;
}

.card-reviews {
  font-size: 0.8rem;
  color: var(--text-light);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.card-tag {
  background: var(--lavender-pale);
  color: var(--lavender);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
}

.card-review-box {
  background: var(--bg-beige);
  border-left: 3px solid var(--lavender);
  padding: 0.6rem 0.85rem;
  border-radius: 0 8px 8px 0;
  margin-top: 0.6rem;
}

.card-review-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--rose) 100%);
  color: var(--white);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.card-review-text {
  font-size: 0.85rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin: 0;
}

.card-review-text::before {
  content: '"';
  color: var(--lavender);
  font-weight: 700;
}

.card-review-text::after {
  content: '"';
  color: var(--lavender);
  font-weight: 700;
}

.card-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 1.25rem;
  background: var(--bg-beige);
  min-width: 130px;
}

.card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.card-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
}

.btn-detail {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-detail:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(232, 180, 168, 0.4);
}

/* ===== SEO Content Section ===== */
.seo-content-section {
  margin-bottom: 3rem;
}

.seo-article {
  background: var(--white);
  border: 1px solid var(--bg-greige);
  border-radius: 16px;
  padding: 2.5rem;
}

.seo-article h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--lavender-pale);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-article h2:first-child {
  margin-top: 0;
}

.seo-article h2::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--lavender) 0%, var(--rose) 100%);
  border-radius: 2px;
}

.seo-article p {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.seo-article ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.seo-article li {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.9;
  margin-bottom: 0.5rem;
}

.key-points {
  background: var(--lavender-pale);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  list-style: none;
}

.key-points li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.key-points li:last-child {
  margin-bottom: 0;
}

.key-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--rose) 100%);
  border-radius: 50%;
}

.insight-items {
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.insight-item {
  background: var(--bg-beige);
  border: 1px solid var(--bg-greige);
  border-radius: 12px;
  padding: 1.25rem;
}

.insight-item-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-dark);
}

.insight-item-body {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.8;
}

/* ===== FAQ Section ===== */
.faq-section {
  margin-bottom: 3rem;
}

.faq-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.faq-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--lavender) 0%, var(--rose) 100%);
  border-radius: 2px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--bg-greige);
  border-radius: 12px;
  padding: 1.5rem;
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.faq-question::before {
  content: 'Q';
  background: linear-gradient(135deg, var(--lavender) 0%, var(--rose) 100%);
  color: var(--white);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.8;
  padding-left: 2.2rem;
}

/* ===== Related Links Section ===== */
.related-section {
  margin-bottom: 3rem;
}

.related-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.related-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--lavender) 0%, var(--rose) 100%);
  border-radius: 2px;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.related-link {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--bg-greige);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}

.related-link:hover {
  border-color: var(--lavender-light);
  box-shadow: 0 4px 15px var(--shadow);
  transform: translateY(-2px);
}

.related-link::before {
  content: '';
  margin-right: 0.75rem;
}

/* ===== Final CTA Section ===== */
.final-cta-section {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--rose-pale) 0%, var(--lavender-pale) 100%);
  border-radius: 16px;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239B8BC4' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.final-cta-section h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
}

.final-cta-section p {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  position: relative;
}

.final-cta-section .hero-cta {
  position: relative;
}

/* ===== No Results ===== */
.no-results {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border: 1px solid var(--bg-greige);
  border-radius: 16px;
}

.no-results p {
  color: var(--text-medium);
  margin-bottom: 1rem;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--bg-greige);
  background: var(--white);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-medium);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.page-btn:hover {
  border-color: var(--lavender-light);
  color: var(--lavender);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--rose) 100%);
  color: var(--white);
  border: none;
}

.page-btn.arrow {
  font-size: 1.1rem;
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-btn.disabled:hover {
  border-color: var(--bg-greige);
  color: var(--text-medium);
}

.page-dots {
  color: var(--text-light);
  padding: 0 0.3rem;
}

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

  .ranking-hero h1 {
    font-size: 1.5rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-stat strong {
    font-size: 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta a {
    width: 100%;
    text-align: center;
  }

  .filter-form {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .ranking-card {
    flex-direction: column;
  }

  .rank-badge {
    width: 100%;
    height: 2.5rem;
  }

  .card-main {
    flex-direction: column;
    text-align: center;
  }

  .card-avatar {
    margin: 0 auto;
  }

  .card-header-row {
    justify-content: center;
  }

  .card-rating {
    justify-content: center;
  }

  .card-tags {
    justify-content: center;
  }

  .card-side {
    align-items: center;
    min-width: 100%;
  }

  .seo-article {
    padding: 1.5rem;
  }

  .seo-article h2 {
    font-size: 1.1rem;
  }

  .faq-item {
    padding: 1.25rem;
  }

  .related-links {
    grid-template-columns: 1fr;
  }

  .final-cta-section {
    padding: 2rem 1rem;
  }

  .final-cta-section h2 {
    font-size: 1.15rem;
  }
}
