.sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: url("../images/header-serv.png") center/cover no-repeat;

  z-index: -1;

  /* ここだけ動かす */
  animation: heroMove 20s ease-in-out infinite alternate;

  transform: scale(1.1); /* 端の余白防止 */
}

/* =========================
   Service List（全体）
========================= */
.service-list {
  padding: 20px;
  background: #f8fafc;
}

.service-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 32px;
  color: #0f2745;
  text-align: center;
  margin-bottom: 50px;
}

/* =========================
   グリッド（2列固定）
========================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* SPは1列 */
@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   カード
========================= */
.service-card {
  display: block;
  padding: 28px;
  background: #fff;
  border-radius: 14px;
  transition: 0.3s;
  border: 1px solid rgba(15,39,69,0.06);
}

.service-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

/* =========================
   中身
========================= */
.service-card__inner {
  display: flex;
  align-items: center;
}

/* =========================
   アイコン
========================= */
.service-card__icon {
  width: 68px;
  height: 68px;
  min-width: 68px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-right: 26px;

  background: rgba(15,39,69,0.04);
  border-radius: 14px;
}

.service-card__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}


/* =========================
   タイトル
========================= */
.service-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f2745;
  line-height: 1.4;
}

/* レイアウト */
.service-card__inner {
  display: flex;
  align-items: center;
  gap: 0; /* marginで管理 */
}

/* =========================
   テキスト
========================= */
.service-card__content {
  flex: 1;
}

.service-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

/* ゴールドライン */
.service-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 12px;

  background: linear-gradient(
    90deg,
    #d4af37,
    #f5e6b3
  );

  transition: width 0.3s ease;
}

/* =========================
   ホバー（重要）
========================= */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  border-color: rgba(212,175,55,0.6);
}

/* アイコン変化 */
.service-card:hover .service-card__icon {
  background: linear-gradient(
    135deg,
    rgba(212,175,55,0.15),
    rgba(255,255,255,0.4)
  );

  transform: scale(1.08);
}

/* アイコン色変化 */
.service-card:hover .service-card__icon img {
  filter: none;
}

/* ライン伸び */
.service-card:hover .service-title::after {
  width: 80px;
}

/* =========================
   subtle演出（差が出る）
========================= */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(212,175,55,0.15),
    transparent
  );

  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* =========================
   レスポンシブ
========================= */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .service-card__inner {
    padding: 20px;
  }

  .service-card__icon {
    width: 60px;
    height: 60px;
  }

  .service-card__icon img {
    width: 28px;
    height: 28px;
  }

  .service-title {
    font-size: 16px;
  }
}

/* =========================
   全体背景
========================= */
.service-detail {
  padding: 100px 0;
  background: linear-gradient(#f9fafc, #ffffff);
}

/* =========================
   リード
========================= */
.service-detail__lead {
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 70px;
  color: #333;
}

/* =========================
   2カラム
========================= */
.service-detail__wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

/* SP */
@media (max-width: 768px) {
  .service-detail__wrap {
    grid-template-columns: 1fr;
  }
}

/* =========================
   テキスト
========================= */
.service-detail__content {
  font-size: 16px;
  line-height: 1.9;
  color: #222;
}

/* 見出し強化 */
.service-detail__content h2 {
  font-size: 22px;
  color: #0f2745;
  margin-bottom: 12px;
}

.service-detail__content h3 {
  font-size: 18px;
  margin-top: 24px;
}

/* =========================
   画像
========================= */
.service-detail__image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* =========================
   ちょい装飾（高級感）
========================= */
.service-detail__wrap::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212,175,55,0.08), transparent);
  filter: blur(60px);
  z-index: 0;
}

/* =========================
   ★ service-detail 改修（上書き）
========================= */

/* 画像をセクション化 */
.service-detail__visual {
  max-width: 1000px;
  margin: 0 auto 80px;
  position: relative;
  z-index: 1;
}

.service-detail__visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* 本文中央寄せ */
.service-detail__content {
  max-width: 800px;
  margin: 0 auto 100px;
  position: relative;
  z-index: 1;
}

/* =========================
   フロー（課題・施策・成果）
========================= */
.service-flow {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

/* カード */
.service-card {
  flex: 1;
  padding: 30px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15,39,69,0.08);
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

/* ラベル */
.service-card__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #d4af37;
  margin-bottom: 8px;
  display: block;
}

/* 見出し */
.service-card h3 {
  font-size: 18px;
  color: #0f2745;
  margin-bottom: 12px;
}

/* テキスト */
.service-card p {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

/* 左アクセントライン */
.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 3px;
  height: 40px;
  background: linear-gradient(#d4af37, #f5e6b3);
}

/* subtle光 */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(212,175,55,0.15),
    transparent
  );
  opacity: 0;
  transition: 0.4s;
}

/* hover */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  border-color: rgba(212,175,55,0.4);
}

.service-card:hover::after {
  opacity: 1;
}

/* =========================
   レスポンシブ
========================= */
@media (max-width: 768px) {

  .service-flow {
    flex-direction: column;
  }

}
