/* 晴れ山サーチ 共通フッター（SPA / 静的ページ） */
.site-footer,
.site-corp-footer,
.app-footer,
.mypage-footer {
  --sf-pine: #16352e;
  --sf-pine-deep: #0b1f1c;
  --sf-navy: #24384c;
  --sf-gold: #c99212;
  --sf-ink: #1c2833;
  --sf-muted: #5a6570;
  position: relative;
  text-align: center;
  padding: 22px 16px 8px;
  margin-top: 64px;
  margin-bottom: 0;
  color: var(--sf-muted);
  font-size: 15px;
  line-height: 1.5;
  background: linear-gradient(180deg, #fff7f1 0%, #f5efe8 100%);
  border-top: 0;
  box-shadow: none;
  overflow: visible;
  min-width: 0;
  max-width: 100%;
}

.site-footer:not(.site-footer--compact)::before,
.site-corp-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -32px;
  height: 36px;
  background: url("/site-mountains.svg") center bottom / 100% 36px no-repeat;
  pointer-events: none;
}

.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.site-footer-copy,
.site-corp-copy,
.app-footer > p:not(.site-footer-produced):not(.app-footer-produced),
.mypage-footer > p:not(.site-footer-produced):not(.mypage-footer-produced) {
  margin: 0;
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--sf-ink, #1c2833);
  letter-spacing: 0.01em;
}

.site-footer-copy a,
.site-corp-copy a {
  color: var(--sf-pine, #16352e);
  text-decoration: none;
  font-weight: 800;
}

.site-footer-copy a:hover,
.site-corp-copy a:hover {
  color: var(--sf-pine-deep, #0b1f1c);
  text-decoration: underline;
}

.site-footer-nav,
.site-corp-nav,
.mypage-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 920px;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.site-footer-nav a,
.site-corp-nav a,
.mypage-footer-inner a {
  color: var(--sf-pine, #16352e);
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.2;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(22, 53, 46, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-footer-nav a:hover,
.site-corp-nav a:hover,
.mypage-footer-inner a:hover {
  background: #fff;
  border-color: var(--sf-pine, #16352e);
  color: var(--sf-pine-deep, #0b1f1c);
  text-decoration: none;
}

.site-corp-sep,
.footer-separator,
.mypage-footer-inner > span {
  display: none;
}

.site-footer-produced,
.app-footer-produced,
.mypage-footer-produced {
  margin: 0;
  font-size: 12.5px;
  color: #7a8490;
  letter-spacing: 0.06em;
}

.site-footer--compact {
  padding: 10px 8px 6px;
  margin-top: 8px;
  background: transparent;
  border-top: 1px solid #d5dce3;
  box-shadow: none;
}

.site-footer--compact::before {
  content: none;
}

.site-footer--compact .site-footer-nav a {
  padding: 4px 8px;
  font-size: 13px;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .site-footer-nav,
  .site-corp-nav,
  .mypage-footer-inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-width: 100%;
    gap: 6px;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
  }

  .site-footer-nav a,
  .site-corp-nav a,
  .mypage-footer-inner a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .site-footer,
  .site-corp-footer,
  .app-footer,
  .mypage-footer {
    padding: 18px 12px 6px;
    font-size: 14px;
    margin-top: 48px;
  }

  .site-footer:not(.site-footer--compact)::before,
  .site-corp-footer::before {
    top: -26px;
    height: 30px;
    background-size: 100% 30px;
  }

  .site-footer-inner {
    gap: 8px;
  }

  .site-footer-copy,
  .site-corp-copy {
    font-size: 13.5px;
  }

  .site-footer-nav a,
  .site-corp-nav a,
  .mypage-footer-inner a {
    font-size: 13.5px;
    padding: 6px 10px;
  }
}
