/* =========================================================
   ④ 料金比較表（一般的な制作会社 vs コミサイ）
   index.html「特徴」セクションの直後で使用。
   ========================================================= */

.compare-section {
  padding: 64px 20px;
  background: #ffffff;
}

.compare-inner {
  max-width: 880px;
  margin: 0 auto;
}

.compare-lead {
  text-align: center;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  margin: 0 0 36px;
}

/* ---------- テーブル本体 ---------- */
.compare-table-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
}

.compare-table th,
.compare-table td {
  padding: 16px 14px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #eef1f0;
  font-size: 1rem;
  line-height: 1.5;
}

/* 見出し行 */
.compare-table thead th {
  font-weight: 800;
  letter-spacing: 0.02em;
  border-bottom: 0;
}

.compare-th-item {
  width: 30%;
  background: #f4f6f6;
  color: #555;
}

.compare-th-other {
  width: 35%;
  background: #f4f6f6;
  color: #777;
  font-size: 0.95rem;
}

.compare-th-ours {
  width: 35%;
  background: linear-gradient(135deg, #1D9E75 0%, #0E5E45 100%);
  color: #ffffff;
  font-size: 1.15rem;
  position: relative;
}

.compare-th-ours .compare-badge {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0E5E45;
  background: #F3C94A;
  border-radius: 999px;
  padding: 2px 0;
  margin: 0 auto 6px;
  max-width: 92px;
  letter-spacing: 0.04em;
}

/* 行見出し（項目名） */
.compare-table tbody th {
  text-align: left;
  font-weight: 700;
  color: #333;
  background: #fafbfb;
  font-size: 0.95rem;
}

/* 他社セル */
.compare-other {
  color: #888;
}

/* コミサイ セル（強調列） */
.compare-ours {
  background: #f4fbf8;
  color: #0E5E45;
  font-weight: 800;
}

.compare-ours .compare-num {
  font-size: 1.15rem;
  font-weight: 900;
}

.compare-ours .compare-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.compare-ours .compare-check svg {
  width: 16px;
  height: 16px;
  color: #1D9E75;
  flex-shrink: 0;
}

/* 最終行（合計・まとめ） */
.compare-table tbody tr.compare-total th,
.compare-table tbody tr.compare-total td {
  border-bottom: 0;
  border-top: 2px solid #1D9E75;
  font-size: 1.05rem;
}

.compare-table tbody tr.compare-total .compare-ours {
  font-size: 1.1rem;
}

.compare-table tbody tr.compare-total .compare-ours .compare-num {
  font-size: 1.5rem;
}

.compare-note {
  text-align: center;
  font-size: 0.82rem;
  color: #999;
  line-height: 1.7;
  margin: 18px 0 0;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 700px) {
  .compare-section { padding: 48px 14px; }
  .compare-lead { font-size: 0.95rem; margin-bottom: 26px; }
  .compare-table th,
  .compare-table td { padding: 12px 8px; font-size: 0.84rem; }
  .compare-th-item { width: 26%; }
  .compare-th-other { font-size: 0.8rem; }
  .compare-th-ours { font-size: 1rem; }
  .compare-table tbody th { font-size: 0.82rem; }
  .compare-ours .compare-num { font-size: 0.95rem; }
  .compare-table tbody tr.compare-total .compare-ours .compare-num { font-size: 1.2rem; }
  .compare-ours .compare-check svg { width: 14px; height: 14px; }
}
