.services-hero {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--navy);
  background: #edf3f7;
}

.services-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.64) 46%, rgba(255, 255, 255, 0.18) 100%);
}

.services-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.services-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 130px 43px 70px;
}

.services-hero__eyebrow,
.section-header__eyebrow,
.service-detail__number {
  margin: 0 0 18px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.services-hero__title {
  margin: 0;
  font-size: clamp(34px, 3.3vw, 40px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.services-hero__lead {
  max-width: 680px;
  margin: 24px 0 0;
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 2;
}

.services-overview,
.service-detail,
.service-cta {
  padding: 80px 43px;
}

.services-overview {
  padding-top: 64px;
  background: #fff;
}

.services-overview__inner,
.service-detail__inner,
.service-cta__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.services-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.section-header {
  color: var(--navy);
}

.section-header__title {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.services-overview__text {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 15px;
  line-height: 2.1;
}

.services-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.services-index a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(8, 36, 72, 0.14);
  color: var(--navy);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  background: #f7fafc;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.services-index a::after {
  content: "→";
  color: #2d7fa3;
}

@media (hover: hover) {
  .services-index a:hover {
    border-color: #2d7fa3;
    color: #2d7fa3;
    transform: translateY(-2px);
  }
}

.service-detail {
  --service-theme: #2d7fa3;
  --service-theme-soft: rgba(45, 127, 163, 0.14);
  position: relative;
  overflow: hidden;
  background: #f5f8fa;
  transition: background-color 0.7s ease;
}

.service-detail::before,
.service-detail::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.service-detail::before {
  top: 44px;
  right: 43px;
  width: min(34vw, 380px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--service-theme) 20%, transparent);
  border-radius: 50%;
  opacity: 0.34;
  transform: scale(0.86);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-detail::after {
  right: 0;
  bottom: 68px;
  width: min(46vw, 560px);
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--service-theme) 45%, transparent), transparent);
  opacity: 0.42;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-detail.is-active::before {
  opacity: 0.72;
  transform: scale(1);
  animation: service-section-ring 7s ease-in-out infinite;
}

.service-detail.is-active::after {
  opacity: 0.78;
  transform: translateX(0);
  animation: service-section-line 6s ease-in-out infinite;
}

.service-detail:nth-of-type(even) {
  background: #fff;
}

.service-detail[data-service-theme="nature"] {
  --service-theme: #245f9b;
  --service-theme-soft: rgba(36, 95, 155, 0.14);
}

.service-detail[data-service-theme="recreation"] {
  --service-theme: #27877f;
  --service-theme-soft: rgba(39, 135, 127, 0.14);
}

.service-detail[data-service-theme="wine"] {
  --service-theme: #934b67;
  --service-theme-soft: rgba(147, 75, 103, 0.14);
}

.service-detail[data-service-theme="community"] {
  --service-theme: #a8752c;
  --service-theme-soft: rgba(168, 117, 44, 0.16);
}

.service-detail__inner {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.service-detail__number {
  color: var(--service-theme);
  transition: color 0.7s ease;
}

@keyframes service-section-ring {
  0%,
  100% {
    transform: scale(0.96) rotate(0deg);
  }

  50% {
    transform: scale(1.04) rotate(16deg);
  }
}

@keyframes service-section-line {
  0%,
  100% {
    transform: translateX(0) scaleX(0.86);
  }

  50% {
    transform: translateX(-28px) scaleX(1.06);
  }
}

.service-detail__title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding-bottom: 24px;
  color: var(--navy);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.service-detail__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 96px;
  height: 2px;
  background: var(--service-theme);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.8s ease;
}

.service-detail.is-active .service-detail__title::after {
  transform: scaleX(1);
}

.service-detail__title-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--service-theme) 30%, transparent);
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 36px rgba(8, 36, 72, 0.08);
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.6s ease;
}

.service-detail.is-active .service-detail__title-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: color-mix(in srgb, var(--service-theme) 56%, transparent);
}

.service-detail__lead {
  margin: 26px 0 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
}

.service-detail__text {
  margin: 22px 0 0;
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 14px;
  line-height: 2.1;
}

.service-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 38px 0 0;
  background: rgba(8, 36, 72, 0.14);
  border: 1px solid rgba(8, 36, 72, 0.14);
}

