.case-page {
  background: #f5f7fa;
}

.matrix-main {
  position: relative;
  overflow: hidden;
  padding: 0 0 110px;
  background: #f5f7fa;
}

.matrix-main::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(360px, 39.6875vw, 762px);
  content: "";
  pointer-events: none;
  background: url("/assets/matrix_cp/Maskgroup.png") center top / 100% 100%
    no-repeat;
  transform-origin: center top;
  animation: matrix-bg-breathe 14s ease-in-out infinite alternate;
}

.matrix-hero {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: start center;
  height: 363px;
  padding-top: 186px;
}

.matrix-hero h1 {
  margin: 0;
  color: #212123;
  font-size: 48px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

.matrix-hero span {
  color: #2d60ff;
  background: linear-gradient(90deg, #1c54e8 0%, #2d60ff 46%, #00a8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.matrix-section {
  position: relative;
  z-index: 1;
  width: 1400px;
  margin: 0 auto 28px;
  padding: 58px 44px 42px;
  border-radius: 16px;
  background: #fff;
}

.matrix-analysis {
  margin-bottom: 20px;
}

.matrix-production {
  height: 1678px;
}

.matrix-analysis {
  height: 818px;
  padding-top: 39px;
}

.matrix-distribute {
  height: 1190px;
  margin-bottom: 0;
  padding-top: 55px;
}

.matrix-section-head {
  margin-bottom: 32px;
}

.matrix-section-head h2 {
  position: relative;
  margin: 0 0 21px;
  padding-left: 28px;
  color: #1356dc;
  font-size: 36px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.matrix-section-head h2::before {
  position: absolute;
  top: 11px;
  left: 0;
  width: 5px;
  height: 26px;
  content: "";
  border-radius: 3px;
  background: #2468f2;
}

.matrix-section-head p,
.matrix-card-copy p,
.matrix-flow-title p,
.analysis-card p {
  margin: 0;
  color: #333;
  font-size: 18px;
  line-height: 29px;
  letter-spacing: 0;
}

.matrix-section-head p {
  max-width: 1309px;
}

.matrix-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(230, 242, 255, 0.5);
  box-shadow: 0 18px 40px rgba(29, 85, 181, 0.06);
  transition:
    transform 360ms ease,
    box-shadow 360ms ease,
    background-color 360ms ease;
}

.matrix-card::before,
.analysis-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.86), transparent 33%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.5) 42%, transparent 68%);
  transform: translateX(-80%);
  transition:
    opacity 520ms ease,
    transform 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

.matrix-card-wide {
  display: grid;
  grid-template-columns: 296px 1fr;
  align-items: center;
  gap: 63px;
  min-height: 329px;
  padding: 42px 52px 40px;
}

.matrix-card-copy h3,
.matrix-flow-title h3,
.analysis-card h3 {
  margin: 0 0 21px;
  color: #333;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0;
}

.matrix-card-copy p {
  max-width: 807px;
  color: #606060;
  font-size: 16px;
}

.matrix-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.matrix-card-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(32, 84, 172, 0.12));
  transition:
    transform 520ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 520ms ease;
}

.matrix-card-media.monitor img {
  width: 296px;
}

.matrix-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 14px;
  margin-top: 15px;
}

.matrix-card-feature {
  position: relative;
  display: block;
  min-height: 623px;
  height: 623px;
  padding: 51px 47px 28px;
}

.matrix-card-feature .matrix-card-copy {
  position: relative;
  z-index: 1;
  max-width: 513px;
}

.matrix-card-feature .matrix-card-copy p {
  overflow: hidden;
  font-size: 16px;
  line-height: 29px;
}

.matrix-card-feature .staged-copy {
  overflow: visible;
}

.staged-copy span {
  display: block;
}

.staged-copy .text-wide {
  width: 513px;
  max-height: 58px;
  overflow: hidden;
}

.staged-copy .text-narrow {
  width: 162px;
}

.matrix-card-feature .matrix-card-media {
  position: absolute;
  z-index: 0;
  margin: 0;
}

.matrix-card-feature .matrix-card-copy {
  pointer-events: none;
}

.feature-audit .matrix-card-media {
  right: 43px;
  bottom: 71px;
  width: 382px;
}

.feature-audit .text-narrow {
  width: 162px;
}

.feature-channel .matrix-card-media {
  right: 31px;
  bottom: 61px;
  width: 406px;
}

.feature-channel .text-narrow {
  width: 162px;
}

.feature-aigc .matrix-card-media {
  right: 4px;
  bottom: 21px;
  width: 594px;
}

.matrix-card-feature:nth-child(n + 3) {
  min-height: 409px;
  height: 409px;
}

.matrix-card-feature.media-right {
  padding: 51px 30px 28px 48px;
}

.matrix-card-feature.media-right .matrix-card-copy p {
  max-height: 238px;
}

