/* ===========サービス内容=========== */
:root {
  --uix-ink: #1f2326;
  --uix-muted: #6b7280;
  --uix-accent: #2a79ff;
  --uix-bg: #f7fafc;
  --uix-card: #fff;
  --uix-line: #e6eef5;
  --uix-shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.12);
  --uix-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  --uix-radius: 24px;
  --uix-container: 1200px;
  --uix-font: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo,
    sans-serif;
}

.uix-service {
  background: radial-gradient(
      1200px 400px at 10% 0%,
      #eef5ff 0,
      transparent 55%
    ),
    var(--uix-bg);
  padding: clamp(36px, 6vw, 96px) 0;
  color: var(--uix-ink);
  font-family: var(--uix-font);
}

.uix-container {
  max-width: var(--uix-container);
  margin: 0 auto;
  padding: 0 24px;
}

.uix-service .uix-container {
  max-width: 800px;
  margin: 0 auto;
}

.uix-service__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(8px, 1.8vw, 20px);
  align-items: center;
}

.uix-col--left,
.uix-col--right {
  min-width: 0;
}

.uix-hd-lg {
  margin: 0 0 8px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0.02em;
}

.uix-kicker {
  margin: 8px 0;
  color: var(--uix-muted);
  font-size: 14px;
}

.uix-lead {
  margin: 14px 0 22px;
  line-height: 1.95;
  color: #3b3f44;
  font-size: 14px;
}

.uix-pager {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 12px 0 22px;
}

.uix-navbtn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--uix-line);
  background: #fff;
  color: #2b3a49;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.uix-col--left {
  --uix-btn-shift: 24px;
}

.uix-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--uix-line);
  color: #1f2832;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: 0.2s ease;
  transform: translateX(var(--uix-btn-shift));
}

.uix-btn::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
}

.uix-btn:hover {
  transform: translateX(var(--uix-btn-shift)) translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.uix-counter {
  --uix-progress: 0;
  --uix-counter-stroke: 7px;
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(
    var(--uix-accent) 0deg calc(var(--uix-progress) * 1deg),
    #e6eef5 calc(var(--uix-progress) * 1deg) 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.uix-counter::after {
  content: "";
  position: absolute;
  inset: var(--uix-counter-stroke);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--uix-line);
  z-index: 0;
}

.uix-counter span {
  position: relative;
  z-index: 1;
  font-weight: 400;
  font-size: clamp(12px, 1.6vw, 14px);
  line-height: 1;
  color: #2b3a49;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.uix-cards {
  position: relative;
  height: var(--uix-cards-h, auto);
  overflow: visible;
  perspective: 1000px;
}

.uix-cards > .uix-card-hero {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s,
    filter 0.35s;
  z-index: 1;
}

.uix-cards > .uix-card-hero.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  z-index: 3;
}

.uix-cards > .uix-card-hero.is-prev {
  opacity: 0.9;
  transform: translateX(-28px) translateY(14px) scale(0.985) rotate(-1.2deg);
  z-index: 2;
  filter: saturate(0.96) brightness(0.98);
}

.uix-cards > .uix-card-hero.is-next {
  opacity: 0.9;
  transform: translateX(28px) translateY(14px) scale(0.985) rotate(1.2deg);
  z-index: 2;
  filter: saturate(0.96) brightness(0.98);
}

.uix-cards > .uix-card-hero.is-prev2 {
  opacity: 0.6;
  transform: translateX(-56px) translateY(26px) scale(0.97) rotate(-2.2deg);
  z-index: 1;
  filter: blur(0.2px) brightness(0.97);
}

.uix-cards > .uix-card-hero.is-next2 {
  opacity: 0.6;
  transform: translateX(56px) translateY(26px) scale(0.97) rotate(2.2deg);
  z-index: 1;
  filter: blur(0.2px) brightness(0.97);
}

