/* ==========================================================================
   Section 010: Services - 診療案内
   ========================================================================== */

/* Main section container */
:where(.sec-010-services) {
  padding: var(--section-spacing-large) 0;
  background: linear-gradient(
    135deg,
    rgba(118, 197, 118, 0.05) 0%,
    rgba(118, 197, 118, 0.02) 50%,
    rgba(118, 197, 118, 0.08) 100%
  );
  position: relative;
  overflow: hidden;
}

/* Background layer for color */
:where(.sec-010-services::before) {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--wp--preset--color--primary-100);
  opacity: 0.3;
  z-index: -2;
}

/* Background Decorations - Behind everything */
:where(.sec-010-services__bg-decoration) {
  position: absolute;
  z-index: -3;
  pointer-events: none;
  opacity: 0.04;
}

:where(.sec-010-services__bg-decoration--1) {
  top: 10%;
  left: -10%;
  width: 400px;
  height: 400px;
}

:where(.sec-010-services__bg-decoration--2) {
  bottom: 20%;
  right: -5%;
  width: 350px;
  height: 350px;
}

:where(.sec-010-services__bg-decoration--3) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
}

:where(.sec-010-services__bg-decoration img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  filter: blur(2px);
  animation: float 25s ease-in-out infinite;
}

/* Container */
:where(.sec-010-services__wrapper) {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--wp--preset--spacing--base);
  position: relative;
  z-index: 1;
}

/* Header */
:where(.sec-010-services__header) {
  text-align: center;
  margin-bottom: var(--wp--preset--spacing--3-xl);
}

/* Title styling */
:where(.sec-010-services__title) {
  margin-bottom: var(--wp--preset--spacing--lg);
}

:where(.sec-010-services__subtitle) {
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--text);
  opacity: 0.8;
}

/* Services Grid - 4 columns */
:where(.sec-010-services__grid) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--preset--spacing--lg);
  max-width: 1200px;
  margin: 0 auto;
  @media (max-width: 768px) {
    gap: var(--wp--preset--spacing--base);
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Service Item - Link Block */
:where(.sec-010-services__item) {
  display: flex;
  place-content: center;
  flex-direction: column;
  gap: var(--wp--preset--spacing--sm);
  text-decoration: none;
  background: var(--wp--preset--color--white);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: var(--wp--preset--spacing--base);
  text-align: center;
  border: 1px solid var(--wp--preset--color--primary-lighter);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}
:where(.sec-010-services__item p) {
  font-size: var(--wp--preset--font-size--sm);
  @media (max-width: 768px) {
    font-size: var(--wp--preset--font-size--xs);
    width: 100%;
    text-align: left;
  }
}

/* Hover effect */
:where(.sec-010-services__item:hover) {
  opacigy: 0.95;
}

/* Icon container */
:where(.sec-010-services__icon) {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--wp--preset--spacing--20);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(118, 197, 118, 0.1) 0%,
    rgba(118, 197, 118, 0.05) 100%
  );
  border-radius: 50%;
  transition: transform 0.3s ease;
}

:where(.sec-010-services__item:hover .sec-010-services__icon) {
  transform: scale(1.1);
}

:where(.sec-010-services__icon img) {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Service Title */
:where(.sec-010-services__name) {
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
  color: var(--wp--preset--color--primary-700);
  line-height: 1.4;
}

/* Service Description */
:where(.sec-010-services__desc) {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--text);
  line-height: 1.6;
  margin: 0;
}

/* Arrow Icon - Bottom Right (Always visible) */
:where(.sec-010-services__arrow) {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  background: var(--wp--preset--color--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  @media (max-width: 768px) {
    position: static;
    margin: 0 auto;
  }
}

:where(.sec-010-services__arrow span) {
  width: 12px;
  height: 12px;
  font-size: 12px !important;
}

:where(.sec-010-services__item:hover .sec-010-services__arrow) {
  transform: scale(1.1);
}

:where(.sec-010-services__arrow .material-symbols-outlined) {
  color: white;
  font-size: 14px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
}

/* CTA Button Section */
:where(.sec-010-services__cta) {
  text-align: center;
  margin-top: var(--wp--preset--spacing--3-xl);
}

/* Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
