/*
  service-page.css — 各サービス個別ページ共通スタイル
  services/ 配下のすべてのサービスページで読み込む
*/

/* ── Hero ── */
.svc-hero {
  padding: calc(var(--header-h) + 80px) 0 80px;
  position: relative;
  overflow: hidden;
}
.svc-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, var(--svc-glow, rgba(232,131,58,0.1)) 0%, transparent 65%);
  pointer-events: none;
}
.svc-hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.svc-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--svc-color-border, rgba(79,140,255,0.3));
  background: var(--svc-color-bg, rgba(79,140,255,0.07));
  color: var(--svc-color, var(--a));
  margin-bottom: 18px;
}
.svc-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800; letter-spacing: -0.03em; color: var(--white);
  line-height: 1.0; margin-bottom: 22px;
}
.svc-hero-desc {
  font-size: 1.0625rem; color: var(--gray-2); line-height: 1.8; margin-bottom: 36px;
}
.svc-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-svc {
  background: var(--svc-color, var(--a));
  color: var(--bg);
  font-weight: 700;
}
.btn-svc:hover { opacity: 0.85; transform: translateY(-1px); box-shadow: 0 8px 24px var(--svc-shadow, rgba(79,140,255,0.3)); }

/* ── Hero image ── */
.svc-hero-img-wrap {
  position: relative;
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-2); border: 1px solid var(--border);
}
.svc-hero-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.svc-hero-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem;
  background: var(--bg-2);
  position: relative;
}
.svc-hero-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, var(--svc-glow, rgba(232,131,58,0.1)) 0%, transparent 70%);
}

/* ── Overview ── */
.svc-overview { padding: 96px 0; }
.svc-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

/* ── Features ── */
.svc-features { padding: 96px 0; background: var(--bg-1); border-top: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.feature-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--svc-color, var(--a));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.feature-card:hover { border-color: var(--border-h); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { font-size: 1.6rem; margin-bottom: 14px; }
.feature-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--gray-2); line-height: 1.75; }

/* ── Gallery ── */
.svc-gallery { padding: 96px 0; }
.gallery-label-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }

/* 1枚 */
.gallery-1 .gallery-img { border-radius: 16px; overflow: hidden; }
/* 2枚 */
.gallery-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* 3枚 */
.gallery-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.gallery-3 .gallery-col { display: flex; flex-direction: column; gap: 20px; }

.gallery-img {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  background: var(--bg-2);
  position: relative;
}
.gallery-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; z-index: 1; }
.gallery-img:hover img { transform: scale(1.02); }
/* placeholder when no real image */
.gallery-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg-3);
  color: var(--gray-3); font-size: 0.8125rem;
}
.gallery-img-placeholder span { font-size: 2rem; }
.gallery-img-placeholder p { font-size: 0.75rem; }

/* ── Privacy ── */
.svc-privacy { padding: 96px 0; background: var(--bg-1); border-top: 1px solid var(--border); }
.pp-box {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 48px; margin-top: 40px;
}
.pp-box h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 20px; }
.pp-box h4 { font-size: 0.8125rem; font-weight: 700; color: var(--gray-1); margin: 24px 0 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.pp-box p { font-size: 0.9rem; color: var(--gray-2); line-height: 1.8; }
.pp-box ul { margin: 8px 0 14px 20px; list-style: disc; }
.pp-box ul li { font-size: 0.9rem; color: var(--gray-2); line-height: 1.75; }
.pp-updated { font-size: 0.8125rem; color: var(--gray-3); margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ── CTA ── */
.svc-cta { padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.svc-cta::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, var(--svc-glow, rgba(232,131,58,0.08)) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .svc-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .svc-hero h1 { font-size: clamp(2.4rem, 8vw, 3.5rem); }
  .svc-overview-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-2 { grid-template-columns: 1fr; }
  .gallery-3 { grid-template-columns: 1fr; }
  .pp-box { padding: 24px 18px; }
}
