/* ==================================================
  Footer upgrade
================================================== */
.l-footer {
  position: relative;
  overflow: hidden;
  background: #070b16;
  border-top: 5px solid #e83920;
}

.l-footer .footer-head {
  position: relative;
  isolation: isolate;
  padding: 8rem 0 7rem;
  background:
    linear-gradient(125deg, rgba(0, 31, 162, .95) 0%, rgba(0, 23, 116, .97) 48%, rgba(7, 11, 22, 1) 100%);
}

.l-footer .footer-head::before {
  content: "IMAMURA TRANSPORT";
  position: absolute;
  z-index: -1;
  top: 1rem;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .055);
  font-family: "Roboto", sans-serif;
  font-size: clamp(7rem, 11vw, 18rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.l-footer .footer-head::after {
  content: "KUMAMOTO  /  SINCE 1996";
  position: absolute;
  right: max(3rem, calc((100vw - 120rem) / 2));
  bottom: 2.4rem;
  color: rgba(255, 255, 255, .55);
  font-family: "Roboto", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .25em;
}

.l-footer .footer-head .l-wrap {
  position: relative;
  padding: 0 3rem;
}

.l-footer .footer-head .flex-box {
  align-items: flex-end;
  gap: 5rem;
  margin-bottom: 4.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .24);
}

.l-footer .footer-head .flex-box .logo {
  margin: 0;
  line-height: 1.15;
}

.l-footer .footer-head .flex-box .logo .-Gothic {
  margin-bottom: .5rem;
  color: rgba(255, 255, 255, .72);
  font-size: 1.3rem;
  letter-spacing: .24em;
}

.l-footer .footer-head .flex-box .logo .-Mincho {
  color: #fff;
  font-size: clamp(3.7rem, 4vw, 5.4rem);
  letter-spacing: .08em;
  text-shadow: 0 5px 25px rgba(0, 0, 0, .2);
}

.l-footer .footer-menu {
  width: auto !important;
  gap: 2.6rem;
}

.l-footer .footer-menu a {
  position: relative;
  display: block;
  padding: .7rem 0;
  color: rgba(255, 255, 255, .88);
  font-size: 1.4rem !important;
  letter-spacing: .08em;
}

.l-footer .footer-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.l-footer .footer-menu a:hover {
  opacity: 1;
}

.l-footer .footer-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.l-footer .tel {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2.8rem !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, .58) !important;
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem !important;
  font-weight: 700;
  letter-spacing: .2em !important;
}

.l-footer .tel a {
  margin: 0 !important;
  color: #fff;
  font-size: clamp(3rem, 4.2vw, 5.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em !important;
}

.l-footer .place-txt {
  display: inline-block;
  margin-right: 5rem;
  padding: 0 !important;
  color: rgba(255, 255, 255, .72) !important;
  font-size: 1.3rem;
  line-height: 1.8;
}

.l-footer .place-txt .bold {
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: .14em;
}

.l-footer .copyright {
  padding: 2.2rem 0;
  background: #070b16;
}

.l-footer .copyright_txt {
  color: rgba(255, 255, 255, .46);
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  letter-spacing: .16em;
}

@media screen and (max-width: 768px) {
  .l-footer {
    border-top-width: 4px;
  }

  .l-footer .footer-head {
    padding: 6rem 0 6.5rem;
  }

  .l-footer .footer-head::before {
    top: 1.5rem;
    left: 2rem;
    transform: none;
    font-size: 6.5rem;
    text-align: left;
  }

  .l-footer .footer-head::after {
    right: auto;
    bottom: 2rem;
    left: 2rem;
    font-size: .9rem;
  }

  .l-footer .footer-head .l-wrap {
    padding: 0 2rem;
  }

  .l-footer .footer-head .flex-box {
    display: block;
    margin-bottom: 3.5rem;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .l-footer .footer-head .flex-box .logo {
    margin-bottom: 3.5rem;
    text-align: left;
  }

  .l-footer .footer-head .flex-box .logo .-Mincho {
    font-size: 3.8rem;
  }

  .l-footer .footer-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .25);
  }

  .l-footer .footer-menu li {
    min-width: 0;
  }

  .l-footer .footer-menu li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .l-footer .footer-menu a {
    padding: 1.4rem .5rem !important;
    border-right: 1px solid rgba(255, 255, 255, .25);
    border-bottom: 1px solid rgba(255, 255, 255, .25) !important;
    font-size: 1.3rem !important;
    text-align: center;
  }

  .l-footer .footer-menu li:nth-child(even) a,
  .l-footer .footer-menu li:last-child a {
    border-right: 0;
  }

  .l-footer .tel {
    display: block;
    margin-bottom: 3rem !important;
    text-align: left;
  }

  .l-footer .tel a {
    display: block;
    margin-top: .8rem !important;
    font-size: clamp(3.2rem, 10vw, 4.2rem);
    pointer-events: auto;
  }

  .l-footer .place-txt {
    display: block;
    margin: 0 0 1.8rem;
    text-align: left;
  }

  .l-footer .copyright {
    padding: 1.8rem 0;
  }
}
