.layout-footer {
  width: 100%;
  margin-block-start: 120px;
  background: #1a1a1a url("../img/footer/bg_footer.webp") no-repeat;
  background-position: right bottom;
  background-size: 100% auto;
}

@media screen and (max-width: 960px) {
  .layout-footer {
    margin-block-start: 0;
    background: #1a1a1a url("../img/footer/bg_footer_sp.webp") no-repeat right top/100% auto;
  }
}

.layout-footer__inner {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  padding: 80px 40px 28px;
}

@media screen and (max-width: 960px) {
  .layout-footer__inner {
    padding: 50px 32px 80px;
  }
}

.layout-footer .footer-nav,
.layout-footer .footer-group {
  color: #fff;
}

.layout-footer .footer-nav a,
.layout-footer .footer-group a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s cubic-bezier(0.39, 0.575, 0.565, 1);
  will-change: opacity;
}

@media (hover: hover) {

  .layout-footer .footer-nav a:hover,
  .layout-footer .footer-group a:hover {
    opacity: 0.5;
  }
}

@media (hover: none) {

  .layout-footer .footer-nav a:active,
  .layout-footer .footer-group a:active {
    opacity: 0.5;
  }
}

.layout-footer .footer-nav a[target="_blank"],
.layout-footer .footer-group a[target="_blank"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media screen and (max-width: 960px) {

  .layout-footer .footer-nav a[target="_blank"],
  .layout-footer .footer-group a[target="_blank"] {
    gap: 8px;
  }
}

.layout-footer .footer-nav a[target="_blank"]:after,
.layout-footer .footer-group a[target="_blank"]:after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 12px;
  background: #fff;
  mask: url("../img/footer/icn_blank.svg") no-repeat center/contain;
}

.layout-footer .footer-nav {
  display: flex;
  justify-content: space-between;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-nav {
    flex-direction: column;
  }
}

.layout-footer .footer-information {
  padding-bottom: 40px;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-information {
    order: 2;
    margin-top: 22px;
  }
}

.layout-footer .footer-information> :first-child {
  margin-top: 0;
}

.layout-footer .footer-information__campus {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 0;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-information__campus {
    font-size: 18px;
  }
}

.layout-footer .footer-information__address {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-information__address {
    margin-top: 4px;
    letter-spacing: 0.04em;
  }
}

.layout-footer .footer-information__map {
  margin-top: 8px;
  font-size: 14px;
  margin-bottom: 0;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-information__map {
    margin-top: 4px;
  }
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-information__map+.footer-information__campus {
    margin-top: 20px;
  }
}

.layout-footer .footer-link {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-link {
    display: contents;
  }
}

.layout-footer .footer-title {
  width: 306px;
  margin: 0;
  text-align: right;
}

.layout-footer .footer-title img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-title {
    width: 311px;
    order: 1;
    text-align: left;
  }
}

.layout-footer .footer-notes {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1;
  text-align: right;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-notes {
    order: 1;
    margin-top: 10px;
    font-size: 10px;
  }
}

.layout-footer .footer-sns {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: auto;
  margin-bottom: 0;
  padding: 0;
  list-style: "";
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-sns {
    order: 3;
  }
}

.layout-footer .footer-sns__item a::after {
  display: none !important;
}

.layout-footer .footer-sns__item--youtube {
  width: 47px;
}

.layout-footer .footer-sns__item--x {
  width: 32px;
}

.layout-footer .footer-sns__item--facebook,
.layout-footer .footer-sns__item--line {
  width: 36px;
}

.layout-footer .footer-group {
  margin-top: 15px;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-group {
    position: relative;
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 25px;
    padding-top: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: grid-template-rows 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
    will-change: grid-template-rows;
  }

  .layout-footer .footer-group.is-show {
    grid-template-rows: 1fr;
  }

  .layout-footer .footer-group.is-show .footer-group__title::before {
    rotate: 0deg;
    transition: rotate 0.2s cubic-bezier(0.39, 0.575, 0.565, 1);
  }

  .layout-footer .footer-group.is-show .footer-group__items {
    opacity: 1;
  }
}

.layout-footer .footer-group__title {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  cursor: default;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-group__title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    cursor: pointer;
  }
}

.layout-footer .footer-group__title span {
  white-space: nowrap;
}

@media screen and (min-width: 961px) {
  .layout-footer .footer-group__title::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
  }
}

@media screen and (max-width: 960px) {

  .layout-footer .footer-group__title::before,
  .layout-footer .footer-group__title::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    right: 8px;
    width: 10px;
    height: 2px;
    background: #fff;
    mask: unset;
    border-radius: 1px;
  }

  .layout-footer .footer-group__title::before {
    rotate: 90deg;
    transition: rotate 0.2s cubic-bezier(0.39, 0.575, 0.565, 1) 0.1s;
    will-change: rotate;
  }
}

.layout-footer .footer-group__items {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-group__items {
    overflow: hidden;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding-left: 5px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
    will-change: opacity;
  }
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-group__item {
    margin-top: 14px;
    padding-bottom: 10px;
  }

  .layout-footer .footer-group__item:last-of-type {
    padding-bottom: 24px;
  }
}

.layout-footer .footer-group__heading {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-group__heading {
    color: #7a7a7a;
    font-size: 12px;
  }
}

.layout-footer .footer-group__schools {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-group__schools {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
}

.layout-footer .footer-school {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: "";
}

.layout-footer .footer-school__item {
  margin: 0;
  font-size: 14px;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-school {
    gap: 10px;
  }

  .layout-footer .footer-school a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .layout-footer .footer-school a::before {
    content: "";
    display: block;
    width: 8px;
    height: 2px;
    background: #fff;
  }
}

.layout-footer .footer-copyright {
  margin-top: 60px;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-copyright {
    margin-top: 22px;
    font-size: 10px;
  }
}

@media screen and (max-width: 960px) {
  .helper-only-pc {
    display: none !important;
  }
}