@charset "utf-8";

/* ========== useful ========== */
#useful {
  padding: calc(140 / var(--full-width) * 100vw) calc(30 / var(--full-width) * 100vw)
    calc(340 / var(--full-width) * 100vw);
  background: bottom/cover url(../img/footer/useful-bg.webp);
}

.useful-ttl::before {
  top: calc(-160 / var(--full-width) * 100vw);
  left: calc(-30 / var(--full-width) * 100vw);
  width: calc(235 / var(--full-width) * 100vw);
  aspect-ratio: 235 / 191;
  background-image: url(../img/footer/useful-ttl-deco.webp);
}

.useful-list {
  margin-top: calc(60 / var(--full-width) * 100vw);
  display: flex;
  flex-wrap: wrap;
  gap: calc(24 / var(--full-width) * 100vw) calc(30 / var(--full-width) * 100vw);
}

.useful-item {
  width: calc((100% - (30 / var(--full-width) * 100vw)) / 2);
}

.useful-item a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: calc(100 / var(--full-width) * 100vw);
  padding: 0 calc(50 / var(--full-width) * 100vw);
  background-color: #fff;
  box-shadow: calc(5 / var(--full-width) * 100vw) calc(5 / var(--full-width) * 100vw)
    calc(5 / var(--full-width) * 100vw) 0 rgb(0 0 0 / 24%);
  line-height: 1.2;
  font-size: calc(26 / var(--full-width) * 100vw);
  font-weight: 700;
  color: #000;
}
.useful-item a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 7%;
  translate: 0 -50%;
  display: block;
  width: calc(23 / var(--full-width) * 100vw);
  height: auto;
  aspect-ratio: 23 / 12;
  background: center/contain no-repeat url(../img/footer/useful-arrow.webp);
  transition: right 0.3s, opacity 0.2s;
}
@media (hover: hover) {
  .useful-item a:hover {
    opacity: 0.8;
  }
  .useful-item a:hover::after {
    right: 4%;
  }
}

@media screen and (min-width: 751px) {
  #useful {
    padding-bottom: calc(490 / var(--full-width) * 100vw);
    background-image: url(../img/footer/useful-bg__l.webp);
  }

  .useful-ttl::before {
    top: calc(-60 / var(--full-width) * 100vw);
    left: calc(115 / var(--full-width) * 100vw);
    width: calc(268 / var(--full-width) * 100vw);
    aspect-ratio: 268 / 219;
    background-image: url(../img/footer/useful-ttl-deco__l.webp);
  }

  .useful-ttl img {
    margin: 0 auto;
    width: calc(690 / var(--full-width) * 100vw);
  }

  .useful-list {
    margin: calc(60 / var(--full-width) * 100vw) auto 0;
    width: calc(980 / var(--full-width) * 100vw);
    gap: calc(30 / var(--full-width) * 100vw) calc(20 / var(--full-width) * 100vw);
  }

  .useful-item {
    width: calc(230 / var(--full-width) * 100vw);
  }

  .useful-item a {
    height: calc(70 / var(--full-width) * 100vw);
    padding: 0 calc(40 / var(--full-width) * 100vw);
    font-size: calc(18 / var(--full-width) * 100vw);
  }
  .useful-item a::after {
    width: calc(15 / var(--full-width) * 100vw);
  }
}

/* ========== footer ========== */
#footer {
  width: 100%;
  padding: calc(50 / var(--full-width) * 100vw) calc(30 / var(--full-width) * 100vw)
    calc(20 / var(--full-width) * 100vw);
  background-color: #01609a;
  color: #fff;
}

.footer-logo {
  margin: 0 auto;
  display: block;
  width: calc(327 / var(--full-width) * 100vw);
  aspect-ratio: 520 / 112;
}
@media (hover: hover) {
  .footer-logo:hover {
    opacity: 0.7;
  }
}

.footer-share {
  margin-top: calc(45 / var(--full-width) * 100vw);
}

.footer-share h2 {
  line-height: 1;
  text-align: center;
  font-size: calc(40 / var(--full-width) * 100vw);
  font-weight: 400;
}

.footer-share ul {
  margin-top: calc(20 / var(--full-width) * 100vw);
  display: flex;
  justify-content: center;
  gap: calc(45 / var(--full-width) * 100vw);
}

.footer-share ul li {
  width: calc(75 / var(--full-width) * 100vw);
  height: calc(75 / var(--full-width) * 100vw);
}

.footer-share ul li a {
  display: block;
}
.footer-share ul li._x a {
  padding: calc(6 / var(--full-width) * 100vw);
}
@media (hover: hover) {
  .footer-share ul li a:hover {
    opacity: 0.7;
  }
}

.footer-copyright {
  margin-top: calc(45 / var(--full-width) * 100vw);
  display: block;
  width: 100%;
  line-height: 1.4;
  text-align: center;
  font-size: calc(20 / var(--full-width) * 100vw);
}

@media screen and (min-width: 751px) {
  .footer-share ul li {
    width: calc(45 / var(--full-width) * 100vw);
    height: calc(45 / var(--full-width) * 100vw);
  }
}
