/* Footer
----------------------------------------*/
.l-footer {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Section */
.l-footer-section {
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  grid-template-columns: 1fr;
}

.l-footer-subnav-section {
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.l-footer-logo {
  height: auto;
}
.l-footer-logo img {
  width: 160px;
  height: auto;
}

.l-footer-subnav {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 15px;
  list-style: none;
}
.l-footer-subnav li + li::before {
  content: "|";
  margin: 0 0.5em; /* 左右スペース */
  color: var(--color-black);
}
.l-footer-nav-section a {
  font-size: 14px;
  font-weight: 500;
}

.l-footer-nav-section a:hover {
  text-decoration: underline;
}

/* Footer Navigation Grid */
.l-footer-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.l-footer-nav__item {
  padding: 0 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.l-footer-nav__item h4 {
  font-size: 16px;
  font-weight: 400;
}

.l-footer-nav__item h4 a {
  color: var(--color-black);
  text-decoration: none;
}

.l-footer-nav__item a:hover {
  color: var(--color-black);
  text-decoration: none;
  font-weight: 400;
  opacity: 0.7;
  transition: opacity 0.3s;
}
/* Copyright */
.l-footer-copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 0 0 0;
}

.l-footer-copyright-text {
  color: var(--color-black);
  font-size: 16px;
  text-align: center;
}
.l-footer-sp-address {
  display: none;
}
/* Responsive Design */
@media screen and (max-width: 1200px) {
  footer.l-footer {
    padding: 30px 30px;
  }
  .l-footer-nav {
    gap: 40px 60px;
  }

  .l-footer-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
  }

  .l-footer-nav__item {
    padding: 0 1rem 0 0;
    min-width: inherit;
  }

  .l-footer-nav__item h4 {
    margin-bottom: 15px;
  }

  .l-footer-nav__item a {
    display: block;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 768px) {
  .l-footer-sp-address {
    display: block;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
    padding: 40px 0;
  }
  footer .l-footer-nav,
  footer .l-footer-subnav {
    display: none;
  }

  .l-footer {
    padding: 60px 0 24px;
  }
  .l-footer-subnav-section {
    justify-content: center;
  }
  .l-footer-section {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
  }

  .l-footer-logo {
    display: block;
    margin-left: 0;
    order: -1; /* 最上部に移動 */
  }
  .l-footer-copyright {
    padding: 0;
  }
  .l-footer-copyright-text {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .l-footer-logo img {
    width: 200px;
  }
  .l-footer-nav__item {
    flex: 0 0 100%;
  }

  .l-footer-section,
  .l-footer-copyright {
    padding-left: 20px;
    padding-right: 20px;
  }
}
