/* Footer navigation, same as the home page. */
.m-page > .apple-style-footer, .apple-style-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)) !important; }
.apple-style-footer {
  margin: 0 !important;
  padding: 26px 20px calc(32px + env(safe-area-inset-bottom)) !important;
  background: #f5f5f7 !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #6e6e73 !important;
}

.apple-style-footer .app-footer-logo,
.apple-style-footer .app-footer-lead,
.apple-style-footer .app-footer-nav {
  display: none !important;
}

.app-footer-note {
  margin: 0 0 24px !important;
  padding-bottom: 22px !important;
  border-bottom: 1px solid #d2d2d7 !important;
  color: #6e6e73 !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}

.app-footer-accordion {
  border-top: 1px solid #d2d2d7 !important;
}

.app-footer-accordion details {
  border-bottom: 1px solid #d2d2d7 !important;
}

.app-footer-accordion summary {
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #1d1d1f !important;
  cursor: pointer !important;
  list-style: none !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  user-select: none !important;
}

.app-footer-accordion summary::-webkit-details-marker {
  display: none !important;
}

.app-footer-accordion summary::after {
  content: '' !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid #1d1d1f !important;
  border-bottom: 2px solid #1d1d1f !important;
  transform: rotate(45deg) translateY(-2px) !important;
  transition: transform .18s ease !important;
  opacity: .9 !important;
}

.app-footer-accordion details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -1px) !important;
}

.app-footer-panel {
  display: grid !important;
  gap: 0 !important;
  padding: 0 0 12px 14px !important;
}

.app-footer-panel a {
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  color: #424245 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

.app-footer-panel a:active {
  color: #06c !important;
}

.app-footer-contact-line {
  margin: 24px 0 0 !important;
  color: #6e6e73 !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}

.app-footer-contact-line a,
.apple-style-footer .app-footer-legal a {
  color: #06c !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

.apple-style-footer .app-footer-legal {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 9px !important;
  margin: 22px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #6e6e73 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.apple-style-footer .app-footer-legal span {
  color: #86868b !important;
}

.apple-style-footer .app-footer-copy {
  margin: 16px 0 0 !important;
  color: #6e6e73 !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}


.app-footer-note {
  margin-bottom: 0 !important;
}

.app-footer-home {
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  color: #1d1d1f !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}

.apple-style-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)) !important; }
/* Footer legal links: same grey as other text, no underline, single line. */
.apple-style-footer .app-footer-legal {
  flex-wrap: nowrap !important;
  gap: 0 8px !important;
  white-space: nowrap !important;
  font-size: 11px !important;
}
.apple-style-footer .app-footer-legal a,
.apple-style-footer .app-footer-legal span {
  font-size: 11px !important;
  letter-spacing: 0 !important;
}
.apple-style-footer .app-footer-legal a {
  color: #6e6e73 !important;
  text-decoration: none !important;
}


/* ページ側の a / button 共通スタイルに負けないよう、フッター内のリンクを明示する。 */
html body .apple-style-footer.apple-style-footer.apple-style-footer a { font-weight: 400 !important; }
html body .apple-style-footer.apple-style-footer.apple-style-footer .app-footer-home { color: #1d1d1f !important; }
html body .apple-style-footer.apple-style-footer.apple-style-footer .app-footer-panel a { color: #424245 !important; }
html body .apple-style-footer.apple-style-footer.apple-style-footer .app-footer-contact-line a { color: #06c !important; text-decoration: underline !important; }
html body .apple-style-footer.apple-style-footer.apple-style-footer .app-footer-legal a { color: #6e6e73 !important; text-decoration: none !important; }
html body .apple-style-footer.apple-style-footer.apple-style-footer, html body .apple-style-footer.apple-style-footer.apple-style-footer * { font-weight: 400 !important; }
