/* ===========================================================
   CRJ WEB — service.css
   サービスページ専用: 業種別4ブロック / プラン比較表
   =========================================================== */

.service-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 40px;
  border-top: 1px solid var(--line);
}

.service-section.first {
  border-top: none;
  padding-top: 80px;
}

/* ===========================================================
   業種別ブロック
   =========================================================== */
.verticals {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.vertical-item {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.vertical-item:first-child {
  border-top: none;
  padding-top: 24px;
}

.vertical-item:last-child {
  padding-bottom: 24px;
}

/* 左: 業種ラベル(右カラムの中央に垂直配置、sticky は解除してリズムを揃える) */
.vertical-label {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: center;
}

.vertical-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.vertical-icon svg {
  width: 22px;
  height: 22px;
}

.vertical-kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-subtle);
  font-weight: 600;
}

.vertical-name {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.vertical-lead {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* 右: 3カラム (課題 / 対応 / 推奨構成) */
.vertical-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.vertical-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vertical-col-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--fg-subtle);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.vertical-col-title .num {
  color: var(--accent);
  margin-right: 8px;
}

.vertical-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.7;
}

.vertical-list li {
  position: relative;
  padding-left: 18px;
}

/* 課題カラム: ダッシュ */
.vertical-col.issues .vertical-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 1px;
  background: var(--fg-subtle);
}

/* 対応カラム: チェック */
.vertical-col.responses .vertical-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* 推奨セクション: 中黒 */
.vertical-col.sections .vertical-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--fg);
  border-radius: 50%;
}

/* ===========================================================
   プラン比較表 (includes)
   =========================================================== */
.includes-intro {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 640px;
  margin-top: -40px;
  margin-bottom: 48px;
}

.service-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.4);
}

.service-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}

.service-table thead th {
  text-align: center;
  padding: 22px 20px 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-subtle);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 239, 232, 0.5);
}

.service-table thead th:first-child {
  text-align: left;
  background: transparent;
}

.service-table thead th.is-featured {
  color: var(--accent);
  background: var(--accent-soft);
  position: relative;
}

.service-table thead th.is-featured::after {
  content: "RECOMMENDED";
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-top: 4px;
  font-weight: 600;
  opacity: 0.8;
}

.service-table tbody th {
  text-align: left;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.005em;
  vertical-align: middle;
}

.service-table tbody td {
  text-align: center;
  padding: 18px 20px;
  font-size: 13px;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  letter-spacing: -0.005em;
}

.service-table tbody tr:last-child th,
.service-table tbody tr:last-child td {
  border-bottom: none;
}

.service-table tbody td.is-featured {
  background: var(--accent-soft);
  color: var(--fg);
  font-weight: 500;
}

/* チェック / ダッシュ */
.svc-check {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  vertical-align: middle;
}

.svc-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 4px;
  height: 8px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
}

.svc-dash {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--fg-subtle);
  vertical-align: middle;
}

.svc-detail {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.6;
  display: block;
  margin-top: 2px;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .service-section {
    padding: 60px 24px;
  }

  .verticals {
    gap: 56px;
  }

  .vertical-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 0;
  }

  .vertical-item:first-child {
    padding-top: 8px;
  }

  .vertical-label {
    align-self: start;
  }

  .vertical-name {
    font-size: 24px;
  }

  .vertical-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .includes-intro {
    margin-top: -24px;
    margin-bottom: 32px;
  }

  .service-table thead th,
  .service-table tbody th,
  .service-table tbody td {
    padding: 14px 12px;
    font-size: 12px;
  }
}
