/* ==========================================
   comparison.css - 比較表スタイル完全版
   ========================================== */

/* ----- comp-table（front-page.phpのインライン比較表） ----- */

.comp-table-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
}

/* ヘッダー行：全列ダークグリーン・中央揃え */
.comp-table thead th {
  background: var(--color-main);
  color: #fff;
  padding: 20px 24px;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.comp-table thead th:last-child {
  border-right: none;
}

/* ラベル列（左端） */
.comp-table__label-col {
  width: 140px;
  min-width: 140px;
}

/* 会社名・コピー */
.comp-company-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.comp-company-copy {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

/* データ行 */
.comp-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.comp-table tbody tr:last-child {
  border-bottom: none;
}

/* 項目ラベル列（左端） */
.comp-table__item-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-warm);
  padding: 16px 20px;
  vertical-align: top;
  white-space: nowrap;
  width: 140px;
  border-right: 1px solid var(--color-border);
}

/* データセル */
.comp-table__cell {
  padding: 16px 20px;
  vertical-align: top;
  border-right: 1px solid var(--color-border);
}

.comp-table__cell:last-child {
  border-right: none;
}

/* 得意分野行のラベル */
.comp-table__img-row .comp-table__item-label {
  padding-top: 20px;
}

/* タグ */
.comp-tag {
  display: inline-block;
  background: var(--color-main);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

/* HP画像 */
.comp-hp-image {
  margin-bottom: 8px;
}

.comp-hp-image img {
  width: 100%;
  border: none;
  border-radius: var(--r-sm);
}

/* 画像下テキスト */
.comp-img-source {
  font-size: 0.78rem;
  color: var(--color-text-lt);
  margin-top: 6px;
  line-height: 1.5;
}

/* 本文テキスト */
.comp-cell-text {
  font-size: 0.87rem;
  color: var(--color-text);
  line-height: 1.8;
}

.comp-cell-text strong {
  font-weight: 700;
}

/* CTAボタン行 */
.comp-table__cell--btn {
  padding: 20px 24px;
}

.comp-btn-dark {
  display: block;
  background: var(--color-main);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  text-align: center;
  margin-bottom: 10px;
  transition: background 0.2s;
}

.comp-btn-dark:hover {
  background: var(--color-main-dark);
  opacity: 1;
}

.comp-btn-outline {
  display: block;
  background: transparent;
  color: var(--color-text);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all 0.2s;
}

.comp-btn-outline:hover {
  border-color: var(--color-main);
  color: var(--color-main);
  opacity: 1;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .comp-table-wrap {
    overflow-x: auto;
  }

  .comp-table {
    min-width: 560px;
  }

  .comp-table__label-col,
  .comp-table__item-label {
    width: 90px;
    min-width: 90px;
  }

  .comp-table thead th {
    padding: 14px 12px;
  }

  .comp-table__cell {
    padding: 12px 14px;
  }

  .comp-company-name {
    font-size: 0.85rem;
  }

  .comp-company-copy {
    font-size: 0.76rem;
  }
}