:root {
  --teal: #0f8b8d;
  --line: #e5eaea;
  --container: 1160px;
}

.footer *,
.footer *::before,
.footer *::after {
  box-sizing: border-box;
}

.footer img {
  max-width: 100%;
  height: auto;
  display: block;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer .container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.footer {
  border-top: 1px solid var(--line);
  color: #8a9696;
  background: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

.footer-note {
  padding: 22px 0;
  color: #8a9696;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.7;
}

.footer-inner {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: center;
  gap: 30px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 12px;
  color: var(--teal);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.footer-brand .brand-logo {
  width: 154px;
  height: auto;
  max-height: 38px;
  object-fit: contain;
}

.footer-inner nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 9.75px;
  font-weight: 800;
}

.footer-inner nav a {
  color: var(--teal);
}

.footer-related {
  padding: 0 0 22px;
}

.footer-related h2 {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.04em;
}

.footer-related-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 0;
}

.footer-related-links a {
  color: #8a9696;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.6;
  text-decoration: none;
}

.footer-copyright {
  margin: 0 auto;
  padding: 16px 0 24px;
  border-top: 1px solid var(--line);
  color: #8a9696;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.footer-copyright a {
  color: #8a9696;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1023px) {
  .footer .container {
    width: min(var(--container), calc(100% - 48px));
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 0 24px;
    text-align: center;
  }

  .footer-inner nav {
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 9px;
  }

  .footer-related {
    padding-bottom: 18px;
  }

  .footer-related-links {
    gap: 6px 12px;
  }

  .footer-related-links a {
    font-size: 8.25px;
  }

  .footer-copyright {
    padding: 12px 0 18px;
    font-size: 8.25px;
  }
}

@media (max-width: 767px) {
  .footer .container {
    width: min(100% - 32px, var(--container));
  }

  .footer-note {
    padding: 14px 0;
    font-size: 7.5px;
  }

  .footer-inner {
    gap: 12px;
    padding: 16px 0 18px;
  }

  .footer-inner nav {
    gap: 8px 14px;
    font-size: 8.25px;
    line-height: 1.6;
  }

  .footer-related {
    padding-bottom: 14px;
  }

  .footer-related h2 {
    margin-bottom: 8px;
    font-size: 8.5px;
  }

  .footer-related-links {
    gap: 4px 8px;
  }

  .footer-related-links a {
    font-size: 7.25px;
    font-weight: 700;
  }

  .footer-copyright {
    padding: 10px 0 16px;
    font-size: 7.5px;
  }
}

@media (max-width: 360px) {
  .footer .container {
    width: calc(100% - 24px);
  }
}