.uix-cards.is-measuring > .uix-card-hero {
  position: static;
  opacity: 1;
  transform: none;
  visibility: hidden;
  pointer-events: none;
}

.uix-card-hero {
  background: #fff;
  border-radius: var(--uix-radius);
  padding: clamp(20px, 3.2vw, 36px);
  box-shadow: var(--uix-shadow-lg);
  isolation: isolate;
  overflow: visible;
}

.uix-card-hero::before,
.uix-card-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--uix-radius);
  background: #fff;
  transform: translate(22px, 18px) rotate(-1.5deg);
  box-shadow: var(--uix-shadow);
  z-index: -2;
  opacity: 0.85;
}

.uix-task {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.uix-task__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #7a8a9a;
}

.uix-task__num {
  font-size: 42px;
  font-weight: 800;
  color: #1e3a5f;
  line-height: 0.9;
}

.uix-task__tag {
  font-size: 12px;
  color: #708499;
  margin-left: 2px;
}

.uix-illust {
  margin: 18px 0 8px;
  display: flex;
  justify-content: center;
}

.uix-illust img {
  width: min(200px, 40%);
  height: auto;
  display: block;
  filter: saturate(110%);
}

.uix-card-title {
  margin: 12px 0 8px;
  text-align: center;
  line-height: 1.6;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  color: #2a2f33;
}

.uix-card-text {
  margin: 0 auto;
  text-align: center;
  color: #4b5563;
  line-height: 1.95;
  max-width: 640px;
  font-size: 14px;
}

.uix-card-hero {
  --uix-text-shift: 28px;
  padding-bottom: calc(clamp(20px, 3.2vw, 36px) + var(--uix-text-shift));
}

.uix-card-hero .uix-task,
.uix-card-hero .uix-card-title,
.uix-card-hero .uix-card-text {
  transform: translateY(var(--uix-text-shift));
}

.uix-photo {
  margin: 20px 0 16px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.uix-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* 写真用にテキスト位置調整 */
.uix-card-hero {
  --uix-text-shift: 16px;
}

/* PC */
@media (min-width: 611px) {
  .uix-photo img {
    height: 280px;
  }
}

@media (max-width: 610px) {
  .uix-service__grid {
    grid-template-columns: 1fr;
    gap: clamp(8px, 3vw, 16px);
  }

  .uix-col--right {
    order: 2;
  }
  .uix-col--left {
    order: 1;
  }

  .uix-illust img {
    width: min(220px, 52%);
  }

  .uix-counter {
    width: 86px;
    height: 86px;
    --uix-counter-stroke: 6px;
  }
  .uix-counter::after {
    inset: var(--uix-counter-stroke);
  }

  .uix-pager {
    gap: 14px;
  }

  .uix-card-hero {
    padding: 20px;
    border-radius: 20px;
  }
  .uix-card-hero::before,
  .uix-card-hero::after {
    border-radius: 20px;
  }

  .uix-btn {
    transform: none;
  }

  .uix-cards > .uix-card-hero.is-prev {
    transform: translateX(-16px) translateY(12px) scale(0.99) rotate(-1deg);
  }
  .uix-cards > .uix-card-hero.is-next {
    transform: translateX(16px) translateY(12px) scale(0.99) rotate(1deg);
  }
  .uix-cards > .uix-card-hero.is-prev2 {
    transform: translateX(-28px) translateY(20px) scale(0.985) rotate(-1.6deg);
  }
  .uix-cards > .uix-card-hero.is-next2 {
    transform: translateX(28px) translateY(20px) scale(0.985) rotate(1.6deg);
  }

  .uix-col--left {
    text-align: center;
  }
  .uix-col--left > .uix-hd-lg,
  .uix-col--left > .uix-kicker,
  .uix-col--left > .uix-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .uix-pager {
    justify-content: center;
  }

  .uix-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .uix-cards > .uix-card-hero.is-active {
    margin-left: auto;
    margin-right: auto;
  }

  .uix-card-hero::before,
  .uix-card-hero::after {
    inset: auto;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%) translateY(18px) rotate(-1.5deg);
  }
  .uix-card-hero::after {
    transform: translateX(-50%) translateY(34px) rotate(-3deg);
  }
}

