/* Crystal footer — 2026-10-18. Scoped to avoid legacy footer styles. */
#crystal-site-footer,
#crystal-site-footer * {
  box-sizing: border-box;
}
#crystal-site-footer {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 48px 24px 24px;
  border-top: 1px solid #ecdfe5;
  background: linear-gradient(115deg, #fcf6f8 0%, #fffafb 56%, #f2f9f9 100%);
  color: #41404b;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
  letter-spacing: .025em;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
#crystal-site-footer .crystal-footer-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}
#crystal-site-footer .crystal-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  align-items: center;
  gap: 48px;
  padding-bottom: 34px;
}
#crystal-site-footer .crystal-footer-brand {
  min-width: 0;
}
#crystal-site-footer .crystal-footer-home {
  display: inline-block;
  max-width: 100%;
  padding: 0;
  border-radius: 6px;
  vertical-align: top;
}
#crystal-site-footer .crystal-footer-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 420 / 152;
  margin: 0;
}
#crystal-site-footer .crystal-footer-caption {
  margin: 8px 0 0;
  padding: 0;
  color: #68616c;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
}
#crystal-site-footer .crystal-footer-nav {
  min-width: 0;
}
#crystal-site-footer .crystal-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#crystal-site-footer .crystal-footer-links li {
  min-width: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e7dfe4;
  list-style: none;
}
#crystal-site-footer .crystal-footer-link {
  display: flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px;
  color: #41404b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#crystal-site-footer .crystal-footer-link span {
  min-width: 0;
}
#crystal-site-footer .crystal-footer-arrow {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #a46b85;
}
#crystal-site-footer a:focus-visible {
  outline: 3px solid #187d91;
  outline-offset: 4px;
  border-radius: 4px;
}
#crystal-site-footer .crystal-footer-link:hover {
  color: #8c3e61;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#crystal-site-footer .crystal-footer-bottom {
  margin: 0;
  padding: 21px 0 0;
  border-top: 1px solid #e7dfe4;
  text-align: center;
}
#crystal-site-footer .crystal-footer-copyright {
  display: block;
  color: #716874;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .06em;
}
@media (max-width: 767px) {
  #crystal-site-footer {
    padding: 32px 24px max(24px, env(safe-area-inset-bottom));
  }
  #crystal-site-footer .crystal-footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    padding-bottom: 26px;
  }
  #crystal-site-footer .crystal-footer-brand {
    text-align: center;
  }
  #crystal-site-footer .crystal-footer-logo {
    width: 186px;
  }
  #crystal-site-footer .crystal-footer-caption {
    margin-top: 5px;
  }
  #crystal-site-footer .crystal-footer-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  #crystal-site-footer .crystal-footer-links li:first-child {
    border-top: 1px solid #e7dfe4;
  }
  #crystal-site-footer .crystal-footer-link {
    min-height: 54px;
    padding: 14px 2px;
    font-size: 14px;
  }
  #crystal-site-footer .crystal-footer-bottom {
    border-top: 0;
    padding-top: 0;
  }
}
