@charset "UTF-8";

/* -------------------------------------
footer
------------------------------------- */
footer {
  overflow-x: clip;
}
footer a {
  color: #fff;
}

.footer {
  color: #fff;
  padding: 35px 0 45px;
}

/* .footer::after {
  content: "";
  width: 101%;
  min-width: 596px;
  aspect-ratio: 8 / 3;
  background: url("../imgs/common/bg_wave_gr.svg") no-repeat center / cover;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -35%);
  z-index: -1;
}  */

/* =================================
Layout
================================= */

.footer__logo {
  width: 26.69vw;
  max-width: 246px;
  min-width: 205px;
}

.footer__main {
  display: flex;
  gap: 12px min(8.5vw, 137px);
}

.footer__nav {
  display: flex;
  gap: min(5vw, 80px);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.footer__bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 25px;
  margin-right: 30px;
}

.footer__policy {
  display: flex;
  gap: 0 1em;
}

/* =================================
Main Menu
================================= */
.footer__link {
  font-size: clamp(17px, 2.21vw, 20px);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.footer__link::before {
  content: "";
  width: 1.1em; /* 最大幅を確保 */
  height: 0.6em;
  flex-shrink: 0;
  margin-right: 0.5em; /* ホバー後の余白も最初から確保 */

  background: url("../imgs/common/arrow_wh.svg") no-repeat left center / 0.6em auto;

  transition:
    background-size 0.3s,
    background-image 0.3s;
}

.footer__link span {
  transform: translateX(-0.5em);
  transition: 0.3s;
}

a.footer__link:hover::before {
  background-image: url("../imgs/common/arrow_wh_hv.svg");
  background-size: 1.1em auto;
}

a.footer__link:hover span {
  opacity: 0.5;
  transform: translateX(0);
}

.footer__sns {
  font-size: clamp(18px, 2.34vw, 20px);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.footer__sns img {
  width: 1.5em;
  flex-shrink: 0;
}
.footer__sns:hover {
  opacity: 0.5;
}
/* =================================
Sub Menu
================================= */

.footer__sub-link,
.footer__policy-link {
  font-size: clamp(16px, 2.08vw, 18px);
  font-weight: 400;
  letter-spacing: 0;
  position: relative;
  display: inline-block;
  margin-left: 1.333em;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.footer__sub-link::before,
.footer__policy-link::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  left: -0.8em;
  top: 50%;
  transform: translateY(-50%);

  opacity: 0;
  transition: opacity 0.3s;
}

.footer__sub-link span,
.footer__policy-link span {
  transition: opacity 0.3s;
}

.footer__sub-link:hover,
.footer__policy-link:hover {
  transform: translateX(1em);
}

.footer__sub-link:hover::before,
.footer__policy-link:hover::before {
  opacity: 1;
}
.footer__sub-link:hover span,
.footer__policy-link:hover span {
  opacity: 0.5;
}
.footer__ig {
  display: none;
}
/* =================================
768px
================================= */
@media screen and (max-width: 768px) {
  .footer {
    padding: 7px 0 30px;
  }
  .footer__inner,
  .footer__bottom {
    max-width: 360px;
  }
  .footer__main {
    flex-direction: column;
  }

  .footer__logo {
    width: 57%;
    max-width: 204px;
    min-width: auto;
    margin: 0 auto;
  }

  .footer__nav {
    display: block;
  }

  .footer__list {
    gap: 0;
  }

  .footer__list + .footer__list {
    margin-top: 0;
  }

  .footer__item {
    padding: 17px 0;
    border-bottom: 1px dashed #fff;
  }
  .footer__item--has-sub {
    padding: 36px 0;
  }
  .footer__item--sns {
    display: none;
  }

  .footer__sub {
    margin: 8px 0 0;
    padding: 15px 22px;
    background: #fff;
    border-radius: 12px;
  }

  .footer__sub li {
    margin-left: 1em;
  }

  .footer__sub-link {
    font-weight: 500;
    margin-left: 0;
    color: #0a8483;
  }
  .footer__sub-link::before {
    background-color: #0a8483;
  }
  .footer__sns {
    display: none;
  }

  .footer__bottom {
    width: 88%;
    margin: 24px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  .footer__policy {
    flex-direction: column;
  }

  .footer__policy-link {
    margin-left: 0;
    font-size: 13px;
  }

  .footer__ig {
    display: block;
    width: 30px;
  }
}
