/* Phase 3 integrated: all selectors are limited to the new footer/share or the
   existing profile page's explicitly marked profile image. */
body footer.tsuki-footer, body footer.tsuki-footer #footer.tsuki-footer-surface {
    background: linear-gradient(180deg,#FCFAF8 0%,#E9DFF1 100%) !important;
    color: #796287 !important; border: 0 !important; box-shadow: none !important;
    padding: 0 !important; margin: 0 !important; text-align: center !important;
}
body footer.tsuki-footer #footer-wrapper, body footer.tsuki-footer #footer-in {
    background: transparent !important; color: #796287 !important; border: 0 !important;
    box-shadow: none !important; width: 100% !important; max-width: 1200px !important;
    margin: 0 auto !important; box-sizing: border-box !important; float: none !important;
}
body footer.tsuki-footer #footer-wrapper { padding: 0 24px !important; }
body footer.tsuki-footer #footer-in { padding: 28px 0 22px !important; }
body .tsuki-footer-ornament { display: flex; align-items: center; gap: 14px; margin: 0 auto 14px; max-width: 850px; }
body .tsuki-footer-ornament::before, body .tsuki-footer-ornament::after { content: ''; height: 1px; flex: 1; background: #C3A16C; opacity: .75; }
body .tsuki-footer-ornament svg { flex: 0 0 64px; }
body footer.tsuki-footer .tsuki-footer-logo { display: block !important; width: min(350px,100%); margin: 0 auto 17px !important; padding: 0 !important; background: transparent !important; border: 0 !important; }
body footer.tsuki-footer .tsuki-footer-logo img { display: block !important; width: 100% !important; height: auto !important; max-width: none !important; border: 0 !important; box-shadow: none !important; margin: 0 !important; }
body footer.tsuki-footer .tsuki-footer-nav ul { display: flex !important; flex-wrap: wrap !important; align-items: center; justify-content: center; gap: 8px 0; list-style: none !important; margin: 0 auto !important; padding: 0 !important; }
body footer.tsuki-footer .tsuki-footer-nav li { float: none !important; list-style: none !important; margin: 0 !important; padding: 0 15px !important; line-height: 1.5; border: 0 !important; background: none !important; }
body footer.tsuki-footer .tsuki-footer-nav li + li { border-inline-start: 1px solid #C3A16C !important; }
body footer.tsuki-footer .tsuki-footer-nav a { color: #796287 !important; text-decoration: none !important; display: inline-block !important; font-size: 14px !important; font-weight: 400 !important; padding: 4px 0 !important; background: none !important; border: 0 !important; }
body footer.tsuki-footer .tsuki-footer-nav a:hover { text-decoration: underline !important; }
body .tsuki-footer-divider { height: 1px; background: #C3A16C; opacity: .55; margin: 20px auto 13px; max-width: 850px; }
body footer.tsuki-footer p.tsuki-footer-copy, body footer.tsuki-footer p.tsuki-footer-copy small { color: #796287 !important; font-size: 12px !important; font-weight: 400 !important; margin: 0 !important; padding: 0 !important; line-height: 1.6 !important; text-align: center !important; background: none !important; }
body .tsuki-preserved-footer-widgets { max-width: 1200px; margin: 0 auto; box-sizing: border-box; }
body .tsuki-share { text-align: center !important; margin: 36px auto 20px !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-sizing: border-box; }
body .tsuki-share .tsuki-share-title { margin: 0 0 14px !important; padding: 0 !important; font: 500 17px/1.5 'Yu Mincho','Hiragino Mincho ProN',serif !important; color: #796287 !important; text-align: center !important; background: none !important; }
body .tsuki-share .tsuki-share-title span { display: block; font: 500 11px/1.6 Georgia,serif !important; letter-spacing: .16em; color: #A78C65 !important; }
body .tsuki-share-buttons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
body .tsuki-share .tsuki-share-button { appearance: none; -webkit-appearance: none; box-sizing: border-box !important; display: inline-flex !important; flex: 0 0 42px; justify-content: center; align-items: center; width: 42px !important; height: 42px !important; min-width: 0 !important; min-height: 0 !important; border: 1px solid #D5C5DE !important; border-radius: 50% !important; background: #F1EAF5 !important; color: #796287 !important; padding: 0 !important; margin: 0 !important; line-height: 1 !important; box-shadow: none !important; cursor: pointer; text-decoration: none !important; }
body .tsuki-share .tsuki-share-button svg { display: block; width: 20px; height: 20px; margin: 0; }
body .tsuki-share .tsuki-share-button:hover { border-color: #C3A16C !important; color: #796287 !important; background: #FCFAF8 !important; }
body .tsuki-share .tsuki-share-button:focus-visible, body .tsuki-footer a:focus-visible { outline: 2px solid #796287 !important; outline-offset: 3px; }
body .tsuki-share p.tsuki-share-status { color: #796287 !important; font-size: 13px !important; margin: 8px 0 0 !important; text-align: center !important; }
body .tsuki-share p.tsuki-share-status:empty { margin: 0 !important; }
body .tsuki-share .tsuki-share-manual { width: min(100%,420px); box-sizing: border-box; margin: 8px auto; }
body .tsuki-share .tsuki-share-manual[hidden] { display: none !important; }
/* Hide only legacy empty containers on the old AFFINGER template paths. */
body .st-sns-top:empty, body .st-sns-btn-shordcode:empty { display: none !important; }
body.page-id-229 .tsuki-profile-image, body.page-id-229 .tsuki-profile-image a, body.page-id-229 .tsuki-profile-image picture { border-radius: 12px !important; clip-path: none !important; mask: none !important; }
body.page-id-229 img.tsuki-profile-image, body.page-id-229 .tsuki-profile-image img { aspect-ratio: 1 / 1 !important; object-fit: contain !important; max-width: 100% !important; height: auto !important; border-radius: 12px !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; mask: none !important; clip-path: none !important; }
@media (max-width: 599px) {
    body footer.tsuki-footer #footer-wrapper { padding: 0 16px !important; }
    body footer.tsuki-footer #footer-in { padding: 22px 0 18px !important; }
    body footer.tsuki-footer .tsuki-footer-logo { width: min(260px,100%) !important; margin-bottom: 12px !important; }
    body footer.tsuki-footer .tsuki-footer-nav li { padding: 0 9px !important; border: 0 !important; }
    body footer.tsuki-footer .tsuki-footer-nav li + li { border: 0 !important; }
    body footer.tsuki-footer .tsuki-footer-nav a { font-size: 13px !important; }
    body .tsuki-share-buttons { gap: 10px; }
    body .tsuki-share .tsuki-share-button { flex-basis: 44px; width: 44px !important; height: 44px !important; }
}
