/**
 * RAVENZ: サイト全体フッター（Cocoon #footer / .footer-bottom）
 * パンくずは #breadcrumb（フッター直前配置時も含む）
 */

:root {
  --ravenz-footer-bg: linear-gradient(180deg, #fff5f9 0%, #ffe8f0 45%, #ffd6e8 100%);
  --ravenz-footer-border: rgba(233, 30, 99, 0.22);
  --ravenz-footer-accent: #c2185b;
  --ravenz-footer-text: #5c3d4a;
  --ravenz-footer-muted: rgba(92, 61, 74, 0.72);
}

/* サイトフッター全体 */
#footer.footer,
footer#footer.footer-container {
  margin-top: 0;
  padding: 0;
  border-top: 1px solid var(--ravenz-footer-border);
  background: var(--ravenz-footer-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

#footer-in.footer-in {
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

/* フッターウィジェット（左・中・右）があれば余白だけ整える */
#footer .footer-widgets {
  margin-bottom: 1.25rem;
  gap: 0.5rem;
}

/* --- パンくず（記事下〜フッター直前） --- */
#breadcrumb.breadcrumb {
  margin: 0 auto 0;
  padding: 0.85rem 1rem;
  max-width: 100%;
  box-sizing: border-box;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  color: var(--ravenz-footer-muted);
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(233, 30, 99, 0.12);
}

#breadcrumb.breadcrumb a {
  color: var(--ravenz-footer-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

#breadcrumb.breadcrumb a:hover,
#breadcrumb.breadcrumb a:focus-visible {
  border-bottom-color: rgba(194, 24, 91, 0.45);
  color: #ad1457;
}

#breadcrumb.breadcrumb .breadcrumb-caption {
  font-weight: 500;
}

#breadcrumb.breadcrumb .sp {
  opacity: 0.55;
}

/* --- フッター最下部（ロゴ + メニュー + クレジット） --- */
#footer .footer-bottom {
  margin-top: 0;
  padding: 1.25rem 1rem 1rem;
  position: relative;
  text-align: center;
  float: none;
  clear: both;
}

/* Cocoon の「上にロゴ」系スキンでも破綻しにくいよう調整 */
#footer .footer-bottom.fdt-up-and-down .footer-bottom-logo,
#footer .footer-bottom .footer-bottom-logo {
  float: none;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1rem;
  padding: 0;
  bottom: auto;
}

#footer .footer-bottom-logo .site-name-text-link,
#footer .footer-bottom-logo a {
  display: inline-block;
}

#footer .footer-bottom-logo img,
#footer .footer-bottom-logo .logo-header img {
  max-height: 52px;
  width: auto;
  max-width: min(320px, 88vw);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(194, 24, 91, 0.15));
}

#footer .footer-bottom-content {
  float: none;
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}

/* フッターメニュー */
#footer .navi-footer-in > ul,
#footer .menu-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}

#footer .navi-footer-in > ul > li,
#footer .menu-footer li {
  margin: 0;
}

#footer .navi-footer-in > ul > li > a,
#footer .menu-footer a {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 0.875rem;
  color: var(--ravenz-footer-text);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

#footer .navi-footer-in > ul > li > a:hover,
#footer .menu-footer a:hover,
#footer .navi-footer-in > ul > li > a:focus-visible,
#footer .menu-footer a:focus-visible {
  background: rgba(233, 30, 99, 0.1);
  color: var(--ravenz-footer-accent);
}

/* クレジット行 */
#footer .footer-bottom .source-org.copyright,
#footer .copyright {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ravenz-footer-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  #footer-in.footer-in {
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }

  #breadcrumb.breadcrumb {
    padding: 0.65rem 0.75rem;
  }

  #footer .footer-bottom {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
