/* Ad cases — dark block (template-part/outcome-dark.php). Site-wide since 2026-09-08.
   Self-contained: does not depend on landing-ads.css. rem = 100vw/192 (theme grid). */
.lp-cases { padding: 6.4rem 0; }
.lp-cases--lp { padding-top: 0; background: var(--white-2, #f3f5f5); }
.lp-dark { background: #0c0d10; color: #fff; border-radius: 3.2rem; padding: 6.4rem; position: relative; overflow: hidden; }
.lp-dark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 45% at 85% 5%, rgba(244,53,99,.16), transparent 62%); pointer-events: none; }
.lp-dark > * { position: relative; z-index: 2; }

/* head */
.lp-dark .lp-shead { display: grid; grid-template-columns: 57fr 43fr; gap: 2rem; align-items: end; margin-bottom: 4.8rem; }
.lp-dark .lp-snum { font-size: 1.3rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 2rem; }
.lp-dark .lp-shead__title { max-width: 28ch; margin: 0; color: #fff; }
.lp-dark .lp-shead__title strong, .lp-dark .lp-shead__title .lp-accent { color: var(--red-1, #f43563); font-weight: inherit; }
.lp-dark .lp-shead__text { justify-self: end; font-size: 1.8rem; line-height: 1.55; color: rgba(255,255,255,.62); max-width: 46ch; padding-bottom: .8rem; margin: 0; text-wrap: balance; }

/* grid + card */
.lp-cases__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.lp-kase { border-radius: 2rem; overflow: hidden; background: #15171b; display: flex; flex-direction: column; transition: transform .25s; }
.lp-kase:hover { transform: translateY(-.5rem); }
.lp-kase[hidden] { display: none; }
.lp-dark__more--m { display: none; } /* mobile-only fold button, shown ≤767 */
.lp-kase__ph { aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: #1c1f24; }
.lp-kase__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; display: block; }
.lp-kase:hover .lp-kase__ph img { transform: scale(1.05); }
.lp-kase__noimg { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; font-size: 2.4rem; font-weight: 500; letter-spacing: -.02em; color: rgba(255,255,255,.18); background: linear-gradient(158deg, #1c1f24, #0c0d10); }
.lp-kase__b { padding: 2.6rem; display: flex; flex-direction: column; flex: 1; }
.lp-kase__n { font-size: 2rem; letter-spacing: -.02em; font-weight: 500; color: #fff; }
.lp-kase__g { font-size: 1.4rem; line-height: 1.45; color: rgba(255,255,255,.42); margin: .4rem 0 2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-kase__r { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 1.5rem; color: rgba(255,255,255,.55); padding: 1.1rem 0; border-bottom: .1rem solid rgba(255,255,255,.1); }
.lp-kase__r:first-of-type { border-top: .1rem solid rgba(255,255,255,.1); }
.lp-kase__r b { font-weight: 400; color: #fff; font-size: 1.6rem; text-align: right; }
.lp-kase__cpl { margin-top: auto; padding-top: 2rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.2rem; }
.lp-kase__cpl small { display: block; font-size: 1.25rem; color: rgba(255,255,255,.4); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; white-space: nowrap; }
.lp-kase__cpl b { font-size: 3.4rem; font-weight: 400; letter-spacing: -.025em; color: #fff; line-height: 1; }
.lp-kase__ch { font-size: 1.3rem; line-height: 1.35; color: rgba(255,255,255,.42); text-align: right; max-width: 12ch; padding-bottom: .3rem; }

/* foot: show more / all cases */
.lp-cases__foot { margin-top: 4rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.lp-cases__foot > :only-child { margin-left: auto; }
.lp-dark__more { background: transparent; color: #fff; box-shadow: inset 0 0 0 .1rem rgba(255,255,255,.28); border: 0; min-width: 0; padding-left: 2.4rem; gap: 2.4rem; justify-content: flex-start; transition: background-color .2s, color .2s, transform .2s; }
.lp-dark__more i { background: #fff; color: #0c0d10; transition: transform .3s; }
.lp-dark__more i svg { width: 100%; height: 100%; fill: none; }
.lp-dark__more:hover { background: #fff; color: #0c0d10; }
.lp-dark__more:hover i { background: #0c0d10; color: #fff; }
.lp-dark__more.is-open i { transform: rotate(180deg); }
.lp-cases__all { display: inline-flex; align-items: center; gap: 1rem; color: #fff; font-size: 1.7rem; text-decoration: none; border-bottom: .1rem solid rgba(255,255,255,.3); padding-bottom: .4rem; transition: color .18s, border-color .18s; }
.lp-cases__all .icon { width: 1.6rem; height: 1.6rem; fill: currentColor; transition: transform .22s cubic-bezier(.2,.7,.2,1); }
.lp-cases__all:hover { color: var(--red-1, #f43563); border-color: var(--red-1, #f43563); }
.lp-cases__all:hover .icon { transform: translate(.3rem, -.3rem); }

@media (max-width: 1023px) {
  .lp-cases__grid { grid-template-columns: 1fr 1fr; }
  .lp-dark { padding: 4rem 3.2rem; }
}
@media (max-width: 767px) {
  .lp-cases { padding: 4.8rem 0; }
  .lp-cases--lp { padding-top: 0; }
  .lp-dark { padding: 3.2rem 2rem; border-radius: 2.4rem; }
  .lp-dark .lp-shead { grid-template-columns: 1fr; align-items: start; margin-bottom: 3.2rem; }
  .lp-cases__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .lp-kase__cpl b { font-size: 3rem; }
  .lp-cases__foot { justify-content: flex-start; }
  .lp-dark__more { width: auto; }

  /* Mobile type floor (2026-09-09). The theme sets rem = vw/50 on phones, so
     rem-based sizes shrink with the device: at 390px the card labels rendered
     at 9.8–11.7px and at 360px at 9–10.8px — below comfortable reading.
     Fixed px here so the block reads the same on every phone. */
  .lp-dark .lp-snum { font-size: 12px; letter-spacing: .12em; }
  .lp-dark .lp-shead__text { font-size: 15px; line-height: 1.5; }
  .lp-kase__n { font-size: 17px; }
  .lp-kase__g { font-size: 13px; line-height: 1.45; }
  .lp-kase__r { font-size: 13.5px; }
  .lp-kase__r b { font-size: 14.5px; }
  .lp-kase__cpl small { font-size: 12px; letter-spacing: .08em; }
  .lp-kase__ch { font-size: 12px; line-height: 1.3; max-width: 14ch; }
  .lp-cases__all { font-size: 15px; }
}

/* mobile fold: cards beyond visible_mobile are collapsed until the button opens the section */
@media (max-width: 767px) {
  .lp-cases:not(.is-mopen) .lp-kase--mfold { display: none; }
  .lp-dark__more--m { display: inline-flex; }
}
