/* Site Footer Generic Styles */
.site-footer {
    text-align: center;
    padding: 0;
    margin-top: 40px;
    width: 100%;
    background: #f4f7f6;
}

/* Wrapper and Inner Elements */
.footer-message-box {
    text-align: center;
    padding: 10px 20px 10px 20px;
}

.footer-message-text {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.footer-hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 0 -10px;
    width: calc(100% + 20px);
}

.footer-logo-box {
    text-align: center;
    padding: 10px 20px 20px 20px;
}

.footer-logo {
    height: 70px;
    /* Mobile default */
    width: auto;
    display: inline-block;
}

.footer-copyright {
    color: #666;
    font-size: 12px;
    margin-top: 0;
    margin-bottom: 0;
}

.footer-copyright a {
    color: inherit;
    text-decoration: none;
}

/* Mobile specific (max-width: 600px to match reference) 
   However, site uses 768px for other things. 
   We will strictly follow the reference's logic for the footer design.
*/
@media (max-width: 768px) {
    .site-footer {
        padding-bottom: 60px !important;
        /* 固定バーに隠れないよう余白を確保 */
    }

    .footer-break::before {
        content: "\A";
        white-space: pre;
    }
}

/* PC Styles (min-width: 601px+) */
@media (min-width: 601px) {

    /* Login Page Specific - No longer fixed */
    .login-page .site-footer {
        position: static;
        margin-top: auto;
        padding: 20px 0;
        width: 100%;
        box-shadow: none;
        background: transparent;
    }

    .login-page {
        /* Reset padding since footer is no longer fixed */
        padding-bottom: 0;
    }

    .footer-logo {
        height: 35px;
    }

    .footer-logo-box {
        padding: 5px 20px 0px 20px;
    }

    .footer-copyright {
        margin-bottom: 10px;
    }
}

/* 
   Internal pages with sidebar
*/
@media (min-width: 769px) {
    .content-area .site-footer {
        position: static !important;
        width: 100% !important;
        margin-top: auto !important;
        padding: 20px 0 10px !important;
        background: #f4f7f6;
    }

    .content-area {
        padding-bottom: 0 !important;
    }
}