/*====================================
  Service Archive (list page)
====================================*/
.service-archive {
  padding-bottom: 100px;

  @media (min-width: 1024px) {
    padding-bottom: 140px;
  }
}

.service-archive__lead {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 2;
  color: var(--color-text-sub);
  margin-bottom: 56px;
  max-width: 640px;

  @media (min-width: 1024px) {
    margin-bottom: 72px;
  }
}

.service-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 20px;

  &.service-list--full {
    grid-template-columns: 1fr;

    @media (min-width: 768px) {
      grid-template-columns: 1fr 1fr;
    }

    @media (min-width: 1024px) {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .item {
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--color-bg-alt);
    box-shadow: var(--shadow-card);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);

    &:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-hover);
    }

    a {
      display: flex;
      flex-direction: column;
      height: 100%;
      color: var(--color-text);
    }

    .img {
      position: relative;
      aspect-ratio: 3/2;
      overflow: hidden;
      background: var(--color-bg);

      img {
        position: absolute;
        inset: 0;
        width: 100%; height: 100%;
        object-fit: cover;
        transition: transform 0.6s var(--ease-out);
      }
    }

    &:hover .img img { transform: scale(1.05); }

    .contents {
      padding: 24px 24px 28px;
      flex: 1;
      display: flex;
      flex-direction: column;

      .title {
        margin-bottom: 12px;

        .title-en {
          font-family: var(--font-en);
          font-size: 10px;
          font-weight: 700;
          letter-spacing: 0.18em;
          text-transform: uppercase;
          color: var(--color-accent);
          display: block;
          margin-bottom: 6px;
        }

        .title-ja {
          font-weight: 800;
          font-size: 18px;
          line-height: 1.4;
          margin: 0;
        }
      }

      .desc {
        font-size: 13px;
        line-height: 1.85;
        color: var(--color-text-sub);
        flex: 1;
        margin-bottom: 20px;
      }

      .service-list__cta {
        align-self: flex-start;
        pointer-events: none; /* outer <a> handles click */
      }
    }
  }

  .item:hover .service-list__cta {
    border-color: var(--color-accent);
    color: var(--color-accent);
  }
}

.service-archive__empty {
  padding: 80px 0;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-sub);
}

/*====================================
  Service Detail – shared layout
====================================*/

/* Full-width hero */
.svc-hero {
  position: relative;
  width: 100%;
  height: 45vw;
  max-height: 560px;
  min-height: 220px;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .svc-hero__overlay {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(135deg, rgba(10, 22, 40, 0.75) 0%, rgba(37, 99, 235, 0.35) 100%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E") repeat;
    background-size: auto, 180px 180px;
    display: flex;
    align-items: flex-end;
    padding: 32px 40px;

    @media (min-width: 1024px) {
      padding: 48px 60px;
    }
  }

  .svc-hero__tag {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--r-pill);
    padding: 6px 16px;
  }
}

/* Content wrapper */
.svc-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 24px 120px;

  @media (min-width: 768px) {
    padding: 0 40px 140px;
  }

  @media (min-width: 1280px) {
    padding: 0 60px 160px;
  }
}

/* Lead */
.svc-lead {
  padding: 56px 0 0;

  @media (min-width: 1024px) {
    padding: 80px 0 0;
  }

  .svc-lead__text {
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.9;
    color: var(--color-text);
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.01em;
  }
}

/* ── 事業詳細ページ共通 見出しパターン（Overview / Services / Why PATEX） ── */
.svc-section-title-group {
  margin-bottom: 32px;
}

.svc-section-title-en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.svc-section-title-ja {
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text);
  margin: 0;
}

/* Features section */
.svc-features {
  padding-top: 80px;

  @media (min-width: 1024px) {
    padding-top: 120px;
  }

  .svc-features__head {
    margin-bottom: 48px;

    @media (min-width: 1024px) {
      margin-bottom: 64px;
    }

  }
}

/* ── Feature/Why 共通リストスタイル（.svc-features と .svc-why の両方で使用） ── */
.svc-features__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.svc-features__item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);

  @media (min-width: 768px) {
    gap: 48px;
  }

  .svc-features__num {
    font-family: var(--font-en);
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--color-accent);
    flex-shrink: 0;
    width: 64px;
    text-align: right;
    opacity: 0.35;

    @media (min-width: 768px) {
      width: 88px;
    }
  }

  .svc-features__body {
    flex: 1;

    .svc-features__name {
      font-family: var(--font-ja);
      font-size: clamp(17px, 2.5vw, 22px);
      font-weight: 800;
      letter-spacing: 0.01em;
      color: var(--color-text);
      margin: 0 0 12px;
    }

    .svc-features__desc {
      font-size: 14px;
      line-height: 1.9;
      color: var(--color-text-sub);
      margin: 0;
    }
  }
}

/* Why PATEX */
.svc-why {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid var(--color-border);

  @media (min-width: 1024px) {
    margin-top: 100px;
    padding-top: 100px;
  }

}

/*====================================
  Total Support Flow (svc-flow)
  美容クリニック 開業ステップ
====================================*/
.svc-flow {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--color-border);

  @media (min-width: 1024px) {
    margin-top: 100px;
    padding-top: 100px;
  }
}

.svc-flow__list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;

  /* Vertical connector line */
  &::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 1px;
    background: linear-gradient(to bottom, var(--color-accent) 0%, rgba(37, 99, 235, 0.1) 100%);

    @media (min-width: 768px) {
      left: 36px;
    }
  }
}

.svc-flow__item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 40px;
  position: relative;

  @media (min-width: 768px) {
    gap: 32px;
    padding-bottom: 48px;
  }

  &.svc-flow__item--last {
    padding-bottom: 0;
  }
}

.svc-flow__step {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  gap: 2px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 5px rgba(37, 99, 235, 0.2);

  @media (min-width: 768px) {
    width: 72px;
    height: 72px;
    font-size: 9px;
    gap: 3px;
  }

  span {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;

    @media (min-width: 768px) {
      font-size: 28px;
    }
  }
}

.svc-flow__body {
  flex: 1;
}

.svc-flow__title {
  font-family: var(--font-ja);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.svc-flow__desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
  margin: 0;
}