.matrix-card-feature.media-right .matrix-card-media {
  right: 30px;
  bottom: 21px;
  width: 313px;
}

.feature-aigc .matrix-card-copy {
  max-width: 300px;
}

.feature-mobile .matrix-card-copy {
  max-width: 214px;
}

.feature-mobile .matrix-card-media {
  right: 28px;
  bottom: 21px;
  width: 313px;
  height: 279px;
}

.feature-mobile .matrix-card-media img:first-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 313px;
}

.feature-mobile .matrix-card-media .mobile-phone {
  position: absolute;
  right: -26px;
  bottom: -3px;
  width: 99px;
  max-width: none;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.analysis-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 230px 304px;
  align-items: center;
  justify-content: space-between;
  min-height: 287px;
  padding: 41px 35px 38px 49px;
  border-radius: 16px;
  background: rgba(230, 242, 255, 0.5);
  box-shadow: 0 18px 40px rgba(29, 85, 181, 0.06);
  transition:
    transform 360ms ease,
    box-shadow 360ms ease,
    background-color 360ms ease;
}

.analysis-card h3 {
  font-size: 28px;
}

.analysis-card p {
  max-width: 230px;
  color: #606060;
  font-size: 16px;
}

.analysis-card img {
  width: 304px;
  height: 187px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(32, 84, 172, 0.12));
  transition:
    transform 520ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 520ms ease;
}

.matrix-flow {
  padding: 28px 41px 13px;
}

.matrix-flow-title {
  display: flex;
  align-items: baseline;
  gap: 51px;
  margin-bottom: 31px;
}

.matrix-flow-title h3 {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.matrix-flow-title p {
  color: #606060;
  font-size: 16px;
}

.matrix-flow img {
  width: 1206px;
  margin: 0 auto;
}

.distribute-grid {
  gap: 15px;
  margin-top: 17px;
}

.distribute-grid .matrix-card-feature {
  min-height: 327px;
  height: 327px;
  padding-top: 65px;
  padding-bottom: 25px;
}

.distribute-grid .matrix-card-feature .matrix-card-copy {
  max-width: 230px;
}

.distribute-grid .matrix-card-feature .matrix-card-media {
  right: 25px;
  bottom: 92px;
  width: 342px;
}

.distribute-grid .matrix-card-feature .matrix-card-media.slim {
  right: 22px;
  bottom: 30px;
  width: 338px;
}

.distribute-efficiency .matrix-card-media.slim img {
  width: 338px;
  height: 223px;
  object-fit: contain;
}

.distribute-visual .matrix-card-media img {
  width: 342px;
  height: 161px;
  object-fit: contain;
}

.matrix-card:hover,
.analysis-card:hover {
  background-color: rgba(230, 242, 255, 0.72);
  box-shadow: 0 24px 58px rgba(29, 85, 181, 0.13);
  transform: translateY(-6px);
}

.matrix-card:hover::before,
.analysis-card:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.matrix-card:hover .matrix-card-media img,
.analysis-card:hover img {
  filter: drop-shadow(0 24px 30px rgba(32, 84, 172, 0.18));
  transform: translateY(-5px) scale(1.018);
}

.matrix-card-copy h3,
.matrix-flow-title h3,
.analysis-card h3 {
  transition: color 300ms ease;
}

.matrix-card:hover .matrix-card-copy h3,
.matrix-card:hover .matrix-flow-title h3,
.analysis-card:hover h3 {
  color: #1356dc;
}

.matrix-reveal {
  opacity: 0;
  will-change: opacity, transform;
}

.matrix-reveal.is-visible {
  opacity: 1;
}

.matrix-card.is-visible .matrix-card-media img,
.analysis-card.is-visible img {
  animation: matrix-media-float 5.8s ease-in-out infinite;
}

.feature-mobile .matrix-card-media .mobile-phone {
  animation-duration: 4.8s;
  animation-delay: 340ms;
}

.matrix-flow.is-visible img {
  animation-duration: 7.2s;
}

@keyframes matrix-bg-breathe {
  from {
    opacity: 0.9;
    transform: scale(1);
  }

  to {
    opacity: 1;
    transform: scale(1.025);
  }
}

@keyframes matrix-media-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -7px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .matrix-main::before,
  .matrix-hero h1,
  .matrix-card.is-visible .matrix-card-media img,
  .analysis-card.is-visible img,
  .feature-mobile .matrix-card-media .mobile-phone,
  .matrix-flow.is-visible img {
    animation: none;
  }

  .matrix-card,
  .analysis-card,
  .matrix-card-media img,
  .analysis-card img {
    transition: none;
  }

  .matrix-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1480px) {
  .matrix-section {
    width: calc(100% - 80px);
  }
}