.service-capability {
  min-height: 150px;
  padding: 26px 24px;
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (hover: hover) {
  .service-capability:hover {
    transform: translateY(-3px);
    box-shadow: inset 3px 0 0 var(--service-theme), 0 14px 28px rgba(8, 36, 72, 0.06);
  }
}

.service-capability h3 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.service-capability p {
  margin: 14px 0 0;
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 13px;
  line-height: 1.9;
}

.service-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 42px 0 0;
  background: transparent;
}

.service-process::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, rgba(45, 127, 163, 0.16), rgba(45, 127, 163, 0.62));
}

.service-process__item {
  position: relative;
  z-index: 1;
  padding: 0 18px;
  text-align: center;
}

.service-process__icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border: 1px solid rgba(45, 127, 163, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(45, 127, 163, 0.12), rgba(255, 255, 255, 0.96) 58%),
    #fff;
  box-shadow: 0 12px 26px rgba(8, 36, 72, 0.08);
}

.service-process__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.service-process__item::after {
  content: "→";
  position: absolute;
  top: 22px;
  right: -10px;
  color: #2d7fa3;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.service-process__item:last-child::after {
  content: none;
}

.service-process__step {
  display: block;
  color: #2d7fa3;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.service-process__step::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 12px auto 0;
  border-radius: 50%;
  background: #2d7fa3;
}

.service-process__step-number {
  display: block;
  margin-bottom: 8px;
  color: #2d7fa3;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.service-process__item p {
  margin: 22px 0 0;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.7;
}

.service-cta {
  color: #fff;
  background: var(--navy);
}

.service-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

.service-cta__title {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.35;
}

.service-cta__text {
  max-width: 560px;
  margin: 18px 0 0;
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 14px;
  line-height: 2;
}

.service-cta__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

@media (hover: hover) {
  .service-cta__link:hover {
    color: var(--navy);
    background: #fff;
  }
}

@media (max-width: 900px) {
  .services-overview,
  .service-detail,
  .service-cta {
    padding: 64px 28px;
  }

  .services-overview {
    padding-top: 56px;
  }

  .services-overview__grid,
  .service-detail__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .service-process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .services-hero {
    min-height: 250px;
  }

  .services-hero__content {
    padding: 112px 24px 42px;
  }

  .services-hero__title {
    font-size: 40px;
  }

  .services-overview,
  .service-detail,
  .service-cta {
    padding: 56px 24px;
  }

  .services-overview {
    padding-top: 48px;
  }

  .section-header__title {
    font-size: 29px;
  }

  .service-detail::before {
    right: 24px;
    width: 220px;
  }

  .service-detail::after {
    width: 260px;
  }

  .service-detail__title {
    gap: 14px;
  }

  .service-detail__title-icon {
    width: 46px;
    height: 46px;
    padding: 10px;
  }

  .services-index,
  .service-capabilities,
  .service-process {
    grid-template-columns: 1fr;
  }

  .service-process {
    gap: 28px;
  }

  .service-process::before {
    top: 0;
    bottom: 0;
    left: 31px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(45, 127, 163, 0.16), rgba(45, 127, 163, 0.62));
  }

  .service-process__item {
    min-height: 88px;
    padding: 0 0 0 90px;
    text-align: left;
  }

  .service-process__icon {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
  }

  .service-process__item::after {
    top: auto;
    right: auto;
    bottom: -24px;
    left: 27px;
    transform: rotate(90deg);
  }

  .service-process__step {
    margin-top: 9px;
    text-align: center;
  }

  .service-process__step::after {
    margin-top: 10px;
  }

  .service-process__item p {
    margin-top: 10px;
  }

  .service-cta__inner {
    display: block;
  }

  .service-cta__link {
    margin-top: 28px;
  }
}

@media (max-width: 520px) {
  .services-hero__content {
    padding: 112px 20px 42px;
  }

  .services-overview,
  .service-detail,
  .service-cta {
    padding: 48px 20px;
  }

  .services-overview {
    padding-top: 48px;
  }

  .services-hero__lead,
  .services-overview__text,
  .service-detail__text,
  .service-capability p,
  .service-cta__text {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-detail,
  .service-detail::before,
  .service-detail::after,
  .service-detail__title::after,
  .service-detail__title-icon,
  .service-detail__number {
    animation: none;
    transition: none;
  }

  .service-detail.is-active .service-detail__title-icon {
    opacity: 1;
    transform: none;
  }
}
