/**
 * カードローンページ CSS (v4.0)
 * company-hero, filter-nav, qa-accordion, qa-categories,
 * info-nav, compare-table, intro-text, helpful-btn, etc.
 * Prefix: cl-
 */

/* ============================================
   PR Label
   ============================================ */
.cl-pr-label-wrap {
  text-align: right;
  margin-bottom: 4px;
}

.cl-pr-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #999;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #666;
}

.cl-pr-label__icon {
  font-size: 0.875rem;
}

.cl-pr-label__text {
  font-weight: 600;
}

/* ============================================
   Review Filter Nav
   ============================================ */
.cl-filter-nav {
  margin-bottom: 24px;
}

.cl-filter-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid var(--cl-border, #e0e0e0);
  gap: 0;
}

.cl-filter-nav__item {
  margin-bottom: -2px;
}

.cl-filter-nav__item a {
  display: block;
  padding: 10px 20px;
  border-radius: 6px 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--cl-text-light, #666);
  background: transparent;
  border: 2px solid transparent;
  border-bottom: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.cl-filter-nav__item a:hover {
  background: var(--cl-primary-light, #e8f2f5);
  color: var(--cl-primary, #04384c);
}

.cl-filter-nav__item.is-active a {
  background: #fff;
  color: var(--cl-primary, #04384c);
  border-color: var(--cl-primary, #04384c);
}

/* ============================================
   Compare Table
   ============================================ */
.cl-compare__title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
}

.cl-compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 32px;
}

.cl-compare-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 14px;
}

.cl-compare-table th,
.cl-compare-table td {
  padding: 12px 16px;
  border: 1px solid var(--cl-border, #e0e0e0);
  text-align: center;
  vertical-align: middle;
}

.cl-compare-table thead th {
  background: var(--cl-primary-light, #e8f2f5);
  font-weight: 600;
  white-space: nowrap;
}

.cl-compare-table__header-cell {
  padding: 16px 16px 12px !important;
}

.cl-compare-table thead th img {
  display: block;
  margin: 0 auto 8px;
  max-width: 80px;
  height: auto;
}

.cl-compare-table__product-name {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: var(--cl-primary-dark, #04384c);
  margin-bottom: 4px;
}

.cl-compare-table tbody th {
  background: var(--cl-bg, #f8f9fa);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  min-width: 120px;
  position: sticky;
  left: 0;
  z-index: 1;
}

.cl-compare-table tbody td,
.post_content .cl-compare-table tbody td,
.l-mainContent .post_content .cl-compare-table td,
body .post_content .cl-compare-table td {
  background: #fff;
  text-align: center !important;
}

.cl-compare-table thead th,
.l-mainContent .post_content .cl-compare-table thead th,
body .post_content .cl-compare-table thead th {
  text-align: center !important;
}

.cl-compare-table tfoot td,
.l-mainContent .post_content .cl-compare-table tfoot td,
body .post_content .cl-compare-table tfoot td {
  text-align: center !important;
}

.cl-compare-table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.cl-compare-table tbody tr:nth-child(even) th {
  background: #f0f0f0;
}

.cl-compare-table tfoot th,
.cl-compare-table tfoot td {
  background: var(--cl-primary-light, #e8f2f5);
  border: 1px solid var(--cl-border, #e0e0e0);
}

.cl-compare-table__cta-cell {
  padding: 16px 12px !important;
}

.cl-compare-table__cta-cell .cl-btn {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-size: 13px;
  padding: 10px 8px;
}

.cl-compare-table-wrap--three .cl-compare-table {
  min-width: 700px;
}

.cl-compare-table__product-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--cl-primary, #04384c);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.cl-compare-table__product-link:hover {
  text-decoration: underline;
  opacity: 1;
}

.cl-compare-table__score {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cl-star, #f5a623);
}

.cl-compare-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.cl-compare-points__item {
  padding: 20px;
  background: var(--cl-bg, #f8f9fa);
  border-radius: var(--cl-radius, 8px);
  border: 1px solid var(--cl-border, #e0e0e0);
}

.cl-compare-points__title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 12px;
  color: var(--cl-primary-dark, #04384c);
}

.cl-compare-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

/* ============================================
   Intro Text
   ============================================ */
.cl-intro-text {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--cl-bg, #f8f9fa);
  border-radius: var(--cl-radius, 8px);
  font-size: 14px;
  line-height: 1.8;
  color: var(--cl-text, #333);
}

/* ============================================
   Result Count
   ============================================ */
.cl-result-count {
  font-size: 14px;
  color: var(--cl-text-light, #666);
  margin-bottom: 16px;
}

/* ============================================
   Helpful Button
   ============================================ */
.cl-helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--cl-border, #e0e0e0);
  border-radius: 20px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--cl-text-light, #666);
  cursor: pointer;
  transition: all 0.2s;
}

.cl-helpful-btn:hover {
  border-color: var(--cl-primary, #04384c);
  color: var(--cl-primary, #04384c);
  background: var(--cl-primary-light, #e8f2f5);
}

.cl-helpful-btn.is-voted {
  border-color: var(--cl-ok, #2ca22c);
  color: var(--cl-ok, #2ca22c);
  background: #e8f5e8;
  pointer-events: none;
}

.cl-helpful-btn__icon {
  font-size: 14px;
}

.cl-helpful-btn__count {
  font-weight: bold;
}

/* ============================================
   Related Links
   ============================================ */
.cl-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cl-related-links__item {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--cl-border, #e0e0e0);
  border-radius: var(--cl-radius, 8px);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--cl-primary, #04384c);
  background: #fff;
  transition: all 0.2s;
}

.cl-related-links__item:hover {
  background: var(--cl-primary-light, #e8f2f5);
  border-color: var(--cl-primary, #04384c);
}

/* ============================================
   Info Page Utilities
   ============================================ */
.cl-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cl-info-list li {
  padding: 4px 0 4px 16px;
  position: relative;
  font-size: 14px;
}

.cl-info-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--cl-primary, #04384c);
  font-weight: bold;
}

/* ============================================
   Responsive: Tablet (600-959px)
   ============================================ */
@media (max-width: 959px) {
  .cl-compare__title {
    font-size: 20px;
  }
}

/* ============================================
   Responsive: Mobile (<600px)
   ============================================ */
@media (max-width: 599px) {
  .cl-filter-nav__list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cl-filter-nav__item a {
    padding: 8px 14px;
    font-size: 12px;
  }

  .cl-compare-table {
    font-size: 12px;
  }

  .cl-compare-table th,
  .cl-compare-table td {
    padding: 8px 10px;
  }

  .cl-compare-cta {
    flex-direction: column;
  }

  .cl-compare-cta .cl-btn {
    width: 100%;
  }

  .cl-related-links {
    flex-direction: column;
  }

  .cl-related-links__item {
    width: 100%;
    text-align: center;
  }

  .cl-intro-text {
    padding: 12px 16px;
    font-size: 13px;
  }

  .cl-compare__title {
    font-size: 18px;
  }
}
