/**
 * Footer CSS - フッター専用スタイル
 * 渋谷文化村通り皮膚科 WordPressテーマ
 */

/* Footer Base */
.footer {
    background: #2c2c2c;
    color: white;
    padding: 80px 0 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    margin-bottom: 50px;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

/* Footer Sections */
.footer-section {
    padding: 20px 0;
}

.footer-title {
    color: var(--primary-light);
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 300;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-menu a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.medicine-search-icon {
    font-size: 16px;
    margin-right: 8px;
}

/* Footer CTA */
.footer-cta {
    margin-top: 30px;
    padding: 25px;
    background: rgba(166, 157, 153, 0.1);
    border-radius: 12px;
}

.cta-text {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 300;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(166, 157, 153, 0.3);
    color: white;
}

/* Recent News */
.recent-news {
    margin-top: 30px;
}

.recent-title {
    color: var(--primary-light);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 300;
}

.recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.recent-date {
    color: var(--primary-light);
    font-weight: 300;
    min-width: 30px;
    flex-shrink: 0;
}

.recent-link {
    color: #ccc;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
    flex: 1;
}

.recent-link:hover {
    color: var(--primary-light);
}

/* Footer Search */
.footer-search {
    margin-top: 25px;
}

.search-title {
    color: var(--primary-light);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 300;
}

/* Clinic Info Section */
.footer-clinic-info {
    grid-column: span 2;
}

.clinic-details {
    margin-bottom: 40px;
}

.clinic-name {
    color: var(--primary-light);
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 300;
}

.clinic-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.clinic-detail .material-icons {
    color: var(--primary-color);
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-text {
    flex: 1;
}

.detail-text p {
    margin-bottom: 5px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.access-info,
.clinic-note {
    font-size: 12px !important;
    color: #999 !important;
}

.phone-link,
.email-link {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-link:hover,
.email-link:hover {
    color: white;
}

/* Group Clinic Info */
.group-clinic {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #444;
}

.group-title {
    color: var(--primary-light);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 400;
}

.group-description {
    color: #ccc;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 300;
}

.partner-clinic {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.partner-name {
    color: var(--primary-light);
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 400;
}

.partner-description {
    color: #ccc;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #444;
}

.footer-bottom-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright {
    flex: 1;
}

.site-name {
    color: var(--primary-light);
    margin-bottom: 15px;
    font-weight: 300;
    font-size: 20px;
}

.address,
.contact-info,
.copyright-text {
    color: #999;
    font-weight: 300;
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-info a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.back-to-top .material-icons {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-container {
        padding: 0 30px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-clinic-info {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-clinic-info {
        grid-column: span 1;
    }

    .footer-section {
        padding: 15px 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top .material-icons {
        font-size: 18px;
    }

    .clinic-detail {
        flex-direction: column;
        gap: 10px;
    }

    .clinic-detail .material-icons {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 50px 0 20px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .footer-grid {
        gap: 25px;
    }

    .footer-section {
        padding: 10px 0;
    }

    .footer-cta {
        padding: 20px;
    }

    .partner-clinic {
        padding: 15px;
    }

    .group-clinic {
        margin-top: 30px;
        padding-top: 20px;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .back-to-top .material-icons {
        font-size: 16px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .footer {
        background: #000;
    }

    .footer-title,
    .site-name {
        color: white;
    }

    .footer-menu a,
    .recent-link {
        color: #ddd;
    }

    .footer-menu a:hover,
    .recent-link:hover {
        color: white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .footer-menu a,
    .footer-btn,
    .back-to-top,
    .phone-link,
    .email-link,
    .recent-link,
    .contact-info a {
        transition: none;
    }

    .back-to-top:hover {
        transform: none;
    }
}