@media (max-width: 560px) {
  .uix-illust img {
    width: 56%;
  }
}

@media (min-width: 611px) {
  .uix-service .uix-container {
    position: relative;
    padding-left: 24px;
    padding-right: 24px;
    overflow: hidden;
  }

  .uix-service .uix-container::before,
  .uix-service .uix-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 48px;
    height: 100%;
    pointer-events: none;
    z-index: 5;
  }

  .uix-service .uix-container::before {
    left: 0;
    background: linear-gradient(to right, var(--uix-bg) 0%, transparent 100%);
  }

  .uix-service .uix-container::after {
    right: 0;
    background: linear-gradient(to left, var(--uix-bg) 0%, transparent 100%);
  }

  .uix-card-hero {
    --uix-deco-inset-x: clamp(10px, 2vw, 20px);
  }

  .uix-card-hero::before,
  .uix-card-hero::after {
    left: var(--uix-deco-inset-x);
    right: var(--uix-deco-inset-x);
    transform: translateY(18px) rotate(-1.5deg);
  }
  .uix-card-hero::after {
    transform: translateY(34px) rotate(-3deg);
  }

  .uix-cards > .uix-card-hero.is-prev {
    transform: translateX(-16px) translateY(12px) scale(0.99) rotate(-1deg);
  }

  .uix-cards > .uix-card-hero.is-next {
    transform: translateX(16px) translateY(12px) scale(0.99) rotate(1deg);
  }

  .uix-cards > .uix-card-hero.is-prev2 {
    transform: translateX(-24px) translateY(18px) scale(0.985) rotate(-1.4deg);
  }

  .uix-cards > .uix-card-hero.is-next2 {
    transform: translateX(24px) translateY(18px) scale(0.985) rotate(1.4deg);
  }

  .uix-cards {
    margin-inline: auto;
    max-width: calc(100% - 48px);
  }
}

@media (min-width: 611px) {
  .uix-service .uix-container {
    padding-bottom: clamp(16px, 3.5vw, 28px);
    position: relative;
    overflow-x: clip;
    -webkit-mask-image: linear-gradient(
      to top,
      #000 0%,
      #000 calc(100% - 28px),
      rgba(0, 0, 0, 0.98) calc(100% - 22px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to top,
      #000 0%,
      #000 calc(100% - 28px),
      rgba(0, 0, 0, 0.98) calc(100% - 22px),
      transparent 100%
    );
    box-shadow: inset 0 -18px 24px rgba(0, 0, 0, 0.04);
  }

  .uix-cards {
    margin-bottom: 10px;
  }

  .uix-card-hero::before {
    transform: translateY(14px) rotate(-1.5deg);
  }
  .uix-card-hero::after {
    transform: translateY(26px) rotate(-3deg);
    opacity: 0.52;
  }

  .uix-cards > .uix-card-hero.is-prev {
    transform: translateX(-16px) translateY(10px) scale(0.992) rotate(-0.8deg);
  }
  .uix-cards > .uix-card-hero.is-next {
    transform: translateX(16px) translateY(10px) scale(0.992) rotate(0.8deg);
  }
  .uix-cards > .uix-card-hero.is-prev2 {
    transform: translateX(-24px) translateY(16px) scale(0.988) rotate(-1.1deg);
  }
  .uix-cards > .uix-card-hero.is-next2 {
    transform: translateX(24px) translateY(16px) scale(0.988) rotate(1.1deg);
  }
}

@media (max-width: 610px) {
  .uix-service .uix-container {
    padding-bottom: 20px;
  }

  .uix-card-hero {
    --uix-text-shift: 40px;
    padding-bottom: calc(20px + var(--uix-text-shift));
  }
}
