.pg-services .section {
  padding: 0;
  margin: 0;
}
.pg-services .services-section {
  padding: 0;
}

/* services base */
.pg-services main,
.pg-service-single main {}

/* hero */
.pg-services .hero,
.pg-service-single .hero {
  padding: 120px 0 80px;
  color: #fff;
  background: linear-gradient(135deg, #1f3a5f 0%, #152840 100%);
}

.pg-services .hero .hero-label,
.pg-service-single .hero .hero-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .2em;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-family: 'Oswald', sans-serif;
}

.pg-services .hero .hero-title,
.pg-service-single .hero .hero-title {
  font-size: 44px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.pg-services .hero .hero-subtitle,
.pg-service-single .hero .hero-subtitle {
  font-size: 16px;
  opacity: .95;
  line-height: 1.9;
}

/* containers */
.pg-services .container,
.pg-service-single .container {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 15px;
}
.pg-service-single .container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

/* archive cards */
.pg-services .services-block { margin: 64px 0; }
.pg-services .section-header { text-align: center; margin-bottom: 48px; }
.pg-services .section-title { font-size: 32px; margin-bottom: 12px; }
.pg-services .section-subtitle { color: #6b7280; }

/* ===== services grid: 2 columns ===== */
.pg-services .services-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* tablet以下は1カラム */
@media (max-width: 900px){
  .pg-services .services-grid{
    grid-template-columns: 1fr;
  }
}

.pg-services .service-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  transition: .3s;
}
.pg-services .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 74, 173, 0.15);
  border-color: #004aad;
}
.pg-services .service-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .15em;
  background: #004aad;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: 'Oswald', sans-serif;
}
.pg-services .service-title { font-size: 20px; margin-bottom: 12px; }
.pg-services .service-text { color: #6b7280; font-size: 14px; line-height: 1.8; }

/* Heroを中央寄せ（WP版の見た目をモック寄せ） */
.pg-services .hero {
  text-align: center;
}
.pg-services .hero .hero-content {
  max-width: 980px;
  margin: 0 auto;
}
.pg-services .hero .hero-label {
  margin: 0 auto 24px;
}

/* service card head (SERVICE + english type) */
.pg-services .service-card-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.pg-services .service-type{
  font-size: 12px;
  letter-spacing: .08em;
  color: #6b7280;
  font-family: 'Oswald', sans-serif;
}

/* chips */
.pg-services .service-features{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}
.pg-services .service-feature{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,74,173,.08);
  color: #004aad;
  font-weight: 700;
  font-size: 12px;
}

/* ===== section styling (メリハリ) ===== */
.pg-services .services-block{
  padding: 56px 0;
  margin: 0;
  border: none;
  background: #ffffff; /* 奇数は白 */
}

/* 偶数セクションは薄い青 */
.pg-services .services-block:nth-of-type(even){
  background: #f3f7ff;
}

/* セクションの上下に“空気”を少し足して区切りを明確に */
.pg-services .services-block + .services-block{
  box-shadow: inset 0 1px 0 rgba(0,0,0,.06);
}


/* ===== card header (icon + title + en) ===== */
.pg-services .service-card-top{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.pg-services .service-icon{
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(0, 74, 173, .08);
  display: grid;
  place-items: center;
  flex: 0 0 56px;
}

.pg-services .service-icon i{
  font-size: 22px;
  color: #004aad;
}

.pg-services .service-card-titles{
  flex: 1;
}

.pg-services .service-title{
  font-size: 20px;
  margin: 0 0 6px;
  line-height: 1.4;
}

.pg-services .service-type-en{
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #004aad;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .02em;
}
.pg-services .service-label,
.pg-services .service-card-head{
  display: none !important;
}

/* ===== header と hero の隙間を消す（servicesページ限定） ===== */

/* 1) hero 直前の余白を潰す */
.pg-services .hero{
  margin-top: 0 !important;
}

/* 2) WPテーマ側で main / コンテンツに入っている上余白を潰す */
.pg-services{
  padding-top: 0 !important;
}

/* 3) sectionのデフォルト余白が乗ってるケース対策 */
.pg-services .services-section{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 4) 念のため：heroが最初の要素でも上に余白が出ないように */
.pg-services main,
.pg-services > main{
  margin-top: 0 !important;
  padding-top: 0 !important;
}
