html,
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
}

.p-footer {
  background: linear-gradient(to bottom, #0154A7, #012A54);
  color: #fff;
  font-size: 14px;
  position: relative;
}

.footer-main {
  margin: 0;
  padding: 0 90px 30px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 50px;
  padding-right: 1.25rem;
  position: relative;
  margin: 0 auto;
  position: relative;
  min-height: 150px;
}

.footer-info {
  flex: 1;
  min-width: 300px;
  font-size: 0.95rem;
  line-height: 1.8;
  position: absolute;
}

.footer-block {
  display: inline-block;
}

.footer-company {
  font-weight: bold;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  margin: 0 0 8px;
}

.footer-underline {
  height: 1px;
  width: 100%;
  background-color: #08A2E9;
  margin: 6px 0;
}

.footer-text {
  margin: 8px 0;
  font-size: clamp(0.7rem, 1.2vw, 0.95rem);
}

.footer-text a.tel-link,
.footer-text a.map-link {
  font-size: clamp(0.7rem, 1.2vw, 0.95rem);
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
  line-height: 1.8;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: relative;
  padding-right: 24px;
}

.footer-text a.tel-link:hover,
.footer-text a.map-link:hover {
  color: #b8e4ff;
  transform: scale(1.06);
}

@media (hover: hover) {

  a.tel-link:hover::after,
  a.map-link:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.footer-text a.tel-link:active,
.footer-text a.map-link:active {
  transform: scale(0.985);
  opacity: 0.92;
  transition: transform 0.12s ease, opacity 0.12s ease;
}



a.tel-link.active,
a.map-link.active {
  color: #fff !important;
}

a.tel-link::after,
a.map-link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-5px);
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

a.tel-link::after {
  background-image: url("/assets/images/tel_icon.png");
}

a.map-link::after {
  background-image: url("/assets/images/access_pin.png");
}

a.tel-link.active::after,
a.map-link.active::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.footer-links {
  width: auto;
  order: 2;
  margin-top: 40px;
  position: absolute;
  bottom: 0;
  right: 0;
}

.footer-links ul {
  display: flex;
  gap: clamp(0.75rem, 3vw, 6rem);
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
}

.footer-links li a {
  position: relative;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  padding-bottom: clamp(0.4rem, 1vw, 0.75rem);
  white-space: nowrap;
}

.footer-links li a::after {
  content: "";
  position: absolute;
  left: -1.25rem;
  bottom: 0;
  width: calc(100% + 2rem);
  height: 1px;
  background-color: #6ec8f2;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-links li a:hover::after {
  transform: scaleX(1);
}

.footer-pagetop {
  position: absolute;
  top: 50%;
  right: -1.2rem;
  transform: translateY(-50%);
}

.footer-pagetop a {
  display: inline-block;
  width: 70%;
  padding: 0;
}

.footer-pagetop img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s ease, filter 0.1s ease;
}

.footer-pagetop a:hover img {
  filter: grayscale(80%) brightness(0.9) contrast(1);
  transform: scale(1.1);
}

.footer-pagetop a:active img {
  animation: pressDown 0.2s ease forwards;
}

@keyframes pressDown {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92) translateY(1px);
  }

  100% {
    transform: scale(1);
  }
}

.footer-copyright {
  background-color: #002b50;
  color: #eee;
  font-size: 0.55rem;
  padding: 1px 87px;
  text-align: right;
  width: 100%;
  box-sizing: border-box;
}

@media screen and (max-width: 1024px) {
  .footer-container {
    padding-bottom: 60px;
  }

  .footer-links ul {
    gap: clamp(0.5rem, 2.5vw, 2rem);
  }

  .footer-links li a {
    font-size: clamp(0.8rem, 1.8vw, 1.0rem);
  }

  .footer-links li a::after {
    left: -0.75rem;
    width: calc(100% + 1.5rem);
  }
}

@media screen and (max-width: 910px) {
  .footer-main {
    padding: 0 30px;
  }

  .footer-links {
    display: none;
  }

  .footer-company {
    font-size: 0.9rem;
  }

  .footer-text,
  .footer-text a.tel-link,
  .footer-text a.map-link {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 0 70px;
  }

  .footer-info {
    margin-top: 20px;
  }

  .footer-company {
    margin-bottom: 8px;
    font-size: 1.1rem;
  }

  .footer-text,
  .footer-text a.tel-link,
  .footer-text a.map-link {
    font-size: 0.9rem;
  }

  .footer-tel {
  display: inline-block;
  padding-left: 3.3em;
  padding-right: 24px;
  position: relative;
  letter-spacing: 0.7px;
}

.footer-text a.map-link {
  display: inline-block;
  padding-left: 1.7em;
  position: relative;
}

  .footer-links {
    display: none;
  }

  .footer-pagetop {
    all: unset;
    position: absolute;
    inset: 20px auto auto 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  .footer-pagetop a {
    width: auto;
    height: auto;
    line-height: 0;
  }

  .footer-pagetop img {
    width: 40px;
  }

  .footer-copyright {
    text-align: center;
  }
}

@media (hover: none) and (pointer: coarse) {

  a.tel-link:hover,
  a.map-link:hover {
    color: #fff !important;
    transform: none !important;
  }

  a.tel-link.active,
  a.map-link.active {
    color: #fff !important;
    transform: none !important;
  }
}

@media (hover: none) and (pointer: coarse) {

  .footer-text a.tel-link:active,
  .footer-text a.map-link:active {
    transform: scale(0.95);
    opacity: 0.85;
    transition: transform 0.12s ease, opacity 0.12s ease;
  }
}