/* =========================================================
   RYU-TEC Footer
   対象：フッターのみ
   方針：PCは会社情報＋4列ナビ / 960px以下は会社情報→2列ナビ
========================================================= */

body .rt-top .rt-footer {
  position: relative !important;
  width: 100% !important;
  background: #ffffff !important;
}

body .rt-top .rt-footer-main {
  position: relative !important;
  width: 100% !important;
  padding: clamp(86px, 6.8vw, 130px) 0 !important;
  color: #ffffff !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #003b78 !important;
}

body .rt-top .rt-footer-main::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background-image:
    linear-gradient(rgba(0, 59, 120, 0.95), rgba(0, 59, 120, 0.95)),
    url("https://ryu-tec.co.jp/wp-content/uploads/2026/05/26271160_m.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important;
}

body .rt-top .rt-footer-main__inner {
  position: relative !important;
  z-index: 1 !important;
  width: var(--rt-inner) !important;
  max-width: var(--rt-inner-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: grid !important;
  grid-template-columns: 0.42fr 0.58fr !important;
  column-gap: clamp(56px, 5.4vw, 104px) !important;
  align-items: start !important;
}

body .rt-top .rt-footer-main__company h2 {
  margin: 0 0 clamp(28px, 2.3vw, 44px) !important;
  color: #ffffff !important;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif !important;
  font-size: clamp(28px, 2vw, 38px) !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  white-space: nowrap !important;
}

body .rt-top .rt-footer-main__company p {
  margin: 0 0 10px !important;
  color: #ffffff !important;
  font-size: clamp(12px, 0.78vw, 15px) !important;
  line-height: 1.8 !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

body .rt-top .rt-footer-main__nav {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, max-content)) !important;
  justify-content: space-between !important;
  column-gap: clamp(34px, 3.6vw, 70px) !important;
}

body .rt-top .rt-footer-main__nav div {
  display: flex !important;
  flex-direction: column !important;
  gap: clamp(16px, 1.45vw, 26px) !important;
  min-width: 0 !important;
}

body .rt-top .rt-footer-main__nav a {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-width: clamp(120px, 8.2vw, 170px) !important;
  min-height: 34px !important;
  padding: 0 26px 10px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-size: clamp(11px, 0.78vw, 14px) !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.16) !important;
}

body .rt-top .rt-footer-main__nav a::after {
  content: "" !important;
  position: absolute !important;
  right: 4px !important;
  top: calc(50% - 5px) !important;
  width: 7px !important;
  height: 7px !important;
  border-top: 1.5px solid #ffffff !important;
  border-right: 1.5px solid #ffffff !important;
  transform: translateY(-50%) rotate(45deg) !important;
  transition: transform 0.28s ease, opacity 0.28s ease !important;
  opacity: 0.95 !important;
}

body .rt-top .rt-footer-main__nav a:hover::after,
body .rt-top .rt-footer-main__nav a:focus-visible::after {
  transform: translate(5px, -50%) rotate(45deg) !important;
  opacity: 1 !important;
}

body .rt-top .rt-footer-bottom {
  background: #ffffff !important;
  color: #333333 !important;
  padding: clamp(30px, 2.6vw, 50px) 0 !important;
}

body .rt-top .rt-footer-bottom__inner {
  width: var(--rt-inner) !important;
  max-width: var(--rt-inner-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 40px !important;
}

body .rt-top .rt-footer-bottom__links {
  display: flex !important;
  align-items: center !important;
  gap: clamp(18px, 1.8vw, 34px) !important;
  margin-bottom: 18px !important;
  color: #333333 !important;
  font-size: clamp(11px, 0.72vw, 13px) !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em !important;
}

body .rt-top .rt-footer-bottom__links span {
  width: 1px !important;
  height: 14px !important;
  background: #999999 !important;
  display: inline-block !important;
}

body .rt-top .rt-footer-bottom__left p {
  margin: 0 !important;
  color: #333333 !important;
  font-size: clamp(11px, 0.72vw, 13px) !important;
  line-height: 1.8 !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em !important;
}

body .rt-top .rt-footer-bottom__badges {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(24px, 2.4vw, 44px) !important;
  flex: 0 0 auto !important;
}

body .rt-top .rt-footer-bottom__badges img {
  display: block !important;
  width: auto !important;
  height: clamp(48px, 3.6vw, 68px) !important;
  object-fit: contain !important;
}


/* =========================================================
   960px以下：会社情報→ナビ2列
========================================================= */

@media (max-width: 960px) {
  body .rt-top .rt-footer-main {
    padding: 66px 0 72px !important;
  }

  body .rt-top .rt-footer-main__inner {
    width: min(calc(100vw - 48px), 760px) !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 34px !important;
    align-items: start !important;
  }

  body .rt-top .rt-footer-main__company {
    width: 100% !important;
    max-width: none !important;
  }

  body .rt-top .rt-footer-main__company h2 {
    margin-bottom: 24px !important;
    font-size: clamp(24px, 5vw, 32px) !important;
    line-height: 1.45 !important;
    letter-spacing: 0.12em !important;
    white-space: normal !important;
  }

  body .rt-top .rt-footer-main__company p {
    font-size: 12px !important;
    line-height: 1.8 !important;
  }

  body .rt-top .rt-footer-main__nav {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 26px !important;
    row-gap: 18px !important;
    justify-content: stretch !important;
  }

  body .rt-top .rt-footer-main__nav div {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  body .rt-top .rt-footer-main__nav a {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 42px !important;
    padding: 0 22px 9px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
  }

  body .rt-top .rt-footer-main__nav a::after {
    right: 4px !important;
    top: calc(50% - 5px) !important;
    width: 6px !important;
    height: 6px !important;
    border-width: 1px !important;
  }

  body .rt-top .rt-footer-bottom {
    padding: 24px 0 30px !important;
  }

  body .rt-top .rt-footer-bottom__inner {
    width: min(calc(100vw - 48px), 760px) !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    text-align: center !important;
  }

  body .rt-top .rt-footer-bottom__links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
    font-size: 11px !important;
  }

  body .rt-top .rt-footer-bottom__left p {
    text-align: center !important;
    line-height: 1.55 !important;
  }

  body .rt-top .rt-footer-bottom__badges {
    width: 100% !important;
    justify-content: center !important;
    gap: 18px !important;
  }

  body .rt-top .rt-footer-bottom__badges img {
    height: 38px !important;
  }
}
