footer {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 500;
  font-style: normal;
  color: #363033;
  background-color: rgba(253, 225, 225, 0.5);
  display: flex;
  justify-content: space-around;
  height: 30vw;
}

footer h3 {
  font-size: 2.5vw;
  color: #DA238B;
  white-space: nowrap;
  margin: 0;
  margin-bottom: 0.6em;
}

footer h4 {
  margin: 0.6em 0;
  font-size: 1.4vw;
}

footer p {
  margin: 0;
  line-height: 2em;
}

footer .bun {
  margin: auto 0;
}

footer .content1 img {
  height: 5vw;
  margin-top: 8.5vw;
  margin-right: 2vw;
}

footer .wrap {
  display: flex;
}

footer .content1 {
  display: flex;
  height: 100%;
}

footer .content1 p {
  color: black;
  font-size: 1.5vw;
}

footer .content2 {
  display: flex;
  justify-content: space-around;
  margin: auto 0;
  width: 40%;
  height: auto;
}

footer .item {
  display: flex;
  flex-direction: column;
}

footer .footer-line2 {
  height: 80%;
  width: 2px;
  background-color: rgba(29, 29, 29, 0.4);
  margin: auto 0;
}

footer a {
  color: #363033c2;
  text-decoration: none;
  transform: rotate(0.03deg);
  transition: color 0.3s;
}

footer a h4 {
  color: #363033;
}

.ah4 {
  margin-left: 0;
}

footer a::after {
  content: "";
  position: absolute;
  left: 0;
  background-color: #363033;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

footer a:hover {
  color: #DA238B; /* ホバー時文字色 */
}

footer a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.m-plus-rounded-1c-medium {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.m-plus-rounded-1c-bold {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.m-plus-rounded-1c-extrabold {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800;
  font-style: normal;
}

@media (max-width: 820px) {
  footer {
    flex-direction: column;
    height: 100%;
    align-items: center;
    gap: 1em;
  }

  footer h3 {
    font-size: 5vw;
    transform: rotate(0.03deg);
  }

  footer .content1 {
    margin-top: 2em;
    text-align: center;
  }

  footer .bun {
    margin-top: 1vw;
  }

  footer .content1 p {
    font-size: 3.5vw;
    transform: rotate(0.03deg);
  }

  footer .content1 img {
    height: 12vw;
    margin-top: 0;
    margin-right: 0;
  }

  footer .footer-line2 {
    height: 2px;
    height: 0.2vw;
    width: 70%;
    background-color: rgba(29, 29, 29, 0.4);
    margin: 1em 0;
  }

  footer .content2 {
    transform: rotate(0.03deg);
    width: 70%;
    margin-bottom: 2em;
  }

  footer h4 {
    margin: 0.3em 0;
    font-size: 4vw;
  }

  footer .item {
    text-align: center;
  }

  footer .content2 a {
    transform: rotate(0.03deg);
    font-size: 3vw;
  }
}
