﻿/* Members Section */
.members-section {
    background-color: var(--color-bg-light);
}

.section-subtitle {
    text-align: center;
    color: var(--color-accent);
    font-size: 18px;
    margin-bottom: 40px;
    font-family: Georgia, serif;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.member-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.member-image img {
    width: 100%;
    height: auto;
    display: block;
}

.member-info {
    padding: 20px;
    text-align: center;
    background-color: var(--color-main);
    color: var(--color-white);
}

.member-name {
    font-size: 22px;
    margin-bottom: 8px;
}

.member-title {
    font-size: 14px;
    font-weight: 400;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    position: relative;
}

.service-link {
    display: block;
}

.service-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.service-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.service-card:hover .service-overlay {
    background-color: rgba(128, 0, 0, 0.7);
}

.service-title {
    color: var(--color-white);
    font-size: 28px;
    text-align: center;
}

.service-description {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.7;
}

/* News Section */
.news-section {
    background-color: var(--color-bg-light);
}

.news-list {
    min-height: 100px;
    margin-bottom: 40px;
}

.news-item {
    background-color: var(--color-white);
    padding: 20px 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.news-date {
    color: var(--color-main);
    font-weight: 700;
    font-size: 14px;
}

.news-title {
    color: var(--color-text);
    font-size: 16px;
    transition: opacity 0.3s;
}

.news-title:hover {
    opacity: 0.7;
}

.news-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

/* Link Cards */
.link-cards-section {
    background-color: var(--color-white);
}

.link-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.link-card {
    display: block;
    position: relative;
    width: 490px;
    height: 210px;
    overflow: hidden;
    border-radius: 4px;
}

.link-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.link-card:hover img {
    transform: scale(1.05);
}

.link-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-card-overlay h3 {
    color: var(--color-white);
    font-size: 24px;
    font-weight: 700;
}

@media screen and (max-width: 1024px) {
    .link-cards {
        grid-template-columns: 1fr;
    }

    .link-card {
        width: 100%;
        max-width: 490px;
        margin: 0 auto;
    }
}


/* CTA Section */
.cta-section {
    background-color: var(--color-bg-light);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.cta-text {
    flex: 1;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-main);
    padding: 18px 50px;
    background-color: var(--color-white);
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 320px;
    box-sizing: border-box;
}

.cta-tel::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: "\f095";
    font-size: 28px;
}

.cta-hours {
    font-size: 16px;
    margin-bottom: 10px;
}

.cta-note {
    font-size: 14px;
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #00004d;
    color: var(--color-white);
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    min-width: 320px;
    box-sizing: border-box;
}

.btn-cta::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    content: "\f0e0";
    font-size: 18px;
}

.cta-image {
    flex: 0 0 300px;
}

/* Footer */
.footer {
    background-color: #333333;
    color: var(--color-white);
    padding: 30px 0 0;
    text-align: center;
}

.footer-nav {
    margin-bottom: 15px;
    line-height: 2;
}

.footer-nav a {
    color: var(--color-white);
    font-size: 14px;
    text-decoration: none;
    padding: 0 5px;
}

.footer-nav a:hover {
    opacity: 0.8;
}

.footer-copyright {
    font-size: 11px;
    margin: 20px 0;
}

.footer-bottom {
    background-color: #000000;
    padding: 15px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    margin: 0;
}

/* Responsive - SP */
@media screen and (max-width: 767px) {
    .members-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
    }

    .cta-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }

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

    .cta-hours .sp-br-inline {
        display: block;
    }
}

/* Page Top Button */
.page-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.page-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.page-top-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border: 2px solid #333333;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.page-top-btn a::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 3px solid #333333;
    border-right: 3px solid #333333;
    transform: rotate(-45deg) translateY(3px);
}

.page-top-btn:hover a {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hide img if present */
.page-top-btn img {
    display: none;
}

@media screen and (max-width: 767px) {
    .page-top-btn {
        right: 15px;
        bottom: 15px;
    }

    .page-top-btn a {
        width: 50px;
        height: 50px;
    }

    .page-top-btn a::before {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
}