:root {
  --primary-color: #0a2540;
  --secondary-color: #f6ad55;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #2d3748;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
}

.subhero {
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

[x-cloak] {
  display: none !important;
}

/* ヘッダーの背景白帯（透過20%） */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: -1;
  pointer-events: none;
}

/* サービスセクション用アウトライン定義 */
.text-outline-primary {
  -webkit-text-stroke: 1px var(--primary-color);
}

/* 記事本文詳細用スタイル (スコープ限定) */
#cms-detail-body h2 {
  font-size: 1.875rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-weight: bold;
}
#cms-detail-body h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
}
#cms-detail-body h4 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
}
#cms-detail-body h5 {
  font-size: 1.125rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
#cms-detail-body p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
#cms-detail-body br {
  display: block;
  content: '';
  margin-top: 0.5rem;
}

/* Extracted from Templates */
/* From ./parts/price-content.html */

.price-card {
  transition: transform 0.3s ease;
}
.price-card:hover {
  transform: translateY(-10px);
}

/* From ./parts/works-list.html */

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}
.works-card {
  transition: transform 0.3s ease;
}
.works-card:hover {
  transform: translateY(-8px);
}
.cms-item-thumb-wrapper {
  object-fit: contain !important;
  background-color: #f3f4f6;
}
