/* ========================================================================
   共通フッター（全ページ）
   - 上部：水色の重なり波
   - 背景：波の下端の水色 → 白へグラデーション
   - 中央：KWS ロゴ＋住所・TEL
   ======================================================================== */
.l-footer {
  text-align: center;
}

/* 上部の重なり波。透過の波画像＋ブロック内グラデ（白→水色）を重ね、
   下端を均一な水色にして本体と継ぎ目なくつなぐ。
   波画像は ::before に分離し左右に揺らす。端が見えないよう幅を広げ、上下には動かさない。 */
.l-footer-wave {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* 幅に比例だと狭い画面で波が潰れるため、最小高さ付きで確保 */
  height: clamp(72px, 8vw, 150px);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 44%, #c4e7fb 100%);
}
.l-footer-wave::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5%;
  width: 110%;
  height: 100%;
  background: url("../../images/common/footer-wave.webp") no-repeat center top / 100% 100%;
  animation: l-footer-wave-sway 9s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}
@keyframes l-footer-wave-sway {
  0%   { transform: translate3d(-4%, 0, 0); }
  100% { transform: translate3d(4%, 0, 0); }
}
/* 視差効果を減らす設定のユーザーには動かさない */
@media (prefers-reduced-motion: reduce) {
  .l-footer-wave::before {
    animation: none;
  }
}

/* 本体（波ブロック下端の水色 #c4e7fb から続けて 白へ・薄めに早く） */
.l-footer-body {
  padding: 24px 16px 108px;
  background: linear-gradient(180deg, #c4e7fb 0%, #e0f2fc 26%, #f4fafe 58%, #ffffff 86%);
}

/* ロゴ */
.l-footer-logo {
  margin: 0;
}
.l-footer-logo img {
  display: block;
  width: 441px;
  max-width: 86%;
  height: auto;
  margin: 0 auto;
}

/* 住所・TEL */
.l-footer-address {
  margin: 26px 0 0;
  color: #0c4da2;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

/* ========================
   スマホ
   ======================== */
@media (max-width: 768px) {
  .l-footer-body {
    padding: 32px 16px 120px;
  }
  .l-footer-logo img {
    width: 256px;
  }
  .l-footer-address {
    margin-top: 13px;
    font-size: 10px;            /* 12pxだと375px幅で住所が折り返すため */
    line-height: 1.5;
  }
}
