/* ==========================================
   分院セクションクリッドレイアウト (Grid Layout)
   ========================================== */

.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.branch-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.branch-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.branch-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.branch-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.branch-card:hover .branch-image {
    transform: scale(1.1);
}

.branch-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.branch-title {
    font-size: 20px;
    color: #d4af37;
    margin-bottom: 15px;
    font-family: serif;
    letter-spacing: 0.1em;
}

.branch-description {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.branch-button {
    align-self: flex-start;
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.branch-button:hover {
    background: #d4af37;
    color: #000;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .branches-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .branch-image-wrapper {
        height: 200px;
    }
}