/* ============================================================
   page-services.css
   サービス一覧ページ専用スタイル
   ============================================================ */

/* -------- 変数 -------- */
:root {
  --sv-accent:    #1a7a4a;    /* アクセントグリーン */
  --sv-gray:      #f5f5f5;    /* カード背景 */
  --sv-border:    #e0e0e0;    /* ボーダー */
  --sv-text:      #333;
  --sv-muted:     #666;
  --sv-img-bg:    #fff;       /* 画像エリア背景 */
}

/* -------- ページラッパー -------- */
#page-services {
  padding-bottom: 80px;
}

/* ============================================================
   カテゴリセクション
   ============================================================ */
.sv-category {
  max-width: 1000px;
  margin: 0 auto 72px;
  padding: 0 20px;
}

/* カテゴリ見出し */
.sv-category-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--sv-accent);
}

.sv-category-head h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--sv-text);
  margin: 0;
  letter-spacing: 0.04em;
}

.sv-category-en {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--sv-accent);
  padding: 3px 10px;
  border-radius: 2px;
}

/* ============================================================
   カードグリッド
   ============================================================ */
.sv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* カード */
.sv-card {
  background: #fff;
  border: 1px solid var(--sv-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}

a.sv-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-4px);
  text-decoration: none;
}

/* 画像エリア */
.sv-card-img {
  background: var(--sv-img-bg);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--sv-border);
}

.sv-card-img img {
  max-width: 80%;
  max-height: 120px;
  object-fit: contain;
  transition: transform 0.4s;
}

a.sv-card:hover .sv-card-img img {
  transform: scale(1.05);
}

/* 画像プレースホルダー（画像なし） */
.sv-card-img-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eee 0%, #ddd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #aaa;
}

/* テキストエリア */
.sv-card-body {
  padding: 20px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sv-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sv-text);
  margin: 0 0 8px;
  line-height: 1.5;
}

.sv-card-desc {
  font-size: 13px;
  color: var(--sv-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

/* リンクテキスト */
.sv-card-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sv-accent);
  margin-top: 14px;
  transition: gap 0.2s;
}

a.sv-card:hover .sv-card-link {
  gap: 8px;
}

/* ============================================================
   バッジ
   ============================================================ */
/* 外部リンクバッジ */
.sv-badge-ext {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #666;
  background: #f0f0f0;
  border: 1px solid #ddd;
  padding: 2px 8px;
  border-radius: 20px;
}

/* 準備中バッジ */
.sv-badge-soon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: #999;
  padding: 2px 8px;
  border-radius: 20px;
}

/* 準備中カード */
.sv-card.is-coming {
  pointer-events: none;
  opacity: 0.55;
  cursor: default;
}

/* ============================================================
   「お問い合わせ」ボタンエリア
   ============================================================ */
.sv-cta {
  text-align: center;
  padding: 32px 20px 0;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media screen and (max-width: 860px) {
  .sv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 540px) {
  .sv-grid {
    grid-template-columns: 1fr;
  }
  .sv-category-head h2 {
    font-size: 17px;
  }
}

/* ============================================================
   ご相談カード（取り扱いサービス末尾）
   ============================================================ */
.sv-card.sv-card-consult {
  border: 2px dashed var(--sv-accent);
  background: #f8fdf9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  /* グロー背景アニメーション */
  transition: box-shadow 0.3s, background 0.3s, transform 0.3s;
}

.sv-card.sv-card-consult::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(26,122,74,0.07) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.sv-card.sv-card-consult:hover {
  background: #f0faf4;
  box-shadow: 0 6px 28px rgba(26,122,74,0.18);
  transform: translateY(-4px);
}

.sv-card.sv-card-consult:hover::before {
  opacity: 1;
}

/* 内側コンテンツ */
.sv-card-consult-inner {
  text-align: center;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
}

/* ＋ アイコン */
.sv-card-consult-icon {
  font-size: 36px;
  font-weight: 300;
  color: var(--sv-accent);
  line-height: 1;
  margin-bottom: 14px;
  display: block;
  transition: transform 0.3s;
}

.sv-card.sv-card-consult:hover .sv-card-consult-icon {
  transform: rotate(90deg) scale(1.1);
}

/* タイトル */
.sv-card-consult-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sv-text);
  margin: 0 0 10px;
  line-height: 1.6;
}

/* 説明文 */
.sv-card-consult-desc {
  font-size: 13px;
  color: var(--sv-muted);
  line-height: 1.7;
  margin: 0 0 18px;
}

/* ボタン */
.sv-card-consult-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--sv-accent);
  padding: 8px 20px;
  border-radius: 2px;
  transition: gap 0.2s, background 0.2s;
}

.sv-card.sv-card-consult:hover .sv-card-consult-btn {
  gap: 8px;
  background: #155f3a;
}

