/* ======================================================
   RAYJOHN — service.css
   サービス一覧ページ 専用スタイル
   (style.css を土台に、このページだけで使う見た目を追加)
====================================================== */

.svc-category:nth-of-type(even) {
  background: var(--bg);
}

.svc-intro {
  max-width: 700px;
  margin: 0 auto clamp(32px, 5vw, 44px);
  text-align: center;
  color: var(--gray);
  font-size: .9375rem;
  line-height: 1.85;
}

/* ---------- カードグリッド ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .svc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.svc-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

/* ── 主力カード（電気代見直し） ── */
.svc-card--featured {
  grid-column: 1 / -1;
  position: relative;
  padding: 36px 36px 36px 52px;
  padding-top: 54px;
  border: 2.5px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--accent-amber-pale) 0%, var(--white) 55%, var(--accent-amber-pale) 100%);
  box-shadow: 0 20px 40px -22px rgba(150, 117, 26, .35);
}

.svc-card--featured:hover {
  border-color: var(--accent-amber-deep);
  box-shadow: 0 24px 44px -20px rgba(180, 83, 9, .4);
}

.svc-card--featured .svc-card-head {
  position: relative;
  z-index: 1;
}

.svc-card.svc-card--featured .svc-icon {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--gold-icon-start) 0%, var(--gold-icon-end) 100%);
  color: var(--white);
  box-shadow: 0 18px 36px -10px rgba(234, 179, 8, .55);
}

.svc-card.svc-card--featured .svc-icon svg {
  width: 66px;
  height: 66px;
}

.svc-card--featured h3 {
  position: relative;
  z-index: 1;
}

.svc-card--featured .svc-desc,
.svc-card--featured .svc-kicker,
.svc-card--featured .svc-check-pills {
  position: relative;
  z-index: 1;
}

.svc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.svc-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.svc-icon svg {
  width: 24px;
  height: 24px;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.svc-tags--featured {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 2;
  max-width: calc(100% - 180px);
}

@media (max-width: 900px) {
  .svc-tags--featured {
    max-width: calc(100% - 140px);
    top: 20px;
    right: 20px;
  }

  .svc-card.svc-card--featured .svc-icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }

  .svc-card.svc-card--featured .svc-icon svg {
    width: 36px;
    height: 36px;
  }
}

.svc-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--navy-soft);
  font-size: .6875rem;
  font-weight: 700;
  white-space: nowrap;
}

.svc-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -.01em;
  line-height: 1.5;
}

.svc-brands {
  font-size: .8125rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.6;
}

.svc-desc {
  font-size: .875rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 18px;
}

.svc-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.svc-points li {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy-soft);
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}

.svc-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .3em;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--blue);
}

.svc-link:hover {
  color: var(--blue-deep);
}

.svc-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.svc-title-link {
  color: inherit;
  text-decoration: none;
}

.svc-title-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── セクション末尾のCTA（無料診断・お問い合わせ） ── */
.svc-category-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ---------- 代理店パートナーへの誘導 ----------
   カードで囲わず、トップページの partner セクションと同じ
   淡いグラデーションでページに自然に馴染ませる */
.svc-partner {
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-soft) 25%, var(--white) 100%);
}

.svc-partner-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.svc-partner-tags span {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--blue-light);
  color: var(--navy-soft);
  font-size: .8125rem;
  font-weight: 700;
}

.svc-partner-cta {
  text-align: center;
}

.svc-partner-note {
  margin-top: 14px;
  color: var(--gray);
  font-size: .8125rem;
}
