/* ========================================================================
   共通フッター（全ページ）
   - 上部：水色の重なり波
   - 背景：波の下端の水色 → 白へグラデーション
   - 中央：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;
  }
}

/* ========================================================================
   フッターリンク（プライバシーポリシー / ご利用にあたって）
   ======================================================================== */
.l-footer-links {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}
.l-footer-link {
  color: #0c4da2;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.l-footer-link:hover {
  text-decoration: none;
}
@media (max-width: 768px) {
  .l-footer-link {
    font-size: 12px;
  }
}

/* ========================================================================
   Cookie 利用のお知らせバナー（下部固定・同意不要・閉じるだけ）
   既定は display:none。main.js が未閉鎖時のみ .is-shown を付与して表示する。
   ======================================================================== */
.l-cookie {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(12, 77, 162, 0.96);
  color: #fff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}
.l-cookie.is-shown {
  display: flex;
}
.l-cookie-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.l-cookie-link {
  color: #fff;
  text-decoration: underline;
}
.l-cookie-close {
  flex-shrink: 0;
  padding: 8px 22px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.l-cookie-close:hover {
  background: #fff;
  color: #0c4da2;
}
@media (max-width: 768px) {
  .l-cookie {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    text-align: center;
  }
  .l-cookie-text {
    font-size: 12px;
  }
}