@media (max-width: 1180px) {
  .matrix-card-wide {
    grid-template-columns: 300px 1fr;
    padding: 34px 36px;
  }

  .matrix-card-feature.media-right,
  .analysis-card {
    grid-template-columns: 1fr;
  }

  .matrix-card-feature.media-right .matrix-card-copy,
  .analysis-card p {
    max-width: none;
  }
}

@media (max-width: 980px) {
  .matrix-main {
    padding-bottom: 44px;
  }

  .matrix-main::before {
    height: 360px;
  }

  .matrix-hero {
    height: 196px;
    padding-top: 104px;
  }

  .matrix-hero h1 {
    width: calc(100% - 32px);
    font-size: 26px;
    text-align: center;
  }

  .matrix-section {
    width: calc(100% - 24px);
    height: auto;
    min-height: 0;
    margin-bottom: 14px;
    padding: 24px 14px 18px;
    border-radius: 8px;
  }

  .matrix-production,
  .matrix-analysis,
  .matrix-distribute {
    height: auto;
  }

  .matrix-section-head {
    margin-bottom: 18px;
  }

  .matrix-section-head h2 {
    margin-bottom: 12px;
    padding-left: 12px;
    font-size: 20px;
  }

  .matrix-section-head h2::before {
    top: 4px;
    width: 3px;
    height: 18px;
  }

  .matrix-section-head p,
  .matrix-card-copy p,
  .matrix-flow-title p,
  .analysis-card p {
    font-size: 13px;
    line-height: 1.75;
  }

  .matrix-card-wide,
  .matrix-card-feature,
  .analysis-card,
  .matrix-flow {
    border-radius: 8px;
  }

  .matrix-card-wide {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 20px 16px;
    text-align: left;
  }

  .matrix-card-media.monitor {
    order: 2;
  }

  .matrix-card-media.monitor img {
    width: min(280px, 80%);
  }

  .matrix-card-copy h3,
  .matrix-flow-title h3,
  .analysis-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .matrix-card-grid,
  .analysis-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .matrix-card-feature,
  .matrix-card-feature:nth-child(n + 3),
  .distribute-grid .matrix-card-feature {
    height: auto;
    min-height: 0;
    padding: 22px 16px 16px;
  }

  .matrix-card-feature .matrix-card-copy {
    max-width: none;
  }

  .matrix-card-feature .matrix-card-copy p {
    font-size: 13px;
    line-height: 1.75;
  }

  .staged-copy .text-wide,
  .staged-copy .text-narrow {
    display: inline;
    width: auto;
    max-height: none;
    overflow: visible;
  }

  .matrix-card-feature .matrix-card-media,
  .matrix-card-feature:nth-child(2) .matrix-card-media,
  .matrix-card-feature .matrix-card-media.wide,
  .matrix-card-feature.media-right .matrix-card-media,
  .distribute-grid .matrix-card-feature .matrix-card-media,
  .distribute-grid .matrix-card-feature .matrix-card-media.slim {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(420px, 100%);
    height: auto;
    margin: 12px auto 0;
    overflow: hidden;
  }

  .matrix-card-feature.feature-mobile .matrix-card-media {
    position: relative;
    height: clamp(170px, 54vw, 230px);
    overflow: visible;
  }

  .matrix-card-feature.feature-mobile .matrix-card-media img:first-child {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: calc(100% - 34px);
    max-width: none;
    height: 100%;
    object-fit: contain;
  }

  .matrix-card-feature.feature-mobile .matrix-card-media .mobile-phone {
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    width: clamp(58px, 20vw, 86px);
    max-width: none;
  }

  .analysis-card {
    gap: 12px;
    min-height: 0;
    padding: 20px 16px;
  }

  .analysis-card img {
    width: min(430px, 100%);
    height: auto;
    max-height: 220px;
    object-fit: contain;
    justify-self: center;
  }

  .matrix-flow {
    padding: 18px 12px 20px;
  }

  .matrix-flow-title {
    display: block;
    margin-bottom: 12px;
  }

  .matrix-flow img {
    width: 120%;
    max-width: none;
    margin-left: -10%;
  }

  .matrix-card.is-visible .matrix-card-media img,
  .analysis-card.is-visible img {
    animation: none;
  }

  .matrix-card-feature.feature-mobile .matrix-card-media .mobile-phone {
    animation: none;
  }
}

@media (max-width: 520px) {
  .matrix-hero {
    height: 170px;
    padding-top: 92px;
  }

  .matrix-hero h1 {
    width: calc(100% - 24px);
    font-size: 23px;
    text-align: center;
  }

  .matrix-section {
    width: calc(100% - 16px);
    padding: 20px 10px 14px;
  }

  .matrix-card-wide,
  .matrix-card-feature,
  .analysis-card {
    padding-right: 12px;
    padding-left: 12px;
  }

  .matrix-card-feature.feature-mobile .matrix-card-media img:first-child {
    width: calc(100% - 28px);
  }
}
