/* =========================================================
   サポート4ページ共通のフッターと「ページの先頭へ」ボタン
   about.html / guest_upgrade.html / add_home.html / privacy.html
   ページごとの CSS に依存しないよう、色や余白はここで完結させる
   ========================================================= */
.site-footer,
.to-top {
    --sf-camps: #DF6310;
    --sf-camps-dark: #B84F0B;
    --sf-ink: #1F2328;
    --sf-ink-2: #4A5158;
    --sf-ink-3: #7A828A;
    --sf-line: #E7E2DC;
}

.site-footer {
    margin-top: 64px;
    padding: 36px 0 44px;
    background: #FFFFFF;
    border-top: 1px solid var(--sf-line);
    font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
    line-height: 1.85;
    color: var(--sf-ink);
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

.site-footer p,
.site-footer nav {
    margin: 0;
    padding: 0;
}

.site-footer .container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.footer-brand img {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    flex: none;
}

.footer-brand p { font-size: 13px; color: var(--sf-ink-3); line-height: 1.6; }
.footer-brand strong { color: var(--sf-ink); font-size: 14px; font-weight: 700; }

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

.footer-links a,
.footer-links .is-current {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    line-height: 1.85;
}

.footer-links a {
    font-weight: 600;
    color: var(--sf-ink-2);
    text-decoration: none;
    transition: color .25s ease;
}

.footer-links a:hover { color: var(--sf-camps-dark); }

/* いま開いているページはリンクにしない */
.footer-links .is-current {
    font-weight: 700;
    color: var(--sf-camps-dark);
}

.footer-links svg { width: 12px; height: 12px; flex: none; }

@media (max-width: 720px) {
    .footer-links { gap: 10px 18px; }
}

/* 区切り線の下の一言（ページごとの注記。なければ © CampS） */
.footer-copy {
    margin-top: 24px !important;
    padding-top: 18px !important;
    border-top: 1px solid var(--sf-line);
    font-size: 12px;
    line-height: 1.85;
    color: var(--sf-ink-3);
    text-align: center;
}

/* ---------- ページの先頭へ ---------- */
.to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--sf-camps);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(223, 99, 16, .38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 90;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

@media print {
    .to-top { display: none; }
}
