/*
 * FV直下 乗り換えバナー（R2_814支給画像）
 * 対象: top-device-features-four-cta-20260822.html
 */

section.switch-q4-sec.switch-q4-sec--r2-814 {
  box-sizing: border-box;
  padding: 48px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid #d3dfeb;
  background: linear-gradient(180deg, #f4f7fb 0%, #e8eef5 100%);
}

.switch-q4-sec--r2-814 .container {
  box-sizing: border-box;
  width: min(1250px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.switch-q4-sec--r2-814 .switch-q4-banner {
  position: relative;
  isolation: isolate;
  display: block;
  width: min(1120px, 92%);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px -20px rgba(4, 39, 76, .34);
  transition: transform .24s ease, box-shadow .24s ease, opacity .18s ease;
}

.switch-q4-sec--r2-814 .switch-q4-banner::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: -42%;
  bottom: -42%;
  left: -34%;
  width: 22%;
  opacity: 0;
  transform: skewX(-20deg) translateX(-260%);
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 28%, rgba(255,255,255,.78) 50%, rgba(255,255,255,.18) 72%, transparent 100%);
  filter: blur(1px);
  pointer-events: none;
}

.switch-q4-sec--r2-814 .switch-q4-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 33 / 14;
  object-fit: contain;
  transition: opacity .2s ease, filter .24s ease;
}

.switch-q4-sec--r2-814 .switch-q4-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px -20px rgba(4, 39, 76, .46);
}

.switch-q4-sec--r2-814 .switch-q4-banner:hover::after {
  animation: switch-q4-shine .86s cubic-bezier(.2,.7,.2,1) both;
}

.switch-q4-sec--r2-814 .switch-q4-banner:hover .switch-q4-image {
  opacity: .96;
  filter: brightness(1.025);
}

.switch-q4-sec--r2-814 .switch-q4-banner:active {
  transform: translateY(-1px) scale(.995);
  opacity: .9;
  box-shadow: 0 12px 30px -18px rgba(4, 39, 76, .38);
  transition-duration: .06s;
}

.switch-q4-sec--r2-814 .switch-q4-mobile:active {
  opacity: .9;
}

@keyframes switch-q4-shine {
  0% {
    opacity: 0;
    transform: skewX(-20deg) translateX(-260%);
  }
  18% {
    opacity: .86;
  }
  100% {
    opacity: 0;
    transform: skewX(-20deg) translateX(760%);
  }
}

.switch-q4-sec--r2-814 .switch-q4-banner:focus-visible,
.switch-q4-sec--r2-814 .switch-q4-mobile:focus-visible {
  outline: 4px solid #1e8fc9;
  outline-offset: 5px;
}

@media (max-width: 768px) {
  section.switch-q4-sec.switch-q4-sec--r2-814 {
    padding: 38px 0 46px;
  }

  .switch-q4-sec--r2-814 .container {
    width: calc(100% - 32px);
  }

  .switch-q4-sec--r2-814 .switch-q4-banner {
    display: none;
  }

  .switch-q4-sec--r2-814 .switch-q4-mobile {
    display: block;
    border-radius: 10px;
    box-shadow: 0 16px 38px -18px rgba(4, 39, 76, .32);
  }
}

@media (hover: none) {
  .switch-q4-sec--r2-814 .switch-q4-banner:hover {
    transform: none;
    box-shadow: 0 18px 44px -20px rgba(4, 39, 76, .34);
  }

  .switch-q4-sec--r2-814 .switch-q4-banner:hover::after {
    animation: none;
  }

  .switch-q4-sec--r2-814 .switch-q4-banner:hover .switch-q4-image {
    opacity: 1;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .switch-q4-sec--r2-814 .switch-q4-banner,
  .switch-q4-sec--r2-814 .switch-q4-image {
    transition: none;
  }

  .switch-q4-sec--r2-814 .switch-q4-banner:hover {
    transform: none;
  }

  .switch-q4-sec--r2-814 .switch-q4-banner:hover::after {
    animation: none;
  }
}
