/* Browser feedback refinements: content layering, flow artwork, and contact visual. */

@media (max-width: 820px) {
  .global-nav.is-open {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100svh;
    overflow-y: auto;
    background-color: #062a5e;
    background-image:
      radial-gradient(circle at 88% 12%, rgba(25, 216, 255, 0.18), transparent 34%),
      linear-gradient(145deg, #041a3d 0%, #062a5e 58%, #073b80 100%);
  }

  .global-nav.is-open > a:not(.nav-cta) {
    color: #fff;
  }
}

.value-card > :not(i) {
  position: relative;
  z-index: 2;
}

.value-card > i {
  z-index: 0;
  pointer-events: none;
}

.scroll-cue {
  display: none !important;
}

.flow-asset {
  display: none;
}

.flow-list {
  display: grid;
  gap: 18px;
  border-top: 0;
  margin-top: clamp(62px, 8vw, 100px);
}

.flow-step {
  min-height: 250px;
  padding: 34px clamp(170px, 36%, 430px) 64px 28px;
  border: 1px solid rgba(8, 105, 237, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(20, 73, 140, 0.08);
}

.flow-step::after {
  content: "";
  z-index: 0;
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  background-image: url("/image-04-process.jpg");
  background-image: -webkit-image-set(url("/image-04-process.avif") type("image/avif"), url("/image-04-process.webp") type("image/webp"), url("/image-04-process.jpg") type("image/jpeg"));
  background-image: image-set(url("/image-04-process.avif") type("image/avif"), url("/image-04-process.webp") type("image/webp"), url("/image-04-process.jpg") type("image/jpeg"));
  background-repeat: no-repeat;
  background-size: 400% auto;
  background-position-y: center;
  opacity: 0.58;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%);
  mask-image: linear-gradient(to right, transparent 0%, #000 28%);
  pointer-events: none;
}

.flow-step:nth-child(1)::after {
  background-position-x: 0%;
}

.flow-step:nth-child(2)::after {
  background-position-x: 33.333%;
}

.flow-step:nth-child(3)::after {
  background-position-x: 66.667%;
}

.flow-step:nth-child(4)::after {
  background-position-x: 100%;
}

.flow-step > :not(i) {
  z-index: 2;
  position: relative;
}

.flow-step > i {
  z-index: 3;
}

.flow-step:last-child > i {
  display: none;
}

.contact-copy {
  position: relative;
  min-height: 720px;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(25, 216, 255, 0.28);
  border-radius: 28px;
  color: #fff;
  background:
    linear-gradient(
      115deg,
      rgba(4, 19, 48, 0.96) 0%,
      rgba(4, 35, 86, 0.9) 48%,
      rgba(4, 57, 131, 0.42) 100%
    ),
    url("/image-05-closing.jpg") 68% center / cover no-repeat;
  background-image: linear-gradient(
      115deg,
      rgba(4, 19, 48, 0.96) 0%,
      rgba(4, 35, 86, 0.9) 48%,
      rgba(4, 57, 131, 0.42) 100%
    ), -webkit-image-set(url("/image-05-closing.avif") type("image/avif"), url("/image-05-closing.webp") type("image/webp"), url("/image-05-closing.jpg") type("image/jpeg"));
  background-image: linear-gradient(
      115deg,
      rgba(4, 19, 48, 0.96) 0%,
      rgba(4, 35, 86, 0.9) 48%,
      rgba(4, 57, 131, 0.42) 100%
    ), image-set(url("/image-05-closing.avif") type("image/avif"), url("/image-05-closing.webp") type("image/webp"), url("/image-05-closing.jpg") type("image/jpeg"));
  overflow: hidden;
  box-shadow: 0 30px 84px rgba(8, 47, 103, 0.2);
}

.contact-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 45%,
    rgba(3, 17, 43, 0.5) 100%
  );
  pointer-events: none;
}

.contact-copy > :not(.site-image) {
  position: relative;
  z-index: 1;
}

.contact-copy .contact-eyebrow {
  color: #19d8ff;
}

.contact-copy h2 {
  color: #fff;
}

.contact-copy > p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-copy > a {
  color: #fff;
  border-bottom-color: #19d8ff;
}

.contact-copy > a::before {
  content: "✉️";
  flex: 0 0 auto;
  font-size: 1.05em;
  line-height: 1;
}

.contact-copy > a > span {
  display: none;
}

.contact-copy .site-image--05 {
  display: none;
}

@media (max-width: 820px) {
  .flow-step {
    min-height: 230px;
    padding-right: 38%;
  }

  .flow-step::after {
    width: 48%;
    opacity: 0.5;
  }

  .contact-copy {
    min-height: 620px;
  }
}

@media (max-width: 560px) {
  .flow-list {
    margin-top: 54px;
  }

  .flow-step {
    grid-template-columns: 46px 1fr;
    gap: 16px;
    min-height: 240px;
    padding: 28px 122px 58px 18px;
    border-radius: 22px;
  }

  .flow-step::after {
    width: 51%;
    opacity: 0.44;
  }

  .flow-step__number {
    font-size: 2.3rem;
  }

  .flow-step__main h3 {
    font-size: 1.2rem;
  }

  .flow-step__main p {
    font-size: 0.72rem;
  }

  .contact-copy {
    min-height: 560px;
    padding: 34px 24px;
    border-radius: 22px;
    background-position: 72% center;
  }

  .contact-copy h2 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .contact-copy > a {
    gap: 10px;
    font-size: clamp(0.9rem, 4.5vw, 1.12rem);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .contact-copy {
    background:
      linear-gradient(rgba(4, 24, 58, 0.9), rgba(4, 24, 58, 0.9)),
      url("/image-05-closing.jpg") 68% center / cover no-repeat;
    background-image: linear-gradient(rgba(4, 24, 58, 0.9), rgba(4, 24, 58, 0.9)), -webkit-image-set(url("/image-05-closing.avif") type("image/avif"), url("/image-05-closing.webp") type("image/webp"), url("/image-05-closing.jpg") type("image/jpeg"));
    background-image: linear-gradient(rgba(4, 24, 58, 0.9), rgba(4, 24, 58, 0.9)), image-set(url("/image-05-closing.avif") type("image/avif"), url("/image-05-closing.webp") type("image/webp"), url("/image-05-closing.jpg") type("image/jpeg"));
  }
}


/* ------------------------------------------------------------------
   <picture> によるレイアウト差分を完全に打ち消すための保険。
   .site-image img は position:absolute のため元々影響はないが、
   picture の空インラインボックスを確実に無効化する。
   ------------------------------------------------------------------ */
.site-image picture {
  display: contents;
}
