.layout-footer {
  width: 100%;
  margin-block-start: 120px;
  background: #000 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-image: url("../img/footer/bg_footer_sp.webp");
    background-position: right bottom;
    background-size: 151px 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: 55px 24px 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;
  }
}

@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__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

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

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

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

.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;
  padding-top: 22px;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-link {
    align-items: flex-start;
    margin-top: 55px;
    padding-top: 0;
  }
}

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

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

.layout-footer .footer-sns__item--instagram {
  width: 36px;
}

.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-menu {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding: 0;
  list-style: "";
}

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

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

@media screen and (max-width: 960px) {
  .layout-footer .footer-group {
    position: relative;
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 50px;
    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: 0;
    margin-top: 2px;
  }
}

.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: 0;
  }

  .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: #d80220;
  }
}

.layout-footer .footer-sitemap {
  position: relative;
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 55px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: grid-template-rows 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
  will-change: grid-template-rows;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-sitemap {
    margin-top: 0;
    padding-top: 50px;
    border-top: none;
  }
}

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

@media screen and (min-width: 961px) {
  .layout-footer .footer-sitemap.is-show .footer-sitemap__title::after {
    rotate: -90deg;
  }
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-sitemap.is-show .footer-sitemap__title::before {
    rotate: 0deg;
    transition: rotate 0.2s cubic-bezier(0.39, 0.575, 0.565, 1);
  }
}

.layout-footer .footer-sitemap.is-show .footer-sitemap__inner {
  opacity: 1;
}

.layout-footer .footer-sitemap a {
  display: inline-flex;
  align-items: center;
  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-sitemap a:hover {
    opacity: 0.5;
  }
}

@media (hover: none) {
  .layout-footer .footer-sitemap a:active {
    opacity: 0.5;
  }
}

.layout-footer .footer-sitemap a::after {
  content: "";
  width: 6px;
  height: 10px;
  margin-left: 8px;
  background: #fff;
  mask: url("../img/footer/arw_button_small.svg") no-repeat center/contain;
}

.layout-footer .footer-sitemap__title {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: 100%;
  height: 60px;
  margin: 0;
  user-select: none;
  cursor: pointer;
  transition: opacity 0.2s cubic-bezier(0.39, 0.575, 0.565, 1);
  will-change: opacity;
}

@media (hover: hover) {
  .layout-footer .footer-sitemap__title:hover {
    opacity: 0.5;
  }
}

@media (hover: none) {
  .layout-footer .footer-sitemap__title:active {
    opacity: 0.5;
  }
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-sitemap__title {
    height: 50px;
  }
}

@media screen and (min-width: 961px) {
  .layout-footer .footer-sitemap__title::after {
    content: "";
    width: 6px;
    height: 10px;
    margin-left: 10px;
    background: #fff;
    mask: url("../img/footer/arw_button_small.svg") no-repeat center/contain;
    rotate: 90deg;
    transition: rotate 0.2s cubic-bezier(0.39, 0.575, 0.565, 1);
  }
}

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

  .layout-footer .footer-sitemap__title::before,
  .layout-footer .footer-sitemap__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-sitemap__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-sitemap__inner {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
}

.layout-footer .footer-sitemap__items {
  display: flex;
  flex-wrap: wrap;
  gap: 39px 105px;
  margin: 0;
  padding: 20px 0;
  list-style: "";
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-sitemap__items {
    flex-direction: column;
    gap: 25px;
    padding: 18px 0;
  }
}

.layout-footer .footer-sitemap__item {
  width: calc(50% - 52.5px);
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-sitemap__item {
    width: 100%;
  }
}

.layout-footer .footer-sitemap__parent {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.layout-footer .footer-sitemap__parent a::after {
  margin-left: 16px;
}

.layout-footer .footer-sitemap__children {
  margin-top: 25px;
}

@media screen and (max-width: 960px) {
  .layout-footer .footer-sitemap__children {
    margin-top: 13px;
    padding-left: 5px;
  }
}

.layout-footer .footer-sitemap__heading {
  padding-top: 8px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
}

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

.layout-footer .footer-sitemap__heading+.footer-sitemap__child {
  margin-top: 4px;
}

.layout-footer .footer-sitemap__child {
  margin: 0;
  padding: 0;
  list-style: "";
}

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

.layout-footer .footer-sitemap__child a {
  display: inline-flex;
  align-items: center;
}

.layout-footer .footer-sitemap__child a::before {
  content: "";
  display: block;
  width: 8px;
  height: 2px;
  margin-right: 8px;
  background: #d80220;
}

.layout-footer .footer-sitemap__child a::after {
  display: none;
}

.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;
  }
}