.p-service-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.p-service-section-label__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-brand-green);
  box-shadow: 0 0 8px 1px var(--color-brand-green);
}

/* ===== CORE SERVICES：切り欠き角(clip-path)の大型パネル ===== */

.p-service-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.p-service-featured__item {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: 44px 44px 36px;
  overflow: visible;
  transition: transform 0.35s ease;
}

@media (any-hover: hover) {
  .p-service-featured__item:hover {
    transform: translateY(-6px);
  }
}

.p-service-featured__backdrop {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%);
  background-color: var(--color-bg-elevated);
  background-image: linear-gradient(135deg, rgba(47, 150, 224, 0.1), transparent 55%);
  border: 1px solid var(--color-border);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

@media (any-hover: hover) {
  .p-service-featured__item:hover .p-service-featured__backdrop {
    border-color: rgba(108, 199, 255, 0.5);
    box-shadow: var(--glow-accent);
  }
}

.p-service-featured__item::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(108, 199, 255, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@media (any-hover: hover) {
  .p-service-featured__item:hover::before {
    opacity: 1;
  }
}

.p-service-featured__index {
  position: absolute;
  top: -18px;
  right: -6px;
  font-family: var(--font-family-mono);
  font-size: clamp(6rem, 9vw, 8.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.p-service-featured__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #ffffff;
  box-shadow: 0 16px 32px -16px rgba(47, 150, 224, 0.6);
}

.p-service-featured__icon svg {
  width: 34px;
  height: 34px;
}

.p-service-featured__tag {
  position: relative;
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-accent-bright);
}

.p-service-featured__title {
  position: relative;
  margin-top: 10px;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.p-service-featured__text {
  position: relative;
  margin-top: 14px;
  max-width: 480px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.85;
}

.p-service-featured__arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  transition: gap 0.25s ease, color 0.25s ease;
}

@media (any-hover: hover) {
  .p-service-featured__item:hover .p-service-featured__arrow {
    gap: 12px;
    color: var(--color-accent-bright);
  }
}

/* ===== PRODUCTS & PLATFORMS：小型グリッド ===== */

.p-service-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.p-service-product {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px 24px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background-color: var(--color-bg-elevated);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.p-service-product::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(108, 199, 255, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@media (any-hover: hover) {
  .p-service-product:hover {
    border-color: rgba(108, 199, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--glow-accent);
  }

  .p-service-product:hover::before {
    opacity: 1;
  }
}

.p-service-product__index {
  position: absolute;
  right: 14px;
  bottom: -10px;
  font-family: var(--font-family-mono);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  opacity: 0.05;
  pointer-events: none;
}

.p-service-product__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  color: var(--color-accent-bright);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.p-service-product__icon svg {
  width: 22px;
  height: 22px;
}

@media (any-hover: hover) {
  .p-service-product:hover .p-service-product__icon {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    color: #ffffff;
    border-color: transparent;
  }
}

.p-service-product__tag {
  position: relative;
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-family-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent-bright);
}

.p-service-product__title {
  position: relative;
  margin-top: 8px;
  font-size: 1rem;
}

.p-service-product__text {
  position: relative;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-service-product__arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  transition: gap 0.25s ease;
}

@media (any-hover: hover) {
  .p-service-product:hover .p-service-product__arrow {
    gap: 10px;
  }
}

@media (max-width: 1100px) {
  .p-service-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .p-service-featured {
    grid-template-columns: 1fr;
  }

  .p-service-featured__item {
    min-height: 320px;
    padding: 36px 32px 30px;
  }

  .p-service-featured__index {
    font-size: 5rem;
  }
}

@media (max-width: 640px) {
  .p-service-products {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-service-featured__item,
  .p-service-product {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) and (any-hover: hover) {
  .p-service-featured__item:hover,
  .p-service-product:hover {
    transform: none;
  }
}
