/* Anime Local Manager Site V1: shared styles for ALL eight site pages. */
/* V6: stable, centered and localized homepage footer.
   Independent rows prevent flex overflow when the selected language changes. */
footer.alm-footer-fixed {
  width: min(1280px, 100%);
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 18px;
  border-top: 1px solid rgba(153, 162, 203, .30);
}
footer.alm-footer-fixed .alm-footer-nav {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(58px, auto);
  gap: 8px 16px;
  align-items: stretch;
}
footer.alm-footer-fixed .alm-footer-nav > a,
footer.alm-footer-fixed .alm-footer-nav > button {
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.45;
  font-size: .89rem;
}
footer.alm-footer-fixed .alm-footer-nav > a {
  color: #d8cff8;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(37, 35, 76, .24);
}
footer.alm-footer-fixed .alm-footer-nav > a:hover {
  border-color: rgba(181, 160, 238, .40);
  text-decoration: underline;
  text-underline-offset: 4px;
}
footer.alm-footer-fixed .alm-footer-nav > button {
  border-color: rgba(181, 160, 238, .40);
  border-radius: 12px;
  background: rgba(37, 35, 76, .5);
  color: #f1ecff;
  cursor: pointer;
}
footer.alm-footer-fixed .alm-footer-bottom {
  min-width: 0;
  border-top: 1px solid rgba(153, 162, 203, .14);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #c6cce8;
  font-size: .83rem;
}
footer.alm-footer-fixed .alm-footer-bottom p { margin: 0; }
footer.alm-footer-fixed .alm-footer-bottom a { color: #d8cff8; }
@media (max-width: 900px) {
  footer.alm-footer-fixed .alm-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 470px) {
  footer.alm-footer-fixed { padding: 20px 14px 24px; gap: 14px; }
  footer.alm-footer-fixed .alm-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; grid-auto-rows: minmax(66px, auto); }
  footer.alm-footer-fixed .alm-footer-nav > a,
  footer.alm-footer-fixed .alm-footer-nav > button { font-size: .8rem; padding: 8px 6px; }
}

/* Give notice/legal content a centered, readable measure without changing text alignment. */
main.alm-notice-centered.comm-panel{
  width:min(960px,calc(100% - 48px));
  max-width:960px;
  margin:32px auto 56px;
  padding:clamp(24px,4vw,44px);
  box-sizing:border-box;
  line-height:1.7;
}
main.alm-notice-centered.comm-panel h1{margin-top:0;line-height:1.17;overflow-wrap:anywhere}
main.alm-notice-centered.comm-panel section{max-width:100%}
main.alm-notice-centered.comm-panel p{overflow-wrap:break-word}
@media (max-width:600px){
  main.alm-notice-centered.comm-panel{
    width:calc(100% - 26px);
    margin:20px auto 32px;
    padding:20px 18px;
  }
}

/* Long localized legal headings should wrap, not widen the viewport. */
.legal-content h1,.legal-content h2,.legal-content a{overflow-wrap:anywhere;hyphens:auto}